vendor: 5,859 bytes, lines 1-9
1var Q2=Object.defineProperty;var ov=e=>{throw TypeError(e)};var X2=(e,t,r)=>t in e?Q2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Hn=(e,t,r)=>X2(e,typeof t!="symbol"?t+"":t,r),Qh=(e,t,r)=>t.has(e)||ov("Cannot "+r);var z=(e,t,r)=>(Qh(e,t,"read from private field"),r?r.call(e):t.get(e)),$e=(e,t,r)=>t.has(e)?ov("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ke=(e,t,r,n)=>(Qh(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Wt=(e,t,r)=>(Qh(e,t,"access private method"),r);var qc=(e,t,r,n)=>({set _(s){ke(e,t,s,r)},get _(){return z(e,t,n)}});function eC(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(n,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();function xc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bb={exports:{}},Yu={},Vb={exports:{}},Re={};/** 2 * @license React 3 * react.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 vc=Symbol.for("react.element"),tC=Symbol.for("react.portal"),rC=Symbol.for("react.fragment"),nC=Symbol.for("react.strict_mode"),sC=Symbol.for("react.profiler"),aC=Symbol.for("react.provider"),iC=Symbol.for("react.context"),oC=Symbol.for("react.forward_ref"),lC=Symbol.for("react.suspense"),cC=Symbol.for("react.memo"),dC=Symbol.for("react.lazy"),lv=Symbol.iterator;function uC(e){return e===null||typeof e!="object"?null:(e=lv&&e[lv]||e["@@iterator"],typeof e=="function"?e:null)}var Hb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Wb=Object.assign,qb={};function Eo(e,t,r){this.props=e,this.context=t,this.refs=qb,this.updater=r||Hb}Eo.prototype.isReactComponent={};Eo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Eo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Gb(){}Gb.prototype=Eo.prototype;function Xp(e,t,r){this.props=e,this.context=t,this.refs=qb,this.updater=r||Hb}var eg=Xp.prototype=new Gb;eg.constructor=Xp;Wb(eg,Eo.prototype);eg.isPureReactComponent=!0;var cv=Array.isArray,Kb=Object.prototype.hasOwnProperty,tg={current:null},Zb={key:!0,ref:!0,__self:!0,__source:!0};function Yb(e,t,r){var n,s={},i=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Kb.call(t,n)&&!Zb.hasOwnProperty(n)&&(s[n]=t[n]);var l=arguments.length-2;if(l===1)s.children=r;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];s.children=c}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)s[n]===void 0&&(s[n]=l[n]);return{$$typeof:vc,type:e,key:i,ref:o,props:s,_owner:tg.current}}function hC(e,t){return{$$typeof:vc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function rg(e){return typeof e=="object"&&e!==null&&e.$$typeof===vc}function fC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var dv=/\/+/g;function Xh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?fC(""+e.key):t.toString(36)}function Ad(e,t,r,n,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case vc:case tC:o=!0}}if(o)return o=e,s=s(o),e=n===""?"."+Xh(o,0):n,cv(s)?(r="",e!=null&&(r=e.replace(dv,"$&/")+"/"),Ad(s,t,r,"",function(d){return d})):s!=null&&(rg(s)&&(s=hC(s,r+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(dv,"$&/")+"/")+e)),t.push(s)),1;if(o=0,n=n===""?".":n+":",cv(e))for(var l=0;l<e.length;l++){i=e[l];var c=n+Xh(i,l);o+=Ad(i,t,r,c,s)}else if(c=uC(e),typeof c=="function")for(e=c.call(e),l=0;!(i=e.next()).done;)i=i.value,c=n+Xh(i,l++),o+=Ad(i,t,r,c,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Gc(e,t,r){if(e==null)return e;var n=[],s=0;return Ad(e,n,"","",function(i){return t.call(r,i,s++)}),n}function mC(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ir={current:null},Ed={transition:null},pC={ReactCurrentDispatcher:ir,ReactCurrentBatchConfig:Ed,ReactCurrentOwner:tg};function Jb(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 4,353 bytes, lines 9-25
9Re.Children={map:Gc,forEach:function(e,t,r){Gc(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Gc(e,function(){t++}),t},toArray:function(e){return Gc(e,function(t){return t})||[]},only:function(e){if(!rg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Re.Component=Eo;Re.Fragment=rC;Re.Profiler=sC;Re.PureComponent=Xp;Re.StrictMode=nC;Re.Suspense=lC;Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pC;Re.act=Jb;Re.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Wb({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=tg.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)Kb.call(t,c)&&!Zb.hasOwnProperty(c)&&(n[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];n.children=l}return{$$typeof:vc,type:e.type,key:s,ref:i,props:n,_owner:o}};Re.createContext=function(e){return e={$$typeof:iC,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:aC,_context:e},e.Consumer=e};Re.createElement=Yb;Re.createFactory=function(e){var t=Yb.bind(null,e);return t.type=e,t};Re.createRef=function(){return{current:null}};Re.forwardRef=function(e){return{$$typeof:oC,render:e}};Re.isValidElement=rg;Re.lazy=function(e){return{$$typeof:dC,_payload:{_status:-1,_result:e},_init:mC}};Re.memo=function(e,t){return{$$typeof:cC,type:e,compare:t===void 0?null:t}};Re.startTransition=function(e){var t=Ed.transition;Ed.transition={};try{e()}finally{Ed.transition=t}};Re.unstable_act=Jb;Re.useCallback=function(e,t){return ir.current.useCallback(e,t)};Re.useContext=function(e){return ir.current.useContext(e)};Re.useDebugValue=function(){};Re.useDeferredValue=function(e){return ir.current.useDeferredValue(e)};Re.useEffect=function(e,t){return ir.current.useEffect(e,t)};Re.useId=function(){return ir.current.useId()};Re.useImperativeHandle=function(e,t,r){return ir.current.useImperativeHandle(e,t,r)};Re.useInsertionEffect=function(e,t){return ir.current.useInsertionEffect(e,t)};Re.useLayoutEffect=function(e,t){return ir.current.useLayoutEffect(e,t)};Re.useMemo=function(e,t){return ir.current.useMemo(e,t)};Re.useReducer=function(e,t,r){return ir.current.useReducer(e,t,r)};Re.useRef=function(e){return ir.current.useRef(e)};Re.useState=function(e){return ir.current.useState(e)};Re.useSyncExternalStore=function(e,t,r){return ir.current.useSyncExternalStore(e,t,r)};Re.useTransition=function(){return ir.current.useTransition()};Re.version="18.3.1";Vb.exports=Re;var g=Vb.exports;const M=xc(g),ng=eC({__proto__:null,default:M},[g]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var gC=g,xC=Symbol.for("react.element"),vC=Symbol.for("react.fragment"),yC=Object.prototype.hasOwnProperty,bC=gC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wC={key:!0,ref:!0,__self:!0,__source:!0};function Qb(e,t,r){var n,s={},i=null,o=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)yC.call(t,n)&&!wC.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)s[n]===void 0&&(s[n]=t[n]);return{$$typeof:xC,type:e,key:i,ref:o,props:s,_owner:bC.current}}Yu.Fragment=vC;Yu.jsx=Qb;Yu.jsxs=Qb;Bb.exports=Yu;var a=Bb.exports,Xb={exports:{}},Pr={},ew={exports:{}},tw={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(P,D){var V=P.length;P.push(D);e:for(;0<V;){var te=V-1>>>1,re=P[te];if(0<s(re,D))P[te]=D,P[V]=re,V=te;else break e}}function r(P){return P.length===0?null:P[0]}function n(P){if(P.length===0)return null;var D=P[0],V=P.pop();if(V!==D){P[0]=V;e:for(var te=0,re=P.length,me=re>>>1;te<me;){var ce=2*(te+1)-1,_e=P[ce],We=ce+1,q=P[We];
vendor: 10,333 bytes, lines 25-34
25if(0>s(_e,V))We<re&&0>s(q,_e)?(P[te]=q,P[We]=V,te=We):(P[te]=_e,P[ce]=V,te=ce);else if(We<re&&0>s(q,V))P[te]=q,P[We]=V,te=We;else break e}}return D}function s(P,D){var V=P.sortIndex-D.sortIndex;return V!==0?V:P.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],d=[],u=1,h=null,f=3,m=!1,b=!1,x=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(P){for(var D=r(d);D!==null;){if(D.callback===null)n(d);else if(D.startTime<=P)n(d),D.sortIndex=D.expirationTime,t(c,D);else break;D=r(d)}}function j(P){if(x=!1,y(P),!b)if(r(c)!==null)b=!0,F(N);else{var D=r(d);D!==null&&B(j,D.startTime-P)}}function N(P,D){b=!1,x&&(x=!1,v(A),A=-1),m=!0;var V=f;try{for(y(D),h=r(c);h!==null&&(!(h.expirationTime>D)||P&&!R());){var te=h.callback;if(typeof te=="function"){h.callback=null,f=h.priorityLevel;var re=te(h.expirationTime<=D);D=e.unstable_now(),typeof re=="function"?h.callback=re:h===r(c)&&n(c),y(D)}else n(c);h=r(c)}if(h!==null)var me=!0;else{var ce=r(d);ce!==null&&B(j,ce.startTime-D),me=!1}return me}finally{h=null,f=V,m=!1}}var S=!1,k=null,A=-1,E=5,O=-1;function R(){return!(e.unstable_now()-O<E)}function I(){if(k!==null){var P=e.unstable_now();O=P;var D=!0;try{D=k(!0,P)}finally{D?U():(S=!1,k=null)}}else S=!1}var U;if(typeof p=="function")U=function(){p(I)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,C=L.port2;L.port1.onmessage=I,U=function(){C.postMessage(null)}}else U=function(){w(I,0)};function F(P){k=P,S||(S=!0,U())}function B(P,D){A=w(function(){P(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){b||m||(b=!0,F(N))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(c)},e.unstable_next=function(P){switch(f){case 1:case 2:case 3:var D=3;break;default:D=f}var V=f;f=D;try{return P()}finally{f=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,D){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var V=f;f=P;try{return D()}finally{f=V}},e.unstable_scheduleCallback=function(P,D,V){var te=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?te+V:te):V=te,P){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=V+re,P={id:u++,callback:D,priorityLevel:P,startTime:V,expirationTime:re,sortIndex:-1},V>te?(P.sortIndex=V,t(d,P),r(c)===null&&P===r(d)&&(x?(v(A),A=-1):x=!0,B(j,V-te))):(P.sortIndex=re,t(c,P),b||m||(b=!0,F(N))),P},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(P){var D=f;return function(){var V=f;f=D;try{return P.apply(this,arguments)}finally{f=V}}}})(tw);ew.exports=tw;var jC=ew.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var NC=g,Ar=jC;function H(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var rw=new Set,Rl={};function ei(e,t){co(e,t),co(e+"Capture",t)}function co(e,t){for(Rl[e]=t,e=0;e<t.length;e++)rw.add(t[e])}var ss=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lm=Object.prototype.hasOwnProperty,SC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,uv={},hv={};function kC(e){return lm.call(hv,e)?!0:lm.call(uv,e)?!1:SC.test(e)?hv[e]=!0:(uv[e]=!0,!1)}function _C(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function CC(e,t,r,n){if(t===null||typeof t>"u"||_C(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function or(e,t,r,n,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Bt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Bt[e]=new or(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Bt[t]=new or(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Bt[e]=new or(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Bt[e]=new or(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Bt[e]=new or(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Bt[e]=new or(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Bt[e]=new or(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Bt[e]=new or(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Bt[e]=new or(e,5,!1,e.toLowerCase(),null,!1,!1)});var sg=/[\-:]([a-z])/g;function ag(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(sg,ag);Bt[t]=new or(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(sg,ag);Bt[t]=new or(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(sg,ag);Bt[t]=new or(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Bt[e]=new or(e,1,!1,e.toLowerCase(),null,!1,!1)});Bt.xlinkHref=new or("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Bt[e]=new or(e,1,!1,e.toLowerCase(),null,!0,!0)});function ig(e,t,r,n){var s=Bt.hasOwnProperty(t)?Bt[t]:null;(s!==null?s.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(CC(t,r,s,n)&&(r=null),n||s===null?kC(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):s.mustUseProperty?e[s.propertyName]=r===null?s.type===3?!1:"":r:(t=s.attributeName,n=s.attributeNamespace,r===null?e.removeAttribute(t):(s=s.type,r=s===3||s===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var hs=NC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Kc=Symbol.for("react.element"),Ci=Symbol.for("react.portal"),Ai=Symbol.for("react.fragment"),og=Symbol.for("react.strict_mode"),cm=Symbol.for("react.profiler"),nw=Symbol.for("react.provider"),sw=Symbol.for("react.context"),lg=Symbol.for("react.forward_ref"),dm=Symbol.for("react.suspense"),um=Symbol.for("react.suspense_list"),cg=Symbol.for("react.memo"),ks=Symbol.for("react.lazy"),aw=Symbol.for("react.offscreen"),fv=Symbol.iterator;function Bo(e){return e===null||typeof e!="object"?null:(e=fv&&e[fv]||e["@@iterator"],typeof e=="function"?e:null)}var ot=Object.assign,ef;function al(e){if(ef===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);ef=t&&t[1]||""}return` 34`+ef+e}var tf=!1;function rf(e,t){if(!e||tf)return"";tf=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var n=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){n=d}e.call(t.prototype)}else{try{throw Error()}catch(d){n=d}e()}}
vendor: 5,382 bytes, lines 34-37
34catch(d){if(d&&n&&typeof d.stack=="string"){for(var s=d.stack.split(` 35`),i=n.stack.split(` 36`),o=s.length-1,l=i.length-1;1<=o&&0<=l&&s[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(s[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||s[o]!==i[l]){var c=` 37`+s[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{tf=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?al(e):""}function AC(e){switch(e.tag){case 5:return al(e.type);case 16:return al("Lazy");case 13:return al("Suspense");case 19:return al("SuspenseList");case 0:case 2:case 15:return e=rf(e.type,!1),e;case 11:return e=rf(e.type.render,!1),e;case 1:return e=rf(e.type,!0),e;default:return""}}function hm(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ai:return"Fragment";case Ci:return"Portal";case cm:return"Profiler";case og:return"StrictMode";case dm:return"Suspense";case um:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case sw:return(e.displayName||"Context")+".Consumer";case nw:return(e._context.displayName||"Context")+".Provider";case lg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cg:return t=e.displayName||null,t!==null?t:hm(e.type)||"Memo";case ks:t=e._payload,e=e._init;try{return hm(e(t))}catch{}}return null}function EC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hm(t);case 8:return t===og?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ta(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function iw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function TC(e){var t=iw(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zc(e){e._valueTracker||(e._valueTracker=TC(e))}function ow(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=iw(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Kd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function fm(e,t){var r=t.checked;return ot({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function mv(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ta(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function lw(e,t){t=t.checked,t!=null&&ig(e,"checked",t,!1)}function mm(e,t){lw(e,t);var r=ta(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pm(e,t.type,r):t.hasOwnProperty("defaultValue")&&pm(e,t.type,ta(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pv(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function pm(e,t,r){(t!=="number"||Kd(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var il=Array.isArray;function Vi(e,t,r,n){if(e=e.options,t){t={};for(var s=0;s<r.length;s++)t["$"+r[s]]=!0;for(r=0;r<e.length;r++)s=t.hasOwnProperty("$"+e[r].value),e[r].selected!==s&&(e[r].selected=s),s&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ta(r),t=null,s=0;s<e.length;s++){if(e[s].value===r){e[s].selected=!0,n&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function gm(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(H(91));return ot({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}
vendor: 8,708 bytes, line 37
37function gv(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(H(92));if(il(r)){if(1<r.length)throw Error(H(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ta(r)}}function cw(e,t){var r=ta(t.value),n=ta(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function xv(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function dw(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function xm(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?dw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Yc,uw=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,s){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Yc=Yc||document.createElement("div"),Yc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Yc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Il(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var pl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},PC=["Webkit","ms","Moz","O"];Object.keys(pl).forEach(function(e){PC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pl[t]=pl[e]})});function hw(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||pl.hasOwnProperty(e)&&pl[e]?(""+t).trim():t+"px"}function fw(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=hw(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,s):e[r]=s}}var RC=ot({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vm(e,t){if(t){if(RC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function ym(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var bm=null;function dg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wm=null,Hi=null,Wi=null;function vv(e){if(e=wc(e)){if(typeof wm!="function")throw Error(H(280));var t=e.stateNode;t&&(t=th(t),wm(e.stateNode,e.type,t))}}function mw(e){Hi?Wi?Wi.push(e):Wi=[e]:Hi=e}function pw(){if(Hi){var e=Hi,t=Wi;if(Wi=Hi=null,vv(e),t)for(e=0;e<t.length;e++)vv(t[e])}}function gw(e,t){return e(t)}function xw(){}var nf=!1;function vw(e,t,r){if(nf)return e(t,r);nf=!0;try{return gw(e,t,r)}finally{nf=!1,(Hi!==null||Wi!==null)&&(xw(),pw())}}function Ol(e,t){var r=e.stateNode;if(r===null)return null;var n=th(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(H(231,t,typeof r));return r}var jm=!1;if(ss)try{var Vo={};Object.defineProperty(Vo,"passive",{get:function(){jm=!0}}),window.addEventListener("test",Vo,Vo),window.removeEventListener("test",Vo,Vo)}catch{jm=!1}function IC(e,t,r,n,s,i,o,l,c){var d=Array.prototype.slice.call(arguments,3);try{t.apply(r,d)}catch(u){this.onError(u)}}var gl=!1,Zd=null,Yd=!1,Nm=null,OC={onError:function(e){gl=!0,Zd=e}};function MC(e,t,r,n,s,i,o,l,c){gl=!1,Zd=null,IC.apply(OC,arguments)}function DC(e,t,r,n,s,i,o,l,c){if(MC.apply(this,arguments),gl){if(gl){var d=Zd;gl=!1,Zd=null}else throw Error(H(198));Yd||(Yd=!0,Nm=d)}}function ti(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function yw(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function yv(e){if(ti(e)!==e)throw Error(H(188))}function LC(e){var t=e.alternate;if(!t){if(t=ti(e),t===null)throw Error(H(188));return t!==e?null:e}for(var r=e,n=t;;){var s=r.return;if(s===null)break;var i=s.alternate;if(i===null){if(n=s.return,n!==null){r=n;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===r)return yv(s),e;if(i===n)return yv(s),t;i=i.sibling}throw Error(H(188))}if(r.return!==n.return)r=s,n=i;else{for(var o=!1,l=s.child;l;){if(l===r){o=!0,r=s,n=i;break}if(l===n){o=!0,n=s,r=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===r){o=!0,r=i,n=s;break}if(l===n){o=!0,n=i,r=s;break}l=l.sibling}if(!o)throw Error(H(189))}}if(r.alternate!==n)throw Error(H(190))}if(r.tag!==3)throw Error(H(188));return r.stateNode.current===r?e:t}function bw(e){return e=LC(e),e!==null?ww(e):null}function ww(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ww(e);if(t!==null)return t;e=e.sibling}return null}var jw=Ar.unstable_scheduleCallback,bv=Ar.unstable_cancelCallback,$C=Ar.unstable_shouldYield,FC=Ar.unstable_requestPaint,xt=Ar.unstable_now,UC=Ar.unstable_getCurrentPriorityLevel,ug=Ar.unstable_ImmediatePriority,Nw=Ar.unstable_UserBlockingPriority,Jd=Ar.unstable_NormalPriority,zC=Ar.unstable_LowPriority,Sw=Ar.unstable_IdlePriority,Ju=null,Mn=null;function BC(e){if(Mn&&typeof Mn.onCommitFiberRoot=="function")try{Mn.onCommitFiberRoot(Ju,e,void 0,(e.current.flags&128)===128)}catch{}}var gn=Math.clz32?Math.clz32:WC,VC=Math.log,HC=Math.LN2;function WC(e){return e>>>=0,e===0?32:31-(VC(e)/HC|0)|0}var Jc=64,Qc=4194304;function ol(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Qd(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,s=e.suspendedLanes,i=e.pingedLanes,o=r&268435455;if(o!==0){var l=o&~s;l!==0?n=ol(l):(i&=o,i!==0&&(n=ol(i)))}else o=r&~s,o!==0?n=ol(o):i!==0&&(n=ol(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&s)&&(s=n&-n,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-gn(t),s=1<<r,n|=e[r],t&=~s;return n}function qC(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function GC(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-gn(i),l=1<<o,c=s[o];c===-1?(!(l&r)||l&n)&&(s[o]=qC(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}function Sm(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function kw(){var e=Jc;return Jc<<=1,!(Jc&4194240)&&(Jc=64),e}function sf(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function yc(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gn(t),e[t]=r}function KC(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var s=31-gn(r),i=1<<s;t[s]=0,n[s]=-1,e[s]=-1,r&=~i}}function hg(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-gn(r),s=1<<n;s&t|e[n]&t&&(e[n]|=t),r&=~s}}var Ke=0;function _w(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Cw,fg,Aw,Ew,Tw,km=!1,Xc=[],zs=null,Bs=null,Vs=null,Ml=new Map,Dl=new Map,Es=[],ZC="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function wv(e,t){switch(e){case"focusin":case"focusout":zs=null;break;case"dragenter":case"dragleave":Bs=null;break;case"mouseover":case"mouseout":Vs=null;break;case"pointerover":case"pointerout":Ml.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dl.delete(t.pointerId)}}function Ho(e,t,r,n,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[s]},t!==null&&(t=wc(t),t!==null&&fg(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function YC(e,t,r,n,s){switch(t){case"focusin":return zs=Ho(zs,e,t,r,n,s),!0;case"dragenter":return Bs=Ho(Bs,e,t,r,n,s),!0;case"mouseover":return Vs=Ho(Vs,e,t,r,n,s),!0;case"pointerover":var i=s.pointerId;return Ml.set(i,Ho(Ml.get(i)||null,e,t,r,n,s)),!0;case"gotpointercapture":return i=s.pointerId,Dl.set(i,Ho(Dl.get(i)||null,e,t,r,n,s)),!0}return!1}function Pw(e){var t=Sa(e.target);if(t!==null){var r=ti(t);if(r!==null){if(t=r.tag,t===13){if(t=yw(r),t!==null){e.blockedOn=t,Tw(e.priority,function(){Aw(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Td(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=_m(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);bm=n,r.target.dispatchEvent(n),bm=null}else return t=wc(r),t!==null&&fg(t),e.blockedOn=r,!1;t.shift()}return!0}function jv(e,t,r){Td(e)&&r.delete(t)}function JC(){km=!1,zs!==null&&Td(zs)&&(zs=null),Bs!==null&&Td(Bs)&&(Bs=null),Vs!==null&&Td(Vs)&&(Vs=null),Ml.forEach(jv),Dl.forEach(jv)}function Wo(e,t){e.blockedOn===t&&(e.blockedOn=null,km||(km=!0,Ar.unstable_scheduleCallback(Ar.unstable_NormalPriority,JC)))}function Ll(e){function t(s){return Wo(s,e)}if(0<Xc.length){Wo(Xc[0],e);for(var r=1;r<Xc.length;r++){var n=Xc[r];n.blockedOn===e&&(n.blockedOn=null)}}for(zs!==null&&Wo(zs,e),Bs!==null&&Wo(Bs,e),Vs!==null&&Wo(Vs,e),Ml.forEach(t),Dl.forEach(t),r=0;r<Es.length;r++)n=Es[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Es.length&&(r=Es[0],r.blockedOn===null);)Pw(r),r.blockedOn===null&&Es.shift()}var qi=hs.ReactCurrentBatchConfig,Xd=!0;function QC(e,t,r,n){var s=Ke,i=qi.transition;qi.transition=null;try{Ke=1,mg(e,t,r,n)}finally{Ke=s,qi.transition=i}}function XC(e,t,r,n){var s=Ke,i=qi.transition;qi.transition=null;try{Ke=4,mg(e,t,r,n)}finally{Ke=s,qi.transition=i}}function mg(e,t,r,n){if(Xd){var s=_m(e,t,r,n);if(s===null)pf(e,t,n,eu,r),wv(e,n);else if(YC(s,e,t,r,n))n.stopPropagation();else if(wv(e,n),t&4&&-1<ZC.indexOf(e)){for(;s!==null;){var i=wc(s);if(i!==null&&Cw(i),i=_m(e,t,r,n),i===null&&pf(e,t,n,eu,r),i===s)break;s=i}s!==null&&n.stopPropagation()}else pf(e,t,n,null,r)}}var eu=null;function _m(e,t,r,n){if(eu=null,e=dg(n),e=Sa(e),e!==null)if(t=ti(e),t===null)e=null;else if(r=t.tag,r===13){if(e=yw(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return eu=e,null}
vendor: 10,163 bytes, line 37
37function Rw(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(UC()){case ug:return 1;case Nw:return 4;case Jd:case zC:return 16;case Sw:return 536870912;default:return 16}default:return 16}}var Ls=null,pg=null,Pd=null;function Iw(){if(Pd)return Pd;var e,t=pg,r=t.length,n,s="value"in Ls?Ls.value:Ls.textContent,i=s.length;for(e=0;e<r&&t[e]===s[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===s[i-n];n++);return Pd=s.slice(e,1<n?1-n:void 0)}function Rd(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ed(){return!0}function Nv(){return!1}function Rr(e){function t(r,n,s,i,o){this._reactName=r,this._targetInst=s,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ed:Nv,this.isPropagationStopped=Nv,this}return ot(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ed)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ed)},persist:function(){},isPersistent:ed}),t}var To={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gg=Rr(To),bc=ot({},To,{view:0,detail:0}),eA=Rr(bc),af,of,qo,Qu=ot({},bc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xg,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==qo&&(qo&&e.type==="mousemove"?(af=e.screenX-qo.screenX,of=e.screenY-qo.screenY):of=af=0,qo=e),af)},movementY:function(e){return"movementY"in e?e.movementY:of}}),Sv=Rr(Qu),tA=ot({},Qu,{dataTransfer:0}),rA=Rr(tA),nA=ot({},bc,{relatedTarget:0}),lf=Rr(nA),sA=ot({},To,{animationName:0,elapsedTime:0,pseudoElement:0}),aA=Rr(sA),iA=ot({},To,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),oA=Rr(iA),lA=ot({},To,{data:0}),kv=Rr(lA),cA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dA={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},uA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hA(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uA[e])?!!t[e]:!1}function xg(){return hA}var fA=ot({},bc,{key:function(e){if(e.key){var t=cA[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Rd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dA[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xg,charCode:function(e){return e.type==="keypress"?Rd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Rd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mA=Rr(fA),pA=ot({},Qu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_v=Rr(pA),gA=ot({},bc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xg}),xA=Rr(gA),vA=ot({},To,{propertyName:0,elapsedTime:0,pseudoElement:0}),yA=Rr(vA),bA=ot({},Qu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),wA=Rr(bA),jA=[9,13,27,32],vg=ss&&"CompositionEvent"in window,xl=null;ss&&"documentMode"in document&&(xl=document.documentMode);var NA=ss&&"TextEvent"in window&&!xl,Ow=ss&&(!vg||xl&&8<xl&&11>=xl),Cv=" ",Av=!1;function Mw(e,t){switch(e){case"keyup":return jA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ei=!1;function SA(e,t){switch(e){case"compositionend":return Dw(t);case"keypress":return t.which!==32?null:(Av=!0,Cv);case"textInput":return e=t.data,e===Cv&&Av?null:e;default:return null}}function kA(e,t){if(Ei)return e==="compositionend"||!vg&&Mw(e,t)?(e=Iw(),Pd=pg=Ls=null,Ei=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ow&&t.locale!=="ko"?null:t.data;default:return null}}var _A={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ev(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_A[e.type]:t==="textarea"}function Lw(e,t,r,n){mw(n),t=tu(t,"onChange"),0<t.length&&(r=new gg("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var vl=null,$l=null;function CA(e){Kw(e,0)}function Xu(e){var t=Ri(e);if(ow(t))return e}function AA(e,t){if(e==="change")return t}var $w=!1;if(ss){var cf;if(ss){var df="oninput"in document;if(!df){var Tv=document.createElement("div");Tv.setAttribute("oninput","return;"),df=typeof Tv.oninput=="function"}cf=df}else cf=!1;$w=cf&&(!document.documentMode||9<document.documentMode)}function Pv(){vl&&(vl.detachEvent("onpropertychange",Fw),$l=vl=null)}function Fw(e){if(e.propertyName==="value"&&Xu($l)){var t=[];Lw(t,$l,e,dg(e)),vw(CA,t)}}function EA(e,t,r){e==="focusin"?(Pv(),vl=t,$l=r,vl.attachEvent("onpropertychange",Fw)):e==="focusout"&&Pv()}function TA(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xu($l)}function PA(e,t){if(e==="click")return Xu(t)}function RA(e,t){if(e==="input"||e==="change")return Xu(t)}function IA(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yn=typeof Object.is=="function"?Object.is:IA;function Fl(e,t){if(yn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var s=r[n];if(!lm.call(t,s)||!yn(e[s],t[s]))return!1}return!0}function Rv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Iv(e,t){var r=Rv(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Rv(r)}}function Uw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zw(){for(var e=window,t=Kd();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Kd(e.document)}return t}function yg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function OA(e){var t=zw(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Uw(r.ownerDocument.documentElement,r)){if(n!==null&&yg(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=r.textContent.length,i=Math.min(n.start,s);n=n.end===void 0?i:Math.min(n.end,s),!e.extend&&i>n&&(s=n,n=i,i=s),s=Iv(r,i);var o=Iv(r,n);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var MA=ss&&"documentMode"in document&&11>=document.documentMode,Ti=null,Cm=null,yl=null,Am=!1;function Ov(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;
vendor: 4,621 bytes, line 37
37Am||Ti==null||Ti!==Kd(n)||(n=Ti,"selectionStart"in n&&yg(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),yl&&Fl(yl,n)||(yl=n,n=tu(Cm,"onSelect"),0<n.length&&(t=new gg("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Ti)))}function td(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Pi={animationend:td("Animation","AnimationEnd"),animationiteration:td("Animation","AnimationIteration"),animationstart:td("Animation","AnimationStart"),transitionend:td("Transition","TransitionEnd")},uf={},Bw={};ss&&(Bw=document.createElement("div").style,"AnimationEvent"in window||(delete Pi.animationend.animation,delete Pi.animationiteration.animation,delete Pi.animationstart.animation),"TransitionEvent"in window||delete Pi.transitionend.transition);function eh(e){if(uf[e])return uf[e];if(!Pi[e])return e;var t=Pi[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Bw)return uf[e]=t[r];return e}var Vw=eh("animationend"),Hw=eh("animationiteration"),Ww=eh("animationstart"),qw=eh("transitionend"),Gw=new Map,Mv="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function oa(e,t){Gw.set(e,t),ei(t,[e])}for(var hf=0;hf<Mv.length;hf++){var ff=Mv[hf],DA=ff.toLowerCase(),LA=ff[0].toUpperCase()+ff.slice(1);oa(DA,"on"+LA)}oa(Vw,"onAnimationEnd");oa(Hw,"onAnimationIteration");oa(Ww,"onAnimationStart");oa("dblclick","onDoubleClick");oa("focusin","onFocus");oa("focusout","onBlur");oa(qw,"onTransitionEnd");co("onMouseEnter",["mouseout","mouseover"]);co("onMouseLeave",["mouseout","mouseover"]);co("onPointerEnter",["pointerout","pointerover"]);co("onPointerLeave",["pointerout","pointerover"]);ei("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ei("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ei("onBeforeInput",["compositionend","keypress","textInput","paste"]);ei("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ei("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ei("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ll="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),$A=new Set("cancel close invalid load scroll toggle".split(" ").concat(ll));function Dv(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,DC(n,t,void 0,e),e.currentTarget=null}function Kw(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],s=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var o=n.length-1;0<=o;o--){var l=n[o],c=l.instance,d=l.currentTarget;if(l=l.listener,c!==i&&s.isPropagationStopped())break e;Dv(s,l,d),i=c}else for(o=0;o<n.length;o++){if(l=n[o],c=l.instance,d=l.currentTarget,l=l.listener,c!==i&&s.isPropagationStopped())break e;Dv(s,l,d),i=c}}}if(Yd)throw e=Nm,Yd=!1,Nm=null,e}function et(e,t){var r=t[Im];r===void 0&&(r=t[Im]=new Set);var n=e+"__bubble";r.has(n)||(Zw(t,e,2,!1),r.add(n))}function mf(e,t,r){var n=0;t&&(n|=4),Zw(r,e,n,t)}var rd="_reactListening"+Math.random().toString(36).slice(2);function Ul(e){if(!e[rd]){e[rd]=!0,rw.forEach(function(r){r!=="selectionchange"&&($A.has(r)||mf(r,!1,e),mf(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[rd]||(t[rd]=!0,mf("selectionchange",!1,t))}}function Zw(e,t,r,n){switch(Rw(t)){case 1:var s=QC;break;case 4:s=XC;break;default:s=mg}r=s.bind(null,t,r,e),s=void 0,!jm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),n?s!==void 0?e.addEventListener(t,r,{capture:!0,passive:s}):e.addEventListener(t,r,!0):s!==void 0?e.addEventListener(t,r,{passive:s}):e.addEventListener(t,r,!1)}function pf(e,t,r,n,s){var i=n;
vendor: 4,819 bytes, line 37
37if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var l=n.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(o===4)for(o=n.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;o=o.return}for(;l!==null;){if(o=Sa(l),o===null)return;if(c=o.tag,c===5||c===6){n=i=o;continue e}l=l.parentNode}}n=n.return}vw(function(){var d=i,u=dg(r),h=[];e:{var f=Gw.get(e);if(f!==void 0){var m=gg,b=e;switch(e){case"keypress":if(Rd(r)===0)break e;case"keydown":case"keyup":m=mA;break;case"focusin":b="focus",m=lf;break;case"focusout":b="blur",m=lf;break;case"beforeblur":case"afterblur":m=lf;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Sv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=rA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=xA;break;case Vw:case Hw:case Ww:m=aA;break;case qw:m=yA;break;case"scroll":m=eA;break;case"wheel":m=wA;break;case"copy":case"cut":case"paste":m=oA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=_v}var x=(t&4)!==0,w=!x&&e==="scroll",v=x?f!==null?f+"Capture":null:f;x=[];for(var p=d,y;p!==null;){y=p;var j=y.stateNode;if(y.tag===5&&j!==null&&(y=j,v!==null&&(j=Ol(p,v),j!=null&&x.push(zl(p,j,y)))),w)break;p=p.return}0<x.length&&(f=new m(f,b,null,r,u),h.push({event:f,listeners:x}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&r!==bm&&(b=r.relatedTarget||r.fromElement)&&(Sa(b)||b[as]))break e;if((m||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,m?(b=r.relatedTarget||r.toElement,m=d,b=b?Sa(b):null,b!==null&&(w=ti(b),b!==w||b.tag!==5&&b.tag!==6)&&(b=null)):(m=null,b=d),m!==b)){if(x=Sv,j="onMouseLeave",v="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(x=_v,j="onPointerLeave",v="onPointerEnter",p="pointer"),w=m==null?f:Ri(m),y=b==null?f:Ri(b),f=new x(j,p+"leave",m,r,u),f.target=w,f.relatedTarget=y,j=null,Sa(u)===d&&(x=new x(v,p+"enter",b,r,u),x.target=y,x.relatedTarget=w,j=x),w=j,m&&b)t:{for(x=m,v=b,p=0,y=x;y;y=ci(y))p++;for(y=0,j=v;j;j=ci(j))y++;for(;0<p-y;)x=ci(x),p--;for(;0<y-p;)v=ci(v),y--;for(;p--;){if(x===v||v!==null&&x===v.alternate)break t;x=ci(x),v=ci(v)}x=null}else x=null;m!==null&&Lv(h,f,m,x,!1),b!==null&&w!==null&&Lv(h,w,b,x,!0)}}e:{if(f=d?Ri(d):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var N=AA;else if(Ev(f))if($w)N=RA;else{N=TA;var S=EA}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(N=PA);if(N&&(N=N(e,d))){Lw(h,N,r,u);break e}S&&S(e,f,d),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&pm(f,"number",f.value)}switch(S=d?Ri(d):window,e){case"focusin":(Ev(S)||S.contentEditable==="true")&&(Ti=S,Cm=d,yl=null);break;case"focusout":yl=Cm=Ti=null;break;case"mousedown":Am=!0;break;case"contextmenu":case"mouseup":case"dragend":Am=!1,Ov(h,r,u);break;case"selectionchange":if(MA)break;case"keydown":case"keyup":Ov(h,r,u)}var k;if(vg)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Ei?Mw(e,r)&&(A="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(A="onCompositionStart");A&&(Ow&&r.locale!=="ko"&&(Ei||A!=="onCompositionStart"?A==="onCompositionEnd"&&Ei&&(k=Iw()):(Ls=u,pg="value"in Ls?Ls.value:Ls.textContent,Ei=!0)),S=tu(d,A),0<S.length&&(A=new kv(A,e,null,r,u),h.push({event:A,listeners:S}),k?A.data=k:(k=Dw(r),k!==null&&(A.data=k)))),(k=NA?SA(e,r):kA(e,r))&&(d=tu(d,"onBeforeInput"),0<d.length&&(u=new kv("onBeforeInput","beforeinput",null,r,u),h.push({event:u,listeners:d}),u.data=k))}Kw(h,t)})}function zl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function tu(e,t){for(var r=t+"Capture",n=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Ol(e,r),i!=null&&n.unshift(zl(e,i,s)),i=Ol(e,t),i!=null&&n.push(zl(e,i,s))),e=e.return}return n}function ci(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Lv(e,t,r,n,s){for(var i=t._reactName,o=[];r!==null&&r!==n;){var l=r,c=l.alternate,d=l.stateNode;if(c!==null&&c===n)break;l.tag===5&&d!==null&&(l=d,s?(c=Ol(r,i),c!=null&&o.unshift(zl(r,c,l))):s||(c=Ol(r,i),c!=null&&o.push(zl(r,c,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var FA=/\r\n?/g,UA=/\u0000|\uFFFD/g;function $v(e){return(typeof e=="string"?e:""+e).replace(FA,`
38`).replace(UA,"")}function nd(e,t,r){if(t=$v(t),$v(e)!==t&&r)throw Error(H(425))}function ru(){}var Em=null,Tm=null;function Pm(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Rm=typeof setTimeout=="function"?setTimeout:void 0,zA=typeof clearTimeout=="function"?clearTimeout:void 0,Fv=typeof Promise=="function"?Promise:void 0,BA=typeof queueMicrotask=="function"?queueMicrotask:typeof Fv<"u"?function(e){return Fv.resolve(null).then(e).catch(VA)}:Rm;function VA(e){setTimeout(function(){throw e})}function gf(e,t){var r=t,n=0;do{var s=r.nextSibling;if(e.removeChild(r),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(n===0){e.removeChild(s),Ll(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=s}while(r);Ll(t)}function Hs(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Uv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Po=Math.random().toString(36).slice(2),Pn="__reactFiber$"+Po,Bl="__reactProps$"+Po,as="__reactContainer$"+Po,Im="__reactEvents$"+Po,HA="__reactListeners$"+Po,WA="__reactHandles$"+Po;function Sa(e){var t=e[Pn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[as]||r[Pn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Uv(e);e!==null;){if(r=e[Pn])return r;e=Uv(e)}return t}e=r,r=e.parentNode}return null}function wc(e){return e=e[Pn]||e[as],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ri(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(H(33))}function th(e){return e[Bl]||null}var Om=[],Ii=-1;function la(e){return{current:e}}function rt(e){0>Ii||(e.current=Om[Ii],Om[Ii]=null,Ii--)}function Qe(e,t){Ii++,Om[Ii]=e.current,e.current=t}var ra={},er=la(ra),pr=la(!1),za=ra;function uo(e,t){var r=e.type.contextTypes;if(!r)return ra;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in r)s[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function gr(e){return e=e.childContextTypes,e!=null}function nu(){rt(pr),rt(er)}function zv(e,t,r){if(er.current!==ra)throw Error(H(168));Qe(er,t),Qe(pr,r)}function Yw(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in t))throw Error(H(108,EC(e)||"Unknown",s));return ot({},r,n)}function su(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ra,za=er.current,Qe(er,e),Qe(pr,pr.current),!0}function Bv(e,t,r){var n=e.stateNode;if(!n)throw Error(H(169));r?(e=Yw(e,t,za),n.__reactInternalMemoizedMergedChildContext=e,rt(pr),rt(er),Qe(er,e)):rt(pr),Qe(pr,r)}var Yn=null,rh=!1,xf=!1;function Jw(e){Yn===null?Yn=[e]:Yn.push(e)}function qA(e){rh=!0,Jw(e)}function ca(){if(!xf&&Yn!==null){xf=!0;var e=0,t=Ke;try{var r=Yn;for(Ke=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Yn=null,rh=!1}catch(s){throw Yn!==null&&(Yn=Yn.slice(e+1)),jw(ug,ca),s}finally{Ke=t,xf=!1}}return null}var Oi=[],Mi=0,au=null,iu=0,$r=[],Fr=0,Ba=null,ts=1,rs="";function ya(e,t){Oi[Mi++]=iu,Oi[Mi++]=au,au=e,iu=t}function Qw(e,t,r){$r[Fr++]=ts,$r[Fr++]=rs,$r[Fr++]=Ba,Ba=e;var n=ts;e=rs;var s=32-gn(n)-1;n&=~(1<<s),r+=1;var i=32-gn(t)+s;if(30<i){var o=s-s%5;i=(n&(1<<o)-1).toString(32),n>>=o,s-=o,ts=1<<32-gn(t)+s|r<<s|n,rs=i+e}else ts=1<<i|r<<s|n,rs=e}function bg(e){e.return!==null&&(ya(e,1),Qw(e,1,0))}function wg(e){for(;e===au;)au=Oi[--Mi],Oi[Mi]=null,iu=Oi[--Mi],Oi[Mi]=null;for(;e===Ba;)Ba=$r[--Fr],$r[Fr]=null,rs=$r[--Fr],$r[Fr]=null,ts=$r[--Fr],$r[Fr]=null}var _r=null,kr=null,nt=!1,hn=null;function Xw(e,t){var r=Ur(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Vv(e,t){switch(e.tag){case 5:var r=e.type;
vendor: 13,718 bytes, line 38
38return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,_r=e,kr=Hs(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,_r=e,kr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Ba!==null?{id:ts,overflow:rs}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Ur(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,_r=e,kr=null,!0):!1;default:return!1}}function Mm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Dm(e){if(nt){var t=kr;if(t){var r=t;if(!Vv(e,t)){if(Mm(e))throw Error(H(418));t=Hs(r.nextSibling);var n=_r;t&&Vv(e,t)?Xw(n,r):(e.flags=e.flags&-4097|2,nt=!1,_r=e)}}else{if(Mm(e))throw Error(H(418));e.flags=e.flags&-4097|2,nt=!1,_r=e}}}function Hv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_r=e}function sd(e){if(e!==_r)return!1;if(!nt)return Hv(e),nt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Pm(e.type,e.memoizedProps)),t&&(t=kr)){if(Mm(e))throw ej(),Error(H(418));for(;t;)Xw(e,t),t=Hs(t.nextSibling)}if(Hv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){kr=Hs(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}kr=null}}else kr=_r?Hs(e.stateNode.nextSibling):null;return!0}function ej(){for(var e=kr;e;)e=Hs(e.nextSibling)}function ho(){kr=_r=null,nt=!1}function jg(e){hn===null?hn=[e]:hn.push(e)}var GA=hs.ReactCurrentBatchConfig;function Go(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(H(309));var n=r.stateNode}if(!n)throw Error(H(147,e));var s=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var l=s.refs;o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(H(284));if(!r._owner)throw Error(H(290,e))}return e}function ad(e,t){throw e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Wv(e){var t=e._init;return t(e._payload)}function tj(e){function t(v,p){if(e){var y=v.deletions;y===null?(v.deletions=[p],v.flags|=16):y.push(p)}}function r(v,p){if(!e)return null;for(;p!==null;)t(v,p),p=p.sibling;return null}function n(v,p){for(v=new Map;p!==null;)p.key!==null?v.set(p.key,p):v.set(p.index,p),p=p.sibling;return v}function s(v,p){return v=Ks(v,p),v.index=0,v.sibling=null,v}function i(v,p,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<p?(v.flags|=2,p):y):(v.flags|=2,p)):(v.flags|=1048576,p)}function o(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,p,y,j){return p===null||p.tag!==6?(p=Sf(y,v.mode,j),p.return=v,p):(p=s(p,y),p.return=v,p)}function c(v,p,y,j){var N=y.type;return N===Ai?u(v,p,y.props.children,j,y.key):p!==null&&(p.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===ks&&Wv(N)===p.type)?(j=s(p,y.props),j.ref=Go(v,p,y),j.return=v,j):(j=Fd(y.type,y.key,y.props,null,v.mode,j),j.ref=Go(v,p,y),j.return=v,j)}function d(v,p,y,j){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=kf(y,v.mode,j),p.return=v,p):(p=s(p,y.children||[]),p.return=v,p)}function u(v,p,y,j,N){return p===null||p.tag!==7?(p=Ua(y,v.mode,j,N),p.return=v,p):(p=s(p,y),p.return=v,p)}function h(v,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Sf(""+p,v.mode,y),p.return=v,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Kc:return y=Fd(p.type,p.key,p.props,null,v.mode,y),y.ref=Go(v,null,p),y.return=v,y;case Ci:return p=kf(p,v.mode,y),p.return=v,p;case ks:var j=p._init;return h(v,j(p._payload),y)}if(il(p)||Bo(p))return p=Ua(p,v.mode,y,null),p.return=v,p;ad(v,p)}return null}function f(v,p,y,j){var N=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return N!==null?null:l(v,p,""+y,j);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Kc:return y.key===N?c(v,p,y,j):null;case Ci:return y.key===N?d(v,p,y,j):null;case ks:return N=y._init,f(v,p,N(y._payload),j)}if(il(y)||Bo(y))return N!==null?null:u(v,p,y,j,null);ad(v,y)}return null}function m(v,p,y,j,N){if(typeof j=="string"&&j!==""||typeof j=="number")return v=v.get(y)||null,l(p,v,""+j,N);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Kc:return v=v.get(j.key===null?y:j.key)||null,c(p,v,j,N);case Ci:return v=v.get(j.key===null?y:j.key)||null,d(p,v,j,N);case ks:var S=j._init;return m(v,p,y,S(j._payload),N)}if(il(j)||Bo(j))return v=v.get(y)||null,u(p,v,j,N,null);ad(p,j)}return null}function b(v,p,y,j){for(var N=null,S=null,k=p,A=p=0,E=null;k!==null&&A<y.length;A++){k.index>A?(E=k,k=null):E=k.sibling;var O=f(v,k,y[A],j);if(O===null){k===null&&(k=E);break}e&&k&&O.alternate===null&&t(v,k),p=i(O,p,A),S===null?N=O:S.sibling=O,S=O,k=E}if(A===y.length)return r(v,k),nt&&ya(v,A),N;if(k===null){for(;A<y.length;A++)k=h(v,y[A],j),k!==null&&(p=i(k,p,A),S===null?N=k:S.sibling=k,S=k);return nt&&ya(v,A),N}for(k=n(v,k);A<y.length;A++)E=m(k,v,A,y[A],j),E!==null&&(e&&E.alternate!==null&&k.delete(E.key===null?A:E.key),p=i(E,p,A),S===null?N=E:S.sibling=E,S=E);return e&&k.forEach(function(R){return t(v,R)}),nt&&ya(v,A),N}function x(v,p,y,j){var N=Bo(y);if(typeof N!="function")throw Error(H(150));if(y=N.call(y),y==null)throw Error(H(151));for(var S=N=null,k=p,A=p=0,E=null,O=y.next();k!==null&&!O.done;A++,O=y.next()){k.index>A?(E=k,k=null):E=k.sibling;var R=f(v,k,O.value,j);if(R===null){k===null&&(k=E);break}e&&k&&R.alternate===null&&t(v,k),p=i(R,p,A),S===null?N=R:S.sibling=R,S=R,k=E}if(O.done)return r(v,k),nt&&ya(v,A),N;if(k===null){for(;!O.done;A++,O=y.next())O=h(v,O.value,j),O!==null&&(p=i(O,p,A),S===null?N=O:S.sibling=O,S=O);return nt&&ya(v,A),N}for(k=n(v,k);!O.done;A++,O=y.next())O=m(k,v,A,O.value,j),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?A:O.key),p=i(O,p,A),S===null?N=O:S.sibling=O,S=O);return e&&k.forEach(function(I){return t(v,I)}),nt&&ya(v,A),N}function w(v,p,y,j){if(typeof y=="object"&&y!==null&&y.type===Ai&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Kc:e:{for(var N=y.key,S=p;S!==null;){if(S.key===N){if(N=y.type,N===Ai){if(S.tag===7){r(v,S.sibling),p=s(S,y.props.children),p.return=v,v=p;break e}}else if(S.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===ks&&Wv(N)===S.type){r(v,S.sibling),p=s(S,y.props),p.ref=Go(v,S,y),p.return=v,v=p;break e}r(v,S);break}else t(v,S);S=S.sibling}y.type===Ai?(p=Ua(y.props.children,v.mode,j,y.key),p.return=v,v=p):(j=Fd(y.type,y.key,y.props,null,v.mode,j),j.ref=Go(v,p,y),j.return=v,v=j)}return o(v);case Ci:e:{for(S=y.key;p!==null;){if(p.key===S)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){r(v,p.sibling),p=s(p,y.children||[]),p.return=v,v=p;break e}else{r(v,p);break}else t(v,p);p=p.sibling}p=kf(y,v.mode,j),p.return=v,v=p}return o(v);case ks:return S=y._init,w(v,p,S(y._payload),j)}if(il(y))return b(v,p,y,j);if(Bo(y))return x(v,p,y,j);ad(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(r(v,p.sibling),p=s(p,y),p.return=v,v=p):(r(v,p),p=Sf(y,v.mode,j),p.return=v,v=p),o(v)):r(v,p)}return w}var fo=tj(!0),rj=tj(!1),ou=la(null),lu=null,Di=null,Ng=null;function Sg(){Ng=Di=lu=null}function kg(e){var t=ou.current;rt(ou),e._currentValue=t}function Lm(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Gi(e,t){lu=e,Ng=Di=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mr=!0),e.firstContext=null)}function Hr(e){var t=e._currentValue;if(Ng!==e)if(e={context:e,memoizedValue:t,next:null},Di===null){if(lu===null)throw Error(H(308));Di=e,lu.dependencies={lanes:0,firstContext:e}}else Di=Di.next=e;return t}var ka=null;function _g(e){ka===null?ka=[e]:ka.push(e)}function nj(e,t,r,n){var s=t.interleaved;return s===null?(r.next=r,_g(t)):(r.next=s.next,s.next=r),t.interleaved=r,is(e,n)}function is(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var _s=!1;function Cg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function sj(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ns(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ws(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,De&2){var s=n.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),n.pending=t,is(e,r)}return s=n.interleaved,s===null?(t.next=t,_g(n)):(t.next=s.next,s.next=t),n.interleaved=t,is(e,r)}function Id(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,hg(e,r)}}function qv(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?s=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?s=i=t:i=i.next=t}else s=i=t;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function cu(e,t,r,n){var s=e.updateQueue;_s=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var c=l,d=c.next;c.next=null,o===null?i=d:o.next=d,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==o&&(l===null?u.firstBaseUpdate=d:l.next=d,u.lastBaseUpdate=c))}if(i!==null){var h=s.baseState;o=0,u=d=c=null,l=i;do{var f=l.lane,m=l.eventTime;if((n&f)===f){u!==null&&(u=u.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var b=e,x=l;switch(f=t,m=r,x.tag){case 1:if(b=x.payload,typeof b=="function"){h=b.call(m,h,f);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=x.payload,f=typeof b=="function"?b.call(m,h,f):b,f==null)break e;h=ot({},h,f);break e;case 2:_s=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=s.effects,f===null?s.effects=[l]:f.push(l))}else m={eventTime:m,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(d=u=m,c=h):u=u.next=m,o|=f;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;f=l,l=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(u===null&&(c=h),s.baseState=c,s.firstBaseUpdate=d,s.lastBaseUpdate=u,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);Ha|=o,e.lanes=o,e.memoizedState=h}}function Gv(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],s=n.callback;if(s!==null){if(n.callback=null,n=r,typeof s!="function")throw Error(H(191,s));s.call(n)}}}var jc={},Dn=la(jc),Vl=la(jc),Hl=la(jc);function _a(e){if(e===jc)throw Error(H(174));return e}function Ag(e,t){switch(Qe(Hl,t),Qe(Vl,e),Qe(Dn,jc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xm(t,e)}rt(Dn),Qe(Dn,t)}function mo(){rt(Dn),rt(Vl),rt(Hl)}function aj(e){_a(Hl.current);var t=_a(Dn.current),r=xm(t,e.type);t!==r&&(Qe(Vl,e),Qe(Dn,r))}function Eg(e){Vl.current===e&&(rt(Dn),rt(Vl))}var st=la(0);function du(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vf=[];function Tg(){for(var e=0;e<vf.length;e++)vf[e]._workInProgressVersionPrimary=null;vf.length=0}var Od=hs.ReactCurrentDispatcher,yf=hs.ReactCurrentBatchConfig,Va=0,it=null,At=null,It=null,uu=!1,bl=!1,Wl=0,KA=0;function qt(){throw Error(H(321))}function Pg(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!yn(e[r],t[r]))return!1;return!0}function Rg(e,t,r,n,s,i){if(Va=i,it=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Od.current=e===null||e.memoizedState===null?QA:XA,e=r(n,s),bl){i=0;do{if(bl=!1,Wl=0,25<=i)throw Error(H(301));i+=1,It=At=null,t.updateQueue=null,Od.current=eE,e=r(n,s)}while(bl)}if(Od.current=hu,t=At!==null&&At.next!==null,Va=0,It=At=it=null,uu=!1,t)throw Error(H(300));return e}function Ig(){var e=Wl!==0;return Wl=0,e}function Cn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return It===null?it.memoizedState=It=e:It=It.next=e,It}function Wr(){if(At===null){var e=it.alternate;e=e!==null?e.memoizedState:null}else e=At.next;var t=It===null?it.memoizedState:It.next;if(t!==null)It=t,At=e;else{if(e===null)throw Error(H(310));At=e,e={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},It===null?it.memoizedState=It=e:It=It.next=e}return It}function ql(e,t){return typeof t=="function"?t(e):t}function bf(e){var t=Wr(),r=t.queue;if(r===null)throw Error(H(311));r.lastRenderedReducer=e;
vendor: 5,688 bytes, line 38
38var n=At,s=n.baseQueue,i=r.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}n.baseQueue=s=i,r.pending=null}if(s!==null){i=s.next,n=n.baseState;var l=o=null,c=null,d=i;do{var u=d.lane;if((Va&u)===u)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),n=d.hasEagerState?d.eagerState:e(n,d.action);else{var h={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(l=c=h,o=n):c=c.next=h,it.lanes|=u,Ha|=u}d=d.next}while(d!==null&&d!==i);c===null?o=n:c.next=l,yn(n,t.memoizedState)||(mr=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=c,r.lastRenderedState=n}if(e=r.interleaved,e!==null){s=e;do i=s.lane,it.lanes|=i,Ha|=i,s=s.next;while(s!==e)}else s===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wf(e){var t=Wr(),r=t.queue;if(r===null)throw Error(H(311));r.lastRenderedReducer=e;var n=r.dispatch,s=r.pending,i=t.memoizedState;if(s!==null){r.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);yn(i,t.memoizedState)||(mr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function ij(){}function oj(e,t){var r=it,n=Wr(),s=t(),i=!yn(n.memoizedState,s);if(i&&(n.memoizedState=s,mr=!0),n=n.queue,Og(dj.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||It!==null&&It.memoizedState.tag&1){if(r.flags|=2048,Gl(9,cj.bind(null,r,n,s,t),void 0,null),Mt===null)throw Error(H(349));Va&30||lj(r,t,s)}return s}function lj(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=it.updateQueue,t===null?(t={lastEffect:null,stores:null},it.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function cj(e,t,r,n){t.value=r,t.getSnapshot=n,uj(t)&&hj(e)}function dj(e,t,r){return r(function(){uj(t)&&hj(e)})}function uj(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!yn(e,r)}catch{return!0}}function hj(e){var t=is(e,1);t!==null&&xn(t,e,1,-1)}function Kv(e){var t=Cn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ql,lastRenderedState:e},t.queue=e,e=e.dispatch=JA.bind(null,it,e),[t.memoizedState,e]}function Gl(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=it.updateQueue,t===null?(t={lastEffect:null,stores:null},it.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function fj(){return Wr().memoizedState}function Md(e,t,r,n){var s=Cn();it.flags|=e,s.memoizedState=Gl(1|t,r,void 0,n===void 0?null:n)}function nh(e,t,r,n){var s=Wr();n=n===void 0?null:n;var i=void 0;if(At!==null){var o=At.memoizedState;if(i=o.destroy,n!==null&&Pg(n,o.deps)){s.memoizedState=Gl(t,r,i,n);return}}it.flags|=e,s.memoizedState=Gl(1|t,r,i,n)}function Zv(e,t){return Md(8390656,8,e,t)}function Og(e,t){return nh(2048,8,e,t)}function mj(e,t){return nh(4,2,e,t)}function pj(e,t){return nh(4,4,e,t)}function gj(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function xj(e,t,r){return r=r!=null?r.concat([e]):null,nh(4,4,gj.bind(null,t,e),r)}function Mg(){}function vj(e,t){var r=Wr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Pg(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function yj(e,t){var r=Wr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Pg(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function bj(e,t,r){return Va&21?(yn(r,t)||(r=kw(),it.lanes|=r,Ha|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,mr=!0),e.memoizedState=r)}function ZA(e,t){var r=Ke;Ke=r!==0&&4>r?r:4,e(!0);var n=yf.transition;yf.transition={};try{e(!1),t()}finally{Ke=r,yf.transition=n}}function wj(){return Wr().memoizedState}function YA(e,t,r){var n=Gs(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},jj(e))Nj(t,r);else if(r=nj(e,t,r,n),r!==null){var s=ar();xn(r,e,n,s),Sj(r,t,n)}}function JA(e,t,r){var n=Gs(e),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(jj(e))Nj(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,r);if(s.hasEagerState=!0,s.eagerState=l,yn(l,o)){var c=t.interleaved;c===null?(s.next=s,_g(t)):(s.next=c.next,c.next=s),t.interleaved=s;return}}catch{}finally{}r=nj(e,t,s,n),r!==null&&(s=ar(),xn(r,e,n,s),Sj(r,t,n))}}function jj(e){var t=e.alternate;return e===it||t!==null&&t===it}function Nj(e,t){bl=uu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Sj(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,hg(e,r)}}var hu={readContext:Hr,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useInsertionEffect:qt,useLayoutEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useMutableSource:qt,useSyncExternalStore:qt,useId:qt,unstable_isNewReconciler:!1},QA={readContext:Hr,useCallback:function(e,t){return Cn().memoizedState=[e,t===void 0?null:t],e},useContext:Hr,useEffect:Zv,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Md(4194308,4,gj.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Md(4194308,4,e,t)},useInsertionEffect:function(e,t){return Md(4,2,e,t)},useMemo:function(e,t){var r=Cn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Cn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=YA.bind(null,it,e),[n.memoizedState,e]}
vendor: 7,431 bytes, lines 38-40
38,useRef:function(e){var t=Cn();return e={current:e},t.memoizedState=e},useState:Kv,useDebugValue:Mg,useDeferredValue:function(e){return Cn().memoizedState=e},useTransition:function(){var e=Kv(!1),t=e[0];return e=ZA.bind(null,e[1]),Cn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=it,s=Cn();if(nt){if(r===void 0)throw Error(H(407));r=r()}else{if(r=t(),Mt===null)throw Error(H(349));Va&30||lj(n,t,r)}s.memoizedState=r;var i={value:r,getSnapshot:t};return s.queue=i,Zv(dj.bind(null,n,i,e),[e]),n.flags|=2048,Gl(9,cj.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Cn(),t=Mt.identifierPrefix;if(nt){var r=rs,n=ts;r=(n&~(1<<32-gn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Wl++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=KA++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},XA={readContext:Hr,useCallback:vj,useContext:Hr,useEffect:Og,useImperativeHandle:xj,useInsertionEffect:mj,useLayoutEffect:pj,useMemo:yj,useReducer:bf,useRef:fj,useState:function(){return bf(ql)},useDebugValue:Mg,useDeferredValue:function(e){var t=Wr();return bj(t,At.memoizedState,e)},useTransition:function(){var e=bf(ql)[0],t=Wr().memoizedState;return[e,t]},useMutableSource:ij,useSyncExternalStore:oj,useId:wj,unstable_isNewReconciler:!1},eE={readContext:Hr,useCallback:vj,useContext:Hr,useEffect:Og,useImperativeHandle:xj,useInsertionEffect:mj,useLayoutEffect:pj,useMemo:yj,useReducer:wf,useRef:fj,useState:function(){return wf(ql)},useDebugValue:Mg,useDeferredValue:function(e){var t=Wr();return At===null?t.memoizedState=e:bj(t,At.memoizedState,e)},useTransition:function(){var e=wf(ql)[0],t=Wr().memoizedState;return[e,t]},useMutableSource:ij,useSyncExternalStore:oj,useId:wj,unstable_isNewReconciler:!1};function sn(e,t){if(e&&e.defaultProps){t=ot({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function $m(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:ot({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var sh={isMounted:function(e){return(e=e._reactInternals)?ti(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=ar(),s=Gs(e),i=ns(n,s);i.payload=t,r!=null&&(i.callback=r),t=Ws(e,i,s),t!==null&&(xn(t,e,s,n),Id(t,e,s))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=ar(),s=Gs(e),i=ns(n,s);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=Ws(e,i,s),t!==null&&(xn(t,e,s,n),Id(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ar(),n=Gs(e),s=ns(r,n);s.tag=2,t!=null&&(s.callback=t),t=Ws(e,s,n),t!==null&&(xn(t,e,n,r),Id(t,e,n))}};function Yv(e,t,r,n,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,o):t.prototype&&t.prototype.isPureReactComponent?!Fl(r,n)||!Fl(s,i):!0}function kj(e,t,r){var n=!1,s=ra,i=t.contextType;return typeof i=="object"&&i!==null?i=Hr(i):(s=gr(t)?za:er.current,n=t.contextTypes,i=(n=n!=null)?uo(e,s):ra),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=sh,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Jv(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&sh.enqueueReplaceState(t,t.state,null)}function Fm(e,t,r,n){var s=e.stateNode;s.props=r,s.state=e.memoizedState,s.refs={},Cg(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Hr(i):(i=gr(t)?za:er.current,s.context=uo(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&($m(e,t,i,r),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&sh.enqueueReplaceState(s,s.state,null),cu(e,r,s,n),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function po(e,t){try{var r="",n=t;do r+=AC(n),n=n.return;while(n);var s=r}catch(i){s=` 39Error generating stack: `+i.message+` 40`+i.stack}return{value:e,source:t,stack:s,digest:null}}function jf(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Um(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var tE=typeof WeakMap=="function"?WeakMap:Map;function _j(e,t,r){r=ns(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){mu||(mu=!0,Ym=n),Um(e,t)},r}function Cj(e,t,r){r=ns(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var s=t.value;r.payload=function(){return n(s)},r.callback=function(){Um(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Um(e,t),typeof n!="function"&&(qs===null?qs=new Set([this]):qs.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function Qv(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new tE;var s=new Set;n.set(t,s)}else s=n.get(t),s===void 0&&(s=new Set,n.set(t,s));s.has(r)||(s.add(r),e=pE.bind(null,e,t,r),t.then(e,e))}function Xv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ey(e,t,r,n,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=ns(-1,1),t.tag=2,Ws(r,t,1))),r.lanes|=1),e)}var rE=hs.ReactCurrentOwner,mr=!1;function rr(e,t,r,n){t.child=e===null?rj(t,null,r,n):fo(t,e.child,r,n)}function ty(e,t,r,n,s){r=r.render;var i=t.ref;return Gi(t,s),n=Rg(e,t,r,n,i,s),r=Ig(),e!==null&&!mr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,os(e,t,s)):(nt&&r&&bg(t),t.flags|=1,rr(e,t,n,s),t.child)}function ry(e,t,r,n,s){if(e===null){var i=r.type;return typeof i=="function"&&!Vg(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,Aj(e,t,i,n,s)):(e=Fd(r.type,null,n,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(r=r.compare,r=r!==null?r:Fl,r(o,n)&&e.ref===t.ref)return os(e,t,s)}return t.flags|=1,e=Ks(i,n),e.ref=t.ref,e.return=t,t.child=e}function Aj(e,t,r,n,s){if(e!==null){var i=e.memoizedProps;if(Fl(i,n)&&e.ref===t.ref)if(mr=!1,t.pendingProps=n=i,(e.lanes&s)!==0)e.flags&131072&&(mr=!0);else return t.lanes=e.lanes,os(e,t,s)}return zm(e,t,r,n,s)}function Ej(e,t,r){var n=t.pendingProps,s=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Qe($i,br),br|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Qe($i,br),br|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,Qe($i,br),br|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,Qe($i,br),br|=n;return rr(e,t,s,r),t.child}function Tj(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 6,328 bytes, line 40
40function zm(e,t,r,n,s){var i=gr(r)?za:er.current;return i=uo(t,i),Gi(t,s),r=Rg(e,t,r,n,i,s),n=Ig(),e!==null&&!mr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,os(e,t,s)):(nt&&n&&bg(t),t.flags|=1,rr(e,t,r,s),t.child)}function ny(e,t,r,n,s){if(gr(r)){var i=!0;su(t)}else i=!1;if(Gi(t,s),t.stateNode===null)Dd(e,t),kj(t,r,n),Fm(t,r,n,s),n=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,d=r.contextType;typeof d=="object"&&d!==null?d=Hr(d):(d=gr(r)?za:er.current,d=uo(t,d));var u=r.getDerivedStateFromProps,h=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||c!==d)&&Jv(t,o,n,d),_s=!1;var f=t.memoizedState;o.state=f,cu(t,n,o,s),c=t.memoizedState,l!==n||f!==c||pr.current||_s?(typeof u=="function"&&($m(t,r,u,n),c=t.memoizedState),(l=_s||Yv(t,r,l,n,f,c,d))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=c),o.props=n,o.state=c,o.context=d,n=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,sj(e,t),l=t.memoizedProps,d=t.type===t.elementType?l:sn(t.type,l),o.props=d,h=t.pendingProps,f=o.context,c=r.contextType,typeof c=="object"&&c!==null?c=Hr(c):(c=gr(r)?za:er.current,c=uo(t,c));var m=r.getDerivedStateFromProps;(u=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==h||f!==c)&&Jv(t,o,n,c),_s=!1,f=t.memoizedState,o.state=f,cu(t,n,o,s);var b=t.memoizedState;l!==h||f!==b||pr.current||_s?(typeof m=="function"&&($m(t,r,m,n),b=t.memoizedState),(d=_s||Yv(t,r,d,n,f,b,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,b,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,b,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=b),o.props=n,o.state=b,o.context=c,n=d):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return Bm(e,t,r,n,i,s)}function Bm(e,t,r,n,s,i){Tj(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return s&&Bv(t,r,!1),os(e,t,i);n=t.stateNode,rE.current=t;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=fo(t,e.child,null,i),t.child=fo(t,null,l,i)):rr(e,t,l,i),t.memoizedState=n.state,s&&Bv(t,r,!0),t.child}function Pj(e){var t=e.stateNode;t.pendingContext?zv(e,t.pendingContext,t.pendingContext!==t.context):t.context&&zv(e,t.context,!1),Ag(e,t.containerInfo)}function sy(e,t,r,n,s){return ho(),jg(s),t.flags|=256,rr(e,t,r,n),t.child}var Vm={dehydrated:null,treeContext:null,retryLane:0};function Hm(e){return{baseLanes:e,cachePool:null,transitions:null}}function Rj(e,t,r){var n=t.pendingProps,s=st.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Qe(st,s&1),e===null)return Dm(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,i?(n=t.mode,i=t.child,o={mode:"hidden",children:o},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=oh(o,n,0,null),e=Ua(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Hm(r),t.memoizedState=Vm,e):Dg(t,o));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return nE(e,t,o,n,l,s,r);if(i){i=n.fallback,o=t.mode,s=e.child,l=s.sibling;var c={mode:"hidden",children:n.children};return!(o&1)&&t.child!==s?(n=t.child,n.childLanes=0,n.pendingProps=c,t.deletions=null):(n=Ks(s,c),n.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Ks(l,i):(i=Ua(i,o,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,o=e.child.memoizedState,o=o===null?Hm(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~r,t.memoizedState=Vm,n}return i=e.child,e=i.sibling,n=Ks(i,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Dg(e,t){return t=oh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function id(e,t,r,n){return n!==null&&jg(n),fo(t,e.child,null,r),e=Dg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nE(e,t,r,n,s,i,o){if(r)return t.flags&256?(t.flags&=-257,n=jf(Error(H(422))),id(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,s=t.mode,n=oh({mode:"visible",children:n.children},s,0,null),i=Ua(i,s,o,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&fo(t,e.child,null,o),t.child.memoizedState=Hm(o),t.memoizedState=Vm,i);if(!(t.mode&1))return id(e,t,o,null);if(s.data==="$!"){if(n=s.nextSibling&&s.nextSibling.dataset,n)var l=n.dgst;return n=l,i=Error(H(419)),n=jf(i,n,void 0),id(e,t,o,n)}if(l=(o&e.childLanes)!==0,mr||l){if(n=Mt,n!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(n.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,is(e,s),xn(n,e,
vendor: 7,301 bytes, line 40
40s,-1))}return Bg(),n=jf(Error(H(421))),id(e,t,o,n)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=gE.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,kr=Hs(s.nextSibling),_r=t,nt=!0,hn=null,e!==null&&($r[Fr++]=ts,$r[Fr++]=rs,$r[Fr++]=Ba,ts=e.id,rs=e.overflow,Ba=t),t=Dg(t,n.children),t.flags|=4096,t)}function ay(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Lm(e.return,t,r)}function Nf(e,t,r,n,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=s)}function Ij(e,t,r){var n=t.pendingProps,s=n.revealOrder,i=n.tail;if(rr(e,t,n.children,r),n=st.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ay(e,r,t);else if(e.tag===19)ay(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Qe(st,n),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&du(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),Nf(t,!1,s,r,i);break;case"backwards":for(r=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&du(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}Nf(t,!0,r,null,i);break;case"together":Nf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Dd(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function os(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ha|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,r=Ks(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ks(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function sE(e,t,r){switch(t.tag){case 3:Pj(t),ho();break;case 5:aj(t);break;case 1:gr(t.type)&&su(t);break;case 4:Ag(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,s=t.memoizedProps.value;Qe(ou,n._currentValue),n._currentValue=s;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Qe(st,st.current&1),t.flags|=128,null):r&t.child.childLanes?Rj(e,t,r):(Qe(st,st.current&1),e=os(e,t,r),e!==null?e.sibling:null);Qe(st,st.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return Ij(e,t,r);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Qe(st,st.current),n)break;return null;case 22:case 23:return t.lanes=0,Ej(e,t,r)}return os(e,t,r)}var Oj,Wm,Mj,Dj;Oj=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Wm=function(){};Mj=function(e,t,r,n){var s=e.memoizedProps;if(s!==n){e=t.stateNode,_a(Dn.current);var i=null;switch(r){case"input":s=fm(e,s),n=fm(e,n),i=[];break;case"select":s=ot({},s,{value:void 0}),n=ot({},n,{value:void 0}),i=[];break;case"textarea":s=gm(e,s),n=gm(e,n),i=[];break;default:typeof s.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=ru)}vm(r,n);var o;r=null;for(d in s)if(!n.hasOwnProperty(d)&&s.hasOwnProperty(d)&&s[d]!=null)if(d==="style"){var l=s[d];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Rl.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in n){var c=n[d];if(l=s!=null?s[d]:void 0,n.hasOwnProperty(d)&&c!==l&&(c!=null||l!=null))if(d==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(r||(r={}),r[o]=c[o])}else r||(i||(i=[]),i.push(d,r)),r=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Rl.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&et("scroll",e),i||l===c||(i=[])):(i=i||[]).push(d,c))}r&&(i=i||[]).push("style",r);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};Dj=function(e,t,r,n){r!==n&&(t.flags|=4)};function Ko(e,t){if(!nt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Gt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags&14680064,n|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function aE(e,t,r){var n=t.pendingProps;switch(wg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gt(t),null;case 1:return gr(t.type)&&nu(),Gt(t),null;case 3:return n=t.stateNode,mo(),rt(pr),rt(er),Tg(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(sd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,hn!==null&&(Xm(hn),hn=null))),Wm(e,t),Gt(t),null;case 5:Eg(t);var s=_a(Hl.current);if(r=t.type,e!==null&&t.stateNode!=null)Mj(e,t,r,n,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(H(166));return Gt(t),null}if(e=_a(Dn.current),sd(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Pn]=t,n[Bl]=i,e=(t.mode&1)!==0,r){case"dialog":et("cancel",n),et("close",n);break;case"iframe":case"object":case"embed":et("load",n);break;case"video":case"audio":for(s=0;s<ll.length;s++)et(ll[s],n);break;case"source":et("error",n);break;case"img":case"image":case"link":et("error",n),et("load",n);break;case"details":et("toggle",n);break;case"input":mv(n,i),et("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},et("invalid",n);break;case"textarea":gv(n,i),et("invalid",n)}vm(r,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?n.textContent!==l&&(i.suppressHydrationWarning!==!0&&nd(n.textContent,l,e),s=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&nd(n.textContent,l,e),s=["children",""+l]):Rl.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&et("scroll",n)}switch(r){case"input":Zc(n),pv(n,i,!0);break;case"textarea":Zc(n),xv(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=ru)}n=s,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=dw(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Pn]=t,e[Bl]=n,Oj(e,t,!1,!1),t.stateNode=e;e:{switch(o=ym(r,n),r){case"dialog":et("cancel",e),et("close",e),s=n;break;case"iframe":case"object":case"embed":et("load",e),s=n;break;case"video":case"audio":for(s=0;s<ll.length;s++)et(ll[s],e);s=n;break;case"source":et("error",e),s=n;break;case"img":case"image":case"link":et("error",e),et("load",e),s=n;break;case"details":et("toggle",e),s=n;break;case"input":mv(e,n),s=fm(e,n),et("invalid",e);break;case"option":s=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},s=ot({},n,{value:void 0}),et("invalid",e);break;case"textarea":gv(e,n),s=gm(e,n),et("invalid",e);break;default:s=n}vm(r,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?fw(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&uw(e,c)):i==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&Il(e,c):typeof c=="number"&&Il(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Rl.hasOwnProperty(i)?c!=null&&i==="onScroll"&&et("scroll",e):c!=null&&ig(e,i,c,o))}switch(r){case"input":Zc(e),pv(e,n,!1);break;case"textarea":Zc(e),xv(e);break;case"option":n.value!=null&&e.setAttribute("value",""+ta(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?Vi(e,!!n.multiple,i,!1):n.defaultValue!=null&&Vi(e,!!n.multiple,n.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=ru)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Gt(t),null;case 6:if(e&&t.stateNode!=null)Dj(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(H(166));if(r=_a(Hl.current),_a(Dn.current),sd(t)){if(n=t.stateNode,r=t.memoizedProps,n[Pn]=t,(i=n.nodeValue!==r)&&(e=_r,e!==null))switch(e.tag){case 3:nd(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&nd(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Pn]=t,t.stateNode=n}return Gt(t),null;case 13:if(rt(st),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(nt&&kr!==null&&t.mode&1&&!(t.flags&128))ej(),ho(),t.flags|=98560,i=!1;else if(i=sd(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(H(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(H(317));i[Pn]=t}else ho(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Gt(t),i=!1}else hn!==null&&(Xm(hn),hn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||st.current&1?Tt===0&&(Tt=3):Bg())),t.updateQueue!==null&&(t.flags|=4),Gt(t),null);
vendor: 28,034 bytes, line 40
40case 4:return mo(),Wm(e,t),e===null&&Ul(t.stateNode.containerInfo),Gt(t),null;case 10:return kg(t.type._context),Gt(t),null;case 17:return gr(t.type)&&nu(),Gt(t),null;case 19:if(rt(st),i=t.memoizedState,i===null)return Gt(t),null;if(n=(t.flags&128)!==0,o=i.rendering,o===null)if(n)Ko(i,!1);else{if(Tt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=du(e),o!==null){for(t.flags|=128,Ko(i,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Qe(st,st.current&1|2),t.child}e=e.sibling}i.tail!==null&&xt()>go&&(t.flags|=128,n=!0,Ko(i,!1),t.lanes=4194304)}else{if(!n)if(e=du(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ko(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!nt)return Gt(t),null}else 2*xt()-i.renderingStartTime>go&&r!==1073741824&&(t.flags|=128,n=!0,Ko(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(r=i.last,r!==null?r.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=xt(),t.sibling=null,r=st.current,Qe(st,n?r&1|2:r&1),t):(Gt(t),null);case 22:case 23:return zg(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?br&1073741824&&(Gt(t),t.subtreeFlags&6&&(t.flags|=8192)):Gt(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function iE(e,t){switch(wg(t),t.tag){case 1:return gr(t.type)&&nu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mo(),rt(pr),rt(er),Tg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Eg(t),null;case 13:if(rt(st),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return rt(st),null;case 4:return mo(),null;case 10:return kg(t.type._context),null;case 22:case 23:return zg(),null;case 24:return null;default:return null}}var od=!1,Zt=!1,oE=typeof WeakSet=="function"?WeakSet:Set,ae=null;function Li(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ut(e,t,n)}else r.current=null}function qm(e,t,r){try{r()}catch(n){ut(e,t,n)}}var iy=!1;function lE(e,t){if(Em=Xd,e=zw(),yg(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,l=-1,c=-1,d=0,u=0,h=e,f=null;t:for(;;){for(var m;h!==r||s!==0&&h.nodeType!==3||(l=o+s),h!==i||n!==0&&h.nodeType!==3||(c=o+n),h.nodeType===3&&(o+=h.nodeValue.length),(m=h.firstChild)!==null;)f=h,h=m;for(;;){if(h===e)break t;if(f===r&&++d===s&&(l=o),f===i&&++u===n&&(c=o),(m=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=m}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Tm={focusedElem:e,selectionRange:r},Xd=!1,ae=t;ae!==null;)if(t=ae,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ae=e;else for(;ae!==null;){t=ae;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var x=b.memoizedProps,w=b.memoizedState,v=t.stateNode,p=v.getSnapshotBeforeUpdate(t.elementType===t.type?x:sn(t.type,x),w);v.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(j){ut(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,ae=e;break}ae=t.return}return b=iy,iy=!1,b}function wl(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&qm(t,r,i)}s=s.next}while(s!==n)}}function ah(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Gm(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Lj(e){var t=e.alternate;t!==null&&(e.alternate=null,Lj(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Pn],delete t[Bl],delete t[Im],delete t[HA],delete t[WA])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $j(e){return e.tag===5||e.tag===3||e.tag===4}function oy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$j(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Km(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ru));else if(n!==4&&(e=e.child,e!==null))for(Km(e,t,r),e=e.sibling;e!==null;)Km(e,t,r),e=e.sibling}function Zm(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Zm(e,t,r),e=e.sibling;e!==null;)Zm(e,t,r),e=e.sibling}var $t=null,dn=!1;function xs(e,t,r){for(r=r.child;r!==null;)Fj(e,t,r),r=r.sibling}function Fj(e,t,r){if(Mn&&typeof Mn.onCommitFiberUnmount=="function")try{Mn.onCommitFiberUnmount(Ju,r)}catch{}switch(r.tag){case 5:Zt||Li(r,t);case 6:var n=$t,s=dn;$t=null,xs(e,t,r),$t=n,dn=s,$t!==null&&(dn?(e=$t,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):$t.removeChild(r.stateNode));break;case 18:$t!==null&&(dn?(e=$t,r=r.stateNode,e.nodeType===8?gf(e.parentNode,r):e.nodeType===1&&gf(e,r),Ll(e)):gf($t,r.stateNode));break;case 4:n=$t,s=dn,$t=r.stateNode.containerInfo,dn=!0,xs(e,t,r),$t=n,dn=s;break;case 0:case 11:case 14:case 15:if(!Zt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&qm(r,t,o),s=s.next}while(s!==n)}xs(e,t,r);break;case 1:if(!Zt&&(Li(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){ut(r,t,l)}xs(e,t,r);break;case 21:xs(e,t,r);break;case 22:r.mode&1?(Zt=(n=Zt)||r.memoizedState!==null,xs(e,t,r),Zt=n):xs(e,t,r);break;default:xs(e,t,r)}}function ly(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new oE),t.forEach(function(n){var s=xE.bind(null,e,n);r.has(n)||(r.add(n),n.then(s,s))})}}function en(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var s=r[n];try{var i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:$t=l.stateNode,dn=!1;break e;case 3:$t=l.stateNode.containerInfo,dn=!0;break e;case 4:$t=l.stateNode.containerInfo,dn=!0;break e}l=l.return}if($t===null)throw Error(H(160));Fj(i,o,s),$t=null,dn=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(d){ut(s,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Uj(t,e),t=t.sibling}function Uj(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(en(t,e),_n(e),n&4){try{wl(3,e,e.return),ah(3,e)}catch(x){ut(e,e.return,x)}try{wl(5,e,e.return)}catch(x){ut(e,e.return,x)}}break;case 1:en(t,e),_n(e),n&512&&r!==null&&Li(r,r.return);break;case 5:if(en(t,e),_n(e),n&512&&r!==null&&Li(r,r.return),e.flags&32){var s=e.stateNode;try{Il(s,"")}catch(x){ut(e,e.return,x)}}if(n&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=r!==null?r.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&lw(s,i),ym(l,o);var d=ym(l,i);for(o=0;o<c.length;o+=2){var u=c[o],h=c[o+1];u==="style"?fw(s,h):u==="dangerouslySetInnerHTML"?uw(s,h):u==="children"?Il(s,h):ig(s,u,h,d)}switch(l){case"input":mm(s,i);break;case"textarea":cw(s,i);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?Vi(s,!!i.multiple,m,!1):f!==!!i.multiple&&(i.defaultValue!=null?Vi(s,!!i.multiple,i.defaultValue,!0):Vi(s,!!i.multiple,i.multiple?[]:"",!1))}s[Bl]=i}catch(x){ut(e,e.return,x)}}break;case 6:if(en(t,e),_n(e),n&4){if(e.stateNode===null)throw Error(H(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(x){ut(e,e.return,x)}}break;case 3:if(en(t,e),_n(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Ll(t.containerInfo)}catch(x){ut(e,e.return,x)}break;case 4:en(t,e),_n(e);break;case 13:en(t,e),_n(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Fg=xt())),n&4&&ly(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(Zt=(d=Zt)||u,en(t,e),Zt=d):en(t,e),_n(e),n&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!u&&e.mode&1)for(ae=e,u=e.child;u!==null;){for(h=ae=u;ae!==null;){switch(f=ae,m=f.child,f.tag){case 0:case 11:case 14:case 15:wl(4,f,f.return);break;case 1:Li(f,f.return);var b=f.stateNode;if(typeof b.componentWillUnmount=="function"){n=f,r=f.return;try{t=n,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(x){ut(n,r,x)}}break;case 5:Li(f,f.return);break;case 22:if(f.memoizedState!==null){dy(h);continue}}m!==null?(m.return=f,ae=m):dy(h)}u=u.sibling}e:for(u=null,h=e;;){if(h.tag===5){if(u===null){u=h;try{s=h.stateNode,d?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=h.stateNode,c=h.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=hw("display",o))}catch(x){ut(e,e.return,x)}}}else if(h.tag===6){if(u===null)try{h.stateNode.nodeValue=d?"":h.memoizedProps}catch(x){ut(e,e.return,x)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:en(t,e),_n(e),n&4&&ly(e);break;case 21:break;default:en(t,e),_n(e)}}function _n(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if($j(r)){var n=r;break e}r=r.return}throw Error(H(160))}switch(n.tag){case 5:var s=n.stateNode;n.flags&32&&(Il(s,""),n.flags&=-33);var i=oy(e);Zm(e,i,s);break;case 3:case 4:var o=n.stateNode.containerInfo,l=oy(e);Km(e,l,o);break;default:throw Error(H(161))}}catch(c){ut(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cE(e,t,r){ae=e,zj(e)}function zj(e,t,r){for(var n=(e.mode&1)!==0;ae!==null;){var s=ae,i=s.child;if(s.tag===22&&n){var o=s.memoizedState!==null||od;if(!o){var l=s.alternate,c=l!==null&&l.memoizedState!==null||Zt;l=od;var d=Zt;if(od=o,(Zt=c)&&!d)for(ae=s;ae!==null;)o=ae,c=o.child,o.tag===22&&o.memoizedState!==null?uy(s):c!==null?(c.return=o,ae=c):uy(s);for(;i!==null;)ae=i,zj(i),i=i.sibling;ae=s,od=l,Zt=d}cy(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,ae=i):cy(e)}}function cy(e){for(;ae!==null;){var t=ae;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Zt||ah(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Zt)if(r===null)n.componentDidMount();else{var s=t.elementType===t.type?r.memoizedProps:sn(t.type,r.memoizedProps);n.componentDidUpdate(s,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Gv(t,i,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Gv(t,o,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var u=d.memoizedState;if(u!==null){var h=u.dehydrated;h!==null&&Ll(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(H(163))}Zt||t.flags&512&&Gm(t)}catch(f){ut(t,t.return,f)}}if(t===e){ae=null;break}if(r=t.sibling,r!==null){r.return=t.return,ae=r;break}ae=t.return}}function dy(e){for(;ae!==null;){var t=ae;if(t===e){ae=null;break}var r=t.sibling;if(r!==null){r.return=t.return,ae=r;break}ae=t.return}}function uy(e){for(;ae!==null;){var t=ae;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ah(4,t)}catch(c){ut(t,r,c)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var s=t.return;try{n.componentDidMount()}catch(c){ut(t,s,c)}}var i=t.return;try{Gm(t)}catch(c){ut(t,i,c)}break;case 5:var o=t.return;try{Gm(t)}catch(c){ut(t,o,c)}}}catch(c){ut(t,t.return,c)}if(t===e){ae=null;break}var l=t.sibling;if(l!==null){l.return=t.return,ae=l;break}ae=t.return}}var dE=Math.ceil,fu=hs.ReactCurrentDispatcher,Lg=hs.ReactCurrentOwner,Br=hs.ReactCurrentBatchConfig,De=0,Mt=null,jt=null,zt=0,br=0,$i=la(0),Tt=0,Kl=null,Ha=0,ih=0,$g=0,jl=null,fr=null,Fg=0,go=1/0,Kn=null,mu=!1,Ym=null,qs=null,ld=!1,$s=null,pu=0,Nl=0,Jm=null,Ld=-1,$d=0;function ar(){return De&6?xt():Ld!==-1?Ld:Ld=xt()}function Gs(e){return e.mode&1?De&2&&zt!==0?zt&-zt:GA.transition!==null?($d===0&&($d=kw()),$d):(e=Ke,e!==0||(e=window.event,e=e===void 0?16:Rw(e.type)),e):1}function xn(e,t,r,n){if(50<Nl)throw Nl=0,Jm=null,Error(H(185));yc(e,r,n),(!(De&2)||e!==Mt)&&(e===Mt&&(!(De&2)&&(ih|=r),Tt===4&&Ts(e,zt)),xr(e,n),r===1&&De===0&&!(t.mode&1)&&(go=xt()+500,rh&&ca()))}function xr(e,t){var r=e.callbackNode;GC(e,t);var n=Qd(e,e===Mt?zt:0);if(n===0)r!==null&&bv(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&bv(r),t===1)e.tag===0?qA(hy.bind(null,e)):Jw(hy.bind(null,e)),BA(function(){!(De&6)&&ca()}),r=null;else{switch(_w(n)){case 1:r=ug;break;case 4:r=Nw;break;case 16:r=Jd;break;case 536870912:r=Sw;break;default:r=Jd}r=Zj(r,Bj.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Bj(e,t){if(Ld=-1,$d=0,De&6)throw Error(H(327));var r=e.callbackNode;if(Ki()&&e.callbackNode!==r)return null;var n=Qd(e,e===Mt?zt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=gu(e,n);else{t=n;var s=De;De|=2;var i=Hj();(Mt!==e||zt!==t)&&(Kn=null,go=xt()+500,Fa(e,t));do try{fE();break}catch(l){Vj(e,l)}while(!0);Sg(),fu.current=i,De=s,jt!==null?t=0:(Mt=null,zt=0,t=Tt)}if(t!==0){if(t===2&&(s=Sm(e),s!==0&&(n=s,t=Qm(e,s))),t===1)throw r=Kl,Fa(e,0),Ts(e,n),xr(e,xt()),r;if(t===6)Ts(e,n);else{if(s=e.current.alternate,!(n&30)&&!uE(s)&&(t=gu(e,n),t===2&&(i=Sm(e),i!==0&&(n=i,t=Qm(e,i))),t===1))throw r=Kl,Fa(e,0),Ts(e,n),xr(e,xt()),r;switch(e.finishedWork=s,e.finishedLanes=n,t){case 0:case 1:throw Error(H(345));case 2:ba(e,fr,Kn);break;case 3:if(Ts(e,n),(n&130023424)===n&&(t=Fg+500-xt(),10<t)){if(Qd(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){ar(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Rm(ba.bind(null,e,fr,Kn),t);break}ba(e,fr,Kn);break;case 4:if(Ts(e,n),(n&4194240)===n)break;for(t=e.eventTimes,s=-1;0<n;){var o=31-gn(n);i=1<<o,o=t[o],o>s&&(s=o),n&=~i}if(n=s,n=xt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*dE(n/1960))-n,10<n){e.timeoutHandle=Rm(ba.bind(null,e,fr,Kn),n);break}ba(e,fr,Kn);break;case 5:ba(e,fr,Kn);break;default:throw Error(H(329))}}}return xr(e,xt()),e.callbackNode===r?Bj.bind(null,e):null}function Qm(e,t){var r=jl;return e.current.memoizedState.isDehydrated&&(Fa(e,t).flags|=256),e=gu(e,t),e!==2&&(t=fr,fr=r,t!==null&&Xm(t)),e}function Xm(e){fr===null?fr=e:fr.push.apply(fr,e)}function uE(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var s=r[n],i=s.getSnapshot;s=s.value;try{if(!yn(i(),s))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ts(e,t){for(t&=~$g,t&=~ih,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-gn(t),n=1<<r;e[r]=-1,t&=~n}}function hy(e){if(De&6)throw Error(H(327));Ki();var t=Qd(e,0);if(!(t&1))return xr(e,xt()),null;var r=gu(e,t);if(e.tag!==0&&r===2){var n=Sm(e);n!==0&&(t=n,r=Qm(e,n))}if(r===1)throw r=Kl,Fa(e,0),Ts(e,t),xr(e,xt()),r;if(r===6)throw Error(H(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ba(e,fr,Kn),xr(e,xt()),null}function Ug(e,t){var r=De;De|=1;try{return e(t)}finally{De=r,De===0&&(go=xt()+500,rh&&ca())}}function Wa(e){$s!==null&&$s.tag===0&&!(De&6)&&Ki();var t=De;De|=1;var r=Br.transition,n=Ke;try{if(Br.transition=null,Ke=1,e)return e()}finally{Ke=n,Br.transition=r,De=t,!(De&6)&&ca()}}function zg(){br=$i.current,rt($i)}function Fa(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,zA(r)),jt!==null)for(r=jt.return;r!==null;){var n=r;switch(wg(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&nu();break;case 3:mo(),rt(pr),rt(er),Tg();break;case 5:Eg(n);break;case 4:mo();break;case 13:rt(st);break;case 19:rt(st);break;case 10:kg(n.type._context);break;case 22:case 23:zg()}r=r.return}if(Mt=e,jt=e=Ks(e.current,null),zt=br=t,Tt=0,Kl=null,$g=ih=Ha=0,fr=jl=null,ka!==null){for(t=0;t<ka.length;t++)if(r=ka[t],n=r.interleaved,n!==null){r.interleaved=null;var s=n.next,i=r.pending;if(i!==null){var o=i.next;i.next=s,n.next=o}r.pending=n}ka=null}return e}function Vj(e,t){do{var r=jt;try{if(Sg(),Od.current=hu,uu){for(var n=it.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}uu=!1}if(Va=0,It=At=it=null,bl=!1,Wl=0,Lg.current=null,r===null||r.return===null){Tt=1,Kl=t,jt=null;break}e:{var i=e,o=r.return,l=r,c=t;if(t=zt,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,u=l,h=u.tag;if(!(u.mode&1)&&(h===0||h===11||h===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var m=Xv(o);if(m!==null){m.flags&=-257,ey(m,o,l,i,t),m.mode&1&&Qv(i,d,t),t=m,c=d;var b=t.updateQueue;if(b===null){var x=new Set;x.add(c),t.updateQueue=x}else b.add(c);break e}else{if(!(t&1)){Qv(i,d,t),Bg();break e}c=Error(H(426))}}else if(nt&&l.mode&1){var w=Xv(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),ey(w,o,l,i,t),jg(po(c,l));break e}}i=c=po(c,l),Tt!==4&&(Tt=2),jl===null?jl=[i]:jl.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=_j(i,c,t);qv(i,v);break e;case 1:l=c;var p=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(qs===null||!qs.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var j=Cj(i,l,t);qv(i,j);break e}}i=i.return}while(i!==null)}qj(r)}catch(N){t=N,jt===r&&r!==null&&(jt=r=r.return);continue}break}while(!0)}function Hj(){var e=fu.current;return fu.current=hu,e===null?hu:e}function Bg(){(Tt===0||Tt===3||Tt===2)&&(Tt=4),Mt===null||!(Ha&268435455)&&!(ih&268435455)||Ts(Mt,zt)}function gu(e,t){var r=De;De|=2;var n=Hj();(Mt!==e||zt!==t)&&(Kn=null,Fa(e,t));do try{hE();break}catch(s){Vj(e,s)}while(!0);if(Sg(),De=r,fu.current=n,jt!==null)throw Error(H(261));return Mt=null,zt=0,Tt}function hE(){for(;jt!==null;)Wj(jt)}function fE(){for(;jt!==null&&!$C();)Wj(jt)}function Wj(e){var t=Kj(e.alternate,e,br);e.memoizedProps=e.pendingProps,t===null?qj(e):jt=t,Lg.current=null}function qj(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=iE(r,t),r!==null){r.flags&=32767,jt=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Tt=6,jt=null;return}}else if(r=aE(r,t,br),r!==null){jt=r;return}if(t=t.sibling,t!==null){jt=t;return}jt=t=e}while(t!==null);Tt===0&&(Tt=5)}function ba(e,t,r){var n=Ke,s=Br.transition;try{Br.transition=null,Ke=1,mE(e,t,r,n)}finally{Br.transition=s,Ke=n}return null}function mE(e,t,r,n){do Ki();while($s!==null);if(De&6)throw Error(H(327));r=e.finishedWork;var s=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(H(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(KC(e,i),e===Mt&&(jt=Mt=null,zt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||ld||(ld=!0,Zj(Jd,function(){return Ki(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=Br.transition,Br.transition=null;var o=Ke;Ke=1;var l=De;De|=4,Lg.current=null,lE(e,r),Uj(r,e),OA(Tm),Xd=!!Em,Tm=Em=null,e.current=r,cE(r),FC(),De=l,Ke=o,Br.transition=i}else e.current=r;if(ld&&(ld=!1,$s=e,pu=s),i=e.pendingLanes,i===0&&(qs=null),BC(r.stateNode),xr(e,xt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)s=t[r],n(s.value,{componentStack:s.stack,digest:s.digest});if(mu)throw mu=!1,e=Ym,Ym=null,e;return pu&1&&e.tag!==0&&Ki(),i=e.pendingLanes,i&1?e===Jm?Nl++:(Nl=0,Jm=e):Nl=0,ca(),null}function Ki(){if($s!==null){var e=_w(pu),t=Br.transition,r=Ke;try{if(Br.transition=null,Ke=16>e?16:e,$s===null)var n=!1;else{if(e=$s,$s=null,pu=0,De&6)throw Error(H(331));var s=De;for(De|=4,ae=e.current;ae!==null;){var i=ae,o=i.child;if(ae.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var d=l[c];for(ae=d;ae!==null;){var u=ae;switch(u.tag){case 0:case 11:case 15:wl(8,u,i)}var h=u.child;if(h!==null)h.return=u,ae=h;else for(;ae!==null;){u=ae;var f=u.sibling,m=u.return;if(Lj(u),u===d){ae=null;break}if(f!==null){f.return=m,ae=f;break}ae=m}}}var b=i.alternate;if(b!==null){var x=b.child;if(x!==null){b.child=null;do{var w=x.sibling;x.sibling=null,x=w}while(x!==null)}}ae=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,ae=o;else e:for(;ae!==null;){if(i=ae,i.flags&2048)switch(i.tag){case 0:case 11:case 15:wl(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,ae=v;break e}ae=i.return}}var p=e.current;for(ae=p;ae!==null;){o=ae;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,ae=y;else e:for(o=p;ae!==null;){if(l=ae,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:ah(9,l)}}catch(N){ut(l,l.return,N)}if(l===o){ae=null;break e}var j=l.sibling;if(j!==null){j.return=l.return,ae=j;break e}ae=l.return}}if(De=s,ca(),Mn&&typeof Mn.onPostCommitFiberRoot=="function")try{Mn.onPostCommitFiberRoot(Ju,e)}catch{}n=!0}return n}finally{Ke=r,Br.transition=t}}return!1}function fy(e,t,r){t=po(r,t),t=_j(e,t,1),e=Ws(e,t,1),t=ar(),e!==null&&(yc(e,1,t),xr(e,t))}function ut(e,t,r){if(e.tag===3)fy(e,e,r);else for(;t!==null;){if(t.tag===3){fy(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(qs===null||!qs.has(n))){e=po(r,e),e=Cj(t,e,1),t=Ws(t,e,1),e=ar(),t!==null&&(yc(t,1,e),xr(t,e));break}}t=t.return}}function pE(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=ar(),e.pingedLanes|=e.suspendedLanes&r,Mt===e&&(zt&r)===r&&(Tt===4||Tt===3&&(zt&130023424)===zt&&500>xt()-Fg?Fa(e,0):$g|=r),xr(e,t)}function Gj(e,t){t===0&&(e.mode&1?(t=Qc,Qc<<=1,!(Qc&130023424)&&(Qc=4194304)):t=1);var r=ar();e=is(e,t),e!==null&&(yc(e,t,r),xr(e,r))}function gE(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Gj(e,r)}function xE(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,s=e.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(H(314))}n!==null&&n.delete(t),Gj(e,r)}var Kj;Kj=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||pr.current)mr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return mr=!1,sE(e,t,r);mr=!!(e.flags&131072)}else mr=!1,nt&&t.flags&1048576&&Qw(t,iu,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Dd(e,t),e=t.pendingProps;var s=uo(t,er.current);Gi(t,r),s=Rg(null,t,n,e,s,r);var i=Ig();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gr(n)?(i=!0,su(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Cg(t),s.updater=sh,t.stateNode=s,s._reactInternals=t,Fm(t,n,e,r),t=Bm(null,t,n,!0,i,r)):(t.tag=0,nt&&i&&bg(t),rr(null,t,s,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Dd(e,t),e=t.pendingProps,s=n._init,n=s(n._payload),t.type=n,s=t.tag=yE(n),e=sn(n,e),s){case 0:t=zm(null,t,n,e,r);break e;case 1:t=ny(null,t,n,e,r);break e;case 11:t=ty(null,t,n,e,r);break e;case 14:t=ry(null,t,n,sn(n.type,e),r);break e}throw Error(H(306,n,""))}return t;case 0:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:sn(n,s),zm(e,t,n,s,r);case 1:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:sn(n,s),ny(e,t,n,s,r);case 3:e:{if(Pj(t),e===null)throw Error(H(387));n=t.pendingProps,i=t.memoizedState,s=i.element,sj(e,t),cu(t,n,null,r);var o=t.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=po(Error(H(423)),t),t=sy(e,t,n,r,s);break e}else if(n!==s){s=po(Error(H(424)),t),t=sy(e,t,n,r,s);break e}else for(kr=Hs(t.stateNode.containerInfo.firstChild),_r=t,nt=!0,hn=null,r=rj(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ho(),n===s){t=os(e,t,r);break e}rr(e,t,n,r)}t=t.child}return t;case 5:return aj(t),e===null&&Dm(t),n=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Pm(n,s)?o=null:i!==null&&Pm(n,i)&&(t.flags|=32),Tj(e,t),rr(e,t,o,r),t.child;case 6:return e===null&&Dm(t),null;case 13:return Rj(e,t,r);case 4:return Ag(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=fo(t,null,n,r):rr(e,t,n,r),t.child;case 11:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:sn(n,s),ty(e,t,n,s,r);case 7:return rr(e,t,t.pendingProps,r),t.child;case 8:return rr(e,t,t.pendingProps.children,r),t.child;case 12:return rr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,Qe(ou,n._currentValue),n._currentValue=o,i!==null)if(yn(i.value,o)){if(i.children===s.children&&!pr.current){t=os(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=ns(-1,r&-r),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var u=d.pending;u===null?c.next=c:(c.next=u.next,u.next=c),d.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),Lm(i.return,r,t),l.lanes|=r;break}c=c.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(H(341));o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),Lm(o,r,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}rr(e,t,s.children,r),t=t.child}return t;case 9:return s=t.type,n=t.pendingProps.children,Gi(t,r),s=Hr(s),n=n(s),t.flags|=1,rr(e,t,n,r),t.child;case 14:return n=t.type,s=sn(n,t.pendingProps),s=sn(n.type,s),ry(e,t,n,s,r);case 15:return Aj(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:sn(n,s),Dd(e,t),t.tag=1,gr(n)?(e=!0,su(t)):e=!1,Gi(t,r),kj(t,n,s),Fm(t,n,s,r),Bm(null,t,n,!0,e,r);case 19:return Ij(e,t,r);case 22:return Ej(e,t,r)}throw Error(H(156,t.tag))};function Zj(e,t){return jw(e,t)}function vE(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 5,840 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ur(e,t,r,n){return new vE(e,t,r,n)}function Vg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yE(e){if(typeof e=="function")return Vg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===lg)return 11;if(e===cg)return 14}return 2}function Ks(e,t){var r=e.alternate;return r===null?(r=Ur(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Fd(e,t,r,n,s,i){var o=2;if(n=e,typeof e=="function")Vg(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ai:return Ua(r.children,s,i,t);case og:o=8,s|=8;break;case cm:return e=Ur(12,r,t,s|2),e.elementType=cm,e.lanes=i,e;case dm:return e=Ur(13,r,t,s),e.elementType=dm,e.lanes=i,e;case um:return e=Ur(19,r,t,s),e.elementType=um,e.lanes=i,e;case aw:return oh(r,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case nw:o=10;break e;case sw:o=9;break e;case lg:o=11;break e;case cg:o=14;break e;case ks:o=16,n=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=Ur(o,r,t,s),t.elementType=e,t.type=n,t.lanes=i,t}function Ua(e,t,r,n){return e=Ur(7,e,n,t),e.lanes=r,e}function oh(e,t,r,n){return e=Ur(22,e,n,t),e.elementType=aw,e.lanes=r,e.stateNode={isHidden:!1},e}function Sf(e,t,r){return e=Ur(6,e,null,t),e.lanes=r,e}function kf(e,t,r){return t=Ur(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bE(e,t,r,n,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=sf(0),this.expirationTimes=sf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sf(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Hg(e,t,r,n,s,i,o,l,c){return e=new bE(e,t,r,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ur(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cg(i),e}function wE(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ci,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Yj(e){if(!e)return ra;e=e._reactInternals;e:{if(ti(e)!==e||e.tag!==1)throw Error(H(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(gr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(H(171))}if(e.tag===1){var r=e.type;if(gr(r))return Yw(e,r,t)}return t}function Jj(e,t,r,n,s,i,o,l,c){return e=Hg(r,n,!0,e,s,i,o,l,c),e.context=Yj(null),r=e.current,n=ar(),s=Gs(r),i=ns(n,s),i.callback=t??null,Ws(r,i,s),e.current.lanes=s,yc(e,s,n),xr(e,n),e}function lh(e,t,r,n){var s=t.current,i=ar(),o=Gs(s);return r=Yj(r),t.context===null?t.context=r:t.pendingContext=r,t=ns(i,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Ws(s,t,o),e!==null&&(xn(e,s,o,i),Id(e,s,o)),o}function xu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function my(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Wg(e,t){my(e,t),(e=e.alternate)&&my(e,t)}function jE(){return null}var Qj=typeof reportError=="function"?reportError:function(e){console.error(e)};function qg(e){this._internalRoot=e}ch.prototype.render=qg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));lh(e,t,null,null)};ch.prototype.unmount=qg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Wa(function(){lh(null,e,null,null)}),t[as]=null}};function ch(e){this._internalRoot=e}ch.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ew();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Es.length&&t!==0&&t<Es[r].priority;r++);Es.splice(r,0,e),r===0&&Pw(e)}};function Gg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function dh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function py(){}function NE(e,t,r,n,s){if(s){if(typeof n=="function"){var i=n;n=function(){var d=xu(o);i.call(d)}}var o=Jj(t,n,e,0,null,!1,!1,"",py);return e._reactRootContainer=o,e[as]=o.current,Ul(e.nodeType===8?e.parentNode:e),Wa(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof n=="function"){var l=n;n=function(){var d=xu(c);l.call(d)}}var c=Hg(e,0,!1,null,null,!1,!1,"",py);return e._reactRootContainer=c,e[as]=c.current,Ul(e.nodeType===8?e.parentNode:e),Wa(function(){lh(t,c,r,n)}),c}function uh(e,t,r,n,s){var i=r._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var l=s;s=function(){var c=xu(o);l.call(c)}}lh(t,o,e,s)}else o=NE(r,t,e,s,n);return xu(o)}Cw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ol(t.pendingLanes);
vendor: 4,598 bytes, line 40
40r!==0&&(hg(t,r|1),xr(t,xt()),!(De&6)&&(go=xt()+500,ca()))}break;case 13:Wa(function(){var n=is(e,1);if(n!==null){var s=ar();xn(n,e,1,s)}}),Wg(e,1)}};fg=function(e){if(e.tag===13){var t=is(e,134217728);if(t!==null){var r=ar();xn(t,e,134217728,r)}Wg(e,134217728)}};Aw=function(e){if(e.tag===13){var t=Gs(e),r=is(e,t);if(r!==null){var n=ar();xn(r,e,t,n)}Wg(e,t)}};Ew=function(){return Ke};Tw=function(e,t){var r=Ke;try{return Ke=e,t()}finally{Ke=r}};wm=function(e,t,r){switch(t){case"input":if(mm(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var s=th(n);if(!s)throw Error(H(90));ow(n),mm(n,s)}}}break;case"textarea":cw(e,r);break;case"select":t=r.value,t!=null&&Vi(e,!!r.multiple,t,!1)}};gw=Ug;xw=Wa;var SE={usingClientEntryPoint:!1,Events:[wc,Ri,th,mw,pw,Ug]},Zo={findFiberByHostInstance:Sa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},kE={bundleType:Zo.bundleType,version:Zo.version,rendererPackageName:Zo.rendererPackageName,rendererConfig:Zo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:hs.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=bw(e),e===null?null:e.stateNode},findFiberByHostInstance:Zo.findFiberByHostInstance||jE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cd.isDisabled&&cd.supportsFiber)try{Ju=cd.inject(kE),Mn=cd}catch{}}Pr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=SE;Pr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Gg(t))throw Error(H(200));return wE(e,t,null,r)};Pr.createRoot=function(e,t){if(!Gg(e))throw Error(H(299));var r=!1,n="",s=Qj;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Hg(e,1,!1,null,null,r,!1,n,s),e[as]=t.current,Ul(e.nodeType===8?e.parentNode:e),new qg(t)};Pr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(H(188)):(e=Object.keys(e).join(","),Error(H(268,e)));return e=bw(t),e=e===null?null:e.stateNode,e};Pr.flushSync=function(e){return Wa(e)};Pr.hydrate=function(e,t,r){if(!dh(t))throw Error(H(200));return uh(null,e,t,!0,r)};Pr.hydrateRoot=function(e,t,r){if(!Gg(e))throw Error(H(405));var n=r!=null&&r.hydratedSources||null,s=!1,i="",o=Qj;if(r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=Jj(t,null,e,1,r??null,s,!1,i,o),e[as]=t.current,Ul(e),n)for(e=0;e<n.length;e++)r=n[e],s=r._getVersion,s=s(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,s]:t.mutableSourceEagerHydrationData.push(r,s);return new ch(t)};Pr.render=function(e,t,r){if(!dh(t))throw Error(H(200));return uh(null,e,t,!1,r)};Pr.unmountComponentAtNode=function(e){if(!dh(e))throw Error(H(40));return e._reactRootContainer?(Wa(function(){uh(null,null,e,!1,function(){e._reactRootContainer=null,e[as]=null})}),!0):!1};Pr.unstable_batchedUpdates=Ug;Pr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!dh(r))throw Error(H(200));if(e==null||e._reactInternals===void 0)throw Error(H(38));return uh(e,t,r,!1,n)};Pr.version="18.3.1-next-f1338f8080-20240426";function Xj(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xj)}catch(e){console.error(e)}}Xj(),Xb.exports=Pr;var ri=Xb.exports;const e1=xc(ri);var t1,gy=ri;t1=gy.createRoot,gy.hydrateRoot;const _E=1,CE=1e6;let _f=0;function AE(){return _f=(_f+1)%Number.MAX_SAFE_INTEGER,_f.toString()}const Cf=new Map,xy=e=>{if(Cf.has(e))return;const t=setTimeout(()=>{Cf.delete(e),Sl({type:"REMOVE_TOAST",toastId:e})},CE);Cf.set(e,t)},EE=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,_E)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;
40return r?xy(r):e.toasts.forEach(n=>{xy(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},Ud=[];let zd={toasts:[]};function Sl(e){zd=EE(zd,e),Ud.forEach(t=>{t(zd)})}function cl({...e}){const t=AE(),r=s=>Sl({type:"UPDATE_TOAST",toast:{...s,id:t}}),n=()=>Sl({type:"DISMISS_TOAST",toastId:t});return Sl({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||n()}}}),{id:t,dismiss:n,update:r}}function hh(){const[e,t]=g.useState(zd);return g.useEffect(()=>(Ud.push(t),()=>{const r=Ud.indexOf(t);r>-1&&Ud.splice(r,1)}),[e]),{...e,toast:cl,dismiss:r=>Sl({type:"DISMISS_TOAST",toastId:r})}}function le(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function vy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function r1(...e){return t=>{let r=!1;const n=e.map(s=>{const i=vy(s,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():vy(e[s],null)}}}}function Pe(...e){return g.useCallback(r1(...e),e)}function TE(e,t){const r=g.createContext(t),n=i=>{const{children:o,...l}=i,c=g.useMemo(()=>l,Object.values(l));return a.jsx(r.Provider,{value:c,children:o})};n.displayName=e+"Provider";function s(i){const o=g.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,s]}function lr(e,t=[]){let r=[];function n(i,o){const l=g.createContext(o),c=r.length;r=[...r,o];const d=h=>{var v;const{scope:f,children:m,...b}=h,x=((v=f==null?void 0:f[e])==null?void 0:v[c])||l,w=g.useMemo(()=>b,Object.values(b));return a.jsx(x.Provider,{value:w,children:m})};d.displayName=i+"Provider";function u(h,f){var x;const m=((x=f==null?void 0:f[e])==null?void 0:x[c])||l,b=g.useContext(m);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[d,u]}const s=()=>{const i=r.map(o=>g.createContext(o));return function(l){const c=(l==null?void 0:l[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[n,PE(s,...t)]}function PE(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=n.reduce((l,{useScope:c,scopeName:d})=>{const h=c(i)[`__scope${d}`];return{...l,...h}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function xo(e){const t=RE(e),r=g.forwardRef((n,s)=>{const{children:i,...o}=n,l=g.Children.toArray(i),c=l.find(OE);if(c){const d=c.props.children,u=l.map(h=>h===c?g.Children.count(d)>1?g.Children.only(null):g.isValidElement(d)?d.props.children:null:h);return a.jsx(t,{...o,ref:s,children:g.isValidElement(d)?g.cloneElement(d,void 0,u):null})}return a.jsx(t,{...o,ref:s,children:i})});return r.displayName=`${e}.Slot`,r}var n1=xo("Slot");function RE(e){const t=g.forwardRef((r,n)=>{const{children:s,...i}=r;if(g.isValidElement(s)){const o=DE(s),l=ME(i,s.props);return s.type!==g.Fragment&&(l.ref=n?r1(n,o):o),g.cloneElement(s,l)}return g.Children.count(s)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var s1=Symbol("radix.slottable");function IE(e){const t=({children:r})=>a.jsx(a.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=s1,t}function OE(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===s1}function ME(e,t){const r={...t};for(const n in t){const s=e[n],i=t[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...l)=>{const c=i(...l);return s(...l),c}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}function DE(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function fh(e){const t=e+"CollectionProvider",[r,n]=lr(t),[s,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=x=>{const{scope:w,children:v}=x,p=M.useRef(null),y=M.useRef(new Map).current;return a.jsx(s,{scope:w,itemMap:y,collectionRef:p,children:v})};o.displayName=t;const l=e+"CollectionSlot",c=xo(l),d=M.forwardRef((x,w)=>{const{scope:v,children:p}=x,y=i(l,v),j=Pe(w,y.collectionRef);return a.jsx(c,{ref:j,children:p})});d.displayName=l;const u=e+"CollectionItemSlot",h="data-radix-collection-item",f=xo(u),m=M.forwardRef((x,w)=>{const{scope:v,children:p,...y}=x,j=M.useRef(null),N=Pe(w,j),S=i(u,v);return M.useEffect(()=>(S.itemMap.set(j,{ref:j,...y}),()=>void S.itemMap.delete(j))),a.jsx(f,{[h]:"",ref:N,children:p})});m.displayName=u;function b(x){const w=i(e+"CollectionConsumer",x);return M.useCallback(()=>{const p=w.collectionRef.current;
vendor: 8,980 bytes, line 40
40if(!p)return[];const y=Array.from(p.querySelectorAll(`[${h}]`));return Array.from(w.itemMap.values()).sort((S,k)=>y.indexOf(S.ref.current)-y.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:o,Slot:d,ItemSlot:m},b,n]}var LE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],de=LE.reduce((e,t)=>{const r=xo(`Primitive.${t}`),n=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,c=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function a1(e,t){e&&ri.flushSync(()=>e.dispatchEvent(t))}function Nt(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function $E(e,t=globalThis==null?void 0:globalThis.document){const r=Nt(e);g.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var FE="DismissableLayer",ep="dismissableLayer.update",UE="dismissableLayer.pointerDownOutside",zE="dismissableLayer.focusOutside",yy,i1=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nc=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...c}=e,d=g.useContext(i1),[u,h]=g.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=g.useState({}),b=Pe(t,k=>h(k)),x=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),v=x.indexOf(w),p=u?x.indexOf(u):-1,y=d.layersWithOutsidePointerEventsDisabled.size>0,j=p>=v,N=VE(k=>{const A=k.target,E=[...d.branches].some(O=>O.contains(A));!j||E||(s==null||s(k),o==null||o(k),k.defaultPrevented||l==null||l())},f),S=HE(k=>{const A=k.target;[...d.branches].some(O=>O.contains(A))||(i==null||i(k),o==null||o(k),k.defaultPrevented||l==null||l())},f);return $E(k=>{p===d.layers.size-1&&(n==null||n(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},f),g.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(yy=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),by(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=yy)}},[u,f,r,d]),g.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),by())},[u,d]),g.useEffect(()=>{const k=()=>m({});return document.addEventListener(ep,k),()=>document.removeEventListener(ep,k)},[]),a.jsx(de.div,{...c,ref:b,style:{pointerEvents:y?j?"auto":"none":void 0,...e.style},onFocusCapture:le(e.onFocusCapture,S.onFocusCapture),onBlurCapture:le(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:le(e.onPointerDownCapture,N.onPointerDownCapture)})});Nc.displayName=FE;var BE="DismissableLayerBranch",o1=g.forwardRef((e,t)=>{const r=g.useContext(i1),n=g.useRef(null),s=Pe(t,n);return g.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),a.jsx(de.div,{...e,ref:s})});o1.displayName=BE;function VE(e,t=globalThis==null?void 0:globalThis.document){const r=Nt(e),n=g.useRef(!1),s=g.useRef(()=>{});return g.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let c=function(){l1(UE,r,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function HE(e,t=globalThis==null?void 0:globalThis.document){const r=Nt(e),n=g.useRef(!1);return g.useEffect(()=>{const s=i=>{i.target&&!n.current&&l1(zE,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function by(){const e=new CustomEvent(ep);document.dispatchEvent(e)}function l1(e,t,r,{discrete:n}){const s=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?a1(s,i):s.dispatchEvent(i)}var WE=Nc,qE=o1,mt=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},GE="Portal",mh=g.forwardRef((e,t)=>{var l;const{container:r,...n}=e,[s,i]=g.useState(!1);mt(()=>i(!0),[]);const o=r||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?e1.createPortal(a.jsx(de.div,{...n,ref:t}),o):null});mh.displayName=GE;function KE(e,t){return g.useReducer((r,n)=>t[r][n]??r,e)}var Ir=e=>{const{present:t,children:r}=e,n=ZE(t),s=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),i=Pe(n.ref,YE(s));return typeof r=="function"||n.isPresent?g.cloneElement(s,{ref:i}):null};Ir.displayName="Presence";function ZE(e){const[t,r]=g.useState(),n=g.useRef(null),s=g.useRef(e),i=g.useRef("none"),o=e?"mounted":"unmounted",[l,c]=KE(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const d=dd(n.current);i.current=l==="mounted"?d:"none"},[l]),mt(()=>{const d=n.current,u=s.current;if(u!==e){const f=i.current,m=dd(d);e?c("MOUNT"):m==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(u&&f!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),mt(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,h=m=>{const x=dd(n.current).includes(m.animationName);if(m.target===t&&x&&(c("ANIMATION_END"),!s.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},f=m=>{m.target===t&&(i.current=dd(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function dd(e){return(e==null?void 0:e.animationName)||"none"}function YE(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var JE=ng[" useInsertionEffect ".trim().toString()]||mt;function bn({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[s,i,o]=QE({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:s;{const u=g.useRef(e!==void 0);g.useEffect(()=>{const h=u.current;h!==l&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const d=g.useCallback(u=>{var h;if(l){const f=XE(u)?u(e):u;f!==e&&((h=o.current)==null||h.call(o,f))}else i(u)},[l,e,i,o]);return[c,d]}function QE({defaultProp:e,onChange:t}){const[r,n]=g.useState(e),s=g.useRef(r),i=g.useRef(t);return JE(()=>{i.current=t},[t]),g.useEffect(()=>{var o;s.current!==r&&((o=i.current)==null||o.call(i,r),s.current=r)},[r,s]),[r,n,i]}function XE(e){return typeof e=="function"}var c1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),eT="VisuallyHidden",ph=g.forwardRef((e,t)=>a.jsx(de.span,{...e,ref:t,style:{...c1,...e.style}}));ph.displayName=eT;var tT=ph,Kg="ToastProvider",[Zg,rT,nT]=fh("Toast"),[d1,BU]=lr("Toast",[nT]),[sT,gh]=d1(Kg),u1=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[l,c]=g.useState(null),[d,u]=g.useState(0),h=g.useRef(!1),f=g.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Kg}\`. Expected non-empty \`string\`.`),a.jsx(Zg.Provider,{scope:t,children:a.jsx(sT,{scope:t,label:r,duration:n,swipeDirection:s,swipeThreshold:i,toastCount:d,viewport:l,onViewportChange:c,onToastAdd:g.useCallback(()=>u(m=>m+1),[]),onToastRemove:g.useCallback(()=>u(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:o})})};u1.displayName=Kg;var h1="ToastViewport",aT=["F8"],tp="toast.viewportPause",rp="toast.viewportResume",f1=g.forwardRef((e,t)=>
40{const{__scopeToast:r,hotkey:n=aT,label:s="Notifications ({hotkey})",...i}=e,o=gh(h1,r),l=rT(r),c=g.useRef(null),d=g.useRef(null),u=g.useRef(null),h=g.useRef(null),f=Pe(t,h,o.onViewportChange),m=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=o.toastCount>0;g.useEffect(()=>{const w=v=>{var y;n.length!==0&&n.every(j=>v[j]||v.code===j)&&((y=h.current)==null||y.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[n]),g.useEffect(()=>{const w=c.current,v=h.current;if(b&&w&&v){const p=()=>{if(!o.isClosePausedRef.current){const S=new CustomEvent(tp);v.dispatchEvent(S),o.isClosePausedRef.current=!0}},y=()=>{if(o.isClosePausedRef.current){const S=new CustomEvent(rp);v.dispatchEvent(S),o.isClosePausedRef.current=!1}},j=S=>{!w.contains(S.relatedTarget)&&y()},N=()=>{w.contains(document.activeElement)||y()};return w.addEventListener("focusin",p),w.addEventListener("focusout",j),w.addEventListener("pointermove",p),w.addEventListener("pointerleave",N),window.addEventListener("blur",p),window.addEventListener("focus",y),()=>{w.removeEventListener("focusin",p),w.removeEventListener("focusout",j),w.removeEventListener("pointermove",p),w.removeEventListener("pointerleave",N),window.removeEventListener("blur",p),window.removeEventListener("focus",y)}}},[b,o.isClosePausedRef]);const x=g.useCallback(({tabbingDirection:w})=>{const p=l().map(y=>{const j=y.ref.current,N=[j,...vT(j)];return w==="forwards"?N:N.reverse()});return(w==="forwards"?p.reverse():p).flat()},[l]);return g.useEffect(()=>{const w=h.current;if(w){const v=p=>{var N,S,k;const y=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!y){const A=document.activeElement,E=p.shiftKey;if(p.target===w&&E){(N=d.current)==null||N.focus();return}const I=x({tabbingDirection:E?"backwards":"forwards"}),U=I.findIndex(L=>L===A);Af(I.slice(U+1))?p.preventDefault():E?(S=d.current)==null||S.focus():(k=u.current)==null||k.focus()}};return w.addEventListener("keydown",v),()=>w.removeEventListener("keydown",v)}},[l,x]),a.jsxs(qE,{ref:c,role:"region","aria-label":s.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&a.jsx(np,{ref:d,onFocusFromOutsideViewport:()=>{const w=x({tabbingDirection:"forwards"});Af(w)}}),a.jsx(Zg.Slot,{scope:r,children:a.jsx(de.ol,{tabIndex:-1,...i,ref:f})}),b&&a.jsx(np,{ref:u,onFocusFromOutsideViewport:()=>{const w=x({tabbingDirection:"backwards"});Af(w)}})]})});f1.displayName=h1;var m1="ToastFocusProxy",np=g.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=e,i=gh(m1,r);return a.jsx(ph,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var d;const l=o.relatedTarget;!((d=i.viewport)!=null&&d.contains(l))&&n()}})});np.displayName=m1;var Sc="Toast",iT="toast.swipeStart",oT="toast.swipeMove",lT="toast.swipeCancel",cT="toast.swipeEnd",p1=g.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:i,...o}=e,[l,c]=bn({prop:n,defaultProp:s??!0,onChange:i,caller:Sc});return a.jsx(Ir,{present:r||l,children:a.jsx(hT,{open:l,...o,ref:t,onClose:()=>c(!1),onPause:Nt(e.onPause),onResume:Nt(e.onResume),onSwipeStart:le(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:le(e.onSwipeMove,d=>{const{x:u,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:le(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:le(e.onSwipeEnd,d=>{const{x:u,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});p1.displayName=Sc;var[dT,uT]=d1(Sc,{onClose(){}}),hT=g.forwardRef((e,t)=>
40{const{__scopeToast:r,type:n="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:l,onPause:c,onResume:d,onSwipeStart:u,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:m,...b}=e,x=gh(Sc,r),[w,v]=g.useState(null),p=Pe(t,L=>v(L)),y=g.useRef(null),j=g.useRef(null),N=s||x.duration,S=g.useRef(0),k=g.useRef(N),A=g.useRef(0),{onToastAdd:E,onToastRemove:O}=x,R=Nt(()=>{var C;(w==null?void 0:w.contains(document.activeElement))&&((C=x.viewport)==null||C.focus()),o()}),I=g.useCallback(L=>{!L||L===1/0||(window.clearTimeout(A.current),S.current=new Date().getTime(),A.current=window.setTimeout(R,L))},[R]);g.useEffect(()=>{const L=x.viewport;if(L){const C=()=>{I(k.current),d==null||d()},F=()=>{const B=new Date().getTime()-S.current;k.current=k.current-B,window.clearTimeout(A.current),c==null||c()};return L.addEventListener(tp,F),L.addEventListener(rp,C),()=>{L.removeEventListener(tp,F),L.removeEventListener(rp,C)}}},[x.viewport,N,c,d,I]),g.useEffect(()=>{i&&!x.isClosePausedRef.current&&I(N)},[i,N,x.isClosePausedRef,I]),g.useEffect(()=>(E(),()=>O()),[E,O]);const U=g.useMemo(()=>w?j1(w):null,[w]);return x.viewport?a.jsxs(a.Fragment,{children:[U&&a.jsx(fT,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:U}),a.jsx(dT,{scope:r,onClose:R,children:ri.createPortal(a.jsx(Zg.ItemSlot,{scope:r,children:a.jsx(WE,{asChild:!0,onEscapeKeyDown:le(l,()=>{x.isFocusedToastEscapeKeyDownRef.current||R(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:a.jsx(de.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":x.swipeDirection,...b,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:le(e.onKeyDown,L=>{L.key==="Escape"&&(l==null||l(L.nativeEvent),L.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,R()))}),onPointerDown:le(e.onPointerDown,L=>{L.button===0&&(y.current={x:L.clientX,y:L.clientY})}),onPointerMove:le(e.onPointerMove,L=>{if(!y.current)return;const C=L.clientX-y.current.x,F=L.clientY-y.current.y,B=!!j.current,P=["left","right"].includes(x.swipeDirection),D=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,V=P?D(0,C):0,te=P?0:D(0,F),re=L.pointerType==="touch"?10:2,me={x:V,y:te},ce={originalEvent:L,delta:me};B?(j.current=me,ud(oT,h,ce,{discrete:!1})):wy(me,x.swipeDirection,re)?(j.current=me,ud(iT,u,ce,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(C)>re||Math.abs(F)>re)&&(y.current=null)}),onPointerUp:le(e.onPointerUp,L=>{const C=j.current,F=L.target;if(F.hasPointerCapture(L.pointerId)&&F.releasePointerCapture(L.pointerId),j.current=null,y.current=null,C){const B=L.currentTarget,P={originalEvent:L,delta:C};wy(C,x.swipeDirection,x.swipeThreshold)?ud(cT,m,P,{discrete:!0}):ud(lT,f,P,{discrete:!0}),B.addEventListener("click",D=>D.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),fT=e=>{const{__scopeToast:t,children:r,...n}=e,s=gh(Sc,t),[i,o]=g.useState(!1),[l,c]=g.useState(!1);return gT(()=>o(!0)),g.useEffect(()=>{const d=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(d)},[]),l?null:a.jsx(mh,{asChild:!0,children:a.jsx(ph,{...n,children:i&&a.jsxs(a.Fragment,{children:[s.label," ",r]})})})},mT="ToastTitle",g1=g.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return a.jsx(de.div,{...n,ref:t})});g1.displayName=mT;var pT="ToastDescription",x1=g.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return a.jsx(de.div,{...n,ref:t})});x1.displayName=pT;var v1="ToastAction",y1=g.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?a.jsx(w1,{altText:r,asChild:!0,children:a.jsx(Yg,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${v1}\`. Expected non-empty \`string\`.`),null)});y1.displayName=v1;var b1="ToastClose",Yg=g.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,s=uT(b1,r);return a.jsx(w1,{asChild:!0,children:a.jsx(de.button,{type:"button",...n,ref:t,onClick:le(e.onClick,s.onClose)})})});Yg.displayName=b1;var w1=g.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...s}=e;return a.jsx(de.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:t})});function j1(e){const t=[];
vendor: 4,277 bytes, lines 40-65
40return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),xT(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=n.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...j1(n))}}),t}function ud(e,t,r,{discrete:n}){const s=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?a1(s,i):s.dispatchEvent(i)}var wy=(e,t,r=0)=>{const n=Math.abs(e.x),s=Math.abs(e.y),i=n>s;return t==="left"||t==="right"?i&&n>r:!i&&s>r};function gT(e=()=>{}){const t=Nt(e);mt(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function xT(e){return e.nodeType===e.ELEMENT_NODE}function vT(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Af(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var yT=u1,N1=f1,S1=p1,k1=g1,_1=x1,C1=y1,A1=Yg;function E1(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=E1(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function T1(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=E1(e))&&(n&&(n+=" "),n+=t);return n}const jy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ny=T1,xh=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Ny(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(d=>{const u=r==null?void 0:r[d],h=i==null?void 0:i[d];if(u===null)return null;const f=jy(u)||jy(h);return s[d][f]}),l=r&&Object.entries(r).reduce((d,u)=>{let[h,f]=u;return f===void 0||(d[h]=f),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,u)=>{let{class:h,className:f,...m}=u;return Object.entries(m).every(b=>{let[x,w]=b;return Array.isArray(w)?w.includes({...i,...l}[x]):{...i,...l}[x]===w})?[...d,h,f]:d},[]);return Ny(e,o,c,r==null?void 0:r.class,r==null?void 0:r.className)};/** 41 * @license lucide-react v0.462.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 bT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),P1=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/** 46 * @license lucide-react v0.462.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 */var wT={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"};/** 51 * @license lucide-react v0.462.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 jT=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:i,iconNode:o,...l},c)=>g.createElement("svg",{ref:c,...wT,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:P1("lucide",s),...l},[...o.map(([d,u])=>g.createElement(d,u)),...Array.isArray(i)?i:[i]]));/** 56 * @license lucide-react v0.462.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 Z=(e,t)=>{const r=g.forwardRef(({className:n,...s},i)=>g.createElement(jT,{ref:i,iconNode:t,className:P1(`lucide-${bT(e)}`,n),...s}));return r.displayName=`${e}`,r};/** 61 * @license lucide-react v0.462.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 Er=Z("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l
65-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/** 66 * @license lucide-react v0.462.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 NT=Z("Apple",[["path",{d:"M12 20.94c1.5 0 2.75 1.06 4 1.06 3 0 6-8 6-12.22A4.91 4.91 0 0 0 17 5c-2.22 0-4 1.44-5 2-1-.56-2.78-2-5-2a4.9 4.9 0 0 0-5 4.78C2 14 5 22 8 22c1.25 0 2.5-1.06 4-1.06Z",key:"3s7exb"}],["path",{d:"M10 2c1 .5 2 2 2 5",key:"fcco2y"}]]);/** 71 * @license lucide-react v0.462.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 da=Z("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 76 * @license lucide-react v0.462.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 tt=Z("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 81 * @license lucide-react v0.462.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 R1=Z("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** 86 * @license lucide-react v0.462.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 ST=Z("Bike",[["circle",{cx:"18.5",cy:"17.5",r:"3.5",key:"15x4ox"}],["circle",{cx:"5.5",cy:"17.5",r:"3.5",key:"1noe27"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["path",{d:"M12 17.5V14l-3-3 4-3 2 3h2",key:"1npguv"}]]);/** 91 * @license lucide-react v0.462.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 kT=Z("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 96 * @license lucide-react v0.462.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 Vr=Z("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/** 101 * @license lucide-react v0.462.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 Zs=Z("Brain",[["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"}]]);/** 106 * @license lucide-react v0.462.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 I1=Z("Building2",[["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"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 111 * @license lucide-react v0.462.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 dl=Z("Calendar",[["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"}]]);/** 116 * @license lucide-react v0.462.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 Sy=Z("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/** 121 * @license lucide-react v0.462.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 vo=Z("ChartColumn",[["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"}]]);/** 126 * @license lucide-react v0.462.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 _T=Z("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/** 131 * @license lucide-react v0.462.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 kc=Z("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 136 * @license lucide-react v0.462.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 CT=Z("ChefHat",[["path",{d:"M17 21a1 1 0 0 0 1-1v-5.35c0-.457.316-.844.727-1.041a4 4 0 0 0-2.134-7.589 5 5 0 0 0-9.186 0 4 4 0 0 0-2.134 7.588c.411.198.727.585.727 1.041V20a1 1 0 0 0 1 1Z",key:"1qvrer"}],["path",{d:"M6 17h12",key:"1jwigz"}]]);/** 141 * @license lucide-react v0.462.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 Jg=Z("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 146 * @license lucide-react v0.462.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 AT=Z("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 151 * @license lucide-react v0.462.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 vu=Z("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 156 * @license lucide-react v0.462.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 ET=Z("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 161 * @license lucide-react v0.462.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 TT=Z("CircleAlert",[["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"}]]);/** 166 * @license lucide-react v0.462.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 O1=Z("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 171 * @license lucide-react v0.462.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 Yt=Z("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 176 * @license lucide-react v0.462.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 PT=Z("CircleDot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/** 181 * @license lucide-react v0.462.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 M1=Z("CircleX",[["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"}]]);/** 186 * @license lucide-react v0.462.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 RT=Z("ClipboardList",[["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"}]]);/** 191 * @license lucide-react v0.462.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 Ys=Z("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 196 * @license lucide-react v0.462.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 sp=Z("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/** 201 * @license lucide-react v0.462.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 IT=Z("Cpu",[["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"}
205],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/** 206 * @license lucide-react v0.462.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 ap=Z("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 211 * @license lucide-react v0.462.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 OT=Z("Crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]);/** 216 * @license lucide-react v0.462.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 ip=Z("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** 221 * @license lucide-react v0.462.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 vh=Z("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** 226 * @license lucide-react v0.462.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 yu=Z("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 231 * @license lucide-react v0.462.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 _c=Z("Eye",[["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"}]]);/** 236 * @license lucide-react v0.462.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 bu=Z("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]);/** 241 * @license lucide-react v0.462.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 D1=Z("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 246 * @license lucide-react v0.462.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 Qg=Z("Fingerprint",[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]]);/** 251 * @license lucide-react v0.462.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 Xg=Z("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/** 256 * @license lucide-react v0.462.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 L1=Z("Footprints",[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]]);/** 261 * @license lucide-react v0.462.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 MT=Z("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/** 266 * @license lucide-react v0.462.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 DT=Z("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/** 271 * @license lucide-react v0.462.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 LT=Z("Globe",[["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"}]]);/** 276 * @license lucide-react v0.462.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 zr=Z("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 281 * @license lucide-react v0.462.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 $T=Z("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** 286 * @license lucide-react v0.462.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 $1=Z("Key",[["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"}]]);/** 291 * @license lucide-react v0.462.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 ex=Z("Layers",[["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:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** 296 * @license lucide-react v0.462.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 kl=Z("Leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);/** 301 * @license lucide-react v0.462.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 tx=Z("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 306 * @license lucide-react v0.462.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 Js=Z("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 311 * @license lucide-react v0.462.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 Cc=Z("Lock",[["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"}]]);/** 316 * @license lucide-react v0.462.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 FT=Z("LogOut",[["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"}]]);/** 321 * @license lucide-react v0.462.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 F1=Z("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 326 * @license lucide-react v0.462.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 UT=Z("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/** 331 * @license lucide-react v0.462.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 zT=Z("Menu",[["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"}]]);/** 336 * @license lucide-react v0.462.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 BT=Z("MessageSquare",[["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"}]]);/** 341 * @license lucide-react v0.462.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 U1=Z("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/** 346 * @license lucide-react v0.462.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 VT=Z("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/** 351 * @license lucide-react v0.462.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 Ac=Z("Package",[["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"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/** 356 * @license lucide-react v0.462.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 HT=Z("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 361 * @license lucide-react v0.462.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 hd=Z("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 366 * @license lucide-react v0.462.0 - ISC 367 * 368 * This source code is licensed under the ISC license. 369 * See the LICENSE file in the root directory of this source tree. 370 */const z1=Z("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/** 371 * @license lucide-react v0.462.0 - ISC 372 * 373 * This source code is licensed under the ISC license. 374 * See the LICENSE file in the root directory of this source tree. 375 */const WT=Z("RefreshCw",[["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"}]]);/** 376 * @license lucide-react v0.462.0 - ISC 377 * 378 * This source code is licensed under the ISC license. 379 * See the LICENSE file in the root directory of this source tree. 380 */const B1=Z("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3
380kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** 381 * @license lucide-react v0.462.0 - ISC 382 * 383 * This source code is licensed under the ISC license. 384 * See the LICENSE file in the root directory of this source tree. 385 */const ky=Z("Salad",[["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z",key:"4rw317"}],["path",{d:"M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1",key:"10xrj0"}],["path",{d:"m13 12 4-4",key:"1hckqy"}],["path",{d:"M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2",key:"1p4srx"}]]);/** 386 * @license lucide-react v0.462.0 - ISC 387 * 388 * This source code is licensed under the ISC license. 389 * See the LICENSE file in the root directory of this source tree. 390 */const qT=Z("Scan",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]]);/** 391 * @license lucide-react v0.462.0 - ISC 392 * 393 * This source code is licensed under the ISC license. 394 * See the LICENSE file in the root directory of this source tree. 395 */const Fi=Z("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 396 * @license lucide-react v0.462.0 - ISC 397 * 398 * This source code is licensed under the ISC license. 399 * See the LICENSE file in the root directory of this source tree. 400 */const _l=Z("Server",[["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"}]]);/** 401 * @license lucide-react v0.462.0 - ISC 402 * 403 * This source code is licensed under the ISC license. 404 * See the LICENSE file in the root directory of this source tree. 405 */const Ec=Z("Settings",[["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"}]]);/** 406 * @license lucide-react v0.462.0 - ISC 407 * 408 * This source code is licensed under the ISC license. 409 * See the LICENSE file in the root directory of this source tree. 410 */const wu=Z("ShieldCheck",[["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:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 411 * @license lucide-react v0.462.0 - ISC 412 * 413 * This source code is licensed under the ISC license. 414 * See the LICENSE file in the root directory of this source tree. 415 */const Vt=Z("Shield",[["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"}]]);/** 416 * @license lucide-react v0.462.0 - ISC 417 * 418 * This source code is licensed under the ISC license. 419 * See the LICENSE file in the root directory of this source tree. 420 */const V1=Z("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/** 421 * @license lucide-react v0.462.0 - ISC 422 * 423 * This source code is licensed under the ISC license. 424 * See the LICENSE file in the root directory of this source tree. 425 */const GT=Z("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/** 426 * @license lucide-react v0.462.0 - ISC 427 * 428 * This source code is licensed under the ISC license. 429 * See the LICENSE file in the root directory of this source tree. 430 */const KT=Z("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** 431 * @license lucide-react v0.462.0 - ISC 432 * 433 * This source code is licensed under the ISC license. 434 * See the LICENSE file in the root directory of this source tree. 435 */const ls=Z("Sparkles",[["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"}]]);/** 436 * @license lucide-react v0.462.0 - ISC 437 * 438 * This source code is licensed under the ISC license. 439 * See the LICENSE file in the root directory of this source tree. 440 */const Zl=Z("Star",[["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"}]]);/** 441 * @license lucide-react v0.462.0 - ISC 442 * 443 * This source code is licensed under the ISC license. 444 * See the LICENSE file in the root directory of this source tree.
445 */const Ef=Z("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/** 446 * @license lucide-react v0.462.0 - ISC 447 * 448 * This source code is licensed under the ISC license. 449 * See the LICENSE file in the root directory of this source tree. 450 */const yo=Z("Target",[["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"}]]);/** 451 * @license lucide-react v0.462.0 - ISC 452 * 453 * This source code is licensed under the ISC license. 454 * See the LICENSE file in the root directory of this source tree. 455 */const wn=Z("TrendingUp",[["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"}]]);/** 456 * @license lucide-react v0.462.0 - ISC 457 * 458 * This source code is licensed under the ISC license. 459 * See the LICENSE file in the root directory of this source tree. 460 */const Ln=Z("TriangleAlert",[["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"}]]);/** 461 * @license lucide-react v0.462.0 - ISC 462 * 463 * This source code is licensed under the ISC license. 464 * See the LICENSE file in the root directory of this source tree. 465 */const ZT=Z("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/** 466 * @license lucide-react v0.462.0 - ISC 467 * 468 * This source code is licensed under the ISC license. 469 * See the LICENSE file in the root directory of this source tree. 470 */const YT=Z("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 471 * @license lucide-react v0.462.0 - ISC 472 * 473 * This source code is licensed under the ISC license. 474 * See the LICENSE file in the root directory of this source tree. 475 */const qr=Z("Users",[["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"}]]);/** 476 * @license lucide-react v0.462.0 - ISC 477 * 478 * This source code is licensed under the ISC license. 479 * See the LICENSE file in the root directory of this source tree. 480 */const JT=Z("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]);/** 481 * @license lucide-react v0.462.0 - ISC 482 * 483 * This source code is licensed under the ISC license. 484 * See the LICENSE file in the root directory of this source tree. 485 */const Ui=Z("Utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]]);/** 486 * @license lucide-react v0.462.0 - ISC 487 * 488 * This source code is licensed under the ISC license. 489 * See the LICENSE file in the root directory of this source tree. 490 */const QT=Z("Watch",[["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["polyline",{points:"12 10 12 12 13 13",key:"19dquz"}],["path",{d:"m16.13 7.66-.81-4.05a2 2 0 0 0-2-1.61h-2.68a2 2 0 0 0-2 1.61l-.78 4.05",key:"18k57s"}],["path",{d:"m7.88 16.36.8 4a2 2 0 0 0 2 1.61h2.72a2 2 0 0 0 2-1.61l.81-4.05",key:"16ny36"}]]);/** 491 * @license lucide-react v0.462.0 - ISC 492 * 493 * This source code is licensed under the ISC license. 494 * See the LICENSE file in the root directory of this source tree. 495 */const qa=Z("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 8,400 bytes, lines 495-500
495],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 496 * @license lucide-react v0.462.0 - ISC 497 * 498 * This source code is licensed under the ISC license. 499 * See the LICENSE file in the root directory of this source tree. 500 */const Ga=Z("Zap",[["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"}]]),rx="-",XT=e=>{const t=tP(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const l=o.split(rx);return l[0]===""&&l.length!==1&&l.shift(),H1(l,t)||eP(o)},getConflictingClassGroupIds:(o,l)=>{const c=r[o]||[];return l&&n[o]?[...c,...n[o]]:c}}},H1=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?H1(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(rx);return(o=t.validators.find(({validator:l})=>l(i)))==null?void 0:o.classGroupId},_y=/^\[(.+)\]$/,eP=e=>{if(_y.test(e)){const t=_y.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},tP=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return nP(Object.entries(e.classGroups),r).forEach(([i,o])=>{op(o,n,i,t)}),n},op=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Cy(t,s);i.classGroupId=r;return}if(typeof s=="function"){if(rP(s)){op(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([i,o])=>{op(o,Cy(t,i),r,n)})})},Cy=(e,t)=>{let r=e;return t.split(rx).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},rP=e=>e.isThemeGetter,nP=(e,t)=>t?e.map(([r,n])=>{const s=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,l])=>[t+o,l])):i);return[r,s]}):e,sP=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(i,o)=>{r.set(i,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return s(i,o),o},set(i,o){r.has(i)?r.set(i,o):s(i,o)}}},W1="!",aP=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],i=t.length,o=l=>{const c=[];let d=0,u=0,h;for(let w=0;w<l.length;w++){let v=l[w];if(d===0){if(v===s&&(n||l.slice(w,w+i)===t)){c.push(l.slice(u,w)),u=w+i;continue}if(v==="/"){h=w;continue}}v==="["?d++:v==="]"&&d--}const f=c.length===0?l:l.substring(u),m=f.startsWith(W1),b=m?f.substring(1):f,x=h&&h>u?h-u:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:x}};return r?l=>r({className:l,parseClassName:o}):o},iP=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},oP=e=>({cache:sP(e.cacheSize),parseClassName:aP(e),...XT(e)}),lP=/\s+/,cP=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(lP);let l="";for(let c=o.length-1;c>=0;c-=1){const d=o[c],{modifiers:u,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:m}=r(d);let b=!!m,x=n(b?f.substring(0,m):f);if(!x){if(!b){l=d+(l.length>0?" "+l:l);continue}if(x=n(f),!x){l=d+(l.length>0?" "+l:l);continue}b=!1}const w=iP(u).join(":"),v=h?w+W1:w,p=v+x;if(i.includes(p))continue;i.push(p);const y=s(x,b);for(let j=0;j<y.length;++j){const N=y[j];i.push(v+N)}l=d+(l.length>0?" "+l:l)}return l};function dP(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=q1(t))&&(n&&(n+=" "),n+=r);return n}const q1=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=q1(e[n]))&&(r&&(r+=" "),r+=t);return r};function uP(e,...t){let r,n,s,i=o;function o(c){const d=t.reduce((u,h)=>h(u),e());return r=oP(d),n=r.cache.get,s=r.cache.set,i=l,l(c)}function l(c){const d=n(c);if(d)return d;const u=cP(c,r);return s(c,u),u}return function(){return i(dP.apply(null,arguments))}}const Xe=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},G1=/^\[(?:([a-z-]+):)?(.+)\]$/i,hP=/^\d+\/\d+$/,fP=new Set(["px","full","screen"]),mP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pP=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,xP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wn=e=>Zi(e)||fP.has(e)||hP.test(e),vs=e=>Ro(e,"length",_P),Zi=e=>!!e&&!Number.isNaN(Number(e)),Tf=e=>Ro(e,"number",Zi),Yo=e=>!!e&&Number.isInteger(Number(e)),yP=e=>e.endsWith("%")&&Zi(e.slice(0,-1)),Ce=e=>G1.test(e),ys=e=>mP.test(e),bP=new Set(["length","size","percentage"]),wP=e=>Ro(e,bP,K1),jP=e=>Ro(e,"position",K1),NP=new Set(["image","url"]),SP=e=>Ro(e,NP,AP),kP=e=>Ro(e,"",CP),Jo=()=>!0,Ro=(e,t,r)=>{const n=G1.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},_P=e=>pP.test(e)&&!gP.test(e),K1=()=>!1,CP=e=>xP.test(e),AP=e=>vP.test(e),EP=()=>{const e=Xe("colors"),t=Xe("spacing"),r=Xe("blur"),n=Xe("brightness"),s=Xe("borderColor"),i=Xe("borderRadius"),o=Xe("borderSpacing"),l=Xe("borderWidth"),c=Xe("contrast"),d=Xe("grayscale"),u=Xe("hueRotate"),h=Xe("invert"),f=Xe("gap"),m=Xe("gradientColorStops"),b=Xe("gradientColorStopPositions"),x=Xe("inset"),w=Xe("margin"),v=Xe("opacity"),p=Xe("padding"),y=Xe("saturate"),j=Xe("scale"),N=Xe("sepia"),S=Xe("skew"),k=Xe("space"),A=Xe("translate"),E=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto",Ce,t],I=()=>[Ce,t],U=()=>["",Wn,vs],L=()=>["auto",Zi,Ce],C=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",Ce],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[Zi,Ce];return{cacheSize:500,separator:":",theme:{colors:[Jo],spacing:[Wn,vs],blur:["none","",ys,Ce],brightness:te(),borderColor:[e],borderRadius:["none","","full",ys,Ce],borderSpacing:I(),borderWidth:U(),contrast:te(),grayscale:D(),hueRotate:te(),invert:D(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[yP,vs],inset:R(),margin:R(),opacity:te(),padding:I(),saturate:te(),scale:te(),sepia:D(),skew:te(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",Ce]}],container:["container"],columns:[{columns:[ys]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...C(),Ce]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Yo,Ce]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ce]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",Yo,Ce]}],"grid-cols":[{"grid-cols":[Jo]}],"col-start-end":[{col:["auto",{span:["full",Yo,Ce]},Ce]}],"col-start":[{"col-start":L()}
vendor: 9,422 bytes, line 500
500],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Jo]}],"row-start-end":[{row:["auto",{span:[Yo,Ce]},Ce]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ce]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ce,t]}],"min-w":[{"min-w":[Ce,t,"min","max","fit"]}],"max-w":[{"max-w":[Ce,t,"none","full","min","max","fit","prose",{screen:[ys]},ys]}],h:[{h:[Ce,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ce,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ce,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ce,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ys,vs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Tf]}],"font-family":[{font:[Jo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ce]}],"line-clamp":[{"line-clamp":["none",Zi,Tf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Wn,Ce]}],"list-image":[{"list-image":["none",Ce]}],"list-style-type":[{list:["none","disc","decimal",Ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Wn,vs]}],"underline-offset":[{"underline-offset":["auto",Wn,Ce]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...C(),jP]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wP]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},SP]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:F()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[Wn,Ce]}],"outline-w":[{outline:[Wn,vs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Wn,vs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ys,kP]}],"shadow-color":[{shadow:[Jo]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ys,Ce]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[y]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ce]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",Ce]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[Yo,Ce]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ce]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,642 bytes, line 500
500],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Wn,vs,Tf]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},TP=uP(EP);function X(...e){return TP(T1(e))}const PP=yT,Z1=g.forwardRef(({className:e,...t},r)=>a.jsx(N1,{ref:r,className:X("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Z1.displayName=N1.displayName;const RP=xh("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Y1=g.forwardRef(({className:e,variant:t,...r},n)=>a.jsx(S1,{ref:n,className:X(RP({variant:t}),e),...r}));Y1.displayName=S1.displayName;const IP=g.forwardRef(({className:e,...t},r)=>a.jsx(C1,{ref:r,className:X("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));IP.displayName=C1.displayName;const J1=g.forwardRef(({className:e,...t},r)=>a.jsx(A1,{ref:r,className:X("absolute right-2 top-2 rounded-md p-1 text-foreground
500/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:a.jsx(qa,{className:"h-4 w-4"})}));J1.displayName=A1.displayName;const Q1=g.forwardRef(({className:e,...t},r)=>a.jsx(k1,{ref:r,className:X("text-sm font-semibold",e),...t}));Q1.displayName=k1.displayName;const X1=g.forwardRef(({className:e,...t},r)=>a.jsx(_1,{ref:r,className:X("text-sm opacity-90",e),...t}));X1.displayName=_1.displayName;function OP(){const{toasts:e}=hh();return a.jsxs(PP,{children:[e.map(function({id:t,title:r,description:n,action:s,...i}){return a.jsxs(Y1,{...i,children:[a.jsxs("div",{className:"grid gap-1",children:[r&&a.jsx(Q1,{children:r}),n&&a.jsx(X1,{children:n})]}),s,a.jsx(J1,{})]},t)}),a.jsx(Z1,{})]})}var Ay=["light","dark"],MP="(prefers-color-scheme: dark)",DP=g.createContext(void 0),LP={setTheme:e=>{},themes:[]},$P=()=>{var e;return(e=g.useContext(DP))!=null?e:LP};g.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:i,value:o,attrs:l,nonce:c})=>{let d=i==="system",u=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=s?Ay.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(b,x=!1,w=!0)=>{let v=o?o[b]:b,p=x?b+"|| ''":`'${v}'`,y="";return s&&w&&!x&&Ay.includes(b)&&(y+=`d.style.colorScheme = '${b}';`),r==="class"?x||v?y+=`c.add(${p})`:y+="null":v&&(y+=`d[s](n,${p})`),y},m=e?`!function(){${u}${f(e)}}()`:n?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${d})){var t='${MP}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${d?"":"else{"+f(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${h}}catch(t){}}();`;return g.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:m}})});var FP=e=>{switch(e){case"success":return BP;case"info":return HP;case"warning":return VP;case"error":return WP;default:return null}},UP=Array(12).fill(0),zP=({visible:e,className:t})=>M.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},M.createElement("div",{className:"sonner-spinner"},UP.map((r,n)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),BP=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),VP=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),HP=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("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 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),WP=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),qP=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),GP=()=>
500{let[e,t]=M.useState(document.hidden);return M.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},lp=1,KP=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:lp++,i=this.toasts.find(l=>l.id===s),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...e,id:s,title:r}),{...l,...e,id:s,dismissible:o,title:r}):l):this.addToast({title:r,...n,dismissible:o,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
500this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let n=e instanceof Promise?e:e(),s=r!==void 0,i,o=n.then(async c=>{if(i=["resolve",c],M.isValidElement(c))s=!1,this.create({id:r,type:"default",message:c});else if(YP(c)&&!c.ok){s=!1;let d=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,u=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:r,type:"error",message:d,description:u})}else if(t.success!==void 0){s=!1;let d=typeof t.success=="function"?await t.success(c):t.success,u=typeof t.description=="function"?await t.description(c):t.description;this.create({id:r,type:"success",message:d,description:u})}}).catch(async c=>{if(i=["reject",c],t.error!==void 0){s=!1;let d=typeof t.error=="function"?await t.error(c):t.error,u=typeof t.description=="function"?await t.description(c):t.description;this.create({id:r,type:"error",message:d,description:u})}}).finally(()=>{var c;s&&(this.dismiss(r),r=void 0),(c=t.finally)==null||c.call(t)}),l=()=>new Promise((c,d)=>o.then(()=>i[0]==="reject"?d(i[1]):c(i[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||lp++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},hr=new KP,ZP=(e,t)=>{let r=(t==null?void 0:t.id)||lp++;return hr.addToast({title:e,...t,id:r}),r},YP=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",JP=ZP,QP=()=>hr.toasts,XP=()=>hr.getActiveToasts();Object.assign(JP,{success:hr.success,info:hr.info,warning:hr.warning,error:hr.error,custom:hr.custom,message:hr.message,promise:hr.promise,dismiss:hr.dismiss,loading:hr.loading},{getHistory:QP,getToasts:XP});function eR(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}eR(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
500left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
500:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
500--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 501`);function fd(e){return e.label!==void 0}var tR=3,rR="32px",nR="16px",Ey=4e3,sR=356,aR=14,iR=20,oR=200;function tn(...e){return e.filter(Boolean).join(" ")}function lR(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var cR=e=>{var t,r,n,s,i,o,l,c,d,u,h;let{invert:f,toast:m,unstyled:b,interacting:x,setHeights:w,visibleToasts:v,heights:p,index:y,toasts:j,expanded:N,removeToast:S,defaultRichColors:k,closeButton:A,style:E,cancelButtonStyle:O,actionButtonStyle:R,className:I="",descriptionClassName:U="",duration:L,position:C,gap:F,loadingIcon:B,expandByDefault:P,classNames:D,icons:V,
501closeButtonAriaLabel:te="Close toast",pauseWhenPageIsHidden:re}=e,[me,ce]=M.useState(null),[_e,We]=M.useState(null),[q,ye]=M.useState(!1),[Ie,be]=M.useState(!1),[ue,W]=M.useState(!1),[je,Oe]=M.useState(!1),[Ze,pt]=M.useState(!1),[kt,cr]=M.useState(0),[Pt,_]=M.useState(0),T=M.useRef(m.duration||L||Ey),$=M.useRef(null),Y=M.useRef(null),J=y===0,G=y+1<=v,ne=m.type,Ee=m.dismissible!==!1,qe=m.className||"",Rt=m.descriptionClassName||"",Ht=M.useMemo(()=>p.findIndex(we=>we.toastId===m.id)||0,[p,m.id]),dr=M.useMemo(()=>{var we;return(we=m.closeButton)!=null?we:A},[m.closeButton,A]),ms=M.useMemo(()=>m.duration||L||Ey,[m.duration,L]),Or=M.useRef(0),Mr=M.useRef(0),ii=M.useRef(0),Zr=M.useRef(null),[Uo,oi]=C.split("-"),zo=M.useMemo(()=>p.reduce((we,Ue,Ye)=>Ye>=Ht?we:we+Ue.height,0),[p,Ht]),Hc=GP(),Wc=m.invert||f,li=ne==="loading";Mr.current=M.useMemo(()=>Ht*F+zo,[Ht,zo]),M.useEffect(()=>{T.current=ms},[ms]),M.useEffect(()=>{ye(!0)},[]),M.useEffect(()=>{let we=Y.current;if(we){let Ue=we.getBoundingClientRect().height;return _(Ue),w(Ye=>[{toastId:m.id,height:Ue,position:m.position},...Ye]),()=>w(Ye=>Ye.filter(Jr=>Jr.toastId!==m.id))}},[w,m.id]),M.useLayoutEffect(()=>{if(!q)return;let we=Y.current,Ue=we.style.height;we.style.height="auto";let Ye=we.getBoundingClientRect().height;we.style.height=Ue,_(Ye),w(Jr=>Jr.find(Qr=>Qr.toastId===m.id)?Jr.map(Qr=>Qr.toastId===m.id?{...Qr,height:Ye}:Qr):[{toastId:m.id,height:Ye,position:m.position},...Jr])},[q,m.title,m.description,w,m.id]);let Yr=M.useCallback(()=>{be(!0),cr(Mr.current),w(we=>we.filter(Ue=>Ue.toastId!==m.id)),setTimeout(()=>{S(m)},oR)},[m,S,w,Mr]);M.useEffect(()=>{if(m.promise&&ne==="loading"||m.duration===1/0||m.type==="loading")return;let we;return N||x||re&&Hc?(()=>{if(ii.current<Or.current){let Ue=new Date().getTime()-Or.current;T.current=T.current-Ue}ii.current=new Date().getTime()})():T.current!==1/0&&(Or.current=new Date().getTime(),we=setTimeout(()=>{var Ue;(Ue=m.onAutoClose)==null||Ue.call(m,m),Yr()},T.current)),()=>clearTimeout(we)},[N,x,m,ne,re,Hc,Yr]),M.useEffect(()=>{m.delete&&Yr()},[Yr,m.delete]);function Jh(){var we,Ue,Ye;return V!=null&&V.loading?M.createElement("div",{className:tn(D==null?void 0:D.loader,(we=m==null?void 0:m.classNames)==null?void 0:we.loader,"sonner-loader"),"data-visible":ne==="loading"},V.loading):B?M.createElement("div",{className:tn(D==null?void 0:D.loader,(Ue=m==null?void 0:m.classNames)==null?void 0:Ue.loader,"sonner-loader"),"data-visible":ne==="loading"},B):M.createElement(zP,{className:tn(D==null?void 0:D.loader,(Ye=m==null?void 0:m.classNames)==null?void 0:Ye.loader),visible:ne==="loading"})}return M.createElement("li",{tabIndex:0,ref:Y,className:tn(I,qe,D==null?void 0:D.toast,(t=m==null?void 0:m.classNames)==null?void 0:t.toast,D==null?void 0:D.default,D==null?void 0:D[ne],(r=m==null?void 0:m.classNames)==null?void 0:r[ne]),"data-sonner-toast":"","data-rich-colors":(n=m.richColors)!=null?n:k,"data-styled":!(m.jsx||m.unstyled||b),"data-mounted":q,"data-promise":!!m.promise,"data-swiped":Ze,"data-removed":Ie,"data-visible":G,"data-y-position":Uo,"data-x-position":oi,"data-index":y,"data-front":J,"data-swiping":ue,"data-dismissible":Ee,"data-type":ne,"data-invert":Wc,"data-swipe-out":je,"data-swipe-direction":_e,"data-expanded":!!(N||P&&q),style:{"--index":y,"--toasts-before":y,"--z-index":j.length-y,"--offset":`${Ie?kt:Mr.current}px`,"--initial-height":P?"auto":`${Pt}px`,...E,...m.style},onDragEnd:()=>{W(!1),ce(null),Zr.current=null},onPointerDown:we=>{li||!Ee||($.current=new Date,cr(Mr.current),we.target.setPointerCapture(we.pointerId),we.target.tagName!=="BUTTON"&&(W(!0),Zr.current={x:we.clientX,y:we.clientY}))},onPointerUp:()=>{var we,Ue,Ye,Jr;if(je||!Ee)return;Zr.current=null;let Qr=Number(((we=Y.current)==null?void 0:we.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ps=Number(((Ue=Y.current)==null?void 0:Ue.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ma=new Date().getTime()-((Ye=$.current)==null?void 0:Ye.getTime()),Xr=me==="x"?Qr:ps,gs=Math.abs(Xr)/ma;if(Math.abs(Xr)>=iR||gs>.11){cr(Mr.current),(Jr=m.onDismiss)==null||Jr.call(m,m),We(me==="x"?Qr>0?"right":"left":ps>0?"down":"up"),Yr(),Oe(!0),pt(!1);return}W(!1),ce(null)},onPointerMove:we=>{var Ue,Ye,Jr,Qr;if(!Zr.current||!Ee||((Ue=window.getSelection())==null?void 0:Ue.toString().length)>0)return;let ps=we.clientY-Zr.current.y,ma=we.clientX-Zr.current.x,Xr=(Ye=e.swipeDirections)!=null?Ye:lR(C);!me&&(Math.abs(ma)>1||Math.abs(ps)>1)&&ce(Math.abs(ma)>Math.abs(ps)?"x":"y");let gs={x:0,y:0};me==="y"?(Xr.includes("top")||Xr.includes("bottom"))&&(Xr.includes("top")&&ps<0||Xr.includes("bottom")&&ps>0)&&(gs.y=ps):me==="x"&&(Xr.includes("left")||Xr.includes("right"))&&(Xr.includes("left")&&ma<0||Xr.includes("right")&&ma>0)&&(gs.x=ma),(Math.abs(gs.x)>0||Math.abs(gs.y)>0)&&pt(!0),(Jr=Y.current)==null||Jr.style.setProperty("--swipe-amount-x",`${gs.x}px`),(Qr=Y.current)==null||Qr.style.setProperty("--swipe-amount-y",`${gs.y}px`)}},dr&&!m.jsx?M.createElement("button",{"aria-label":te,"data-disabled":li,"data-close-button":!0,onClick:li||!Ee?()=>{}:()=>{var we;Yr(),(we=m.onDismiss)==null||we.call(m,m)},className:tn(D==null?void 0:D.closeButton,(s=m==null?void 0:m.classNames)==null?void 0:s.closeButton)},(i=V==null?void 0:V.close)!=null?i:qP):null,m.jsx||g.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:M.createElement(M.Fragment,null,ne||m.icon||m.promise?M.createElement("div",{"data-icon":"",className:tn(D==null?void 0:D.icon,(o=m==null?void 0:m.classNames)==null?void 0:o.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||Jh():null,m.type!=="loading"?m.
501icon||(V==null?void 0:V[ne])||FP(ne):null):null,M.createElement("div",{"data-content":"",className:tn(D==null?void 0:D.content,(l=m==null?void 0:m.classNames)==null?void 0:l.content)},M.createElement("div",{"data-title":"",className:tn(D==null?void 0:D.title,(c=m==null?void 0:m.classNames)==null?void 0:c.title)},typeof m.title=="function"?m.title():m.title),m.description?M.createElement("div",{"data-description":"",className:tn(U,Rt,D==null?void 0:D.description,(d=m==null?void 0:m.classNames)==null?void 0:d.description)},typeof m.description=="function"?m.description():m.description):null),g.isValidElement(m.cancel)?m.cancel:m.cancel&&fd(m.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||O,onClick:we=>{var Ue,Ye;fd(m.cancel)&&Ee&&((Ye=(Ue=m.cancel).onClick)==null||Ye.call(Ue,we),Yr())},className:tn(D==null?void 0:D.cancelButton,(u=m==null?void 0:m.classNames)==null?void 0:u.cancelButton)},m.cancel.label):null,g.isValidElement(m.action)?m.action:m.action&&fd(m.action)?M.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||R,onClick:we=>{var Ue,Ye;fd(m.action)&&((Ye=(Ue=m.action).onClick)==null||Ye.call(Ue,we),!we.defaultPrevented&&Yr())},className:tn(D==null?void 0:D.actionButton,(h=m==null?void 0:m.classNames)==null?void 0:h.actionButton)},m.action.label):null))};function Ty(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function dR(e,t){let r={};return[e,t].forEach((n,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",l=i?nR:rR;function c(d){["top","right","bottom","left"].forEach(u=>{r[`${o}-${u}`]=typeof d=="number"?`${d}px`:d})}typeof n=="number"||typeof n=="string"?c(n):typeof n=="object"?["top","right","bottom","left"].forEach(d=>{n[d]===void 0?r[`${o}-${d}`]=l:r[`${o}-${d}`]=typeof n[d]=="number"?`${n[d]}px`:n[d]}):c(l)}),r}var uR=g.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:l,offset:c,mobileOffset:d,theme:u="light",richColors:h,duration:f,style:m,visibleToasts:b=tR,toastOptions:x,dir:w=Ty(),gap:v=aR,loadingIcon:p,icons:y,containerAriaLabel:j="Notifications",pauseWhenPageIsHidden:N}=e,[S,k]=M.useState([]),A=M.useMemo(()=>Array.from(new Set([n].concat(S.filter(re=>re.position).map(re=>
vendor: 4,379 bytes, line 501
501re.position)))),[S,n]),[E,O]=M.useState([]),[R,I]=M.useState(!1),[U,L]=M.useState(!1),[C,F]=M.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=M.useRef(null),P=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),D=M.useRef(null),V=M.useRef(!1),te=M.useCallback(re=>{k(me=>{var ce;return(ce=me.find(_e=>_e.id===re.id))!=null&&ce.delete||hr.dismiss(re.id),me.filter(({id:_e})=>_e!==re.id)})},[]);return M.useEffect(()=>hr.subscribe(re=>{if(re.dismiss){k(me=>me.map(ce=>ce.id===re.id?{...ce,delete:!0}:ce));return}setTimeout(()=>{e1.flushSync(()=>{k(me=>{let ce=me.findIndex(_e=>_e.id===re.id);return ce!==-1?[...me.slice(0,ce),{...me[ce],...re},...me.slice(ce+1)]:[re,...me]})})})}),[]),M.useEffect(()=>{if(u!=="system"){F(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window>"u")return;let re=window.matchMedia("(prefers-color-scheme: dark)");try{re.addEventListener("change",({matches:me})=>{F(me?"dark":"light")})}catch{re.addListener(({matches:ce})=>{try{F(ce?"dark":"light")}catch(_e){console.error(_e)}})}},[u]),M.useEffect(()=>{S.length<=1&&I(!1)},[S]),M.useEffect(()=>{let re=me=>{var ce,_e;s.every(We=>me[We]||me.code===We)&&(I(!0),(ce=B.current)==null||ce.focus()),me.code==="Escape"&&(document.activeElement===B.current||(_e=B.current)!=null&&_e.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",re),()=>document.removeEventListener("keydown",re)},[s]),M.useEffect(()=>{if(B.current)return()=>{D.current&&(D.current.focus({preventScroll:!0}),D.current=null,V.current=!1)}},[B.current]),M.createElement("section",{ref:t,"aria-label":`${j} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},A.map((re,me)=>{var ce;let[_e,We]=re.split("-");return S.length?M.createElement("ol",{key:re,dir:w==="auto"?Ty():w,tabIndex:-1,ref:B,className:l,"data-sonner-toaster":!0,"data-theme":C,"data-y-position":_e,"data-lifted":R&&S.length>1&&!i,"data-x-position":We,style:{"--front-toast-height":`${((ce=E[0])==null?void 0:ce.height)||0}px`,"--width":`${sR}px`,"--gap":`${v}px`,...m,...dR(c,d)},onBlur:q=>{V.current&&!q.currentTarget.contains(q.relatedTarget)&&(V.current=!1,D.current&&(D.current.focus({preventScroll:!0}),D.current=null))},onFocus:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||V.current||(V.current=!0,D.current=q.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{U||I(!1)},onDragEnd:()=>I(!1),onPointerDown:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},S.filter(q=>!q.position&&me===0||q.position===re).map((q,ye)=>{var Ie,be;return M.createElement(cR,{key:q.id,icons:y,index:ye,toast:q,defaultRichColors:h,duration:(Ie=x==null?void 0:x.duration)!=null?Ie:f,className:x==null?void 0:x.className,descriptionClassName:x==null?void 0:x.descriptionClassName,invert:r,visibleToasts:b,closeButton:(be=x==null?void 0:x.closeButton)!=null?be:o,interacting:U,position:re,style:x==null?void 0:x.style,unstyled:x==null?void 0:x.unstyled,classNames:x==null?void 0:x.classNames,cancelButtonStyle:x==null?void 0:x.cancelButtonStyle,actionButtonStyle:x==null?void 0:x.actionButtonStyle,removeToast:te,toasts:S.filter(ue=>ue.position==q.position),heights:E.filter(ue=>ue.position==q.position),setHeights:O,expandByDefault:i,gap:v,loadingIcon:p,expanded:R,pauseWhenPageIsHidden:N,swipeDirections:e.swipeDirections})})):null}))});const hR=({...e})=>{const{theme:t="system"}=$P();return a.jsx(uR,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var fR=ng[" useId ".trim().toString()]||(()=>{}),mR=0;function $n(e){const[t,r]=g.useState(fR());return mt(()=>{r(n=>n??String(mR++))},[e]),t?`radix-${t}`:""}const pR=["top","right","bottom","left"],na=Math.min,Nr=Math.max,ju=Math.round,md=Math.floor,Fn=e=>({x:e,y:e}
vendor: 19,315 bytes, line 501
501),gR={left:"right",right:"left",bottom:"top",top:"bottom"},xR={start:"end",end:"start"};function cp(e,t,r){return Nr(e,na(t,r))}function cs(e,t){return typeof e=="function"?e(t):e}function ds(e){return e.split("-")[0]}function Io(e){return e.split("-")[1]}function nx(e){return e==="x"?"y":"x"}function sx(e){return e==="y"?"height":"width"}const vR=new Set(["top","bottom"]);function In(e){return vR.has(ds(e))?"y":"x"}function ax(e){return nx(In(e))}function yR(e,t,r){r===void 0&&(r=!1);const n=Io(e),s=ax(e),i=sx(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Nu(o)),[o,Nu(o)]}function bR(e){const t=Nu(e);return[dp(e),t,dp(t)]}function dp(e){return e.replace(/start|end/g,t=>xR[t])}const Py=["left","right"],Ry=["right","left"],wR=["top","bottom"],jR=["bottom","top"];function NR(e,t,r){switch(e){case"top":case"bottom":return r?t?Ry:Py:t?Py:Ry;case"left":case"right":return t?wR:jR;default:return[]}}function SR(e,t,r,n){const s=Io(e);let i=NR(ds(e),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(dp)))),i}function Nu(e){return e.replace(/left|right|bottom|top/g,t=>gR[t])}function kR(e){return{top:0,right:0,bottom:0,left:0,...e}}function eN(e){return typeof e!="number"?kR(e):{top:e,right:e,bottom:e,left:e}}function Su(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function Iy(e,t,r){let{reference:n,floating:s}=e;const i=In(t),o=ax(t),l=sx(o),c=ds(t),d=i==="y",u=n.x+n.width/2-s.width/2,h=n.y+n.height/2-s.height/2,f=n[l]/2-s[l]/2;let m;switch(c){case"top":m={x:u,y:n.y-s.height};break;case"bottom":m={x:u,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:h};break;case"left":m={x:n.x-s.width,y:h};break;default:m={x:n.x,y:n.y}}switch(Io(t)){case"start":m[o]-=f*(r&&d?-1:1);break;case"end":m[o]+=f*(r&&d?-1:1);break}return m}const _R=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,l=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:h}=Iy(d,n,c),f=n,m={},b=0;for(let x=0;x<l.length;x++){const{name:w,fn:v}=l[x],{x:p,y,data:j,reset:N}=await v({x:u,y:h,initialPlacement:n,placement:f,strategy:s,middlewareData:m,rects:d,platform:o,elements:{reference:e,floating:t}});u=p??u,h=y??h,m={...m,[w]:{...m[w],...j}},N&&b<=50&&(b++,typeof N=="object"&&(N.placement&&(f=N.placement),N.rects&&(d=N.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):N.rects),{x:u,y:h}=Iy(d,f,c)),x=-1)}return{x:u,y:h,placement:f,strategy:s,middlewareData:m}};async function Yl(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:i,rects:o,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:f=!1,padding:m=0}=cs(t,e),b=eN(m),w=l[f?h==="floating"?"reference":"floating":h],v=Su(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(w)))==null||r?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),p=h==="floating"?{x:n,y:s,width:o.floating.width,height:o.floating.height}:o.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),j=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},N=Su(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:p,offsetParent:y,strategy:c}):p);return{top:(v.top-N.top+b.top)/j.y,bottom:(N.bottom-v.bottom+b.bottom)/j.y,left:(v.left-N.left+b.left)/j.x,right:(N.right-v.right+b.right)/j.x}}const CR=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:i,platform:o,elements:l,middlewareData:c}=t,{element:d,padding:u=0}=cs(e,t)||{};if(d==null)return{};const h=eN(u),f={x:r,y:n},m=ax(s),b=sx(m),x=await o.getDimensions(d),w=m==="y",v=w?"top":"left",p=w?"bottom":"right",y=w?"clientHeight":"clientWidth",j=i.reference[b]+i.reference[m]-f[m]-i.floating[b],N=f[m]-i.reference[m],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let k=S?S[y]:0;(!k||!await(o.isElement==null?void 0:o.isElement(S)))&&(k=l.floating[y]||i.floating[b]);const A=j/2-N/2,E=k/2-x[b]/2-1,O=na(h[v],E),R=na(h[p],E),I=O,U=k-x[b]-R,L=k/2-x[b]/2+A,C=cp(I,L,U),F=!c.arrow&&Io(s)!=null&&L!==C&&i.reference[b]/2-(L<I?O:R)-x[b]/2<0,B=F?L<I?L-I:L-U:0;return{[m]:f[m]+B,data:{[m]:C,centerOffset:L-C-B,...F&&{alignmentOffset:B}},reset:F}}}),AR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:i,rects:o,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,...w}=cs(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const v=ds(s),p=In(l),y=ds(l)===l,j=await(c.isRTL==null?void 0:c.isRTL(d.floating)),N=f||(y||!x?[Nu(l)]:bR(l)),S=b!=="none";!f&&S&&N.push(...SR(l,x,b,j));const k=[l,...N],A=await Yl(t,w),E=[];let O=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&E.push(A[v]),h){const L=yR(s,o,j);E.push(A[L[0]],A[L[1]])}if(O=[...O,{placement:s,overflows:E}],!E.every(L=>L<=0)){var R,I;const L=(((R=i.flip)==null?void 0:R.index)||0)+1,C=k[L];if(C&&(!(h==="alignment"?p!==In(C):!1)||O.every(P=>P.overflows[0]>0&&In(P.placement)===p)))return{data:{index:L,overflows:O},reset:{placement:C}};let F=(I=O.filter(B=>B.overflows[0]<=0).sort((B,P)=>B.overflows[1]-P.overflows[1])[0])==null?void 0:I.placement;if(!F)switch(m){case"bestFit":{var U;const B=(U=O.filter(P=>{if(S){const D=In(P.placement);return D===p||D==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(D=>D>0).reduce((D,V)=>D+V,0)]).sort((P,D)=>P[1]-D[1])[0])==null?void 0:U[0];B&&(F=B);break}case"initialPlacement":F=l;break}if(s!==F)return{reset:{placement:F}}}return{}}}};function Oy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function My(e){return pR.some(t=>e[t]>=0)}const ER=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...s}=cs(e,t);switch(n){case"referenceHidden":{const i=await Yl(t,{...s,elementContext:"reference"}),o=Oy(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:My(o)}}}case"escaped":{const i=await Yl(t,{...s,altBoundary:!0}),o=Oy(i,r.floating);return{data:{escapedOffsets:o,escaped:My(o)}}}default:return{}}}}},tN=new Set(["left","top"]);async function TR(e,t){const{placement:r,platform:n,elements:s}=e,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=ds(r),l=Io(r),c=In(r)==="y",d=tN.has(o)?-1:1,u=i&&c?-1:1,h=cs(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof b=="number"&&(m=l==="end"?b*-1:b),c?{x:m*u,y:f*d}:{x:f*d,y:m*u}}const PR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:i,placement:o,middlewareData:l}=t,c=await TR(t,e);return o===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},RR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:w=>{let{x:v,y:p}=w;return{x:v,y:p}}},...c}=cs(e,t),d={x:r,y:n},u=await Yl(t,c),h=In(ds(s)),f=nx(h);let m=d[f],b=d[h];if(i){const w=f==="y"?"top":"left",v=f==="y"?"bottom":"right",p=m+u[w],y=m-u[v];m=cp(p,m,y)}if(o){const w=h==="y"?"top":"left",v=h==="y"?"bottom":"right",p=b+u[w],y=b-u[v];b=cp(p,b,y)}const x=l.fn({...t,[f]:m,[h]:b});return{...x,data:{x:x.x-r,y:x.y-n,enabled:{[f]:i,[h]:o}}}}}},IR=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=cs(e,t),u={x:r,y:n},h=In(s),f=nx(h);let m=u[f],b=u[h];const x=cs(l,t),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(c){const y=f==="y"?"height":"width",j=i.reference[f]-i.floating[y]+w.mainAxis,N=i.reference[f]+i.reference[y]-w.mainAxis;m<j?m=j:m>N&&(m=N)}if(d){var v,p;const y=f==="y"?"width":"height",j=tN.has(ds(s)),N=i.reference[h]-i.floating[y]+(j&&((v=o.offset)==null?void 0:v[h])||0)+(j?0:w.crossAxis),S=i.reference[h]+i.reference[y]+(j?0:((p=o.offset)==null?void 0:p[h])||0)-(j?w.crossAxis:0);b<N?b=N:b>S&&(b=S)}return{[f]:m,[h]:b}}}},OR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:i,platform:o,elements:l}=t,{apply:c=()=>{},...d}=cs(e,t),u=await Yl(t,d),h=ds(s),f=Io(s),m=In(s)==="y",{width:b,height:x}=i.floating;let w,v;h==="top"||h==="bottom"?(w=h,v=f===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(v=h,w=f==="end"?"top":"bottom");const p=x-u.top-u.bottom,y=b-u.left-u.right,j=na(x-u[w],p),N=na(b-u[v],y),S=!t.middlewareData.shift;let k=j,A=N;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(A=y),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(k=p),S&&!f){const O=Nr(u.left,0),R=Nr(u.right,0),I=Nr(u.top,0),U=Nr(u.bottom,0);m?A=b-2*(O!==0||R!==0?O+R:Nr(u.left,u.right)):k=x-2*(I!==0||U!==0?I+U:Nr(u.top,u.bottom))}await c({...t,availableWidth:A,availableHeight:k});const E=await o.getDimensions(l.floating);return b!==E.width||x!==E.height?{reset:{rects:!0}}:{}}}};function yh(){return typeof window<"u"}function Oo(e){return rN(e)?(e.nodeName||"").toLowerCase():"#document"}function Cr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Bn(e){var t;return(t=(rN(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rN(e){return yh()?e instanceof Node||e instanceof Cr(e).Node:!1}function jn(e){return yh()?e instanceof Element||e instanceof Cr(e).Element:!1}function zn(e){return yh()?e instanceof HTMLElement||e instanceof Cr(e).HTMLElement:!1}function Dy(e){return!yh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Cr(e).ShadowRoot}const MR=new Set(["inline","contents"]);function Tc(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=Nn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!MR.has(s)}const DR=new Set(["table","td","th"]);function LR(e){return DR.has(Oo(e))}const $R=[":popover-open",":modal"];function bh(e){return $R.some(t=>{try{return e.matches(t)}catch{return!1}})}const FR=["transform","translate","scale","rotate","perspective"],UR=["transform","translate","scale","rotate","perspective","filter"],zR=["paint","layout","strict","content"];function ix(e){const t=ox(),r=jn(e)?Nn(e):e;return FR.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||UR.some(n=>(r.willChange||"").includes(n))||zR.some(n=>(r.contain||"").includes(n))}function BR(e){let t=sa(e);for(;zn(t)&&!bo(t);){if(ix(t))return t;if(bh(t))return null;t=sa(t)}return null}function ox(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const VR=new Set(["html","body","#document"]);function bo(e){return VR.has(Oo(e))}function Nn(e){return Cr(e).getComputedStyle(e)}function wh(e){return jn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function sa(e){if(Oo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Dy(e)&&e.host||Bn(e);return Dy(t)?t.host:t}function nN(e){const t=sa(e);return bo(t)?e.ownerDocument?e.ownerDocument.body:e.body:zn(t)&&Tc(t)?t:nN(t)}function Jl(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=nN(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=Cr(s);if(i){const l=up(o);return t.concat(o,o.visualViewport||[],Tc(s)?s:[],l&&r?Jl(l):[])}return t.concat(s,Jl(s,[],r))}function up(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sN(e){const t=Nn(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=zn(e),i=s?e.offsetWidth:r,o=s?e.offsetHeight:n,l=ju(r)!==i||ju(n)!==o;return l&&(r=i,n=o),{width:r,height:n,$:l}}function lx(e){return jn(e)?e:e.contextElement}function Yi(e){const t=lx(e);if(!zn(t))return Fn(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:i}=sN(t);let o=(i?ju(r.width):r.width)/n,l=(i?ju(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const HR=Fn(0);function aN(e){const t=Cr(e);return!ox()||!t.visualViewport?HR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function WR(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Cr(e)?!1:t}function Ka(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),i=lx(e);let o=Fn(1);t&&(n?jn(n)&&(o=Yi(n)):o=Yi(e));const l=WR(i,r,n)?aN(i):Fn(0);let c=(s.left+l.x)/o.x,d=(s.top+l.y)/o.y,u=s.width/o.x,h=s.height/o.y;if(i){const f=Cr(i),m=n&&jn(n)?Cr(n):n;let b=f,x=up(b);for(;x&&n&&m!==b;){const w=Yi(x),v=x.getBoundingClientRect(),p=Nn(x),y=v.left+(x.clientLeft+parseFloat(p.paddingLeft))*w.x,j=v.top+(x.clientTop+parseFloat(p.paddingTop))*w.y;c*=w.x,d*=w.y,u*=w.x,h*=w.y,c+=y,d+=j,b=Cr(x),x=up(b)}}return Su({width:u,height:h,x:c,y:d})}function cx(e,t){const r=wh(e).scrollLeft;return t?t.left+r:Ka(Bn(e)).left+r}function iN(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-(r?0:cx(e,n)),i=n.top+t.scrollTop;return{x:s,y:i}}function qR(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const i=s==="fixed",o=Bn(n),l=t?bh(t.floating):!1;if(n===o||l&&i)return r;let c={scrollLeft:0,scrollTop:0},d=Fn(1);const u=Fn(0),h=zn(n);if((h||!h&&!i)&&((Oo(n)!=="body"||Tc(o))&&(c=wh(n)),zn(n))){const m=Ka(n);d=Yi(n),u.x=m.x+n.clientLeft,u.y=m.y+n.clientTop}const f=o&&!h&&!i?iN(o,c,!0):Fn(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+u.x+f.x,y:r.y*d.y-c.scrollTop*d.y+u.y+f.y}}function GR(e){return Array.from(e.getClientRects())}function KR(e){const t=Bn(e),r=wh(e),n=e.ownerDocument.body,s=Nr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Nr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+cx(e);const l=-r.scrollTop;return Nn(n).direction==="rtl"&&(o+=Nr(t.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:l}}function ZR(e,t){const r=Cr(e),n=Bn(e),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,l=0,c=0;if(s){i=s.width,o=s.height;const d=ox();(!d||d&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:l,y:c}}const YR=new Set(["absolute","fixed"]);function JR(e,t){const r=Ka(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,i=zn(e)?Yi(e):Fn(1),o=e.clientWidth*i.x,l=e.clientHeight*i.y,c=s*i.x,d=n*i.y;return{width:o,height:l,x:c,y:d}}function Ly(e,t,r){let n;if(t==="viewport")n=ZR(e,r);else if(t==="document")n=KR(Bn(e));else if(jn(t))n=JR(t,r);else{const s=aN(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Su(n)}function oN(e,t){const r=sa(e);return r===t||!jn(r)||bo(r)?!1:Nn(r).position==="fixed"||oN(r,t)}function QR(e,t){const r=t.get(e);if(r)return r;let n=Jl(e,[],!1).filter(l=>jn(l)&&Oo(l)!=="body"),s=null;const i=Nn(e).position==="fixed";let o=i?sa(e):e;for(;jn(o)&&!bo(o);){const l=Nn(o),c=ix(o);!c&&l.position==="fixed"&&(s=null),(i?!c&&!s:!c&&l.position==="static"&&!!s&&YR.has(s.position)||Tc(o)&&!c&&oN(e,o))?n=n.filter(u=>u!==o):s=l,o=sa(o)}return t.set(e,n),n}function XR(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const o=[...r==="clippingAncestors"?bh(t)?[]:QR(t,this._c):[].concat(r),n],l=o[0],c=o.reduce((d,u)=>{const h=Ly(t,u,s);return d.top=Nr(h.top,d.top),d.right=na(h.right,d.right),d.bottom=na(h.bottom,d.bottom),d.left=Nr(h.left,d.left),d},Ly(t,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function eI(e){const{width:t,height:r}=sN(e);return{width:t,height:r}}function tI(e,t,r){const n=zn(t),s=Bn(t),i=r==="fixed",o=Ka(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=Fn(0);function d(){c.x=cx(s)}if(n||!n&&!i)if((Oo(t)!=="body"||Tc(s))&&(l=wh(t)),n){const m=Ka(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else s&&d();i&&!n&&s&&d();const u=s&&!n&&!i?iN(s,l):Fn(0),h=o.left+l.scrollLeft-c.x-u.x,f=o.top+l.scrollTop-c.y-u.y;return{x:h,y:f,width:o.width,height:o.height}}function Pf(e){return Nn(e).position==="static"}function $y(e,t){if(!zn(e)||Nn(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Bn(e)===r&&(r=r.ownerDocument.body),r}function lN(e,t){const r=Cr(e);if(bh(e))return r;if(!zn(e)){let s=sa(e);for(;s&&!bo(s);){if(jn(s)&&!Pf(s))return s;s=sa(s)}return r}let n=$y(e,t);for(;n&&LR(n)&&Pf(n);)n=$y(n,t);return n&&bo(n)&&Pf(n)&&!ix(n)?r:n||BR(e)||r}const rI=async function(e){const t=this.getOffsetParent||lN,r=this.getDimensions,n=await r(e.floating);return{reference:tI(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function nI(e){return Nn(e).direction==="rtl"}const sI={convertOffsetParentRelativeRectToViewportRelativeRect:qR,getDocumentElement:Bn,getClippingRect:XR,getOffsetParent:lN,getElementRects:rI,getClientRects:GR,getDimensions:eI,getScale:Yi,isElement:jn,isRTL:nI};function cN(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function aI(e,t){let r=null,n;const s=Bn(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const d=e.getBoundingClientRect(),{left:u,top:h,width:f,height:m}=d;if(l||t(),!f||!m)return;const b=md(h),x=md(s.clientWidth-(u+f)),w=md(s.clientHeight-(h+m)),v=md(u),y={rootMargin:-b+"px "+-x+"px "+-w+"px "+-v+"px",threshold:Nr(0,na(1,c))||1};let j=!0;function N(S){const k=S[0].intersectionRatio;if(k!==c){if(!j)return o();k?o(!1,k):n=setTimeout(()=>{o(!1,1e-7)},1e3)}k===1&&!cN(d,e.getBoundingClientRect())&&o(),j=!1}try{r=new IntersectionObserver(N,{...y,root:s.ownerDocument})}catch{r=new IntersectionObserver(N,y)}r.observe(e)}return o(!0),i}function iI(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=lx(e),u=s||i?[...d?Jl(d):[],...Jl(t)]:[];u.forEach(v=>{s&&v.addEventListener("scroll",r,{passive:!0}),i&&v.addEventListener("resize",r)});const h=d&&l?aI(d,r):null;let f=-1,m=null;o&&(m=new ResizeObserver(v=>{let[p]=v;p&&p.target===d&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),r()}),d&&!c&&m.observe(d),m.observe(t));let b,x=c?Ka(e):null;c&&w();function w(){const v=Ka(e);x&&!cN(x,v)&&r(),x=v,b=requestAnimationFrame(w)}return r(),()=>{var v;u.forEach(p=>{s&&p.removeEventListener("scroll",r),i&&p.removeEventListener("resize",r)}),h==null||h(),(v=m)==null||v.disconnect(),m=null,c&&cancelAnimationFrame(b)}}const oI=PR,lI=RR,cI=AR,dI=OR,uI=ER,Fy=CR,hI=IR,fI=(e,t,r)=>{const n=new Map,s={platform:sI,...r},i={...s.platform,_c:n};return _R(e,t,{...s,platform:i})};var mI=typeof document<"u",pI=function(){},Bd=mI?g.useLayoutEffect:pI;function ku(e,t){if(e===t)return!0;
vendor: 4,143 bytes, line 501
501if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!ku(e[n],t[n]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&e.$$typeof)&&!ku(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function dN(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Uy(e,t){const r=dN(e);return Math.round(t*r)/r}function Rf(e){const t=g.useRef(e);return Bd(()=>{t.current=e}),t}function gI(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[u,h]=g.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=g.useState(n);ku(f,n)||m(n);const[b,x]=g.useState(null),[w,v]=g.useState(null),p=g.useCallback(P=>{P!==S.current&&(S.current=P,x(P))},[]),y=g.useCallback(P=>{P!==k.current&&(k.current=P,v(P))},[]),j=i||b,N=o||w,S=g.useRef(null),k=g.useRef(null),A=g.useRef(u),E=c!=null,O=Rf(c),R=Rf(s),I=Rf(d),U=g.useCallback(()=>{if(!S.current||!k.current)return;const P={placement:t,strategy:r,middleware:f};R.current&&(P.platform=R.current),fI(S.current,k.current,P).then(D=>{const V={...D,isPositioned:I.current!==!1};L.current&&!ku(A.current,V)&&(A.current=V,ri.flushSync(()=>{h(V)}))})},[f,t,r,R,I]);Bd(()=>{d===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,h(P=>({...P,isPositioned:!1})))},[d]);const L=g.useRef(!1);Bd(()=>(L.current=!0,()=>{L.current=!1}),[]),Bd(()=>{if(j&&(S.current=j),N&&(k.current=N),j&&N){if(O.current)return O.current(j,N,U);U()}},[j,N,U,O,E]);const C=g.useMemo(()=>({reference:S,floating:k,setReference:p,setFloating:y}),[p,y]),F=g.useMemo(()=>({reference:j,floating:N}),[j,N]),B=g.useMemo(()=>{const P={position:r,left:0,top:0};if(!F.floating)return P;const D=Uy(F.floating,u.x),V=Uy(F.floating,u.y);return l?{...P,transform:"translate("+D+"px, "+V+"px)",...dN(F.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:D,top:V}},[r,l,F.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:U,refs:C,elements:F,floatingStyles:B}),[u,U,C,F,B])}const xI=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:s}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Fy({element:n.current,padding:s}).fn(r):{}:n?Fy({element:n,padding:s}).fn(r):{}}}},vI=(e,t)=>({...oI(e),options:[e,t]}),yI=(e,t)=>({...lI(e),options:[e,t]}),bI=(e,t)=>({...hI(e),options:[e,t]}),wI=(e,t)=>({...cI(e),options:[e,t]}),jI=(e,t)=>({...dI(e),options:[e,t]}),NI=(e,t)=>({...uI(e),options:[e,t]}),SI=(e,t)=>({...xI(e),options:[e,t]});var kI="Arrow",uN=g.forwardRef((e,t)=>{const{children:r,width:n=10,height:s=5,...i}=e;return a.jsx(de.svg,{...i,ref:t,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});uN.displayName=kI;var _I=uN;function dx(e){const[t,r]=g.useState(void 0);return mt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,l;if("borderBoxSize"in i){const c=i.borderBoxSize,d=Array.isArray(c)?c[0]:c;o=d.inlineSize,l=d.blockSize}else o=e.offsetWidth,l=e.offsetHeight;r({width:o,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var ux="Popper",[hN,jh]=lr(ux),[CI,fN]=hN(ux),mN=e=>{const{__scopePopper:t,children:r}=e,[n,s]=g.useState(null);return a.jsx(CI,{scope:t,anchor:n,onAnchorChange:s,children:r})};mN.displayName=ux;var pN="PopperAnchor",gN=g.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...s}=e,i=fN(pN,r),o=g.useRef(null),l=Pe(t,o);return g.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:a.jsx(de.div,{...s,ref:l})});gN.displayName=pN;var hx="PopperContent",[AI,EI]=hN(hx),xN=g.forwardRef((e,t)=>
vendor: 4,218 bytes, line 501
501{var q,ye,Ie,be,ue,W;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:b,...x}=e,w=fN(hx,r),[v,p]=g.useState(null),y=Pe(t,je=>p(je)),[j,N]=g.useState(null),S=dx(j),k=(S==null?void 0:S.width)??0,A=(S==null?void 0:S.height)??0,E=n+(i!=="center"?"-"+i:""),O=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},R=Array.isArray(d)?d:[d],I=R.length>0,U={padding:O,boundary:R.filter(PI),altBoundary:I},{refs:L,floatingStyles:C,placement:F,isPositioned:B,middlewareData:P}=gI({strategy:"fixed",placement:E,whileElementsMounted:(...je)=>iI(...je,{animationFrame:m==="always"}),elements:{reference:w.anchor},middleware:[vI({mainAxis:s+A,alignmentAxis:o}),c&&yI({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?bI():void 0,...U}),c&&wI({...U}),jI({...U,apply:({elements:je,rects:Oe,availableWidth:Ze,availableHeight:pt})=>{const{width:kt,height:cr}=Oe.reference,Pt=je.floating.style;Pt.setProperty("--radix-popper-available-width",`${Ze}px`),Pt.setProperty("--radix-popper-available-height",`${pt}px`),Pt.setProperty("--radix-popper-anchor-width",`${kt}px`),Pt.setProperty("--radix-popper-anchor-height",`${cr}px`)}}),j&&SI({element:j,padding:l}),RI({arrowWidth:k,arrowHeight:A}),f&&NI({strategy:"referenceHidden",...U})]}),[D,V]=bN(F),te=Nt(b);mt(()=>{B&&(te==null||te())},[B,te]);const re=(q=P.arrow)==null?void 0:q.x,me=(ye=P.arrow)==null?void 0:ye.y,ce=((Ie=P.arrow)==null?void 0:Ie.centerOffset)!==0,[_e,We]=g.useState();return mt(()=>{v&&We(window.getComputedStyle(v).zIndex)},[v]),a.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...C,transform:B?C.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_e,"--radix-popper-transform-origin":[(be=P.transformOrigin)==null?void 0:be.x,(ue=P.transformOrigin)==null?void 0:ue.y].join(" "),...((W=P.hide)==null?void 0:W.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(AI,{scope:r,placedSide:D,onArrowChange:N,arrowX:re,arrowY:me,shouldHideArrow:ce,children:a.jsx(de.div,{"data-side":D,"data-align":V,...x,ref:y,style:{...x.style,animation:B?void 0:"none"}})})})});xN.displayName=hx;var vN="PopperArrow",TI={top:"bottom",right:"left",bottom:"top",left:"right"},yN=g.forwardRef(function(t,r){const{__scopePopper:n,...s}=t,i=EI(vN,n),o=TI[i.placedSide];return a.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:a.jsx(_I,{...s,ref:r,style:{...s.style,display:"block"}})})});yN.displayName=vN;function PI(e){return e!==null}var RI=e=>({name:"transformOrigin",options:e,fn(t){var w,v,p;const{placement:r,rects:n,middlewareData:s}=t,o=((w=s.arrow)==null?void 0:w.centerOffset)!==0,l=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[d,u]=bN(r),h={start:"0%",center:"50%",end:"100%"}[u],f=(((v=s.arrow)==null?void 0:v.x)??0)+l/2,m=(((p=s.arrow)==null?void 0:p.y)??0)+c/2;let b="",x="";return d==="bottom"?(b=o?h:`${f}px`,x=`${-c}px`):d==="top"?(b=o?h:`${f}px`,x=`${n.floating.height+c}px`):d==="right"?(b=`${-c}px`,x=o?h:`${m}px`):d==="left"&&(b=`${n.floating.width+c}px`,x=o?h:`${m}px`),{data:{x:b,y:x}}}});function bN(e){const[t,r="center"]=e.split("-");return[t,r]}var II=mN,wN=gN,jN=xN,NN=yN,[Nh,VU]=lr("Tooltip",[jh]),fx=jh(),SN="TooltipProvider",OI=700,zy="tooltip.open",[MI,kN]=Nh(SN),_N=e=>{const{__scopeTooltip:t,delayDuration:r=OI,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:i}=e,o=g.useRef(!0),l=g.useRef(!1),c=g.useRef(0);return g.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),a.jsx(MI,{scope:t,isOpenDelayedRef:o,delayDuration:r,onOpen:g.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>
vendor: 4,219 bytes, line 501
501o.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:g.useCallback(d=>{l.current=d},[]),disableHoverableContent:s,children:i})};_N.displayName=SN;var CN="Tooltip",[HU,Sh]=Nh(CN),hp="TooltipTrigger",DI=g.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Sh(hp,r),i=kN(hp,r),o=fx(r),l=g.useRef(null),c=Pe(t,l,s.onTriggerChange),d=g.useRef(!1),u=g.useRef(!1),h=g.useCallback(()=>d.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),a.jsx(wN,{asChild:!0,...o,children:a.jsx(de.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:c,onPointerMove:le(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:le(e.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:le(e.onPointerDown,()=>{s.open&&s.onClose(),d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:le(e.onFocus,()=>{d.current||s.onOpen()}),onBlur:le(e.onBlur,s.onClose),onClick:le(e.onClick,s.onClose)})})});DI.displayName=hp;var LI="TooltipPortal",[WU,$I]=Nh(LI,{forceMount:void 0}),wo="TooltipContent",AN=g.forwardRef((e,t)=>{const r=$I(wo,e.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...i}=e,o=Sh(wo,e.__scopeTooltip);return a.jsx(Ir,{present:n||o.open,children:o.disableHoverableContent?a.jsx(EN,{side:s,...i,ref:t}):a.jsx(FI,{side:s,...i,ref:t})})}),FI=g.forwardRef((e,t)=>{const r=Sh(wo,e.__scopeTooltip),n=kN(wo,e.__scopeTooltip),s=g.useRef(null),i=Pe(t,s),[o,l]=g.useState(null),{trigger:c,onClose:d}=r,u=s.current,{onPointerInTransitChange:h}=n,f=g.useCallback(()=>{l(null),h(!1)},[h]),m=g.useCallback((b,x)=>{const w=b.currentTarget,v={x:b.clientX,y:b.clientY},p=HI(v,w.getBoundingClientRect()),y=WI(v,p),j=qI(x.getBoundingClientRect()),N=KI([...y,...j]);l(N),h(!0)},[h]);return g.useEffect(()=>()=>f(),[f]),g.useEffect(()=>{if(c&&u){const b=w=>m(w,u),x=w=>m(w,c);return c.addEventListener("pointerleave",b),u.addEventListener("pointerleave",x),()=>{c.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",x)}}},[c,u,m,f]),g.useEffect(()=>{if(o){const b=x=>{const w=x.target,v={x:x.clientX,y:x.clientY},p=(c==null?void 0:c.contains(w))||(u==null?void 0:u.contains(w)),y=!GI(v,o);p?f():y&&(f(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,u,o,d,f]),a.jsx(EN,{...e,ref:i})}),[UI,zI]=Nh(CN,{isInside:!1}),BI=IE("TooltipContent"),EN=g.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...l}=e,c=Sh(wo,r),d=fx(r),{onClose:u}=c;return g.useEffect(()=>(document.addEventListener(zy,u),()=>document.removeEventListener(zy,u)),[u]),g.useEffect(()=>{if(c.trigger){const h=f=>{const m=f.target;m!=null&&m.contains(c.trigger)&&u()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,u]),a.jsx(Nc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:u,children:a.jsxs(jN,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[a.jsx(BI,{children:n}),a.jsx(UI,{scope:r,isInside:!0,children:a.jsx(tT,{id:c.contentId,role:"tooltip",children:s||n})})]})})});AN.displayName=wo;var TN="TooltipArrow",VI=g.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=fx(r);return zI(TN,r).isInside?null:a.jsx(NN,{...s,...n,ref:t})});VI.displayName=TN;function HI(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function WI(e,t,r=5){const n=[];
501switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function qI(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function GI(e,t){const{x:r,y:n}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const l=t[i],c=t[o],d=l.x,u=l.y,h=c.x,f=c.y;u>n!=f>n&&r<(h-d)*(n-u)/(f-u)+d&&(s=!s)}return s}function KI(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),ZI(t)}function ZI(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var YI=_N,PN=AN;const JI=YI,QI=g.forwardRef(({className:e,sideOffset:t=4,...r},n)=>a.jsx(PN,{ref:n,sideOffset:t,className:X("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));QI.displayName=PN.displayName;var kh=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_h=typeof window>"u"||"Deno"in globalThis;function an(){}function XI(e,t){return typeof e=="function"?e(t):e}function eO(e){return typeof e=="number"&&e>=0&&e!==1/0}function tO(e,t){return Math.max(e+(t||0)-Date.now(),0)}function fp(e,t){return typeof e=="function"?e(t):e}function rO(e,t){return typeof e=="function"?e(t):e}function By(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:i,queryKey:o,stale:l}=e;if(o){if(n){if(t.queryHash!==mx(o,t.options))return!1}else if(!Xl(t.queryKey,o))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||i&&!i(t))}function Vy(e,t){const{exact:r,status:n,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(Ql(t.options.mutationKey)!==Ql(i))return!1}else if(!Xl(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function mx(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ql)(e)}function Ql(e){return JSON.stringify(e,(t,r)=>mp(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function Xl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Xl(e[r],t[r])):!1}function RN(e,t){if(e===t)return e;const r=Hy(e)&&Hy(t);if(r||mp(e)&&mp(t)){const n=r?e:Object.keys(e),s=n.length,i=r?t:Object.keys(t),o=i.length,l=r?[]:{},c=new Set(n);let d=0;for(let u=0;u<o;u++){const h=r?u:i[u];(!r&&c.has(h)||r)&&e[h]===void 0&&t[h]===void 0?(l[h]=void 0,d++):(l[h]=RN(e[h],t[h]),l[h]===e[h]&&e[h]!==void 0&&d++)}return s===o&&d===s?e:l}return t}function Hy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function mp(e){if(!Wy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Wy(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Wy(e){return Object.prototype.toString.call(e)==="[object Object]"}function nO(e){return new Promise(t=>{setTimeout(t,e)})}function sO(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?RN(e,t):t}function aO(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function iO(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var px=Symbol();function IN(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===px?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Ra,Rs,to,Ob,oO=(Ob=class extends kh{constructor(){super();$e(this,Ra);$e(this,Rs);$e(this,to);ke(this,to,t=>{if(!_h&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){z(this,Rs)||this.setEventListener(z(this,to))}onUnsubscribe(){var t;this.hasListeners()||((t=z(this,Rs))==null||t.call(this),ke(this,Rs,void 0))}setEventListener(t){var r;ke(this,to,t),(r=z(this,Rs))==null||r.call(this),ke(this,Rs,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){z(this,Ra)!==t&&(ke(this,Ra,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,924 bytes, line 501
501this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof z(this,Ra)=="boolean"?z(this,Ra):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ra=new WeakMap,Rs=new WeakMap,to=new WeakMap,Ob),ON=new oO,ro,Is,no,Mb,lO=(Mb=class extends kh{constructor(){super();$e(this,ro,!0);$e(this,Is);$e(this,no);ke(this,no,t=>{if(!_h&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){z(this,Is)||this.setEventListener(z(this,no))}onUnsubscribe(){var t;this.hasListeners()||((t=z(this,Is))==null||t.call(this),ke(this,Is,void 0))}setEventListener(t){var r;ke(this,no,t),(r=z(this,Is))==null||r.call(this),ke(this,Is,t(this.setOnline.bind(this)))}setOnline(t){z(this,ro)!==t&&(ke(this,ro,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return z(this,ro)}},ro=new WeakMap,Is=new WeakMap,no=new WeakMap,Mb),_u=new lO;function cO(){let e,t;const r=new Promise((s,i)=>{e=s,t=i});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}function dO(e){return Math.min(1e3*2**e,3e4)}function MN(e){return(e??"online")==="online"?_u.isOnline():!0}var DN=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function If(e){return e instanceof DN}function LN(e){let t=!1,r=0,n=!1,s;const i=cO(),o=x=>{var w;n||(f(new DN(x)),(w=e.abort)==null||w.call(e))},l=()=>{t=!0},c=()=>{t=!1},d=()=>ON.isFocused()&&(e.networkMode==="always"||_u.isOnline())&&e.canRun(),u=()=>MN(e.networkMode)&&e.canRun(),h=x=>{var w;n||(n=!0,(w=e.onSuccess)==null||w.call(e,x),s==null||s(),i.resolve(x))},f=x=>{var w;n||(n=!0,(w=e.onError)==null||w.call(e,x),s==null||s(),i.reject(x))},m=()=>new Promise(x=>{var w;s=v=>{(n||d())&&x(v)},(w=e.onPause)==null||w.call(e)}).then(()=>{var x;s=void 0,n||(x=e.onContinue)==null||x.call(e)}),b=()=>{if(n)return;let x;const w=r===0?e.initialPromise:void 0;try{x=w??e.fn()}catch(v){x=Promise.reject(v)}Promise.resolve(x).then(h).catch(v=>{var S;if(n)return;const p=e.retry??(_h?0:3),y=e.retryDelay??dO,j=typeof y=="function"?y(r,v):y,N=p===!0||typeof p=="number"&&r<p||typeof p=="function"&&p(r,v);if(t||!N){f(v);return}r++,(S=e.onFail)==null||S.call(e,r,v),nO(j).then(()=>d()?void 0:m()).then(()=>{t?f(v):b()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:l,continueRetry:c,canStart:u,start:()=>(u()?b():m().then(b),i)}}var uO=e=>setTimeout(e,0);function hO(){let e=[],t=0,r=l=>{l()},n=l=>{l()},s=uO;const i=l=>{t?e.push(l):s(()=>{r(l)})},o=()=>{const l=e;e=[],l.length&&s(()=>{n(()=>{l.forEach(c=>{r(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{s=l}}}var sr=hO(),Ia,Db,$N=(Db=class{constructor(){$e(this,Ia)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),eO(this.gcTime)&&ke(this,Ia,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(_h?1/0:5*60*1e3))}clearGcTimeout(){z(this,Ia)&&(clearTimeout(z(this,Ia)),ke(this,Ia,void 0))}},Ia=new WeakMap,Db),so,Oa,Lr,Ma,Kt,pc,Da,ln,Gn,Lb,fO=(Lb=class extends $N{constructor(t){super();$e(this,ln);$e(this,so);$e(this,Oa);$e(this,Lr);$e(this,Ma);$e(this,Kt);$e(this,pc);$e(this,Da);ke(this,Da,!1),ke(this,pc,t.defaultOptions),this.setOptions(t.options),this.observers=[],ke(this,Ma,t.client),ke(this,Lr,z(this,Ma).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ke(this,so,pO(this.options)),this.state=t.state??z(this,so),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=z(this,Kt))==null?void 0:t.promise}setOptions(t){this.options={...z(this,pc),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&z(this,Lr).remove(this)}setData(t,r){const n=sO(this.state.data,t,this.options);return Wt(this,ln,Gn).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){Wt(this,ln,Gn).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,s;const r=(n=z(this,Kt))==null?void 0:n.promise;return(s=z(this,Kt))==null||s.cancel(t),r?r.then(an).catch(an):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(z(this,so))}isActive(){return this.observers.some(t=>rO(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===px||this.state.dataUpdateCount+this.state.errorUpdate
501Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>fp(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!tO(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=z(this,Kt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=z(this,Kt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),z(this,Lr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(z(this,Kt)&&(z(this,Da)?z(this,Kt).cancel({revert:!0}):z(this,Kt).cancelRetry()),this.scheduleGc()),z(this,Lr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Wt(this,ln,Gn).call(this,{type:"invalidate"})}fetch(t,r){var d,u,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(z(this,Kt))return z(this,Kt).continueRetry(),z(this,Kt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(m=>m.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(ke(this,Da,!0),n.signal)})},i=()=>{const f=IN(this.options,r),b=(()=>{const x={client:z(this,Ma),queryKey:this.queryKey,meta:this.meta};return s(x),x})();return ke(this,Da,!1),this.options.persister?this.options.persister(f,b,this):f(b)},l=(()=>{const f={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:z(this,Ma),state:this.state,fetchFn:i};return s(f),f})();(d=this.options.behavior)==null||d.onFetch(l,this),ke(this,Oa,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=l.fetchOptions)==null?void 0:u.meta))&&Wt(this,ln,Gn).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta});const c=f=>{var m,b,x,w;If(f)&&f.silent||Wt(this,ln,Gn).call(this,{type:"error",error:f}),If(f)||((b=(m=z(this,Lr).config).onError)==null||b.call(m,f,this),(w=(x=z(this,Lr).config).onSettled)==null||w.call(x,this.state.data,f,this)),this.scheduleGc()};return ke(this,Kt,LN({initialPromise:r==null?void 0:r.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var m,b,x,w;if(f===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(v){c(v);return}(b=(m=z(this,Lr).config).onSuccess)==null||b.call(m,f,this),(w=(x=z(this,Lr).config).onSettled)==null||w.call(x,f,this.state.error,this),this.scheduleGc()},onError:c,onFail:(f,m)=>{Wt(this,ln,Gn).call(this,{type:"failed",failureCount:f,error:m})},onPause:()=>{Wt(this,ln,Gn).call(this,{type:"pause"})},onContinue:()=>{Wt(this,ln,Gn).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),z(this,Kt).start()}},so=new WeakMap,Oa=new WeakMap,Lr=new WeakMap,Ma=new WeakMap,Kt=new WeakMap,pc=new WeakMap,Da=new WeakMap,ln=new WeakSet,Gn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...mO(n.data,this.options),fetchMeta:t.meta??null};case"success":return ke(this,Oa,void 0),{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return If(s)&&s.revert&&z(this,Oa)?{...z(this,Oa),fetchStatus:"idle"}
vendor: 5,105 bytes, line 501
501:{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),sr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),z(this,Lr).notify({query:this,type:"updated",action:t})})},Lb);function mO(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:MN(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function pO(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var An,$b,gO=($b=class extends kh{constructor(t={}){super();$e(this,An);this.config=t,ke(this,An,new Map)}build(t,r,n){const s=r.queryKey,i=r.queryHash??mx(s,r);let o=this.get(i);return o||(o=new fO({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){z(this,An).has(t.queryHash)||(z(this,An).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=z(this,An).get(t.queryHash);r&&(t.destroy(),r===t&&z(this,An).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){sr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return z(this,An).get(t)}getAll(){return[...z(this,An).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>By(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>By(t,n)):r}notify(t){sr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){sr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){sr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},An=new WeakMap,$b),En,tr,La,Tn,bs,Fb,xO=(Fb=class extends $N{constructor(t){super();$e(this,Tn);$e(this,En);$e(this,tr);$e(this,La);this.mutationId=t.mutationId,ke(this,tr,t.mutationCache),ke(this,En,[]),this.state=t.state||vO(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){z(this,En).includes(t)||(z(this,En).push(t),this.clearGcTimeout(),z(this,tr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ke(this,En,z(this,En).filter(r=>r!==t)),this.scheduleGc(),z(this,tr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){z(this,En).length||(this.state.status==="pending"?this.scheduleGc():z(this,tr).remove(this))}continue(){var t;return((t=z(this,La))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,l,c,d,u,h,f,m,b,x,w,v,p,y,j,N,S,k,A;const r=()=>{Wt(this,Tn,bs).call(this,{type:"continue"})};ke(this,La,LN({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(E,O)=>{Wt(this,Tn,bs).call(this,{type:"failed",failureCount:E,error:O})},onPause:()=>{Wt(this,Tn,bs).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>z(this,tr).canRun(this)}));const n=this.state.status==="pending",s=!z(this,La).canStart();try{if(n)r();else{Wt(this,Tn,bs).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=z(this,tr).config).onMutate)==null?void 0:o.call(i,t,this));const O=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t));O!==this.state.context&&Wt(this,Tn,bs).call(this,{type:"pending",context:O,variables:t,isPaused:s})}const E=await z(this,La).start();return await((u=(d=z(this,tr).config).onSuccess)==null?void 0:u.call(d,E,t,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,E,t,this.state.context)),await((b=(m=z(this,tr).config).onSettled)==null?void 0:b.call(m,E,null,this.state.variables,this.state.context,this)),await((w=(x=this.options).onSettled)==null?void 0:w.call(x,E,null,t,this.state.context)),Wt(this,Tn,bs).call(this,{type:"success",data:E}),E}catch(E){try{throw await((p=(v=z(this,tr).config).onError)==null?void 0:p.call(v,E,t,this.state.context,this)),await((j=(y=this.options).onError)==null?void 0:j.call(y,E,t,this.state.context)),await((S=(N=z(this,tr).config).onSettled)==null?void 0:S.call(N,void 0,E,this.state.variables,this.state.context,this)),await((A=(k=this.options).onSettled)==null?void 0:A.call(k,void 0,E,t,this.state.context)),E}finally{Wt(this,Tn,bs).call(this,{type:"error",error:E})}}finally{z(this,tr).runNext(this)}}},En=new WeakMap,tr=new WeakMap,La=new WeakMap,Tn=new WeakSet,bs=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};
501case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),sr.batch(()=>{z(this,En).forEach(n=>{n.onMutationUpdate(t)}),z(this,tr).notify({mutation:this,type:"updated",action:t})})},Fb);function vO(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xn,cn,gc,Ub,yO=(Ub=class extends kh{constructor(t={}){super();$e(this,Xn);$e(this,cn);$e(this,gc);this.config=t,ke(this,Xn,new Set),ke(this,cn,new Map),ke(this,gc,0)}build(t,r,n){const s=new xO({mutationCache:this,mutationId:++qc(this,gc)._,options:t.defaultMutationOptions(r),state:n});return this.add(s),s}add(t){z(this,Xn).add(t);const r=pd(t);if(typeof r=="string"){const n=z(this,cn).get(r);n?n.push(t):z(this,cn).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(z(this,Xn).delete(t)){const r=pd(t);if(typeof r=="string"){const n=z(this,cn).get(r);if(n)if(n.length>1){const s=n.indexOf(t);s!==-1&&n.splice(s,1)}else n[0]===t&&z(this,cn).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=pd(t);if(typeof r=="string"){const n=z(this,cn).get(r),s=n==null?void 0:n.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var n;const r=pd(t);if(typeof r=="string"){const s=(n=z(this,cn).get(r))==null?void 0:n.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){sr.batch(()=>{z(this,Xn).forEach(t=>{this.notify({type:"removed",mutation:t})}),z(this,Xn).clear(),z(this,cn).clear()})}getAll(){return Array.from(z(this,Xn))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Vy(r,n))}findAll(t={}){return this.getAll().filter(r=>Vy(t,r))}notify(t){sr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>
vendor: 4,438 bytes, line 501
501r.state.isPaused);return sr.batch(()=>Promise.all(t.map(r=>r.continue().catch(an))))}},Xn=new WeakMap,cn=new WeakMap,gc=new WeakMap,Ub);function pd(e){var t;return(t=e.options.scope)==null?void 0:t.id}function qy(e){return{onFetch:(t,r)=>{var u,h,f,m,b;const n=t.options,s=(f=(h=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],o=((b=t.state.data)==null?void 0:b.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const d=async()=>{let x=!1;const w=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?x=!0:t.signal.addEventListener("abort",()=>{x=!0}),t.signal)})},v=IN(t.options,t.fetchOptions),p=async(y,j,N)=>{if(x)return Promise.reject();if(j==null&&y.pages.length)return Promise.resolve(y);const k=(()=>{const R={client:t.client,queryKey:t.queryKey,pageParam:j,direction:N?"backward":"forward",meta:t.options.meta};return w(R),R})(),A=await v(k),{maxPages:E}=t.options,O=N?iO:aO;return{pages:O(y.pages,A,E),pageParams:O(y.pageParams,j,E)}};if(s&&i.length){const y=s==="backward",j=y?bO:Gy,N={pages:i,pageParams:o},S=j(n,N);l=await p(N,S,y)}else{const y=e??i.length;do{const j=c===0?o[0]??n.initialPageParam:Gy(n,l);if(c>0&&j==null)break;l=await p(l,j),c++}while(c<y)}return l};t.options.persister?t.fetchFn=()=>{var x,w;return(w=(x=t.options).persister)==null?void 0:w.call(x,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=d}}}function Gy(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function bO(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var lt,Os,Ms,ao,io,Ds,oo,lo,zb,wO=(zb=class{constructor(e={}){$e(this,lt);$e(this,Os);$e(this,Ms);$e(this,ao);$e(this,io);$e(this,Ds);$e(this,oo);$e(this,lo);ke(this,lt,e.queryCache||new gO),ke(this,Os,e.mutationCache||new yO),ke(this,Ms,e.defaultOptions||{}),ke(this,ao,new Map),ke(this,io,new Map),ke(this,Ds,0)}mount(){qc(this,Ds)._++,z(this,Ds)===1&&(ke(this,oo,ON.subscribe(async e=>{e&&(await this.resumePausedMutations(),z(this,lt).onFocus())})),ke(this,lo,_u.subscribe(async e=>{e&&(await this.resumePausedMutations(),z(this,lt).onOnline())})))}unmount(){var e,t;qc(this,Ds)._--,z(this,Ds)===0&&((e=z(this,oo))==null||e.call(this),ke(this,oo,void 0),(t=z(this,lo))==null||t.call(this),ke(this,lo,void 0))}isFetching(e){return z(this,lt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return z(this,Os).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=z(this,lt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=z(this,lt).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(fp(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return z(this,lt).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=z(this,lt).get(n.queryHash),i=s==null?void 0:s.state.data,o=XI(t,i);if(o!==void 0)return z(this,lt).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return sr.batch(()=>z(this,lt).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=z(this,lt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=z(this,lt);sr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=z(this,lt);return sr.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=sr.batch(()=>z(this,lt).findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(an).catch(an)}invalidateQueries(e,t={}){return sr.batch(()=>(z(this,lt).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=sr.batch(()=>z(this,lt).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,r);return r.throwOnError||(i=i.catch(an)),s.state.fetchStatus==="paused"?Promise.resolve():i}
501));return Promise.all(n).then(an)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=z(this,lt).build(this,t);return r.isStaleByTime(fp(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(an).catch(an)}fetchInfiniteQuery(e){return e.behavior=qy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(an).catch(an)}ensureInfiniteQueryData(e){return e.behavior=qy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return _u.isOnline()?z(this,Os).resumePausedMutations():Promise.resolve()}getQueryCache(){return z(this,lt)}getMutationCache(){return z(this,Os)}getDefaultOptions(){return z(this,Ms)}setDefaultOptions(e){ke(this,Ms,e)}setQueryDefaults(e,t){z(this,ao).set(Ql(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...z(this,ao).values()],r={};return t.forEach(n=>{Xl(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){z(this,io).set(Ql(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...z(this,io).values()],r={};return t.forEach(n=>{Xl(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...z(this,Ms).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=mx(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===px&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...z(this,Ms).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){z(this,lt).clear(),z(this,Os).clear()}},lt=new WeakMap,Os=new WeakMap,Ms=new WeakMap,ao=new WeakMap,io=new WeakMap,Ds=new WeakMap,oo=new WeakMap,lo=new WeakMap,zb),jO=g.createContext(void 0),NO=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),a.jsx(jO.Provider,{value:e,children:t}));/** 502 * @remix-run/router v1.23.0 503 * 504 * Copyright (c) Remix Software Inc. 505 * 506 * This source code is licensed under the MIT license found in the 507 * LICENSE.md file in the root directory of this source tree. 508 * 509 * @license MIT 510 */function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ec.apply(this,arguments)}var Fs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Fs||(Fs={}));const Ky="popstate";function SO(e){e===void 0&&(e={});function t(n,s){let{pathname:i,search:o,hash:l}=n.location;return pp("",{pathname:i,search:o,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:Cu(s)}return _O(t,r,null,e)}function St(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function FN(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function kO(){return Math.random().toString(36).substr(2,8)}function Zy(e,t){return{usr:e.state,key:e.key,idx:t}}function pp(e,t,r,n){return r===void 0&&(r=null),ec({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Mo(t):t,{state:r,key:t&&t.key||n||kO()})}function Cu(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Mo(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function _O(e,t,r,n){n===void 0&&(n={});let{window:s=document.defaultView,v5Compat:i=!1}=n,o=s.history,l=Fs.Pop,c=null,d=u();d==null&&(d=0,o.replaceState(ec({},o.state,{idx:d}),""));function u(){return(o.state||{idx:null}).idx}function h(){l=Fs.Pop;let w=u(),v=w==null?null:w-d;d=w,c&&c({action:l,location:x.location,delta:v})}function f(w,v){l=Fs.Push;let p=pp(x.location,w,v);d=u()+1;let y=Zy(p,d),j=x.createHref(p);try{o.pushState(y,"",j)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;s.location.assign(j)}i&&c&&c({action:l,location:x.location,delta:1})}function m(w,v){l=Fs.Replace;let p=pp(x.location,w,v);d=u();let y=Zy(p,d),j=x.createHref(p);o.replaceState(y,"",j),i&&c&&c({action:l,location:x.location,delta:0})}function b(w){let v=s.location.origin!=="null"?s.location.origin:s.location.href,p=typeof w=="string"?w:Cu(w);return p=p.replace(/ $/,"%20"),St(v,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,v)}let x={get action(){return l},get location(){return e(s,o)},listen(w){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(Ky,h),c=w,()=>{s.removeEventListener(Ky,h),c=null}},createHref(w){return t(s,w)},createURL:b,encodeLocation(w){let v=b(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:m,go(w){return o.go(w)}};return x}var Yy;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Yy||(Yy={}));function CO(e,t,r){return r===void 0&&(r="/"),AO(e,t,r,!1)}function AO(e,t,r,n){let s=typeof t=="string"?Mo(t):t,i=gx(s.pathname||"/",r);if(i==null)return null;let o=UN(e);EO(o);let l=null;for(let c=0;l==null&&c<o.length;++c){let d=UO(i);l=$O(o[c],d,n)}return l}function UN(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let s=(i,o,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};c.relativePath.startsWith("/")&&(St(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not val
510id. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let d=Qs([n,c.relativePath]),u=r.concat(c);i.children&&i.children.length>0&&(St(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),UN(i.children,t,u,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:DO(d,i.index),routesMeta:u})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))s(i,o);else for(let c of zN(i.path))s(i,o,c)}),t}function zN(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,s=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return s?[i,""]:[i];let o=zN(n.join("/")),l=[];return l.push(...o.map(c=>c===""?i:[i,c].join("/"))),s&&l.push(...o),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function EO(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:LO(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const TO=/^:[\w-]+$/,PO=3,RO=2,IO=1,OO=10,MO=-2,Jy=e=>e==="*";function DO(e,t){let r=e.split("/"),n=r.length;return r.some(Jy)&&(n+=MO),t&&(n+=RO),r.filter(s=>!Jy(s)).reduce((s,i)=>s+(TO.test(i)?PO:i===""?IO:OO),n)}function LO(e,t){return e.length===t.length&&e.slice(0,-1).every((n,s)=>n===t[s])?e[e.length-1]-t[t.length-1]:0}function $O(e,t,r){let{routesMeta:n}=e,s={},i="/",o=[];for(let l=0;l<n.length;++l){let c=n[l],d=l===n.length-1,u=i==="/"?t:t.slice(i.length)||"/",h=Qy({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},u),f=c.route;if(!h&&d&&r&&!n[n.length-1].route.index&&(h=Qy({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},u)),!h)return null;
vendor: 13,901 bytes, lines 510-528
510Object.assign(s,h.params),o.push({params:s,pathname:Qs([i,h.pathname]),pathnameBase:HO(Qs([i,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(i=Qs([i,h.pathnameBase]))}return o}function Qy(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=FO(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:n.reduce((d,u,h)=>{let{paramName:f,isOptional:m}=u;if(f==="*"){let x=l[h]||"";o=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const b=l[h];return m&&!b?d[f]=void 0:d[f]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:o,pattern:e}}function FO(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),FN(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,c)=>(n.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function UO(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return FN(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function gx(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function zO(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?Mo(e):e;return{pathname:r?r.startsWith("/")?r:BO(r,t):t,search:WO(n),hash:qO(s)}}function BO(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Of(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. 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 VO(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function BN(e,t){let r=VO(e);return t?r.map((n,s)=>s===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function VN(e,t,r,n){n===void 0&&(n=!1);let s;typeof e=="string"?s=Mo(e):(s=ec({},e),St(!s.pathname||!s.pathname.includes("?"),Of("?","pathname","search",s)),St(!s.pathname||!s.pathname.includes("#"),Of("#","pathname","hash",s)),St(!s.search||!s.search.includes("#"),Of("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,l;if(o==null)l=r;else{let h=t.length-1;if(!n&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),h-=1;s.pathname=f.join("/")}l=h>=0?t[h]:"/"}let c=zO(s,l),d=o&&o!=="/"&&o.endsWith("/"),u=(i||o===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(d||u)&&(c.pathname+="/"),c}const Qs=e=>e.join("/").replace(/\/\/+/g,"/"),HO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),WO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,qO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function GO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const HN=["post","put","patch","delete"];new Set(HN);const KO=["get",...HN];new Set(KO);/** 511 * React Router v6.30.1 512 * 513 * Copyright (c) Remix Software Inc. 514 * 515 * This source code is licensed under the MIT license found in the 516 * LICENSE.md file in the root directory of this source tree. 517 * 518 * @license MIT 519 */function tc(){return tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tc.apply(this,arguments)}const xx=g.createContext(null),ZO=g.createContext(null),ni=g.createContext(null),Ch=g.createContext(null),si=g.createContext({outlet:null,matches:[],isDataRoute:!1}),WN=g.createContext(null);function YO(e,t){let{relative:r}=t===void 0?{}:t;Pc()||St(!1);let{basename:n,navigator:s}=g.useContext(ni),{hash:i,pathname:o,search:l}=GN(e,{relative:r}),c=o;return n!=="/"&&(c=o==="/"?n:Qs([n,o])),s.createHref({pathname:c,search:l,hash:i})}function Pc(){return g.useContext(Ch)!=null}function ai(){return Pc()||St(!1),g.useContext(Ch).location}function qN(e){g.useContext(ni).static||g.useLayoutEffect(e)}function Rc(){let{isDataRoute:e}=g.useContext(si);return e?c4():JO()}function JO(){Pc()||St(!1);let e=g.useContext(xx),{basename:t,future:r,navigator:n}=g.useContext(ni),{matches:s}=g.useContext(si),{pathname:i}=ai(),o=JSON.stringify(BN(s,r.v7_relativeSplatPath)),l=g.useRef(!1);return qN(()=>{l.current=!0}),g.useCallback(function(d,u){if(u===void 0&&(u={}),!l.current)return;if(typeof d=="number"){n.go(d);return}let h=VN(d,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Qs([t,h.pathname])),(u.replace?n.replace:n.push)(h,u.state,u)},[t,n,o,i,e])}function GN(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=g.useContext(ni),{matches:s}=g.useContext(si),{pathname:i}=ai(),o=JSON.stringify(BN(s,n.v7_relativeSplatPath));return g.useMemo(()=>VN(e,JSON.parse(o),i,r==="path"),[e,o,i,r])}function QO(e,t){return XO(e,t)}function XO(e,t,r,n){Pc()||St(!1);let{navigator:s}=g.useContext(ni),{matches:i}=g.useContext(si),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let d=ai(),u;if(t){var h;let w=typeof t=="string"?Mo(t):t;c==="/"||(h=w.pathname)!=null&&h.startsWith(c)||St(!1),u=w}else u=d;let f=u.pathname||"/",m=f;if(c!=="/"){let w=c.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(w.length).join("/")}let b=CO(e,{pathname:m}),x=s4(b&&b.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:Qs([c,s.encodeLocation?s.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:Qs([c,s.encodeLocation?s.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,r,n);return t&&x?g.createElement(Ch.Provider,{value:{location:tc({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Fs.Pop}},x):x}function e4(){let e=l4(),t=GO(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),r?g.createElement("pre",{style:s},r):null,null)}const t4=g.createElement(e4,null);class r4 extends g.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?g.createElement(si.Provider,{value:this.props.routeContext},g.createElement(WN.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function n4(e){let{routeContext:t,match:r,children:n}=e,s=g.useContext(xx);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),g.createElement(si.Provider,{value:t},n)}function s4(e,t,r,n){var s;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,l=(s=r)==null?void 0:s.errors;if(l!=null){let u=o.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);u>=0||St(!1),o=o.slice(0,Math.min(o.length,u+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u<o.length;u++){let h=o[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(d=u),h.route.id){let{loaderData:f,errors:m}=r,b=h.route.loader&&f[h.route.id]===void 0&&(!m||m[h.route.id]===void 0);if(h.route.lazy||b){c=!0,d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((u,h,f)=>{let m,b=!1,x=null,w=null;r&&(m=l&&h.route.id?l[h.route.id]:void 0,x=h.route.errorElement||t4,c&&(d<0&&f===0?(b=!0,w=null):d===f&&(b=!0,w=h.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,f+1)),p=()=>{let y;return m?y=x:b?y=w:h.route.Component?y=g.createElement(h.route.Component,null):h.route.element?y=h.route.element:y=u,g.createElement(n4,{match:h,routeContext:{outlet:u,matches:v,isDataRoute:r!=null},children:y})};return r&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?g.createElement(r4,{location:r.location,revalidation:r.revalidation,component:x,error:m,children:p(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):p()},null)}var KN=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(KN||{}),Au=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Au||{});function a4(e){let t=g.useContext(xx);return t||St(!1),t}function i4(e){let t=g.useContext(ZO);return t||St(!1),t}function o4(e){let t=g.useContext(si);return t||St(!1),t}function ZN(e){let t=o4(),r=t.matches[t.matches.length-1];return r.route.id||St(!1),r.route.id}function l4(){var e;let t=g.useContext(WN),r=i4(Au.UseRouteError),n=ZN(Au.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function c4(){let{router:e}=a4(KN.UseNavigateStable),t=ZN(Au.UseNavigateStable),r=g.useRef(!1);return qN(()=>{r.current=!0}),g.useCallback(function(s,i){i===void 0&&(i={}),r.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,tc({fromRouteId:t},i)))},[e,t])}function d4(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function yt(e){St(!1)}function u4(e){let{basename:t="/",children:r=null,location:n,navigationType:s=Fs.Pop,navigator:i,static:o=!1,future:l}=e;Pc()&&St(!1);let c=t.replace(/^\/*/,"/"),d=g.useMemo(()=>({basename:c,navigator:i,static:o,future:tc({v7_relativeSplatPath:!1},l)}),[c,l,i,o]);typeof n=="string"&&(n=Mo(n));let{pathname:u="/",search:h="",hash:f="",state:m=null,key:b="default"}=n,x=g.useMemo(()=>{let w=gx(u,c);return w==null?null:{location:{pathname:w,search:h,hash:f,state:m,key:b},navigationType:s}},[c,u,h,f,m,b,s]);return x==null?null:g.createElement(ni.Provider,{value:d},g.createElement(Ch.Provider,{children:r,value:x}))}function h4(e){let{children:t,location:r}=e;return QO(gp(t),r)}new Promise(()=>{});function gp(e,t){t===void 0&&(t=[]);let r=[];return g.Children.forEach(e,(n,s)=>{if(!g.isValidElement(n))return;let i=[...t,s];if(n.type===g.Fragment){r.push.apply(r,gp(n.props.children,i));return}n.type!==yt&&St(!1),!n.props.index||!n.props.children||St(!1);let o={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=gp(n.props.children,i)),r.push(o)}),r}/** 520 * React Router DOM v6.30.1 521 * 522 * Copyright (c) Remix Software Inc. 523 * 524 * This source code is licensed under the MIT license found in the 525 * LICENSE.md file in the root directory of this source tree. 526 * 527 * @license MIT 528 */function xp(){return xp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xp.apply(this,arguments)}function f4(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,i;for(i=0;i<n.length;i++)s=n[i],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}function m4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function p4(e,t){return e.button===0&&(!t||t==="_self")&&!m4(e)}const g4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],x4="6";try{window.__reactRouterVersion=x4}catch{}const v4="startTransition",Xy=ng[v4];function y4(e){let{basename:t,children:r,future:n,window:s}=e,i=g.useRef();i.current==null&&(i.current=SO({window:s,v5Compat:!0}));let o=i.current,[l,c]=g.useState({action:o.action,location:o.location}),{v7_startTransition:d}=n||{},u=g.useCallback(h=>{d&&Xy?Xy(()=>c(h)):c(h)},[c,d]);return g.useLayoutEffect(()=>o.listen(u),[o,u]),g.useEffect(()=>d4(n),[n]),g.createElement(u4,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:o,future:n})}const b4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",w4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xe=g.forwardRef(function(t,r){let{onClick:n,relative:s,reloadDocument:i,replace:o,state:l,target:c,to:d,preventScrollReset:u,viewTransition:h}=t,f=f4(t,g4),{basename:m}=g.useContext(ni),b,x=!1;
528if(typeof d=="string"&&w4.test(d)&&(b=d,b4))try{let y=new URL(window.location.href),j=d.startsWith("//")?new URL(y.protocol+d):new URL(d),N=gx(j.pathname,m);j.origin===y.origin&&N!=null?d=N+j.search+j.hash:x=!0}catch{}let w=YO(d,{relative:s}),v=j4(d,{replace:o,state:l,target:c,preventScrollReset:u,relative:s,viewTransition:h});function p(y){n&&n(y),y.defaultPrevented||v(y)}return g.createElement("a",xp({},f,{href:b||w,onClick:x||i?n:p,ref:r,target:c}))});var e0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(e0||(e0={}));var t0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(t0||(t0={}));function j4(e,t){let{target:r,replace:n,state:s,preventScrollReset:i,relative:o,viewTransition:l}=t===void 0?{}:t,c=Rc(),d=ai(),u=GN(e,{relative:o});return g.useCallback(h=>{if(p4(h,r)){h.preventDefault();let f=n!==void 0?n:Cu(d)===Cu(u);c(e,{replace:f,state:s,preventScrollReset:i,relative:o,viewTransition:l})}},[d,c,u,n,s,r,e,i,o,l])}var N4=typeof Element<"u",S4=typeof Map=="function",k4=typeof Set=="function",_4=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Vd(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,s;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Vd(e[n],t[n]))return!1;return!0}var i;if(S4&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!Vd(n.value[1],t.get(n.value[0])))return!1;return!0}if(k4&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(_4&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;if(N4&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((s[n]==="_owner"||s[n]==="__v"||s[n]==="__o")&&e.$$typeof)&&!Vd(e[s[n]],t[s[n]]))return!1;return!0}return e!==e&&t!==t}var C4=function(t,r){try{return Vd(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const A4=xc(C4);var E4=function(e,t,r,n,s,i,o,l){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[r,n,s,i,o,l],u=0;c=new Error(t.replace(/%s/g,function(){return d[u++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},T4=E4;const r0=xc(T4);var P4=function(t,r,n,s){var i=n?n.call(s,t,r):void 0;if(i!==void 0)return!!i;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var o=Object.keys(t),l=Object.keys(r);if(o.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(r),d=0;d<o.length;d++){var u=o[d];if(!c(u))return!1;var h=t[u],f=r[u];if(i=n?n.call(s,h,f,u):void 0,i===!1||i===void 0&&h!==f)return!1}return!0};const R4=xc(P4);var YN=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(YN||{}),Mf={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}}
528,n0=Object.values(YN),vx={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},I4=Object.entries(vx).reduce((e,[t,r])=>(e[r]=t,e),{}),pn="data-rh",Ji={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Qi=(e,t)=>{for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},O4=e=>{let t=Qi(e,"title");const r=Qi(e,Ji.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const n=Qi(e,Ji.DEFAULT_TITLE);return t||n||void 0},M4=e=>Qi(e,Ji.ON_CHANGE_CLIENT_STATE)||(()=>{}),Df=(e,t)=>t.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,n)=>({...r,...n}),{}),D4=(e,t)=>t.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,n)=>{if(!r.length){const s=Object.keys(n);for(let i=0;i<s.length;i+=1){const l=s[i].toLowerCase();if(e.indexOf(l)!==-1&&n[l])return r.concat(n)}}return r},[]),L4=e=>console&&typeof console.warn=="function"&&console.warn(e),Qo=(e,t,r)=>{const n={};return r.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&L4(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,i)=>{const o={};i.filter(c=>{let d;const u=Object.keys(c);for(let f=0;f<u.length;f+=1){const m=u[f],b=m.toLowerCase();t.indexOf(b)!==-1&&!(d==="rel"&&c[d].toLowerCase()==="canonical")&&!(b==="rel"&&c[b].toLowerCase()==="stylesheet")&&(d=b),t.indexOf(m)!==-1&&(m==="innerHTML"||m==="cssText"||m==="itemprop")&&(d=m)}if(!d||!c[d])return!1;const h=c[d].toLowerCase();return n[d]||(n[d]={}),o[d]||(o[d]={}),n[d][h]?!1:(o[d][h]=!0,!0)}).reverse().forEach(c=>s.push(c));const l=Object.keys(o);for(let c=0;c<l.length;c+=1){const d=l[c],u={...n[d],...o[d]};n[d]=u}return s},[]).reverse()},$4=(e,t)=>{if(Array.isArray(e)&&e.length){for(let r=0;r<e.length;r+=1)if(e[r][t])return!0}return!1},F4=e=>({baseTag:D4(["href"],e),bodyAttributes:Df("bodyAttributes",e),defer:Qi(e,Ji.DEFER),encode:Qi(e,Ji.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Df("htmlAttributes",e),linkTags:Qo("link",["rel","href"],e),metaTags:Qo("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Qo("noscript",["innerHTML"],e),onChangeClientState:M4(e),scriptTags:Qo("script",["src","innerHTML"],e),styleTags:Qo("style",["cssText"],e),title:O4(e),titleAttributes:Df("titleAttributes",e),prioritizeSeoTags:$4(e,Ji.PRIORITIZE_SEO_TAGS)}),JN=e=>Array.isArray(e)?e.join(""):e,U4=(e,t)=>{const r=Object.keys(e);for(let n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1},Lf=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(U4(n,t)?r.priority.push(n):r.default.push(n),r),{priority:[],default:[]}):{default:e,priority:[]},s0=(e,t)=>({...e,[t]:void 0}),z4=["noscript","script","style"],vp=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),QN=e=>Object.keys(e).reduce((t,r)=>{const n=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${n}`:n},""),B4=(e,t,r,n)=>{const s=QN(r),i=JN(t);return s?`<${e} ${pn}="true" ${s}>${vp(i,n)}</${e}>`:`<${e} ${pn}="true">${vp(i,n)}</${e}>`},V4=(e,t,r=!0)=>t.reduce((n,s)=>{const i=s,o=Object.keys(i).filter(d=>!(d==="innerHTML"||d==="cssText")).reduce((d,u)=>{const h=typeof i[u]>"u"?u:`${u}="${vp(i[u],r)}"`;return d?`${d} ${h}`:h},""),l=i.innerHTML||i.cssText||"",c=z4.indexOf(e)===-1;return`${n}<${e} ${pn}="true" ${o}${c?"/>":`>${l}</${e}>`}`},""),XN=(e,t={})=>Object.keys(e).reduce((r,n)=>{const s=vx[n];return r[s||n]=e[n],r},t),H4=(e,t,r)=>{const n={key:t,[pn]:!0},s=XN(r,n);return[M.createElement("title",s,t)]},Hd=(e,t)=>t.map((r,n)=>{const s={key:n,[pn]:!0};return Object.keys(r).forEach(i=>{const l=vx[i]||i;if(l==="innerHTML"||l==="cssText"){const c=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:c}}else s[l]=r[i]}),M.createElement(e,s)}),Dr=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>H4(e,t.title,t.titleAttributes),toString:()=>B4(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>XN(t),toString:()=>QN(t)};default:return{toComponent:()=>Hd(e,t),toString:()=>V4(e,t,r)}}},W4=({metaTags:e,linkTags:t,scriptTags:r,encode:n})=>{const s=Lf(e,Mf.meta),i=Lf(t,Mf.link),o=Lf(r,Mf.script);return{priorityMethods:{toComponent:()=>[...Hd("meta",s.priority),...Hd("link",i.priority),...Hd("script",o.priority)],toString:()=>`${Dr("meta",s.priority,n)} ${Dr("link",i.priority,n)} ${Dr("script",o.priority,n)}`},metaTags:s.default,linkTags:i.default,scriptTags:o.default}},q4=e=>{const{baseTag:t,bodyAttributes:r,encode:n=!0,htmlAttributes:s,noscriptTags:i,styleTags:o,title:l="",titleAttributes:c,prioritizeSeoTags:d}=e;let{linkTags:u,metaTags:h,scriptTags:f}=e,m={toComponent:()=>{},toString:()=>""};return d&&({priorityMethods:m,linkTags:u,metaTags:h,scriptTags:f}=W4(e)),{priority:m,base:Dr("base",t,n),bodyAttributes:Dr("bodyAttributes",r,n),htmlAttributes:Dr("htmlAttributes",s,n),link:Dr("link",u,n),meta:Dr("meta",h,n),noscript:Dr("noscript",i,n),script:Dr("script",f,n),style:Dr("style",o,n),title:Dr("title",{title:l,titleAttributes:c},n)}},yp=q4,gd=[],eS=!!(typeof window<"u"&&window.document&&window.document.createElement),bp=class{constructor(e,t){Hn(this,"instances",[]);Hn(this,"canUseDOM",eS);Hn(this,"context");Hn(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?gd:this.instances,add:e=>{(this.canUseDOM?gd:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?gd:this.instances).indexOf(e);(this.canUseDOM?gd:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=yp({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},G4={},tS=M.createContext(G4),$a,rS=($a=class extends g.Component{constructor(r){super(r);Hn(this,"helmetData");this.helmetData=new bp(this.props.context||{}
528,$a.canUseDOM)}render(){return M.createElement(tS.Provider,{value:this.helmetData.value},this.props.children)}},Hn($a,"canUseDOM",eS),$a),di=(e,t)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${e}[${pn}]`),s=[].slice.call(n),i=[];let o;return t&&t.length&&t.forEach(l=>{const c=document.createElement(e);for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d))if(d==="innerHTML")c.innerHTML=l.innerHTML;else if(d==="cssText")c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{const u=d,h=typeof l[u]>"u"?"":l[u];c.setAttribute(d,h)}c.setAttribute(pn,"true"),s.some((d,u)=>(o=u,c.isEqualNode(d)))?s.splice(o,1):i.push(c)}),s.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)}),i.forEach(l=>r.appendChild(l)),{oldTags:s,newTags:i}},wp=(e,t)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const n=r.getAttribute(pn),s=n?n.split(","):[],i=[...s],o=Object.keys(t);for(const l of o){const c=t[l]||"";r.getAttribute(l)!==c&&r.setAttribute(l,c),s.indexOf(l)===-1&&s.push(l);const d=i.indexOf(l);d!==-1&&i.splice(d,1)}for(let l=i.length-1;l>=0;l-=1)r.removeAttribute(i[l]);s.length===i.length?r.removeAttribute(pn):r.getAttribute(pn)!==o.join(",")&&r.setAttribute(pn,o.join(","))},K4=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=JN(e)),wp("title",t)},a0=(e,t)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:s,linkTags:i,metaTags:o,noscriptTags:l,onChangeClientState:c,scriptTags:d,styleTags:u,title:h,titleAttributes:f}=e;wp("body",n),wp("html",s),K4(h,f);const m={baseTag:di("base",r),linkTags:di("link",i),metaTags:di("meta",o),noscriptTags:di("noscript",l),scriptTags:di("script",d),styleTags:di("style",u)},b={},x={};Object.keys(m).forEach(w=>{const{newTags:v,oldTags:p}=m[w];v.length&&(b[w]=v),p.length&&(x[w]=m[w].oldTags)}),t&&t(),c(e,b,x)},Xo=null,Z4=e=>{Xo&&cancelAnimationFrame(Xo),e.defer?Xo=requestAnimationFrame(()=>{a0(e,()=>{Xo=null})}):(a0(e),Xo=null)},Y4=Z4,i0=class extends g.Component{constructor(){super(...arguments);Hn(this,"rendered",!1)}shouldComponentUpdate(t){return!R4(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:r}=this.props.context;let n=null;const s=F4(t.get().map(i=>{const o={...i.props};return delete o.context,o}));rS.canUseDOM?Y4(s):yp&&(n=yp(s)),r(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},om,yx=(om=class extends g.Component{shouldComponentUpdate(e){return!A4(s0(this.props,"helmetData"),s0(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,r,n){return{...t,[e.type]:[...t[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,n)}]}}mapObjectTypeChildren(e,t,r,n){switch(e.type){case"title":return{...t,[e.type]:n,titleAttributes:{...r}};case"body":return{...t,bodyAttributes:{...r}};case"html":return{...t,htmlAttributes:{...r}};default:return{...t,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,t){let r={...t};return Object.keys(e).forEach(n=>{r={...r,[n]:e[n]}}),r}warnOnInvalidChildren(e,t){return r0(n0.some(r=>e.type===r),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${n0.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),r0(!t||typeof t=="string"||Array.isArray(t)&&!t.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let r={};
528return M.Children.forEach(e,n=>{if(!n||!n.props)return;const{children:s,...i}=n.props,o=Object.keys(i).reduce((c,d)=>(c[I4[d]||d]=i[d],c),{});let{type:l}=n;switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(n,s),l){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(n,r,o,s);break;default:t=this.mapObjectTypeChildren(n,t,o,s);break}}),this.mapArrayTypeChildrenToProps(r,t)}render(){const{children:e,...t}=this.props;let r={...t},{helmetData:n}=t;if(e&&(r=this.mapChildrenToProps(e,r)),n&&!(n instanceof bp)){const s=n;n=new bp(s.context,!0),delete r.helmetData}return n?M.createElement(i0,{...r,context:n.value}):M.createElement(tS.Consumer,null,s=>M.createElement(i0,{...r,context:s}))}},Hn(om,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),om);const J4=({angle:e=65,cellSize:t=60,opacity:r=.5,lightLineColor:n="gray",darkLineColor:s="gray"})=>{const i={"--grid-angle":`${e}deg`,"--cell-size":`${t}px`,"--opacity":r,"--light-line":n,"--dark-line":s};return a.jsxs("div",{className:X("pointer-events-none absolute size-full overflow-hidden [perspective:200px]","opacity-[var(--opacity)]"),style:i,children:[a.jsx("div",{className:"absolute inset-0 [transform:rotateX(var(--grid-angle))]",children:a.jsx("div",{className:"animate-grid [background-image:linear-gradient(to_right,var(--light-line)_1px,transparent_0),linear-gradient(to_bottom,var(--light-line)_1px,transparent_0)] [background-repeat:repeat] [background-size:var(--cell-size)_var(--cell-size)] [height:300vh] [inset:0%_0px] [margin-left:-200%] [transform-origin:100%_0_0] [width:600vw] dark:[background-image:linear-gradient(to_right,var(--dark-line)_1px,transparent_0),linear-gradient(to_bottom,var(--dark-line)_1px,transparent_0)]"})}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-white to-transparent to-90% dark:from-background"})]})},nS=g.forwardRef(({className:e,title:t="Build products for everyone",subtitle:r={regular:"Designing your projects faster with ",gradient:"the largest figma UI kit."},description:n="Sed ut perspiciatis unde omnis iste natus voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae.",ctaText:s="Browse courses",ctaHref:i="#",bottomImage:o={light:"https://farmui.vercel.app/dashboard-light.png",dark:"https://farmui.vercel.app/dashboard.png"},gridOptions:l,...c},d)=>a.jsxs("div",{className:X("relative",e),ref:d,...c,children:[a.jsx("div",{className:"absolute top-0 z-[0] h-screen w-screen bg-primary/5 dark:bg-primary/10 bg-[radial-gradient(ellipse_20%_80%_at_50%_-20%,rgba(14,165,233,0.15),rgba(255,255,255,0))] dark:bg-[radial-gradient(ellipse_20%_80%_at_50%_-20%,rgba(6,182,212,0.3),rgba(255,255,255,0))]"}),a.jsxs("section",{className:"relative max-w-full mx-auto z-1",children:[a.jsx(J4,{...l}),a.jsxs("div",{className:"max-w-screen-xl z-10 mx-auto px-4 py-28 gap-12 md:px-8",children:[a.jsxs("div",{className:"space-y-5 max-w-3xl leading-0 lg:leading-5 mx-auto text-center",children:[a.jsxs("h1",{className:"text-sm text-muted-foreground group font-medium mx-auto px-5 py-2 bg-gradient-to-tr from-primary/10 via-accent/10 to-transparent border-[2px] border-border rounded-3xl w-fit",children:[t,a.jsx(vu,{className:"inline w-4 h-4 ml-2 group-hover:translate-x-1 duration-300"})]}),a.jsxs("h2",{className:"text-4xl tracking-tighter font-bold bg-clip-text text-transparent mx-auto md:text-6xl bg-gradient-to-b from-foreground to-foreground/70",children:[r.regular,a.jsx("span",{className:"text-gradient",children:r.gradient})]}),a.jsx("p",{className:"max-w-2xl mx-auto text-muted-foreground text-lg",children:n}),a.jsx("div",{className:"items-center justify-center gap-x-3 space-y-3 sm:flex sm:space-y-0",children:a.jsxs("span",{className:"relative inline-block overflow-hidden rounded-full p-[1.5px]",children:[a.jsx("span",{className:"absolute inset-[-1000%] animate-[spin_2s_linear_infinite] bg-[conic-gradient(from_90deg_at_50%_50%,hsl(var(--primary-glow))_0%,hsl(var(--primary))_50%,hsl(var(--primary-glow))_100%)]"}),a.jsx("div",{className:"inline-flex h-full w-full cursor-pointer items-center justify-center rounded-full bg-background text-xs font-medium backdrop-blur-3xl",children:a.jsx("a",{href:i,className:"inline-flex rounded-full text-center group items-center w-full justify-center bg-gradient-to-tr from-primary/20 via-accent/30 to-transparent text-foreground border-input border-[1px] hover:bg-gradient-to-tr hover:from-primary/30 hover:via-accent/40 hover:to-transparent transition-all sm:w-auto py-4 px-10 font-semibold",children:s})})]})})]}),o&&a.jsxs("div",{className:"mt-32 mx-10 relative z-10",children:[a.jsx("img",{src:o.light,className:"w-full shadow-lg rounded-lg border border-border dark:hidden",alt:"AI Dashboard Preview - Aristle AI Platform Interface"}),a.jsx("img",{src:o.dark,className:"hidden w-full shadow-lg rounded-lg border border-border dark:block",alt:"AI Dashboard Preview - Aristle AI Platform Interface"})]})]})]})]}));nS.displayName="HeroSection";const ie=g.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:X("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));
528ie.displayName="Card";const Ve=g.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:X("flex flex-col space-y-1.5 p-6",e),...t}));Ve.displayName="CardHeader";const He=g.forwardRef(({className:e,...t},r)=>a.jsx("h3",{ref:r,className:X("text-2xl font-semibold leading-none tracking-tight",e),...t}));He.displayName="CardTitle";const Et=g.forwardRef(({className:e,...t},r)=>a.jsx("p",{ref:r,className:X("text-sm text-muted-foreground",e),...t}));Et.displayName="CardDescription";const Me=g.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:X("p-6 pt-0",e),...t}));Me.displayName="CardContent";const Q4=g.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:X("flex items-center p-6 pt-0",e),...t}));Q4.displayName="CardFooter";const X4=[{icon:Ga,title:"Real-Time Awareness",description:"Move from monthly reports to real-time visibility. Know what's happening in your business as it happens, not weeks later."},{icon:wn,title:"Forward-Looking Intelligence",description:"Predict revenue trends, cost overruns, and operational risks before they impact your bottom line."},{icon:Vt,title:"Proactive Problem Detection",description:"Identify inefficiencies, cash flow risks, and margin erosion before they become critical incidents."},{icon:Ys,title:"Actionable Recommendations",description:"Clear, prioritized actions based on AI analysisânot just dashboards, but guidance on what to do next."}],e5=()=>a.jsx("section",{className:"py-24 px-4 md:px-8 bg-muted/50",id:"services",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-16",children:[a.jsxs("h2",{className:"text-3xl md:text-5xl font-bold mb-4",children:["Built on ",a.jsx("span",{className:"text-gradient",children:"Mission-Critical Principles"})]}),a.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"We're building an AI-powered observability and advisory stack designed specifically for small and medium businesses - modeled on the same principles used to operate large-scale, mission-critical enterprise services."})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:X4.map((e,t)=>a.jsxs(ie,{className:"border-border hover:shadow-lg transition-all duration-300 hover:-translate-y-1",children:[a.jsxs(Ve,{children:[a.jsx("div",{className:"w-12 h-12 rounded-lg bg-gradient-to-br from-primary to-accent flex items-center justify-center mb-4",children:a.jsx(e.icon,{className:"w-6 h-6 text-primary-foreground"})}),a.jsx(He,{className:"text-xl",children:e.title})]}),a.jsx(Me,{children:a.jsx(Et,{className:"text-base",children:e.description})})]},t))})]})});var sS={exports:{}},aS={};/** 529 * @license React 530 * use-sync-external-store-shim.production.js 531 * 532 * Copyright (c) Meta Platforms, Inc. and affiliates. 533 * 534 * This source code is licensed under the MIT license found in the 535 * LICENSE file in the root directory of this source tree. 536 */var jo=g;function t5(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var r5=typeof Object.is=="function"?Object.is:t5,n5=jo.useState,s5=jo.useEffect,a5=jo.useLayoutEffect,i5=jo.useDebugValue;function o5(e,t){var r=t(),n=n5({inst:{value:r,getSnapshot:t}}),s=n[0].inst,i=n[1];return a5(function(){s.value=r,s.getSnapshot=t,$f(s)&&i({inst:s})},[e,r,t]),s5(function(){return $f(s)&&i({inst:s}),e(function(){$f(s)&&i({inst:s})})},[e]),i5(r),r}function $f(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!r5(e,r)}catch{return!0}}function l5(e,t){return t()}var c5=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l5:o5;aS.useSyncExternalStore=jo.useSyncExternalStore!==void 0?jo.useSyncExternalStore:c5;sS.exports=aS;var d5=sS.exports;function u5(){return d5.useSyncExternalStore(h5,()=>!0,()=>!1)}function h5(){return()=>{}}var bx="Avatar",[f5,qU]=lr(bx),[m5,iS]=f5(bx),oS=g.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[s,i]=g.useState("idle");return a.jsx(m5,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:i,children:a.jsx(de.span,{...n,ref:t})})});oS.displayName=bx;var lS="AvatarImage",cS=g.forwardRef((e,t)=>
536{const{__scopeAvatar:r,src:n,onLoadingStatusChange:s=()=>{},...i}=e,o=iS(lS,r),l=p5(n,i),c=Nt(d=>{s(d),o.onImageLoadingStatusChange(d)});return mt(()=>{l!=="idle"&&c(l)},[l,c]),l==="loaded"?a.jsx(de.img,{...i,ref:t,src:n}):null});cS.displayName=lS;var dS="AvatarFallback",uS=g.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...s}=e,i=iS(dS,r),[o,l]=g.useState(n===void 0);return g.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>l(!0),n);return()=>window.clearTimeout(c)}},[n]),o&&i.imageLoadingStatus!=="loaded"?a.jsx(de.span,{...s,ref:t}):null});uS.displayName=dS;function o0(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function p5(e,{referrerPolicy:t,crossOrigin:r}){const n=u5(),s=g.useRef(null),i=n?(s.current||(s.current=new window.Image),s.current):null,[o,l]=g.useState(()=>o0(i,e));return mt(()=>{l(o0(i,e))},[i,e]),mt(()=>{const c=h=>()=>{l(h)};if(!i)return;const d=c("loaded"),u=c("error");return i.addEventListener("load",d),i.addEventListener("error",u),t&&(i.referrerPolicy=t),typeof r=="string"&&(i.crossOrigin=r),()=>{i.removeEventListener("load",d),i.removeEventListener("error",u)}},[i,r,t]),o}var hS=oS,fS=cS,mS=uS;const pS=g.forwardRef(({className:e,...t},r)=>a.jsx(hS,{ref:r,className:X("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));pS.displayName=hS.displayName;const g5=g.forwardRef(({className:e,...t},r)=>a.jsx(fS,{ref:r,className:X("aspect-square h-full w-full",e),...t}));g5.displayName=fS.displayName;const gS=g.forwardRef(({className:e,...t},r)=>a.jsx(mS,{ref:r,className:X("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));gS.displayName=mS.displayName;const x5=[{name:"Sarah Johnson",role:"Owner, Johnson's Bistro",content:"We used to find out about cash flow problems weeks too late. Now Aristle alerts us the moment something looks offâwe caught a vendor overcharge that would've cost us $8,000.",initials:"SJ",rating:5},{name:"Michael Chen",role:"Founder, Chen Auto Services",content:"The root cause analysis is incredible. When margins dropped last month, Aristle showed us exactly whyâlabor costs had drifted 12% above our revenue trend. No more guessing.",initials:"MC",rating:5},{name:"Emily Rodriguez",role:"CEO, Coastal Retail Group",content:"Finally, we're not operating blind. Real-time visibility into cash runway, inventory turnover, and churn velocityâit's like having a CFO, COO, and analyst working 24/7.",initials:"ER",rating:5}],v5=()=>a.jsx("section",{className:"py-24 px-4 md:px-8 bg-muted/30",id:"testimonials",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-16",children:[a.jsx("h2",{className:"text-3xl md:text-5xl font-bold mb-4",children:"From Black Box to Full Visibility"}),a.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"See how businesses are transforming their operations with real-time observability"})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:x5.map((e,t)=>a.jsx(ie,{className:"border-border hover:shadow-xl transition-all duration-300",children:a.jsxs(Me,{className:"pt-6",children:[a.jsx("div",{className:"flex gap-1 mb-4",children:[...Array(e.rating)].map((r,n)=>a.jsx(Zl,{className:"w-5 h-5 fill-primary text-primary"},n))}),a.jsxs("p",{className:"text-muted-foreground mb-6 italic",children:['"',e.content,'"']}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(pS,{children:a.jsx(gS,{className:"bg-gradient-to-br from-primary to-accent text-primary-foreground font-semibold",children:e.initials})}),a.jsxs("div",{children:[a.jsx("div",{className:"font-semibold",children:e.name}),a.jsx("div",{className:"text-sm text-muted-foreground",children:e.role})]})]})]})},t))})]})}),y5=xh("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),se=g.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},i)=>{const o=n?n1:"button";return a.jsx(o,{className:X(y5({variant:t,size:r,className:e})),ref:i,...s})});
536se.displayName="Button";const b5=()=>a.jsxs("section",{className:"py-24 px-4 md:px-8 bg-gradient-to-br from-primary via-secondary to-accent relative overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-grid-white/[0.05] bg-[size:32px_32px]"}),a.jsxs("div",{className:"max-w-4xl mx-auto text-center relative z-10",children:[a.jsx("h2",{className:"text-3xl md:text-5xl font-bold mb-6 text-primary-foreground",children:"Ready to Transform Your Business with AI?"}),a.jsx("p",{className:"text-xl mb-8 text-primary-foreground/90 max-w-2xl mx-auto",children:"Join forward-thinking businesses using AI to automate, innovate, and scale. Let's discuss how custom AI solutions can drive your growth."}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center",children:[a.jsx(xe,{to:"/consultation",children:a.jsxs(se,{size:"lg",variant:"secondary",className:"text-lg px-8 py-6 shadow-xl hover:shadow-2xl transition-all hover:scale-105",children:["Schedule Free Consultation",a.jsx(tt,{className:"ml-2 w-5 h-5"})]})}),a.jsx("a",{href:"mailto:[email protected]",children:a.jsxs(se,{size:"lg",variant:"outline",className:"text-lg px-8 py-6 bg-white/10 border-white/30 text-primary-foreground hover:bg-white/20 backdrop-blur-sm",children:[a.jsx(BT,{className:"mr-2 w-5 h-5"}),"Chat with Us"]})})]}),a.jsxs("div",{className:"mt-12 flex flex-wrap justify-center gap-8 text-primary-foreground/80 text-sm",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Ff,{}),a.jsx("span",{children:"No credit card required"})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Ff,{}),a.jsx("span",{children:"Free initial consultation"})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Ff,{}),a.jsx("span",{children:"Custom pricing for nonprofits"})]})]})]})]}),Ff=()=>a.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",children:a.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})});var Rn=function(){return Rn=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Rn.apply(this,arguments)};function Do(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function w5(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(u){try{d(n.next(u))}catch(h){o(h)}}function c(u){try{d(n.throw(u))}catch(h){o(h)}}function d(u){u.done?i(u.value):s(u.value).then(l,c)}d((n=n.apply(e,t||[])).next())})}function j5(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,i;n<s;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}const N5=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class wx extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class S5 extends wx{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class l0 extends wx{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class c0 extends wx{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var jp;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(jp||(jp={}));class k5{constructor(t,{headers:r={},customFetch:n,region:s=jp.Any}={}){this.url=t,this.headers=r,this.region=s,this.fetch=N5(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return w5(this,arguments,void 0,function*(r,n={}){var s;let i,o;try{const{headers:l,method:c,body:d,signal:u,timeout:h}=n;let f={},{region:m}=n;m||(m=this.region);const b=new URL(`${this.url}/${r}`);m&&m!=="any"&&(f["x-region"]=m,b.searchParams.set("forceFunctionRegion",m));let x;d&&(l&&!Object.prototype.hasOwnProperty.call(l,"Content-Type")||!l)?typeof Blob<"u"&&d instanceof Blob||d instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",x=d):typeof d=="str
536ing"?(f["Content-Type"]="text/plain",x=d):typeof FormData<"u"&&d instanceof FormData?x=d:(f["Content-Type"]="application/json",x=JSON.stringify(d)):d&&typeof d!="string"&&!(typeof Blob<"u"&&d instanceof Blob)&&!(d instanceof ArrayBuffer)&&!(typeof FormData<"u"&&d instanceof FormData)?x=JSON.stringify(d):x=d;let w=u;h&&(o=new AbortController,i=setTimeout(()=>o.abort(),h),u?(w=o.signal,u.addEventListener("abort",()=>o.abort())):w=o.signal);const v=yield this.fetch(b.toString(),{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),l),body:x,signal:w}).catch(N=>{throw new S5(N)}),p=v.headers.get("x-relay-error");if(p&&p==="true")throw new l0(v);if(!v.ok)throw new c0(v);let y=((s=v.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),j;return y==="application/json"?j=yield v.json():y==="application/octet-stream"||y==="application/pdf"?j=yield v.blob():y==="text/event-stream"?j=v:y==="multipart/form-data"?j=yield v.formData():j=yield v.text(),{data:j,error:null,response:v}}catch(l){return{data:null,error:l,response:l instanceof c0||l instanceof l0?l.context:void 0}}finally{i&&clearTimeout(i)}})}}var _5=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
536de=e.code}},C5=class{constructor(e){var t,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var r=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const n=this.fetch;let s=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{let o=null,l=null,c=null,d=i.status,u=i.statusText;if(i.ok){var h,f;if(r.method!=="HEAD"){var m;const v=await i.text();v===""||(r.headers.get("Accept")==="text/csv"||r.headers.get("Accept")&&(!((m=r.headers.get("Accept"))===null||m===void 0)&&m.includes("application/vnd.pgrst.plan+text"))?l=v:l=JSON.parse(v))}const x=(h=r.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),w=(f=i.headers.get("content-range"))===null||f===void 0?void 0:f.split("/");x&&w&&w.length>1&&(c=parseInt(w[1])),r.isMaybeSingle&&r.method==="GET"&&Array.isArray(l)&&(l.length>1?(o={code:"PGRST116",details:`Results contain ${l.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},l=null,c=null,d=406,u="Not Acceptable"):l.length===1?l=l[0]:l=null)}else{var b;const x=await i.text();try{o=JSON.parse(x),Array.isArray(o)&&i.status===404&&(l=[],o=null,d=200,u="OK")}catch{i.status===404&&x===""?(d=204,u="No Content"):o={message:x}}if(o&&r.isMaybeSingle&&(!(o==null||(b=o.details)===null||b===void 0)&&b.includes("0 rows"))&&(o=null,d=200,u="OK"),o&&r.shouldThrowOnError)throw new _5(o)}return{error:o,data:l,count:c,status:d,statusText:u}});return this.shouldThrowOnError||(s=s.catch(i=>{var o;let l="";const c=i==null?void 0:i.cause;if(c){var d,u,h,f;const b=(d=c==null?void 0:c.message)!==null&&d!==void 0?d:"",x=(u=c==null?void 0:c.code)!==null&&u!==void 0?u:"";l=`${(h=i==null?void 0:i.name)!==null&&h!==void 0?h:"FetchError"}: ${i==null?void 0:i.message}`,l+=` 537 538Caused by: ${(f=c==null?void 0:c.name)!==null&&f!==void 0?f:"Error"}: ${b}`,x&&(l+=` (${x})`),c!=null&&c.stack&&(l+=` 539${c.stack}`)}else{var m;l=(m=i==null?void 0:i.stack)!==null&&m!==void 0?m:""}return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:l,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),s.then(e,t)}returns(){return this}overrideTypes(){return this}},A5=class extends C5{select(e){let t=!1;const r=(e??"*").split("").map(n=>/\s/.test(n)&&!t?"":(n==='"'&&(t=!t),n)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:n,referencedTable:s=n}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:r=t}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,t,{foreignTable:r,referencedTable:n=r}={}){const s=typeof n>"u"?"offset":`${n}.offset`,i=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
539explain({analyze:e=!1,verbose:t=!1,settings:r=!1,buffers:n=!1,wal:s=!1,format:i="text"}={}){var o;const l=[e?"analyze":null,t?"verbose":null,r?"settings":null,n?"buffers":null,s?"wal":null].filter(Boolean).join("|"),c=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${c}"; options=${l};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const d0=new RegExp("[,()]");var ji=class extends A5{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&d0.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}notIn(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&d0.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`not.in.(${r})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:n}={}){let s="";n==="plain"?s="pl":n==="phrase"?s="ph":n==="websearch"&&(s="w");const i=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${s}fts${i}.${t}`),this}match(e){return Object.entries(e).forEach(([t,r])=>{this.url.searchParams.append(t,`eq.${r}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t,referencedTable:r=t}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}},E5=class{constructor(e,{headers:t={},schema:r,fetch:n}){this.url=e,this.headers=new Headers(t),this.schema=r,this.fetch=n}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:r=!1,count:n}=t??{},s=r?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(d=>/\s/.test(d)&&!i?"":(d==='"'&&(i=!i),d)).join(""),{url:l,headers:c}=this.cloneRequestState();return l.searchParams.set("select",o),n&&c.append("Prefer",`count=${n}`),new ji({method:s,url:l,headers:c,schema:this.schema,fetch:this.fetch})}insert(e,{count:t,defaultToNull:r=!0}={}){var n;const s="POST",{url:i,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),r||o.append("Prefer","missing=default"),Array.isArray(e)){const l=e.reduce((c,d)=>c.concat(Object.keys(d)),[]);if(l.length>0){const c=[...new Set(l)].map(d=>`"${d}"`);i.searchParams.set("columns",c.join(","))}}return new ji({method:s,url:i,headers:o,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:n,defaultToNull:s=!0}={}){var i;const o="POST",{url:l,headers:c}=this.cloneRequestState();if(c.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),t!==void 0&&l.searchParams.set("on_conflict",t),n&&c.append("Prefer",`count=${n}`),s||c.append("Prefer","missing=default"),Array.isArray(e)){const d=e.reduce((u,h)=>u.concat(Object.keys(h)),[]);if(d.length>0){const u=[...new Set(d)].map(h=>`"${h}"`);l.searchParams.set("columns",u.join(","))}}return new ji({method:o,url:l,headers:c,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}update(e,{count:t}={}){var r;const n="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new ji({method:n,url:s,headers:i,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:e}={}){var t;const r="DELETE",{url:n,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new ji({method:r,url:n,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch})}},T5=class xS{constructor(t,{headers:r={},schema:n,fetch:s}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.fetch=s}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new E5(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new xS(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,r={},{head:n=!1,get:s=!1,count:i}={}){var o;let l;const c=new URL(`${this.url}/rpc/${t}`);let d;const u=m=>m!==null&&typeof m=="object"&&(!Array.isArray(m)||m.some(u)),h=n&&Object.values(r).some(u);h?(l="POST",d=r):n||s?(l=n?"HEAD":"GET",Object.entries(r).filter(([m,b])=>
539b!==void 0).map(([m,b])=>[m,Array.isArray(b)?`{${b.join(",")}}`:`${b}`]).forEach(([m,b])=>{c.searchParams.append(m,b)})):(l="POST",d=r);const f=new Headers(this.headers);return h?f.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&f.set("Prefer",`count=${i}`),new ji({method:l,url:c,headers:f,schema:this.schemaName,body:d,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};class P5{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const r=globalThis.process;if(r){const n=r.versions;if(n&&n.node){const s=n.node,i=parseInt(s.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 540import ws from "ws" 541new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=` 542 543Suggested solution: ${t.workaround}`),new Error(r)}static createWebSocket(t,r){const n=this.getWebSocketConstructor();return new n(t,r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const R5="2.93.3",I5=`realtime-js/${R5}`,O5="1.0.0",vS="2.0.0",u0=vS,Np=1e4,M5=1e3,D5=100;var Cs;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Cs||(Cs={}));var _t;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(_t||(_t={}));var un;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(un||(un={}));var Sp;(function(e){e.websocket="websocket"})(Sp||(Sp={}));var ja;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(ja||(ja={}));class L5{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,r){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(t));let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(t){var r;return this._isArrayBuffer((r=t.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var r,n;const s=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var r,n;const s=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,r,n){var s,i;const o=t.topic,l=(s=t.ref)!==null&&s!==void 0?s:"",c=(i=t.join_ref)!==null&&i!==void 0?i:"",d=t.payload.event,u=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},h=Object.keys(u).length===0?"":JSON.stringify(u);if(c.length>255)throw new Error(`joinRef length ${c.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`ref length ${l.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`userEvent length ${d.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const f=this.USER_BROADCAST_PUSH_META_LENGTH+c.length+l.length+o.length+d.length+h.length,m=new ArrayBuffer(this.HEADER_LENGTH+f);let b=new DataView(m),x=0;b.setUint8(x++,this.KINDS.userBroadcastPush),b.setUint8(x++,c.length),b.setUint8(x++,l.length),b.setUint8(x++,o.length),b.setUint8(x++,d.length),b.setUint8(x++,h.length),b.setUint8(x++,r),Array.from(c,v=>b.setUint8(x++,v.charCodeAt(0))),Array.from(l,v=>b.setUint8(x++,v.charCodeAt(0))),Array.from(o,v=>b.setUint8(x++,v.charCodeAt(0))),Array.from(d,v=>b.setUint8(x++,v.charCodeAt(0))),Array.from(h,v=>b.setUint8(x++,v.charCodeAt(0)));var w=new Uint8Array(m.byteLength+n.byteLength);return w.set(new Uint8Array(m),0),w.set(new Uint8Array(n),m.byteLength),w.buffer}decode(t,r){if(this._isArrayBuffer(t)){let n=this._binaryDecode(t);return r(n)}if(typeof t=="string"){const n=JSON.parse(t),[s,i,o,l,c]=n;return r({join_ref:s,ref:i,topic:o,event:l,payload:c})}return r({})}_binaryDecode(t){const r=new DataView(t),n=r.getUint8(0),s=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,r,s)}}_decodeUserBroadcast(t,r,n){const s=r.getUint8(1),i=r.getUint8(2),o=r.getUint8(3),l=r.getUint8(4);let c=this.HEADER_LENGTH+4;const d=n.decode(t.slice(c,c+s));c=c+s;const u=n.decode(t.slice(c,c+i));c=c+i;
543const h=n.decode(t.slice(c,c+o));c=c+o;const f=t.slice(c,t.byteLength),m=l===this.JSON_ENCODING?JSON.parse(n.decode(f)):f,b={type:this.BROADCAST_EVENT,event:u,payload:m};return o>0&&(b.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:d,event:this.BROADCAST_EVENT,payload:b}}_isArrayBuffer(t){var r;return t instanceof ArrayBuffer||((r=t==null?void 0:t.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(t,r){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([n])=>r.includes(n)))}}class yS{constructor(t,r){this.callback=t,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Je;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Je||(Je={}));const h0=(e,t,r={})=>{var n;const s=(n=r.skipTypes)!==null&&n!==void 0?n:[];return t?Object.keys(t).reduce((i,o)=>(i[o]=$5(o,e,t,s),i),{}):{}},$5=(e,t,r,n)=>{const s=t.find(l=>
543l.name===e),i=s==null?void 0:s.type,o=r[e];return i&&!n.includes(i)?bS(i,o):kp(o)},bS=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return B5(t,r)}switch(e){case Je.bool:return F5(t);case Je.float4:case Je.float8:case Je.int2:case Je.int4:case Je.int8:case Je.numeric:case Je.oid:return U5(t);case Je.json:case Je.jsonb:return z5(t);case Je.timestamp:return V5(t);case Je.abstime:case Je.date:case Je.daterange:case Je.int4range:case Je.int8range:case Je.money:case Je.reltime:case Je.text:case Je.time:case Je.timestamptz:case Je.timetz:case Je.tsrange:case Je.tstzrange:return kp(t);default:return kp(t)}},kp=e=>e,F5=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},U5=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},z5=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},B5=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let i;const o=e.slice(1,r);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(l=>bS(t,l))}return e},V5=e=>typeof e=="string"?e.replace(" ","T"):e,wS=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class Uf{constructor(t,r,n={},s=Np){this.channel=t,this.event=r,this.payload=n,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,r){var n;return this._hasReceived(t)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:t,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:r}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(r))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var f0;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(f0||(f0={}));class Cl{constructor(t,r){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},s=>{const{onJoin:i,onLeave:o,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Cl.syncState(this.state,s,i,o),this.pendingDiffs.forEach(c=>{this.state=Cl.syncDiff(this.state,c,i,o)}),this.pendingDiffs=[],l()}),this.channel._on(n.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Cl.syncDiff(this.state,s,i,o),l())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,r,n,s){const i=this.cloneDeep(t),o=this.transformState(r),l={},c={};return this.map(i,(d,u)=>{o[d]||(c[d]=u)}),this.map(o,(d,u)=>{const h=i[d];if(h){const f=u.map(w=>w.presence_ref),m=h.map(w=>w.presence_ref),b=u.filter(w=>m.indexOf(w.presence_ref)<0),x=h.filter(w=>f.indexOf(w.presence_ref)<0);b.length>0&&(l[d]=b),x.length>0&&(c[d]=x)}else l[d]=u}),this.syncDiff(i,{joins:l,leaves:c},n,s)}static syncDiff(t,r,n,s){const{joins:i,leaves:o}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),s||(s=()=>{}),this.map(i,(l,c)=>{var d;const u=(d=t[l])!==null&&d!==void 0?d:[];if(t[l]=this.cloneDeep(c),u.length>0){const h=t[l].map(m=>m.presence_ref),f=u.filter(m=>h.indexOf(m.presence_ref)<0);t[l].unshift(...f)}n(l,u,c)}),this.map(o,(l,c)=>{let d=t[l];if(!d)return;const u=c.map(h=>h.presence_ref);d=d.filter(h=>u.indexOf(h.presence_ref)<0),t[l]=d,s(l,d,c),d.length===0&&delete t[l]}),t}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const s=t[n];return"metas"in s?r[n]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):r[n]=s,r},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var m0;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(m0||(m0={}));var Al;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Al||(Al={}));var Zn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Zn||(Zn={}));class zi{constructor(t,r={config:{}},n){var s,i;if(this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=_t.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new Uf(this,un.join,this.params,this.timeout),this.rejoinTimer=new yS(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=_t.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=_t.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=_t.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=_t.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=_t.errored,this.rejoinTimer.scheduleTimeout())}),this._on(un.reply,{},(o,l)=>{this._trigger(this._replyEventName(l),o)}),this.presence=new Cl(this),this.broadcastEndpointURL=wS(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,r=this.timeout){var n,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==_t.closed){const{config:{broadcast:o,presence:l,private:c}}=this.params,d=(s=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(m=>m.filter))!==null&&s!==void 0?s:[],u=!!this.bindings[Al.PRESENCE]&&this.bindings[Al.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,h={},f={broadcast:o,presence:Object.assign(Object.assign({},l),{enabled:u}),postgres_changes:d,private:c};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(m=>t==null?void 0:t(Zn.CHANNEL_ERROR,m)),this._onClose(()=>t==null?void 0:t(Zn.CLOSED)),this.updateJoinPayload(Object.assign({config:f},h)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:m})=>{var b;if(this.socket._isManualToken()||this.socket.setAuth(),m===void 0){t==null||t(Zn.SUBSCRIBED);return}else{const x=this.bindings.postgres_changes,w=(b=x==null?void 0:x.length)!==null&&b!==void 0?b:0,v=[];for(let p=0;p<w;p++){const y=x[p],{filter:{event:j,schema:N,table:S,filter:k}}=y,A=m&&m[p];if(A&&A.event===j&&zi.isFilterValueEqual(A.schema,N)&&zi.isFilterValueEqual(A.table,S)&&zi.isFilterValueEqual(A.filter,k))v.push(Object.assign(Object.assign({},y),{id:A.id}));else{this.unsubscribe(),this.state=_t.errored,t==null||t(Zn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,t&&t(Zn.SUBSCRIBED);return}}).receive("error",m=>{this.state=_t.errored,t==null||t(Zn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(m).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Zn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){return this.state===_t.joined&&t===Al.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,r,n)}async httpSend(t,r,n={}){var s;if(r==null)return Promise.reject("Payload is required for httpSend()");const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:r,private:this.private}]})},l=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(s=n.timeout)!==null&&s!==void 0?s:this.timeout);if(l.status===202)return{success:!0};let c=l.statusText;
543try{const d=await l.json();c=d.error||d.message||c}catch{}return Promise.reject(new Error(c))}async send(t,r={}){var n,s;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=t,l={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(l.Authorization=`Bearer ${this.socket.accessTokenValue}`);const c={method:"POST",headers:l,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const d=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((s=d.body)===null||s===void 0?void 0:s.cancel()),d.ok?"ok":"error"}catch(d){return d.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,l,c;const d=this._push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(l=(o=this.params)===null||o===void 0?void 0:o.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&i("ok"),d.receive("ok",()=>i("ok")),d.receive("error",()=>i("error")),d.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=_t.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(un.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(s=>{n=new Uf(this,un.leave,{},t),n.receive("ok",()=>{r(),s("ok")}).receive("timeout",()=>{r(),s("timed out")}).receive("error",()=>{s("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=_t.closed,this.bindings={}}async _fetchWithTimeout(t,r,n){const s=new AbortController,i=setTimeout(()=>s.abort(),n),o=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:s.signal}));return clearTimeout(i),o}_push(t,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new Uf(this,t,r,n);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>D5){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(t,r,n){return r}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,r,n){var s,i;const o=t.toLocaleLowerCase(),{close:l,error:c,leave:d,join:u}=un;if(n&&[l,c,d,u].indexOf(o)>=0&&n!==this._joinRef())return;let f=this._onMessage(o,r,n);if(r&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(m=>{var b,x,w;return((b=m.filter)===null||b===void 0?void 0:b.event)==="*"||((w=(x=m.filter)===null||x===void 0?void 0:x.event)===null||w===void 0?void 0:w.toLocaleLowerCase())===o}).map(m=>m.callback(f,n)):(i=this.bindings[o])===null||i===void 0||i.filter(m=>{var b,x,w,v,p,y;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in m){const j=m.id,N=(b=m.filter)===null||b===void 0?void 0:b.event;return j&&((x=r.ids)===null||x===void 0?void 0:x.includes(j))&&(N==="*"||(N==null?void 0:N.toLocaleLowerCase())===((w=r.data)===null||w===void 0?void 0:w.type.toLocaleLowerCase()))}else{const j=(p=(v=m==null?void 0:m.filter)===null||v===void 0?void 0:v.event)===null||p===void 0?void 0:p.toLocaleLowerCase();return j==="*"||j===((y=r==null?void 0:r.event)===null||y===void 0?void 0:y.toLocaleLowerCase())}else return m.type.toLocaleLowerCase()===o}).map(m=>{if(typeof f=="object"&&"ids"in f){const b=f.data,{schema:x,table:w,commit_timestamp:v,type:p,errors:y}=b;f=Object.assign(Object.assign({},{schema:x,table:w,commit_timestamp:v,eventType:p,new:{},old:{},errors:y}),this._getPayloadRecords(b))}m.callback(f,n)})}_isClosed(){return this.state===_t.closed}_isJoined(){return this.state===_t.joined}_isJoining(){return this.state===_t.joining}_isLeaving(){return this.state===_t.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,r,n){const s=t.toLocaleLowerCase(),i={type:s,filter:r,callback:n};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(t,r){const n=t.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===n&&zi.isEqual(s.filter,r))})),this}static isEqual(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(t[n]!==r[n])return!1;return!0}static isFilterValueEqual(t,r){return(t??void 0)===(r??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(un.close,{},t)}_onError(t){this._on(un.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=_t.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=h0(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=h0(t.columns,t.old_record)),r}}const zf=()=>{},xd={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},H5=[1e3,2e3,5e3,1e4],W5=1e4,q5=` 544 addEventListener("message", (e) => { 545 if (e.data.event === "start") { 546 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 547 } 548 });`;class G5{constructor(t,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Np,this.transport=null,this.heartbeatIntervalMs=xd.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=zf,this.ref=0,this.reconnectTimer=null,this.vsn=u0,this.logger=zf,this.conn=null,this.sendBuffer=[],this.serializer
548=new L5,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=s=>s?(...i)=>s(...i):(...i)=>fetch(...i),!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${t}/${Sp.websocket}`,this.httpEndpoint=wS(t),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=P5.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const r=t.message;throw r.includes("Node.js")?new Error(`${r} 549 550To use Realtime in Node.js, you need to provide a WebSocket implementation: 551 552Option 1: Use Node.js 22+ which has native WebSocket support 553Option 2: Install and provide the "ws" package: 554 555 npm install ws 556 557 import ws from "ws" 558 const client = new RealtimeClient(url, { 559 ...options, 560 transport: ws 561 })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,r??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,r,n){this.logger(t,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case Cs.connecting:return ja.Connecting;case Cs.open:return ja.Open;case Cs.closing:return ja.Closing;default:return ja.Closed}}isConnected(){return this.connectionState()===ja.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,r={config:{}}){const n=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===n);if(s)return s;{const i=new zi(`realtime:${t}`,r,this);return this.channels.push(i),i}}push(t){const{topic:r,event:n,payload:s,ref:i}=t,o=()=>{this.encode(t,l=>{var c;(c=this.conn)===null||c===void 0||c.send(l)})};this.log("push",`${r} ${n} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(M5,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
vendor: 3,886 bytes, line 561
561heduleTimeout()},xd.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let r=this.channels.find(n=>n.topic===t&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${t}"`),r.unsubscribe())}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply"&&r.ref&&r.ref===this.pendingHeartbeatRef){const d=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error",d)}catch(u){this.log("error","error in heartbeat callback",u)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:n,event:s,payload:i,ref:o}=r,l=o?`(${o})`:"",c=i.status||"";this.log("receive",`${c} ${n} ${s} ${l}`.trim(),i),this.channels.filter(d=>d._isMember(n)).forEach(d=>d._trigger(s,i,o)),this._triggerStateCallbacks("message",r)})}_clearTimer(t){var r;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===Cs.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===Cs.open||this.conn.readyState===Cs.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(r=>{this.log("error","error waiting for auth on connect",r),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this._terminateWorker()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var r;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
561heduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t);try{this.heartbeatCallback("error")}catch(r){this.log("error","error in heartbeat callback",r)}}_triggerChanError(){this.channels.forEach(t=>t._trigger(un.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",s=new URLSearchParams(r);return`${t}${n}${s}`}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([q5],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(t,r=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(t=null){let r,n=!1;if(t)r=t,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(s=>{const i={access_token:r,version:I5};r&&s.updateJoinPayload(i),s.joinedOnce&&s._isJoined()&&s._push(un.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${t}`,r)})}_triggerStateCallbacks(t,r){try{this.stateChangeCallbacks[t].forEach(n=>{try{n(r)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new yS(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},xd.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var r,n,s,i,o,l,c,d,u,h,f,m;switch(this.transport=(r=t==null?void 0:t.transport)!==null&&r!==void 0?r:null,this.timeout=(n=t==null?void 0:t.timeout)!==null&&n!==void 0?n:Np,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:xd.HEARTBEAT_INTERVAL,this.worker=(i=t==null?void 0:t.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=t==null?void 0:t.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(l=t==null?void 0:t.heartbeatCallback)!==null&&l!==void 0?l:zf,this.vsn=(c=t==null?void 0:t.vsn)!==null&&c!==void 0?c:u0,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(d=t==null?void 0:t.reconnectAfterMs)!==null&&d!==void 0?d:b=>H5[b-1]||W5,this.vsn){case O5:this.encode=(u=t==null?void 0:t.encode)!==null&&u!==void 0?u:(b,x)=>x(JSON.stringify(b)),this.decode=(h=t==null?void 0:t.decode)!==null&&h!==void 0?h:(b,x)=>x(JSON.parse(b));break;case vS:this.encode=(f=t==null?void 0:t.encode)!==null&&f!==void 0?f:this.serializer.encode.bind(this.serializer),this.decode=(m=t==null?void 0:t.decode)!==null&&m!==void 0?m:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var rc=class extends Error{constructor(e,t){var r;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((r=t.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function K5(e,t,r){const n=new URL(t,e);if(r)for(const[s,i]of Object.entries(r))i!==void 0&&n.searchParams.set(s,i);return n.toString()}async function Z5(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function Y5(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:s,body:i,headers:o}){const l=K5(e.baseUrl,n,s),c=await Z5(e.auth),d=await t(l,{method:r,headers:{...i?{"Content-Type":"application/json"}:{},...c,...o},body:i?JSON.stringify(i):void 0}),u=await d.text(),h=(d.headers.get("content-type")||"").includes("application/json"),f=h&&u?JSON.parse(u):u;if(!d.ok){const m=h?f:void 0,b=m==null?void 0:m.error;throw new rc((b==null?void 0:b.message)??`Request failed with status ${d.status}`,{status:d.status,icebergType:b==null?void 0:b.type,icebergCode:b==null?void 0:b.code,details:m})}return{status:d.status,headers:d.headers,data:f}}}}function vd(e){return e.join("�")}var J5=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:vd(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(e,t){const r={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${vd(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${vd(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${vd(e.namespace)}`}),!0}catch(t){if(t instanceof rc&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(r){if(r instanceof rc&&r.status===409)return;throw r}}};function ui(e){return e.join("�")}var Q5=class{constructor(e,t="",r){this.client=e,this.prefix=t,this.accessDelegation=r}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ui(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ui(e.namespace)}/tables`,body:t,headers:r})).data.metadata}async updateTable(e,t){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ui(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ui(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ui(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${ui(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(r){if(r instanceof rc&&r.status===404)return!1;throw r}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(r){if(r instanceof rc&&r.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw r}}},X5=class{constructor(e){var n;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const r=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=Y5({baseUrl:r,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(n=e.accessDelegation)==null?void 0:n.join(","),this.namespaceOps=new J5(this.client,t),this.tableOps=new Q5(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
561async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},Ah=class extends Error{constructor(e,t="storage",r,n){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=r,this.statusCode=n}};function Eh(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var yd=class extends Ah{constructor(e,t,r,n="storage"){super(e,n,t,r),this.name=n==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},jS=class extends Ah{constructor(e,t,r="storage"){super(e,r),this.name=r==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const e3=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),t3=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_p=e=>{if(Array.isArray(e))return e.map(r=>_p(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const s=r.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=_p(n)}),t},r3=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function nc(e){"@babel/helpers - typeof";return nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nc(e)}function n3(e,t){if(nc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(nc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s3(e){var t=n3(e,"string");return nc(t)=="symbol"?t:t+""}function a3(e,t,r){return(t=s3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p0(Object(r),!0).forEach(function(n){a3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const g0=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},i3=async(e,t,r,n)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(r!=null&&r.noResolveJson)){const s=e,i=s.status||500;if(typeof s.json=="function")s.json().then(o=>{const l=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||i+"";t(new yd(g0(o),i,l,n))}).catch(()=>{if(n==="vectors"){const o=i+"";t(new yd(s.statusText||`HTTP ${i} error`,i,o,n))}else{const o=i+"";t(new yd(s.statusText||`HTTP ${i} error`,i,o,n))}});else{const o=i+"";t(new yd(s.statusText||`HTTP ${i} error`,i,o,n))}}else t(new jS(g0(e),e,n))},o3=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||e==="HEAD"||!n?ge(ge({},s),r):(t3(n)?(s.headers=ge({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(n)):s.body=n,t!=null&&t.duplex&&(s.duplex=t.duplex),ge(ge({},s),r))};async function el(e,t,r,n,s,i,o){return new Promise((l,c)=>{e(r,o3(t,n,s,i)).then(d=>{if(!d.ok)throw d;if(n!=null&&n.noResolveJson)return d;if(o==="vectors"){const u=d.headers.get("content-type");if(d.headers.get("content-length")==="0"||d.status===204)return{};if(!u||!u.includes("application/json"))return{}}return d.json()}).then(d=>l(d)).catch(d=>i3(d,c,n,o))})}function NS(e="storage"){return{get:async(t,r,n,s)=>el(t,"GET",r,n,s,void 0,e),post:async(t,r,n,s,i)=>el(t,"POST",r,s,i,n,e),put:async(t,r,n,s,i)=>el(t,"PUT",r,s,i,n,e),head:async(t,r,n,s)=>el(t,"HEAD",r,ge(ge({},n),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,r,n,s,i)=>el(t,"DELETE",r,s,i,n,e)}}const l3=NS("storage"),{get:sc,post:on,put:Cp,head:c3,remove:jx}=l3,Sr=NS("vectors");var Lo=class{constructor(e,t={},r,n="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=e3(r),this.namespace=n}throwOnError(){return this.shouldThrowOnError=!0,this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(Eh(r))return{data:null,error:r};throw r}}},d3=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Eh(t))return{data:null,error:t};throw t}}};let SS;SS=Symbol.toStringTag;var u3=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[SS]="BlobDownloadBuilder",this.promise=null}asStream(){return new d3(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Eh(t))return{data:null,error:t};throw t}}};const h3={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},x0={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var f3=class extends Lo{constructor(e,t={},r,n){super(e,t,n,"storage"),this.bucketId=r}async uploadOrUpdate(e,t,r,n){var s=this;return s.handleOperation(async()=>{let i;const o=ge(ge({},x0),n);let l=ge(ge({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;typeof Blob<"u"&&r instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",s.encodeMetadata(c)),i.append("",r)):typeof FormData<"u"&&r instanceof FormData?(i=r,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),c&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(c))):(i=r,l["cache-control"]=`max-age=${o.cacheControl}`,l["content-type"]=o.contentType,c&&(l["x-metadata"]=s.toBase64(s.encodeMetadata(c))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),n!=null&&n.headers&&(l=ge(ge({},l),n.headers));const d=s._removeEmptyFolders(t),u=s._getFinalPath(d),h=await(e=="PUT"?Cp:on)(s.fetch,`${s.url}/object/${u}`,i,ge({headers:l},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:d,id:h.Id,fullPath:h.Key}})}async upload(e,t,r){return this.uploadOrUpdate("POST",e,t,r)}async uploadToSignedUrl(e,t,r,n){var s=this;const i=s._removeEmptyFolders(e),o=s._getFinalPath(i),l=new URL(s.url+`/object/upload/sign/${o}`);return l.searchParams.set("token",t),s.handleOperation(async()=>{let c;const d=ge({upsert:x0.upsert},n),u=ge(ge({},s.headers),{"x-upsert":String(d.upsert)});return typeof Blob<"u"&&r instanceof Blob?(c=new FormData,c.append("cacheControl",d.cacheControl),c.append("",r)):typeof FormData<"u"&&r instanceof FormData?(c=r,c.append("cacheControl",d.cacheControl)):(c=r,u["cache-control"]=`max-age=${d.cacheControl}`,u["content-type"]=d.contentType),{path:i,fullPath:(await Cp(s.fetch,l.toString(),c,{headers:u})).Key}})}async createSignedUploadUrl(e,t){var r=this;return r.handleOperation(async()=>{let n=r._getFinalPath(e);const s=ge({},r.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await on(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:s}),o=new URL(r.url+i.url),l=o.searchParams.get("token");if(!l)throw new Ah("No token returned by API");return{signedUrl:o.toString(),path:e,token:l}})}async update(e,t,r){return this.uploadOrUpdate("PUT",e,t,r)}async move(e,t,r){var n=this;return n.handleOperation(async()=>await on(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,de
561stinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers}))}async copy(e,t,r){var n=this;return n.handleOperation(async()=>({path:(await on(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers})).Key}))}async createSignedUrl(e,t,r){var n=this;return n.handleOperation(async()=>{let s=n._getFinalPath(e),i=await on(n.fetch,`${n.url}/object/sign/${s}`,ge({expiresIn:t},r!=null&&r.transform?{transform:r.transform}:{}),{headers:n.headers});const o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{signedUrl:encodeURI(`${n.url}${i.signedURL}${o}`)}})}async createSignedUrls(e,t,r){var n=this;return n.handleOperation(async()=>{const s=await on(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:t,paths:e},{headers:n.headers}),i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return s.map(o=>ge(ge({},o),{},{signedUrl:o.signedURL?encodeURI(`${n.url}${o.signedURL}${i}`):null}))})}download(e,t){const r=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",n=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),s=n?`?${n}`:"",i=this._getFinalPath(e),o=()=>sc(this.fetch,`${this.url}/${r}/${i}${s}`,{headers:this.headers,noResolveJson:!0});return new u3(o,this.shouldThrowOnError)}async info(e){var t=this;const r=t._getFinalPath(e);return t.handleOperation(async()=>_p(await sc(t.fetch,`${t.url}/object/info/${r}`,{headers:t.headers})))}async exists(e){var t=this;const r=t._getFinalPath(e);try{return await c3(t.fetch,`${t.url}/object/${r}`,{headers:t.headers}),{data:!0,error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Eh(n)&&n instanceof jS){const s=n.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:n}}throw n}}getPublicUrl(e,t){const r=this._getFinalPath(e),n=[],s=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";s!==""&&n.push(s);const i=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",o=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});o!==""&&n.push(o);let l=n.join("&");return l!==""&&(l=`?${l}`),{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${r}${l}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await jx(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,r){var n=this;return n.handleOperation(async()=>{const s=ge(ge(ge({},h3),t),{},{prefix:e||""});return await on(n.fetch,`${n.url}/object/list/${n.bucketId}`,s,{headers:n.headers},r)})}async listV2(e,t){var r=this;return r.handleOperation(async()=>{const n=ge({},e);return await on(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const m3="2.93.3",Ic={"X-Client-Info":`storage-js/${m3}`};var p3=class extends Lo{constructor(e,t={},r,n){const s=new URL(e);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const i=s.href.replace(/\/$/,""),o=ge(ge({},Ic),t);super(i,o,r,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const r=t.listBucketOptionsToQueryString(e);return await sc(t.fetch,`${t.url}/bucket${r}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await sc(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var r=this;return r.handleOperation(async()=>await on(r.fetch,`${r.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async updateBucket(e,t){var r=this;return r.handleOperation(async()=>await Cp(r.fetch,`${r.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await on(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await jx(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},g3=class extends Lo{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=ge(ge({},Ic),t);super(n,s,r,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await on(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>
561{const r=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&r.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&r.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&r.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&r.set("sortOrder",e.sortOrder),e!=null&&e.search&&r.set("search",e.search);const n=r.toString(),s=n?`${t.url}/bucket?${n}`:`${t.url}/bucket`;return await sc(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await jx(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!r3(e))throw new Ah("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const r=new X5({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(s,i){const o=s[i];return typeof o!="function"?o:async(...l)=>{try{return{data:await o.apply(s,l),error:null}}catch(c){if(n)throw c;return{data:null,error:c}}}}})}},x3=class extends Lo{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=ge(ge({},Ic),{},{"Content-Type":"application/json"},t);super(n,s,r,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Sr.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var r=this;return r.handleOperation(async()=>await Sr.post(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Sr.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var r=this;return r.handleOperation(async()=>await Sr.post(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers})||{})}},v3=class extends Lo{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=ge(ge({},Ic),{},{"Content-Type":"application/json"},t);super(n,s,r,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Sr.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Sr.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Sr.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Sr.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Sr.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},y3=class extends Lo{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=ge(ge({},Ic),{},{"Content-Type":"application/json"},t);super(n,s,r,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Sr.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Sr.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Sr.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Sr.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},b3=class extends y3{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new w3(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,r=this;return t().call(r,e)}async getBucket(e){var t=()=>super.getBucket,r=this;return t().call(r,e)}async listBuckets(e={}){var t=()=>super.listBuckets,r=this;return t().call(r,e)}async deleteBucket(e){var t=()=>super.deleteBucket,r=this;return t().call(r,e)}},w3=class extends x3{constructor(e,t,r,n){super(e,t,n),this.vectorBucketName=r}async createIndex(e){var t=()=>super.createIndex,r=this;return t().call(r,ge(ge({},e),{},{vectorBucketName:r.vectorBucketName}))}
561async listIndexes(e={}){var t=()=>super.listIndexes,r=this;return t().call(r,ge(ge({},e),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,r=this;return t().call(r,r.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,r=this;return t().call(r,r.vectorBucketName,e)}index(e){return new j3(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},j3=class extends v3{constructor(e,t,r,n,s){super(e,t,s),this.vectorBucketName=r,this.indexName=n}async putVectors(e){var t=()=>super.putVectors,r=this;return t().call(r,ge(ge({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(e){var t=()=>super.getVectors,r=this;return t().call(r,ge(ge({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,r=this;return t().call(r,ge(ge({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,r=this;return t().call(r,ge(ge({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,r=this;return t().call(r,ge(ge({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},N3=class extends p3{constructor(e,t={},r,n){super(e,t,r,n)}from(e){return new f3(this.url,this.headers,e,this.fetch)}get vectors(){return new b3(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new g3(this.url+"/iceberg",this.headers,this.fetch)}};const kS="2.93.3",Ni=30*1e3,Ap=3,Bf=Ap*Ni,S3="http://localhost:9999",k3="supabase.auth.token",_3={"X-Client-Info":`gotrue-js/${kS}`},Ep="X-Supabase-Api-Version",_S={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},C3=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,A3=10*60*1e3;class ac extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function fe(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class E3 extends ac{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function T3(e){return fe(e)&&e.name==="AuthApiError"}class Na extends ac{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class fs extends ac{constructor(t,r,n,s){super(t,n,s),this.name=r,this.status=n}}class yr extends fs{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Vf(e){return fe(e)&&e.name==="AuthSessionMissingError"}class hi extends fs{constructor(){super("Auth session or user missing","AuthInvalidToken
561ResponseError",500,void 0)}}class bd extends fs{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class wd extends fs{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function P3(e){return fe(e)&&e.name==="AuthImplicitGrantRedirectError"}class v0 extends fs{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class R3 extends fs{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Tp extends fs{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function Hf(e){return fe(e)&&e.name==="AuthRetryableFetchError"}class y0 extends fs{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class Pp extends fs{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Eu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),b0=` 562\r=`.split(""),I3=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<b0.length;t+=1)e[b0[t].charCodeAt(0)]=-2;for(let t=0;t<Eu.length;t+=1)e[Eu[t].charCodeAt(0)]=t;return e})();function w0(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(Eu[n]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(Eu[n]),t.queuedBits-=6}}function CS(e,t,r){const n=I3[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function j0(e){const t=[],r=o=>{t.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{D3(o,n,r)};for(let o=0;o<e.length;o+=1)CS(e.charCodeAt(o),s,i);return t.join("")}function O3(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function M3(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const s=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|s)+65536,r+=1}O3(n,t)}}function D3(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}function Xi(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)CS(e.charCodeAt(s),r,n);return new Uint8Array(t)}function L3(e){const t=[];return M3(e,r=>t.push(r)),new Uint8Array(t)}function Ca(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};return e.forEach(s=>w0(s,r,n)),w0(null,r,n),t.join("")}function $3(e){return Math.round(Date.now()/1e3)+e}function F3(){return Symbol("auth-callback")}const Lt=()=>typeof window<"u"&&typeof document<"u",pa={tested:!1,writable:!1},AS=()=>{if(!Lt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(pa.tested)return pa.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),pa.tested=!0,pa.writable=!0}catch{pa.tested=!0,pa.writable=!1}return pa.writable};function U3(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEac
562h((s,i)=>{t[i]=s})}catch{}return r.searchParams.forEach((n,s)=>{t[s]=n}),t}const ES=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),z3=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Si=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},ga=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},Dt=async(e,t)=>{await e.removeItem(t)};class Th{constructor(){this.promise=new Th.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}Th.promiseConstructor=Promise;function jd(e){const t=e.split(".");if(t.length!==3)throw new Pp("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!C3.test(t[n]))throw new Pp("JWT not in base64url format");return{header:JSON.parse(j0(t[0])),payload:JSON.parse(j0(t[1])),signature:Xi(t[2]),raw:{header:t[0],payload:t[1]}}}async function B3(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function V3(e,t){return new Promise((n,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){n(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function H3(e){return("0"+e.toString(16)).substr(-2)}function W3(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let s="";for(let i=0;i<56;i++)s+=r.charAt(Math.floor(Math.random()*n));return s}return crypto.getRandomValues(t),Array.from(t,H3).join("")}async function q3(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),s=new Uint8Array(n);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function G3(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const r=await q3(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function fi(e,t,r=!1){const n=W3();let s=n;r&&(s+="/PASSWORD_RECOVERY"),await Si(e,`${t}-code-verifier`,s);const i=await G3(n);return[i,n===i?"plain":"s256"]}const K3=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function Z3(e){const t=e.headers.get(Ep);if(!t||!t.match(K3))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function Y3(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function J3(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const Q3=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function mi(e){if(!Q3.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Wf(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function X3(e,t){return new Proxy(e,{get:(r,n,s)=>{if(n==="__isInsecureUserWarningProxy")return!0;if(typeof n=="symbol"){const i=n.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,s)}return!t.value&&typeof n=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(r,n,s)}})}function N0(e){return JSON.parse(JSON.stringify(e))}const wa=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),eM=[502,503,504];async function S0(e){var t;if(!z3(e))throw new Tp(wa(e),0);if(eM.includes(e.status))throw new Tp(wa(e),e.status);let r;try{r=await e.json()}catch(i){throw new Na(wa(i),i)}let n;const s=Z3(e);if(s&&s.getTime()>=_S["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new y0(wa(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new yr}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((i,o)=>
562i&&typeof o=="string",!0))throw new y0(wa(r),e.status,r.weak_password.reasons);throw new E3(wa(r),e.status||500,n)}const tM=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(n),Object.assign(Object.assign({},s),r))};async function pe(e,t,r,n){var s;const i=Object.assign({},n==null?void 0:n.headers);i[Ep]||(i[Ep]=_S["2024-01-01"].name),n!=null&&n.jwt&&(i.Authorization=`Bearer ${n.jwt}`);const o=(s=n==null?void 0:n.query)!==null&&s!==void 0?s:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const l=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await rM(e,t,r+l,{headers:i,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(c):{data:Object.assign({},c),error:null}}async function rM(e,t,r,n,s,i){const o=tM(t,n,s,i);let l;try{l=await e(r,Object.assign({},o))}catch(c){throw console.error(c),new Tp(wa(c),0)}if(l.ok||await S0(l),n!=null&&n.noResolveJson)return l;try{return await l.json()}catch(c){await S0(c)}}function rn(e){var t;let r=null;aM(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=$3(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function k0(e){const t=rn(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Ps(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function nM(e){return{data:e,error:null}}function sM(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i}=e,o=Do(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i},c=Object.assign({},o);return{data:{properties:l,user:c},error:null}}function _0(e){return e}function aM(e){return e.access_token&&e.refresh_token&&e.expires_in}const qf=["global","local","others"];class iM{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=ES(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,r=qf[0]){if(qf.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${qf.join(", ")}`);try{return await pe(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(fe(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await pe(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Ps})}catch(n){if(fe(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=Do(t,["options"]),s=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(s.new_email=n==null?void 0:n.newEmail,delete s.newEmail),await pe(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:sM,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(fe(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await pe(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Ps})}catch(r){if(fe(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,s,i,o,l,c;try{const d={nextPage:null,lastPage:0,total:0},u=await pe(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:_0});if(u.error)throw u.error;const h=await u.json(),f=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,m=(c=(l=u.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return m.length>0&&(m.forEach(b=>{const x=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(b.split(";")[1].split("=")[1]);d[`${w}Page`]=x}),d.total=parseInt(f)),{data:Object.assign(Object.assign({},h),d),error:null}}catch(d){if(fe(d))return{data:{users:[]},error:d};throw d}}async getUserById(t){mi(t);try{return await pe(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Ps})}catch(r){if(fe(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){mi(t);try{return await pe(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:Ps})}catch(n){if(fe(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){mi(t);
562try{return await pe(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:Ps})}catch(n){if(fe(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){mi(t.userId);try{const{data:r,error:n}=await pe(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:r,error:n}}catch(r){if(fe(r))return{data:null,error:r};throw r}}async _deleteFactor(t){mi(t.userId),mi(t.id);try{return{data:await pe(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(fe(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,n,s,i,o,l,c;try{const d={nextPage:null,lastPage:0,total:0},u=await pe(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:_0});if(u.error)throw u.error;const h=await u.json(),f=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,m=(c=(l=u.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return m.length>0&&(m.forEach(b=>{const x=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(b.split(";")[1].split("=")[1]);d[`${w}Page`]=x}),d.total=parseInt(f)),{data:Object.assign(Object.assign({},h),d),error:null}}catch(d){if(fe(d))return{data:{clients:[]},error:d};throw d}}async _createOAuthClient(t){try{return await pe(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(fe(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{return await pe(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(fe(r))return{data:null,error:r};throw r}}async _updateOAuthClient(t,r){try{return await pe(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(fe(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(t){try{return await pe(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(fe(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{return await pe(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(fe(r))return{data:null,error:r};throw r}}}function C0(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}const pi={debug:!!(globalThis&&AS()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class TS extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class oM extends TS{}async function lM(e,t,r){pi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;return t>0&&setTimeout(()=>{n.abort(),pi.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async s=>{if(s){pi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await r()}finally{pi.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw pi.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new oM(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(pi.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}}))}function cM(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function PS(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
562" is invalid.`);return e.toLowerCase()}function dM(e){return parseInt(e,16)}function uM(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function hM(e){var t;const{chainId:r,domain:n,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:l,requestId:c,resources:d,scheme:u,uri:h,version:f}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 563`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const m=PS(e.address),b=u?`${u}://${n}`:n,x=e.statement?`${e.statement} 564`:"",w=`${b} wants you to sign in with your Ethereum account: 565${m} 566 567${x}`;let v=`URI: ${h} 568Version: ${f} 569Chain ID: ${r}${o?` 570Nonce: ${o}`:""} 571Issued At: ${i.toISOString()}`;if(s&&(v+=` 572Expiration Time: ${s.toISOString()}`),l&&(v+=` 573Not Before: ${l.toISOString()}`),c&&(v+=` 574Request ID: ${c}`),d){let p=` 575Resources:`;for(const y of d){if(!y||typeof y!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${y}`);p+=` 576- ${y}`}v+=p}return`${w} 577${v}`}class wt extends Error{constructor({message:t,code:r,cause:n,name:s}){var i;super(t,{cause:n}),this.__isWebAuthnError=!0,this.name=(i=s??(n instanceof Error?n.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=r}}class Tu extends wt{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function fM({error:e,options:t}){var r,n,s;const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new wt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((r=i.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new wt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((n=i.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new wt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new wt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new wt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new wt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(l=>l.type==="public-key").length===0?new wt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new wt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(RS(o)){if(i.rp.id!==o)return new wt({message:`The RP ID "${i.rp.id}
577" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new wt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new wt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new wt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new wt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function mM({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new wt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new wt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(RS(n)){if(r.rpId!==n)return new wt({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new wt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new wt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new wt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class pM{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const gM=new pM;function xM(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:r,excludeCredentials:n}=e,s=Do(e,["challenge","user","excludeCredentials"]),i=Xi(t).buffer,o=Object.assign(Object.assign({},r),{id:Xi(r.id).buffer}),l=Object.assign(Object.assign({},s),{challenge:i,user:o});if(n&&n.length>0){l.excludeCredentials=new Array(n.length);for(let c=0;c<n.length;c++){const d=n[c];l.excludeCredentials[c]=Object.assign(Object.assign({},d),{id:Xi(d.id).buffer,type:d.type||"public-key",transports:d.transports})}}return l}function vM(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:r}=e,n=Do(e,["challenge","allowCredentials"]),s=Xi(t).buffer,i=Object.assign(Object.assign({},n),{challenge:s});if(r&&r.length>0){i.allowCredentials=new Array(r.length);for(let o=0;o<r.length;o++){const l=r[o];i.allowCredentials[o]=Object.assign(Object.assign({},l),{id:Xi(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return i}function yM(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:Ca(new Uint8Array(e.response.attestationObject)),clientDataJSON:Ca(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function bM(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e,n=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Ca(new Uint8Array(s.authenticatorData)),clientDataJSON:Ca(new Uint8Array(s.clientDataJSON)),signature:Ca(new Uint8Array(s.signature)),userHandle:s.userHandle?Ca(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function RS(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function A0(){var e,t;return!!(Lt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function wM(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Tu("Browser returned unexpected credential type",t)}:{data:null,error:new Tu("Empty credential response",t)}}
577catch(t){return{data:null,error:fM({error:t,options:e})}}}async function jM(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Tu("Browser returned unexpected credential type",t)}:{data:null,error:new Tu("Empty credential response",t)}}catch(t){return{data:null,error:mM({error:t,options:e})}}}const NM={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},SM={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Pu(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),r=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),n={};for(const s of e)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))n[i]=o;else if(r(o))n[i]=o;else if(t(o)){const l=n[i];t(l)?n[i]=Pu(l,o):n[i]=Pu(o)}else n[i]=o}return n}function kM(e,t){return Pu(NM,e,t||{})}function _M(e,t){return Pu(SM,e,t||{})}class CM{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:r,friendlyName:n,signal:s},i){var o;try{const{data:l,error:c}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!l)return{data:null,error:c};const d=s??gM.createNewAbortSignal();if(l.webauthn.type==="create"){const{user:u}=l.webauthn.credential_options.publicKey;if(!u.name){const h=n;if(h)u.name=`${u.id}:${h}`;else{const m=(await this.client.getUser()).data.user,b=((o=m==null?void 0:m.user_metadata)===null||o===void 0?void 0:o.name)||(m==null?void 0:m.email)||(m==null?void 0:m.id)||"User";u.name=`${u.id}:${b}`}}u.displayName||(u.displayName=u.name)}switch(l.webauthn.type){case"create":{const u=kM(l.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:h,error:f}=await wM({publicKey:u,signal:d});return h?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:f}}case"request":{const u=_M(l.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:h,error:f}=await jM(Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:u,signal:d}));return h?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:f}}}}catch(l){return fe(l)?{data:null,error:l}:{data:null,error:new Na("Unexpected error in challenge",l)}}}async _verify({challengeId:t,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:t,webauthn:n})}async _authenticate({factorId:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!r)return{data:null,error:new ac("rpId is required for WebAuthn authentication")};try{if(!A0())return{data:null,error:new Na("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:n},signal:s},{request:i});if(!o)return{data:null,error:l};const{webauthn:c}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:c.type,rpId:r,rpOrigins:n,credential_response:c.credential_response}})}catch(o){return fe(o)?{data:null,error:o}:{data:null,error:new Na("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!r)return{data:null,error:new ac("rpId is required for WebAuthn registration")};try{if(!A0())return{data:null,error:new Na("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(u=>{var h;
577return(h=u.data)===null||h===void 0?void 0:h.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===t&&f.status!=="unverified")}).then(u=>u?this.client.mfa.unenroll({factorId:u==null?void 0:u.id}):void 0),{data:null,error:l};const{data:c,error:d}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:s},{create:i});return c?this._verify({factorId:o.id,challengeId:c.challengeId,webauthn:{rpId:r,rpOrigins:n,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:d}}catch(o){return fe(o)?{data:null,error:o}:{data:null,error:new Na("Unexpected error in register",o)}}}}cM();const AM={url:S3,storageKey:k3,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:_3,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function E0(e,t,r){return await r()}const gi={};class ic{get jwks(){var t,r;return(r=(t=gi[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){gi[this.storageKey]=Object.assign(Object.assign({},gi[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=gi[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){gi[this.storageKey]=Object.assign(Object.assign({},gi[this.storageKey]),{cachedAt:t})}constructor(t){var r,n,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},AM),t);if(this.storageKey=i.storageKey,this.instanceID=(r=ic.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,ic.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&Lt()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new iM({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=ES(i.fetch),this.lock=i.lock||E0,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock?this.lock=i.lock:this.persistSession&&Lt()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=lM:this.lock=E0,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new CM(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:AS()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=C0(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=C0(this.memoryStorage)),Lt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(l){this._debug("#broadcastChannel","error",l)}})}this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${kS}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let r={},n="none";if(Lt()&&(r=U3(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),Lt()&&this.detectSessionInUrl&&n!=="none"){const{data:s,error:i}=await this._getSessionFromURL(r,n);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),P3(i)){const c=(t=i.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:o,redirectType:l}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",l),await this._saveSession(o),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return fe(r)?this._returnResult({error:r}):this._returnResult({error:new Na("Unexpected error during initialization",r)}
577)}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,s;try{const i=await pe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:rn}),{data:o,error:l}=i;if(l||!o)return this._returnResult({data:{user:null,session:null},error:l});const c=o.session,d=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:d,session:c},error:null})}catch(i){if(fe(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var r,n,s;try{let i;if("email"in t){const{email:u,password:h,options:f}=t;let m=null,b=null;this.flowType==="pkce"&&([m,b]=await fi(this.storage,this.storageKey)),i=await pe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:u,password:h,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:m,code_challenge_method:b},xform:rn})}else if("phone"in t){const{phone:u,password:h,options:f}=t;i=await pe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:h,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},channel:(s=f==null?void 0:f.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:rn})}else throw new bd("You must provide either an email or phone number and a password");const{data:o,error:l}=i;if(l||!o)return await Dt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l});const c=o.session,d=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:d,session:c},error:null})}catch(i){if(await Dt(this.storage,`${this.storageKey}-code-verifier`),fe(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(t){try{let r;if("email"in t){const{email:i,password:o,options:l}=t;r=await pe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:k0})}else if("phone"in t){const{phone:i,password:o,options:l}=t;r=await pe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:k0})}else throw new bd("You must provide either an email or phone number and a password");const{data:n,error:s}=r;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!n||!n.session||!n.user){const i=new hi;return this._returnResult({data:{user:null,session:null},error:i})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:s})}catch(r){if(fe(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(t){var r,n,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,n,s,i,o,l,c,d,u,h,f;let m,b;if("message"in t)m=t.message,b=t.signature;else{const{chain:x,wallet:w,statement:v,options:p}=t;let y;if(Lt())if(typeof w=="object")y=w;else{const E=window;if("ethereum"in E&&typeof E.ethereum=="object"&&"request"in E.ethereum&&typeof E.ethereum.request=="function")y=E.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof w!="object"||!(p!=null&&p.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");y=w}const j=new URL((r=p==null?void 0:p.url)!==null&&r!==void 0?r:window.location.href),N=await y.request({method:"eth_requestAccounts"}).then(E=>E).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!N||N.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const S=PS(N[0]);
577let k=(n=p==null?void 0:p.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!k){const E=await y.request({method:"eth_chainId"});k=dM(E)}const A={domain:j.host,address:S,statement:v,uri:j.href,version:"1",chainId:k,nonce:(s=p==null?void 0:p.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=p==null?void 0:p.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(l=p==null?void 0:p.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(c=p==null?void 0:p.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(d=p==null?void 0:p.signInWithEthereum)===null||d===void 0?void 0:d.requestId,resources:(u=p==null?void 0:p.signInWithEthereum)===null||u===void 0?void 0:u.resources};m=hM(A),b=await y.request({method:"personal_sign",params:[uM(m),S]})}try{const{data:x,error:w}=await pe(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:m,signature:b},!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:rn});if(w)throw w;if(!x||!x.session||!x.user){const v=new hi;return this._returnResult({data:{user:null,session:null},error:v})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:w})}catch(x){if(fe(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async signInWithSolana(t){var r,n,s,i,o,l,c,d,u,h,f,m;let b,x;if("message"in t)b=t.message,x=t.signature;else{const{chain:w,wallet:v,statement:p,options:y}=t;let j;if(Lt())if(typeof v=="object")j=v;else{const S=window;if("solana"in S&&typeof S.solana=="object"&&("signIn"in S.solana&&typeof S.solana.signIn=="function"||"signMessage"in S.solana&&typeof S.solana.signMessage=="function"))j=S.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(y!=null&&y.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");j=v}const N=new URL((r=y==null?void 0:y.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in j&&j.signIn){const S=await j.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},y==null?void 0:y.signInWithSolana),{version:"1",domain:N.host,uri:N.href}),p?{statement:p}:null));let k;if(Array.isArray(S)&&S[0]&&typeof S[0]=="object")k=S[0];else if(S&&typeof S=="object"&&"signedMessage"in S&&"signature"in S)k=S;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in k&&"signature"in k&&(typeof k.signedMessage=="string"||k.signedMessage instanceof Uint8Array)&&k.signature instanceof Uint8Array)b=typeof k.signedMessage=="string"?k.signedMessage:new TextDecoder().decode(k.signedMessage),x=k.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in j)||typeof j.signMessage!="function"||!("publicKey"in j)||typeof j!="object"||!j.publicKey||!("toBase58"in j.publicKey)||typeof j.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");b=[`${N.host} wants you to sign in with your Solana account:`,j.publicKey.toBase58(),...p?["",p,""]:[""],"Version: 1",`URI: ${N.href}`,`Issued At: ${(s=(n=y==null?void 0:y.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=y==null?void 0:y.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${y.signInWithSolana.notBefore}`]:[],...!((o=y==null?void 0:y.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${y.signInWithSolana.expirationTime}`]:[],...!((l=y==null?void 0:y.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${y.signInWithSolana.chainId}`]:[],...!((c=y==null?void 0:y.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${y.signInWithSolana.nonce}`]:[],...!((d=y==null?void 0:y.signInWithSolana)===null||d===void 0)&&d.requestId?[`Request ID: ${y.signInWithSolana.requestId}`]:[],...!((h=(u=y==null?void 0:y.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||h===void 0)&&h.length?["Resources",...y.signInWithSolana.resources.map(k=>`- ${k}`)]:[]].join(` 578`);const S=await j.signMessage(new TextEncoder().encode(b),"utf8");if(!S||!(S instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");x=S}}try{const{data:w,error:v}=await pe(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:b,signature:Ca(x)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(m=t.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:rn});if(v)throw v;if(!w||!w.session||!w.user){const p=new hi;return this._returnResult({data:{user:null,session:null},error:p})}return w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),this._returnResult({data:Object.assign({},w),error:v})}catch(w){if(fe(w))return this._returnResult({data:{user:null,session:null},error:w});throw w}}async _exchangeCodeForSession(t){const r=await ga(this.storage,`${this.storageKey}-code-verifier`),[n,s]=(r??"").split("/");try{if(!n&&this.flowType==="pkce")throw new R3;const{data:i,error:o}=await pe(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:rn});if(await Dt(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const l=new hi;return this._returnResult({data:{user:null,session:null,redirectType:null},error:l})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await Dt(this.storage,`${this.storageKey}-code-verifier`),fe(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(t){try{const{options:r,provider:n,token:s,access_token:i,nonce:o}=t,l=await pe(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:rn}),{data:c,error:d}=l;if(d)return this._returnResult({data:{user:null,session:null},error:d});if(!c||!c.session||!c.user){const u=new hi;return this._returnResult({data:{user:null,session:null},error:u})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),this._returnResult({data:c,error:d})}catch(r){if(fe(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(t){var r,n,s,i,o;try{if("email"in t){const{email:l,options:c}=t;let d=null,u=null;this.flowType==="pkce"&&([d,u]=await fi(this.storage,this.storageKey));const{error:h}=await pe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(r=c==null?void 0:c.data)!==null&&r!==void 0?r:{},create_user:(n=c==null?void 0:c.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:d,code_challenge_method:u},redirectTo:c==null?void 0:c.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:l,options:c}=t,{data:d,error:u}=await pe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(s=c==null?void 0:c.data)!==null&&s!==void 0?s:{},create_user:(i=c==null?void 0:c.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(o=c==null?void 0:c.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:d==null?void 0:d.message_id},error:u})}throw new bd("You must provide either an email or phone number.")}catch(l){if(await Dt(this.storage,`${this.storageKey}-code-verifier`),fe(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async verifyOtp(t){var r,n;try{let s,i;"options"in t&&(s=(r=t.options)===null||r===void 0?void 0:r.redirectTo,i=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:l}=await pe(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:rn});if(l)throw l;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,d=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),this._returnResult({data:{user:d,session:c},error:null})}catch(s){if(fe(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var r,n,s,i,o;try{let l=null,c=null;this.flowType==="pkce"&&([l,c]=await fi(this.storage,this.storageKey));const d=await pe(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:l,code_challenge_method:c}),headers:this.headers,xform:nM});return!((i=d.data)===null||i===void 0)&&i.url&&Lt()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(d.data.url),this._returnResult(d)}catch(l){if(await Dt(this.storage,`${this.storageKey}-code-verifier`),fe(l))return this._returnResult({data:null,error:l});throw l}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new yr;const{error:s}=await pe(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(fe(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:s,options:i}=t,{error:o}=await pe(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:n,type:s,options:i}=t,{data:o,error:l}=await pe(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:l})}throw new bd("You must provide either an email or phone number and a type")}catch(r){if(fe(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await ga(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not val
578id"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<Bf:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const o=await ga(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=Wf()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=X3(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const r=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(t){try{return t?await pe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Ps}):await this._useSession(async r=>{var n,s,i;const{data:o,error:l}=r;if(l)throw l;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new yr}:await pe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:Ps})})}catch(r){if(fe(r))return Vf(r)&&(await this._removeSession(),await Dt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:s,error:i}=n;if(i)throw i;if(!s.session)throw new yr;const o=s.session;let l=null,c=null;this.flowType==="pkce"&&t.email!=null&&([l,c]=await fi(this.storage,this.storageKey));const{data:d,error:u}=await pe(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:l,code_challenge_method:c}),jwt:o.access_token,xform:Ps});if(u)throw u;return o.user=d.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(n){if(await Dt(this.storage,`${this.storageKey}-code-verifier`),fe(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new yr;const r=Date.now()/1e3;let n=r,s=!0,i=null;const{payload:o}=jd(t.access_token);if(o.exp&&(n=o.exp,s=n<=r),s){const{data:l,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l)return{data:{user:null,session:null},error:null};i=l}else{const{data:l,error:c}=await this._getUser(t.access_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});i={access_token:t.access_token,refresh_token:t.refresh_token,user:l.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(r){if(fe(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:o,error:l}=r;if(l)throw l;t=(n=o.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new yr;const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(fe(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(t,r){try{if(!Lt())throw new wd("No browser detected.");
578if(t.error||t.error_description||t.error_code)throw new wd(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new v0("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new wd("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new v0("No code detected.");const{data:p,error:y}=await this._exchangeCodeForSession(t.code);if(y)throw y;const j=new URL(window.location.href);return j.searchParams.delete("code"),window.history.replaceState(window.history.state,"",j.toString()),{data:{session:p.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:l,expires_at:c,token_type:d}=t;if(!i||!l||!o||!d)throw new wd("No session defined in URL");const u=Math.round(Date.now()/1e3),h=parseInt(l);let f=u+h;c&&(f=parseInt(c));const m=f-u;m*1e3<=Ni&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${m}s, should have been closer to ${h}s`);const b=f-h;u-b>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",b,f,u):u-b<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",b,f,u);const{data:x,error:w}=await this._getUser(i);if(w)throw w;const v={provider_token:n,provider_refresh_token:s,access_token:i,expires_in:h,expires_at:f,refresh_token:o,token_type:d,user:x.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:t.type},error:null})}catch(n){if(fe(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await ga(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i&&!Vf(i))return this._returnResult({error:i});const o=(n=s.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:l}=await this.admin.signOut(o,t);if(l&&!(T3(l)&&(l.status===404||l.status===401||l.status===403)||Vf(l)))return this._returnResult({error:l})}return t!=="others"&&(await this._removeSession(),await Dt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const r=F3(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,s;try{const{data:{session:i},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,r={}){let n=null,s=null;this.flowType==="pkce"&&([n,s]=await fi(this.storage,this.storageKey,!0));try{return await pe(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:s,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(i){if(await Dt(this.storage,`${this.storageKey}-code-verifier`),fe(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(r){if(fe(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var r;try{const{data:n,error:s}=await this._useSession(async i=>{var o,l,c,d,u;const{data:h,error:f}=i;if(f)throw f;const m=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(l=t.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await pe(this.fetch,"GET",m,{headers:this.headers,jwt:(u=(d=h.session)===null||d===void 0?void 0:d.access_token)!==null&&u!==void 0?u:void 0})});if(s)throw s;return Lt()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:t.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(fe(n))return this._returnResult({data:{provider:t.provider,url:null},error:n});throw n}}async linkIdentityIdToken(t){return await this._useSession(async r=>{var n;try{const{error:s,data:{session:i}}=r;if(s)throw s;const{options:o,provider:l,token:c,access_token:d,nonce:u}=t,h=await pe(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=i==null?void 0:i.access_token)!==null&&n!==void 0?n:void 0,body:{provider:l,id_token:c,access_token:d,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:rn}),{data:f,error:m}=h;return m?this._returnResult({data:{user:null,session:null},error:m}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new hi}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:m}))}catch(s){if(await Dt(this.storage,`${this.storageKey}-code-verifier`),fe(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,s;const{data:i,error:o}=r;if(o)throw o;
578return await pe(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(n=i.session)===null||n===void 0?void 0:n.access_token)!==null&&s!==void 0?s:void 0})})}catch(r){if(fe(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await V3(async s=>(s>0&&await B3(200*Math.pow(2,s-1)),this._debug(r,"refreshing attempt",s),await pe(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:rn})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Hf(i)&&Date.now()+o-n<Ni})}catch(n){if(this._debug(r,"error",n),fe(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),Lt()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const s=await ga(this.storage,this.storageKey);if(s&&this.userStorage){let o=await ga(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await Si(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:Wf()}else if(s&&!s.user&&!s.user){const o=await ga(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await Dt(this.storage,this.storageKey+"-user"),await Si(this.storage,this.storageKey,s)):s.user=Wf()}if(this._debug(n,"session from storage",s),!this._isValidSession(s)){this._debug(n,"session is not valid"),s!==null&&await this._removeSession();return}const i=((r=s.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<Bf;if(this._debug(n,`session has${i?"":" not"} expired with margin of ${Bf}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),Hf(o)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:l}=await this._getUser(s.access_token);!l&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(n,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(n,"error",s),console.error(s);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new yr;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Th;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new yr;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const l={data:i.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(i){if(this._debug(s,"error",i),fe(i)){const o={data:null,error:i};return Hf(i)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,r,n=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(t,r)}catch(c){i.push(c)}});if(await Promise.all(o),i.length>0){for(let l=0;l<i.length;l+=1)console.error(i[l]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Dt(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await Si(this.userStorage,this.storageKey+"-user",{user:r.user});const s=Object.assign({},r);delete s.user;const i=N0(s);await Si(this.storage,this.storageKey,i)}else{const s=N0(r);await Si(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Dt(this.storage,this.storageKey),await Dt(this.storage,this.storageKey+"-code-verifier"),await Dt(this.storage,this.storageKey+"-user"),this.userStorage&&await Dt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;
578try{t&&Lt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Ni);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const r=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=r,r&&typeof r=="object"&&typeof r.unref=="function"?r.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(r)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const r=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,r&&clearTimeout(r)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((n.expires_at*1e3-t)/Ni);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Ni}ms, refresh threshold is ${Ap} ticks`),s<=Ap&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof TS)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Lt()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,n){const s=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&s.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[i,o]=await fi(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(l.toString())}if(n!=null&&n.queryParams){const i=new URLSearchParams(n.queryParams);s.push(i.toString())}return n!=null&&n.skipBrowserRedirect&&s.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;return i?this._returnResult({data:null,error:i}):await pe(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(fe(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,s;const{data:i,error:o}=r;if(o)return this._returnResult({data:null,error:o});const l=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:c,error:d}=await pe(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return d?this._returnResult({data:null,error:d}):(t.factorType==="totp"&&c.type==="totp"&&(!((s=c==null?void 0:c.totp)===null||s===void 0)&&s.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),this._returnResult({data:c,error:null}))})}catch(r){if(fe(r))return this._returnResult({data:null,error:r});throw r}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?yM(t.webauthn.credential_response):bM(t.webauthn.credential_response)})}:{code:t.code}),{data:l,error:c}=await pe(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});return c?this._returnResult({data:null,error:c}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),this._returnResult({data:l,error:c}))})}catch(r){if(fe(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return this._returnResult({data:null,error:i});const o=await pe(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});if(o.error)return o;const{data:l}=o;if(l.type!=="webauthn")return{data:l,error:null};switch(l.webauthn.type){case"create":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:xM(l.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:vM(l.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(fe(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){var t;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=r==null?void 0:r.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var r,n,s,i;if(t)try{const{payload:m}=jd(t);let b=null;m.aal&&(b=m.aal);let x=b;const{data:{user:w},error:v}=await this.getUser(t);if(v)return this._returnResult({data:null,error:v});((n=(r=w==null?void 0:w.factors)===null||r===void 0?void 0:r.filter(j=>j.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(x="aal2");const y=m.amr||[];return{data:{currentLevel:b,nextLevel:x,currentAuthenticationMethods:y},error:null}}catch(m){if(fe(m))return this._returnResult({data:null,error:m});throw m}const{data:{session:o},error:l}
578=await this.getSession();if(l)return this._returnResult({data:null,error:l});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:c}=jd(o.access_token);let d=null;c.aal&&(d=c.aal);let u=d;((i=(s=o.user.factors)===null||s===void 0?void 0:s.filter(m=>m.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(u="aal2");const f=c.amr||[];return{data:{currentLevel:d,nextLevel:u,currentAuthenticationMethods:f},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?await pe(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new yr})})}catch(r){if(fe(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new yr});const o=await pe(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&Lt()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(fe(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new yr});const o=await pe(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&Lt()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(fe(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;return n?this._returnResult({data:null,error:n}):r?await pe(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new yr})})}catch(t){if(fe(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?(await pe(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new yr})})}catch(r){if(fe(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(l=>l.kid===t);if(n)return n;const s=Date.now();if(n=this.jwks.keys.find(l=>l.kid===t),n&&this.jwks_cached_at+A3>s)return n;const{data:i,error:o}=await pe(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,n=i.keys.find(l=>l.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:m,error:b}
578=await this.getSession();if(b||!m.session)return this._returnResult({data:null,error:b});n=m.session.access_token}const{header:s,payload:i,signature:o,raw:{header:l,payload:c}}=jd(n);r!=null&&r.allowExpired||Y3(i.exp);const d=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!d){const{error:m}=await this.getUser(n);if(m)throw m;return{data:{claims:i,header:s,signature:o},error:null}}const u=J3(s.alg),h=await crypto.subtle.importKey("jwk",d,u,!0,["verify"]);if(!await crypto.subtle.verify(u,h,o,L3(`${l}.${c}`)))throw new Pp("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(n){if(fe(n))return this._returnResult({data:null,error:n});throw n}}}ic.nextInstanceID={};const EM=ic,TM="2.93.3";let ul="";typeof Deno<"u"?ul="deno":typeof document<"u"?ul="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ul="react-native":ul="node";const PM={"X-Client-Info":`supabase-js-${ul}/${TM}`},RM={headers:PM},IM={schema:"public"},OM={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},MM={};function oc(e){"@babel/helpers - typeof";return oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oc(e)}function DM(e,t){if(oc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(oc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LM(e){var t=DM(e,"string");return oc(t)=="symbol"?t:t+""}function $M(e,t,r){return(t=LM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function ct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T0(Object(r),!0).forEach(function(n){$M(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const FM=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),UM=()=>Headers,zM=(e,t,r)=>{const n=FM(r),s=UM();return async(i,o)=>{var l;const c=(l=await t())!==null&&l!==void 0?l:e;let d=new s(o==null?void 0:o.headers);return d.has("apikey")||d.set("apikey",e),d.has("Authorization")||d.set("Authorization",`Bearer ${c}`),n(i,ct(ct({},o),{},{headers:d}))}};function BM(e){return e.endsWith("/")?e:e+"/"}function VM(e,t){var r,n;const{db:s,auth:i,realtime:o,global:l}=e,{db:c,auth:d,realtime:u,global:h}=t,f={db:ct(ct({},c),s),auth:ct(ct({},d),i),realtime:ct(ct({},u),o),storage:{},global:ct(ct(ct({},h),l),{},{headers:ct(ct({},(r=h==null?void 0:h.headers)!==null&&r!==void 0?r:{}),(n=l==null?void 0:l.headers)!==null&&n!==void 0?n:{})}),accessToken:async()=>""};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}function HM(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(BM(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var WM=class extends EM{constructor(e){super(e)}},qM=class{constructor(e,t,r){var n,s;this.supabaseUrl=e,this.supabaseKey=t;const i=HM(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const o=`sb-${i.hostname.split(".")[0]}-auth-token`,l={db:IM,realtime:MM,auth:ct(ct({},OM),{},{storageKey:o}),global:RM},c=VM(r??{},l);if(this.storageKey=(n=c.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(s=c.global.headers)!==null&&s!==void 0?s:{},c.accessToken)this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(u,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var d;this.auth=this._initSupabaseAuthClient((d=c.auth)!==null&&d!==void 0?d:{},this.headers,c.global.fetch)}this.fetch=zM(t,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(ct({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(u=>this.realtime.setAuth(u)).catch(u=>console.warn("Failed to set initial Realtime auth token:",u)),this.rest=new T5(new URL("rest/v1",i).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this.storage=new N3(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new k5(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,r)}
578channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,r;if(e.accessToken)return await e.accessToken();const{data:n}=await e.auth.getSession();return(t=(r=n.session)===null||r===void 0?void 0:r.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,storageKey:i,flowType:o,lock:l,debug:c,throwOnError:d},u,h){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new WM({url:this.authUrl.href,headers:ct(ct({},f),u),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,flowType:o,lock:l,debug:c,throwOnError:d,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(m=>m.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new G5(this.realtimeUrl.href,ct(ct({},e),{},{params:ct(ct({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const GM=(e,t,r)=>new qM(e,t,r);function KM(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const r=t.match(/^v(\d+)\./);return r?parseInt(r[1],10)<=18:!1}KM()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function ZM(){var w,v;if(typeof window>"u")return;const e=location.hostname,r=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(p=>e===p||e.endsWith("."+p)),n="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=r?((w=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+n+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:w[1])??((v=e.match(new RegExp("^("+n+")(?=[.-])","i")))==null?void 0:v[1]):void 0,i=window.parent&&window.parent!==window;if(!s||!i)return localStorage;const o=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),l=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,c=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),d=c&&l.test(c)?[c]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],u="lovable-preview-auth:result",h=2e3,f=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),m=(p,y,j)=>new Promise(N=>{const S=f();let k=!1,A;const E=I=>{k||(k=!0,clearTimeout(A),window.removeEventListener("message",O),N(I))},O=I=>{if(d.indexOf(I.origin)<0)return;const U=I.data;U&&U.type===u&&U.requestId===S&&E(U)};window.addEventListener("message",O);const R={type:p,requestId:S,projectId:s,key:y};j!==void 0&&(R.value=j);for(const I of d)window.parent.postMessage(R,I);A=setTimeout(()=>E(null),h)});let b=!0;const x=250;return{getItem:async p=>{let y=await m("lovable-preview-auth:get",p);return!y&&b&&(await new Promise(j=>setTimeout(j,x)),y=await m("lovable-preview-auth:get",p)),b=!1,y&&y.ok&&typeof y.value=="string"?y.value===""?(localStorage.removeItem(p),null):y.value:localStorage.getItem(p)},setItem:(p,y)=>(localStorage.setItem(p,y),m("lovable-preview-auth:set",p,y).then(()=>{})),removeItem:p=>(localStorage.removeItem(p),m("lovable-preview-auth:remove",p).then(()=>{}))}}const YM="https://algdiumlbdzvrixprknb.supabase.co",JM="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFsZ2RpdW1sYmR6dnJpeHBya25iIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzAwNzQ4NjUsImV4cCI6MjA4NTY1MDg2NX0.1legdMNba8yEcEoNavC4Fuk
578DAdLaDg-Fw-hLQYMjmCQ",Jt=GM(YM,JM,{auth:{storage:ZM(),persistSession:!0,autoRefreshToken:!0}}),$o="/assets/aristle-logo-alt-MdaGZso3.png",ua=()=>{var i;const e=Rc(),t=ai(),[r,n]=g.useState(null);g.useEffect(()=>{const{data:{subscription:o}}=Jt.auth.onAuthStateChange((l,c)=>{n((c==null?void 0:c.user)??null)});return Jt.auth.getSession().then(({data:{session:l}})=>{n((l==null?void 0:l.user)??null)}),()=>o.unsubscribe()},[]);const s=o=>{if(t.pathname!=="/")e("/"),setTimeout(()=>{const l=document.getElementById(o);l&&l.scrollIntoView({behavior:"smooth"})},100);else{const l=document.getElementById(o);l&&l.scrollIntoView({behavior:"smooth"})}};return a.jsx("nav",{className:"fixed top-0 left-0 right-0 z-50 bg-background/80 backdrop-blur-md border-b border-border",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"flex justify-between items-center h-16",children:[a.jsx(xe,{to:"/",className:"flex-shrink-0",onClick:()=>{t.pathname==="/"&&window.scrollTo({top:0,behavior:"smooth"})},children:a.jsxs("div",{className:"flex items-center gap-3 cursor-pointer",children:[a.jsx("img",{src:$o,alt:"Aristle AI Logo",className:"h-10 w-10"}),a.jsx("span",{className:"text-xl font-bold bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent",children:"Aristle AI"})]})}),a.jsxs("div",{className:"hidden md:flex items-center space-x-8",children:[a.jsx("button",{onClick:()=>s("services"),className:"text-sm font-medium text-foreground/80 hover:text-foreground transition-colors",children:"Principles"}),a.jsx(xe,{to:"/Zumie",className:"text-sm font-medium text-foreground/80 hover:text-foreground transition-colors",onClick:()=>{t.pathname==="/Zumie"&&window.scrollTo({top:0,behavior:"smooth"})},children:"Platform"}),a.jsx(xe,{to:"/platform",className:"text-sm font-medium text-foreground/80 hover:text-foreground transition-colors",onClick:()=>{t.pathname==="/platform"&&window.scrollTo({top:0,behavior:"smooth"})},children:"Operations"}),a.jsx(xe,{to:"/agents",className:"text-sm font-medium text-foreground/80 hover:text-foreground transition-colors",onClick:()=>{t.pathname==="/agents"&&window.scrollTo({top:0,behavior:"smooth"})},children:"Agents"}),a.jsx(xe,{to:"/about",className:"text-sm font-medium text-foreground/80 hover:text-foreground transition-colors",onClick:()=>{t.pathname==="/about"&&window.scrollTo({top:0,behavior:"smooth"})},children:"About"}),r?a.jsxs(a.Fragment,{children:[a.jsx(xe,{to:"/dashboard",className:"text-sm font-medium text-foreground/80 hover:text-foreground transition-colors",children:"Dashboard"}),a.jsxs("span",{className:"text-sm text-muted-foreground",children:["Welcome, ",(i=r.email)==null?void 0:i.split("@")[0]]}),a.jsx(se,{variant:"outline",size:"sm",onClick:async()=>{await Jt.auth.signOut(),e("/")},children:"Log Out"})]}):a.jsxs(a.Fragment,{children:[a.jsx(xe,{to:"/auth",children:a.jsx(se,{variant:"outline",size:"sm",children:"Log In"})}),a.jsx(xe,{to:"/consultation",children:a.jsx(se,{size:"sm",children:"Schedule Free Consultation"})})]})]}),a.jsx("div",{className:"md:hidden flex items-center gap-2",children:r?a.jsx(xe,{to:"/dashboard",children:a.jsx(se,{size:"sm",children:"Dashboard"})}):a.jsxs(a.Fragment,{children:[a.jsx(xe,{to:"/auth",children:a.jsx(se,{variant:"outline",size:"sm",children:"Log In"})}),a.jsx(xe,{to:"/consultation",children:a.jsx(se,{size:"sm",children:"Consultation"})})]})})]})})})},QM=[{icon:vh,name:"Finance Agent",domain:"Banking, AR/AP, Cash Flow"},{icon:qr,name:"Workforce Agent",domain:"Payroll, Scheduling, Labor"},{icon:Ac,name:"Inventory Agent",domain:"Stock, Spoilage, Turnover"},{icon:V1,name:"Sales Agent",domain:"POS, Revenue, Margins"},{icon:ZT,name:"Vendor Agent",domain:"Suppliers, Costs, Terms"},{icon:IT,name:"Operations Agent",domain:"Infrastructure, Systems"}],XM=["Detects inefficiencies before they impact performance","Predicts revenue trends, cost overruns, and operational risk","Identifies optimization opportunities across labor, pricing, inventory, and vendor spend","Continuously learns from historical outcomes and business context"],eD=()=>a.jsx("section",{className:"py-24 px-4 md:px-8 bg-background",id:"architecture",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-16",children:[a.jsxs("h2",{className:"text-3xl md:text-5xl font-bold mb-4",children:["Agent-Based Intelligence ",a.jsx("span",{className:"text-gradient",children:"Architecture"})]}),a.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Domain-specific AI Agents integrate directly with your core business systems, transforming raw activity into structured business telemetry."})]}),a.jsxs("div",{className:"mb-16",children:[a.jsx("h3",{className:"text-xl font-semibold text-center mb-8 text-muted-foreground",children:"Specialized Agents for Every Business Domain"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4",children:QM.map((e,t)=>a.jsx(ie,{className:"border-border hover:border-primary/50 transition-all duration-300 text-center",children:a.jsxs(Me,{className:"pt-6 pb-4",children:[a.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-3",children:a.jsx(e.icon,{className:"w-6 h-6 text-primary"})}),a.jsx("h4",{className:"font-semibold text-sm mb-1",children:e.name}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e.domain})]})},t))})]}),a.jsxs("div",{className:"flex flex-col lg:flex-row items-center justify-center gap-6 mb-16",children:[a.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[a.jsx(Vr,{className:"w-5 h-5 text-primary"}),a.jsx("span",{children:"Agents Collect Signals"})]}),a.jsx(tt,{className:"w-5 h-5 text-primary hidden lg:block"}),a.jsx("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:a.jsx("span",{children:"Transform to Telemetry"})}),a.jsx(tt,{className:"w-5 h-5 text-primary hidden lg:block"}),a.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold",children:[a.jsx(Zs,{className:"w-5 h-5 text-primary"}),a.jsx("span",{children:"Business Intelligence Brain"})]})]}),a.jsxs(ie,{className:"border-primary/30 bg-gradient-to-br from-primary/5 to-accent/5",children:[a.jsxs(Ve,{className:"text-center",children:[a.jsx("div",{className:"w-16 h-16 rounded-full bg-gradient-to-br from-primary to-accent flex items-center justify-center mx-auto mb-4",children:a.jsx(Zs,{className:"w-8 h-8 text-primary-foreground"})}
578),a.jsx(He,{className:"text-2xl md:text-3xl",children:"The Business Intelligence Brain"}),a.jsx(Et,{className:"text-lg max-w-2xl mx-auto",children:"Advanced AI/ML models correlate data across domains, identify patterns, and surface insights that are impossible to see in siloed systems."})]}),a.jsx(Me,{children:a.jsx("div",{className:"grid md:grid-cols-2 gap-4 max-w-3xl mx-auto",children:XM.map((e,t)=>a.jsxs("div",{className:"flex items-start gap-3 p-4 bg-background/50 rounded-lg border border-border",children:[a.jsx("div",{className:"w-2 h-2 rounded-full bg-primary mt-2 flex-shrink-0"}),a.jsx("p",{className:"text-sm",children:e})]},t))})})]})]})}),P0=[{icon:_c,title:"Observe",description:"What is happening",detail:"Real-time visibility into every aspect of your operations",color:"from-blue-500 to-cyan-500"},{icon:Zs,title:"Understand",description:"Why it is happening",detail:"AI correlates signals and explains causality in plain English",color:"from-cyan-500 to-teal-500"},{icon:wn,title:"Predict",description:"What will happen next",detail:"Forward-looking intelligence based on patterns and context",color:"from-teal-500 to-green-500"},{icon:tx,title:"Recommend",description:"Prioritized proactive actions",detail:"Clear, actionable recommendations to drive outcomes",color:"from-green-500 to-primary"}],tD=["Make confident, timely decisions","Drive growth efficiently","Build operational resilience","Stay ahead of problems"],rD=()=>a.jsx("section",{className:"py-24 px-4 md:px-8 bg-muted/30",id:"closed-loop",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-16",children:[a.jsxs("h2",{className:"text-3xl md:text-5xl font-bold mb-4",children:["Beyond Monitoring: ",a.jsx("span",{className:"text-gradient",children:"Closed-Loop Intelligence"})]}),a.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Rather than reacting to lagging reports, gain real-time awareness and forward-looking intelligence with clear, actionable recommendations."})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-16",children:P0.map((e,t)=>a.jsxs("div",{className:"relative",children:[a.jsxs("div",{className:"bg-card border border-border rounded-2xl p-6 h-full hover:shadow-lg transition-all duration-300",children:[a.jsx("div",{className:`w-14 h-14 rounded-xl bg-gradient-to-br ${e.color} flex items-center justify-center mb-4`,children:a.jsx(e.icon,{className:"w-7 h-7 text-white"})}),a.jsxs("div",{className:"text-xs font-semibold text-muted-foreground mb-1",children:["STEP ",t+1]}),a.jsx("h3",{className:"text-xl font-bold mb-2",children:e.title}),a.jsx("p",{className:"text-primary font-medium mb-2",children:e.description}),a.jsx("p",{className:"text-sm text-muted-foreground",children:e.detail})]}),t<P0.length-1&&a.jsx("div",{className:"hidden lg:block absolute top-1/2 -right-3 transform -translate-y-1/2 z-10",children:a.jsx(tt,{className:"w-6 h-6 text-primary"})})]},t))}),a.jsxs("div",{className:"bg-card border border-border rounded-2xl p-8 md:p-12 text-center",children:[a.jsx("h3",{className:"text-2xl font-bold mb-6",children:"Enabling Business Owners and Operators To:"}),a.jsx("div",{className:"flex flex-wrap justify-center gap-4 mb-8",children:tD.map((e,t)=>a.jsxs("div",{className:"flex items-center gap-2 bg-primary/5 border border-primary/20 rounded-full px-4 py-2",children:[a.jsx(Yt,{className:"w-4 h-4 text-primary"}),a.jsx("span",{className:"text-sm font-medium",children:e})]},t))}),a.jsx(xe,{to:"/platform",children:a.jsxs(se,{size:"lg",className:"text-lg px-8",children:["Explore the Full Platform",a.jsx(tt,{className:"ml-2 w-5 h-5"})]})})]})]})}),nD="/assets/dashboard-light-Cy6sx21k.png",sD="/assets/dashboard-dark-GNF9PfnO.png",Rp="https://aristle-ai.lovable.app",aD=`${Rp}/og-image.png`,vr=({title:e,description:t,keywords:r,canonicalUrl:n,ogType:s="website",ogImage:i=aD,structuredData:o,noIndex:l=!1})=>{const c=`${e} | Aristle AI`,d=n?`${Rp}${n}`:Rp,u=()=>o?(Array.isArray(o)?o:[o]).map((f,m)=>a.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(f)}},m)):null;return a.jsxs(yx,{children:[a.jsx("title",{children:c}),a.jsx("meta",{name:"title",content:c}),a.jsx("meta",{name:"description",content:t}),r&&a.jsx("meta",{name:"keywords",content:r}),a.jsx("meta",{name:"author",content:"Aristle AI"}),a.jsx("meta",{name:"robots",content:l?"noindex, nofollow":"index, follow"}),a.jsx("link",{rel:"canonical",href:d}),a.jsx("meta",{property:"og:type",content:s}),a.jsx("meta",{property:"og:url",content:d}),a.jsx("meta",{property:"og:title",content:c}),a.jsx("meta",{property:"og:description",content:t}),a.jsx("meta",{property:"og:image",content:i}),a.jsx("meta",{property:"og:site_name",content:"Aristle AI"}),a.jsx("meta",{property:"og:locale",content:"en_US"}),a.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),a.jsx("meta",{name:"twitter:url",content:d}),a.jsx("meta",{name:"twitter:title",content:c}),a.jsx("meta",{name:"twitter:description",content:t}),a.jsx("meta",{name:"twitter:image",content:i}),a.jsx("meta",{name:"ai-content-declaration",content:"human-created"}),a.jsx("meta",{name:"generator",content:"Aristle AI - AI Solutions Platform"}),u()]})},Nx=()=>({"@context":"https://schema.org","@type":"Organization",name:"Aristle AI",alternateName:"Aristle",description:"AI consultancy specializing in custom AI agents, intelligent automation, and machine learning solutions for small businesses, startups, and nonprofits",url:"https://aristle-ai.lovable.app",logo:"https://aristle-ai.lovable.app/src/assets/aristle-logo.png",foundingDate:"2024",sameAs:[],contactPoint:{"@type":"ContactPoint",contactType:"Sales",email:"[email protected]",areaServed:"Worldwide",availableLanguage:["English"]},offers:{"@type":"AggregateOffer",name:"AI Solutions",description:"Custom AI agents, intelligent automation, and business management platform"}}),iD=()=>({"@context":"https://schema.org","@type":"WebSite",name:"Aristle AI",url:"https://aristle-ai.lovable.app",description:"AI-powered platform for small business automation and growth",publisher:{"@type":"Organization",name:"Aristle AI"},potentialAction:{"@type":"SearchAction",target:"https://aristle-ai.lovable.app/search?q={search_term_string}","query-input":"required name=search_term_string"}}),IS=e=>({"@context":"https://schema.org","@type":"ItemList",name:"Aristle AI Services",itemListElement:e.map((t,r)=>({"@type":"ListItem",position:r+1,item:{"@type":"Service",name:t.name,description:t.description,provider:{"@type":"Organization",name:"Aristle AI"}}}))}),oD=e=>({"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>
578({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))}),Oc=e=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((t,r)=>({"@type":"ListItem",position:r+1,name:t.name,item:`https://aristle-ai.lovable.app${t.url}`}))}),lD=e=>({"@context":"https://schema.org","@type":"ItemList",name:"Aristle AI Pricing Plans",itemListElement:e.map((t,r)=>({"@type":"ListItem",position:r+1,item:{"@type":"Product",name:t.name,description:t.description,brand:{"@type":"Brand",name:"Aristle AI"},offers:{"@type":"Offer",price:t.price.replace("$",""),priceCurrency:"USD",availability:"https://schema.org/InStock"}}}))}),cD=()=>({"@context":"https://schema.org","@type":"SoftwareApplication",name:"Aristle AI Platform",applicationCategory:"BusinessApplication",operatingSystem:"Web",description:"All-in-one AI platform for small business management including social media, finance, payroll, and customer management",offers:{"@type":"AggregateOffer",lowPrice:"49",highPrice:"499",priceCurrency:"USD",offerCount:3},featureList:["Social Media Management","Finance Management","Payroll Management","Infrastructure Management","Paid Ads Management","Customer Management","Agentic AI","Intelligent Alerts"],provider:{"@type":"Organization",name:"Aristle AI"}}),dD="https://aws.amazon.com/marketplace/pp/prodview-eovk5yccec3xy",uD="https://www.gavrun.ai",Gf="zumie-takeover-dismissed",R0=15e3,hD=()=>{const[e,t]=g.useState(!1),[r,n]=g.useState(15);g.useEffect(()=>{if(typeof window>"u")return;const o=new URLSearchParams(window.location.search);if(o.has("reset-takeover")||o.has("show-takeover")){sessionStorage.removeItem(Gf),t(!0);return}sessionStorage.getItem(Gf)||t(!0)},[]),g.useEffect(()=>{if(!e)return;const o=Date.now(),l=setInterval(()=>{const c=Date.now()-o,d=Math.max(0,Math.ceil((R0-c)/1e3));n(d),c>=R0&&(clearInterval(l),s())},250);return()=>clearInterval(l)},[e]),g.useEffect(()=>{if(!e)return;const o=l=>{l.key==="Escape"&&s()};return window.addEventListener("keydown",o),()=>{window.removeEventListener("keydown",o)}},[e]);const s=()=>{sessionStorage.setItem(Gf,"1"),t(!1)};if(!e)return null;const i=(15-r)/15*100;return a.jsx("div",{className:"zumie-theme fixed left-0 right-0 bottom-0 top-16 z-40 flex items-start sm:items-center justify-center bg-background/40 backdrop-blur-sm animate-in fade-in duration-300 overflow-y-auto p-4",role:"dialog","aria-modal":"true","aria-labelledby":"zumie-takeover-title",onClick:s,children:a.jsxs("div",{className:"relative w-full max-w-lg bg-card border border-border rounded-2xl shadow-2xl overflow-hidden animate-in zoom-in-95 slide-in-from-bottom-4 duration-300",onClick:o=>o.stopPropagation(),children:[a.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 bg-border/50",children:a.jsx("div",{className:"h-full bg-gradient-to-r from-primary via-accent to-primary transition-all duration-200 ease-linear",style:{width:`${i}%`}})}),a.jsx("button",{onClick:s,"aria-label":"Dismiss",className:"absolute top-3 right-3 z-10 w-8 h-8 rounded-full flex items-center justify-center bg-card/80 border border-border hover:bg-muted transition-all",children:a.jsx(qa,{className:"w-4 h-4"})}),a.jsxs("div",{className:"p-6 sm:p-8 text-center",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-primary/10 border border-primary/20 mb-5",children:[a.jsx(ls,{className:"w-3 h-3 text-primary"}),a.jsx("span",{className:"text-[10px] font-semibold tracking-widest uppercase text-primary",children:"Introducing · Sneak Peek"})]}),a.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[a.jsx(Vt,{className:"w-8 h-8 text-primary",strokeWidth:1.5}),a.jsx("h2",{id:"zumie-takeover-title",className:"text-4xl font-bold bg-gradient-to-br from-foreground via-primary to-accent bg-clip-text text-transparent tracking-tight",children:"Gavrun"})]}),a.jsx("p",{className:"text-base sm:text-lg font-semibold text-foreground mb-2 leading-tight",children:"AI & Agentic Workforce Management and Governance"}),a.jsx("p",{className:"text-sm text-muted-foreground mb-5",children:"Govern every AI agent in your organization â in the cloud or on your own infrastru
578cture."}),a.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2 mb-5",children:[{icon:Vr,label:"Agent Identity"},{icon:Cc,label:"Policy Enforcement"},{icon:_c,label:"Observability"}].map(({icon:o,label:l})=>a.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-muted/60 border border-border",children:[a.jsx(o,{className:"w-3 h-3 text-primary"}),a.jsx("span",{className:"text-xs font-medium",children:l})]},l))}),a.jsxs("a",{href:uD,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 mb-3 p-3 rounded-xl bg-primary/5 border border-primary/30 hover:bg-primary/10 hover:border-primary/50 transition-colors text-left group",children:[a.jsx("div",{className:"shrink-0 w-9 h-9 rounded-lg bg-primary/10 border border-primary/20 flex items-center justify-center",children:a.jsx(LT,{className:"w-4 h-4 text-primary"})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"text-sm font-semibold",children:"Gavrun Cloud"}),a.jsx("p",{className:"text-xs text-muted-foreground leading-snug",children:"SaaS governance platform â sign up and start governing your agents in minutes."})]}),a.jsx(tt,{className:"w-4 h-4 shrink-0 text-primary transition-transform group-hover:translate-x-0.5"})]}),a.jsxs("a",{href:dD,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 mb-5 p-3 rounded-xl bg-primary/5 border border-primary/30 hover:bg-primary/10 hover:border-primary/50 transition-colors text-left group",children:[a.jsx("div",{className:"shrink-0 w-9 h-9 rounded-lg bg-primary/10 border border-primary/20 flex items-center justify-center",children:a.jsx(sp,{className:"w-4 h-4 text-primary"})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"text-sm font-semibold",children:"Zumie â Self-Hosted"}),a.jsx("p",{className:"text-xs text-muted-foreground leading-snug",children:"DIY via AWS Marketplace â build your agent gateway and deploy it on your own VPC."})]}),a.jsx(tt,{className:"w-4 h-4 shrink-0 text-primary transition-transform group-hover:translate-x-0.5"})]}),a.jsx("div",{className:"flex items-center justify-center",children:a.jsx(se,{variant:"outline",onClick:s,className:"min-w-[120px]",children:"Dismiss"})}),a.jsxs("div",{className:"mt-4 text-[10px] font-mono text-muted-foreground tabular-nums",children:["Auto-dismiss in ",r,"s"]})]})]})})},fD=()=>{const e=[{name:"Business Observability",description:"Real-time visibility into your business's internal state through signals, metrics, and traces"},{name:"AI Advisor",description:"On-call SRE for your business - CFO, COO, and Growth analyst in one intelligent system"},{name:"Predictive Alerts",description:"Anomaly detection and leading indicators that warn you before things break"},{name:"Root Cause Analysis",description:"AI-powered forensic analysis that explains why things happened in plain English"}],t=[Nx(),iD(),IS(e),{"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"What is Business Observability?",acceptedAnswer:{"@type":"Answer",text:"Business Observability is the ability to understand the internal state of a business by analyzing its external signals in real time. Just like software systems use metrics, logs, and traces, businesses have cash flows, customers, staff, and vendors that need monitoring."}},{"@type":"Question",name:"Why do SMBs need observability?",acceptedAnswer:{"@type":"Answer",text:"SMBs are complex systems that currently operate in black-box mode with zero observability, lagging reports, no alerts, no root cause analysis, and no incident response. They don't fail suddenlyâthey fail silently. Observability fixes silent failure."}}]}];return a.jsxs("main",{className:"min-h-screen pt-16",children:[a.jsx(hD,{}),a.jsx(vr,{title:"AI-Powered Observability & Advisor Stack for SMBs | Aristle AI",description:"Transform your business with AI-powered observability. Aristle AI brings SRE-grade insights to small and medium businesses: real-time metrics, predictive alerts, and AI-powered recommendations.",keywords:"business observability, AI advisor, SMB intelligence, business metrics, predictive alerts, root cause analysis, SRE for SMB",canonicalUrl:"/",structuredData:t}),a.jsx(ua,{}),a.jsxs("div",{className:"relative overflow-hidden bg-gradient-to-r from-primary/10 via-accent/10 to-secondary/10 border-b border-accent/20",children:[a.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(90deg,transparent_0%,hsl(var(--primary)/0.05)_50%,transparent_100%)] animate-pulse"}),a.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-3 flex items-center justify-center gap-3 relative z-10",children:[a.jsx(ls,{className:"h-4 w-4 text-primary shrink-0"}),a.jsxs("p",{className:"text-sm md:text-base font-medium text-foreground
578/90",children:[a.jsx("span",{className:"font-bold text-primary",children:"Coming Soon:"})," ","We're building something new â AI Workforce Management and Governance for the agentic era."]}),a.jsxs(xe,{to:"/zumie",className:"inline-flex items-center gap-1 text-sm font-semibold text-primary hover:text-primary/80 transition-colors whitespace-nowrap underline underline-offset-4",children:["Sneak peek ",a.jsx(tt,{className:"h-3.5 w-3.5"})]})]})]}),a.jsx(nS,{title:"Business Operations with Observability and Service Reliability Engineering",subtitle:{regular:"Transform Your Business with ",gradient:"AI-Powered Intelligent Observability & Advisor Platform"},description:"Turn your business from a black box into a transparent, measurable system with real-time visibility and recommendations using intelligent AI Agents that monitors and connects fragmented operational data to drive proactive decisions.",ctaText:"Explore the Platform",ctaHref:"/platform",bottomImage:{light:nD,dark:sD},gridOptions:{angle:65,opacity:.4,cellSize:50,lightLineColor:"#0ea5e9",darkLineColor:"#06b6d4"}}),a.jsx("div",{id:"services",children:a.jsx(e5,{})}),a.jsx(eD,{}),a.jsx(rD,{}),a.jsx("div",{id:"testimonials",children:a.jsx(v5,{})}),a.jsx(b5,{}),a.jsx("footer",{className:"bg-card border-t border-border py-12 px-4 md:px-8",children:a.jsxs("div",{className:"max-w-7xl mx-auto text-center text-muted-foreground",children:[a.jsx("p",{className:"mb-2",children:"© 2025 Aristle AI. All rights reserved."}),a.jsx("p",{className:"text-sm",children:"Business Observability for Small & Medium Businesses"})]})})]})};var Mc=e=>e.type==="checkbox",Aa=e=>e instanceof Date,nr=e=>e==null;const OS=e=>typeof e=="object";var vt=e=>!nr(e)&&!Array.isArray(e)&&OS(e)&&!Aa(e),MS=e=>vt(e)&&e.target?Mc(e.target)?e.target.checked:e.target.value:e,mD=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,DS=(e,t)=>e.has(mD(t)),pD=e=>{const t=e.constructor&&e.constructor.prototype;return vt(t)&&t.hasOwnProperty("isPrototypeOf")},Sx=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ct(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Sx&&(e instanceof Blob||n))&&(r||vt(e)))if(t=r?[]:{},!r&&!pD(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=Ct(e[s]));else return e;return t}var Ph=e=>/^\w*$/.test(e),gt=e=>e===void 0,kx=e=>Array.isArray(e)?e.filter(Boolean):[],_x=e=>kx(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Q=(e,t,r)=>{if(!t||!vt(e))return r;const n=(Ph(t)?[t]:_x(t)).reduce((s,i)=>nr(s)?s:s[i],e);return gt(n)||n===e?gt(e[t])?r:e[t]:n},jr=e=>typeof e=="boolean",Ge=(e,t,r)=>{let n=-1;const s=Ph(t)?[t]:_x(t),i=s.length,o=i-1;for(;++n<i;){const l=s[n];let c=r;if(n!==o){const d=e[l];c=vt(d)||Array.isArray(d)?d:isNaN(+s[n+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const Ru={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},fn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},qn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Cx=M.createContext(null);Cx.displayName="HookFormContext";const Rh=()=>M.useContext(Cx),gD=e=>{const{children:t,...r}=e;return M.createElement(Cx.Provider,{value:r},t)};var LS=(e,t,r,n=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==fn.all&&(t._proxyFormState[o]=!n||fn.all),r&&(r[o]=!0),e[o]}});return s};const Ax=typeof window<"u"?M.useLayoutEffect:M.useEffect;function xD(e){const t=Rh(),{control:r=t.control,disabled:n,name:s,exact:i}=e||{},[o,l]=M.useState(r._formState),c=M.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ax(()=>r._subscribe({name:s,formState:c.current,exact:i,callback:d=>{!n&&l({...r._formState,...d})}}),[s,n,i]),M.useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),M.useMemo(()=>LS(o,r,c.current,!1),[o,r])}var On=e=>typeof e=="string",$S=(e,t,r,n,s)=>On(e)?(n&&t.watch.add(e),Q(r,e,s)):Array.isArray(e)?e.map(i=>(n&&t.watch.add(i),Q(r,i))):(n&&(t.watchAll=!0),r),Ip=e=>nr(e)||!OS(e);function es(e,t,r=new WeakSet){if(Ip(e)||Ip(t))return e===t;if(Aa(e)&&Aa(t))return e.getTime()===t.getTime();const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const i of n){const o=e[i];if(!s.includes(i))return!1;if(i!=="ref"){const l=t[i];if(Aa(o)&&Aa(l)||vt(o)&&vt(l)||Array.isArray(o)&&Array.isArray(l)?!es(o,l,r):o!==l)return!1}}return!0}function vD(e){const t=Rh(),{control:r=t.control,name:n,defaultValue:s,disabled:i,exact:o,c
578ompute:l}=e||{},c=M.useRef(s),d=M.useRef(l),u=M.useRef(void 0);d.current=l;const h=M.useMemo(()=>r._getWatch(n,c.current),[r,n]),[f,m]=M.useState(d.current?d.current(h):h);return Ax(()=>r._subscribe({name:n,formState:{values:!0},exact:o,callback:b=>{if(!i){const x=$S(n,r._names,b.values||r._formValues,!1,c.current);if(d.current){const w=d.current(x);es(w,u.current)||(m(w),u.current=w)}else m(x)}}}),[r,i,n,o]),M.useEffect(()=>r._removeUnmounted()),f}function yD(e){const t=Rh(),{name:r,disabled:n,control:s=t.control,shouldUnregister:i,defaultValue:o}=e,l=DS(s._names.array,r),c=M.useMemo(()=>Q(s._formValues,r,Q(s._defaultValues,r,o)),[s,r,o]),d=vD({control:s,name:r,defaultValue:c,exact:!0}),u=xD({control:s,name:r,exact:!0}),h=M.useRef(e),f=M.useRef(s.register(r,{...e.rules,value:d,...jr(e.disabled)?{disabled:e.disabled}:{}}));h.current=e;const m=M.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Q(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!Q(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Q(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Q(u.validatingFields,r)},error:{enumerable:!0,get:()=>Q(u.errors,r)}}),[u,r]),b=M.useCallback(p=>f.current.onChange({target:{value:MS(p),name:r},type:Ru.CHANGE}),[r]),x=M.useCallback(()=>f.current.onBlur({target:{value:Q(s._formValues,r),name:r},type:Ru.BLUR}),[r,s._formValues]),w=M.useCallback(p=>{const y=Q(s._fields,r);y&&p&&(y._f.ref={focus:()=>p.focus&&p.focus(),select:()=>p.select&&p.select(),setCustomValidity:j=>p.setCustomValidity(j),reportValidity:()=>p.reportValidity()})},[s._fields,r]),v=M.useMemo(()=>({name:r,value:d,...jr(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:b,onBlur:x,ref:w}),[r,n,u.disabled,b,x,w,d]);return M.useEffect(()=>{const p=s._options.shouldUnregister||i;s.register(r,{...h.current.rules,...jr(h.current.disabled)?{disabled:h.current.disabled}:{}});const y=(j,N)=>{const S=Q(s._fields,j);S&&S._f&&(S._f.mount=N)};if(y(r,!0),p){const j=Ct(Q(s._options.defaultValues,r));Ge(s._defaultValues,r,j),gt(Q(s._formValues,r))&&Ge(s._formValues,r,j)}return!l&&s.register(r),()=>{(l?p&&!s._state.action:p)?s.unregister(r):y(r,!1)}},[r,s,l,i]),M.useEffect(()=>{s._setDisabledField({disabled:n,name:r})},[n,r,s]),M.useMemo(()=>({field:v,formState:u,fieldState:m}),[v,u,m])}const bD=e=>e.render(yD(e));var FS=(e,t,r,n,s)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:s||!0}}:{},El=e=>Array.isArray(e)?e:[e],I0=()=>{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},ur=e=>vt(e)&&!Object.keys(e).length,Ex=e=>e.type==="file",mn=e=>typeof e=="function",Iu=e=>{if(!Sx)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},US=e=>e.type==="select-multiple",Tx=e=>e.type==="radio",wD=e=>Tx(e)||Mc(e),Kf=e=>Iu(e)&&e.isConnected;function jD(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=gt(e)?n++:e[t[n++]];return e}function ND(e){for(const t in e)if(e.hasOwnProperty(t)&&!gt(e[t]))return!1;return!0}function bt(e,t){const r=Array.isArray(t)?t:Ph(t)?[t]:_x(t),n=r.length===1?e:jD(e,r),s=r.length-1,i=r[s];return n&&delete n[i],s!==0&&(vt(n)&&ur(n)||Array.isArray(n)&&ND(n))&&bt(e,r.slice(0,-1)),e}var zS=e=>{for(const t in e)if(mn(e[t]))return!0;return!1};function Ou(e,t={}){const r=Array.isArray(e);if(vt(e)||r)for(const n in e)Array.isArray(e[n])||vt(e[n])&&!zS(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Ou(e[n],t[n])):nr(e[n])||(t[n]=!0);return t}function BS(e,t,r){const n=Array.isArray(e);if(vt(e)||n)for(const s in e)Array.isArray(e[s])||vt(e[s])&&!zS(e[s])?gt(t)||Ip(r[s])?r[s]=Array.isArray(e[s])?Ou(e[s],[]):{...Ou(e[s])}:BS(e[s],nr(t)?{}:t[s],r[s]):r[s]=!es(e[s],t[s]);return r}var tl=(e,t)=>BS(e,t,Ou(t));const O0={value:!1,isValid:!1},M0={value:!0,isValid:!0};var VS=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!gt(e[0].attributes.value)?gt(e[0].value)||e[0].value===""?M0:{value:e[0].value,isValid:!0}:M0:O0}return O0},HS=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>gt(e)?e:t?e===""?NaN:e&&+e:r&&On(e)?new Date(e):n?n(e):e;const D0={isValid:!1,value:null};var WS=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,D0):D0;function L0(e){const t=e.ref;return Ex(t)?t.files:Tx(t)?WS(e.refs).value:US(t)?[...t.selectedOptions].map(({value:r})=>r):Mc(t)?VS(e.refs).value:HS(gt(t.value)?e.ref.value:t.value,e)}var SD=(e,t,r,n)=>{const s={};for(const i of e){const o=Q(t,i);o&&Ge(s,i,o._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:n}},Mu=e=>e instanceof RegExp,rl=e=>gt(e)?e:Mu(e)?e.source:vt(e)?Mu(e.value)?e.value.source:e.value:e,$0=e=>({isOnSubmit:!e||e===fn.onSubmit,isOnBlur:e===fn.onBlur,isOnChange:e===fn.onChange,isOnAll:e===fn.all,isOnTouch:e===fn.onTouched});const F0="AsyncFunction";var kD=e=>!!e&&!!e.validate&&!!(mn(e.validate)&&e.validate.constructor.name===F0||vt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===F0)),_D=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),U0=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Tl=(e,t,r,n)=>
vendor: 4,229 bytes, line 578
578{for(const s of r||Object.keys(e)){const i=Q(e,s);if(i){const{_f:o,...l}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!n)return!0;if(o.ref&&t(o.ref,o.name)&&!n)return!0;if(Tl(l,t))break}else if(vt(l)&&Tl(l,t))break}}};function z0(e,t,r){const n=Q(e,r);if(n||Ph(r))return{error:n,name:r};const s=r.split(".");for(;s.length;){const i=s.join("."),o=Q(t,i),l=Q(e,i);if(o&&!Array.isArray(o)&&r!==i)return{name:r};if(l&&l.type)return{name:i,error:l};if(l&&l.root&&l.root.type)return{name:`${i}.root`,error:l.root};s.pop()}return{name:r}}var CD=(e,t,r,n)=>{r(e);const{name:s,...i}=e;return ur(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!n||fn.all))},AD=(e,t,r)=>!e||!t||e===t||El(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),ED=(e,t,r,n,s)=>s.isOnAll?!1:!r&&s.isOnTouch?!(t||e):(r?n.isOnBlur:s.isOnBlur)?!e:(r?n.isOnChange:s.isOnChange)?e:!0,TD=(e,t)=>!kx(Q(e,t)).length&&bt(e,t),PD=(e,t,r)=>{const n=El(Q(e,r));return Ge(n,"root",t[r]),Ge(e,r,n),e},Wd=e=>On(e);function B0(e,t,r="validate"){if(Wd(e)||Array.isArray(e)&&e.every(Wd)||jr(e)&&!e)return{type:r,message:Wd(e)?e:"",ref:t}}var xi=e=>vt(e)&&!Mu(e)?e:{value:e,message:""},V0=async(e,t,r,n,s,i)=>{const{ref:o,refs:l,required:c,maxLength:d,minLength:u,min:h,max:f,pattern:m,validate:b,name:x,valueAsNumber:w,mount:v}=e._f,p=Q(r,x);if(!v||t.has(x))return{};const y=l?l[0]:o,j=I=>{s&&y.reportValidity&&(y.setCustomValidity(jr(I)?"":I||""),y.reportValidity())},N={},S=Tx(o),k=Mc(o),A=S||k,E=(w||Ex(o))&>(o.value)&>(p)||Iu(o)&&o.value===""||p===""||Array.isArray(p)&&!p.length,O=FS.bind(null,x,n,N),R=(I,U,L,C=qn.maxLength,F=qn.minLength)=>{const B=I?U:L;N[x]={type:I?C:F,message:B,ref:o,...O(I?C:F,B)}};if(i?!Array.isArray(p)||!p.length:c&&(!A&&(E||nr(p))||jr(p)&&!p||k&&!VS(l).isValid||S&&!WS(l).isValid)){const{value:I,message:U}=Wd(c)?{value:!!c,message:c}:xi(c);if(I&&(N[x]={type:qn.required,message:U,ref:y,...O(qn.required,U)},!n))return j(U),N}if(!E&&(!nr(h)||!nr(f))){let I,U;const L=xi(f),C=xi(h);if(!nr(p)&&!isNaN(p)){const F=o.valueAsNumber||p&&+p;nr(L.value)||(I=F>L.value),nr(C.value)||(U=F<C.value)}else{const F=o.valueAsDate||new Date(p),B=V=>new Date(new Date().toDateString()+" "+V),P=o.type=="time",D=o.type=="week";On(L.value)&&p&&(I=P?B(p)>B(L.value):D?p>L.value:F>new Date(L.value)),On(C.value)&&p&&(U=P?B(p)<B(C.value):D?p<C.value:F<new Date(C.value))}if((I||U)&&(R(!!I,L.message,C.message,qn.max,qn.min),!n))return j(N[x].message),N}if((d||u)&&!E&&(On(p)||i&&Array.isArray(p))){const I=xi(d),U=xi(u),L=!nr(I.value)&&p.length>+I.value,C=!nr(U.value)&&p.length<+U.value;if((L||C)&&(R(L,I.message,U.message),!n))return j(N[x].message),N}if(m&&!E&&On(p)){const{value:I,message:U}=xi(m);if(Mu(I)&&!p.match(I)&&(N[x]={type:qn.pattern,message:U,ref:o,...O(qn.pattern,U)},!n))return j(U),N}if(b){if(mn(b)){const I=await b(p,r),U=B0(I,y);if(U&&(N[x]={...U,...O(qn.validate,U.message)},!n))return j(U.message),N}else if(vt(b)){let I={};for(const U in b){if(!ur(I)&&!n)break;const L=B0(await b[U](p,r),y,U);L&&(I={...L,...O(U,L.message)},j(L.message),n&&(N[x]=I))}if(!ur(I)&&(N[x]={ref:y,...I},!n))return N}}return j(!0),N};const RD={mode:fn.onSubmit,reValidateMode:fn.onChange,shouldFocusError:!0};function ID(e={}){let t={...RD,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:mn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},s=vt(t.defaultValues)||vt(t.values)?Ct(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Ct(s),o={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let h={...u};const f={array:I0(),state:I0()},m=t.criteriaMode===fn.all,b=_=>T=>{clearTimeout(d),d=setTimeout(_,T)},x=async _=>{if(!t.disabled&&(u.isValid||h.isValid||_)){const T=t.resolver?ur((await k()).errors):await E(n,!0);T!==r.isValid&&f.state.next({isValid:T})}},w=(_,T)=>{!t.disabled&&(u.isValidating||u.validatingFields||h.isValidating||h.validatingFields)&&((_||Array.from(l.mount)).forEac
vendor: 12,047 bytes, line 578
578h($=>{$&&(T?Ge(r.validatingFields,$,T):bt(r.validatingFields,$))}),f.state.next({validatingFields:r.validatingFields,isValidating:!ur(r.validatingFields)}))},v=(_,T=[],$,Y,J=!0,G=!0)=>{if(Y&&$&&!t.disabled){if(o.action=!0,G&&Array.isArray(Q(n,_))){const ne=$(Q(n,_),Y.argA,Y.argB);J&&Ge(n,_,ne)}if(G&&Array.isArray(Q(r.errors,_))){const ne=$(Q(r.errors,_),Y.argA,Y.argB);J&&Ge(r.errors,_,ne),TD(r.errors,_)}if((u.touchedFields||h.touchedFields)&&G&&Array.isArray(Q(r.touchedFields,_))){const ne=$(Q(r.touchedFields,_),Y.argA,Y.argB);J&&Ge(r.touchedFields,_,ne)}(u.dirtyFields||h.dirtyFields)&&(r.dirtyFields=tl(s,i)),f.state.next({name:_,isDirty:R(_,T),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ge(i,_,T)},p=(_,T)=>{Ge(r.errors,_,T),f.state.next({errors:r.errors})},y=_=>{r.errors=_,f.state.next({errors:r.errors,isValid:!1})},j=(_,T,$,Y)=>{const J=Q(n,_);if(J){const G=Q(i,_,gt($)?Q(s,_):$);gt(G)||Y&&Y.defaultChecked||T?Ge(i,_,T?G:L0(J._f)):L(_,G),o.mount&&x()}},N=(_,T,$,Y,J)=>{let G=!1,ne=!1;const Ee={name:_};if(!t.disabled){if(!$||Y){(u.isDirty||h.isDirty)&&(ne=r.isDirty,r.isDirty=Ee.isDirty=R(),G=ne!==Ee.isDirty);const qe=es(Q(s,_),T);ne=!!Q(r.dirtyFields,_),qe?bt(r.dirtyFields,_):Ge(r.dirtyFields,_,!0),Ee.dirtyFields=r.dirtyFields,G=G||(u.dirtyFields||h.dirtyFields)&&ne!==!qe}if($){const qe=Q(r.touchedFields,_);qe||(Ge(r.touchedFields,_,$),Ee.touchedFields=r.touchedFields,G=G||(u.touchedFields||h.touchedFields)&&qe!==$)}G&&J&&f.state.next(Ee)}return G?Ee:{}},S=(_,T,$,Y)=>{const J=Q(r.errors,_),G=(u.isValid||h.isValid)&&jr(T)&&r.isValid!==T;if(t.delayError&&$?(c=b(()=>p(_,$)),c(t.delayError)):(clearTimeout(d),c=null,$?Ge(r.errors,_,$):bt(r.errors,_)),($?!es(J,$):J)||!ur(Y)||G){const ne={...Y,...G&&jr(T)?{isValid:T}:{},errors:r.errors,name:_};r={...r,...ne},f.state.next(ne)}},k=async _=>{w(_,!0);const T=await t.resolver(i,t.context,SD(_||l.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return w(_),T},A=async _=>{const{errors:T}=await k(_);if(_)for(const $ of _){const Y=Q(T,$);Y?Ge(r.errors,$,Y):bt(r.errors,$)}else r.errors=T;return T},E=async(_,T,$={valid:!0})=>{for(const Y in _){const J=_[Y];if(J){const{_f:G,...ne}=J;if(G){const Ee=l.array.has(G.name),qe=J._f&&kD(J._f);qe&&u.validatingFields&&w([Y],!0);const Rt=await V0(J,l.disabled,i,m,t.shouldUseNativeValidation&&!T,Ee);if(qe&&u.validatingFields&&w([Y]),Rt[G.name]&&($.valid=!1,T))break;!T&&(Q(Rt,G.name)?Ee?PD(r.errors,Rt,G.name):Ge(r.errors,G.name,Rt[G.name]):bt(r.errors,G.name))}!ur(ne)&&await E(ne,T,$)}}return $.valid},O=()=>{for(const _ of l.unMount){const T=Q(n,_);T&&(T._f.refs?T._f.refs.every($=>!Kf($)):!Kf(T._f.ref))&&q(_)}l.unMount=new Set},R=(_,T)=>!t.disabled&&(_&&T&&Ge(i,_,T),!es(V(),s)),I=(_,T,$)=>$S(_,l,{...o.mount?i:gt(T)?s:On(_)?{[_]:T}:T},$,T),U=_=>kx(Q(o.mount?i:s,_,t.shouldUnregister?Q(s,_,[]):[])),L=(_,T,$={})=>{const Y=Q(n,_);let J=T;if(Y){const G=Y._f;G&&(!G.disabled&&Ge(i,_,HS(T,G)),J=Iu(G.ref)&&nr(T)?"":T,US(G.ref)?[...G.ref.options].forEach(ne=>ne.selected=J.includes(ne.value)):G.refs?Mc(G.ref)?G.refs.forEach(ne=>{(!ne.defaultChecked||!ne.disabled)&&(Array.isArray(J)?ne.checked=!!J.find(Ee=>Ee===ne.value):ne.checked=J===ne.value||!!J)}):G.refs.forEach(ne=>ne.checked=ne.value===J):Ex(G.ref)?G.ref.value="":(G.ref.value=J,G.ref.type||f.state.next({name:_,values:Ct(i)})))}($.shouldDirty||$.shouldTouch)&&N(_,J,$.shouldTouch,$.shouldDirty,!0),$.shouldValidate&&D(_)},C=(_,T,$)=>{for(const Y in T){if(!T.hasOwnProperty(Y))return;const J=T[Y],G=_+"."+Y,ne=Q(n,G);(l.array.has(_)||vt(J)||ne&&!ne._f)&&!Aa(J)?C(G,J,$):L(G,J,$)}},F=(_,T,$={})=>{const Y=Q(n,_),J=l.array.has(_),G=Ct(T);Ge(i,_,G),J?(f.array.next({name:_,values:Ct(i)}),(u.isDirty||u.dirtyFields||h.isDirty||h.dirtyFields)&&$.shouldDirty&&f.state.next({name:_,dirtyFields:tl(s,i),isDirty:R(_,G)})):Y&&!Y._f&&!nr(G)?C(_,G,$):L(_,G,$),U0(_,l)&&f.state.next({...r,name:_}),f.state.next({name:o.mount?_:void 0,values:Ct(i)})},B=async _=>{o.mount=!0;const T=_.target;let $=T.name,Y=!0;const J=Q(n,$),G=qe=>{Y=Number.isNaN(qe)||Aa(qe)&&isNaN(qe.getTime())||es(qe,Q(i,$,qe))},ne=$0(t.mode),Ee=$0(t.reValidateMode);if(J){let qe,Rt;const Ht=T.type?L0(J._f):MS(_),dr=_.type===Ru.BLUR||_.type===Ru.FOCUS_OUT,ms=!_D(J._f)&&!t.resolver&&!Q(r.errors,$)&&!J._f.deps||ED(dr,Q(r.touchedFields,$),r.isSubmitted,Ee,ne),Or=U0($,l,dr);Ge(i,$,Ht),dr?(J._f.onBlur&&J._f.onBlur(_),c&&c(0)):J._f.onChange&&J._f.onChange(_);const Mr=N($,Ht,dr),ii=!ur(Mr)||Or;if(!dr&&f.state.next({name:$,type:_.type,values:Ct(i)}),ms)return(u.isValid||h.isValid)&&(t.mode==="onBlur"?dr&&x():dr||x()),ii&&f.state.next({name:$,...Or?{}:Mr});if(!dr&&Or&&f.state.next({...r}),t.resolver){const{errors:Zr}=await k([$]);if(G(Ht),Y){const Uo=z0(r.errors,n,$),oi=z0(Zr,n,Uo.name||$);qe=oi.error,$=oi.name,Rt=ur(Zr)}}else w([$],!0),qe=(await V0(J,l.disabled,i,m,t.shouldUseNativeValidation))[$],w([$]),G(Ht),Y&&(qe?Rt=!1:(u.isValid||h.isValid)&&(Rt=await E(n,!0)));Y&&(J._f.deps&&D(J._f.deps),S($,Rt,qe,Mr))}},P=(_,T)=>{if(Q(r.errors,T)&&_.focus)return _.focus(),1},D=async(_,T={})=>{let $,Y;const J=El(_);if(t.resolver){const G=await A(gt(_)?_:J);$=ur(G),Y=_?!J.some(ne=>Q(G,ne)):$}else _?(Y=(await Promise.all(J.map(async G=>{const ne=Q(n,G);return await E(ne&&ne._f?{[G]:ne}:ne)}))).every(Boolean),!(!Y&&!r.isValid)&&x()):Y=$=await E(n);return f.state.next({...!On(_)||(u.isValid||h.isValid)&&$!==r.isValid?{}:{name:_},...t.resolver||!_?{isValid:$}:{},errors:r.errors}),T.shouldFocus&&!Y&&Tl(n,P,_?J:l.mount),Y},V=_=>{const T={...o.mount?i:s};return gt(_)?T:On(_)?Q(T,_):_.map($=>Q(T,$))},te=(_,T)=>({invalid:!!Q((T||r).errors,_),isDirty:!!Q((T||r).dirtyFields,_),error:Q((T||r).errors,_),isValidating:!!Q(r.validatingFields,_),isTouched:!!Q((T||r).touchedFields,_)}),re=_=>{_&&El(_).forEach(T=>bt(r.errors,T)),f.state.next({errors:_?r.errors:{}})},me=(_,T,$)=>{const Y=(Q(n,_,{_f:{}})._f||{}).ref,J=Q(r.errors,_)||{},{ref:G,message:ne,type:Ee,...qe}=J;Ge(r.errors,_,{...qe,...T,ref:Y}),f.state.next({name:_,errors:r.errors,isValid:!1}),$&&$.shouldFocus&&Y&&Y.focus&&Y.focus()},ce=(_,T)=>mn(_)?f.state.subscribe({next:$=>"values"in $&&_(I(void 0,T),$)}):I(_,T,!0),_e=_=>f.state.subscribe({next:T=>{AD(_.name,T.name,_.exact)&&CD(T,_.formState||u,kt,_.reRenderRoot)&&_.callback({values:{...i},...r,...T,defaultValues:s})}}).unsubscribe,We=_=>(o.mount=!0,h={...h,..._.formState},_e({..._,formState:h})),q=(_,T={})=>{for(const $ of _?El(_):l.mount)l.mount.delete($),l.array.delete($),T.keepValue||(bt(n,$),bt(i,$)),!T.keepError&&bt(r.errors,$),!T.keepDirty&&bt(r.dirtyFields,$),!T.keepTouched&&bt(r.touchedFields,$),!T.keepIsValidating&&bt(r.validatingFields,$),!t.shouldUnregister&&!T.keepDefaultValue&&bt(s,$);f.state.next({values:Ct(i)}),f.state.next({...r,...T.keepDirty?{isDirty:R()}:{}}),!T.keepIsValid&&x()},ye=({disabled:_,name:T})=>{(jr(_)&&o.mount||_||l.disabled.has(T))&&(_?l.disabled.add(T):l.disabled.delete(T))},Ie=(_,T={})=>{let $=Q(n,_);const Y=jr(T.disabled)||jr(t.disabled);return Ge(n,_,{...$||{},_f:{...$&&$._f?$._f:{ref:{name:_}},name:_,mount:!0,...T}}),l.mount.add(_),$?ye({disabled:jr(T.disabled)?T.disabled:t.disabled,name:_}):j(_,!0,T.value),{...Y?{disabled:T.disabled||t.disabled}:{},...t.progressive?{required:!!T.required,min:rl(T.min),max:rl(T.max),minLength:rl(T.minLength),maxLength:rl(T.maxLength),pattern:rl(T.pattern)}:{},name:_,onChange:B,onBlur:B,ref:J=>{if(J){Ie(_,T),$=Q(n,_);const G=gt(J.value)&&J.querySelectorAll&&J.querySelectorAll("input,select,textarea")[0]||J,ne=wD(G),Ee=$._f.refs||[];if(ne?Ee.find(qe=>qe===G):G===$._f.ref)return;Ge(n,_,{_f:{...$._f,...ne?{refs:[...Ee.filter(Kf),G,...Array.isArray(Q(s,_))?[{}]:[]],ref:{type:G.type,name:_}}:{ref:G}}}),j(_,!1,void 0,G)}else $=Q(n,_,{}),$._f&&($._f.mount=!1),(t.shouldUnregister||T.shouldUnregister)&&!(DS(l.array,_)&&o.action)&&l.unMount.add(_)}}},be=()=>t.shouldFocusError&&Tl(n,P,l.mount),ue=_=>{jr(_)&&(f.state.next({disabled:_}),Tl(n,(T,$)=>{const Y=Q(n,$);Y&&(T.disabled=Y._f.disabled||_,Array.isArray(Y._f.refs)&&Y._f.refs.forEach(J=>{J.disabled=Y._f.disabled||_}))},0,!1))},W=(_,T)=>async $=>{let Y;$&&($.preventDefault&&$.preventDefault(),$.persist&&$.persist());let J=Ct(i);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:G,values:ne}=await k();r.errors=G,J=Ct(ne)}else await E(n);if(l.disabled.size)for(const G of l.disabled)bt(J,G);if(bt(r.errors,"root"),ur(r.errors)){f.state.next({errors:{}});try{await _(J,$)}catch(G){Y=G}}else T&&await T({...r.errors},$),be(),setTimeout(be);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ur(r.errors)&&!Y,submitCount:r.submitCount+1,errors:r.errors}),Y)throw Y},je=(_,T={})=>{Q(n,_)&&(gt(T.defaultValue)?F(_,Ct(Q(s,_))):(F(_,T.defaultValue),Ge(s,_,Ct(T.defaultValue))),T.keepTouched||bt(r.touchedFields,_),T.keepDirty||(bt(r.dirtyFields,_),r.isDirty=T.defaultValue?R(_,Ct(Q(s,_))):R()),T.keepError||(bt(r.errors,_),u.isValid&&x()),f.state.next({...r}))},Oe=(_,T={})=>{const $=_?Ct(_):s,Y=Ct($),J=ur(_),G=J?s:Y;if(T.keepDefaultValues||(s=$),!T.keepValues){if(T.keepDirtyValues){const ne=new Set([...l.mount,...Object.keys(tl(s,i))]);for(const Ee of Array.from(ne))Q(r.dirtyFields,Ee)?Ge(G,Ee,Q(i,Ee)):F(Ee,Q(G,Ee))}else{if(Sx&>(_))for(const ne of l.mount){const Ee=Q(n,ne);if(Ee&&Ee._f){const qe=Array.isArray(Ee._f.refs)?Ee._f.refs[0]:Ee._f.ref;if(Iu(qe)){const Rt=qe.closest("form");if(Rt){Rt.reset();break}}}}if(T.keepFieldsRef)for(const ne of l.mount)F(ne,Q(G,ne));else n={}}i=t.shouldUnregister?T.keepDefaultValues?Ct(s):{}:Ct(G),f.array.next({values:{...G}}),f.state.next({values:{...G}})}l={mount:T.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!T.keepIsValid||!!T.keepDirtyValues,o.watch=!!t.shouldUnregister,f.state.next({submitCount:T.keepSubmitCount?r.submitCount:0,isDirty:J?!1:T.keepDirty?r.isDirty:!!(T.keepDefaultValues&&!es(_,s)),isSubmitted:T.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:J?{}:T.keepDirtyValues?T.keepDefaultValues&&i?tl(s,i):r.dirtyFields:T.keepDefaultValues&&_?tl(s,_):T.keepDirty?r.dirtyFields:{},touchedFields:T.keepTouched?r.touchedFields:{},errors:T.keepErrors?r.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Ze=(_,T)=>Oe(mn(_)?_(i):_,T),pt=(_,T={})=>{const $=Q(n,_),Y=$&&$._f;if(Y){const J=Y.refs?Y.refs[0]:Y.ref;J.focus&&(J.focus(),T.shouldSelect&&mn(J.select)&&J.select())}},kt=_=>{r={...r,..._}},Pt={control:{register:Ie,unregister:q,getFieldState:te,handleSubmit:W,setError:me,_subscribe:_e,_runSchema:k,_focusError:be,_getWatch:I,_getDirty:R,_setValid:x,_setFieldArray:v,_setDisabledField:ye,_setErrors:y,_getFieldArray:U,_reset:Oe,_resetDefaultValues:()=>mn(t.defaultValues)&&t.defaultValues().then(_=>{Ze(_,t.resetOptions),f.state.next({isLoading:!1})}),_removeUnmounted:O,_disableForm:ue,_subjects:f,_proxyFormState:u,get _fields(){return n},get _formValues(){return i},get _state(){return o},set _state(_){o=_},get _defaultValues(){return s},get _names(){return l},set _names(_){l=_},get _formState(){return r},get _options(){return t},set _options(_){t={...t,..._}}},subscribe:We,trigger:D,register:Ie,handleSubmit:W,watch:ce,setValue:F,getValues:V,reset:Ze,resetField:je,clearErrors:re,unregister:q,setError:me,setFocus:pt,getFieldState:te};return{...Pt,formControl:Pt}}function OD(e={}){const t=M.useRef(void 0),r=M.useRef(void 0),[n,s]=M.useState({isDirty:!1,isValidating:!1,isLoading:mn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:mn(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!mn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:o,...l}=ID(e);t.current={...l,formState:n}}const i=t.current.control;return i._options=e,Ax(()=>{const o=i._subscribe({formState:i._proxyFormState,callback:()=>s({...i._formState}
vendor: 4,304 bytes, line 578
578),reRenderRoot:!0});return s(l=>({...l,isReady:!0})),i._formState.isReady=!0,o},[i]),M.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),M.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),M.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),M.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),M.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==n.isDirty&&i._subjects.state.next({isDirty:o})}},[i,n.isDirty]),M.useEffect(()=>{e.values&&!es(e.values,r.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),r.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[i,e.values]),M.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=LS(n,i),t.current}const H0=(e,t,r)=>{if(e&&"reportValidity"in e){const n=Q(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},qS=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?H0(n.ref,r,e):n.refs&&n.refs.forEach(s=>H0(s,r,e))}},MD=(e,t)=>{t.shouldUseNativeValidation&&qS(e,t);const r={};for(const n in e){const s=Q(t.fields,n),i=Object.assign(e[n]||{},{ref:s&&s.ref});if(DD(t.names||Object.keys(e),n)){const o=Object.assign({},Q(r,n));Ge(o,"root",i),Ge(r,n,o)}else Ge(r,n,i)}return r},DD=(e,t)=>e.some(r=>r.startsWith(t+"."));var LD=function(e,t){for(var r={};e.length;){var n=e[0],s=n.code,i=n.message,o=n.path.join(".");if(!r[o])if("unionErrors"in n){var l=n.unionErrors[0].errors[0];r[o]={message:l.message,type:l.code}}else r[o]={message:i,type:s};if("unionErrors"in n&&n.unionErrors.forEach(function(u){return u.errors.forEach(function(h){return e.push(h)})}),t){var c=r[o].types,d=c&&c[n.code];r[o]=FS(o,t,r,s,d?[].concat(d,n.message):n.message)}e.shift()}return r},$D=function(e,t,r){return r===void 0&&(r={}),function(n,s,i){try{return Promise.resolve(function(o,l){try{var c=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(d){return i.shouldUseNativeValidation&&qS({},i),{errors:{},values:r.raw?n:d}})}catch(d){return l(d)}return c&&c.then?c.then(void 0,l):c}(0,function(o){if(function(l){return Array.isArray(l==null?void 0:l.errors)}(o))return{values:{},errors:MD(LD(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},Fe;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function r(s){throw new Error}e.assertNever=r,e.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},e.getValidEnumValues=s=>{const i=e.objectKeys(s).filter(l=>typeof s[s[l]]!="number"),o={};for(const l of i)o[l]=s[l];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(const o of s)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function n(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=n,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(Fe||(Fe={}));var W0;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(W0||(W0={}));const oe=Fe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),As=e=>{switch(typeof e){case"undefined":return oe.undefined;case"string":return oe.string;case"number":return Number.isNaN(e)?oe.nan:oe.number;case"boolean":return oe.boolean;case"function":return oe.function;case"bigint":return oe.bigint;case"symbol":return oe.symbol;case"object":return Array.isArray(e)?oe.array:e===null?oe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?oe.promise:typeof Map<"u"&&e instanceof Map?oe.map:typeof Set<"u"&&e instanceof Set?oe.set:typeof Date<"u"&&e instanceof Date?oe.date:oe.object;default:return oe.unknown}}
vendor: 5,707 bytes, line 578
578,K=Fe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class us extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(i){return i.message},n={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let l=n,c=0;for(;c<o.path.length;){const d=o.path[c];c===o.path.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(r(o))):l[d]=l[d]||{_errors:[]},l=l[d],c++}}};return s(this),n}static assert(t){if(!(t instanceof us))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Fe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},n=[];for(const s of this.issues)if(s.path.length>0){const i=s.path[0];r[i]=r[i]||[],r[i].push(t(s))}else n.push(t(s));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}us.create=e=>new us(e);const Op=(e,t)=>{let r;switch(e.code){case K.invalid_type:e.received===oe.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case K.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Fe.jsonStringifyReplacer)}`;break;case K.unrecognized_keys:r=`Unrecognized key(s) in object: ${Fe.joinValues(e.keys,", ")}`;break;case K.invalid_union:r="Invalid input";break;case K.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Fe.joinValues(e.options)}`;break;case K.invalid_enum_value:r=`Invalid enum value. Expected ${Fe.joinValues(e.options)}, received '${e.received}'`;break;case K.invalid_arguments:r="Invalid function arguments";break;case K.invalid_return_type:r="Invalid function return type";break;case K.invalid_date:r="Invalid date";break;case K.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Fe.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case K.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case K.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case K.custom:r="Invalid input";break;case K.invalid_intersection_types:r="Intersection results could not be merged";break;case K.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case K.not_finite:r="Number must be finite";break;default:r=t.defaultError,Fe.assertNever(e)}return{message:r}};let FD=Op;function UD(){return FD}const zD=e=>{const{data:t,path:r,errorMaps:n,issueData:s}=e,i=[...r,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let l="";const c=n.filter(d=>!!d).slice().reverse();for(const d of c)l=d(o,{data:t,defaultError:l}).message;return{...s,path:i,message:l}};function ee(e,t){const r=UD(),n=zD({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Op?void 0:Op].filter(s=>!!s)});e.common.issues.push(n)}class Tr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const s of r){if(s.status==="aborted")return Ne;s.status==="dirty"&&t.dirty(),n.push(s.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const s of r){const i=await s.key,o=await s.value;n.push({key:i,value:o})}return Tr.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const s of r){const{key:i,value:o}=s;
vendor: 16,807 bytes, line 578
578if(i.status==="aborted"||o.status==="aborted")return Ne;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(n[i.value]=o.value)}return{status:t.value,value:n}}}const Ne=Object.freeze({status:"aborted"}),hl=e=>({status:"dirty",value:e}),Gr=e=>({status:"valid",value:e}),q0=e=>e.status==="aborted",G0=e=>e.status==="dirty",No=e=>e.status==="valid",Du=e=>typeof Promise<"u"&&e instanceof Promise;var he;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(he||(he={}));class aa{constructor(t,r,n,s){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const K0=(e,t)=>{if(No(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new us(e.common.issues);return this._error=r,this._error}}};function Te(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:s}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(o,l)=>{const{message:c}=e;return o.code==="invalid_enum_value"?{message:c??l.defaultError}:typeof l.data>"u"?{message:c??n??l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:c??r??l.defaultError}},description:s}}class Le{get description(){return this._def.description}_getType(t){return As(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:As(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Tr,ctx:{common:t.parent.common,data:t.data,parsedType:As(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(Du(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){const n={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:As(t)},s=this._parseSync({data:t,path:n.path,parent:n});return K0(n,s)}"~validate"(t){var n,s;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:As(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:r});return No(i)?{value:i.value}:{issues:r.common.issues}}catch(i){(s=(n=i==null?void 0:i.message)==null?void 0:n.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(i=>No(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:As(t)},s=this._parse({data:t,path:n.path,parent:n}),i=await(Du(s)?s:Promise.resolve(s));return K0(n,i)}refine(t,r){const n=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,i)=>{const o=t(s),l=()=>i.addIssue({code:K.custom,...n(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(l(),!1)):o?!0:(l(),!1)})}refinement(t,r){return this._refinement((n,s)=>t(n)?!0:(s.addIssue(typeof r=="function"?r(n,s):r),!1))}_refinement(t){return new ko({schema:this,typeName:Se.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Xs.create(this,this._def)}nullable(){return _o.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Un.create(this)}promise(){return Uu.create(this,this._def)}or(t){return $u.create([this,t],this._def)}and(t){return Fu.create(this,t,this._def)}transform(t){return new ko({...Te(this._def),schema:this,typeName:Se.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new Lp({...Te(this._def),innerType:this,defaultValue:r,typeName:Se.ZodDefault})}brand(){return new dL({typeName:Se.ZodBranded,type:this,...Te(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new $p({...Te(this._def),innerType:this,catchValue:r,typeName:Se.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Px.create(this,t)}readonly(){return Fp.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const BD=/^c[^\s-]{8,}$/i,VD=/^[0-9a-z]+$/,HD=/^[0-9A-HJKMNP-TV-Z]{26}$/i,WD=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,qD=/^[a-z0-9_-]{21}$/i,GD=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,KD=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ZD=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,YD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Zf;const JD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,QD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,XD=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,eL=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tL=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,rL=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,GS="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",nL=new RegExp(`^${GS}$`);function KS(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function sL(e){return new RegExp(`^${KS(e)}$`)}function aL(e){let t=`${GS}T${KS(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function iL(e,t){return!!((t==="v4"||!t)&&JD.test(e)||(t==="v6"||!t)&&XD.test(e))}function oL(e,t){if(!GD.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),s=JSON.parse(atob(n));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function lL(e,t){return!!((t==="v4"||!t)&&QD.test(e)||(t==="v6"||!t)&&eL.test(e))}class Us extends Le{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==oe.string){const i=this._getOrReturnCtx(t);return ee(i,{code:K.invalid_type,expected:oe.string,received:i.parsedType}),Ne}const n=new Tr;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(s=this._getOrReturnCtx(t,s),ee(s,{code:K.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")t.data.length>i.value&&(s=this._getOrReturnCtx(t,s),ee(s,{code:K.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,l=t.data.length<i.value;(o||l)&&(s=this._getOrReturnCtx(t,s),o?ee(s,{code:K.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):l&&ee(s,{code:K.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")ZD.test(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{validation:"email",code:K.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")Zf||(Zf=new RegExp(YD,"u")),Zf.test(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{validation:"emoji",code:K.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")WD.test(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{validation:"uuid",code:K.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")qD.test(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{validation:"nanoid",code:K.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")BD.test(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{validation:"cuid",code:K.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")VD.test(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{validation:"cuid2",code:K.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")HD.test(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{validation:"ulid",code:K.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),ee(s,{validation:"url",code:K.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{validation:"regex",code:K.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(t,s),ee(s,{code:K.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(s=this._getOrReturnCtx(t,s),ee(s,{code:K.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(s=this._getOrReturnCtx(t,s),ee(s,{code:K.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?aL(i).test(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{code:K.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?nL.test(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{code:K.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?sL(i).test(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{code:K.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?KD.test(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{validation:"duration",code:K.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?iL(t.data,i.version)||(s=this._getOrReturnCtx(t,s),ee(s,{validation:"ip",code:K.invalid_string,message:i.message}),n.dirty()):i.kind==="jwt"?oL(t.data,i.alg)||(s=this._getOrReturnCtx(t,s),ee(s,{validation:"jwt",code:K.invalid_string,message:i.message}),n.dirty()):i.kind==="cidr"?lL(t.data,i.version)||(s=this._getOrReturnCtx(t,s),ee(s,{validation:"cidr",code:K.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?tL.test(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{validation:"base64",code:K.invalid_string,message:i.message}),n.dirty()):i.kind==="base64url"?rL.test(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{validation:"base64url",code:K.invalid_string,message:i.message}),n.dirty()):Fe.assertNever(i);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(s=>t.test(s),{validation:r,code:K.invalid_string,...he.errToObj(n)})}_addCheck(t){return new Us({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...he.errToObj(t)})}url(t){return this._addCheck({kind:"url",...he.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...he.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...he.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...he.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...he.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...he.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...he.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...he.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...he.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...he.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...he.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...he.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...he.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...he.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...he.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...he.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...he.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...he.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...he.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...he.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...he.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...he.errToObj(r)})}nonempty(t){return this.min(1,he.errToObj(t))}trim(){return new Us({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Us({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Us({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}
vendor: 4,664 bytes, line 578
578get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Us.create=e=>new Us({checks:[],typeName:Se.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Te(e)});function cL(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,s=r>n?r:n,i=Number.parseInt(e.toFixed(s).replace(".","")),o=Number.parseInt(t.toFixed(s).replace(".",""));return i%o/10**s}class lc extends Le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==oe.number){const i=this._getOrReturnCtx(t);return ee(i,{code:K.invalid_type,expected:oe.number,received:i.parsedType}),Ne}let n;const s=new Tr;for(const i of this._def.checks)i.kind==="int"?Fe.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),ee(n,{code:K.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),ee(n,{code:K.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),ee(n,{code:K.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?cL(t.data,i.value)!==0&&(n=this._getOrReturnCtx(t,n),ee(n,{code:K.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),ee(n,{code:K.not_finite,message:i.message}),s.dirty()):Fe.assertNever(i);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,he.toString(r))}gt(t,r){return this.setLimit("min",t,!1,he.toString(r))}lte(t,r){return this.setLimit("max",t,!0,he.toString(r))}lt(t,r){return this.setLimit("max",t,!1,he.toString(r))}setLimit(t,r,n,s){return new lc({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:he.toString(s)}]})}_addCheck(t){return new lc({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:he.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:he.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:he.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:he.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:he.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:he.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:he.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:he.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:he.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Fe.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}
vendor: 4,125 bytes, line 578
578}lc.create=e=>new lc({checks:[],typeName:Se.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Te(e)});class cc extends Le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==oe.bigint)return this._getInvalidInput(t);let n;const s=new Tr;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),ee(n,{code:K.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),ee(n,{code:K.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),ee(n,{code:K.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):Fe.assertNever(i);return{status:s.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return ee(r,{code:K.invalid_type,expected:oe.bigint,received:r.parsedType}),Ne}gte(t,r){return this.setLimit("min",t,!0,he.toString(r))}gt(t,r){return this.setLimit("min",t,!1,he.toString(r))}lte(t,r){return this.setLimit("max",t,!0,he.toString(r))}lt(t,r){return this.setLimit("max",t,!1,he.toString(r))}setLimit(t,r,n,s){return new cc({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:he.toString(s)}]})}_addCheck(t){return new cc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:he.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:he.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:he.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:he.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:he.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}cc.create=e=>new cc({checks:[],typeName:Se.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Te(e)});class Mp extends Le{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==oe.boolean){const n=this._getOrReturnCtx(t);return ee(n,{code:K.invalid_type,expected:oe.boolean,received:n.parsedType}),Ne}return Gr(t.data)}}Mp.create=e=>new Mp({typeName:Se.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Te(e)});class Lu extends Le{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==oe.date){const i=this._getOrReturnCtx(t);return ee(i,{code:K.invalid_type,expected:oe.date,received:i.parsedType}),Ne}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ee(i,{code:K.invalid_date}),Ne}const n=new Tr;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(s=this._getOrReturnCtx(t,s),ee(s,{code:K.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(s=this._getOrReturnCtx(t,s),ee(s,{code:K.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):Fe.assertNever(i);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Lu({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:he.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:he.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}Lu.create=e=>new Lu({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Se.ZodD
vendor: 8,529 bytes, line 578
578ate,...Te(e)});class Z0 extends Le{_parse(t){if(this._getType(t)!==oe.symbol){const n=this._getOrReturnCtx(t);return ee(n,{code:K.invalid_type,expected:oe.symbol,received:n.parsedType}),Ne}return Gr(t.data)}}Z0.create=e=>new Z0({typeName:Se.ZodSymbol,...Te(e)});class Y0 extends Le{_parse(t){if(this._getType(t)!==oe.undefined){const n=this._getOrReturnCtx(t);return ee(n,{code:K.invalid_type,expected:oe.undefined,received:n.parsedType}),Ne}return Gr(t.data)}}Y0.create=e=>new Y0({typeName:Se.ZodUndefined,...Te(e)});class J0 extends Le{_parse(t){if(this._getType(t)!==oe.null){const n=this._getOrReturnCtx(t);return ee(n,{code:K.invalid_type,expected:oe.null,received:n.parsedType}),Ne}return Gr(t.data)}}J0.create=e=>new J0({typeName:Se.ZodNull,...Te(e)});class Q0 extends Le{constructor(){super(...arguments),this._any=!0}_parse(t){return Gr(t.data)}}Q0.create=e=>new Q0({typeName:Se.ZodAny,...Te(e)});class X0 extends Le{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Gr(t.data)}}X0.create=e=>new X0({typeName:Se.ZodUnknown,...Te(e)});class ia extends Le{_parse(t){const r=this._getOrReturnCtx(t);return ee(r,{code:K.invalid_type,expected:oe.never,received:r.parsedType}),Ne}}ia.create=e=>new ia({typeName:Se.ZodNever,...Te(e)});class eb extends Le{_parse(t){if(this._getType(t)!==oe.undefined){const n=this._getOrReturnCtx(t);return ee(n,{code:K.invalid_type,expected:oe.void,received:n.parsedType}),Ne}return Gr(t.data)}}eb.create=e=>new eb({typeName:Se.ZodVoid,...Te(e)});class Un extends Le{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),s=this._def;if(r.parsedType!==oe.array)return ee(r,{code:K.invalid_type,expected:oe.array,received:r.parsedType}),Ne;if(s.exactLength!==null){const o=r.data.length>s.exactLength.value,l=r.data.length<s.exactLength.value;(o||l)&&(ee(r,{code:o?K.too_big:K.too_small,minimum:l?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),n.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(ee(r,{code:K.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),n.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(ee(r,{code:K.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,l)=>s.type._parseAsync(new aa(r,o,r.path,l)))).then(o=>Tr.mergeArray(n,o));const i=[...r.data].map((o,l)=>s.type._parseSync(new aa(r,o,r.path,l)));return Tr.mergeArray(n,i)}get element(){return this._def.type}min(t,r){return new Un({...this._def,minLength:{value:t,message:he.toString(r)}})}max(t,r){return new Un({...this._def,maxLength:{value:t,message:he.toString(r)}})}length(t,r){return new Un({...this._def,exactLength:{value:t,message:he.toString(r)}})}nonempty(t){return this.min(1,t)}}Un.create=(e,t)=>new Un({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Se.ZodArray,...Te(t)});function ki(e){if(e instanceof dt){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=Xs.create(ki(n))}return new dt({...e._def,shape:()=>t})}else return e instanceof Un?new Un({...e._def,type:ki(e.element)}):e instanceof Xs?Xs.create(ki(e.unwrap())):e instanceof _o?_o.create(ki(e.unwrap())):e instanceof Za?Za.create(e.items.map(t=>ki(t))):e}class dt extends Le{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=Fe.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==oe.object){const d=this._getOrReturnCtx(t);return ee(d,{code:K.invalid_type,expected:oe.object,received:d.parsedType}),Ne}const{status:n,ctx:s}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof ia&&this._def.unknownKeys==="strip"))for(const d in s.data)o.includes(d)||l.push(d);const c=[];for(const d of o){const u=i[d],h=s.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new aa(s,h,s.path,d)),alwaysSet:d in s.data})}if(this._def.catchall instanceof ia){const d=this._def.unknownKeys;if(d==="passthrough")for(const u of l)c.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(d==="strict")l.length>0&&(ee(s,{code:K.unrecognized_keys,keys:l}),n.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const u of l){const h=s.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new aa(s,h,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const d=[];for(const u of c){const h=await u.key,f=await u.value;d.push({key:h,value:f,alwaysSet:u.alwaysSet})}return d}).then(d=>Tr.mergeObjectSync(n,d)):Tr.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(t){return he.errToObj,new dt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var i,o;const s=((o=(i=this._def).errorMap)==null?void 0:o.call(i,r,n).message)??n.defaultError;return r.code==="unrecognized_keys"?{message:he.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new dt({...this._def,unknownKeys:"strip"})}passthrough(){return new dt({...this._def,unknownKeys:"passthrough"})}extend(t){return new dt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new dt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Se.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new dt({...this._def,catchall:t})}pick(t){const r={};for(const n of Fe.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new dt({...this._def,shape:()=>r})}omit(t){const r={};for(const n of Fe.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new dt({...this._def,shape:()=>r})}deepPartial(){return ki(this)}partial(t){const r={};for(const n of Fe.objectKeys(this.shape)){const s=this.shape[n];t&&!t[n]?r[n]=s:r[n]=s.optional()}return new dt({...this._def,shape:()=>r})}required(t){const r={};for(const n of Fe.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof Xs;)i=i._def.innerType;r[n]=i}return new dt({...this._def,shape:()=>r})}keyof(){return ZS(Fe.objectKeys(this.shape))}}dt.create=(e,t)=>new dt({shape:()=>e,unknownKeys:"strip",catchall:ia.create(),typeName:Se.ZodObject,...Te(t)});dt.strictCreate=(e,t)=>new dt({shape:()=>e,unknownKeys:"strict",catchall:ia.create(),typeName:Se.ZodObject,...Te(t)});dt.lazycreate=(e,t)=>new dt({shape:e,unknownKeys:"strip",catchall:ia.create(),typeName:Se.ZodObject,...Te(t)});class $u extends Le{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function s(i){for(const l of i)if(l.result.status==="valid")return l.result;for(const l of i)if(l.result.status==="dirty")return r.common.issues.push(...l.ctx.common.issues),l.result;const o=i.map(l=>new us(l.ctx.common.issues));return ee(r,{code:K.invalid_union,unionErrors:o}),Ne}if(r.common.async)return Promise.all(n.map(async i=>{const o={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const c of n){const d={...r,common:{...r.common,issues:[]},parent:null},u=c._parseSync({data:r.data,path:r.path,parent:d});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:d}),d.common.issues.length&&o.push(d.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;const l=o.map(c=>new us(c));return ee(r,{code:K.invalid_union,unionErrors:l}),Ne}}get options(){return this._def.options}}$u.create=(e,t)=>new $u({options:e,typeName:Se.ZodUnion,...Te(t)});function Dp(e,t){const r=As(e),n=As(t);if(e===t)return{valid:!0,data:e};if(r===oe.object&&n===oe.object){const s=Fe.objectKeys(t),i=Fe.objectKeys(e).filter(l=>s.indexOf(l)!==-1),o={...e,...t};for(const l of i){const c=Dp(e[l],t[l]);if(!c.valid)return{valid:!1};o[l]=c.data}return{valid:!0,data:o}}else if(r===oe.array&&n===oe.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let i=0;i<e.length;i++){const o=e[i],l=t[i],c=Dp(o,l);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return r===oe.date&&n===oe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Fu extends Le{_parse(t){const{status:r,ctx:n}=this._processInputParams(t),s=(i,o)=>
vendor: 2,168 bytes, line 578
578{if(q0(i)||q0(o))return Ne;const l=Dp(i.value,o.value);return l.valid?((G0(i)||G0(o))&&r.dirty(),{status:r.value,value:l.data}):(ee(n,{code:K.invalid_intersection_types}),Ne)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Fu.create=(e,t,r)=>new Fu({left:e,right:t,typeName:Se.ZodIntersection,...Te(r)});class Za extends Le{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==oe.array)return ee(n,{code:K.invalid_type,expected:oe.array,received:n.parsedType}),Ne;if(n.data.length<this._def.items.length)return ee(n,{code:K.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ne;!this._def.rest&&n.data.length>this._def.items.length&&(ee(n,{code:K.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const i=[...n.data].map((o,l)=>{const c=this._def.items[l]||this._def.rest;return c?c._parse(new aa(n,o,n.path,l)):null}).filter(o=>!!o);return n.common.async?Promise.all(i).then(o=>Tr.mergeArray(r,o)):Tr.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new Za({...this._def,rest:t})}}Za.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Za({items:e,typeName:Se.ZodTuple,rest:null,...Te(t)})};class tb extends Le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==oe.map)return ee(n,{code:K.invalid_type,expected:oe.map,received:n.parsedType}),Ne;const s=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map(([l,c],d)=>({key:s._parse(new aa(n,l,n.path,[d,"key"])),value:i._parse(new aa(n,c,n.path,[d,"value"]))}));if(n.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const c of o){const d=await c.key,u=await c.value;if(d.status==="aborted"||u.status==="aborted")return Ne;
vendor: 6,525 bytes, line 578
578(d.status==="dirty"||u.status==="dirty")&&r.dirty(),l.set(d.value,u.value)}return{status:r.value,value:l}})}else{const l=new Map;for(const c of o){const d=c.key,u=c.value;if(d.status==="aborted"||u.status==="aborted")return Ne;(d.status==="dirty"||u.status==="dirty")&&r.dirty(),l.set(d.value,u.value)}return{status:r.value,value:l}}}}tb.create=(e,t,r)=>new tb({valueType:t,keyType:e,typeName:Se.ZodMap,...Te(r)});class dc extends Le{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==oe.set)return ee(n,{code:K.invalid_type,expected:oe.set,received:n.parsedType}),Ne;const s=this._def;s.minSize!==null&&n.data.size<s.minSize.value&&(ee(n,{code:K.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&n.data.size>s.maxSize.value&&(ee(n,{code:K.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());const i=this._def.valueType;function o(c){const d=new Set;for(const u of c){if(u.status==="aborted")return Ne;u.status==="dirty"&&r.dirty(),d.add(u.value)}return{status:r.value,value:d}}const l=[...n.data.values()].map((c,d)=>i._parse(new aa(n,c,n.path,d)));return n.common.async?Promise.all(l).then(c=>o(c)):o(l)}min(t,r){return new dc({...this._def,minSize:{value:t,message:he.toString(r)}})}max(t,r){return new dc({...this._def,maxSize:{value:t,message:he.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}dc.create=(e,t)=>new dc({valueType:e,minSize:null,maxSize:null,typeName:Se.ZodSet,...Te(t)});class rb extends Le{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}rb.create=(e,t)=>new rb({getter:e,typeName:Se.ZodLazy,...Te(t)});class nb extends Le{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return ee(r,{received:r.data,code:K.invalid_literal,expected:this._def.value}),Ne}return{status:"valid",value:t.data}}get value(){return this._def.value}}nb.create=(e,t)=>new nb({value:e,typeName:Se.ZodLiteral,...Te(t)});function ZS(e,t){return new So({values:e,typeName:Se.ZodEnum,...Te(t)})}class So extends Le{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return ee(r,{expected:Fe.joinValues(n),received:r.parsedType,code:K.invalid_type}),Ne}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return ee(r,{received:r.data,code:K.invalid_enum_value,options:n}),Ne}return Gr(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return So.create(t,{...this._def,...r})}exclude(t,r=this._def){return So.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}So.create=ZS;class sb extends Le{_parse(t){const r=Fe.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==oe.string&&n.parsedType!==oe.number){const s=Fe.objectValues(r);return ee(n,{expected:Fe.joinValues(s),received:n.parsedType,code:K.invalid_type}),Ne}if(this._cache||(this._cache=new Set(Fe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=Fe.objectValues(r);return ee(n,{received:n.data,code:K.invalid_enum_value,options:s}),Ne}return Gr(t.data)}get enum(){return this._def.values}}sb.create=(e,t)=>new sb({values:e,typeName:Se.ZodNativeEnum,...Te(t)});class Uu extends Le{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==oe.promise&&r.common.async===!1)return ee(r,{code:K.invalid_type,expected:oe.promise,received:r.parsedType}),Ne;const n=r.parsedType===oe.promise?r.data:Promise.resolve(r.data);return Gr(n.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Uu.create=(e,t)=>new Uu({type:e,typeName:Se.ZodPromise,...Te(t)});class ko extends Le{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:o=>{ee(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(n.data,i);if(n.common.async)return Promise.resolve(o).then(async l=>{if(r.value==="aborted")return Ne;const c=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return c.status==="aborted"?Ne:c.status==="dirty"||r.value==="dirty"?hl(c.value):c});{if(r.value==="aborted")return Ne;const l=this._def.schema._parseSync({data:o,path:n.path,parent:n});return l.status==="aborted"?Ne:l.status==="dirty"||r.value==="dirty"?hl(l.value):l}}if(s.type==="refinement"){const o=l=>{const c=s.refinement(l,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(n.common.async===!1){const l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return l.status==="aborted"?Ne:(l.status==="dirty"&&r.dirty(),o(l.value),{status:r.value,value:l.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(l=>l.status==="aborted"?Ne:(l.status==="dirty"&&r.dirty(),o(l.value).then(()=>({status:r.value,value:l.value}))))}if(s.type==="transform")if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!No(o))return Ne;const l=s.transform(o.value,i);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:l}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>No(o)?Promise.resolve(s.transform(o.value,i)).then(l=>({status:r.value,value:l})):Ne);Fe.assertNever(s)}}ko.create=(e,t,r)=>new ko({schema:e,typeName:Se.ZodEffects,effect:t,...Te(r)});ko.createWithPreprocess=(e,t,r)=>new ko({schema:t,effect:{type:"preprocess",transform:e},typeName:Se.ZodEffects,...Te(r)});class Xs extends Le{_parse(t){return this._getType(t)===oe.undefined?Gr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Xs.create=(e,t)=>
578new Xs({innerType:e,typeName:Se.ZodOptional,...Te(t)});class _o extends Le{_parse(t){return this._getType(t)===oe.null?Gr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}_o.create=(e,t)=>new _o({innerType:e,typeName:Se.ZodNullable,...Te(t)});class Lp extends Le{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===oe.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Lp.create=(e,t)=>new Lp({innerType:e,typeName:Se.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Te(t)});class $p extends Le{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Du(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new us(n.common.issues)},input:n.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new us(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}$p.create=(e,t)=>new $p({innerType:e,typeName:Se.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Te(t)});class ab extends Le{_parse(t){if(this._getType(t)!==oe.nan){const n=this._getOrReturnCtx(t);return ee(n,{code:K.invalid_type,expected:oe.nan,received:n.parsedType}),Ne}return{status:"valid",value:t.data}}}ab.create=e=>new ab({typeName:Se.ZodNaN,...Te(e)});class dL extends Le{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class Px extends Le{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Ne:i.status==="dirty"?(r.dirty(),hl(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{const s=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Ne:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:n.path,parent:n})}}static create(t,r){return new Px({in:t,out:r,typeName:Se.ZodPipeline})}}class Fp extends Le{_parse(t){const r=this._def.innerType._parse(t),n=s=>(No(s)&&(s.value=Object.freeze(s.value)),s);return Du(r)?r.then(s=>n(s)):n(r)}unwrap(){return this._def.innerType}}Fp.create=(e,t)=>new Fp({innerType:e,typeName:Se.ZodReadonly,...Te(t)});dt.lazycreate;var Se;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Se||(Se={}));const nl=Us.create,ib=Mp.create;ia.create;Un.create;const uL=dt.create;dt.strictCreate;$u.create;Fu.create;Za.create;So.create;Uu.create;Xs.create;_o.create;function Rx(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ih="Checkbox",[hL,GU]=lr(Ih),[fL,Ix]=hL(Ih);function mL(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:s,disabled:i,form:o,name:l,onCheckedChange:c,required:d,value:u="on",internal_do_not_use_render:h}=e,[f,m]=bn({prop:r,defaultProp:s??!1,onChange:c,caller:Ih}),[b,x]=g.useState(null),[w,v]=g.useState(null),p=g.useRef(!1),y=b?!!o||!!b.closest("form"):!0,j={checked:f,disabled:i,setChecked:m,control:b,setControl:x,name:l,form:o,value:u,hasConsumerStoppedPropagationRef:p,required:d,defaultChecked:ea(s)?!1:s,isFormControl:y,bubbleInput:w,setBubbleInput:v};return a.jsx(fL,{scope:t,...j,children:pL(h)?h(j):n})}var YS="CheckboxTrigger",JS=g.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},s)=>{const{control:i,value:o,disabled:l,checked:c,required:d,setControl:u,setChecked:h,hasConsumerStoppedPropagationRef:f,isFormControl:m,bubbleInput:b}=Ix(YS,e),x=Pe(s,u),w=g.useRef(c);return g.useEffect(()=>{const v=i==null?void 0:i.form;if(v){const p=()=>h(w.current);return v.addEventListener("reset",p),()=>v.removeEventListener("reset",p)}},[i,h]),a.jsx(de.button,{type:"button",role:"checkbox","aria-checked":ea(c)?"mixed":c,"aria-required":d,"data-state":rk(c),"data-disabled":l?"":void 0,disabled:l,value:o,...n,ref:x,onKeyDown:le(t,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:le(r,v=>{h(p=>ea(p)?!0:!p),b&&m&&(f.current=v.isPropagationStopped(),f.current||v.stopPropagation())})})});JS.displayName=YS;var Ox=g.forwardRef((e,t)=>
578{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:i,required:o,disabled:l,value:c,onCheckedChange:d,form:u,...h}=e;return a.jsx(mL,{__scopeCheckbox:r,checked:s,defaultChecked:i,disabled:l,required:o,onCheckedChange:d,name:n,form:u,value:c,internal_do_not_use_render:({isFormControl:f})=>a.jsxs(a.Fragment,{children:[a.jsx(JS,{...h,ref:t,__scopeCheckbox:r}),f&&a.jsx(tk,{__scopeCheckbox:r})]})})});Ox.displayName=Ih;var QS="CheckboxIndicator",XS=g.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...s}=e,i=Ix(QS,r);return a.jsx(Ir,{present:n||ea(i.checked)||i.checked===!0,children:a.jsx(de.span,{"data-state":rk(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});XS.displayName=QS;var ek="CheckboxBubbleInput",tk=g.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:s,checked:i,defaultChecked:o,required:l,disabled:c,name:d,value:u,form:h,bubbleInput:f,setBubbleInput:m}=Ix(ek,e),b=Pe(r,m),x=Rx(i),w=dx(n);g.useEffect(()=>{const p=f;if(!p)return;const y=window.HTMLInputElement.prototype,N=Object.getOwnPropertyDescriptor(y,"checked").set,S=!s.current;if(x!==i&&N){const k=new Event("click",{bubbles:S});p.indeterminate=ea(i),N.call(p,ea(i)?!1:i),p.dispatchEvent(k)}},[f,x,i,s]);const v=g.useRef(ea(i)?!1:i);return a.jsx(de.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??v.current,required:l,disabled:c,name:d,value:u,form:h,...t,tabIndex:-1,ref:b,style:{...t.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});tk.displayName=ek;function pL(e){return typeof e=="function"}function ea(e){return e==="indeterminate"}function rk(e){return ea(e)?"indeterminate":e?"checked":"unchecked"}const Ot=g.forwardRef(({className:e,...t},r)=>a.jsx(Ox,{ref:r,className:X("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:a.jsx(XS,{className:X("flex items-center justify-center text-current"),children:a.jsx(kc,{className:"h-4 w-4"})})}));Ot.displayName=Ox.displayName;var gL="Label",nk=g.forwardRef((e,t)=>a.jsx(de.label,{...e,ref:t,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));nk.displayName=gL;var sk=nk;const xL=xh("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ve=g.forwardRef(({className:e,...t},r)=>a.jsx(sk,{ref:r,className:X(xL(),e),...t}));ve.displayName=sk.displayName;const vL=gD,ak=g.createContext({}),xa=({...e})=>a.jsx(ak.Provider,{value:{name:e.name},children:a.jsx(bD,{...e})}),Oh=()=>{const e=g.useContext(ak),t=g.useContext(ik),{getFieldState:r,formState:n}=Rh(),s=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},ik=g.createContext({}),ws=g.forwardRef(({className:e,...t},r)=>{const n=g.useId();return a.jsx(ik.Provider,{value:{id:n},children:a.jsx("div",{ref:r,className:X("space-y-2",e),...t})})});ws.displayName="FormItem";const js=g.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:s}=Oh();return a.jsx(ve,{ref:r,className:X(n&&"text-destructive",e),htmlFor:s,...t})});js.displayName="FormLabel";const Ns=g.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:s,formMessageId:i}=Oh();return a.jsx(n1,{ref:t,id:n,"aria-describedby":r?`${s} ${i}`:`${s}`,"aria-invalid":!!r,...e})});Ns.displayName="FormControl";const Up=g.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=Oh();return a.jsx("p",{ref:r,id:n,className:X("text-sm text-muted-foreground",e),...t})});Up.displayName="FormDescription";const _i=g.forwardRef(({className:e,children:t,...r},n)=>{const{error:s,formMessageId:i}=Oh(),o=s?String(s==null?void 0:s.message):t;return o?a.jsx("p",{ref:n,id:i,className:X("text-sm font-medium text-destructive",e),...r,children:o}):null});_i.displayName="FormMessage";
578const ft=g.forwardRef(({className:e,type:t,...r},n)=>a.jsx("input",{type:t,className:X("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));ft.displayName="Input";const Mh=g.forwardRef(({className:e,...t},r)=>a.jsx("textarea",{className:X("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));Mh.displayName="Textarea";const yL=uL({fullName:nl().min(2,{message:"Full name must be at least 2 characters"}).max(100),email:nl().email({message:"Invalid email address"}).max(255),phone:nl().max(20).optional(),companyName:nl().min(1,{message:"Company name is required"}).max(100),projectDescription:nl().min(10,{message:"Please provide at least 10 characters"}).max(1e3),interestedInPlatform:ib().default(!1),interestedInZumie:ib().default(!1)}),bL=()=>{const{toast:e}=hh(),t=OD({resolver:$D(yL),defaultValues:{fullName:"",email:"",phone:"",companyName:"",projectDescription:"",interestedInPlatform:!1,interestedInZumie:!1}}),r=async s=>{try{if(!(await fetch("https://prasak.app.n8n.cloud/webhook/form-submission",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)})).ok)throw new Error("Failed to submit form");e({title:"Thank You for Your Interest! ð",description:"Your consultation request has been received. Our team will reach out to you within 1-3 business days to discu
578ss how Aristle AI can help transform your business."}),t.reset()}catch{e({title:"Submission Failed",description:"There was an error submitting your request. Please try again or contact us directly at [email protected]",variant:"destructive"})}},n=[Oc([{name:"Home",url:"/"},{name:"Free Consultation",url:"/consultation"}]),{"@context":"https://schema.org","@type":"ContactPage",name:"Schedule Free AI Consultation - Aristle AI",description:"Book a free consultation with Aristle AI experts to discuss how AI automation can transform your business",url:"https://aristle-ai.lovable.app/consultation",mainEntity:{"@type":"ContactPoint",contactType:"Sales",email:"[email protected]",areaServed:"Worldwide",availableLanguage:["English"]}},{"@context":"https://schema.org","@type":"Service",name:"Free AI Consultation",description:"Complimentary consultation to explore AI automation solutions for your business",provider:{"@type":"Organization",name:"Aristle AI"},serviceType:"Business Consultation",areaServed:"Worldwide",offers:{"@type":"Offer",price:"0",priceCurrency:"USD",availability:"https://schema.org/InStock"}}];return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(vr,{title:"Schedule Free AI Consultation - Talk to Our Experts",description:"Book a free consultation with Aristle AI experts. Discuss your business needs and discover how AI automation can help you save time, reduce costs, and grow smarter. No obligation, no technical knowledge required.",keywords:"free AI consultation, business AI consultation, AI automation demo, AI for business meeting, schedule AI demo, AI strategy consultation, small business AI help",canonicalUrl:"/consultation",structuredData:n}),a.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-16",children:[a.jsxs(xe,{to:"/",className:"inline-flex items-center text-sm text-muted-foreground hover:text-foreground mb-8",children:[a.jsx(da,{className:"mr-2 h-4 w-4"}),"Back to Home"]}),a.jsxs("div",{className:"mb-8",children:[a.jsx("h1",{className:"text-4xl font-bold mb-2",children:"Schedule Free Consultation"}),a.jsx("p",{className:"text-muted-foreground",children:"Tell us about your project and let's explore how Aristle AI can help transform your business with intelligent automation."})]}),a.jsx(vL,{...t,children:a.jsxs("form",{onSubmit:t.handleSubmit(r),className:"space-y-6",children:[a.jsx(xa,{control:t.control,name:"fullName",render:({field:s})=>a.jsxs(ws,{children:[a.jsx(js,{children:"Full Name *"}),a.jsx(Ns,{children:a.jsx(ft,{placeholder:"John Doe",...s})}),a.jsx(_i,{})]})}),a.jsx(xa,{control:t.control,name:"email",render:({field:s})=>a.jsxs(ws,{children:[a.jsx(js,{children:"Email Address *"}),a.jsx(Ns,{children:a.jsx(ft,{type:"email",placeholder:"[email protected]",...s})}),a.jsx(_i,{})]})}),a.jsx(xa,{control:t.control,name:"phone",render:({field:s})=>a.jsxs(ws,{children:[a.jsx(js,{children:"Phone Number (Optional)"}),a.jsx(Ns,{children:a.jsx(ft,{type:"tel",placeholder:"+1 (555) 000-0000",...s})}),a.jsx(_i,{})]})}),a.jsx(xa,{control:t.control,name:"companyName",render:({field:s})=>a.jsxs(ws,{children:[a.jsx(js,{children:"Company Name *"}),a.jsx(Ns,{children:a.jsx(ft,{placeholder:"Your Company Inc.",...s})}),a.jsx(_i,{})]})}),a.jsx(xa,{control:t.control,name:"projectDescription",render:({field:s})=>a.jsxs(ws,{children:[a.jsx(js,{children:"Project Description *"}),a.jsx(Ns,{children:a.jsx(Mh,{placeholder:"Tell us about your project, goals, and how AI could help your business...",className:"min-h-[120px]",...s})}),a.jsx(Up,{children:"Minimum 10 characters, maximum 1000 characters"}),a.jsx(_i,{})]})}),a.jsx(xa,{control:t.control,name:"interestedInPlatform",render:({field:s})=>a.jsxs(ws,{className:"flex flex-row items-start space-x-3 space-y-0 rounded-md border p-4",children:[a.jsx(Ns,{children:a.jsx(Ot,{checked:s.value,onCheckedChange:s.onChange})}),a.jsx("div",{className:"space-y-1 leading-none",children:a.jsx(js,{children:"Interested in using Aristle's platform services"})})]})}),a.jsx(xa,{control:t.control,name:"interestedInZumie",render:({field:s})=>a.jsxs(ws,{className:"flex flex-row items-start space-x-3 space-y-0 rounded-md border p-4",children:[a.jsx(Ns,{children:a.jsx(Ot,{checked:s.value,onCheckedChange:s.onChange})}),a.jsxs("div",{className:"space-y-1 leading-none",children:[a.jsx(js,{children:"Interested in knowing more and using Zumie"}),a.jsx(Up,{children:"Get early access to our AI Agent Management platform and tools"})]})]})}),a.jsxs(se,{type:"submit",size:"lg",className:"w-full",disabled:t.formState.isSubmitting,children:[t.formState.isSubmitting&&a.jsx(Js,{className:"mr-2 h-4 w-4 animate-spin"}),t.formState.isSubmitting?"Submitting your request...":"Get in Touch"]})]})})]})]})},wL=()=>{g.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);const e={software:["Metrics","Logs","Traces","Alerts","Root-cause analysis"],business:["Cash flows instead of packets","Customers instead of users","Staff instead of compute","Vendors instead of dependencies"],problems:["Zero observability","Lagging reports","No alerts","No root cause","No incident response"]}
578,t=[{software:"Outages",business:"Cash crunch"},{software:"Latency spikes",business:"Sales slowdown"},{software:"Error rates",business:"Margin erosion"},{software:"Resource exhaustion",business:"Payroll risk"},{software:"Dependency failure",business:"Vendor disruption"},{software:"Silent failures",business:"Churn, spoilage, attrition"}],r=[{icon:a.jsx(Er,{className:"w-8 h-8"}),number:"1ï¸â£",title:"Signals (Instrumentation)",description:'"Instrument" your business by connecting all your systems. No manual data entry. No spreadsheets.',integrations:[{icon:a.jsx(I1,{className:"w-4 h-4"}),name:"Bank accounts"},{icon:a.jsx(ap,{className:"w-4 h-4"}),name:"Accounting (QuickBooks, Xero)"},{icon:a.jsx(V1,{className:"w-4 h-4"}),name:"POS (Square, Toast, Shopify)"},{icon:a.jsx(qr,{className:"w-4 h-4"}),name:"Payroll (Gusto, ADP)"},{icon:a.jsx(UT,{className:"w-4 h-4"}),name:"Marketing (Google, Meta)"},{icon:a.jsx(wn,{className:"w-4 h-4"}),name:"CRM"}]},{icon:a.jsx(vo,{className:"w-8 h-8"}),number:"2ï¸â£",title:"Metrics (What's Happening?)",description:"Business SLIs that tell you the health of your operations in real time.",metrics:["Cash runway (days)","Gross margin by product","Revenue per labor hour","Inventory turnover","Customer acquisition cost","Churn velocity"]},{icon:a.jsx(D1,{className:"w-8 h-8"}),number:"3ï¸â£",title:"Logs (Why Did It Happen?)",description:"Event-level explanations that allow forensic analysis of your business.",examples:['"Discount applied"','"Staff overtime spike"','"Supplier price increase"','"Promo campaign launched"']},{icon:a.jsx(DT,{className:"w-8 h-8"}),number:"4ï¸â£",title:"Traces (End-to-End Business Flows)",description:"Business distributed tracing that follows the complete journey.",traces:["Ad click â website â order â fulfillment â payment â repeat purchase","Inventory order â delivery â spoilage â margin impact"]},{icon:a.jsx(R1,{className:"w-8 h-8"}),number:"5ï¸â£",title:"Alerts (Before Things Break)",description:"Instead of static thresholds, get anomaly detection, leading indicators, and predictive alerts.",alerts:[{emoji:"ð¨",text:"Cash burn anomaly detected"},{emoji:"ð¨",text:"Labor costs diverging from revenue trend"},{emoji:"ð¨",text:"Inventory aging faster than demand"}]},{icon:a.jsx(Fi,{className:"w-8 h-8"}),number:"6ï¸â£",title:"Root Cause Analysis (AI as the SRE)",description:"When something goes wrong: correlate signals, rank probable causes, explain in plain English.",example:'"Margins dropped 4.2% due to supplier cost increase + unadjusted menu pricing."'}],n=[{question:'"What changed?"',description:"Real-time anomaly detection"},{question:'"Why did it happen?"',description:"Signal correlation and causality"},{question:'"What should I do?"',description:"Actionable recommendations"},{question:`"What happens if I don't?"`,description:"Risk quantification"}],s=["Payroll at risk","Sales cliff","Inventory overstock","Marketing spend waste","Labor inefficiency"],i=r.map(l=>({name:l.title,description:l.description})),o=[cD(),Oc([{name:"Home",url:"/"},{name:"Platform",url:"/platform"}]),IS(i),{"@context":"https://schema.org","@type":"WebPage",name:"Aristle AI Platform - Business Observability for SMBs",description:"The complete business observability stack: Signals, Metrics, Logs, Traces, Alerts, and Root Cause Analysis for small and medium businesses",url:"https://aristle-ai.lovable.app/platform",mainEntity:{"@type":"SoftwareApplication",name:"Aristle AI Platform",applicationCategory:"BusinessApplication"}}];return a.jsxs("main",{className:"min-h-screen pt-16",children:[a.jsx(vr,{title:"Business Observability Platform - Signals, Metrics, Logs, Traces, Alerts",description:"The complete business observability stack for SMBs. Connect your systems, monitor business SLIs, get predictive alerts, and let AI explain root causes. Stop operating in black-box mode.",keywords:"business observability platform, SMB observability, business metrics, business SLI, predictive alerts, root cause analysis, AI advisor, business intelligence, cash flow monitoring, inventory management",canonicalUrl:"/platform",structuredData:o}),a.jsx(ua,{}),a.jsx("section",{className:"bg-gradient-to-b from-background to-muted/20 py-20 px-4 md:px-8",children:a.jsxs("div",{className:"max-w-7xl mx-auto text-center",children:[a.jsxs("h1",{className:"text-4xl md:text-6xl font-bold mb-6",children:["The Core Insight:"," ",a.jsx("span",{className:"text-gradient",children:"Business Operations Have Reached System-Level Complexity"})]}),a.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-3xl mx-auto mb-8",children:"Observability is foundational to running modern software platforms. Small and mid-market businesses now exhibit similar operational complexityâbut lack the instrumentation, visibility, and intelligence required to operate them effectively."})]})}),a.jsx("section",{className:"py-16 px-4 md:px-8 bg-muted/30",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"grid md:grid-cols-3 gap-8 mb-12",children:[a.jsxs(ie,{className:"p-6",children:[a.jsx("h3",{className:"font-semibold text-lg mb-4 text-center",children:"Software Systems Rely On"}),a.jsx("ul",{className:"space-y-2",children:e.software.map((l,c)=>
578a.jsxs("li",{className:"flex items-center gap-2 text-muted-foreground",children:[a.jsx("span",{className:"text-primary",children:"â"})," ",l]},c))})]}),a.jsxs(ie,{className:"p-6",children:[a.jsx("h3",{className:"font-semibold text-lg mb-4 text-center",children:"SMBs Are Just As Complex"}),a.jsx("ul",{className:"space-y-2",children:e.business.map((l,c)=>a.jsxs("li",{className:"flex items-center gap-2 text-muted-foreground",children:[a.jsx("span",{className:"text-primary",children:"â"})," ",l]},c))})]}),a.jsxs(ie,{className:"p-6 border-destructive/50 bg-destructive/5",children:[a.jsx("h3",{className:"font-semibold text-lg mb-4 text-center",children:"But Today, SMBs Have"}),a.jsx("ul",{className:"space-y-2",children:e.problems.map((l,c)=>a.jsxs("li",{className:"flex items-center gap-2 text-destructive",children:[a.jsx("span",{children:"â"})," ",l]},c))})]})]}),a.jsxs("div",{className:"max-w-2xl mx-auto",children:[a.jsx("h3",{className:"text-2xl font-bold text-center mb-6",children:"Reframing the Problem"}),a.jsxs("div",{className:"bg-card rounded-lg border border-border overflow-hidden",children:[a.jsxs("div",{className:"grid grid-cols-2 bg-muted/50 p-4 font-semibold border-b border-border",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Ln,{className:"w-4 h-4 text-muted-foreground"}),"Software Systems"]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Ga,{className:"w-4 h-4 text-primary"}),"SMB Reality"]})]}),t.map((l,c)=>a.jsxs("div",{className:"grid grid-cols-2 p-4 border-b border-border last:border-0",children:[a.jsx("div",{className:"text-muted-foreground",children:l.software}),a.jsx("div",{className:"font-medium",children:l.business})]},c))]}),a.jsxs("p",{className:"text-center mt-6 text-lg",children:[a.jsx("strong",{children:"SMBs don't fail suddenly. They fail silently."}),a.jsx("br",{}),a.jsx("span",{className:"text-primary",children:"Observability fixes silent failure."})]})]})]})}),a.jsx("section",{className:"py-16 px-4 md:px-8",children:a.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:'What "Business Observability" Means'}),a.jsx("p",{className:"text-xl text-muted-foreground mb-8 italic",children:"The ability to understand the internal state of a business by analyzing its external signals in real time."}),a.jsxs("div",{className:"bg-muted/30 rounded-2xl p-8",children:[a.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Business Telemetry = Signals"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4 text-left",children:["Financial transactions","POS events","Marketing clicks â conversions","Inventory movement","Labor hours","Customer behavior"].map((l,c)=>a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Er,{className:"w-4 h-4 text-primary flex-shrink-0"}),a.jsx("span",{className:"text-sm",children:l})]},c))}),a.jsx("div",{className:"mt-8 pt-6 border-t border-border",children:a.jsxs("p",{className:"text-muted-foreground",children:[a.jsx("strong",{className:"text-foreground",children:"Our platform:"})," Collects signals â Correlates them â Explains causality â Triggers action"]})})]})]})}),a.jsx("section",{className:"py-20 px-4 md:px-8 bg-muted/30",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-4",children:"Autonomous Business Advisory Intelligence Platform"}),a.jsx("p",{className:"text-center text-muted-foreground mb-12 max-w-2xl mx-auto",children:"A layered intelligence framework that instruments operations, correlates signals, and enables proactive decision - transforming how you understand and run your operations."}),a.jsx("div",{className:"space-y-8",children:r.map((l,c)=>a.jsx(ie,{className:"p-6 md:p-8",children:a.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("span",{className:"text-2xl",children:l.number}),a.jsx("div",{className:"text-primary",children:l.icon})]}),a.jsxs("div",{className:"flex-1",children:[a.jsx("h3",{className:"text-xl font-semibold mb-2",children:l.title}),a.jsx("p",{className:"text-muted-foreground mb-4",children:l.description}),l.integrations&&a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:l.integrations.map((d,u)=>a.jsxs("div",{className:"flex items-center gap-2 text-sm bg-muted/50 rounded-lg px-3 py-2",children:[d.icon,a.jsx("span",{children:d.name})]},u))}),l.metrics&&a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:l.metrics.map((d,u)=>a.jsx("div",{className:"text-sm bg-primary/5 rounded px-3 py-2 border border-primary/20",children:d},u))}),l.examples&&a.jsx("div",{className:"flex flex-wrap gap-2",children:l.examples.map((d,u)=>a.jsx("code",{className:"text-sm bg-muted rounded px-3 py-1.5",children:d},u))}),l.traces&&a.jsx("div",{className:"space-y-2",children:l.traces.map((d,u)=>a.jsx("div",{className:"text-sm bg-muted/50 rounded-lg px-4 py-3 font-mono",children:d},u))}),l.alerts&&a.jsx("div",{className:"space-y-2",children:l.alerts.map((d,u)=>a.jsxs("div",{className:"flex items-center gap-2 text-sm bg-destructive/5 border border-destructive/20 rounded-lg px-4 py-3",children:[a.jsx("span",{children:d.emoji}),a.jsx("span",{children:d.text})]},u))}),l.example&&a.jsx("div",{className:"bg-primary/5 border border-primary/20 rounded-lg px-4 py-3 italic",children:l.example})]})]})},c))})]})}),a.jsx("section",{className:"py-20 px-4 md:px-8",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Adv
578isor Layer: From Observability â Action"}),a.jsx("p",{className:"text-xl text-muted-foreground",children:a.jsx("strong",{children:"Observability without action is just monitoring."})})]}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[a.jsx("div",{children:a.jsxs(ie,{className:"p-6 h-full",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[a.jsx(Vr,{className:"w-8 h-8 text-primary"}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-semibold",children:"Your AI Advisor Becomes"}),a.jsx("p",{className:"text-muted-foreground",children:"On-call SRE + CFO + COO + Growth analyst"})]})]}),a.jsx("div",{className:"space-y-4",children:n.map((l,c)=>a.jsxs("div",{className:"border-l-2 border-primary pl-4",children:[a.jsx("p",{className:"font-medium",children:l.question}),a.jsx("p",{className:"text-sm text-muted-foreground",children:l.description})]},c))}),a.jsx("p",{className:"mt-6 text-center text-sm font-medium text-primary",children:"This is closed-loop decisioning."})]})}),a.jsx("div",{children:a.jsxs(ie,{className:"p-6 h-full",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[a.jsx(Ln,{className:"w-8 h-8 text-destructive"}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-semibold",children:"Incident Management for SMBs ð¨"}),a.jsx("p",{className:"text-muted-foreground",children:"Detect ⢠Assess ⢠Mitigate ⢠Track"})]})]}),a.jsx("p",{className:"text-muted-foreground mb-4",children:"Business incidents we detect and respond to:"}),a.jsx("div",{className:"space-y-2 mb-6",children:s.map((l,c)=>a.jsxs("div",{className:"flex items-center gap-2 bg-destructive/5 rounded-lg px-4 py-2",children:[a.jsx("span",{className:"text-destructive",children:"â "}),a.jsx("span",{children:l})]},c))}),a.jsx("div",{className:"bg-muted/50 rounded-lg p-4 text-center",children:a.jsxs("p",{className:"text-sm",children:[a.jsx("strong",{children:"Detects incident"})," â ",a.jsx("strong",{children:"Assesses blast radius"})," â ",a.jsx("strong",{children:"Recommends mitigation"})," â ",a.jsx("strong",{children:"Tracks resolution"})]})})]})})]})]})}),a.jsx("section",{className:"py-20 px-4 md:px-8 bg-muted/30",children:a.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Stop Operating in Black-Box Mode"}),a.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"Get real-time visibility into your business. Understand what's happening, why it's happening, and what to do about it."}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsx(xe,{to:"/consultation",children:a.jsx(se,{size:"lg",className:"text-lg px-8",children:"Start Observing Today"})}),a.jsx(xe,{to:"/agents",children:a.jsx(se,{size:"lg",variant:"outline",className:"text-lg px-8",children:"Explore Our Agents"})})]})]})}),a.jsx("footer",{className:"bg-card border-t border-border py-12 px-4 md:px-8",children:a.jsxs("div",{className:"max-w-7xl mx-auto text-center text-muted-foreground",children:[a.jsx("p",{className:"mb-2",children:"© 2025 Aristle AI. All rights reserved."}),a.jsx("p",{className:"text-sm",children:"Business Observability for Small & Medium Businesses"})]})})]})},jL=()=>{g.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);const e=[{name:"Standard",price:"$49",description:"Perfect for small businesses getting started with AI automation",features:["Social Media Management","10 AI-generated posts per week","Basic content scheduling & calendar","1 Social platform integration","Basic engagement analytics","Template library access","Email support"],buttonText:"Get Started",popular:!1},{name:"Professional",price:"$99",description:"Ideal for growing businesses needing comprehensive automation",features:["Everything in Standard, plus:","25 AI-generated posts per week","3 Social platform integrations","Payroll Management (ADP, Gusto, Paychex)","Finance Management & bookkeeping","Bank account & tax system sync","Paid Ads Management (Google, Meta)","Customer engagement tracking","Advanced analytics & reporting","Privacy and compliance checks","Priority email & chat support"],buttonText:"Start a Trial",popular:!0},{name:"Enterprise",price:"$499",description:"Complete solution for organizations with complex needs",features:["Everything in Professional, plus:","Unlimited AI-generated posts","Unlimited platform integrations","Full Payroll integration (ADP, Paycor, Gusto, Paychex)","Infrastru
578cture Management (cloud, LLM subscriptions)","Customized GPT with RAG setup","AI-driven cost optimization & recommendations","Customer Management & Growth Intelligence","Predictive insights & AI growth recommendations","Custom analytics & dashboards","Dedicated account manager","White-label options","API access"],buttonText:"Contact Sales",popular:!1}],t=[lD(e.map(r=>({name:`Aristle AI ${r.name}`,description:r.description,price:r.price}))),Oc([{name:"Home",url:"/"},{name:"Pricing",url:"/pricing"}]),{"@context":"https://schema.org","@type":"WebPage",name:"Aristle AI Pricing - Affordable AI Solutions for Small Business",description:"Compare Aristle AI pricing plans. Choose from Standard ($49/mo), Professional ($99/mo), or Enterprise ($499/mo) plans for your business automation needs.",url:"https://aristle-ai.lovable.app/pricing"},{"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"How much does Aristle AI cost?",acceptedAnswer:{"@type":"Answer",text:"Aristle AI offers three pricing tiers: Standard at $49/month for small businesses getting started, Professional at $99/month for growing businesses, and Enterprise at $499/month for organizations with complex needs."}},{"@type":"Question",name:"Can I try Aristle AI before subscribing?",acceptedAnswer:{"@type":"Answer",text:"Yes! We offer free consultations and a pilot program where you can test the platform with real data before committing to a plan."}},{"@type":"Question",name:"What's included in the Professional plan?",acceptedAnswer:{"@type":"Answer",text:"The Professional plan includes 25 AI-generated posts per week, 3 social platform integrations, payroll management, finance management, paid ads management, customer engagement tracking, and priority support."}}]}];return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(vr,{title:"Pricing Plans - Affordable AI Automation for Business",description:"Compare Aristle AI pricing plans. Standard ($49/mo), Professional ($99/mo), and Enterprise ($499/mo) plans include social media AI, finance automation, payroll management, and more. Start with a free consultation.",keywords:"Aristle AI pricing, AI business software cost, small business AI pricing, affordable AI automation, business automation pricing, SaaS pricing, AI subscription plans",canonicalUrl:"/pricing",structuredData:t}),a.jsx(ua,{}),a.jsx("main",{className:"pt-24 pb-16",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs("div",{className:"text-center mb-16",children:[a.jsxs("h1",{className:"text-4xl md:text-5xl font-bold text-foreground mb-4",children:["Simple, Transparent"," ",a.jsx("span",{className:"bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent",children:"Pricing"})]}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Choose the plan that fits your business needs. All plans include our core AI-powered automation features."})]}),a.jsx("div",{className:"grid md:grid-cols-3 gap-8 max-w-6xl mx-auto",children:e.map(r=>a.jsxs(ie,{className:`relative p-8 flex flex-col ${r.popular?"border-primary shadow-lg shadow-primary/20 scale-105":"border-border"}`,children:[r.popular&&a.jsx("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2",children:a.jsx("span",{className:"bg-primary text-primary-foreground text-sm font-medium px-4 py-1 rounded-full",children:"Most Popular"})}),a.jsxs("div",{className:"text-center mb-8",children:[a.jsx("h3",{className:"text-2xl font-bold text-foreground mb-2",children:r.name}),a.jsxs("div",{className:"mb-4",children:[a.jsx("span",{className:"text-4xl font-bold text-foreground",children:r.price}),a.jsx("span",{className:"text-muted-foreground",children:"/month"})]}),a.jsx("p",{className:"text-sm text-muted-foreground",children:r.description})]}),a.jsx("ul",{className:"space-y-4 mb-8 flex-grow",children:r.features.map(n=>a.jsxs("li",{className:"flex items-start gap-3",children:[a.jsx(kc,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),a.jsx("span",{className:"text-sm text-foreground",children:n})]},n))}),a.jsx(xe,{to:"/consultation",className:"w-full",children:a.jsx(se,{className:`w-full ${r.popular?"bg-primary hover:bg-primary/90":"bg-secondary hover:bg-secondary/90"}`,children:r.buttonText})})]},r.name))}),a.jsxs("div",{className:"mt-20 text-center",children:[a.jsx("p",{className:"text-muted-foreground mb-4",children:"Need a custom solution for your business?"}),a.jsx(xe,{to:"/consultation",children:a.jsx(se,{variant:"outline",size:"lg",children:"Contact Us for Custom Pricing"})})]})]})})]})};var Dh="Collapsible",[NL,ok]=lr(Dh),[SL,Mx]=NL(Dh),lk=g.forwardRef((e,t)=>
vendor: 4,250 bytes, line 578
578{const{__scopeCollapsible:r,open:n,defaultOpen:s,disabled:i,onOpenChange:o,...l}=e,[c,d]=bn({prop:n,defaultProp:s??!1,onChange:o,caller:Dh});return a.jsx(SL,{scope:r,disabled:i,contentId:$n(),open:c,onOpenToggle:g.useCallback(()=>d(u=>!u),[d]),children:a.jsx(de.div,{"data-state":Lx(c),"data-disabled":i?"":void 0,...l,ref:t})})});lk.displayName=Dh;var ck="CollapsibleTrigger",dk=g.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,s=Mx(ck,r);return a.jsx(de.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":Lx(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:t,onClick:le(e.onClick,s.onOpenToggle)})});dk.displayName=ck;var Dx="CollapsibleContent",uk=g.forwardRef((e,t)=>{const{forceMount:r,...n}=e,s=Mx(Dx,e.__scopeCollapsible);return a.jsx(Ir,{present:r||s.open,children:({present:i})=>a.jsx(kL,{...n,ref:t,present:i})})});uk.displayName=Dx;var kL=g.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:s,...i}=e,o=Mx(Dx,r),[l,c]=g.useState(n),d=g.useRef(null),u=Pe(t,d),h=g.useRef(0),f=h.current,m=g.useRef(0),b=m.current,x=o.open||l,w=g.useRef(x),v=g.useRef(void 0);return g.useEffect(()=>{const p=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(p)},[]),mt(()=>{const p=d.current;if(p){v.current=v.current||{transitionDuration:p.style.transitionDuration,animationName:p.style.animationName},p.style.transitionDuration="0s",p.style.animationName="none";const y=p.getBoundingClientRect();h.current=y.height,m.current=y.width,w.current||(p.style.transitionDuration=v.current.transitionDuration,p.style.animationName=v.current.animationName),c(n)}},[o.open,n]),a.jsx(de.div,{"data-state":Lx(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!x,...i,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:x&&s})});function Lx(e){return e?"open":"closed"}var _L=lk,CL=dk,AL=uk,EL=g.createContext(void 0);function Dc(e){const t=g.useContext(EL);return e||t||"ltr"}var Sn="Accordion",TL=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[$x,PL,RL]=fh(Sn),[Lh,KU]=lr(Sn,[RL,ok]),Fx=ok(),hk=M.forwardRef((e,t)=>{const{type:r,...n}=e,s=n,i=n;return a.jsx($x.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?a.jsx(DL,{...i,ref:t}):a.jsx(ML,{...s,ref:t})})});hk.displayName=Sn;var[fk,IL]=Lh(Sn),[mk,OL]=Lh(Sn,{collapsible:!1}),ML=M.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:s=()=>{},collapsible:i=!1,...o}=e,[l,c]=bn({prop:r,defaultProp:n??"",onChange:s,caller:Sn});return a.jsx(fk,{scope:e.__scopeAccordion,value:M.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:M.useCallback(()=>i&&c(""),[i,c]),children:a.jsx(mk,{scope:e.__scopeAccordion,collapsible:i,children:a.jsx(pk,{...o,ref:t})})})}),DL=M.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:s=()=>{},...i}=e,[o,l]=bn({prop:r,defaultProp:n??[],onChange:s,caller:Sn}),c=M.useCallback(u=>l((h=[])=>[...h,u]),[l]),d=M.useCallback(u=>l((h=[])=>h.filter(f=>f!==u)),[l]);return a.jsx(fk,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:d,children:a.jsx(mk,{scope:e.__scopeAccordion,collapsible:!0,children:a.jsx(pk,{...i,ref:t})})})}),[LL,$h]=Lh(Sn),pk=M.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:s,orientation:i="vertical",...o}=e,l=M.useRef(null),c=Pe(l,t),d=PL(r),h=Dc(s)==="ltr",f=le(e.onKeyDown,m=>{var A;if(!TL.includes(m.key))return;const b=m.target,x=d().filter(E=>{var O;return!((O=E.ref.current)!=null&&O.disabled)}),w=x.findIndex(E=>E.ref.current===b),v=x.length;if(w===-1)return;m.preventDefault();let p=w;const y=0,j=v-1,N=()=>{p=w+1,p>j&&(p=y)},S=()=>{p=w-1,p<y&&(p=j)};switch(m.key){case"Home":p=y;break;case"End":p=j;break;case"ArrowRight":i==="horizontal"&&(h?N():S());break;case"ArrowDown":i==="vertical"&&N();break;case"ArrowLeft":i==="horizontal"&&(h?S():N());break;case"ArrowUp":i==="vertical"&&S();break}const k=p%v;(A=x[k].ref.current)==null||A.focus()});return a.jsx(LL,{scope:r,disabled:n,direction:s,orientation:i,children:a.jsx($x.Slot,{scope:r,children:a.jsx(de.div,{...o,"data-orientation":i,ref:c,onKeyDown:n?void 0:f})})})}),zu="AccordionItem",[$L,Ux]=Lh(zu),gk=M.forwardRef((e,t)=>
578{const{__scopeAccordion:r,value:n,...s}=e,i=$h(zu,r),o=IL(zu,r),l=Fx(r),c=$n(),d=n&&o.value.includes(n)||!1,u=i.disabled||e.disabled;return a.jsx($L,{scope:r,open:d,disabled:u,triggerId:c,children:a.jsx(_L,{"data-orientation":i.orientation,"data-state":jk(d),...l,...s,ref:t,disabled:u,open:d,onOpenChange:h=>{h?o.onItemOpen(n):o.onItemClose(n)}})})});gk.displayName=zu;var xk="AccordionHeader",vk=M.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,s=$h(Sn,r),i=Ux(xk,r);return a.jsx(de.h3,{"data-orientation":s.orientation,"data-state":jk(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});vk.displayName=xk;var zp="AccordionTrigger",yk=M.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,s=$h(Sn,r),i=Ux(zp,r),o=OL(zp,r),l=Fx(r);return a.jsx($x.ItemSlot,{scope:r,children:a.jsx(CL,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":s.orientation,id:i.triggerId,...l,...n,ref:t})})});yk.displayName=zp;var bk="AccordionContent",wk=M.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,s=$h(Sn,r),i=Ux(bk,r),o=Fx(r);return a.jsx(AL,{role:"region","aria-labelledby":i.triggerId,"data-orientation":s.orientation,...o,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});wk.displayName=bk;function jk(e){return e?"open":"closed"}var FL=hk,UL=gk,zL=vk,Nk=yk,Sk=wk;const BL=FL,kk=g.forwardRef(({className:e,...t},r)=>a.jsx(UL,{ref:r,className:X("border-b",e),...t}));kk.displayName="AccordionItem";const _k=g.forwardRef(({className:e,children:t,...r},n)=>a.jsx(zL,{className:"flex",children:a.jsxs(Nk,{ref:n,className:X("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,a.jsx(Jg,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));_k.displayName=Nk.displayName;const Ck=g.forwardRef(({className:e,children:t,...r},n)=>a.jsx(Sk,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:a.jsx("div",{className:X("pb-4 pt-0",e),children:t})}));Ck.displayName=Sk.displayName;const VL="/assets/about-hero-BGoVLMXk.jpg",HL="/assets/team-collaboration-s_lc5Sot.jpg",WL="/assets/business-success-dZ0Q9TDR.jpg",qL=()=>{g.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);const e=[{icon:a.jsx(tx,{className:"w-8 h-8"}),title:"Innovation First",description:"We push boundaries and embrace cutting-edge AI technology to solve real business problems."},{icon:a.jsx(qr,{className:"w-8 h-8"}),title:"Customer Obsession",description:"Every feature we build starts with understanding the challenges small businesses face daily."},{icon:a.jsx(Vt,{className:"w-8 h-8"}),title:"Trust & Transparency",description:"We believe in honest communication and building long-term relationships with our customers."},{icon:a.jsx(zr,{className:"w-8 h-8"}),title:"Empowerment",description:"We exist to level the playing field, giving small businesses enterprise-level capabilities."}],t=[{question:"What is Aristle AI and who is it for?",answer:"Aristle AI is an all-in-one intelligent platform designed specifically for small businesses. We help entrepreneurs and small business owners automate their operations across social media, finance, payroll, and more â all from a single dashboard. If you're tired of juggling multiple tools and want AI to do the heavy lifting, Aristle is for you."},{question:"How does Aristle AI differ from other business management tools?",answer:"Unlike traditional tools that require manual input and fragmented workflows, Aristle uses advanced AI to proactively recommend actions, automate routine tasks, and provide intelligent insights. We unify all your critical business functions in one place, eliminating the need for multiple subscriptions and reducing complexity."},{question:"Is my business data safe with Aristle?",answer:"Absolutely. Security is at the core of everything we build. We use enterprise-grade encryption, comply with industry standards, and never share your data with third parties. Your business information stays yours â always."},{question:"How long does it take to get started?",answer:"Most businesses are up and running within 24 hours. Our onboarding team helps you connect your existing tools, import your data, and configure the platform to match your workflow. We also provide training sessions to ensure your team gets the most out of Aristle."},{question:"Can I try Aristle before committing to a plan?",answer:"Yes! We offer a free consultation where we demonstrate how Aristle can specifically benefit your business. We also have a pilot program for businesses that want to test the platform with real data before making a decision."},{question:"What kind of support does Aristle provide?",answer:"We offer dedicated support through multiple channels including email, chat, and ph
578one. Professional and Enterprise customers receive priority support with faster response times. We also provide extensive documentation, video tutorials, and regular webinars to help you succeed."}],r=[Nx(),oD(t),Oc([{name:"Home",url:"/"},{name:"About",url:"/about"}]),{"@context":"https://schema.org","@type":"AboutPage",name:"About Aristle AI",description:"Learn about Aristle AI's mission to empower small businesses with accessible AI technology",url:"https://aristle-ai.lovable.app/about",mainEntity:{"@type":"Organization",name:"Aristle AI",foundingDate:"2024",description:"AI consultancy specializing in intelligent automation for small businesses"}}];return a.jsxs("main",{className:"min-h-screen pt-16",children:[a.jsx(vr,{title:"About Us - Our Mission, Vision & Values",description:"Learn about Aristle AI's mission to democratize AI for small businesses. Discover our story, values, and commitment to empowering entrepreneurs with enterprise-grade AI technology.",keywords:"about Aristle AI, AI company, small business AI mission, AI for entrepreneurs, business automation company, AI consultancy about, company values, AI startup story",canonicalUrl:"/about",structuredData:r}),a.jsx(ua,{}),a.jsxs("section",{className:"relative h-[60vh] min-h-[400px] flex items-center justify-center overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:`url(${VL})`}}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background/80 via-background/60 to-background"}),a.jsxs("div",{className:"relative z-10 text-center px-4 max-w-4xl mx-auto",children:[a.jsxs("h1",{className:"text-4xl md:text-6xl font-bold mb-6",children:["About ",a.jsx("span",{className:"text-gradient",children:"Aristle AI"})]}),a.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:"Empowering small businesses to compete like enterprises through intelligent automation"})]})]}),a.jsx("section",{className:"py-20 px-4 md:px-8",children:a.jsx("div",{className:"max-w-7xl mx-auto",children:a.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Our Story"}),a.jsxs("div",{className:"space-y-4 text-muted-foreground",children:[a.jsx("p",{children:"Aristle AI was born from a simple observation: small businesses are the backbone of our economy, yet they're often left behind in the AI revolution. While large enterprises invest millions in automation and data analytics, small business owners are stuck with fragmented tools, manual processes, and endless spreadsheets."}),a.jsx("p",{children:"Our founders experienced this firsthand. After years of building Cloud Services, Data Platforms, AI/ML solutions for Fortune 500 companies, they realized the same technology could transform how small businesses operate â if only it were accessible and affordable."}),a.jsx("p",{children:"In 2024, we set out to change that. We assembled a team of AI engineers, business strategists, and small business advocates with one mission: to democratize intelligent automation for every entrepreneur."}),a.jsx("p",{children:"Today, Aristle AI serves businesses across industries, helping them save time, reduce costs, and grow smarter. But we're just getting started."})]})]}),a.jsxs("div",{className:"relative",children:[a.jsx("img",{src:HL,alt:"Aristle AI team collaborating on AI solutions for small businesses",className:"rounded-2xl shadow-2xl w-full"}),a.jsx("div",{className:"absolute -bottom-6 -left-6 w-32 h-32 bg-primary/20 rounded-2xl -z-10"}),a.jsx("div",{className:"absolute -top-6 -right-6 w-24 h-24 bg-secondary/20 rounded-2xl -z-10"})]})]})})}),a.jsx("section",{className:"bg-muted/30 py-20 px-4 md:px-8",children:a.jsx("div",{className:"max-w-7xl mx-auto",children:a.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[a.jsxs(ie,{className:"p-8 bg-gradient-to-br from-primary/10 to-primary/5 border-primary/20",children:[a.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[a.jsx("div",{className:"p-3 bg-primary/20 rounded-xl",children:a.jsx(yo,{className:"w-8 h-8 text-primary"})}),a.jsx("h3",{className:"text-2xl font-bold",children:"Our Mission"})]}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"To empower small businesses with accessible, intelligent AI tools that simplify operations, uncover growth opportunities, and enable entrepreneurs to focus on what they do best â building their dreams."})]}),a.jsxs(ie,{className:"p-8 bg-gradient-to-br from-secondary/10 to-secondary/5 border-secondary/20",children:[a.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[a.jsx("div",{className:"p-3 bg-secondary/20 rounded-xl",children:a.jsx(_c,{className:"w-8 h-8 text-secondary"})}),a.jsx("h3",{className:"text-2xl font-bold",children:"Our Vision"})]}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"A world
578where every small business has access to enterprise-grade AI capabilities, creating a more equitable business landscape where innovation and hard work â not just resources â determine success."})]})]})})}),a.jsx("section",{className:"py-20 px-4 md:px-8",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Our Values"}),a.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"These core principles guide everything we do at Aristle AI"})]}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:e.map((n,s)=>a.jsxs(ie,{className:"p-6 text-center hover:shadow-lg transition-all hover:-translate-y-1 duration-300",children:[a.jsx("div",{className:"inline-flex p-4 bg-primary/10 rounded-2xl mb-4 text-primary",children:n.icon}),a.jsx("h3",{className:"text-lg font-semibold mb-2",children:n.title}),a.jsx("p",{className:"text-sm text-muted-foreground",children:n.description})]},s))})]})}),a.jsx("section",{className:"py-12 px-4 md:px-8",children:a.jsx("div",{className:"max-w-5xl mx-auto",children:a.jsxs("div",{className:"relative rounded-3xl overflow-hidden",children:[a.jsx("img",{src:WL,alt:"Small business owner achieving success with Aristle AI automation",className:"w-full h-[400px] object-cover"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-background/90 to-transparent flex items-center",children:a.jsxs("div",{className:"p-8 md:p-12 max-w-lg",children:[a.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4",children:"Built for Businesses Like Yours"}),a.jsx("p",{className:"text-muted-foreground mb-6",children:"Join the growing community of small businesses who have transformed their operations with Aristle AI. From local retailers to growing startups, we help businesses of all types succeed."}),a.jsx(xe,{to:"/consultation",children:a.jsx(se,{size:"lg",children:"Start Your Journey"})})]})})]})})}),a.jsx("section",{className:"bg-muted/30 py-20 px-4 md:px-8",children:a.jsxs("div",{className:"max-w-3xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Frequently Asked Questions"}),a.jsx("p",{className:"text-muted-foreground",children:"Got questions? We've got answers."})]}),a.jsx(BL,{type:"single",collapsible:!0,className:"space-y-4",children:t.map((n,s)=>a.jsxs(kk,{value:`item-${s}`,className:"bg-background rounded-xl px-6 border",children:[a.jsx(_k,{className:"text-left font-medium hover:no-underline",children:n.question}),a.jsx(Ck,{className:"text-muted-foreground",children:n.answer})]},s))})]})}),a.jsx("section",{className:"py-20 px-4 md:px-8",children:a.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Ready to Transform Your Business?"}),a.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"Take the first step toward smarter, AI-powered growth today."}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsx(xe,{to:"/consultation",children:a.jsx(se,{size:"lg",className:"text-lg px-8",children:"Schedule a Consultation"})}),a.jsx(xe,{to:"/platform",children:a.jsx(se,{size:"lg",variant:"outline",className:"text-lg px-8",children:"Explore the Platform"})})]})]})}),a.jsx("footer",{className:"bg-card border-t border-border py-12 px-4 md:px-8",children:a.jsxs("div",{className:"max-w-7xl mx-auto text-center text-muted-foreground",children:[a.jsx("p",{className:"mb-2",children:"© 2025 Aristle AI. All rights reserved."}),a.jsx("p",{className:"text-sm",children:"Empowering businesses with accessible AI technology"})]})})]})},GL=[{icon:Xg,label:"Calories",description:"Track daily caloric intake and expenditure"},{icon:vo,label:"Carbs & Macros",description:"Monitor carbohydrates, proteins, and fats"},{icon:Er,label:"Glucose (A1C)",description:"Track blood sugar levels over time"},{icon:zr,label:"Cholesterol",description:"Monitor heart health indicators"}],KL=[{icon:QT,name:"Fitbit",description:"Sync steps, sleep, and heart rate data"},{icon:NT,name:"Apple Health",description:"Connect all your Apple health data"}
578,{icon:PT,name:"Oura Ring",description:"Import sleep and readiness scores"}],ZL=[{icon:L1,label:"Steps & Stairs",value:"10,432 steps"},{icon:ST,label:"Cycling",value:"12.5 miles"},{icon:Er,label:"Running",value:"5K completed"},{icon:Xg,label:"Calories Burnt",value:"2,340 kcal"}],YL=()=>{const e=[Nx(),{"@context":"https://schema.org","@type":"SoftwareApplication",name:"Strahut",applicationCategory:"HealthApplication",operatingSystem:"Web, iOS, Android",description:"AI-powered health tracking platform that combines food analysis, fitness monitoring, and health metrics in one place",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},featureList:["AI Food Photo Analysis","Calorie Tracking","Glucose Monitoring","Fitbit Integration","Apple Health Integration","Oura Ring Integration","Activity Tracking"]}];return a.jsxs("main",{className:"min-h-screen bg-gradient-to-b from-emerald-50 via-white to-cyan-50 dark:from-gray-950 dark:via-gray-900 dark:to-gray-950",children:[a.jsx(vr,{title:"Strahut - AI-Powered Health, Food & Fitness Tracking",description:"Track your health metrics, sync with Fitbit, Apple Health, and Oura. Use AI to analyze your food and calculate calories instantly. Your complete health companion.",keywords:"health tracking, calorie counter, food analysis AI, Fitbit integration, Apple Health, glucose monitoring, A1C tracking, fitness app, nutrition tracking, meal logging",canonicalUrl:"/strahut",structuredData:e}),a.jsx(ua,{}),a.jsxs("section",{className:"pt-24 pb-16 px-4 md:px-8 relative overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))] from-emerald-200/40 via-transparent to-transparent dark:from-emerald-900/20"}),a.jsxs("div",{className:"max-w-6xl mx-auto relative z-10",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-emerald-100 dark:bg-emerald-900/30 text-emerald-700 dark:text-emerald-300 text-sm font-medium mb-6",children:[a.jsx(Ga,{className:"w-4 h-4"}),a.jsx("span",{children:"Powered by Aristle AI"})]}),a.jsx("h1",{className:"text-5xl md:text-7xl font-bold mb-6",children:a.jsx("span",{className:"bg-gradient-to-r from-emerald-600 via-cyan-600 to-teal-600 bg-clip-text text-transparent",children:"Strahut"})}),a.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground max-w-3xl mx-auto mb-4",children:"Your complete health companion at the intersection of"}),a.jsxs("div",{className:"flex flex-wrap justify-center gap-4 mb-8",children:[a.jsx("span",{className:"px-4 py-2 rounded-full bg-rose-100 dark:bg-rose-900/30 text-rose-700 dark:text-rose-300 font-semibold",children:"ð¥ Health Metrics"}),a.jsx("span",{className:"px-4 py-2 rounded-full bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 font-semibold",children:"ð Fitness Tracking"}),a.jsx("span",{className:"px-4 py-2 rounded-full bg-amber-100 dark:bg-amber-900/30 text-amber-700 dark:text-amber-300 font-semibold",children:"ð Food Analysis"})]}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto mb-8",children:"Track calories, monitor glucose levels, sync with your favorite wearables, and let AI analyze your meals with just a photo."}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsxs(se,{size:"lg",className:"bg-emerald-600 hover:bg-emerald-700 text-white text-lg px-8 py-6",children:["Get Early Access",a.jsx(tt,{className:"ml-2 w-5 h-5"})]}),a.jsx(se,{size:"lg",variant:"outline",className:"text-lg px-8 py-6 border-emerald-300 dark:border-emerald-700",children:"Watch Demo"})]})]}),a.jsx("div",{className:"relative max-w-4xl mx-auto",children:a.jsx("div",{className:"bg-white dark:bg-gray-800 rounded-3xl shadow-2xl border border-gray-200 dark:border-gray-700 p-8 backdrop-blur-xl",children:a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[a.jsxs("div",{className:"bg-gradient-to-br from-emerald-500 to-teal-600 rounded-2xl p-6 text-white",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[a.jsx(zr,{className:"w-6 h-6"}),a.jsx("span",{className:"font-semibold",children:"Health Score"})]}),a.jsx("div",{className:"text-5xl font-bold mb-2",children:"87"}),a.jsx("div",{className:"text-emerald-100 text-sm",children:"+5 from last week"})]}),a.jsxs("div",{className:"bg-gradient-to-br from-blue-500 to-cyan-600 rounded-2xl p-6 text-white",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[a.jsx(Er,{className:"w-6 h-6"}),a.jsx("span",{className:"font-semibold",children:"Today's Activity"})]}),a.jsx("div",{className:"text-5xl font-bold mb-2",children:"8,432"}),a.jsx("div",{className:"text-blue-100 text-sm",children:"steps ⢠4.2 miles"})]}),a.jsxs("div",{className:"bg-gradient-to-br from-amber-500 to-orange-600 rounded-2xl p-6 text-white",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[a.jsx(Ui,{className:"w-6 h-6"}),a.jsx("span",{className:"font-semibold",children:"Nutrition"})]}),a.jsx("div",{className:"text-5xl font-bold mb-2",children:"1,847"}),a.jsx("div",{className:"text-amber-100 text-sm mb-2",children:"kcal ⢠153g left"}),a.jsxs(xe,{to:"/gavrun",className:"text-xs text-white/90 hover:text-white underline underline-offset-2 flex items-center gap-1",children:["Eating out? Try Gavrun ",a.jsx(tt,{className:"w-3 h-3"})]})]})]})})})]})]}),a.jsx("section",{className:"py-20 px-4 md:px-8 bg-white dark:bg-gray-900",children:a.jsx("div",{className:"max-w-6xl mx-auto",children:a.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-amber-100 dar
578k:bg-amber-900/30 text-amber-700 dark:text-amber-300 text-sm font-medium mb-4",children:[a.jsx(Sy,{className:"w-4 h-4"}),"AI-Powered"]}),a.jsxs("h2",{className:"text-4xl font-bold mb-6",children:["Snap a Photo,",a.jsx("br",{}),a.jsx("span",{className:"text-amber-600",children:"Know Your Nutrition"})]}),a.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:"Our AI instantly analyzes your meals from a single photo. Get accurate calorie counts, macro breakdowns, and ingredient lists in seconds."}),a.jsxs("ul",{className:"space-y-4",children:[a.jsxs("li",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-6 h-6 rounded-full bg-emerald-100 dark:bg-emerald-900/30 flex items-center justify-center flex-shrink-0 mt-0.5",children:a.jsx("span",{className:"text-emerald-600 text-sm",children:"â"})}),a.jsx("span",{children:"Identify ingredients automatically from photos"})]}),a.jsxs("li",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-6 h-6 rounded-full bg-emerald-100 dark:bg-emerald-900/30 flex items-center justify-center flex-shrink-0 mt-0.5",children:a.jsx("span",{className:"text-emerald-600 text-sm",children:"â"})}),a.jsx("span",{children:"Calculate calories, carbs, protein, and fats"})]}),a.jsxs("li",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-6 h-6 rounded-full bg-emerald-100 dark:bg-emerald-900/30 flex items-center justify-center flex-shrink-0 mt-0.5",children:a.jsx("span",{className:"text-emerald-600 text-sm",children:"â"})}),a.jsx("span",{children:"Track portions and serving sizes accurately"})]}),a.jsxs("li",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-6 h-6 rounded-full bg-emerald-100 dark:bg-emerald-900/30 flex items-center justify-center flex-shrink-0 mt-0.5",children:a.jsx("span",{className:"text-emerald-600 text-sm",children:"â"})}),a.jsx("span",{children:"Get personalized meal suggestions"})]})]}),a.jsxs("div",{className:"mt-6 p-4 rounded-xl bg-gradient-to-r from-orange-100 to-amber-100 dark:from-orange-900/20 dark:to-amber-900/20 border border-orange-200 dark:border-orange-800",children:[a.jsxs("p",{className:"text-sm text-muted-foreground mb-2",children:[a.jsx("span",{className:"font-semibold text-foreground",children:"Prefer dining out?"})," Discover restaurants and menu items that match your health goals without compromising on taste."]}),a.jsxs(xe,{to:"/gavrun",className:"inline-flex items-center gap-1 text-sm font-medium text-orange-600 dark:text-orange-400 hover:underline",children:["Explore Gavrun ",a.jsx(tt,{className:"w-4 h-4"})]})]})]}),a.jsx("div",{className:"relative",children:a.jsx("div",{className:"bg-gradient-to-br from-amber-100 to-orange-100 dark:from-amber-900/20 dark:to-orange-900/20 rounded-3xl p-8",children:a.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-2xl shadow-xl p-6",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsx(Sy,{className:"w-8 h-8 text-amber-600"}),a.jsx("span",{className:"font-semibold text-lg",children:"Meal Analysis"})]}),a.jsx("div",{className:"aspect-video bg-gradient-to-br from-amber-200 to-orange-200 dark:from-amber-800/30 dark:to-orange-800/30 rounded-xl mb-4 flex items-center justify-center",children:a.jsx("div",{className:"text-6xl",children:"ð¥"})}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex justify-between items-center p-3 bg-gray-50 dark:bg-gray-700 rounded-lg",children:[a.jsx("span",{className:"font-medium",children:"Calories"}),a.jsx("span",{className:"text-amber-600 font-bold",children:"485 kcal"})]}),a.jsxs("div",{className:"flex justify-between items-center p-3 bg-gray-50 dark:bg-gray-700 rounded-lg",children:[a.jsx("span",{className:"font-medium",children:"Protein"}),a.jsx("span",{className:"text-blue-600 font-bold",children:"32g"})]}),a.jsxs("div",{className:"flex justify-between items-center p-3 bg-gray-50 dark:bg-gray-700 rounded-lg",children:[a.jsx("span",{className:"font-medium",children:"Carbs"}),a.jsx("span",{className:"text-emerald-600 font-bold",children:"45g"})]})]})]})})})]})})}),a.jsx("section",{className:"py-20 px-4 md:px-8 bg-gradient-to-b from-rose-50 to-white dark:from-gray-900 dark:to-gray-800",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-rose-100 dar
578k:bg-rose-900/30 text-rose-700 dark:text-rose-300 text-sm font-medium mb-4",children:[a.jsx(zr,{className:"w-4 h-4"}),"Health Metrics"]}),a.jsx("h2",{className:"text-4xl font-bold mb-4",children:"Track What Matters Most"}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Monitor your vital health indicators in one place. From daily calories to long-term glucose trends."})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:GL.map((t,r)=>a.jsxs(ie,{className:"border-rose-100 dark:border-rose-900/30 hover:shadow-lg transition-shadow",children:[a.jsxs(Ve,{children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-rose-100 dark:bg-rose-900/30 flex items-center justify-center mb-2",children:a.jsx(t.icon,{className:"w-6 h-6 text-rose-600 dark:text-rose-400"})}),a.jsx(He,{className:"text-lg",children:t.label})]}),a.jsx(Me,{children:a.jsx(Et,{children:t.description})})]},r))})]})}),a.jsx("section",{className:"py-20 px-4 md:px-8 bg-white dark:bg-gray-900",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 text-sm font-medium mb-4",children:[a.jsx(KT,{className:"w-4 h-4"}),"Seamless Integrations"]}),a.jsx("h2",{className:"text-4xl font-bold mb-4",children:"Connect Your Favorite Devices"}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Sync data from Fitbit, Apple Health, Oura Ring, and more. All your health data in one unified dashboard."})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mb-12",children:KL.map((t,r)=>a.jsxs(ie,{className:"text-center hover:shadow-xl transition-all hover:-translate-y-1",children:[a.jsxs(Ve,{children:[a.jsx("div",{className:"w-16 h-16 rounded-2xl bg-gradient-to-br from-blue-100 to-cyan-100 dark:from-blue-900/30 dark:to-cyan-900/30 flex items-center justify-center mx-auto mb-4",children:a.jsx(t.icon,{className:"w-8 h-8 text-blue-600 dark:text-blue-400"})}),a.jsx(He,{children:t.name})]}),a.jsx(Me,{children:a.jsx(Et,{children:t.description})})]},r))}),a.jsxs("div",{className:"bg-gradient-to-br from-blue-500 to-cyan-600 rounded-3xl p-8 text-white",children:[a.jsx("h3",{className:"text-2xl font-bold mb-6 text-center",children:"Real-Time Activity Tracking"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:ZL.map((t,r)=>a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"w-14 h-14 rounded-2xl bg-white/20 flex items-center justify-center mx-auto mb-3",children:a.jsx(t.icon,{className:"w-7 h-7"})}),a.jsx("div",{className:"text-sm text-blue-100 mb-1",children:t.label}),a.jsx("div",{className:"font-bold text-lg",children:t.value})]},r))})]})]})}),a.jsx("section",{className:"py-20 px-4 md:px-8 bg-gray-50 dark:bg-gray-800",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsx("h2",{className:"text-4xl font-bold mb-4",children:"Everything You Need to Stay Healthy"}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"A complete health management platform designed for real results."})]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[a.jsxs(ie,{className:"bg-white dark:bg-gray-900",children:[a.jsxs(Ve,{children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-emerald-100 dark:bg-emerald-900/30 flex items-center justify-center mb-2",children:a.jsx(wn,{className:"w-6 h-6 text-emerald-600"})}),a.jsx(He,{children:"Progress Insights"})]}),a.jsx(Me,{children:a.jsx(Et,{children:"Visualize your health journey with beautiful charts and actionable insights tailored to your goals."})})]}),a.jsxs(ie,{className:"bg-white dark:bg-gray-900",children:[a.jsxs(Ve,{children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-purple-100 dark:bg-purple-900/30 flex items-center justify-center mb-2",children:a.jsx(Ga,{className:"w-6 h-6 text-purple-600"})}),a.jsx(He,{children:"Smart Reminders"})]}),a.jsx(Me,{children:a.jsx(Et,{children:"Get personalized notifications to log meals, take medications, or hit your daily step goal."})})]}),a.jsxs(ie,{className:"bg-white dark:bg-gray-900",children:[a.jsxs(Ve,{children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-cyan-100 dark:bg-cyan-900/30 flex items-center justify-center mb-2",children:a.jsx(Vt,{className:"w-6 h-6 text-cyan-600"})}),a.jsx(He,{children:"Privacy First"})]}),a.jsx(Me,{children:a.jsx(Et,{children:"Your health data is encrypted and secure. You control who sees your information."})})]})]})]})}),a.jsx("section",{className:"py-20 px-4 md:px-8 bg-white dark:bg-gray-900",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-violet-100 dar
578k:bg-violet-900/30 text-violet-700 dark:text-violet-300 text-sm font-medium mb-4",children:[a.jsx(RT,{className:"w-4 h-4"}),"Smart Onboarding"]}),a.jsx("h2",{className:"text-4xl font-bold mb-4",children:"Get Started in Minutes"}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Import your health data from annual physicals, blood tests, or enter manually. Set your goals and let Strahut guide your journey."})]}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-start",children:[a.jsx("div",{className:"space-y-6",children:a.jsxs("div",{className:"bg-gradient-to-br from-violet-50 to-purple-50 dark:from-violet-900/20 dark:to-purple-900/20 rounded-3xl p-8",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-violet-100 dark:bg-violet-900/40 flex items-center justify-center",children:a.jsx(D1,{className:"w-6 h-6 text-violet-600 dark:text-violet-400"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-bold",children:"Import Your Health Records"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"From annual physicals or blood work"})]})]}),a.jsx("div",{className:"bg-white dark:bg-gray-800 rounded-2xl p-6 border border-violet-100 dark:border-violet-800 mb-4",children:a.jsxs("div",{className:"flex items-center justify-center flex-col gap-4 py-6",children:[a.jsx("div",{className:"w-16 h-16 rounded-full bg-violet-100 dark:bg-violet-900/40 flex items-center justify-center",children:a.jsx(YT,{className:"w-8 h-8 text-violet-600 dark:text-violet-400"})}),a.jsxs("div",{className:"text-center",children:[a.jsx("p",{className:"font-semibold mb-1",children:"Upload Lab Report PDF"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"We'll automatically extract your health metrics"})]})]})}),a.jsxs("div",{className:"space-y-3",children:[a.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Automatically extracted:"}),a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{className:"flex items-center gap-2 p-3 bg-white dark:bg-gray-800 rounded-lg",children:[a.jsx(zr,{className:"w-4 h-4 text-rose-500"}),a.jsx("span",{className:"text-sm",children:"Cholesterol (LDL/HDL)"})]}),a.jsxs("div",{className:"flex items-center gap-2 p-3 bg-white dark:bg-gray-800 rounded-lg",children:[a.jsx(Er,{className:"w-4 h-4 text-amber-500"}),a.jsx("span",{className:"text-sm",children:"Blood Sugar (A1C)"})]}),a.jsxs("div",{className:"flex items-center gap-2 p-3 bg-white dark:bg-gray-800 rounded-lg",children:[a.jsx(vo,{className:"w-4 h-4 text-blue-500"}),a.jsx("span",{className:"text-sm",children:"Triglycerides"})]}),a.jsxs("div",{className:"flex items-center gap-2 p-3 bg-white dark:bg-gray-800 rounded-lg",children:[a.jsx(Vt,{className:"w-4 h-4 text-emerald-500"}),a.jsx("span",{className:"text-sm",children:"Blood Pressure"})]})]})]})]})}),a.jsx("div",{className:"space-y-6",children:a.jsxs("div",{className:"bg-gradient-to-br from-emerald-50 to-teal-50 dark:from-emerald-900/20 dark:to-teal-900/20 rounded-3xl p-8",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-emerald-100 dark:bg-emerald-900/40 flex items-center justify-center",children:a.jsx(yo,{className:"w-6 h-6 text-emerald-600 dark:text-emerald-400"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-bold",children:"Set Your Health Goals"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Personalized targets based on your data"})]})]}),a.jsx("div",{className:"bg-white dark:bg-gray-800 rounded-2xl p-6 border border-emerald-100 dark:border-emerald-800 space-y-4",children:a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-center justify-between p-3 bg-emerald-50 dark:bg-emerald-900/20 rounded-lg",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Yt,{className:"w-5 h-5 text-emerald-600"}),a.jsx("span",{className:"font-medium",children:"Lower A1C to 5.5%"})]}),a.jsx("span",{className:"text-sm text-emerald-600 font-semibold",children:"Current: 6.2%"})]}),a.jsxs("div",{className:"flex items-center justify-between p-3 bg-emerald-50 dark:bg-emerald-900/20 rounded-lg",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Yt,{className:"w-5 h-5 text-emerald-600"}),a.jsx("span",{className:"font-medium",children:"Reduce LDL to 100mg/dL"})]}),a.jsx("span",{className:"text-sm text-emerald-600 font-semibold",children:"Current: 145"})]}),a.jsxs("div",{className:"flex items-center justify-between p-3 bg-emerald-50 dark:bg-emerald-900/20 rounded-lg",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Yt,{className:"w-5 h-5 text-emerald-600"}),a.jsx("span",{className:"font-medium",children:"Daily 10,000 steps"})]}),a.jsx("span",{className:"text-sm text-emerald-600 font-semibold",children:"Avg: 7,500"})]}),a.jsxs("div",{className:"flex items-center justify-between p-3 bg-emerald-50 dark:bg-emerald-900/20 rounded-lg",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Yt,{className:"w-5 h-5 text-emerald-600"}),a.jsx("span",{className:"font-medium",children:"1,800 cal/day target"})]}),a.jsx("span",{className:"text-sm text-emerald-600 font-semibold",children:"Custom"})]})]})}),a.jsx("p",{className:"text-sm text-muted-foreground mt-4 text-center",children:"Don't have lab reports? Enter your metrics manually or skip for now"})]})})]})]})}),a.jsx("section",{className:"py-20 px-4 md:px-8 bg-gradient-to-b from-indigo-50 to-white dark:from-gray-800 dark:to-gray-900",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-indigo-100 dark:bg-indigo-900/30 text-indigo-700 dark:text-indigo-300 text-sm font-medium mb-4",children:[a.jsx(Zs,{className:"w-4 h-4"}),"AI-Powered Insights"]}),a.jsx("h2",{className:"text-4xl font-bold mb-4",children:"Track Progress, Stay on Course"}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-3xl mx-auto",children:"Don't wait anxiously for your next annual checkup. Monitor your health regularly with AI-driven recommendations and weekly progress reports."})]}),a.jsxs("div",{className:"grid md:grid-cols-3 gap-8 mb-12",children:[a.jsxs(ie,{className:"border-indigo-100 dark:border-indigo-900/30 hover:shadow-lg transition-shadow",children:[a.jsxs(Ve,{children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-indigo-100 dark:bg-indigo-900/30 flex items-center justify-center mb-2",children:a.jsx(dl,{className:"w-6 h-6 text-indigo-600 dark:text-indigo-400"})}),a.jsx(He,{className:"text-lg",children:"Daily & Weekly Reports"})]}),a.jsx(Me,{children:a.jsx(Et,{children:"Get personalized progress summaries showing trends in your metrics, activity levels, and nutritional intake."})})]}),a.jsxs(ie,{className:"border-indigo-100 dark:border-indigo-900/30 hover:shadow-lg transition-shadow",children:[a.jsxs(Ve,{children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-indigo-100 dark:bg-indigo-900/30 flex items-center justify-center mb-2",children:a.jsx(Zs,{className:"w-6 h-6 text-indigo-600 dark:text-indigo-400"})}),a.jsx(He,{className:"text-lg",children:"Smart Recommendations"})]}),a.jsx(Me,{children:a.jsx(Et,{children:"AI analyzes your patterns and suggests actionable changes to diet, exercise, and habits to reach your goals faster."})})]}),a.jsxs(ie,{className:"border-indigo-100 dark:border-indigo-900/30 hover:shadow-lg transition-shadow",children:[a.jsxs(Ve,{children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-indigo-100 dark:bg-indigo-900/30 flex items-center justify-center mb-2",children:a.jsx(R1,{className:"w-6 h-6 text-indigo-600 dark:text-indigo-400"})}),a.jsx(He,{className:"text-lg",children:"Proactive Alerts"})]}),a.jsx(Me,{children:a.jsx(Et,{children:"Receive early warnings when trends suggest you're off track, with guid
578ance to correct course before your next checkup."})})]})]}),a.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-3xl shadow-2xl border border-gray-200 dark:border-gray-700 p-8",children:[a.jsxs("div",{className:"flex items-center justify-between mb-6",children:[a.jsx("h3",{className:"text-xl font-bold",children:"Your Weekly Progress"}),a.jsx("span",{className:"text-sm text-muted-foreground",children:"Week of Jan 20 - Jan 26"})]}),a.jsxs("div",{className:"grid md:grid-cols-4 gap-6 mb-8",children:[a.jsxs("div",{className:"p-4 bg-emerald-50 dark:bg-emerald-900/20 rounded-xl",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx(_T,{className:"w-5 h-5 text-emerald-600"}),a.jsx("span",{className:"text-sm font-medium",children:"A1C Trend"})]}),a.jsx("div",{className:"text-2xl font-bold text-emerald-700 dark:text-emerald-400",children:"â 0.1%"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"On track for goal"})]}),a.jsxs("div",{className:"p-4 bg-blue-50 dark:bg-blue-900/20 rounded-xl",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx(L1,{className:"w-5 h-5 text-blue-600"}),a.jsx("span",{className:"text-sm font-medium",children:"Avg Steps"})]}),a.jsx("div",{className:"text-2xl font-bold text-blue-700 dark:text-blue-400",children:"9,247"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"+12% vs last week"})]}),a.jsxs("div",{className:"p-4 bg-amber-50 dark:bg-amber-900/20 rounded-xl",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx(Ui,{className:"w-5 h-5 text-amber-600"}),a.jsx("span",{className:"text-sm font-medium",children:"Avg Calories"})]}),a.jsx("div",{className:"text-2xl font-bold text-amber-700 dark:text-amber-400",children:"1,756"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Under target â"})]}),a.jsxs("div",{className:"p-4 bg-rose-50 dark:bg-rose-900/20 rounded-xl",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx(zr,{className:"w-5 h-5 text-rose-600"}),a.jsx("span",{className:"text-sm font-medium",children:"Health Score"})]}),a.jsx("div",{className:"text-2xl font-bold text-rose-700 dark:text-rose-400",children:"89"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"+3 from last week"})]})]}),a.jsx("div",{className:"bg-gradient-to-r from-indigo-500 to-purple-600 rounded-2xl p-6 text-white",children:a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-white/20 flex items-center justify-center flex-shrink-0",children:a.jsx(Zs,{className:"w-5 h-5"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold mb-2",children:"This Week's AI Insight"}),a.jsx("p",{className:"text-indigo-100 text-sm",children:"Great progress on your step goal! Your consistent walking is showing positive effects on your glucose levels. Consider adding 15 minutes of light cardio 3x this week to accelerate your A1C improvement. Also, your dinner carb intake tends to spike on weekends - try swapping one starchy side for vegetables."})]})]})})]})]})}),a.jsxs("section",{className:"py-20 px-4 md:px-8 bg-gradient-to-br from-emerald-600 via-teal-600 to-cyan-600 relative overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-grid-white/[0.05] bg-[size:32px_32px]"}),a.jsxs("div",{className:"max-w-4xl mx-auto text-center relative z-10",children:[a.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-6 text-white",children:"Start Your Health Journey Today"}),a.jsx("p",{className:"text-xl mb-8 text-emerald-100 max-w-2xl mx-auto",children:"Join thousands of users who are taking control of their health with Strahut. Free to start, powerful enough for pros."}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center",children:[a.jsxs(se,{size:"lg",className:"bg-white text-emerald-700 hover:bg-emerald-50 text-lg px-8 py-6 shadow-xl",children:["Get Early Access",a.jsx(tt,{className:"ml-2 w-5 h-5"})]}),a.jsx(xe,{to:"/consultation",children:a.jsx(se,{size:"lg",variant:"outline",className:"text-lg px-8 py-6 bg-white/10 border-white/30 text-white hover:bg-white/20",children:"Talk to Our Team"})})]})]})]}),a.jsx("footer",{className:"bg-gray-900 text-gray-400 py-12 px-4 md:px-8",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-6",children:[a.jsxs("div",{className:"text-center md:text-left",children:[a.jsx("h3",{className:"text-2xl font-bold text-white mb-2",children:"Strahut"}),a.jsx("p",{className:"text-sm",children:"A product by Aristle AI"})]}),a.jsxs("div",{className:"flex gap-6",children:[a.jsx(xe,{to:"/",className:"hover:text-white transition-colors",children:"Aristle AI"}),a.jsx(xe,{to:"/about",className:"hover:text-white transition-colors",children:"About"}),a.jsx(xe,{to:"/consultation",className:"hover:text-white transition-colors",children:"Contact"})]})]}),a.jsx("div",{className:"border-t border-gray-800 mt-8 pt-8 text-center text-sm",children:a.jsx("p",{children:"© 2025 Strahut by Aristle AI. All rights reserved."})})]})})]})},ob=[{label:"Home",href:"/zumie"},{label:"Case Study",href:"/zumie/case-study"},{label:"NovaCraft Demo",href:"/zumie/novacraft"}],zx=()=>{const[e,t]=g.useState(!1),r=ai();return a.jsxs("nav",{className:"sticky top-0 z-50 border-b border-border bg-background/80 backdrop-blur-lg",children:[a.jsxs("div",{className:"max-w-6xl mx-auto flex items-center justify-between px-4 md:px-8 h-16",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsxs(xe,{to:"/",className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[a.jsx(da,{className:"w-3 h-3"}),"Aristle AI"]}),a.jsx("span",{className:"text-border",children:"|"}),a.jsxs(xe,{to:"/zumie",className:"flex items-center gap-2 font-bold text-lg text-foreground",children:[a.jsx(Vt,{className:"w-6 h-6 text-primary"}),"Zumie"]})]}),a.jsxs("div",{className:"hidden md:flex items-center gap-6",children:[ob.map(n=>a.jsx(xe,{to:n.href,className:`text-sm font-medium transition-colors hover:text-primary ${r.pathname===n.href?"text-primary":"text-muted-foreground"}`,children:n.label},n.href)),a.jsx(xe,{to:"/consultation",children:a.jsx(se,{size:"sm",children:"Request Early Access"})})]}),a.jsx("button",{className:"md:hidden text-foreground",onClick:()=>t(!e),"aria-label":"Toggle menu",children:e?a.jsx(qa,{className:"w-5 h-5"}):a.jsx(zT,{className:"w-5 h-5"})})]}),e&&a.jsxs("div",{className:"md:hidden border-t border-border bg-background px-4 pb-4 space-y-3",children:[ob.map(n=>a.jsx(xe,{to:n.href,onClick:()=>t(!1),className:`block py-2 text-sm font-medium ${r.pathname===n.href?"text-primary":"text-muted-foreground"}`,children:n.label},n.href)),a.jsx(xe,{to:"/consultation",onClick:()=>t(!1),children:a.jsx(se,{size:"sm",className:"w-full",children:"Request Early Access"})})]})]})},JL=[{icon:Qg,title:"Agent Identity",description:"Establish cryptographic identity for every AI agent. Know who deployed it, what it can access, and what it's authorized to do.",details:["Unique agent credentials","Ownership attribution","Capability declarations","Trust chain verification"]},{icon:Cc,title:"Policy Enforcement",description:"Define and enforce execution boundaries. Control what agents can do, which APIs they call, and what data they touch.",details:["Granular permission policies","API access controls","Data boundary enforcement","Runtime policy evaluation"]},{icon:_c,title:"Observability",description:"Full visibility into every agent action. Real-time monitoring, audit trails, and behavioral analytics across your agent fleet.",details:["Real-time action logging","Behavioral anomaly detection","Complete audit trails","Fleet-wide dashboards"]},{icon:wu,title:"Trust & Governance",description:"Continuous trust scoring and governance controls. Ensure agents operate within approved boundaries at all times.",details:["Dynamic trust scoring","Compliance verification","Governance frameworks","Automated remediation"]}],QL=[{phase:"Discover",icon:qT,color:"from-primary to-secondary",items:["Agent inventory & discovery","Identity registration","Security posture assessment","Governance classification"]},{phase:"Control",icon:OT,color:"from-secondary to-accent",items:["Policy definition & enforcement","Execution boundaries","Access control management","Approval workflows"]}
578,{phase:"Monitor",icon:MT,color:"from-accent to-primary",items:["Real-time observability","Trust score tracking","Operational coordination","Safeguard enforcement"]}],XL=[{icon:Ln,label:"Security vulnerabilities",description:"Agents with unchecked API access create attack surfaces"},{icon:bu,label:"Compliance violations",description:"Unaudited agent actions fail regulatory requirements"},{icon:Vt,label:"IP leakage",description:"Agents accessing and transmitting sensitive data without controls"},{icon:Er,label:"Brand & legal risk",description:"Autonomous actions with real-world consequences and no oversight"}],e6=()=>{const e=["ð Zumie â Coming Soon: The Management Plane for AI Agents","ð Identity, Policy, Observability & Governance for Your AI Workforce","â¡ Secure, Govern & Control AI Agents and Agentic Workflows at Scale","ð¡ï¸ Enterprise-Grade Agent Lifecycle Management â Built from Day One","ð Re-envisioning Device Management, User Management, App Management with Agents and NHI"],[t,r]=M.useState(0);return M.useEffect(()=>{const n=setInterval(()=>{r(s=>(s+1)%e.length)},4e3);return()=>clearInterval(n)},[]),a.jsxs("div",{className:"min-h-screen bg-background zumie-theme pt-10",children:[a.jsx("div",{className:"fixed top-0 left-0 right-0 z-[60] bg-gradient-to-r from-primary via-secondary to-accent py-2 px-4 text-center overflow-hidden",children:a.jsx("p",{className:"text-sm font-semibold text-primary-foreground animate-fade-in",children:e[t]},t)}),a.jsx(vr,{title:"Zumie â The Management Plane for AI Agents",description:"Enterprise AI agent lifecycle management. Identity, governance, policy enforcement, and observability for autonomous AI agents."}),a.jsx(zx,{}),a.jsx("section",{className:"pt-24 pb-10 px-4 md:px-8",children:a.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full border border-accent/30 bg-accent/10 text-sm font-semibold text-accent mb-6",children:[a.jsx(Er,{className:"w-4 h-4"}),"New Direction"]}),a.jsxs("p",{className:"text-lg md:text-xl text-muted-foreground leading-relaxed",children:["We spent a year building AI agents and agentic workflows for SMBs â and kept hitting the same wall:"," ",a.jsx("strong",{className:"text-foreground",children:"no one could see, govern, or control the agents they were deploying"}),". The research made it clear â this isn't a gap, it's"," ",a.jsx("strong",{className:"text-foreground",children:"a critical unsolved problem"}),". So we're going all-in."]})]})}),a.jsx("section",{className:"pb-20 px-4 md:px-8",children:a.jsx("div",{className:"max-w-4xl mx-auto",children:a.jsxs("div",{className:"rounded-2xl border border-border bg-card p-8 md:p-10 shadow-lg relative overflow-hidden",children:[a.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-primary via-secondary to-accent"}),a.jsxs("h2",{className:"text-3xl md:text-5xl font-extrabold tracking-tight text-foreground text-center mb-3",children:["Meet ",a.jsx("span",{className:"text-gradient",children:"Zumie and Gavrun"})]}),a.jsx("p",{className:"text-muted-foreground text-center max-w-2xl mx-auto mb-10",children:"Our purpose-built management plane to secure, govern, and control AI agents and agentic workflows at scale â two ways to take control of your AI workforce. Pick the one that matches how your team works today."}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[a.jsxs("div",{className:"flex flex-col rounded-xl border border-border bg-muted/30 p-6 hover:border-primary/40 hover:shadow-md transition-all",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsx("div",{className:"w-11 h-11 rounded-lg bg-gradient-to-br from-primary to-secondary flex items-center justify-center flex-shrink-0",children:a.jsx(sp,{className:"w-5 h-5 text-primary-foreground"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-bold text-foreground text-lg leading-tight",children:"Zumie"}),a.jsx("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"Self-Hosted · DIY"})]})]}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-4",children:"A self-hosted, do-it-yourself solution for your AI & Agent Gateway. Get a head start building and deploy it entirely within your own VPC â your agents, your data, your controls."}),a.jsxs("a",{href:"https://aws.amazon.com/marketplace/pp/prodview-eovk5yccec3xy",target:"_blank",rel:"noopener noreferrer",className:"mt-auto inline-flex items-center justify-center gap-2 w-full px-4 py-2.5 rounded-lg border border-primary/40 bg-primary/10 text-sm font-semibold text-primary hover:bg-primary/20 transition-colors",children:["Get it on AWS Marketplace",a.jsx(tt,{className:"w-4 h-4"})]})]}),a.jsxs("div",{className:"flex flex-col rounded-xl border border-border bg-muted/30 p-6 hover:border-accent/40 hover:shadow-md transition-all",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsx("div",{className:"w-11 h-11 rounded-lg bg-gradient-to-br from-accent to-primary flex items-center justify-center flex-shrink-0",children:a.jsx(wu,{className:"w-5 h-5 text-primary-foreground"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-bold text-foreground text-lg leading-tight",children:"Gavrun"}),a.jsx("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"Cloud · SaaS"})]})]}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-4",children:"A cloud-based SaaS platform for Governance and Agent Management. Sign up, connect your agents, and start governing your AI workforce in minutes â no infrastru
578cture required."}),a.jsxs("a",{href:"https://www.gavrun.ai",target:"_blank",rel:"noopener noreferrer",className:"mt-auto inline-flex items-center justify-center gap-2 w-full px-4 py-2.5 rounded-lg border border-accent/40 bg-accent/10 text-sm font-semibold text-accent hover:bg-accent/20 transition-colors",children:["Explore Gavrun Cloud",a.jsx(tt,{className:"w-4 h-4"})]})]})]})]})})}),a.jsxs("section",{className:"relative pb-20 px-4 md:px-8 overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-background via-background to-primary/5"}),a.jsx("div",{className:"absolute top-20 right-0 w-[600px] h-[600px] bg-primary/5 rounded-full blur-[120px]"}),a.jsx("div",{className:"absolute bottom-0 left-0 w-[400px] h-[400px] bg-accent/5 rounded-full blur-[100px]"}),a.jsxs("div",{className:"max-w-6xl mx-auto relative z-10 pt-8",children:[a.jsxs("div",{className:"text-center space-y-6",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full border border-border bg-muted/50 text-sm font-medium text-muted-foreground",children:[a.jsx(Vt,{className:"w-4 h-4 text-primary"}),"AI Agent Lifecycle Management"]}),a.jsxs("h1",{className:"text-5xl md:text-7xl font-extrabold tracking-tight leading-[1.1]",children:[a.jsx("span",{className:"block text-foreground",children:"AI Workforce "}),a.jsx("span",{className:"block text-gradient",children:"Management Platform"})]}),a.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground max-w-3xl mx-auto leading-relaxed",children:"Engineers are deploying AI Agents and workflows that the Enterprises cannot see, govern, audit, or manage. Zumie changes that - identity, policy, observability, governance and enforcement all in one platform."}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center pt-4",children:[a.jsx(xe,{to:"/consultation",children:a.jsxs(se,{size:"lg",className:"text-lg px-8 py-6 shadow-lg hover:shadow-xl transition-all",children:["Request Early Access",a.jsx(tt,{className:"ml-2 w-5 h-5"})]})}),a.jsx("a",{href:"#how-it-works",children:a.jsx(se,{size:"lg",variant:"outline",className:"text-lg px-8 py-6",children:"See How It Works"})})]}),a.jsx("div",{className:"flex justify-center pt-2",children:a.jsxs("a",{href:"https://aws.amazon.com/marketplace/pp/prodview-eovk5yccec3xy",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-primary/5 border border-primary/30 hover:bg-primary/10 hover:border-primary/50 transition-colors group",children:[a.jsx(sp,{className:"w-4 h-4 text-primary"}),a.jsxs("span",{className:"text-sm font-medium",children:["Early preview available in"," ",a.jsx("span",{className:"font-semibold text-primary underline underline-offset-4",children:"AWS Marketplace"})]}),a.jsx(tt,{className:"w-3.5 h-3.5 text-primary transition-transform group-hover:translate-x-0.5"})]})})]}),a.jsx("div",{className:"mt-20 max-w-4xl mx-auto",children:a.jsxs("div",{className:"relative rounded-2xl border border-border bg-card/50 backdrop-blur-sm p-8 md:p-12",children:[a.jsx("div",{className:"absolute -top-px left-1/4 right-1/4 h-px bg-gradient-to-r from-transparent via-primary to-transparent"}),a.jsx("div",{className:"text-center mb-8",children:a.jsx("p",{className:"text-sm font-semibold text-primary uppercase tracking-wider",children:"Agent Control Plane"})}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[{icon:Qg,label:"Identity"},{icon:Cc,label:"Policy"},{icon:ex,label:"Execution"},{icon:_c,label:"Observability"}].map((n,s)=>a.jsxs("div",{className:"flex flex-col items-center gap-3 p-4 rounded-xl bg-muted/50 border border-border/50",children:[a.jsx("div",{className:"w-12 h-12 rounded-lg bg-gradient-to-br from-primary to-accent flex items-center justify-center",children:a.jsx(n.icon,{className:"w-6 h-6 text-primary-foreground"})}),a.jsx("span",{className:"text-sm font-semibold text-foreground",children:n.label})]},s))}),a.jsxs("div",{className:"mt-8 flex items-center justify-center gap-3 text-muted-foreground text-sm",children:[a.jsx(VT,{className:"w-4 h-4"}),a.jsx("span",{children:"Unified governance across your entire AI agent fleet"})]})]})})]})]}),a.jsx("section",{className:"py-24 px-4 md:px-8 bg-muted/30",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-16",children:[a.jsxs("h2",{className:"text-3xl md:text-5xl font-bold mb-4",children:["The ",a.jsx("span",{className:"text-gradient",children:"Ungoverned Agent"})," Problem"]}),a.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Software is no longer just code executed by humans. AI agents now act autonomously â
578calling APIs, accessing data, making decisions. Enterprises have no visibility or control."})]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-16",children:[a.jsxs("div",{className:"space-y-6",children:[a.jsx("h3",{className:"text-2xl font-bold text-foreground",children:"Decades of mastery â but not for agents"}),a.jsxs("p",{className:"text-muted-foreground text-lg leading-relaxed",children:["Enterprises have built robust systems for managing users, devices, workloads, and infrastructure. But AI agents operate ",a.jsx("strong",{className:"text-foreground",children:"outside"})," all of these systems."]}),a.jsxs("p",{className:"text-muted-foreground text-lg leading-relaxed",children:["Engineers are deploying agents that the enterprise"," ",a.jsx("strong",{className:"text-foreground",children:"cannot see, govern, audit, or shut down"}),"."]}),a.jsx("div",{className:"p-4 rounded-lg border border-destructive/30 bg-destructive/5",children:a.jsxs("p",{className:"text-sm font-semibold text-destructive flex items-center gap-2",children:[a.jsx(Ln,{className:"w-4 h-4"}),"Uncontrolled AI agents = enterprise risk"]})})]}),a.jsx("div",{className:"space-y-4",children:XL.map((n,s)=>a.jsxs("div",{className:"flex items-start gap-4 p-4 rounded-xl border border-border bg-card hover:shadow-md transition-shadow",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-destructive/10 flex items-center justify-center flex-shrink-0",children:a.jsx(n.icon,{className:"w-5 h-5 text-destructive"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground",children:n.label}),a.jsx("p",{className:"text-sm text-muted-foreground",children:n.description})]})]},s))})]})]})}),a.jsx("section",{className:"py-24 px-4 md:px-8",children:a.jsx("div",{className:"max-w-4xl mx-auto text-center",children:a.jsxs("div",{className:"p-8 md:p-12 rounded-2xl border border-primary/20 bg-gradient-to-br from-primary/5 to-accent/5 relative overflow-hidden",children:[a.jsx("div",{className:"absolute top-0 left-0 w-full h-px bg-gradient-to-r from-transparent via-primary/50 to-transparent"}),a.jsx(Vr,{className:"w-12 h-12 text-primary mx-auto mb-6"}),a.jsx("h2",{className:"text-2xl md:text-4xl font-bold text-foreground mb-4",children:"AI agents should be first-class operational entities"}),a.jsxs("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:["They need ",a.jsx("strong",{className:"text-foreground",children:"Identity"}),","," ",a.jsx("strong",{className:"text-foreground",children:"Trust boundaries"}),","," ",a.jsx("strong",{className:"text-foreground",children:"Governance"}),","," ",a.jsx("strong",{className:"text-foreground",children:"Observability"}),", and"," ",a.jsx("strong",{className:"text-foreground",children:"Policy enforcement"})," â just like users, devices, and workloads."]})]})})}),a.jsx("section",{id:"how-it-works",className:"py-24 px-4 md:px-8 bg-muted/30",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-16",children:[a.jsxs("h2",{className:"text-3xl md:text-5xl font-bold mb-4",children:["Full Agent ",a.jsx("span",{className:"text-gradient",children:"Lifecycle Management"})]}),a.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"From discovery to enforcement â a complete system of record for trusted AI execution."})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:QL.map((n,s)=>a.jsxs(ie,{className:"border-border relative overflow-hidden hover:shadow-lg transition-all",children:[a.jsx("div",{className:`absolute top-0 left-0 right-0 h-1 bg-gradient-to-r ${n.color}`}),a.jsxs(Ve,{children:[a.jsx("div",{className:`w-14 h-14 rounded-xl bg-gradient-to-br ${n.color} flex items-center justify-center mb-4`,children:a.jsx(n.icon,{className:"w-7 h-7 text-primary-foreground"})}),a.jsxs("div",{className:"text-xs font-bold uppercase tracking-widest text-muted-foreground mb-1",children:["Phase ",s+1]}),a.jsx(He,{className:"text-2xl",children:n.phase})]}),a.jsx(Me,{children:a.jsx("ul",{className:"space-y-3",children:n.items.map((i,o)=>a.jsxs("li",{className:"flex items-center gap-3 text-muted-foreground",children:[a.jsx(Yt,{className:"w-4 h-4 text-primary flex-shrink-0"}),a.jsx("span",{children:i})]},o))})})]},s))})]})}),a.jsx("section",{className:"py-24 px-4 md:px-8",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-16",children:[a.jsxs("h2",{className:"text-3xl md:text-5xl font-bold mb-4",children:["The Four Pillars of ",a.jsx("span",{className:"text-gradient",children:"Agent Control"})]}),a.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"A policy-driven control plane that enforces safe, compliant, auditable AI agent behavior."})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:JL.map((n,s)=>a.jsxs(ie,{className:"border-border hover:shadow-lg transition-all duration-300 hover:-translate-y-1",children:[a.jsxs(Ve,{children:[a.jsx("div",{className:"w-12 h-12 rounded-lg bg-gradient-to-br from-primary to-accent flex items-center justify-center mb-4",children:a.jsx(n.icon,{className:"w-6 h-6 text-primary-foreground"})}),a.jsx(He,{className:"text-xl",children:n.title})]}),a.jsxs(Me,{className:"space-y-4",children:[a.jsx("p",{className:"text-muted-foreground",children:n.description}),a.jsx("ul",{className:"grid grid-cols-2 gap-2",children:n.details.map((i,o)=>a.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[a.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-primary flex-shrink-0"}),i]},o))})]})]},s))})]})}),a.jsx("section",{className:"py-24 px-4 md:px-8 bg-muted/30",children:a.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[a.jsxs("h2",{className:"text-3xl md:text-5xl font-bold mb-6",children:["Agent Management Is ",a.jsx("span",{className:"text-gradient",children:"Inevitable"})]}),a.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto mb-12",children:"As AI agents become autonomous, enterprises will require the same level of governance, identity, and operational control that exists for users, devices, and workloads."}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6",children:[{stat:"Users",desc:"Managed with IAM"},{stat:"Devices",desc:"Managed with MDM"},{stat:"Agents",desc:"Managed with Zumie"}].map((n,s)=>a.jsxs("div",{className:"p-6 rounded-xl border border-border bg-card",children:[a.jsx("div",{className:"text-2xl font-bold text-foreground mb-1",children:n.stat}),a.jsx("div",{className:"text-sm text-muted-foreground",children:n.desc})]},s))})]})}),a.jsxs("section",{className:"py-24 px-4 md:px-8 bg-gradient-to-br from-primary via-secondary to-accent relative overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-grid-white/[0.05] bg-[size:32px_32px]"}),a.jsxs("div",{className:"max-w-4xl mx-auto text-center relative z-10",children:[a.jsx("h2",{className:"text-3xl md:text-5xl font-bold mb-6 text-primary-foreground",children:"Take Control of Your AI Agents"}
578),a.jsx("p",{className:"text-xl mb-8 text-primary-foreground/90 max-w-2xl mx-auto",children:"Don't let autonomous AI agents become your biggest blind spot. Get visibility, governance, and control â before it's too late."}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsx(xe,{to:"/consultation",children:a.jsxs(se,{size:"lg",variant:"secondary",className:"text-lg px-8 py-6 shadow-xl hover:shadow-2xl transition-all hover:scale-105",children:["Request Early Access",a.jsx(tt,{className:"ml-2 w-5 h-5"})]})}),a.jsx("a",{href:"mailto:[email protected]",children:a.jsxs(se,{size:"lg",variant:"outline",className:"text-lg px-8 py-6 bg-primary-foreground/10 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/20 backdrop-blur-sm",children:[a.jsx(kT,{className:"mr-2 w-5 h-5"}),"Learn More"]})})]})]})]}),a.jsx("footer",{className:"py-12 px-4 md:px-8 border-t border-border",children:a.jsxs("div",{className:"max-w-6xl mx-auto flex flex-col md:flex-row items-center justify-between gap-4",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Vt,{className:"w-5 h-5 text-primary"}),a.jsx("span",{className:"font-bold text-foreground",children:"Zumie"}),a.jsx("span",{className:"text-muted-foreground text-sm",children:"AI Agent Management"})]}),a.jsxs("p",{className:"text-sm text-muted-foreground",children:["© ",new Date().getFullYear()," Aristle AI. All rights reserved."]})]})})]})},lb=[{id:0,phase:"Phase 0",title:"Preparation",timeline:"Day 1â2",icon:Ec,color:"from-muted-foreground to-muted-foreground",goals:["Clarify how AI will be used across the organization","Avoid over-engineering the initial setup","Set clean ownership from day one"],decisions:["What agents exist or are planned?","Who owns each agent?","Which environments are needed (dev / prod)?"],artifacts:["Agent inventory (initial)","Data sensitivity classification","Named AI owner"]},{id:1,phase:"Phase 1",title:"OpenAI Business Setup",timeline:"Day 1",icon:$1,color:"from-primary to-secondary",steps:[{title:"Subscribe to OpenAI Business",owner:"CTO / Engineering Lead",items:["Create organization with company domain","Enable SSO and role-based access","Enable usage reporting","Disable training on company data","Set initial usage limits"]},{title:"Define User Roles in OpenAI",owner:"Engineering Lead",table:[{role:"Engineering",access:"Full API access"},{role:"PM",access:"Read-only usage + testing"},{role:"GTM",access:"Limited sandbox access"}]}],result:"Centralized OpenAI org with enterprise-grade data handling and shared billing visibility."},{id:2,phase:"Phase 2",title:"Stand Up Zumie Control Plane",timeline:"Day 1â2",icon:Vt,color:"from-primary to-accent",steps:[{title:"Deploy Zumie Control Plane",owner:"Platform / Infra Engineer",items:["Provision SaaS Zumie tenant (recommended for startups)","Single environment (prod) with optional dev namespace","Connect to company identity provider (Google Workspace / Entra / Okta)","Define organization, teams, and environments"]},{title:"Register OpenAI as Execution Provider",owner:"Platform Engineer",items:['Register "OpenAI Business" as an approved LLM provider in Zumie',"Configure allowed models and default rate limits","Set up environment separation","Store OpenAI credentials securely in Zumie vault"]}],callout:"OpenAI keys are never embedded in agent code."},{id:3,phase:"Phase 3",title:"Agent Identity & Ownership",timeline:"Day 2â3",icon:Vr,color:"from-secondary to-accent",steps:[{title:"Define Initial Agents",owner:"PM + Engineering",agents:[{name:"Internal Dev Assistant",risk:"Low"},{name:"Customer Support Agent",risk:"Medium"},{name:"Sales Research Agent",risk:"Low"},{name:"CI / Release Notes Agent",risk:"Low"}]},{title:"Issue Agent Identities",owner:"Platform Engineer",items:["Zumie generates unique Agent ID and scoped credentials","Trust metadata attached to each agent","User â Agent â Actions mapping established"]}],result:"Every agent action is attributable to a real person. This is your IAM + CMDB for agents."},{id:4,phase:"Phase 4",title:"Policy & Guardrails",timeline:"Day 3â4",icon:Cc,color:"from-
578accent to-primary",steps:[{title:"Define Baseline Policies",owner:"CTO / Security-minded Engineer",policies:["Agents may only call OpenAI-approved models","No access to production databases unless explicitly allowed","PII redaction required for all prompts","Spend caps per agent enforced","Rate limits per environment"]},{title:"Apply Policies to Agents",owner:"Platform Engineer",bindings:[{agent:"Dev Assistant",policy:"Low-risk policy"},{agent:"Support Agent",policy:"Data-restricted policy"},{agent:"Sales Agent",policy:"External data only"}]}],callout:"Policies are defined once and enforced centrally â before and after every OpenAI call."},{id:5,phase:"Phase 5",title:"Agent Integration",timeline:"Day 4â5",icon:ex,color:"from-primary to-secondary",flow:["Agent","Zumie SDK / Proxy","OpenAI Business","Response"],enforcements:["Identity validation","Policy checks","Usage tracking","Audit logging"],impact:["Minimal code change for engineering","No hardcoded secrets anywhere","Centralized control and visibility"],steps:[{title:"Enable Observability & Audit",owner:"Platform Engineer",items:["Prompt metadata logging","Tool/API call tracing","Policy decision logs","Usage dashboards"]}],questions:["Who used OpenAI?","Which agent made the call?","Why was the call made?","At what cost?"]},{id:6,phase:"Phase 6",title:"Team Enablement",timeline:"Day 5â7",icon:qr,color:"from-secondary to-accent",teams:[{team:"Engineering",items:["How to register agents","How to request new permissions"]},{team:"PM",items:["How to view agent behavior & impact"]},{team:"GTM",items:["What agents can / cannot do","Guardrails for customer-facing usage"]}],operatingModel:["Agent creation approval process","Policy change workflow","Incident response playbook","Quarterly review of agent inventory"]},{id:7,phase:"Phase 7",title:"Go Live & Iterate",timeline:"Week 2+",icon:B1,color:"from-accent to-primary",steps:[{title:"Production Enablement",owner:"CTO",items:["Promote selected agents to production","Tighten policies based on dev learnings","Monitor usage and behavior continuously"]},{title:"Continuous Improvement",owner:"Platform Engineer",items:["Identify risky patterns","Tune policies dynamically","Add spend optimization","Expand audit depth"]}]}],t6=["OpenAI Business properly configured","Centralized AI agent identity & ownership","Enforceable guardrails on every agent","Full observability & auditability","Ability to safely scale agents","Enterprise-grade posture before enterprise scale"],r6=()=>a.jsxs("div",{className:"min-h-screen bg-background zumie-theme",children:[a.jsx(vr,{title:"Zumie + OpenAI Business â End-to-End Workflow",description:"Step-by-step case study showing how a startup deploys OpenAI Business with Zumie for full AI agent lifecycle management."}),a.jsx(zx,{}),a.jsxs("section",{className:"relative py-20 px-4 md:px-8 overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-background via-background to-primary/5"}),a.jsx("div",{className:"absolute top-20 right-0 w-[500px] h-[500px] bg-primary/5 rounded-full blur-[120px]"}),a.jsxs("div",{className:"max-w-4xl mx-auto relative z-10 text-center space-y-6",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full border border-border bg-muted/50 text-sm font-medium text-muted-foreground",children:[a.jsx(bu,{className:"w-4 h-4 text-primary"}),"Case Study â Startup Workflow"]}),a.jsxs("h1",{className:"text-4xl md:text-6xl font-extrabold tracking-tight leading-[1.1]",children:[a.jsx("span",{className:"block text-foreground",children:"OpenAI Business"}),a.jsx("span",{className:"block text-gradient",children:"+ Zumie"})]}),a.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"A practical, end-to-end workflow for a ~10-person startup deploying AI agents safely with OpenAI Business and Zumie as the control plane."}),a.jsx("p",{className:"text-sm text-muted-foreground italic",children:'"OpenAI Business gives us the intelligence. Zumie ensures every agent using it is identifiable, governed, observable, and safe from day one."'})]})]}),a.jsx("section",{className:"py-16 px-4 md:px-8",children:a.jsx("div",{className:"max-w-5xl mx-auto
578space-y-12",children:lb.map(e=>{var t;return a.jsxs("div",{className:"relative",children:[e.id<lb.length-1&&a.jsx("div",{className:"absolute left-6 top-20 bottom-0 w-px bg-border hidden md:block"}),a.jsxs(ie,{className:"border-border overflow-hidden hover:shadow-lg transition-shadow",children:[a.jsx("div",{className:`h-1.5 bg-gradient-to-r ${e.color}`}),a.jsxs(Ve,{className:"flex flex-row items-start gap-4",children:[a.jsx("div",{className:`w-12 h-12 rounded-xl bg-gradient-to-br ${e.color} flex items-center justify-center flex-shrink-0`,children:a.jsx(e.icon,{className:"w-6 h-6 text-primary-foreground"})}),a.jsxs("div",{className:"flex-1",children:[a.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[a.jsx("span",{className:"text-xs font-bold uppercase tracking-widest text-muted-foreground",children:e.phase}),a.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full bg-muted text-muted-foreground",children:e.timeline})]}),a.jsx(He,{className:"text-2xl mt-1",children:e.title})]})]}),a.jsxs(Me,{className:"space-y-6",children:[e.goals&&a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"text-sm font-semibold text-foreground mb-2",children:"Goals"}),a.jsx("ul",{className:"space-y-1.5",children:e.goals.map((r,n)=>a.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[a.jsx(Yt,{className:"w-3.5 h-3.5 text-primary mt-0.5 flex-shrink-0"}),r]},n))})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"text-sm font-semibold text-foreground mb-2",children:"Key Decisions"}),a.jsx("ul",{className:"space-y-1.5",children:e.decisions.map((r,n)=>a.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[a.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-primary mt-1.5 flex-shrink-0"}),r]},n))})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"text-sm font-semibold text-foreground mb-2",children:"Artifacts"}),a.jsx("ul",{className:"space-y-1.5",children:e.artifacts.map((r,n)=>a.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[a.jsx(bu,{className:"w-3.5 h-3.5 text-accent mt-0.5 flex-shrink-0"}),r]},n))})]})]}),(t=e.steps)==null?void 0:t.map((r,n)=>a.jsxs("div",{className:"p-4 rounded-xl border border-border bg-muted/30",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3 flex-wrap gap-2",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:r.title}),a.jsxs("span",{className:"text-xs px-2 py-0.5 rounded bg-primary/10 text-primary font-medium",children:["Owner: ",r.owner]})]}),r.items&&a.jsx("ul",{className:"space-y-1.5",children:r.items.map((s,i)=>a.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[a.jsx(Yt,{className:"w-3.5 h-3.5 text-primary mt-0.5 flex-shrink-0"}),s]},i))}),r.table&&a.jsx("div",{className:"mt-2 rounded-lg border border-border overflow-hidden",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{children:a.jsxs("tr",{className:"bg-muted",children:[a.jsx("th",{className:"text-left p-2 font-semibold text-foreground",children:"Role"}),a.jsx("th",{className:"text-left p-2 font-semibold text-foreground",children:"Access"})]})}),a.jsx("tbody",{children:r.table.map((s,i)=>a.jsxs("tr",{className:"border-t border-border",children:[a.jsx("td",{className:"p-2 text-foreground font-medium",children:s.role}),a.jsx("td",{className:"p-2 text-muted-foreground",children:s.access})]},i))})]})}),r.agents&&a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2 mt-2",children:r.agents.map((s,i)=>a.jsxs("div",{className:"flex items-center justify-between p-2 rounded-lg border border-border bg-card",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Vr,{className:"w-4 h-4 text-primary"}),a.jsx("span",{className:"text-sm text-foreground",children:s.name})]}),a.jsxs("span",{className:`text-xs px-2 py-0.5 rounded-full ${s.risk==="Medium"?"bg-yellow-500/10 text-yellow-600":"bg-primary/10 text-primary"}`,children:[s.risk," risk"]})]},i))}),r.policies&&a.jsx("ul",{className:"space-y-1.5",children:r.policies.map((s,i)=>a.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[a.jsx(wu,{className:"w-3.5 h-3.5 text-primary mt-0.5 flex-shrink-0"}),s]},i))}),r.bindings&&a.jsx("div",{className:"space-y-2 mt-2",children:r.bindings.map((s,i)=>a.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[a.jsx("span",{className:"text-foreground font-medium",children:s.agent}),a.jsx(tt,{className:"w-3.5 h-3.5 text-muted-foreground"}),a.jsx("span",{className:"px-2 py-0.5 rounded bg-primary/10 text-primary text-xs font-medium",children:s.policy})]},i))})]},n)),e.flow&&a.jsxs("div",{className:"p-4 rounded-xl border border-border bg-muted/30",children:[a.jsx("h4",{className:"font-semibold text-foreground mb-3",children:"Agent Call Flow"}),a.jsx("div",{className:"flex items-center justify-center gap-2 flex-wrap",children:e.flow.map((r,n)=>a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"px-3 py-1.5 rounded-lg bg-card border border-border text-sm font-medium text-foreground",children:r}),n<e.flow.length-1&&a.jsx(tt,{className:"w-4 h-4 text-primary"})]},n))}),a.jsx("div",{className:"mt-4 grid grid-cols-2 md:grid-cols-4 gap-2",children:e.enforcements.map((r,n)=>a.jsx("div",{className:"text-center p-2 rounded-lg bg-primary/5 border border-primary/10",children:a.jsx("span",{className:"text-xs text-primary font-medium",children:r})},n))})]}),e.questions&&a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:e.questions.map((r,n)=>a.jsx("div",{className:"p-3 rounded-lg border border-border bg-card text-center",children:a.jsx("p",{className:"text-sm font-medium text-foreground",children:r})},n))}),e.teams&&a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:e.teams.map((r,n)=>a.jsxs("div",{className:"p-4 rounded-xl border border-border bg-muted/30",children:[a.jsx("h4",{className:"font-semibold text-foreground mb-2",children:r.team}),a.jsx("ul",{className:"space-y-1.5",children:r.items.map((s,i)=>a.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[a.jsx(Yt,{className:"w-3.5 h-3.5 text-primary mt-0.5 flex-shrink-0"}),s]},i))})]},n))}),e.operatingModel&&a.jsxs("div",{className:"p-4 rounded-xl border border-border bg-muted/30",children:[a.jsx("h4",{className:"font-semibold text-foreground mb-3",children:"Operating Model"}),a.jsx("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:e.operatingModel.map((r,n)=>a.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[a.jsx(WT,{className:"w-3.5 h-3.5 text-accent flex-shrink-0"}),r]},n))})]}),e.impact&&a.jsx("div",{className:"flex flex-wrap gap-3",children:e.impact.map((r,n)=>a.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm px-3 py-1.5 rounded-full bg-primary/10 text-primary font-medium",children:[a.jsx(Yt,{className:"w-3.5 h-3.5"}),r]},n))}),e.result&&a.jsx("p",{className:"text-sm text-muted-foreground bg-muted/50 p-3 rounded-lg border-l-2 border-primary",children:e.result}),e.callout&&a.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-lg bg-primary/5 border border-primary/20",children:[a.jsx(wu,{className:"w-4 h-4 text-primary flex-shrink-0"}),a.jsx("span",{className:"text-sm font-medium text-foreground",children:e.callout})]})]})]})]},e.id)})})}),a.jsx("section",{className:"py-20 px-4 md:px-8 bg-muted/30",children:a.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"By Week 1â2, Your Startup Has"}),a.jsx("p",{className:"text-muted-foreground mb-10",children:"Enterprise-grade AI governance â with only 1â2 days of upfront investment."}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4",children:t6.map((e,t)=>a.jsxs("div",{className:"flex items-center gap-3 p-4 rounded-xl border border-border bg-card text-left",children:[a.jsx(Yt,{className:"w-5 h-5 text-primary flex-shrink-0"}),a.jsx("span",{className:"text-sm font-medium text-foreground",children:e})]},t))})]})}),a.jsx("section",{className:"py-20 px-4 md:px-8",children:a.jsx("div",{className:"max-w-4xl mx-auto",children:a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[a.jsxs("div",{className:"p-6 rounded-2xl border border-destructive/20 bg-destructive/5",children:[a.jsx("h3",{className:"text-lg font-bold text-foreground mb-4",children:"Most Startups Today"}),a.jsx("ul",{className:"space-y-2",children:["Hardcode API keys","Ship agents fast without controls","Fix governance later (maybe)"].map((e,t)=>a.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[a.jsx(qa,{className:"w-4 h-4 text-destructive flex-shrink-0"}),e]},t))})]}),a.jsxs("div",{className:"p-6 rounded-2xl border border-primary/20 bg-primary/5",children:[a.jsx("h3",{className:"text-lg font-bold text-foreground mb-4",children:"With Zumie"}),a.jsx("ul",{className:"space-y-2",children:["Adds 1â2 days upfront","Saves months of cleanup","Makes enterprise sales possible early"].map((e,t)=>a.jsxs("li",{className:"flex items-center gap-2 text-sm text-foreground",children:[a.jsx(Yt,{className:"w-4 h-4 text-primary flex-shrink-0"}),e]},t))})]})]})})}),a.jsxs("section",{className:"py-20 px-4 md:px-8 bg-gradient-to-br from-primary via-secondary to-accent relative overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-grid-white/[0.05] bg-[size:32px_32px]"}),a.jsxs("div",{className:"max-w-4xl mx-auto text-center relative z-10",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4 text-primary-foreground",children:"Ready to Govern Your AI Agents?"}
vendor: 4,558 bytes, line 578
578),a.jsx("p",{className:"text-lg mb-8 text-primary-foreground/90 max-w-2xl mx-auto",children:"Deploy OpenAI-powered agents with confidence. Identity, policy, observability â from day one."}),a.jsx(xe,{to:"/consultation",children:a.jsxs(se,{size:"lg",variant:"secondary",className:"text-lg px-8 py-6 shadow-xl hover:shadow-2xl transition-all hover:scale-105",children:["Request Early Access",a.jsx(tt,{className:"ml-2 w-5 h-5"})]})})]})]}),a.jsx("footer",{className:"py-12 px-4 md:px-8 border-t border-border",children:a.jsxs("div",{className:"max-w-6xl mx-auto flex flex-col md:flex-row items-center justify-between gap-4",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Vt,{className:"w-5 h-5 text-primary"}),a.jsx("span",{className:"font-bold text-foreground",children:"Zumie"}),a.jsx("span",{className:"text-muted-foreground text-sm",children:"AI Agent Management"})]}),a.jsxs("p",{className:"text-sm text-muted-foreground",children:["© ",new Date().getFullYear()," Aristle AI. All rights reserved."]})]})})]}),n6=xh("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ae({className:e,variant:t,...r}){return a.jsx("div",{className:X(n6({variant:t}),e),...r})}const Ea=g.forwardRef(({className:e,...t},r)=>a.jsx("div",{className:"relative w-full overflow-auto",children:a.jsx("table",{ref:r,className:X("w-full caption-bottom text-sm",e),...t})}));Ea.displayName="Table";const Ta=g.forwardRef(({className:e,...t},r)=>a.jsx("thead",{ref:r,className:X("[&_tr]:border-b",e),...t}));Ta.displayName="TableHeader";const Pa=g.forwardRef(({className:e,...t},r)=>a.jsx("tbody",{ref:r,className:X("[&_tr:last-child]:border-0",e),...t}));Pa.displayName="TableBody";const s6=g.forwardRef(({className:e,...t},r)=>a.jsx("tfoot",{ref:r,className:X("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));s6.displayName="TableFooter";const wr=g.forwardRef(({className:e,...t},r)=>a.jsx("tr",{ref:r,className:X("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));wr.displayName="TableRow";const ze=g.forwardRef(({className:e,...t},r)=>a.jsx("th",{ref:r,className:X("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));ze.displayName="TableHead";const Be=g.forwardRef(({className:e,...t},r)=>a.jsx("td",{ref:r,className:X("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Be.displayName="TableCell";const a6=g.forwardRef(({className:e,...t},r)=>a.jsx("caption",{ref:r,className:X("mt-4 text-sm text-muted-foreground",e),...t}));a6.displayName="TableCaption";var Yf="rovingFocusGroup.onEntryFocus",i6={bubbles:!1,cancelable:!0},Lc="RovingFocusGroup",[Bp,Ak,o6]=fh(Lc),[l6,Ek]=lr(Lc,[o6]),[c6,d6]=l6(Lc),Tk=g.forwardRef((e,t)=>a.jsx(Bp.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Bp.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(u6,{...e,ref:t})})}));Tk.displayName=Lc;var u6=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...h}=e,f=g.useRef(null),m=Pe(t,f),b=Dc(i),[x,w]=bn({prop:o,defaultProp:l??null,onChange:c,caller:Lc}),[v,p]=g.useState(!1),y=Nt(d),j=Ak(r),N=g.useRef(!1),[S,k]=g.useState(0);return g.useEffect(()=>{const A=f.current;if(A)return A.addEventListener(Yf,y),()=>A.removeEventListener(Yf,y)},[y]),a.jsx(c6,{scope:r,orientation:n,dir:b,loop:s,currentTabStopId:x,onItemFocus:g.useCallback(A=>w(A),[w]),onItemShiftTab:g.useCallback(()=>p(!0),[]),onFocusableItemAdd:g.useCallback(()=>k(A=>A+1),[]),onFocusableItemRemove:g.useCallback(()=>k(A=>A-1),[]),children:a.jsx(de.div,{tabIndex:v||S===0?-1:0,"data-orientation":n,...h,ref:m,style:{outline:"none",...e.style},onMouseDown:le(e.onMouseDown,()=>{N.current=!0}),onFocus:le(e.onFocus,A=>{const E=!N.current;if(A.target===A.currentTarget&&E&&!v){const O=new CustomEvent(Yf,i6);if(A.currentTarget.dispatchEvent(O),!O.defaultPrevented){const R=j().filter(F=>F.focusable),I=R.find(F=>F.active),U=R.find(F=>
vendor: 5,122 bytes, line 578
578F.id===x),C=[I,U,...R].filter(Boolean).map(F=>F.ref.current);Ik(C,u)}}N.current=!1}),onBlur:le(e.onBlur,()=>p(!1))})})}),Pk="RovingFocusGroupItem",Rk=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:s=!1,tabStopId:i,children:o,...l}=e,c=$n(),d=i||c,u=d6(Pk,r),h=u.currentTabStopId===d,f=Ak(r),{onFocusableItemAdd:m,onFocusableItemRemove:b,currentTabStopId:x}=u;return g.useEffect(()=>{if(n)return m(),()=>b()},[n,m,b]),a.jsx(Bp.ItemSlot,{scope:r,id:d,focusable:n,active:s,children:a.jsx(de.span,{tabIndex:h?0:-1,"data-orientation":u.orientation,...l,ref:t,onMouseDown:le(e.onMouseDown,w=>{n?u.onItemFocus(d):w.preventDefault()}),onFocus:le(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:le(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){u.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const v=m6(w,u.orientation,u.dir);if(v!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let y=f().filter(j=>j.focusable).map(j=>j.ref.current);if(v==="last")y.reverse();else if(v==="prev"||v==="next"){v==="prev"&&y.reverse();const j=y.indexOf(w.currentTarget);y=u.loop?p6(y,j+1):y.slice(j+1)}setTimeout(()=>Ik(y))}}),children:typeof o=="function"?o({isCurrentTabStop:h,hasTabStop:x!=null}):o})})});Rk.displayName=Pk;var h6={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function f6(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function m6(e,t,r){const n=f6(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return h6[n]}function Ik(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function p6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var g6=Tk,x6=Rk,Fh="Tabs",[v6,ZU]=lr(Fh,[Ek]),Ok=Ek(),[y6,Bx]=v6(Fh),Mk=g.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:s,defaultValue:i,orientation:o="horizontal",dir:l,activationMode:c="automatic",...d}=e,u=Dc(l),[h,f]=bn({prop:n,onChange:s,defaultProp:i??"",caller:Fh});return a.jsx(y6,{scope:r,baseId:$n(),value:h,onValueChange:f,orientation:o,dir:u,activationMode:c,children:a.jsx(de.div,{dir:u,"data-orientation":o,...d,ref:t})})});Mk.displayName=Fh;var Dk="TabsList",Lk=g.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...s}=e,i=Bx(Dk,r),o=Ok(r);return a.jsx(g6,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:n,children:a.jsx(de.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:t})})});Lk.displayName=Dk;var $k="TabsTrigger",Fk=g.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:s=!1,...i}=e,o=Bx($k,r),l=Ok(r),c=Bk(o.baseId,n),d=Vk(o.baseId,n),u=n===o.value;return a.jsx(x6,{asChild:!0,...l,focusable:!s,active:u,children:a.jsx(de.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:c,...i,ref:t,onMouseDown:le(e.onMouseDown,h=>{!s&&h.button===0&&h.ctrlKey===!1?o.onValueChange(n):h.preventDefault()}),onKeyDown:le(e.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&o.onValueChange(n)}),onFocus:le(e.onFocus,()=>{const h=o.activationMode!=="manual";!u&&!s&&h&&o.onValueChange(n)})})})});Fk.displayName=$k;var Uk="TabsContent",zk=g.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:s,children:i,...o}=e,l=Bx(Uk,r),c=Bk(l.baseId,n),d=Vk(l.baseId,n),u=n===l.value,h=g.useRef(u);return g.useEffect(()=>{const f=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(f)},[]),a.jsx(Ir,{present:s||u,children:({present:f})=>a.jsx(de.div,{"data-state":u?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!f,id:d,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:f&&i})})});zk.displayName=Uk;function Bk(e,t){return`${e}-trigger-${t}`}function Vk(e,t){return`${e}-content-${t}`}var b6=Mk,Hk=Lk,Wk=Fk,qk=zk;const Gk=b6,Vx=g.forwardRef(({className:e,...t},r)=>a.jsx(Hk,{ref:r,className:X("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Vx.displayName=Hk.displayName;const Jn=g.forwardRef(({className:e,...t},r)=>a.jsx(Wk,{ref:r,className:X("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));Jn.displayName=Wk.displayName;const Qn=g.forwardRef(({className:e,...t},r)=>a.jsx(qk,{ref:r,className:X("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Qn.displayName=qk.displayName;var Jf="focusScope.autoFocusOnMount",Qf="focusScope.autoFocusOnUnmount",cb={bubbles:!1,cancelable:!0},w6="FocusScope",Hx=g.forwardRef((e,t)=>
vendor: 4,257 bytes, line 578
578{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[l,c]=g.useState(null),d=Nt(s),u=Nt(i),h=g.useRef(null),f=Pe(t,x=>c(x)),m=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(n){let x=function(y){if(m.paused||!l)return;const j=y.target;l.contains(j)?h.current=j:Ss(h.current,{select:!0})},w=function(y){if(m.paused||!l)return;const j=y.relatedTarget;j!==null&&(l.contains(j)||Ss(h.current,{select:!0}))},v=function(y){if(document.activeElement===document.body)for(const N of y)N.removedNodes.length>0&&Ss(l)};document.addEventListener("focusin",x),document.addEventListener("focusout",w);const p=new MutationObserver(v);return l&&p.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",w),p.disconnect()}}},[n,l,m.paused]),g.useEffect(()=>{if(l){ub.add(m);const x=document.activeElement;if(!l.contains(x)){const v=new CustomEvent(Jf,cb);l.addEventListener(Jf,d),l.dispatchEvent(v),v.defaultPrevented||(j6(C6(Kk(l)),{select:!0}),document.activeElement===x&&Ss(l))}return()=>{l.removeEventListener(Jf,d),setTimeout(()=>{const v=new CustomEvent(Qf,cb);l.addEventListener(Qf,u),l.dispatchEvent(v),v.defaultPrevented||Ss(x??document.body,{select:!0}),l.removeEventListener(Qf,u),ub.remove(m)},0)}}},[l,d,u,m]);const b=g.useCallback(x=>{if(!r&&!n||m.paused)return;const w=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,v=document.activeElement;if(w&&v){const p=x.currentTarget,[y,j]=N6(p);y&&j?!x.shiftKey&&v===j?(x.preventDefault(),r&&Ss(y,{select:!0})):x.shiftKey&&v===y&&(x.preventDefault(),r&&Ss(j,{select:!0})):v===p&&x.preventDefault()}},[r,n,m.paused]);return a.jsx(de.div,{tabIndex:-1,...o,ref:f,onKeyDown:b})});Hx.displayName=w6;function j6(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ss(n,{select:t}),document.activeElement!==r)return}function N6(e){const t=Kk(e),r=db(t,e),n=db(t.reverse(),e);return[r,n]}function Kk(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function db(e,t){for(const r of e)if(!S6(r,{upTo:t}))return r}function S6(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function k6(e){return e instanceof HTMLInputElement&&"select"in e}function Ss(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&k6(e)&&t&&e.select()}}var ub=_6();function _6(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=hb(e,t),e.unshift(t)},remove(t){var r;e=hb(e,t),(r=e[0])==null||r.resume()}}}function hb(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function C6(e){return e.filter(t=>t.tagName!=="A")}var Xf=0;function Zk(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??fb()),document.body.insertAdjacentElement("beforeend",e[1]??fb()),Xf++,()=>{Xf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Xf--}},[])}function fb(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var qd="right-scroll-bar-position",Gd="width-before-scroll-bar",A6="with-scroll-bars-hidden",E6="--removed-body-scroll-bar-size";function em(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function T6(e,t){var r=g.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var s=r.value;s!==n&&(r.value=n,r.callback(n,s))}}}})[0];return r.callback=t,r.facade}var P6=typeof window<"u"?g.useLayoutEffect:g.useEffect,mb=new WeakMap;function R6(e,t){var r=T6(null,function(n){return e.forEach(function(s){return em(s,n)})});return P6(function(){var n=mb.get(r);if(n){var s=new Set(n),i=new Set(e),o=r.current;
vendor: 4,196 bytes, lines 578-593
578s.forEach(function(l){i.has(l)||em(l,null)}),i.forEach(function(l){s.has(l)||em(l,o)})}mb.set(r,e)},[e]),r}function I6(e){return e}function O6(e,t){t===void 0&&(t=I6);var r=[],n=!1,s={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var o=t(i,n);return r.push(o),function(){r=r.filter(function(l){return l!==o})}},assignSyncMedium:function(i){for(n=!0;r.length;){var o=r;r=[],o.forEach(i)}r={push:function(l){return i(l)},filter:function(){return r}}},assignMedium:function(i){n=!0;var o=[];if(r.length){var l=r;r=[],l.forEach(i),o=r}var c=function(){var u=o;o=[],u.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(u){o.push(u),d()},filter:function(u){return o=o.filter(u),r}}}};return s}function M6(e){e===void 0&&(e={});var t=O6(null);return t.options=Rn({async:!0,ssr:!1},e),t}var Yk=function(e){var t=e.sideCar,r=Do(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return g.createElement(n,Rn({},r))};Yk.isSideCarExport=!0;function D6(e,t){return e.useMedium(t),Yk}var Jk=M6(),tm=function(){},Uh=g.forwardRef(function(e,t){var r=g.useRef(null),n=g.useState({onScrollCapture:tm,onWheelCapture:tm,onTouchMoveCapture:tm}),s=n[0],i=n[1],o=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,h=e.shards,f=e.sideCar,m=e.noRelative,b=e.noIsolation,x=e.inert,w=e.allowPinchZoom,v=e.as,p=v===void 0?"div":v,y=e.gapMode,j=Do(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=f,S=R6([r,t]),k=Rn(Rn({},j),s);return g.createElement(g.Fragment,null,u&&g.createElement(N,{sideCar:Jk,removeScrollBar:d,shards:h,noRelative:m,noIsolation:b,inert:x,setCallbacks:i,allowPinchZoom:!!w,lockRef:r,gapMode:y}),o?g.cloneElement(g.Children.only(l),Rn(Rn({},k),{ref:S})):g.createElement(p,Rn({},k,{className:c,ref:S}),l))});Uh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Uh.classNames={fullWidth:Gd,zeroRight:qd};var L6=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $6(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=L6();return t&&e.setAttribute("nonce",t),e}function F6(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function U6(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var z6=function(){var e=0,t=null;return{add:function(r){e==0&&(t=$6())&&(F6(t,r),U6(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},B6=function(){var e=z6();return function(t,r){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Qk=function(){var e=B6(),t=function(r){var n=r.styles,s=r.dynamic;return e(n,s),null};return t},V6={left:0,top:0,right:0,gap:0},rm=function(e){return parseInt(e||"",10)||0},H6=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[rm(r),rm(n),rm(s)]},W6=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return V6;var t=H6(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},q6=Qk(),eo="data-scroll-locked",G6=function(e,t,r,n){var s=e.left,i=e.top,o=e.right,l=e.gap;return r===void 0&&(r="margin"),` 579 .`.concat(A6,` { 580 overflow: hidden `).concat(n,`; 581 padding-right: `).concat(l,"px ").concat(n,`; 582 } 583 body[`).concat(eo,`] { 584 overflow: hidden `).concat(n,`; 585 overscroll-behavior: contain; 586 `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` 587 padding-left: `.concat(s,`px; 588 padding-top: `).concat(i,`px; 589 padding-right: `).concat(o,`px; 590 margin-left:0; 591 margin-top:0; 592 margin-right: `).concat(l,"px ").concat(n,`; 593 `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";
593")].filter(Boolean).join(""),` 594 } 595 596 .`).concat(qd,` { 597 right: `).concat(l,"px ").concat(n,`; 598 } 599 600 .`).concat(Gd,` { 601 margin-right: `).concat(l,"px ").concat(n,`; 602 } 603 604 .`).concat(qd," .").concat(qd,` { 605 right: 0 `).concat(n,`; 606 } 607 608 .`).concat(Gd," .").concat(Gd,` { 609 margin-right: 0 `).concat(n,`; 610 } 611 612 body[`).concat(eo,`] { 613 `).concat(E6,": ").concat(l,`px; 614 } 615`)},pb=function(){var e=parseInt(document.body.getAttribute(eo)||"0",10);return isFinite(e)?e:0},K6=function(){g.useEffect(function(){return document.body.setAttribute(eo,(pb()+1).toString()),function(){var e=pb()-1;e<=0?document.body.removeAttribute(eo):document.body.setAttribute(eo,e.toString())}},[])},Z6=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,s=n===void 0?"margin":n;K6();var i=g.useMemo(function(){return W6(s)},[s]);return g.createElement(q6,{styles:G6(i,!t,s,r?"":"!important")})},Vp=!1;if(typeof window<"u")try{var Nd=Object.defineProperty({},"passive",{get:function(){return Vp=!0,!0}});window.addEventListener("test",Nd,Nd),window.removeEventListener("test",Nd,Nd)}catch{Vp=!1}var vi=Vp?{passive:!1}:!1,Y6=function(e){return e.tagName==="TEXTAREA"},Xk=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Y6(e)&&r[t]==="visible")},J6=function(e){return Xk(e,"overflowY")},Q6=function(e){return Xk(e,"overflowX")},gb=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=e_(e,n);if(s){var i=t_(e,n),o=i[1],l=i[2];if(o>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},X6=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},e$=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},e_=function(e,t){return e==="v"?J6(t):Q6(t)},t_=function(e,t){return e==="v"?X6(t):e$(t)},t$=function(e,t){return e==="h"&&t==="rtl"?-1:1},r$=function(e,t,r,n,s){var i=t$(e,window.getComputedStyle(t).direction),o=i*n,l=r.target,c=t.contains(l),d=!1,u=o>0,h=0,f=0;do{if(!l)break;var m=t_(e,l),b=m[0],x=m[1],w=m[2],v=x-w-i*b;(b||v)&&e_(e,l)&&(h+=v,f+=b);var p=l.parentNode;l=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(u&&(Math.abs(h)<1||!s)||!u&&(Math.abs(f)<1||!s))&&(d=!0),d},Sd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xb=function(e){return[e.deltaX,e.deltaY]},vb=function(e){return e&&"current"in e?e.current:e},n$=function(e,t){return e[0]===t[0]&&e[1]===t[1]},s$=function(e){return` 616 .block-interactivity-`.concat(e,` {pointer-events: none;} 617 .allow-interactivity-`).concat(e,` {pointer-events: all;} 618`)},a$=0,yi=[];function i$(e){var t=g.useRef([]),r=g.useRef([0,0]),n=g.useRef(),s=g.useState(a$++)[0],i=g.useState(Qk)[0],o=g.useRef(e);g.useEffect(function(){o.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var x=j5([e.lockRef.current],(e.shards||[]).map(vb),!0).filter(Boolean);return x.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),x.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var l=g.useCallback(function(x,w){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!o.current.allowPinchZoom;var v=Sd(x),p=r.current,y="deltaX"in x?x.deltaX:p[0]-v[0],j="deltaY"in x?x.deltaY:p[1]-v[1],N,S=x.target,k=Math.abs(y)>Math.abs(j)?"h":"v";if("touches"in x&&k==="h"&&S.type==="range")return!1;var A=gb(k,S);if(!A)return!0;if(A?N=k:(N=k==="v"?"h":"v",A=gb(k,S)),!A)return!1;if(!n.current&&"changedTouches"in x&&(y||j)&&(n.current=N),!N)return!0;var E=n.current||N;return r$(E,w,x,E==="h"?y:j,!0)},[]),c=g.useCallback(function(x){var w=x;if(!(!yi.length||yi[yi.length-1]!==i)){var v="deltaY"in w?xb(w):Sd(w),p=t.current.filter(function(N){return N.name===w.type&&(N.target===w.target||w.target===N.shadowParent)&&n$(N.delta,v)}
vendor: 4,137 bytes, line 618
618)[0];if(p&&p.should){w.cancelable&&w.preventDefault();return}if(!p){var y=(o.current.shards||[]).map(vb).filter(Boolean).filter(function(N){return N.contains(w.target)}),j=y.length>0?l(w,y[0]):!o.current.noIsolation;j&&w.cancelable&&w.preventDefault()}}},[]),d=g.useCallback(function(x,w,v,p){var y={name:x,delta:w,target:v,should:p,shadowParent:o$(v)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(j){return j!==y})},1)},[]),u=g.useCallback(function(x){r.current=Sd(x),n.current=void 0},[]),h=g.useCallback(function(x){d(x.type,xb(x),x.target,l(x,e.lockRef.current))},[]),f=g.useCallback(function(x){d(x.type,Sd(x),x.target,l(x,e.lockRef.current))},[]);g.useEffect(function(){return yi.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,vi),document.addEventListener("touchmove",c,vi),document.addEventListener("touchstart",u,vi),function(){yi=yi.filter(function(x){return x!==i}),document.removeEventListener("wheel",c,vi),document.removeEventListener("touchmove",c,vi),document.removeEventListener("touchstart",u,vi)}},[]);var m=e.removeScrollBar,b=e.inert;return g.createElement(g.Fragment,null,b?g.createElement(i,{styles:s$(s)}):null,m?g.createElement(Z6,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function o$(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const l$=D6(Jk,i$);var Wx=g.forwardRef(function(e,t){return g.createElement(Uh,Rn({},e,{ref:t,sideCar:l$}))});Wx.classNames=Uh.classNames;var c$=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},bi=new WeakMap,kd=new WeakMap,_d={},nm=0,r_=function(e){return e&&(e.host||r_(e.parentNode))},d$=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=r_(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},u$=function(e,t,r,n){var s=d$(t,Array.isArray(e)?e:[e]);_d[r]||(_d[r]=new WeakMap);var i=_d[r],o=[],l=new Set,c=new Set(s),d=function(h){!h||l.has(h)||(l.add(h),d(h.parentNode))};s.forEach(d);var u=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(f){if(l.has(f))u(f);else try{var m=f.getAttribute(n),b=m!==null&&m!=="false",x=(bi.get(f)||0)+1,w=(i.get(f)||0)+1;bi.set(f,x),i.set(f,w),o.push(f),x===1&&b&&kd.set(f,!0),w===1&&f.setAttribute(r,"true"),b||f.setAttribute(n,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),l.clear(),nm++,function(){o.forEach(function(h){var f=bi.get(h)-1,m=i.get(h)-1;bi.set(h,f),i.set(h,m),f||(kd.has(h)||h.removeAttribute(n),kd.delete(h)),m||h.removeAttribute(r)}),nm--,nm||(bi=new WeakMap,bi=new WeakMap,kd=new WeakMap,_d={})}},n_=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),s=c$(e);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),u$(n,s,r,"aria-hidden")):function(){return null}},zh="Dialog",[s_,YU]=lr(zh),[h$,kn]=s_(zh),a_=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,l=g.useRef(null),c=g.useRef(null),[d,u]=bn({prop:n,defaultProp:s??!1,onChange:i,caller:zh});return a.jsx(h$,{scope:t,triggerRef:l,contentRef:c,contentId:$n(),titleId:$n(),descriptionId:$n(),open:d,onOpenChange:u,onOpenToggle:g.useCallback(()=>u(h=>!h),[u]),modal:o,children:r})};a_.displayName=zh;var i_="DialogTrigger",o_=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=kn(i_,r),i=Pe(t,s.triggerRef);return a.jsx(de.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Kx(s.open),...n,ref:i,onClick:le(e.onClick,s.onOpenToggle)})});o_.displayName=i_;var qx="DialogPortal",[f$,l_]=s_(qx,{forceMount:void 0}),c_=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:s}=e,i=kn(qx,t);return a.jsx(f$,{scope:t,forceMount:r,children:g.Children.map(n,o=>a.jsx(Ir,{present:r||i.open,children:a.jsx(mh,{asChild:!0,container:s,children:o})}))})};c_.displayName=qx;var Bu="DialogOverlay",d_=g.forwardRef((e,t)=>
vendor: 4,331 bytes, lines 618-622
618{const r=l_(Bu,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,i=kn(Bu,e.__scopeDialog);return i.modal?a.jsx(Ir,{present:n||i.open,children:a.jsx(p$,{...s,ref:t})}):null});d_.displayName=Bu;var m$=xo("DialogOverlay.RemoveScroll"),p$=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=kn(Bu,r);return a.jsx(Wx,{as:m$,allowPinchZoom:!0,shards:[s.contentRef],children:a.jsx(de.div,{"data-state":Kx(s.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Ya="DialogContent",u_=g.forwardRef((e,t)=>{const r=l_(Ya,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,i=kn(Ya,e.__scopeDialog);return a.jsx(Ir,{present:n||i.open,children:i.modal?a.jsx(g$,{...s,ref:t}):a.jsx(x$,{...s,ref:t})})});u_.displayName=Ya;var g$=g.forwardRef((e,t)=>{const r=kn(Ya,e.__scopeDialog),n=g.useRef(null),s=Pe(t,r.contentRef,n);return g.useEffect(()=>{const i=n.current;if(i)return n_(i)},[]),a.jsx(h_,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:le(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:le(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&i.preventDefault()}),onFocusOutside:le(e.onFocusOutside,i=>i.preventDefault())})}),x$=g.forwardRef((e,t)=>{const r=kn(Ya,e.__scopeDialog),n=g.useRef(!1),s=g.useRef(!1);return a.jsx(h_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),i.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:i=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((d=r.triggerRef.current)==null?void 0:d.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),h_=g.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,l=kn(Ya,r),c=g.useRef(null),d=Pe(t,c);return Zk(),a.jsxs(a.Fragment,{children:[a.jsx(Hx,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:i,children:a.jsx(Nc,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Kx(l.open),...o,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(v$,{titleId:l.titleId}),a.jsx(b$,{contentRef:c,descriptionId:l.descriptionId})]})]})}),Gx="DialogTitle",f_=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=kn(Gx,r);return a.jsx(de.h2,{id:s.titleId,...n,ref:t})});f_.displayName=Gx;var m_="DialogDescription",p_=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=kn(m_,r);return a.jsx(de.p,{id:s.descriptionId,...n,ref:t})});p_.displayName=m_;var g_="DialogClose",x_=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=kn(g_,r);return a.jsx(de.button,{type:"button",...n,ref:t,onClick:le(e.onClick,()=>s.onOpenChange(!1))})});x_.displayName=g_;function Kx(e){return e?"open":"closed"}var v_="DialogTitleWarning",[JU,y_]=TE(v_,{contentName:Ya,titleName:Gx,docsSlug:"dialog"}),v$=({titleId:e})=>{const t=y_(v_),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 619 620If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 621 622For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},y$="DialogDescriptionWarning",b$=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${y_(y$).contentName}}.`;return g.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},w$=a_,j$=o_,N$=c_,b_=d_,w_=u_,j_=f_,N_=p_,S$=x_;const Bh=w$,S_=j$,k$=N$,k_=g.forwardRef(({className:e,...t},r)=>a.jsx(b_,{ref:r,className:X("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));k_.displayName=b_.displayName;const $c=g.forwardRef(({className:e,children:t,...r},n)=>
vendor: 3,937 bytes, line 622
622a.jsxs(k$,{children:[a.jsx(k_,{}),a.jsxs(w_,{ref:n,className:X("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,a.jsxs(S$,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[a.jsx(qa,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));$c.displayName=w_.displayName;const Fc=({className:e,...t})=>a.jsx("div",{className:X("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Fc.displayName="DialogHeader";const Uc=g.forwardRef(({className:e,...t},r)=>a.jsx(j_,{ref:r,className:X("text-lg font-semibold leading-none tracking-tight",e),...t}));Uc.displayName=j_.displayName;const zc=g.forwardRef(({className:e,...t},r)=>a.jsx(N_,{ref:r,className:X("text-sm text-muted-foreground",e),...t}));zc.displayName=N_.displayName;var Vh="Switch",[_$,QU]=lr(Vh),[C$,A$]=_$(Vh),__=g.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:s,defaultChecked:i,required:o,disabled:l,value:c="on",onCheckedChange:d,form:u,...h}=e,[f,m]=g.useState(null),b=Pe(t,y=>m(y)),x=g.useRef(!1),w=f?u||!!f.closest("form"):!0,[v,p]=bn({prop:s,defaultProp:i??!1,onChange:d,caller:Vh});return a.jsxs(C$,{scope:r,checked:v,disabled:l,children:[a.jsx(de.button,{type:"button",role:"switch","aria-checked":v,"aria-required":o,"data-state":T_(v),"data-disabled":l?"":void 0,disabled:l,value:c,...h,ref:b,onClick:le(e.onClick,y=>{p(j=>!j),w&&(x.current=y.isPropagationStopped(),x.current||y.stopPropagation())})}),w&&a.jsx(E_,{control:f,bubbles:!x.current,name:n,value:c,checked:v,required:o,disabled:l,form:u,style:{transform:"translateX(-100%)"}})]})});__.displayName=Vh;var C_="SwitchThumb",A_=g.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,s=A$(C_,r);return a.jsx(de.span,{"data-state":T_(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:t})});A_.displayName=C_;var E$="SwitchBubbleInput",E_=g.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...s},i)=>{const o=g.useRef(null),l=Pe(o,i),c=Rx(r),d=dx(t);return g.useEffect(()=>{const u=o.current;if(!u)return;const h=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(h,"checked").set;if(c!==r&&m){const b=new Event("click",{bubbles:n});m.call(u,r),u.dispatchEvent(b)}},[c,r,n]),a.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:l,style:{...s.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});E_.displayName=E$;function T_(e){return e?"checked":"unchecked"}var P_=__,T$=A_;const R_=g.forwardRef(({className:e,...t},r)=>a.jsx(P_,{className:X("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:r,children:a.jsx(T$,{className:X("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));R_.displayName=P_.displayName;const P$=[{id:"agent-001",name:"Dev Assistant (Augmented Agent)",purpose:"Internal
622code review & documentation generation with human-in-the-loop",owner:"Sarah Chen",status:"active",model:"gpt-4o",lastActive:"2 min ago",trustScore:94,environment:"production",actions:1247},{id:"agent-002",name:"Customer Support Bot",purpose:"Tier-1 customer query resolution & ticket routing",owner:"Marcus Rivera",status:"active",model:"gpt-4o-mini",lastActive:"Just now",trustScore:88,environment:"production",actions:3891},{id:"agent-003",name:"Sales Research Agent",purpose:"Prospect enrichment & competitive analysis",owner:"Priya Patel",status:"warning",model:"claude-3.5-sonnet",lastActive:"15 min ago",trustScore:72,environment:"production",actions:562},{id:"agent-005",name:"Data Pipeline Monitor",purpose:"ETL health checks & anomaly alerting",owner:"Sarah Chen",status:"active",model:"gpt-4o",lastActive:"30 sec ago",trustScore:91,environment:"production",actions:2034},{id:"agent-006",name:"Content Generator",purpose:"Marketing copy & social media drafts",owner:"Lena Kowalski",status:"error",model:"claude-3.5-sonnet",lastActive:"1 hr ago",trustScore:45,environment:"development",actions:78},{id:"agent-007",name:"Scrum Master Agent",purpose:"Manages sprints and nudges developers and agents to update status in Jira",owner:"Priya Patel",status:"active",model:"gpt-4o",lastActive:"5 min ago",trustScore:89,environment:"production",actions:734},{id:"agent-008",name:"Autonomous Developer Agent",purpose:"Takes up a Jira ticket and independently develops code changes, sends to code review and checks-in the code",owner:"James O'Brien",status:"active",model:"claude-3.5-sonnet",lastActive:"8 min ago",trustScore:82,environment:"development",actions:312},{id:"agent-009",name:"Project Manager Agent",purpose:"Sprint planning, creates sprint progress reports and works with Scrum Masters",owner:"Priya Patel",status:"idle",model:"gpt-4o",lastActive:"1 hr ago",trustScore:90,environment:"production",actions:456},{id:"agent-010",name:"Chat Agent",purpose:"Personal assistant for any employee â chat, research queries, general productivity",owner:"All Teams",status:"active",model:"gpt-4o-mini",lastActive:"Just now",trustScore:95,environment:"production",actions:8721}],R$=[{id:"pol-001",name:"Model Access Control",description:"Agents may only call models from approved execution providers",status:"enforced",appliedTo:["All Agents"],category:"Access"},{id:"pol-002",name:"PII Redaction Required",description:"All prompts must be scanned and PII redacted before LLM calls",status:"enforced",appliedTo:["Customer Support Bot","Sales Research Agent"],category:"Data"},{id:"pol-003",name:"Production DB Read-Only",description:"No agent may write to production databases unless explicitly authorized",status:"enforced",appliedTo:["All Agents"],category:"Access"},{id:"pol-004",name:"Spend Cap â $500/agent/month",description:"Individual agent spend cannot exceed $500 per calendar month",status:"enforced",appliedTo:["All Agents"],category:"Cost"},{id:"pol-005",name:"Rate Limit â 100 req/min",description:"Maximum 100 API requests per minute per agent",status:"enforced",appliedTo:["All Agents"],category:"Performance"},{id:"pol-006",name:"External Data Only",description:"Agent restricted to external/public data sources only",status:"draft",appliedTo:["Sales Research Agent"],category:"Data"},{id:"pol-007",name:"Human-in-the-Loop for Deletions",description:"Any destructive action requires human approval",status:"draft",appliedTo:["Dev Assistant (Augmented Agent)","Data Pipeline Monitor","Autonomous Developer Agent"],category:"Safety"},{id:"pol-008",name:"Autonomous Agent Code Review",description:"All code changes by autonomous agents must pass automated tests and human review before merge",status:"enforced",appliedTo:["Autonomous Developer Agent"],category:"Safety"},{id:"pol-009",name:"Chat Data Isolation",description:"Chat Agent conversations are isolated per user and never shared across team members",status:"enforced",appliedTo:["Chat Agent"],category:"Data"}],I$=[{id:"vio-001",agentName:"Sales Research Agent",policyName:"PII Redaction Required",severity:"high",description:"Agent attempted to send unredacted email addresses in prompt to LLM",timestamp:"12 min ago",resolved:!1},{id:"vio-002",agentName:"Content Generator",policyName:"Model Access Control",severity:"critical",description:"Agent attempted to call unapproved model endpoint (llama-3.1-70b)",timestamp:"1 hr ago",resolved:!1},{id:"vio-003",agentName:"Customer Support Bot",policyName:"Rate Limit â 100 req/min",severity:"medium",description:"Agent exceeded rate limit during traffic spike (142 req/min)",timestamp:"3 hrs ago",resolved:!0},{id:"vio-004",agentName:"Dev Assistant (Augmented Agent)",policyName:"Production DB Read-Only",severity:"high",description:"Agent attempted write operation on production users table",timestamp:"Yesterday",resolved:!0},{id:"vio-005",agentName:"Autonomous Developer Agent",policyName:"Human-in-the-Loop for Deletions",severity:"medium",description:"Agent attempted to merge code without required human approval",timestamp:"2 hrs ago",resolved:!1}],O$=[{id:"prov-001",name:"OpenAI Business",type:"OpenAI",status:"connected",models:["gpt-4o","gpt-4o-mini","o1-preview"],apiKeySet:!0}],Cd={active:{color:"text-green-600",bg:"bg-green-500",label:"Active"},idle:{color:"text-muted-foreground",bg:"bg-muted-foreground",label:"Idle"},warning:{color:"text-yellow-600",bg:"bg-yellow-500",label:"Warning"},error:{color:"text-destructive",bg:"bg-destructive",label:"Error"}},sm={critical:{color:"text-red-700",bg:"bg-red-100 text-red-800 border-red-200"},high:{color:"text-orange-700",bg:"bg-orange-100 text-orange-800 border-orange-200"},medium:{color:"text-yellow-700",bg:"bg-yellow-100 text-yellow-800 border-yellow-200"},low:{color:"text-blue-700",bg:"bg-blue-100 text-blue-800 border-blue-200"}},M$=()=>{const[e,t]=g.useState(P$),[r,n]=g.useState(R$),[s]=g.useState(I$),[i,o]=g.useState(O$),[l,c]=g.useState("overview"),[d,u]=g.useState(!1),[h,f]=g.useState(""),[m,b]=g.useState(!1),[x,w]=g.useState(""),[v,p]=g.useState("OpenAI"),[y,j]=g.useState(!1),[N,S]=g.useState({name:"",purpose:"",owner:"",model:"gpt-4o",environment:"development",riskLevel:"medium"}),k=e.filter(C=>C.status==="active").length,A=s.filter(C=>!C.resolved).length,E=r.filter(C=>C.status==="enforced").length,O=()=>{if(!x.trim())return;const C={id:`prov-${Date.now()}`,name:x,type:v,status:"pending",models:[],apiKeySet:!1};o([...i,C]),w(""),b(!1)},R=()=>
622{if(!N.name.trim()||!N.purpose.trim())return;const C={id:`agent-${Date.now()}`,name:N.name,purpose:N.purpose,owner:N.owner||"Unassigned",status:"idle",model:N.model,lastActive:"Just registered",trustScore:50,environment:N.environment,actions:0};t([...e,C]),S({name:"",purpose:"",owner:"",model:"gpt-4o",environment:"development",riskLevel:"medium"}),j(!1)},I=C=>{n(r.map(F=>F.id===C?{...F,status:F.status==="enforced"?"disabled":"enforced"}:F))},U=()=>{u(!0)},L=e.filter(C=>C.name.toLowerCase().includes(h.toLowerCase())||C.owner.toLowerCase().includes(h.toLowerCase()));return a.jsxs("div",{className:"min-h-screen bg-background zumie-theme",children:[a.jsx(vr,{title:"NovaCraft Labs â Zumie Control Plane",description:"AI Agent Management dashboard for NovaCraft Labs. Monitor agents, enforce policies, and manage execution providers."}),a.jsx(zx,{}),a.jsx("div",{className:"border-b border-border bg-card/50",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 md:px-8 py-6",children:a.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[a.jsx("div",{children:a.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-gradient-to-br from-primary to-accent flex items-center justify-center",children:a.jsx(B1,{className:"w-5 h-5 text-primary-foreground"})}),a.jsxs("div",{children:[a.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"NovaCraft Labs"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"AI Agent Control Plane â Demo Environment"})]})]})}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(Ae,{variant:d?"default":"outline",className:"gap-1.5 py-1.5 px-3",children:d?a.jsxs(a.Fragment,{children:[a.jsx(Yt,{className:"w-3.5 h-3.5"})," Control Plane Live"]}):a.jsxs(a.Fragment,{children:[a.jsx(Ys,{className:"w-3.5 h-3.5"})," Not Deployed"]})}),!d&&a.jsxs(se,{onClick:U,className:"gap-2",children:[a.jsx(Ga,{className:"w-4 h-4"}),"Deploy Control Plane"]})]})]})})}),a.jsx("div",{className:"max-w-7xl mx-auto px-4 md:px-8 py-6",children:a.jsxs(Gk,{value:l,onValueChange:c,children:[a.jsxs(Vx,{className:"mb-6 w-full md:w-auto flex flex-wrap",children:[a.jsxs(Jn,{value:"overview",className:"gap-1.5",children:[a.jsx(Er,{className:"w-3.5 h-3.5"}),"Overview"]}),a.jsxs(Jn,{value:"agents",className:"gap-1.5",children:[a.jsx(Vr,{className:"w-3.5 h-3.5"}),"Agents"]}),a.jsxs(Jn,{value:"policies",className:"gap-1.5",children:[a.jsx(Cc,{className:"w-3.5 h-3.5"}),"Policies"]}),a.jsxs(Jn,{value:"violations",className:"gap-1.5",children:[a.jsx(Ln,{className:"w-3.5 h-3.5"}),"Violations"]}),a.jsxs(Jn,{value:"providers",className:"gap-1.5",children:[a.jsx(_l,{className:"w-3.5 h-3.5"}),"Providers"]}),a.jsxs(Jn,{value:"access",className:"gap-1.5",children:[a.jsx(qr,{className:"w-3.5 h-3.5"}),"Access"]})]}),a.jsxs(Qn,{value:"overview",className:"space-y-6",children:[a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[{label:"Active Agents",value:k,total:e.length,icon:Vr,accent:"text-primary"},{label:"Enforced Policies",value:E,total:r.length,icon:Vt,accent:"text-primary"},{label:"Open Violations",value:A,total:s.length,icon:Ln,accent:A>0?"text-destructive":"text-primary"},{label:"Providers",value:i.length,total:null,icon:_l,accent:"text-primary"}].map((C,F)=>a.jsx(ie,{className:"hover:shadow-md transition-shadow",children:a.jsxs(Me,{className:"p-4",children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsx(C.icon,{className:`w-5 h-5 ${C.accent}`}),a.jsx("span",{className:"text-2xl font-bold text-foreground",children:C.value})]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:C.label}),C.total!==null&&a.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["of ",C.total," total"]})]})},F))}),a.jsxs("div",{className:"grid gap-6 lg:grid-cols-2",children:[a.jsxs(ie,{children:[a.jsx(Ve,{className:"pb-3",children:a.jsxs(He,{className:"text-lg flex items-center gap-2",children:[a.jsx(Ln,{className:"w-4 h-4 text-destructive"}),"Recent Violations"]})}),a.jsx(Me,{className:"space-y-3",children:s.slice(0,3).map(C=>a.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg border border-border bg-muted/30",children:[a.jsx("div",{className:`w-2 h-2 rounded-full mt-2 ${C.resolved?"bg-muted-foreground":sm[C.severity].color==="text-red-700"?"bg-red-500":"bg-orange-500"}`}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[a.jsx("span",{className:"font-medium text-sm text-foreground",children:C.agentName}),a.jsx(Ae,{variant:"outline",className:`text-xs ${sm[C.severity].bg}`,children:C.severity}),C.resolved&&a.jsx(Ae,{variant:"outline",className:"text-xs",children:"Resolved"})]}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-1",children:C.description}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:C.timestamp})]})]},C.id))})]}),a.jsxs(ie,{children:[a.jsx(Ve,{className:"pb-3",children:a.jsxs(He,{className:"text-lg flex items-center gap-2",children:[a.jsx(Er,{className:"w-4 h-4 text-primary"}),"Agent Fleet Status"]})}),a.jsx(Me,{className:"space-y-3",children:e.slice(0,4).map(C=>a.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg border border-border bg-muted/30",children:[a.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[a.jsx("div",{className:`w-2.5 h-2.5 rounded-full ${Cd[C.status].bg}`}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:"font-medium text-sm text-foreground truncate",children:C.name}),a.jsx("p",{className:"text-xs text-muted-foreground",children:C.lastActive})]})]}),a.jsxs("div",{className:"text-right",children:[a.jsxs("p",{className:"text-sm font-semibold text-foreground",children:[C.trustScore,"%"]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Trust"})]})]},C.id))})]})]})]}),a.jsxs(Qn,{value:"agents",className:"space-y-4",children:[a.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3",children:[a.jsxs("div",{className:"relative w-full sm:w-72",children:[a.jsx(Fi,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),a.jsx(ft,{placeholder:"Search agents...",value:h,onChange:C=>f(C.target.value),className:"pl-9"})]}),a.jsxs(se,{className:"gap-2",onClick:()=>j(!0),children:[a.jsx(hd,{className:"w-4 h-4"})," Register Agent"]})]}),a.jsx(ie,{children:a.jsxs(Ea,{children:[a.jsx(Ta,{children:a.jsxs(wr,{children:[a.jsx(ze,{children:"Agent"}),a.jsx(ze,{children:"Owner"}),a.jsx(ze,{children:"Model"}),a.jsx(ze,{children:"Status"}),a.jsx(ze,{children:"Trust"}),a.jsx(ze,{children:"Env"}),a.jsx(ze,{className:"text-right",children:"Actions"})]})}),a.jsx(Pa,{children:L.map(C=>a.jsxs(wr,{children:[a.jsx(Be,{children:a.jsxs("div",{children:[a.jsx("p",{className:"font-medium text-foreground",children:C.name}),a.jsx("p",{className:"text-xs text-muted-foreground line-clamp-1",children:C.purpose})]})}),a.jsx(Be,{className:"text-muted-foreground text-sm",children:C.owner}),a.jsx(Be,{children:a.jsx(Ae,{variant:"outline",className:"text-xs font-mono",children:C.model})}),a.jsx(Be,{children:a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx("div",{className:`w-2 h-2 rounded-full ${Cd[C.status].bg}`}),a.jsx("span",{className:`text-sm ${Cd[C.status].color}`,children:Cd[C.status].label})]})}),a.jsx(Be,{children:a.jsxs("span",{className:`font-semibold text-sm ${C.trustScore>=80?"text-green-600":C.trustScore>=60?"text-yellow-600":"text-destructive"}`,children:[C.trustScore,"%"]})}),a.jsx(Be,{children:a.jsx(Ae,{variant:C.environment==="production"?"default":"secondary",className:"text-xs",children:C.environment==="production"?"Prod":"Dev"})}),a.jsx(Be,{className:"text-right text-sm text-muted-foreground",children:C.actions.toLocaleStr
622ing()})]},C.id))})]})})]}),a.jsxs(Qn,{value:"policies",className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("p",{className:"text-sm text-muted-foreground",children:[E," of ",r.length," policies enforced"]}),a.jsxs(se,{className:"gap-2",children:[a.jsx(hd,{className:"w-4 h-4"})," Create Policy"]})]}),a.jsx("div",{className:"grid gap-4",children:r.map(C=>a.jsx(ie,{className:"hover:shadow-md transition-shadow",children:a.jsx(Me,{className:"p-4",children:a.jsxs("div",{className:"flex items-start justify-between gap-4",children:[a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2 flex-wrap mb-1",children:[a.jsx("h3",{className:"font-semibold text-foreground",children:C.name}),a.jsx(Ae,{variant:"outline",className:"text-xs",children:C.category}),a.jsx(Ae,{variant:C.status==="enforced"?"default":C.status==="draft"?"secondary":"outline",className:"text-xs",children:C.status})]}),a.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:C.description}),a.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[a.jsx("span",{className:"text-xs text-muted-foreground",children:"Applied to:"}),C.appliedTo.map((F,B)=>a.jsx(Ae,{variant:"outline",className:"text-xs",children:F},B))]})]}),a.jsx("div",{className:"flex items-center gap-2",children:a.jsx(R_,{checked:C.status==="enforced",onCheckedChange:()=>I(C.id)})})]})})},C.id))})]}),a.jsxs(Qn,{value:"violations",className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("p",{className:"text-sm text-muted-foreground",children:[A," unresolved violation",A!==1?"s":""]}),a.jsxs(se,{variant:"outline",className:"gap-2",children:[a.jsx(bu,{className:"w-4 h-4"})," Export Report"]})]}),a.jsx(ie,{children:a.jsxs(Ea,{children:[a.jsx(Ta,{children:a.jsxs(wr,{children:[a.jsx(ze,{children:"Severity"}),a.jsx(ze,{children:"Agent"}),a.jsx(ze,{children:"Policy Violated"}),a.jsx(ze,{children:"Description"}),a.jsx(ze,{children:"When"}),a.jsx(ze,{children:"Status"})]})}),a.jsx(Pa,{children:s.map(C=>a.jsxs(wr,{children:[a.jsx(Be,{children:a.jsx(Ae,{variant:"outline",className:`text-xs ${sm[C.severity].bg}`,children:C.severity})}),a.jsx(Be,{className:"font-medium text-foreground text-sm",children:C.agentName}),a.jsx(Be,{className:"text-sm text-muted-foreground",children:C.policyName}),a.jsx(Be,{className:"text-sm text-muted-foreground max-w-xs truncate",children:C.description}),a.jsx(Be,{className:"text-sm text-muted-foreground whitespace-nowrap",children:C.timestamp}),a.jsx(Be,{children:C.resolved?a.jsxs(Ae,{variant:"outline",className:"gap-1 text-xs",children:[a.jsx(Yt,{className:"w-3 h-3"})," Resolved"]}):a.jsxs(Ae,{variant:"destructive",className:"gap-1 text-xs",children:[a.jsx(M1,{className:"w-3 h-3"})," Open"]})})]},C.id))})]})})]}),a.jsxs(Qn,{value:"providers",className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("p",{className:"text-sm text-muted-foreground",children:"Registered execution providers"}),a.jsxs(se,{className:"gap-2",onClick:()=>b(!m),children:[a.jsx(hd,{className:"w-4 h-4"})," Add Provider"]})]}),m&&a.jsxs(ie,{className:"border-primary/30",children:[a.jsxs(Ve,{children:[a.jsx(He,{className:"text-lg",children:"Register Execution Provider"}),a.jsx(Et,{children:"Connect an LLM vendor as an approved execution provider for your agents."})]}),a.jsxs(Me,{className:"space-y-4",children:[a.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{className:"text-sm font-medium text-foreground",children:"Provider Name"}),a.jsx(ft,{placeholder:"e.g., OpenAI Production",value:x,onChange:C=>w(C.target.value)})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{className:"text-sm font-medium text-foreground",children:"Provider Type"}),a.jsxs("select",{className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
622ing-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",value:v,onChange:C=>p(C.target.value),children:[a.jsx("option",{value:"OpenAI",children:"OpenAI"}),a.jsx("option",{value:"Anthropic",children:"Anthropic"}),a.jsx("option",{value:"Google",children:"Google (Gemini)"}),a.jsx("option",{value:"Meta",children:"Meta (Llama)"}),a.jsx("option",{value:"Mistral",children:"Mistral AI"}),a.jsx("option",{value:"Cohere",children:"Cohere"}),a.jsx("option",{value:"Custom",children:"Custom / Self-hosted"})]})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{className:"text-sm font-medium text-foreground",children:"API Key"}),a.jsx(ft,{type:"password",placeholder:"sk-â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Credentials are encrypted and stored in the Zumie vault. Never embedded in agent code."})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx(se,{onClick:O,children:"Register Provider"}),a.jsx(se,{variant:"outline",onClick:()=>b(!1),children:"Cancel"})]})]})]}),a.jsx("div",{className:"grid gap-4",children:i.map(C=>a.jsx(ie,{className:"hover:shadow-md transition-shadow",children:a.jsx(Me,{className:"p-5",children:a.jsxs("div",{className:"flex items-start justify-between gap-4",children:[a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-primary/10 to-accent/10 border border-border flex items-center justify-center",children:a.jsx(_l,{className:"w-6 h-6 text-primary"})}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx("h3",{className:"font-semibold text-foreground",children:C.name}),a.jsxs(Ae,{variant:C.status==="connected"?"default":"secondary",className:"text-xs gap-1",children:[C.status==="connected"?a.jsx(Yt,{className:"w-3 h-3"}):a.jsx(Ys,{className:"w-3 h-3"}),C.status]})]}),a.jsxs("p",{className:"text-sm text-muted-foreground mb-2",children:["Type: ",C.type]}),a.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[a.jsx("span",{className:"text-xs text-muted-foreground",children:"Models:"}),C.models.map((F,B)=>a.jsx(Ae,{variant:"outline",className:"text-xs font-mono",children:F},B))]})]})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx($1,{className:`w-4 h-4 ${C.apiKeySet?"text-green-600":"text-muted-foreground"}`}),a.jsx(se,{variant:"ghost",size:"icon",children:a.jsx(Ec,{className:"w-4 h-4"})})]})]})})},C.id))})]}),a.jsxs(Qn,{value:"access",className:"space-y-6",children:[a.jsxs(ie,{children:[a.jsxs(Ve,{children:[a.jsxs(He,{className:"text-lg flex items-center gap-2",children:[a.jsx(qr,{className:"w-5 h-5 text-primary"}),"Team Access Controls"]}),a.jsx(Et,{children:"Role-based access for team members interacting with the agent control plane."})]}),a.jsx(Me,{children:a.jsxs(Ea,{children:[a.jsx(Ta,{children:a.jsxs(wr,{children:[a.jsx(ze,{children:"Team Member"}),a.jsx(ze,{children:"Role"}),a.jsx(ze,{children:"Agent Access"}),a.jsx(ze,{children:"Permissions"})]})}),a.jsx(Pa,{children:[{name:"Sarah Chen",role:"Platform Lead",access:"Full Access",perms:["Create Agents","Deploy Policies","Manage Providers"]},{name:"Marcus Rivera",role:"Engineering",access:"Agent Owner",perms:["Create Agents","View Policies"]},{name:"Priya Patel",role:"PM",access:"Read Only + Testing",perms:["View Agents","View Reports"]},{name:"James O'Brien",role:"Engineering",access:"Agent Owner",perms:["Create Agents","View Policies"]},{name:"Lena Kowalski",role:"GTM",access:"Sandbox Only",perms:["View Agents","Test Sandbox"]}].map((C,F)=>a.jsxs(wr,{children:[a.jsx(Be,{className:"font-medium text-foreground",children:C.name}),a.jsx(Be,{children:a.jsx(Ae,{variant:"outline",className:"text-xs",children:C.role})}),a.jsx(Be,{className:"text-sm text-muted-foreground",children:C.access}),a.jsx(Be,{children:a.jsx("div",{className:"flex gap-1 flex-wrap",children:C.perms.map((B,P)=>a.jsx(Ae,{variant:"secondary",className:"text-xs",children:B},P))})})]},F))})]})})]}),a.jsxs(ie,{children:[a.jsxs(Ve,{children:[a.jsxs(He,{className:"text-lg flex items-center gap-2",children:[a.jsx(Qg,{className:"w-5 h-5 text-primary"}),"Agent Identity Registry"]}),a.jsx(Et,{children:"Every agent has a unique identity with scoped credentials and trust metadata."})]}),a.jsx(Me,{children:a.jsxs(Ea,{children:[a.jsx(Ta,{children:a.jsxs(wr,{children:[a.jsx(ze,{children:"Agent"}),a.jsx(ze,{children:"Agent ID"}),a.jsx(ze,{children:"Credential"}),a.jsx(ze,{children:"Owner"}),a.jsx(ze,{children:"Trust Chain"})]})}),a.jsx(Pa,{children:e.map(C=>a.jsxs(wr,{children:[a.jsx(Be,{className:"font-medium text-foreground",children:C.name}),a.jsx(Be,{children:a.jsx("code",{className:"text-xs bg-muted px-2 py-1 rounded font-mono",children:C.id})}),a.jsx(Be,{children:a.jsxs("code",{className:"text-xs bg-muted px-2 py-1 rounded font-mono",children:["zumie_cred_",C.id.split("-")[1]]})}),a.jsx(Be,{className:"text-sm text-muted-foreground",children:C.owner}),a.jsx(Be,{children:a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("span",{className:"text-xs text-muted-foreground",children:C.owner}),a.jsx(vu,{className:"w-3 h-3 text-muted-foreground"}),a.jsx("span",{className:"text-xs text-muted-foreground",children:C.name}),a.jsx(vu,{className:"w-3 h-3 text-muted-foreground"}),a.jsx("span",{className:"text-xs text-muted-foreground",children:C.environment})]})})]},C.id))})]})})]})]})]})}),a.jsx(Bh,{open:y,onOpenChange:j,children:a.jsxs($c,{className:"sm:max-w-lg",children:[a.jsxs(Fc,{children:[a.jsxs(Uc,{className:"flex items-center gap-2",children:[a.jsx(Vr,{className:"w-5 h-5 text-primary"})," Register New Agent"]}),a.jsx(zc,{children:"Define a new agent identity. It will be assigned scoped credentials and appear in the fleet registry."})]}),a.jsxs("div",{className:"space-y-4 pt-2",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Agent Name"}),a.jsx(ft,{placeholder:"e.g., QA Test Agent",value:N.name,onChange:C=>S({...N,name:C.target.value})})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Purpose / Description"}),a.jsx(Mh,{placeholder:"What does this agent do?",value:N.purpose,onChange:C=>S({...N,purpose:C.target.value})})]}),a.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Owner"}),a.jsx(ft,{placeholder:"e.g., Sarah Chen",value:N.owner,onChange:C=>S({...N,owner:C.target.value})})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Model"}),a.jsxs("select",{className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm",value:N.model,onChange:C=>S({...N,model:C.target.value}),children:[a.jsx("option",{value:"gpt-4o",children:"gpt-4o"}),a.jsx("option",{value:"gpt-4o-mini",children:"gpt-4o-mini"}
622),a.jsx("option",{value:"o1-preview",children:"o1-preview"}),a.jsx("option",{value:"claude-3.5-sonnet",children:"claude-3.5-sonnet"}),a.jsx("option",{value:"gemini-2.5-pro",children:"gemini-2.5-pro"})]})]})]}),a.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Environment"}),a.jsxs("select",{className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm",value:N.environment,onChange:C=>S({...N,environment:C.target.value}),children:[a.jsx("option",{value:"development",children:"Development"}),a.jsx("option",{value:"production",children:"Production"})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Risk Level"}),a.jsxs("select",{className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm",value:N.riskLevel,onChange:C=>S({...N,riskLevel:C.target.value}),children:[a.jsx("option",{value:"low",children:"Low"}),a.jsx("option",{value:"medium",children:"Medium"}),a.jsx("option",{value:"high",children:"High"})]})]})]}),a.jsxs("div",{className:"flex gap-2 pt-2",children:[a.jsxs(se,{onClick:R,className:"gap-2",children:[a.jsx(hd,{className:"w-4 h-4"})," Register Agent"]}),a.jsx(se,{variant:"outline",onClick:()=>j(!1),children:"Cancel"})]})]})]})}),a.jsx("footer",{className:"border-t border-border py-8 mt-12",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 md:px-8 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Vt,{className:"w-4 h-4 text-primary"}),a.jsx("span",{className:"text-sm font-semibold text-foreground",children:"Zumie"}),a.jsx("span",{className:"text-muted-foreground text-sm",children:"â NovaCraft Labs Demo"})]}),a.jsx("span",{className:"text-muted-foreground text-sm",children:"AI Agent Management"})]})})]})},D$=()=>a.jsxs(a.Fragment,{children:[a.jsxs(yx,{children:[a.jsx("title",{children:"Zumie Demo | AI Workforce Management Platform"}),a.jsx("meta",{name:"description",content:"Experience the Zumie AI Workforce Management Platform â live interactive demo."})]}),a.jsxs("div",{className:"h-screen flex flex-col bg-background",children:[a.jsxs("div",{className:"flex items-center justify-between px-4 md:px-6 py-3 border-b border-border/50 bg-card/80 backdrop-blur-sm",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsxs(xe,{to:"/zumie",className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[a.jsx(da,{className:"h-4 w-4"}),a.jsx("span",{className:"hidden sm:inline",children:"Back to Zumie"})]}),a.jsx("div",{className:"h-4 w-px bg-border hidden sm:block"}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(U1,{className:"h-4 w-4 text-primary"}),a.jsx("span",{className:"text-sm font-semibold text-foreground",children:"Zumie Demo"}),a.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full bg-primary/10 text-primary font-medium border border-primary/20",children:"LIVE"})]})]}),a.jsxs("a",{href:"https://zumie.fly.dev",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",children:["Open in new tab",a.jsx(yu,{className:"h-3.5 w-3.5"})]})]}),a.jsx("div",{className:"flex-1 relative",children:a.jsx("iframe",{src:"https://zumie.fly.dev",className:"absolute inset-0 w-full h-full border-0",title:"Zumie Demo",allow:"clipboard-read; clipboard-write"})})]})]}),yb="https://zumieportal-production.up.railway.app/",L$=()=>a.jsxs(a.Fragment,{children:[a.jsxs(yx,{children:[a.jsx("title",{children:"Zumie Dev Portal | Aristle AI"}),a.jsx("meta",{name:"description",content:"Zumie developer portal â live environment."})]}),a.jsxs("div",{className:"h-screen flex flex-col bg-background",children:[a.jsxs("div",{className:"flex items-center justify-between px-4 md:px-6 py-3 border-b border-border/50 bg-card/80 backdrop-blur-sm",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsxs(xe,{to:"/zumie",className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[a.jsx(da,{className:"h-4 w-4"}),a.jsx("span",{className:"hidden sm:inline",children:"Back to Zumie"})]}),a.jsx("div",{className:"h-4 w-px bg-border hidden sm:block"}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(U1,{className:"h-4 w-4 text-primary"}),a.jsx("span",{className:"text-sm font-semibold text-foreground",children:"Zumie Dev Portal"}),a.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full bg-primary/10 text-primary font-medium border border-primary/20",children:"LIVE"})]})]}),a.jsxs("a",{href:yb,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",children:["Open in new tab",a.jsx(yu,{className:"h-3.5 w-3.5"})]})]}),a.jsx("div",{className:"flex-1 relative",children:a.jsx("iframe",{src:yb,className:"absolute inset-0 w-full h-full border-0",title:"Zumie Dev Portal",allow:"clipboard-read; clipboard-write"})})]})]}),$$=()=>{const e={"@context":"https://schema.org","@type":"SoftwareApplication",name:"Gavrun - Health Aware Dining Platform",applicationCategory:"FoodEstablishmentReservation",operatingSystem:"Web, iOS, Android",description:"All-in-One Health Aware Intelligent Dining Platform that connects restaurant discovery, booking, payments, and nutritional tracking to personal health goals",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},featureList:["Health-Aware Restaurant Discovery","Personalized Menu Recommendations","Table Reservations","To-Go Ordering","Seamless Payments","Automatic Nutritional Tracking","Allergen Alerts","Dietary Preference Matching"],provider:{"@type":"Organization",name:"Aristle AI"}};return a.jsxs(a.Fragment,{children:[a.jsx(vr,{title:"Gavrun - Health Aware Intelligent Dining Platform",description:"Discover restaurants and menu items optimized for your health goals. Book tables, order to-go, pay seamlessly, and automatically track y
622our nutritional intake with Gavrun.",keywords:"health aware dining, restaurant discovery, nutritional tracking, dietary preferences, allergen alerts, calorie tracking, healthy restaurants, personalized dining",canonicalUrl:"/gavrun",structuredData:e}),a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(ua,{}),a.jsx("section",{className:"pt-24 pb-16 px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsxs(Ae,{className:"mb-4 bg-orange-500/10 text-orange-600 border-orange-500/20 hover:bg-orange-500/20",children:[a.jsx(Ui,{className:"w-3 h-3 mr-1"}),"Coming Soon"]}),a.jsx("h1",{className:"text-4xl md:text-6xl font-bold mb-6",children:a.jsx("span",{className:"bg-gradient-to-r from-orange-500 via-red-500 to-pink-500 bg-clip-text text-transparent",children:"Gavrun"})}),a.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground mb-4 max-w-4xl mx-auto",children:"The All-in-One Health Aware Intelligent Dining Platform"}),a.jsx("p",{className:"text-lg text-muted-foreground mb-8 max-w-3xl mx-auto",children:"Discover, book, dine, pay, and track â all connected to your personal health goals. One seamless experience that benefits both you and the restaurants you love."}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsx(xe,{to:"/gavrun/restaurants",children:a.jsxs(se,{size:"lg",className:"bg-gradient-to-r from-orange-500 to-red-500 hover:from-orange-600 hover:to-red-600",children:["Find Restaurants",a.jsx(Fi,{className:"ml-2 h-4 w-4"})]})}),a.jsxs(se,{size:"lg",variant:"outline",children:["For Restaurants",a.jsx(Ef,{className:"ml-2 h-4 w-4"})]})]})]}),a.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mt-16",children:[a.jsx(ie,{className:"border-orange-500/20 bg-gradient-to-br from-orange-500/5 to-transparent",children:a.jsxs(Ve,{className:"text-center",children:[a.jsx("div",{className:"mx-auto w-16 h-16 rounded-full bg-orange-500/10 flex items-center justify-center mb-4",children:a.jsx(Fi,{className:"h-8 w-8 text-orange-500"})}),a.jsx(He,{children:"Discover & Book"}),a.jsx(Et,{children:"Find restaurants and dishes that match your taste AND your health goals"})]})}),a.jsx(ie,{className:"border-red-500/20 bg-gradient-to-br from-red-500/5 to-transparent",children:a.jsxs(Ve,{className:"text-center",children:[a.jsx("div",{className:"mx-auto w-16 h-16 rounded-full bg-red-500/10 flex items-center justify-center mb-4",children:a.jsx(zr,{className:"h-8 w-8 text-red-500"})}),a.jsx(He,{children:"Health-Aware Dining"}),a.jsx(Et,{children:"Every menu item scored for calories, macros, allergens, and your dietary needs"})]})}),a.jsx(ie,{className:"border-pink-500/20 bg-gradient-to-br from-pink-500/5 to-transparent",children:a.jsxs(Ve,{className:"text-center",children:[a.jsx("div",{className:"mx-auto w-16 h-16 rounded-full bg-pink-500/10 flex items-center justify-center mb-4",children:a.jsx(wn,{className:"h-8 w-8 text-pink-500"})}),a.jsx(He,{children:"Auto-Track Progress"}),a.jsx(Et,{children:"Seamlessly log meals and see how dining out impacts your health journey"})]})})]})]})}),a.jsx("section",{className:"py-16 px-4 sm:px-6 lg:px-8 bg-muted/30",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsxs(Ae,{className:"mb-4",variant:"outline",children:[a.jsx(Ga,{className:"w-3 h-3 mr-1"}),"The Complete Loop"]}),a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"One Platform, Endless Possibilities"}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"From craving to completion â every step of your dining journey, unified and intelligent"})]}),a.jsx("div",{className:"grid md:grid-cols-6 gap-4",children:[{icon:Fi,label:"Discover",desc:"Find perfect matches",color:"orange"},{icon:dl,label:"Reserve",desc:"Book your table",color:"amber"},{icon:Ui,label:"Order",desc:"Dine-in or to-go",color:"yellow"},{icon:ap,label:"Pay",desc:"Seamless checkout",color:"lime"},{icon:Er,label:"Track",desc:"Auto-log intake",color:"green"},{icon:ls,label:"Reflect",desc:"See your impact",color:"emerald"}].map((t,r)=>a.jsxs(ie,{className:"text-center p-4 hover:shadow-lg transition-shadow",children:[a.jsx("div",{className:`mx-auto w-12 h-12 rounded-full bg-${t.color}-500/10 flex items-center justify-center mb-3`,children:a.jsx(t.icon,{className:`h-6 w-6 text-${t.color}-500`})}),a.jsx("h3",{className:"font-semibold text-sm mb-1",children:t.label}),a.jsx("p",{className:"text-xs text-muted-foreground",children:t.desc})]},r))})]})}),a.jsx("section",{className:"py-16 px-4 sm:px-6 lg:px-8",children:a.jsx("div",{className:"max-w-7xl mx-auto",children:a.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[a.jsxs("div",{children:[a.jsxs(Ae,{className:"mb-4 bg-green-500/10 text-green-600 border-green-500/20",children:[a.jsx(kl,{className:"w-3 h-3 mr-1"}),"Smart Discovery"]}),a.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:["Discover Restaurants That ",a.jsx("span",{className:"text-green-500",children:"Get You"})]}),a.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:"No more guessing games. Gavrun matches restaurants and menu items to your unique health profile, dietary preferences, and nutritional goals."}),a.jsx("div",{className:"space-y-4",children:[{icon:yo,text:"Personalized recommendations based on your health goals"},{icon:Ln,text:"Automatic allergen detection and warnings"},{icon:ky,text:"Filter by diet: Keto, Vegan, Low-Sodium, Diabetic-Friendly"},{icon:Zl,text:"Health scores for every dish, not just star ratings"}].map((t,r)=>a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-8 h-8 rounded-full bg-green-500/10 flex items-center justify-center flex-shrink-0",children:a.jsx(t.icon,{className:"h-4 w-4 text-green-500"})}),a.jsx("p",{className:"text-muted-foreground",children:t.text})]},r))})]}),a.jsx(ie,{className:"p-6 bg-gradient-to-br from-green-500/5 to-transparent border-green-500/20",children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[a.jsx(Fi,{className:"h-5 w-5 text-muted-foreground"}),a.jsx("div",{className:"flex-1 h-10 rounded-lg bg-muted/50 flex items-center px-4",children:a.jsx("span",{className:"text-muted-foreground text-sm",children:"Low-carb dinner near me..."})})]}),[{name:"Green Kitchen",cuisine:"Mediterranean",score:92,match:"Perfect for low-carb",tags:["Keto","Gluten-Free"]},{name:"Harvest Table",cuisine:"Farm-to-Table",score:88,match:"Great protein options",tags:["High-Protein","Organic"]},{name:"The Lean Bowl",cuisine:"Asian Fusion",score:85,match:"Excellent macros",tags:["Low-Sodium","Vegan Options"]}].map((t,r)=>a.jsx(ie,{className:"p-4 hover:bg-muted/30 transition-colors cursor-pointer",children:a.jsxs("div",{className:"flex items-start justify-between",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx("h4",{className:"font-semibold",children:t.name}),a.jsx(Ae,{variant:"secondary",className:"text-xs",children:t.cuisine})]}),a.jsx("p",{className:"text-sm text-green-600 mb-2",children:t.match}),a.jsx("div",{className:"flex gap-1",children:t.tags.map((n,s)=>a.jsx(Ae,{variant:"outline",className:"text-xs",children:n},s))})]}),a.jsxs("div",{className:"text-right",children:[a.jsx("div",{className:"w-12 h-12 rounded-full bg-green-500/10 flex items-center justify-center",children:a.jsx("span",{className:"text-lg font-bold text-green-500",children:t.score})}),a.jsx("span",{className:"text-xs text-muted-foreground",children:"Health Score"})]})]})},r))]})})]})})}),a.jsx("section",{className:"py-16 px-4 sm:px-6 lg:px-8 bg-muted/30",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsxs(Ae,{className:"mb-4 bg-purple-500/10 text-purple-600 border-purple-500/20",children:[a.jsx(CT,{className:"w-3 h-3 mr-1"}),"Menu Intelligence"]}),a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Every Dish, Decoded"}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Complete nutritional transparency for every menu item. Make informed choices without the guesswork."})]}),a.jsx(ie,{className:"max-w-4xl mx-auto p-8 border-purple-500/20",children:a.jsxs("div",{className:"flex flex-col md:flex-row gap-8",children:[a.jsxs("div",{className:"md:w-1/3",children:[a.jsx("div",{className:"aspect-square rounded-xl bg-gradient-to-br from-purple-500/20 to-pink-500/20 flex items-center justify-center mb-4",children:a.jsx(ky,{className:"h-20 w-20 text-purple-500/50"})}),a.jsx("h3",{className:"text-xl font-bold mb-1",children:"Grilled Salmon Bowl"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"The Green Kitchen"})]}),a.jsxs("div",{className:"md:w-2/3 space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsxs(Ae,{className:"bg-green-500/10 text-green-600 border-green-500/20",children:[a.jsx(Yt,{className:"w-3 h-3 mr-1"}),"Matches Your Goals"]}),a.jsx(Ae,{variant:"outline",children:"Keto-Friendly"}),a.jsx(Ae,{variant:"outline",children:"High-Protein"})]}),a.jsx("div",{className:"grid grid-cols-4 gap-4",children:[{label:"Calories",value:"480",unit:"kcal",color:"orange"},{label:"Protein",value:"42",unit:"g",color:"blue"},{label:"Carbs",value:"12",unit:"g",color:"green"},{label:"Fat",value:"28",unit:"g",color:"yellow"}].map((t,r)=>a.jsxs("div",{className:"text-center p-3 rounded-lg bg-muted/50",children:[a.jsx("p",{className:`text-2xl font-bold text-${t.color}-500`,children:t.value}),a.jsxs("p",{className:"text-xs text-muted-foreground",children:[t.unit," ",t.label]})]},r))}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[a.jsx(Ln,{className:"h-4 w-4 text-amber-500"}),a.jsx("span",{className:"text-muted-foreground",children:"Contains: Fish, Sesame"})]}),a.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[a.jsx(kl,{className:"h-4 w-4 text-green-500"}),a.jsx("span",{className:"text-muted-foreground",children:"Omega-3 Rich ⢠Low Glycemic"})]})]}),a.jsx(se,{className:"w-full bg-gradient-to-r from-purple-500 to-pink-500",children:"Add to Order"})]})]})})]})}),a.jsx("section",{className:"py-16 px-4 sm:px-6 lg:px-8",children:a.jsx("div",{className:"max-w-7xl mx-auto",children:a.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[a.jsx(ie,{className:"p-6 border-blue-500/20 bg-gradient-to-br from-blue-500/5 to-transparent",children:a.jsxs(Gk,{defaultValue:"reserve",className:"w-full",children:[a.jsxs(Vx,{className:"grid w-full grid-cols-2 mb-6",children:[a.jsx(Jn,{value:"reserve",children:"Reserve Table"}),a.jsx(Jn,{value:"togo",children:"Order To-Go"})]}),a.jsxs(Qn,{value:"reserve",className:"space-y-4",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{className:"text-sm font-medium",children:"Date"}),a.jsxs("div",{className:"h-10 rounded-lg border bg-background flex items-center px-3",children:[a.jsx(dl,{className:"h-4 w-4 text-muted-foreground mr-2"}),a.jsx("span",{className:"text-sm",children:"Today"})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{className:"text-sm font-medium",children:"Time"}),a.jsxs("div",{className:"h-10 rounded-lg border bg-background flex items-center px-3",children:[a.jsx(Ys,{className:"h-4 w-4 text-muted-foreground mr-2"}),a.jsx("span",{className:"text-sm",children:"7:30 PM"})]})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{className:"text-sm font-medium",children:"Party Size"}),a.jsxs("div",{className:"h-10 rounded-lg border bg-background flex items-center px-3",children:[a.jsx(qr,{className:"h-4 w-4 text-muted-foreground mr-2"}),a.jsx("span",{className:"text-sm",children:"2 guests"})]})]}),a.jsx(se,{className:"w-full bg-gradient-to-r from-blue-500 to-cyan-500",children:"Find Available Tables"})]}),a.jsxs(Qn,{value:"togo",className:"space-y-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{className:"text-sm font-medium",children:"Pickup Location"}),a.jsxs("div",{className:"h-10 rounded-lg border bg-background flex items-center px-3",children:[a.jsx(F1,{className:"h-4 w-4 text-muted-foreground mr-2"}),a.jsx("span",{className:"text-sm",children:"The Green Kitchen - Downtown"})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{className:"text-sm font-medium",children:"Pickup Time"}),a.jsxs("div",{className:"h-10 rounded-lg border bg-background flex items-center px-3",children:[a.jsx(Ys,{className:"h-4 w-4 text-muted-foreground mr-2"}),a.jsx("span",{className:"text-sm",children:"ASAP (15-20 min)"})]})]}),a.jsx(se,{className:"w-full bg-gradient-to-r from-blue-500 to-cyan-500",children:"Start Your Order"})]})]})}),a.jsxs("div",{children:[a.jsxs(Ae,{className:"mb-4 bg-blue-500/10 text-blue-600 border-blue-500/20",children:[a.jsx(dl,{className:"w-3 h-3 mr-1"}),"Seamless Booking"]}),a.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:["Reserve or Order, ",a.jsx("span",{className:"text-blue-500",children:"Your Choice"})]}),a.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:"Whether you're dining in or grabbing food on the go, Gavrun makes it effortless. One app for reservations, orders, and payments."}),a.jsx("div",{className:"space-y-4",children:[{icon:dl,text:"Real-time table availability and instant confirmation"},{icon:Ui,text:"Pre-order your meal to skip the wait"},{icon:ap,text:"Save payment methods for frictionless checkout"},{icon:Ys,text:"Track your order status in real-time"}].map((t,r)=>a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-8 h-8 rounded-full bg-blue-500/10 flex items-center justify-center flex-shrink-0",children:a.jsx(t.icon,{className:"h-4 w-4 text-blue-500"})}),a.jsx("p",{className:"text-muted-foreground",children:t.text})]},r))})]})]})})}),a.jsx("section",{className:"py-16 px-4 sm:px-6 lg:px-8 bg-muted/30",children:a.jsx("div",{className:"max-w-7xl mx-auto",children:a.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[a.jsxs("div",{children:[a.jsxs(Ae,{className:"mb-4 bg-emerald-500/10 text-emerald-600 border-emerald-500/20",children:[a.jsx(Er,{className:"w-3 h-3 mr-1"}),"Automatic Tracking"]}),a.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:["Dine Out Without ",a.jsx("span",{className:"text-emerald-500",children:"Breaking Your Goals"})]}),a.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:"Every meal you order through Gavrun is automatically logged to your nutrition tracker. No manual entry, no forgotten meals, no guilt."}),a.jsx("div",{className:"space-y-4",children:[{icon:ls,text:"Automatic meal logging when you pay"},{icon:wn,text:"See how dining out affects your weekly nutrition"},{icon:yo,text:"Stay on track with real-time goal updates"},{icon:zr,text:"Sync with Strahut for complete health picture"}].map((t,r)=>a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-8 h-8 rounded-full bg-emerald-500/10 flex items-center justify-center flex-shrink-0",children:a.jsx(t.icon,{className:"h-4 w-4 text-emerald-500"})}),a.jsx("p",{className:"text-muted-foreground",children:t.text})]},r))})]}),a.jsxs(ie,{className:"p-6 border-emerald-500/20 bg-gradient-to-br from-emerald-500/5 to-transparent",children:[a.jsxs("h3",{className:"font-semibold mb-4 flex items-center gap-2",children:[a.jsx(vo,{className:"h-5 w-5 text-emerald-500"}),"This Week's Dining Impact"]}),a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[a.jsxs("div",{className:"text-center p-4 rounded-lg bg-muted/50",children:[a.jsx("p",{className:"text-3xl font-bold text-emerald-500",children:"3"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Meals Out"})]}),a.jsxs("div",{className:"text-center p-4 rounded-lg bg-muted/50",children:[a.jsx("p",{className:"text-3xl font-bold text-blue-500",children:"1,840"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Calories"})]}),a.jsxs("div",{className:"text-center p-4 rounded-lg bg-mu
622ted/50",children:[a.jsx("p",{className:"text-3xl font-bold text-purple-500",children:"94%"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Goal Match"})]})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-center justify-between text-sm",children:[a.jsx("span",{children:"Calorie Goal"}),a.jsx("span",{className:"text-emerald-500",children:"On Track"})]}),a.jsx("div",{className:"h-2 rounded-full bg-muted overflow-hidden",children:a.jsx("div",{className:"h-full w-3/4 rounded-full bg-gradient-to-r from-emerald-500 to-green-500"})})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-center justify-between text-sm",children:[a.jsx("span",{children:"Protein Target"}),a.jsx("span",{className:"text-blue-500",children:"Exceeded!"})]}),a.jsx("div",{className:"h-2 rounded-full bg-muted overflow-hidden",children:a.jsx("div",{className:"h-full w-[90%] rounded-full bg-gradient-to-r from-blue-500 to-cyan-500"})})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-center justify-between text-sm",children:[a.jsx("span",{children:"Sodium Limit"}),a.jsx("span",{className:"text-amber-500",children:"Watch It"})]}),a.jsx("div",{className:"h-2 rounded-full bg-muted overflow-hidden",children:a.jsx("div",{className:"h-full w-[85%] rounded-full bg-gradient-to-r from-amber-500 to-orange-500"})})]})]})]})]})})}),a.jsx("section",{className:"py-16 px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsxs(Ae,{className:"mb-4 bg-amber-500/10 text-amber-600 border-amber-500/20",children:[a.jsx(Ef,{className:"w-3 h-3 mr-1"}),"For Restaurant Partners"]}),a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Reach Health-Conscious Diners"}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Join the platform where health meets hospitality. Showcase your menu's nutritional value and attract diners who appreciate transparency."})]}),a.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:[{icon:qr,title:"Targeted Customers",description:"Connect with diners actively seeking restaurants that match their dietary needs and health goals"},{icon:vo,title:"Rich Analytics",description:"Understand what health-conscious diners want with detailed insights on menu performance"},{icon:Zl,title:"Health Scores",description:"Stand out with transparent nutritional information that builds trust and loyalty"}].map((t,r)=>a.jsxs(ie,{className:"p-6 hover:shadow-lg transition-shadow border-amber-500/20",children:[a.jsx("div",{className:"w-12 h-12 rounded-full bg-amber-500/10 flex items-center justify-center mb-4",children:a.jsx(t.icon,{className:"h-6 w-6 text-amber-500"})}),a.jsx("h3",{className:"text-xl font-semibold mb-2",children:t.title}),a.jsx("p",{className:"text-muted-foreground",children:t.description})]},r))})]})}),a.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-gradient-to-br from-orange-500/10 via-red-500/10 to-pink-500/10",children:a.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Ready to Dine Smarter?"}),a.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"Join the waitlist and be the first to experience health-aware dining. Connect your health goals with your love for great food."}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsxs(se,{size:"lg",className:"bg-gradient-to-r from-orange-500 to-red-500 hover:from-orange-600 hover:to-red-600",children:["Join the Waitlist",a.jsx(tt,{className:"ml-2 h-4 w-4"})]}),a.jsxs(se,{size:"lg",variant:"outline",children:["Partner With Us",a.jsx(Ef,{className:"ml-2 h-4 w-4"})]})]}),a.jsxs("p",{className:"text-sm text-muted-foreground mt-6",children:["Part of the"," ",a.jsx(xe,{to:"/",className:"text-primary hover:underline",children:"Aristle AI"})," ","family â¢"," ",a.jsx(xe,{to:"/strahut",className:"text-primary hover:underline",children:"Powered by Strahut"})]})]})}),a.jsx("footer",{className:"py-8 px-4 sm:px-6 lg:px-8 border-t",children:a.jsxs("div",{className:"max-w-7xl mx-auto text-center",children:[a.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[a.jsx(Ui,{className:"h-6 w-6 text-orange-500"}),a.jsx("span",{className:"text-xl font-bold bg-gradient-to-r from-orange-500 to-red-500 bg-clip-text text-transparent",children:"Gavrun"})]}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"© 2024 Gavrun by Aristle AI. All rights reserved."})]})})]})]})};var F$="AspectRatio",I_=g.forwardRef((e,t)=>
vendor: 1,764 bytes, line 622
622{const{ratio:r=1/1,style:n,...s}=e;return a.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/r}%`},"data-radix-aspect-ratio-wrapper":"",children:a.jsx(de.div,{...s,ref:t,style:{...n,position:"absolute",top:0,right:0,bottom:0,left:0}})})});I_.displayName=F$;var U$=I_;const O_=U$;function z$(e){return Object.prototype.toString.call(e)==="[object Object]"}function bb(e){return z$(e)||Array.isArray(e)}function B$(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Zx(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==i?!1:r.every(o=>{const l=e[o],c=t[o];return typeof l=="function"?`${l}`==`${c}`:!bb(l)||!bb(c)?l===c:Zx(l,c)})}function wb(e){return e.concat().sort((t,r)=>t.name>r.name?1:-1).map(t=>t.options)}function V$(e,t){if(e.length!==t.length)return!1;const r=wb(e),n=wb(t);return r.every((s,i)=>{const o=n[i];return Zx(s,o)})}function Yx(e){return typeof e=="number"}function Hp(e){return typeof e=="string"}function Hh(e){return typeof e=="boolean"}function jb(e){return Object.prototype.toString.call(e)==="[object Object]"}function at(e){return Math.abs(e)}function Jx(e){return Math.sign(e)}function Pl(e,t){return at(e-t)}function H$(e,t){if(e===0||t===0||at(e)<=at(t))return 0;const r=Pl(at(e),at(t));return at(r/e)}function W$(e){return Math.round(e*100)/100}function uc(e){return hc(e).map(Number)}function vn(e){return e[Bc(e)]}function Bc(e){return Math.max(0,e.length-1)}function Qx(e,t){return t===Bc(e)}function Nb(e,t=0){return Array.from(Array(e),(r,n)=>t+n)}function hc(e){return Object.keys(e)}function M_(e,t){return[e,t].reduce((r,n)=>
vendor: 16,199 bytes, line 622
622(hc(n).forEach(s=>{const i=r[s],o=n[s],l=jb(i)&&jb(o);r[s]=l?M_(i,o):o}),r),{})}function Wp(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function q$(e,t){const r={start:n,center:s,end:i};function n(){return 0}function s(c){return i(c)/2}function i(c){return t-c}function o(c,d){return Hp(e)?r[e](c):e(t,c,d)}return{measure:o}}function fc(){let e=[];function t(s,i,o,l={passive:!0}){let c;if("addEventListener"in s)s.addEventListener(i,o,l),c=()=>s.removeEventListener(i,o,l);else{const d=s;d.addListener(o),c=()=>d.removeListener(o)}return e.push(c),n}function r(){e=e.filter(s=>s())}const n={add:t,clear:r};return n}function G$(e,t,r,n){const s=fc(),i=1e3/60;let o=null,l=0,c=0;function d(){s.add(e,"visibilitychange",()=>{e.hidden&&b()})}function u(){m(),s.clear()}function h(w){if(!c)return;o||(o=w,r(),r());const v=w-o;for(o=w,l+=v;l>=i;)r(),l-=i;const p=l/i;n(p),c&&(c=t.requestAnimationFrame(h))}function f(){c||(c=t.requestAnimationFrame(h))}function m(){t.cancelAnimationFrame(c),o=null,l=0,c=0}function b(){o=null,l=0}return{init:d,destroy:u,start:f,stop:m,update:r,render:n}}function K$(e,t){const r=t==="rtl",n=e==="y",s=n?"y":"x",i=n?"x":"y",o=!n&&r?-1:1,l=u(),c=h();function d(b){const{height:x,width:w}=b;return n?x:w}function u(){return n?"top":r?"right":"left"}function h(){return n?"bottom":r?"left":"right"}function f(b){return b*o}return{scroll:s,cross:i,startEdge:l,endEdge:c,measureSize:d,direction:f}}function Ja(e=0,t=0){const r=at(e-t);function n(d){return d<e}function s(d){return d>t}function i(d){return n(d)||s(d)}function o(d){return i(d)?n(d)?e:t:d}function l(d){return r?d-r*Math.ceil((d-t)/r):d}return{length:r,max:t,min:e,constrain:o,reachedAny:i,reachedMax:s,reachedMin:n,removeOffset:l}}function D_(e,t,r){const{constrain:n}=Ja(0,e),s=e+1;let i=o(t);function o(f){return r?at((s+f)%s):n(f)}function l(){return i}function c(f){return i=o(f),h}function d(f){return u().set(l()+f)}function u(){return D_(e,l(),r)}const h={get:l,set:c,add:d,clone:u};return h}function Z$(e,t,r,n,s,i,o,l,c,d,u,h,f,m,b,x,w,v,p){const{cross:y,direction:j}=e,N=["INPUT","SELECT","TEXTAREA"],S={passive:!1},k=fc(),A=fc(),E=Ja(50,225).constrain(m.measure(20)),O={mouse:300,touch:400},R={mouse:500,touch:600},I=b?43:25;let U=!1,L=0,C=0,F=!1,B=!1,P=!1,D=!1;function V(W){if(!p)return;function je(Ze){(Hh(p)||p(W,Ze))&&We(Ze)}const Oe=t;k.add(Oe,"dragstart",Ze=>Ze.preventDefault(),S).add(Oe,"touchmove",()=>{},S).add(Oe,"touchend",()=>{}).add(Oe,"touchstart",je).add(Oe,"mousedown",je).add(Oe,"touchcancel",ye).add(Oe,"contextmenu",ye).add(Oe,"click",Ie,!0)}function te(){k.clear(),A.clear()}function re(){const W=D?r:t;A.add(W,"touchmove",q,S).add(W,"touchend",ye).add(W,"mousemove",q,S).add(W,"mouseup",ye)}function me(W){const je=W.nodeName||"";return N.includes(je)}function ce(){return(b?R:O)[D?"mouse":"touch"]}function _e(W,je){const Oe=h.add(Jx(W)*-1),Ze=u.byDistance(W,!b).distance;return b||at(W)<E?Ze:w&&je?Ze*.5:u.byIndex(Oe.get(),0).distance}function We(W){const je=Wp(W,n);D=je,P=b&&je&&!W.buttons&&U,U=Pl(s.get(),o.get())>=2,!(je&&W.button!==0)&&(me(W.target)||(F=!0,i.pointerDown(W),d.useFriction(0).useDuration(0),s.set(o),re(),L=i.readPoint(W),C=i.readPoint(W,y),f.emit("pointerDown")))}function q(W){if(!Wp(W,n)&&W.touches.length>=2)return ye(W);const Oe=i.readPoint(W),Ze=i.readPoint(W,y),pt=Pl(Oe,L),kt=Pl(Ze,C);if(!B&&!D&&(!W.cancelable||(B=pt>kt,!B)))return ye(W);const cr=i.pointerMove(W);pt>x&&(P=!0),d.useFriction(.3).useDuration(.75),l.start(),s.add(j(cr)),W.preventDefault()}function ye(W){const Oe=u.byDistance(0,!1).index!==h.get(),Ze=i.pointerUp(W)*ce(),pt=_e(j(Ze),Oe),kt=H$(Ze,pt),cr=I-10*kt,Pt=v+kt/50;B=!1,F=!1,A.clear(),d.useDuration(cr).useFriction(Pt),c.distance(pt,!b),D=!1,f.emit("pointerUp")}function Ie(W){P&&(W.stopPropagation(),W.preventDefault(),P=!1)}function be(){return F}return{init:V,destroy:te,pointerDown:be}}function Y$(e,t){let n,s;function i(h){return h.timeStamp}function o(h,f){const b=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(Wp(h,t)?h:h.touches[0])[b]}function l(h){return n=h,s=h,o(h)}function c(h){const f=o(h)-o(s),m=i(h)-i(n)>170;return s=h,m&&(n=h),f}function d(h){if(!n||!s)return 0;const f=o(s)-o(n),m=i(h)-i(n),b=i(h)-i(s)>170,x=f/m;return m&&!b&&at(x)>.1?x:0}return{pointerDown:l,pointerMove:c,pointerUp:d,readPoint:o}}function J$(){function e(r){const{offsetTop:n,offsetLeft:s,offsetWidth:i,offsetHeight:o}=r;return{top:n,right:s+i,bottom:n+o,left:s,width:i,height:o}}return{measure:e}}function Q$(e){function t(n){return e*(n/100)}return{measure:t}}function X$(e,t,r,n,s,i,o){const l=[e].concat(n);let c,d,u=[],h=!1;function f(w){return s.measureSize(o.measure(w))}function m(w){if(!i)return;d=f(e),u=n.map(f);function v(p){for(const y of p){if(h)return;const j=y.target===e,N=n.indexOf(y.target),S=j?d:u[N],k=f(j?e:n[N]);if(at(k-S)>=.5){w.reInit(),t.emit("resize");break}}}c=new ResizeObserver(p=>{(Hh(i)||i(w,p))&&v(p)}),r.requestAnimationFrame(()=>{l.forEach(p=>c.observe(p))})}function b(){h=!0,c&&c.disconnect()}return{init:m,destroy:b}}function eF(e,t,r,n,s,i){let o=0,l=0,c=s,d=i,u=e.get(),h=0;function f(){const S=n.get()-e.get(),k=!c;let A=0;return k?(o=0,r.set(n),e.set(n),A=S):(r.set(e),o+=S/c,o*=d,u+=o,e.add(o),A=u-h),l=Jx(A),h=u,N}function m(){const S=n.get()-t.get();return at(S)<.001}function b(){return c}function x(){return l}function w(){return o}function v(){return y(s)}function p(){return j(i)}function y(S){return c=S,N}function j(S){return d=S,N}const N={direction:x,duration:b,velocity:w,seek:f,settled:m,useBaseFriction:p,useBaseDuration:v,useFriction:j,useDuration:y};return N}function tF(e,t,r,n,s){const i=s.measure(10),o=s.measure(50),l=Ja(.1,.99);let c=!1;function d(){return!(c||!e.reachedAny(r.get())||!e.reachedAny(t.get()))}function u(m){if(!d())return;const b=e.reachedMin(t.get())?"min":"max",x=at(e[b]-t.get()),w=r.get()-t.get(),v=l.constrain(x/o);r.subtract(w*v),!m&&at(w)<i&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())}function h(m){c=!m}return{shouldConstrain:d,constrain:u,toggleActive:h}}function rF(e,t,r,n,s){const i=Ja(-t+e,0),o=h(),l=u(),c=f();function d(b,x){return Pl(b,x)<=1}function u(){const b=o[0],x=vn(o),w=o.lastIndexOf(b),v=o.indexOf(x)+1;return Ja(w,v)}function h(){return r.map((b,x)=>{const{min:w,max:v}=i,p=i.constrain(b),y=!x,j=Qx(r,x);return y?v:j||d(w,p)?w:d(v,p)?v:p}).map(b=>parseFloat(b.toFixed(3)))}function f(){if(t<=e+s)return[i.max];if(n==="keepSnaps")return o;const{min:b,max:x}=l;return o.slice(b,x)}return{snapsContained:c,scrollContainLimit:l}}function nF(e,t,r){const n=t[0],s=r?n-e:vn(t);return{limit:Ja(s,n)}}function sF(e,t,r,n){const i=t.min+.1,o=t.max+.1,{reachedMin:l,reachedMax:c}=Ja(i,o);function d(f){return f===1?c(r.get()):f===-1?l(r.get()):!1}function u(f){if(!d(f))return;const m=e*(f*-1);n.forEach(b=>b.add(m))}return{loop:u}}function aF(e){const{max:t,length:r}=e;function n(i){const o=i-t;return r?o/-r:0}return{get:n}}function iF(e,t,r,n,s){const{startEdge:i,endEdge:o}=e,{groupSlides:l}=s,c=h().map(t.measure),d=f(),u=m();function h(){return l(n).map(x=>vn(x)[o]-x[0][i]).map(at)}function f(){return n.map(x=>r[i]-x[i]).map(x=>-at(x))}function m(){return l(d).map(x=>x[0]).map((x,w)=>x+c[w])}return{snaps:d,snapsAligned:u}}function oF(e,t,r,n,s,i){const{groupSlides:o}=s,{min:l,max:c}=n,d=u();function u(){const f=o(i),m=!e||t==="keepSnaps";return r.length===1?[i]:m?f:f.slice(l,c).map((b,x,w)=>{const v=!x,p=Qx(w,x);if(v){const y=vn(w[0])+1;return Nb(y)}if(p){const y=Bc(i)-vn(w)[0]+1;return Nb(y,vn(w)[0])}return b})}return{slideRegistry:d}}function lF(e,t,r,n,s){const{reachedAny:i,removeOffset:o,constrain:l}=n;function c(b){return b.concat().sort((x,w)=>at(x)-at(w))[0]}function d(b){const x=e?o(b):l(b),w=t.map((p,y)=>({diff:u(p-x,0),index:y})).sort((p,y)=>at(p.diff)-at(y.diff)),{index:v}=w[0];return{index:v,distance:x}}function u(b,x){const w=[b,b+r,b-r];if(!e)return b;if(!x)return c(w);const v=w.filter(p=>Jx(p)===x);return v.length?c(v):vn(w)-r}function h(b,x){const w=t[b]-s.get(),v=u(w,x);return{index:b,distance:v}}function f(b,x){const w=s.get()+b,{index:v,distance:p}=d(w),y=!e&&i(w);if(!x||y)return{index:v,distance:b};const j=t[v]-p,N=b+u(j,0);return{index:v,distance:N}}return{byDistance:f,byIndex:h,shortcut:u}}function cF(e,t,r,n,s,i,o){function l(h){const f=h.distance,m=h.index!==t.get();i.add(f),f&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(r.set(t.get()),t.set(h.index),o.emit("select"))}function c(h,f){const m=s.byDistance(h,f);l(m)}function d(h,f){const m=t.clone().set(h),b=s.byIndex(m.get(),f);l(b)}return{distance:c,index:d}}function dF(e,t,r,n,s,i,o,l){const c={passive:!0,capture:!0};let d=0;function u(m){if(!l)return;function b(x){if(new Date().getTime()-d>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const p=r.findIndex(y=>y.includes(x));Yx(p)&&(s.useDuration(0),n.index(p,0),o.emit("slideFocus"))}i.add(document,"keydown",h,!1),t.forEach((x,w)=>{i.add(x,"focus",v=>{(Hh(l)||l(m,v))&&b(w)},c)})}function h(m){m.code==="Tab"&&(d=new Date().getTime())}return{init:u}}function fl(e){let t=e;function r(){return t}function n(c){t=o(c)}function s(c){t+=o(c)}function i(c){t-=o(c)}function o(c){return Yx(c)?c:c.get()}return{get:r,set:n,add:s,subtract:i}}function L_(e,t){const r=e.scroll==="x"?o:l,n=t.style;let s=null,i=!1;function o(f){return`translate3d(${f}px,0px,0px)`}function l(f){return`translate3d(0px,${f}px,0px)`}function c(f){if(i)return;const m=W$(e.direction(f));m!==s&&(n.transform=r(m),s=m)}function d(f){i=!f}function u(){i||(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:d}}function uF(e,t,r,n,s,i,o,l,c){const u=uc(s),h=uc(s).reverse(),f=v().concat(p());function m(k,A){return k.reduce((E,O)=>E-s[O],A)}function b(k,A){return k.reduce((E,O)=>m(E,A)>0?E.concat([O]):E,[])}function x(k){return i.map((A,E)=>({start:A-n[E]+.5+k,end:A+t-.5+k}))}function w(k,A,E){const O=x(A);return k.map(R=>{const I=E?0:-r,U=E?r:0,L=E?"end":"start",C=O[R][L];return{index:R,loopPoint:C,slideLocation:fl(-1),translate:L_(e,c[R]),target:()=>l.get()>C?I:U}})}function v(){const k=o[0],A=b(h,k);return w(A,r,!1)}function p(){const k=t-o[0]-1,A=b(u,k);return w(A,-r,!0)}function y(){return f.every(({index:k})=>{const A=u.filter(E=>E!==k);return m(A,t)<=.1})}function j(){f.forEach(k=>{const{target:A,translate:E,slideLocation:O}=k,R=A();R!==O.get()&&(E.to(R),O.set(R))})}function N(){f.forEach(k=>k.translate.clear())}return{canLoop:y,clear:N,loop:j,loopPoints:f}}function hF(e,t,r){let n,s=!1;function i(c){if(!r)return;function d(u){for(const h of u)if(h.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}n=new MutationObserver(u=>{s||(Hh(r)||r(c,u))&&d(u)}),n.observe(e,{childList:!0})}function o(){n&&n.disconnect(),s=!0}return{init:i,destroy:o}}function fF(e,t,r,n){const s={};let i=null,o=null,l,c=!1;function d(){l=new IntersectionObserver(b=>{c||(b.forEach(x=>{const w=t.indexOf(x.target);s[w]=x}),i=null,o=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(b=>l.observe(b))}function u(){l&&l.disconnect(),c=!0}function h(b){return hc(s).reduce((x,w)=>{const v=parseInt(w),{isIntersecting:p}=s[v];return(b&&p||!b&&!p)&&x.push(v),x},[])}function f(b=!0){if(b&&i)return i;if(!b&&o)return o;const x=h(b);return b&&(i=x),b||(o=x),x}return{init:d,destroy:u,get:f}}function mF(e,t,r,n,s,i){const{measureSize:o,startEdge:l,endEdge:c}=e,d=r[0]&&s,u=b(),h=x(),f=r.map(o),m=w();function b(){if(!d)return 0;const p=r[0];return at(t[l]-p[l])}function x(){if(!d)return 0;const p=i.getComputedStyle(vn(n));return parseFloat(p.getPropertyValue(`margin-${c}`))}function w(){return r.map((p,y,j)=>{const N=!y,S=Qx(j,y);return N?f[y]+u:S?f[y]+h:j[y+1][l]-p[l]}).map(at)}return{slideSizes:f,slideSizesWithGaps:m,startGap:u,endGap:h}}function pF(e,t,r,n,s,i,o,l,c){const{startEdge:d,endEdge:u,direction:h}=e,f=Yx(r);function m(v,p){return uc(v).filter(y=>y%p===0).map(y=>v.slice(y,y+p))}function b(v){return v.length?uc(v).reduce((p,y,j)=>{const N=vn(p)||0,S=N===0,k=y===Bc(v),A=s[d]-i[N][d],E=s[d]-i[y][u],O=!n&&S?h(o):0,R=!n&&k?h(l):0,I=at(E-R-(A+O));return j&&I>t+c&&p.push(y),k&&p.push(v.length),p},[]).map((p,y,j)=>{const N=Math.max(j[y-1]||0);return v.slice(N,p)}):[]}function x(v){return f?m(v,r):b(v)}return{groupSlides:x}}function gF(e,t,r,n,s,i,o){const{align:l,axis:c,direction:d,startIndex:u,loop:h,duration:f,dragFree:m,dragThreshold:b,inViewThreshold:x,slidesToScroll:w,skipSnaps:v,containScroll:p,watchResize:y,watchSlides:j,watchDrag:N,watchFocus:S}=i,k=2,A=J$(),E=A.measure(t),O=r.map(A.measure),R=K$(c,d),I=R.measureSize(E),U=Q$(I),L=q$(l,I),C=!h&&!!p,F=h||!!p,{slideSizes:B,slideSizesWithGaps:P,startGap:D,endGap:V}=mF(R,E,O,r,F,s),te=pF(R,I,w,h,E,O,D,V,k),{snaps:re,snapsAligned:me}=iF(R,L,E,O,te),ce=-vn(re)+vn(P),{snapsContained:_e,scrollContainLimit:We}=rF(I,ce,me,p,k),q=C?_e:me,{limit:ye}=nF(ce,q,h),Ie=D_(Bc(q),u,h),be=Ie.clone(),ue=uc(r),W=({dragHandler:Ht,scrollBody:dr,scrollBounds:ms,options:{loop:Or}})=>{Or||ms.constrain(Ht.pointerDown()),dr.seek()},je=({scrollBody:Ht,translate:dr,location:ms,offsetLocation:Or,previousLocation:Mr,scrollLooper:ii,slideLooper:Zr,dragHandler:Uo,animation:oi,eventHandler:zo,scrollBounds:Hc,options:{loop:Wc}},li)=>{const Yr=Ht.settled(),Jh=!Hc.shouldConstrain(),we=Wc?Yr:Yr&&Jh,Ue=we&&!Uo.pointerDown();Ue&&oi.stop();const Ye=ms.get()*li+Mr.get()*(1-li);Or.set(Ye),Wc&&(ii.loop(Ht.direction()),Zr.loop()),dr.to(Or.get()),Ue&&zo.emit("settle"),we||zo.emit("scroll")},Oe=G$(n,s,()=>W(Rt),Ht=>je(Rt,Ht)),Ze=.68,pt=q[Ie.get()],kt=fl(pt),cr=fl(pt),Pt=fl(pt),_=fl(pt),T=eF(kt,Pt,cr,_,f,Ze),$=lF(h,q,ce,ye,_),Y=cF(Oe,Ie,be,T,$,_,o),J=aF(ye),G=fc(),ne=fF(t,r,o,x),{slideRegistry:Ee}=oF(C,p,q,We,te,ue),qe=dF(e,r,Ee,Y,T,G,o,S),Rt={ownerDocument:n,ownerWindow:s,eventHandler:o,containerRect:E,slideRects:O,animation:Oe,axis:R,dragHandler:Z$(R,e,n,s,_,Y$(R,s),kt,Oe,Y,T,$,Ie,o,U,m,b,v,Ze,N),eventStore:G,percentOfView:U,index:Ie,indexPrevious:be,limit:ye,location:kt,offsetLocation:Pt,previousLocation:cr,options:i,resizeHandler:X$(t,o,s,r,R,y,A),scrollBody:T,scrollBounds:tF(ye,Pt,_,T,U),scrollLooper:sF(ce,ye,Pt,[kt,Pt,cr,_]),scrollProgress:J,scrollSnapList:q.map(J.get),scrollSnaps:q,scrollTarget:$,scrollTo:Y,slideLooper:uF(R,I,ce,B,P,re,q,Pt,r),slideFocus:qe,slidesHandler:hF(t,o,j),slidesInView:ne,slideIndexes:ue,slideRegistry:Ee,slidesToScroll:te,target:_,translate:L_(R,t)};return Rt}function xF(){let e={},t;function r(d){t=d}function n(d){return e[d]||[]}function s(d){return n(d).forEach(u=>u(t,d)),c}function i(d,u){return e[d]=n(d).concat([u]),c}function o(d,u){return e[d]=n(d).filter(h=>h!==u),c}function l(){e={}}const c={init:r,emit:s,off:o,on:i,clear:l};return c}const vF={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function yF(e){function t(i,o){return M_(i,o||{})}function r(i){const o=i.breakpoints||{},l=hc(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,d)=>t(c,d),{});return t(i,l)}function n(i){return i.map(o=>hc(o.breakpoints||{})).reduce((o,l)=>o.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:r,optionsMediaQueries:n}}function bF(e){let t=[];function r(i,o){return t=o.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(i,e)),o.reduce((l,c)=>Object.assign(l,{[c.name]:c}),{})}function n(){t=t.filter(i=>i.destroy())}return{init:r,destroy:n}}function Vu(e,t,r){const n=e.ownerDocument,s=n.defaultView,i=yF(s),o=bF(i),l=fc(),c=xF(),{mergeOptions:d,optionsAtMedia:u,optionsMediaQueries:h}=i,{on:f,off:m,emit:b}=c,x=R;let w=!1,v,p=d(vF,Vu.globalOptions),y=d(p),j=[],N,S,k;function A(){const{container:ue,slides:W}=y;S=(Hp(ue)?e.querySelector(ue):ue)||e.children[0];const Oe=Hp(W)?S.querySelectorAll(W):W;k=[].slice.call(Oe||S.children)}function E(ue){const W=gF(e,S,k,n,s,ue,c);if(ue.loop&&!W.slideLooper.canLoop()){const je=Object.assign({},ue,{loop:!1});return E(je)}return W}function O(ue,W){w||(p=d(p,ue),y=u(p),j=W||j,A(),v=E(y),h([p,...j.map(({options:je})=>
vendor: 2,016 bytes, line 622
622je)]).forEach(je=>l.add(je,"change",R)),y.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(be),v.eventHandler.init(be),v.resizeHandler.init(be),v.slidesHandler.init(be),v.options.loop&&v.slideLooper.loop(),S.offsetParent&&k.length&&v.dragHandler.init(be),N=o.init(be,j)))}function R(ue,W){const je=te();I(),O(d({startIndex:je},ue),W),c.emit("reInit")}function I(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),o.destroy(),l.clear()}function U(){w||(w=!0,l.clear(),I(),c.emit("destroy"),c.clear())}function L(ue,W,je){!y.active||w||(v.scrollBody.useBaseFriction().useDuration(W===!0?0:y.duration),v.scrollTo.index(ue,je||0))}function C(ue){const W=v.index.add(1).get();L(W,ue,-1)}function F(ue){const W=v.index.add(-1).get();L(W,ue,1)}function B(){return v.index.add(1).get()!==te()}function P(){return v.index.add(-1).get()!==te()}function D(){return v.scrollSnapList}function V(){return v.scrollProgress.get(v.offsetLocation.get())}function te(){return v.index.get()}function re(){return v.indexPrevious.get()}function me(){return v.slidesInView.get()}function ce(){return v.slidesInView.get(!1)}function _e(){return N}function We(){return v}function q(){return e}function ye(){return S}function Ie(){return k}const be={canScrollNext:B,canScrollPrev:P,containerNode:ye,internalEngine:We,destroy:U,off:m,on:f,emit:b,plugins:_e,previousScrollSnap:re,reInit:x,rootNode:q,scrollNext:C,scrollPrev:F,scrollProgress:V,scrollSnapList:D,scrollTo:L,selectedScrollSnap:te,slideNodes:Ie,slidesInView:me,slidesNotInView:ce};return O(t,r),setTimeout(()=>c.emit("init"),0),be}Vu.globalOptions=void 0;function Xx(e={},t=[]){const r=g.useRef(e),n=g.useRef(t),[s,i]=g.useState(),[o,l]=g.useState(),c=g.useCallback(()=>{s&&s.reInit(r.current,n.current)},[s]);return g.useEffect(()=>{Zx(r.current,e)||(r.current=e,c())},[e,c]),g.useEffect(()=>
622{V$(n.current,t)||(n.current=t,c())},[t,c]),g.useEffect(()=>{if(B$()&&o){Vu.globalOptions=Xx.globalOptions;const d=Vu(o,r.current,n.current);return i(d),()=>d.destroy()}else i(void 0)},[o,i]),[l,s]}Xx.globalOptions=void 0;const $_=g.createContext(null);function Wh(){const e=g.useContext($_);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const F_=g.forwardRef(({orientation:e="horizontal",opts:t,setApi:r,plugins:n,className:s,children:i,...o},l)=>{const[c,d]=Xx({...t,axis:e==="horizontal"?"x":"y"},n),[u,h]=g.useState(!1),[f,m]=g.useState(!1),b=g.useCallback(p=>{p&&(h(p.canScrollPrev()),m(p.canScrollNext()))},[]),x=g.useCallback(()=>{d==null||d.scrollPrev()},[d]),w=g.useCallback(()=>{d==null||d.scrollNext()},[d]),v=g.useCallback(p=>{p.key==="ArrowLeft"?(p.preventDefault(),x()):p.key==="ArrowRight"&&(p.preventDefault(),w())},[x,w]);return g.useEffect(()=>{!d||!r||r(d)},[d,r]),g.useEffect(()=>{if(d)return b(d),d.on("reInit",b),d.on("select",b),()=>{d==null||d.off("select",b)}},[d,b]),a.jsx($_.Provider,{value:{carouselRef:c,api:d,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:x,scrollNext:w,canScrollPrev:u,canScrollNext:f},children:a.jsx("div",{ref:l,onKeyDownCapture:v,className:X("relative",s),role:"region","aria-roledescription":"carousel",...o,children:i})})});F_.displayName="Carousel";const U_=g.forwardRef(({className:e,...t},r)=>{const{carouselRef:n,orientation:s}=Wh();return a.jsx("div",{ref:n,className:"overflow-hidden",children:a.jsx("div",{ref:r,className:X("flex",s==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});U_.displayName="CarouselContent";const z_=g.forwardRef(({className:e,...t},r)=>{const{orientation:n}=Wh();return a.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:X("min-w-0 shrink-0 grow-0 basis-full",n==="horizontal"?"pl-4":"pt-4",e),...t})});z_.displayName="CarouselItem";const B_=g.forwardRef(({className:e,variant:t="outline",size:r="icon",...n},s)=>{const{orientation:i,scrollPrev:o,canScrollPrev:l}=Wh();return a.jsxs(se,{ref:s,variant:t,size:r,className:X("absolute h-8 w-8 rounded-full",i==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:o,...n,children:[a.jsx(da,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Previous slide"})]})});B_.displayName="CarouselPrevious";const V_=g.forwardRef(({className:e,variant:t="outline",size:r="icon",...n},s)=>{const{orientation:i,scrollNext:o,canScrollNext:l}=Wh();return a.jsxs(se,{ref:s,variant:t,size:r,className:X("absolute h-8 w-8 rounded-full",i==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:o,...n,children:[a.jsx(tt,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Next slide"})]})});V_.displayName="CarouselNext";function qp(e,[t,r]){return Math.min(r,Math.max(t,e))}function wF(e,t){return g.useReducer((r,n)=>t[r][n]??r,e)}var ev="ScrollArea",[H_,XU]=lr(ev),[jF,Kr]=H_(ev),W_=g.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:s,scrollHideDelay:i=600,...o}=e,[l,c]=g.useState(null),[d,u]=g.useState(null),[h,f]=g.useState(null),[m,b]=g.useState(null),[x,w]=g.useState(null),[v,p]=g.useState(0),[y,j]=g.useState(0),[N,S]=g.useState(!1),[k,A]=g.useState(!1),E=Pe(t,R=>c(R)),O=Dc(s);return a.jsx(jF,{scope:r,type:n,dir:O,scrollHideDelay:i,scrollArea:l,viewport:d,onViewportChange:u,content:h,onContentChange:f,scrollbarX:m,onScrollbarXChange:b,scrollbarXEnabled:N,onScrollbarXEnabledChange:S,scrollbarY:x,onScrollbarYChange:w,scrollbarYEnabled:k,onScrollbarYEnabledChange:A,onCornerWidthChange:p,onCornerHeightChange:j,children:a.jsx(de.div,{dir:O,...o,ref:E,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":y+"px",...e.style}})})});W_.displayName=ev;var q_="ScrollAreaViewport",G_=g.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,nonce:s,...i}=e,o=Kr(q_,r),l=g.useRef(null),c=Pe(t,l,o.onViewportChange);return a.jsxs(a.Fragment,{children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),a.jsx(de.div,{"data-radix-scroll-area-viewport":"",...i,ref:c,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:a.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});G_.displayName=q_;var Vn="ScrollAreaScrollbar",tv=g.forwardRef((e,t)=>
vendor: 6,820 bytes, line 622
622{const{forceMount:r,...n}=e,s=Kr(Vn,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:o}=s,l=e.orientation==="horizontal";return g.useEffect(()=>(l?i(!0):o(!0),()=>{l?i(!1):o(!1)}),[l,i,o]),s.type==="hover"?a.jsx(NF,{...n,ref:t,forceMount:r}):s.type==="scroll"?a.jsx(SF,{...n,ref:t,forceMount:r}):s.type==="auto"?a.jsx(K_,{...n,ref:t,forceMount:r}):s.type==="always"?a.jsx(rv,{...n,ref:t}):null});tv.displayName=Vn;var NF=g.forwardRef((e,t)=>{const{forceMount:r,...n}=e,s=Kr(Vn,e.__scopeScrollArea),[i,o]=g.useState(!1);return g.useEffect(()=>{const l=s.scrollArea;let c=0;if(l){const d=()=>{window.clearTimeout(c),o(!0)},u=()=>{c=window.setTimeout(()=>o(!1),s.scrollHideDelay)};return l.addEventListener("pointerenter",d),l.addEventListener("pointerleave",u),()=>{window.clearTimeout(c),l.removeEventListener("pointerenter",d),l.removeEventListener("pointerleave",u)}}},[s.scrollArea,s.scrollHideDelay]),a.jsx(Ir,{present:r||i,children:a.jsx(K_,{"data-state":i?"visible":"hidden",...n,ref:t})})}),SF=g.forwardRef((e,t)=>{const{forceMount:r,...n}=e,s=Kr(Vn,e.__scopeScrollArea),i=e.orientation==="horizontal",o=Gh(()=>c("SCROLL_END"),100),[l,c]=wF("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return g.useEffect(()=>{if(l==="idle"){const d=window.setTimeout(()=>c("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(d)}},[l,s.scrollHideDelay,c]),g.useEffect(()=>{const d=s.viewport,u=i?"scrollLeft":"scrollTop";if(d){let h=d[u];const f=()=>{const m=d[u];h!==m&&(c("SCROLL"),o()),h=m};return d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[s.viewport,i,c,o]),a.jsx(Ir,{present:r||l!=="hidden",children:a.jsx(rv,{"data-state":l==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:le(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:le(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),K_=g.forwardRef((e,t)=>{const r=Kr(Vn,e.__scopeScrollArea),{forceMount:n,...s}=e,[i,o]=g.useState(!1),l=e.orientation==="horizontal",c=Gh(()=>{if(r.viewport){const d=r.viewport.offsetWidth<r.viewport.scrollWidth,u=r.viewport.offsetHeight<r.viewport.scrollHeight;o(l?d:u)}},10);return Co(r.viewport,c),Co(r.content,c),a.jsx(Ir,{present:n||i,children:a.jsx(rv,{"data-state":i?"visible":"hidden",...s,ref:t})})}),rv=g.forwardRef((e,t)=>{const{orientation:r="vertical",...n}=e,s=Kr(Vn,e.__scopeScrollArea),i=g.useRef(null),o=g.useRef(0),[l,c]=g.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=X_(l.viewport,l.content),u={...n,sizes:l,onSizesChange:c,hasThumb:d>0&&d<1,onThumbChange:f=>i.current=f,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:f=>o.current=f};function h(f,m){return TF(f,o.current,l,m)}return r==="horizontal"?a.jsx(kF,{...u,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const f=s.viewport.scrollLeft,m=Sb(f,l,s.dir);i.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:f=>{s.viewport&&(s.viewport.scrollLeft=f)},onDragScroll:f=>{s.viewport&&(s.viewport.scrollLeft=h(f,s.dir))}}):r==="vertical"?a.jsx(_F,{...u,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const f=s.viewport.scrollTop,m=Sb(f,l);i.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:f=>{s.viewport&&(s.viewport.scrollTop=f)},onDragScroll:f=>{s.viewport&&(s.viewport.scrollTop=h(f))}}):null}),kF=g.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...s}=e,i=Kr(Vn,e.__scopeScrollArea),[o,l]=g.useState(),c=g.useRef(null),d=Pe(t,c,i.onScrollbarXChange);return g.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),a.jsx(Y_,{"data-orientation":"horizontal",...s,ref:d,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":qh(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,h)=>{if(i.viewport){const f=i.viewport.scrollLeft+u.deltaX;e.onWheelScroll(f),t2(f,h)&&u.preventDefault()}},onResize:()=>{c.current&&i.viewport&&o&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Wu(o.paddingLeft),paddingEnd:Wu(o.paddingRight)}})}})}),_F=g.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...s}=e,i=Kr(Vn,e.__scopeScrollArea),[o,l]=g.useState(),c=g.useRef(null),d=Pe(t,c,i.onScrollbarYChange);return g.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),a.jsx(Y_,{"data-orientation":"vertical",...s,ref:d,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":qh(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,h)=>{if(i.viewport){const f=i.viewport.scrollTop+u.deltaY;e.onWheelScroll(f),t2(f,h)&&u.preventDefault()}},onResize:()=>{c.current&&i.viewport&&o&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Wu(o.paddingTop),paddingEnd:Wu(o.paddingBottom)}})}})}),[CF,Z_]=H_(Vn),Y_=g.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:s,onThumbChange:i,onThumbPointerUp:o,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:d,onWheelScroll:u,onResize:h,...f}=e,m=Kr(Vn,r),[b,x]=g.useState(null),w=Pe(t,E=>x(E)),v=g.useRef(null),p=g.useRef(""),y=m.viewport,j=n.content-n.viewport,N=Nt(u),S=Nt(c),k=Gh(h,10);function A(E){if(v.current){const O=E.clientX-v.current.left,R=E.clientY-v.current.top;d({x:O,y:R})}}return g.useEffect(()=>{const E=O=>{const R=O.target;(b==null?void 0:b.contains(R))&&N(O,j)};return document.addEventListener("wheel",E,{passive:!1}),()=>document.removeEventListener("wheel",E,{passive:!1})},[y,b,j,N]),g.useEffect(S,[n,S]),Co(b,k),Co(m.content,k),a.jsx(CF,{scope:r,scrollbar:b,hasThumb:s,onThumbChange:Nt(i),onThumbPointerUp:Nt(o),onThumbPositionChange:S,onThumbPointerDown:Nt(l),children:a.jsx(de.div,{...f,ref:w,style:{position:"absolute",...f.style},onPointerDown:le(e.onPointerDown,E=>{E.button===0&&(E.target.setPointerCapture(E.pointerId),v.current=b.getBoundingClientRect(),p.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),A(E))}),onPointerMove:le(e.onPointerMove,A),onPointerUp:le(e.onPointerUp,E=>{const O=E.target;O.hasPointerCapture(E.pointerId)&&O.releasePointerCapture(E.pointerId),document.body.style.webkitUserSelect=p.current,m.viewport&&(m.viewport.style.scrollBehavior=""),v.current=null})})})}),Hu="ScrollAreaThumb",J_=g.forwardRef((e,t)=>
vendor: 4,236 bytes, line 622
622{const{forceMount:r,...n}=e,s=Z_(Hu,e.__scopeScrollArea);return a.jsx(Ir,{present:r||s.hasThumb,children:a.jsx(AF,{ref:t,...n})})}),AF=g.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...s}=e,i=Kr(Hu,r),o=Z_(Hu,r),{onThumbPositionChange:l}=o,c=Pe(t,h=>o.onThumbChange(h)),d=g.useRef(void 0),u=Gh(()=>{d.current&&(d.current(),d.current=void 0)},100);return g.useEffect(()=>{const h=i.viewport;if(h){const f=()=>{if(u(),!d.current){const m=PF(h,l);d.current=m,l()}};return l(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[i.viewport,u,l]),a.jsx(de.div,{"data-state":o.hasThumb?"visible":"hidden",...s,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:le(e.onPointerDownCapture,h=>{const m=h.target.getBoundingClientRect(),b=h.clientX-m.left,x=h.clientY-m.top;o.onThumbPointerDown({x:b,y:x})}),onPointerUp:le(e.onPointerUp,o.onThumbPointerUp)})});J_.displayName=Hu;var nv="ScrollAreaCorner",Q_=g.forwardRef((e,t)=>{const r=Kr(nv,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?a.jsx(EF,{...e,ref:t}):null});Q_.displayName=nv;var EF=g.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,s=Kr(nv,r),[i,o]=g.useState(0),[l,c]=g.useState(0),d=!!(i&&l);return Co(s.scrollbarX,()=>{var h;const u=((h=s.scrollbarX)==null?void 0:h.offsetHeight)||0;s.onCornerHeightChange(u),c(u)}),Co(s.scrollbarY,()=>{var h;const u=((h=s.scrollbarY)==null?void 0:h.offsetWidth)||0;s.onCornerWidthChange(u),o(u)}),d?a.jsx(de.div,{...n,ref:t,style:{width:i,height:l,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Wu(e){return e?parseInt(e,10):0}function X_(e,t){const r=e/t;return isNaN(r)?0:r}function qh(e){const t=X_(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function TF(e,t,r,n="ltr"){const s=qh(r),i=s/2,o=t||i,l=s-o,c=r.scrollbar.paddingStart+o,d=r.scrollbar.size-r.scrollbar.paddingEnd-l,u=r.content-r.viewport,h=n==="ltr"?[0,u]:[u*-1,0];return e2([c,d],h)(e)}function Sb(e,t,r="ltr"){const n=qh(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-s,o=t.content-t.viewport,l=i-n,c=r==="ltr"?[0,o]:[o*-1,0],d=qp(e,c);return e2([0,o],[0,l])(d)}function e2(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function t2(e,t){return e>0&&e<t}var PF=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function s(){const i={left:e.scrollLeft,top:e.scrollTop},o=r.left!==i.left,l=r.top!==i.top;(o||l)&&t(),r=i,n=window.requestAnimationFrame(s)}(),()=>window.cancelAnimationFrame(n)};function Gh(e,t){const r=Nt(e),n=g.useRef(0);return g.useEffect(()=>()=>window.clearTimeout(n.current),[]),g.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Co(e,t){const r=Nt(t);mt(()=>{let n=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return s.observe(e),()=>{window.cancelAnimationFrame(n),s.unobserve(e)}}},[e,r])}var r2=W_,RF=G_,IF=Q_;const Vc=g.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(r2,{ref:n,className:X("relative overflow-hidden",e),...r,children:[a.jsx(RF,{className:"h-full w-full rounded-[inherit]",children:t}),a.jsx(n2,{}),a.jsx(IF,{})]}));Vc.displayName=r2.displayName;const n2=g.forwardRef(({className:e,orientation:t="vertical",...r},n)=>a.jsx(tv,{ref:n,orientation:t,className:X("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:a.jsx(J_,{className:"relative flex-1 rounded-full bg-border"})}));n2.displayName=tv.displayName;const OF="/assets/diet-keto-B7tL0U5D.jpg",MF="/assets/diet-vegan-BTYDiFuC.jpg",DF="/assets/diet-mediterranean-CAKTtHF7.jpg",LF="/assets/diet-protein-BriTcuaT.jpg",$F="/assets/diet-glutenfree-CjpcUK4v.jpg",FF="/assets/diet-diabetic-CA_75koy.jpg",UF="/assets/diet-ovolacto-BkOcaMdb.jpg",zF="/assets/diet-weightloss-BzZPrHIj.jpg",mc="gavrun_search_cache",kb=64,s2=(e,t)=>
622`${e.trim().toLowerCase()}|${t.trim().toLowerCase()}`,BF=(e,t)=>{try{const r=localStorage.getItem(mc);if(!r)return null;const n=JSON.parse(r),s=s2(e,t),i=n.find(o=>o.key===s);return i?Bi(i.results):null}catch(r){return console.error("Error reading cache:",r),null}},VF=(e,t,r)=>{try{const n=localStorage.getItem(mc);let s=n?JSON.parse(n):[];const i=s2(e,t);s=s.filter(o=>o.key!==i),s.push({key:i,results:r,timestamp:Date.now()}),s.length>kb&&(s=s.slice(-kb)),localStorage.setItem(mc,JSON.stringify(s))}catch(n){console.error("Error writing cache:",n)}},HF=[{id:1,name:"Keto",image:OF,constraints:"Keto-friendly, low carb, high fat, no sugar, no grains, no starchy vegetables"},{id:2,name:"Vegan",image:MF,constraints:"Vegan, plant-based only, no meat, no dairy, no eggs, no animal products"},{id:3,name:"Mediterranean",image:DF,constraints:"Mediterranean diet, olive oil, fish, vegetables, whole grains, nuts, limited red meat"},{id:4,name:"High Protein",image:LF,constraints:"High protein, lean meats, eggs, fish, low fat, muscle building, athletic diet"},{id:5,name:"Gluten-Free",image:$F,constraints:"Gluten-free, no wheat, no barley, no rye, celiac-safe, no gluten cross-contamination"},{id:6,name:"Diabetic-Friendly",image:FF,constraints:"Diabetic-friendly, low glycemic, low sugar, blood sugar friendly, balanced carbs"},{id:7,name:"Ovo-Lacto Vegetarian",image:UF,constraints:"Ovo-lacto vegetarian, no meat, no fish, eggs and dairy allowed, plant-based with eggs and milk"},{id:8,name:"Weight Loss",image:zF,constraints:"Weight loss diet, low calorie, portion control, lean protein, high fiber, low fat, no fried foods, no sugary drinks"}],am=e=>{if(console.log("Parsing markdown:",e.substring(0,500)),e.includes("|")&&e.includes("---"))return GF(e);let t=[];/\n###?\s*\d+\)/.test(e)?t=e.split(/\n###?\s*\d+\)/):/\*\*\d+[\.\)]\*\*/.test(e)?t=e.split(/\*\*\d+[\.\)]\*\*/):/\n\d+[\.\)]\s*\*\*/.test(e)?t=e.split(/\n\d+[\.\)]\s*/):/\n###?\s*\*\*[^*]+\*\*/.test(e)?t=e.split(/\n###?\s*(?=\*\*)/):/\n###?\s+[A-Z]/.test(e)&&(t=e.split(/\n###?\s+(?=[A-Z])/)),console.log("Split into sections:",t.length);const r=[];for(let n=1;n<t.length;n++){const s=t[n],i=WF(s,n);i.name&&i.name!=="Unknown Restaurant"&&r.push(i)}return r.length===0?(console.log("No sections found, trying line-by-line parsing"),qF(e)):r},WF=(e,t)=>{const r={id:t,name:"",rating:"N/A",distance:"N/A",price:"N/A",description:"",thumbnail:"",type:"Restaurant",mapsLink:"",healthPicks:[],orderingTips:""},n=e.match(/^\s*\*?\*?([^\n*]+)\*?\*?/);n&&(r.name=n[1].replace(/\*\*/g,"").replace(/\([^)]*\)\s*$/,"").trim());const s=l=>{for(const c of l){const d=e.match(c);if(d)return d[1].replace(/`/g,"").replace(/\*\*/g,"").trim()}return""};r.rating=s([/\*\*Rating[:\s]*\*\*\s*([^\n]+)/i,/Rating[:\s]+([^\n]+)/i,/â+\s*([0-9.]+)/])||"N/A",r.distance=s([/\*\*Distance[:\s]*\*\*\s*([^\n]+)/i,/Distance[:\s]+([^\n]+)/i])||"N/A",r.price=s([/\*\*Price[:\s]*\*\*\s*([^\n]+)/i,/Price[:\s]+([^\n]+)/i,/(\$+)/])||"N/A",r.description=s([/\*\*Description[:\s]*\*\*\s*([^\n]+)/i,/Description[:\s]+([^\n]+)/i]),r.thumbnail=s([/\*\*Thumbnail[:\s]*\*\*\s*`?(https?:\/\/[^\s\n`]+)`?/i,/Thumbnail[:\s]+`?(https?:\/\/[^\s\n`]+)`?/i,/!\[.*?\]\((https?:\/\/[^\s\)]+)\)/]),r.type=s([/\*\*Type[:\s]*\*\*\s*([^\n]+)/i,/\*\*Cuisine[:\s]*\*\*\s*([^\n]+)/i,/Type[:\s]+([^\n]+)/i,/Cuisine[:\s]+([^\n]+)/i])||"Restaurant",r.mapsLink=s([/\*\*Google Maps[:\s]*\*\*\s*`?(https?:\/\/[^\s\n`\)]+)`?/i,/\*\*Maps[:\s]*\*\*\s*`?(https?:\/\/[^\s\n`\)]+)`?/i,/Google Maps[:\s]+`?(https?:\/\/[^\s\n`\)]+)`?/i,/\[(?:Google Maps|Maps|View|Location)\]\((https?:\/\/[^\)]+)\)/i]);const i=e.match(/\*\*Health[- ]?(?:aware )?picks?[^:]*:\*\*\s*([\s\S]*?)(?=\n\*\*|$)/i);if(i){const l=i[1].match(/\*\*([^*]+)\*\*/g)||i[1].split(/[,\n]/).filter(c=>c.trim());r.healthPicks=l.map(c=>c.replace(/\*\*/g,"").replace(/^[-â¢]\s*/,"").trim()).filter(Boolean).slice(0,5)}const o=e.match(/\*\*Ordering tips?[^:]*:\*\*\s*([\s\S]*?)(?=\n\*\*|\n---|\n###|$)/i);return o&&(r.orderingTips=o[1].replace(/\n\s*[-â¢]\s*/g," ⢠").replace(/\*\*/g,"").replace(/\n+/g," ").trim().slice(0,200)),r},qF=e=>{const t=[],r=e.split(` 623`);let n=null;for(const s of r){const i=s.trim(),o=i.match(/^(?:\d+[\.\)]\s*)?\*\*([^*]+)\*\*/);if(o&&!i.toLowerCase().includes("rating")&&!i.toLowerCase().includes("price")){n&&n.name&&t.push(n),n={id:t.length+1,name:o[1].trim(),rating:"N/A",distance:"N/A",price:"N/A",description:"",thumbnail:"",type:"Restaurant",mapsLink:"",healthPicks:[],orderingTips:""};continue}if(n){if(/rating/i.test(i)){const l=i.replace(/.*rating[:\s]*/i,"").replace(/\*\*/g,"").trim();l&&(n.rating=l)}else if(/distance/i.test(i)){const l=i.replace(/.*distance[:\s]*/i,"").replace(/\*\*/g,"").trim();l&&(n.distance=l)}else if(/price/i.test(i)){const l=i.replace(/.*price[:\s]*/i,"").replace(/\*\*/g,"").trim();l&&(n.price=l)}else if(/type|cuisine/i.test(i)){const l=i.replace(/.*(?:type|cuisine)[:\s]*/i,"").replace(/\*\*/g,"").trim();l&&(n.type=l)}else if(/google maps|maps link/i.test(i)){const l=i.match(/https?:\/\/[^\s\)`]+/);l&&(n.mapsLink=l[0])}else if(/thumbnail/i.test(i)){const l=i.match(/https?:\/\/[^\s\)`]+/);l&&(n.thumbnail=l[0])}}}return n&&n.name&&t.push(n),console.log("Line-by-line parsed:",t.length),t},GF=e=>{const t=[],r=e.split(` 624`);let n=!1,s=[];for(const i of r){const o=i.trim();if(!o.startsWith("|"))continue;const l=o.split("|").map(d=>
624d.trim()).filter(Boolean);if(l.every(d=>d.match(/^-+$/)))continue;if(!n){s=l.map(d=>d.toLowerCase()),n=!0;continue}const c={id:t.length+1,name:"",rating:"N/A",distance:"N/A",price:"N/A",description:"",thumbnail:"",type:"Restaurant",mapsLink:"",healthPicks:[],orderingTips:""};l.forEach((d,u)=>{const h=s[u]||"",f=d.replace(/`/g,"").replace(/\*\*/g,"").trim();h.includes("restaurant")||u===0?c.name=f:h.includes("rating")?c.rating=f:h.includes("distance")?c.distance=f:h.includes("price")?c.price=f:h.includes("type")?c.type=f:h.includes("description")?c.description=f:h.includes("thumbnail")?c.thumbnail=f:h.includes("google maps")||h.includes("maps")?c.mapsLink=f:h.includes("health")||h.includes("picks")?c.healthPicks=f.split(/[,;]/).map(m=>m.trim()).filter(Boolean).slice(0,5):(h.includes("ordering")||h.includes("tips"))&&(c.orderingTips=f.slice(0,200))}),c.name&&t.push(c)}return t},Bi=e=>{if(!e)return console.log("extractRestaurants: No data received"),[];if(console.log("extractRestaurants: Data type:",typeof e),typeof e=="string"){console.log("extractRestaurants: Data is string, trying JSON parse");try{const t=e.match(/\[[\s\S]*\]/);if(t){const r=JSON.parse(t[0]);if(Array.isArray(r))return console.log("extractRestaurants: Extracted JSON array from string"),r.map((n,s)=>va(n,s))}}catch{console.log("extractRestaurants: JSON parse failed, trying markdown")}return am(e)}if(Array.isArray(e))return console.log("extractRestaurants: Data is array with",e.length,"items"),e.map((t,r)=>va(t,r));if(typeof e=="object"){const t=e,r=Object.keys(t);if(console.log("extractRestaurants: Object keys:",r),typeof t.output=="string"){console.log("extractRestaurants: Found output string, length:",t.output.length);try{const s=t.output.match(/\[[\s\S]*\]/);if(s){const i=JSON.parse(s[0]);if(Array.isArray(i))return console.log("extractRestaurants: Extracted JSON array from output string"),i.map((o,l)=>va(o,l))}}catch{console.log("extractRestaurants: JSON extract from output failed, trying markdown")}return am(t.output)}const n=["restaurants","data","results","output","items","records","response"];for(const s of n)if(Array.isArray(t[s]))return console.log(`extractRestaurants: Found ${s} array with`,t[s].length,"items"),t[s].map((i,o)=>va(i,o));if(t["Restaurant Name"]||t.name||t.restaurantName)return console.log("extractRestaurants: Single restaurant object detected"),[va(t,0)];for(const s of r)if(typeof t[s]=="string"&&t[s].length>100){console.log("extractRestaurants: Trying to parse string field:",s);try{const o=t[s].match(/\[[\s\S]*\]/);if(o){const l=JSON.parse(o[0]);if(Array.isArray(l)&&l.length>0)return console.log("extractRestaurants: Extracted JSON from field",s),l.map((c,d)=>va(c,d))}}catch{}const i=am(t[s]);if(i.length>0)return i}for(const s of r)if(Array.isArray(t[s])&&t[s].length>0)return console.log("extractRestaurants: Found array in key:",s),t[s].map((i,o)=>va(i,o))}return console.warn("Unknown API response structure:",JSON.stringify(e).substring(0,500)),[]},va=(e,t)=>{if(!e||typeof e!="object")return KF(t);const r=e;let n=[];const s=Object.keys(r).find(d=>/^health[- ]?aware\s*picks/i.test(d)||d==="healthPicks"||d==="health_picks"),i=s?r[s]:null;Array.isArray(i)?n=i.map(String):typeof i=="string"&&(n=i.split(",").map(d=>d.trim()).filter(Boolean));let o="";const l=Object.keys(r).find(d=>/^ordering\s*tips/i.test(d)||d==="orderingTips"||d==="tips"),c=l?r[l]:null;return Array.isArray(c)?o=c.map(String).join(" ⢠").slice(0,200):typeof c=="string"&&(o=c.slice(0,200)),{id:t+1,name:String(r.name||r["Restaurant Name"]||r.restaurantName||"Unknown Restaurant"),rating:String(r.rating||r.Rating||"N/A"),distance:String(r.distance||r.Distance||r["Distance to that restaurant"]||"N/A"),price:r.price||r.Price?String(r.price||r.Price):"N/A",description:String(r.description||r.Description||""),thumbnail:String(r.thumbnail||r.thumbnailLink||r["Link to the thumbnail pic"]||r["thumbnail link"]||r.image||r.imageUrl||""),type:String(r.type||r.Type||r.cuisine||"Restaurant"),mapsLink:String(r.mapsLink||r.googleMapsLink||r["Google Maps link"]||r["Google Maps Link"]||r.link||""),healthPicks:n,orderingTips:o}},KF=e=>({id:e+1,name:"Unknown Restaurant",rating:"N/A",distance:"N/A",price:"N/A",description:"",thumbnail:"",type:"Restaurant",mapsLink:"",healthPicks:[],orderingTips:""}),a2=[{"Restaurant Name":"Koza Turkish and Mediterranean Market",Rating:4.8,"Distance to that restaurant":"â 11â15 miles",Price:null,Description:"Turkish/Mediterranean market with prepared foodsâeasy to build a Mediterranean-style meal with fish, veggies, olive oil, and mezze.","Link to the thumbnail pic":"https://serpapi.com/searches/697fd7c099d5f466ac48ed90/images/aea5a7c05a0921f681126b8765784c30e221f50feb2fc8283bbdcf3f663ab571.jpeg",Type:"Mediterranean","Google Maps link":"https://www.google.com/maps/search/?api=1&query=Koza%20Turkish%20and%20Mediterranean%20Market&query_place_id=11316964154931121548","Health-aware picks (highlight menu items)":["Greek/Turkish salads with olive oil-based dressing","Mezze plates (hummus, baba ghanoush, stuffed grape leaves)","Grilled fish + roasted vegetables"],"Ordering Tips (to meet the dietary or health metrics)":["Ask for olive-oil-forward preparations","Choose grilled/baked proteins; prioritize fish over lamb/beef","Add extra vegetables; keep bread portions modest"]},{"Restaurant Name":"Padria Mediterranean Cafe",Rating:4.6,"Distance to that restaurant":"â 11â15 miles",Price:"$10â20",Description:"Mediterranean cafe with plenty of grilled options and vegetable-forward plates.","Link to the thumbnail pic":"https://serpapi.com/searches/697fd7c099d5f466ac48ed90/images/aea5a7c05a0921f6
624dea6d5ce7b12100769fa31901b6a0dd949ecef9eed5b2bdf.jpeg",Type:"Mediterranean","Google Maps link":"https://www.google.com/maps/search/?api=1&query=Padria%20Mediterranean%20Cafe&query_place_id=12405558173795823732","Health-aware picks (highlight menu items)":["Greek salad (olive oil + lemon dressing)","Grilled fish or grilled chicken kebab","Hummus + veggie sides"],"Ordering Tips (to meet the dietary or health metrics)":["Pick salads + grilled protein; request extra veggies","Opt for whole-grain-style sides when offered","Skip sugary drinks; choose water/unsweetened tea"]},{"Restaurant Name":"Bella Balducci's Mediterranean Cuisine",Rating:4.6,"Distance to that restaurant":"â 11â15 miles",Price:"$20â30",Description:"Mediterranean spot known for classic preparationsâgreat for fish/veg-forward plates.","Link to the thumbnail pic":"https://serpapi.com/searches/697fd7c099d5f466ac48ed90/images/aea5a7c05a0921f68c6af09cf423f83ead58532ccd1ccd1aa5d9646c90b791a5.jpeg",Type:"Mediterranean","Google Maps link":"https://www.google.com/maps/search/?api=1&query=Bella%20Balducci%27s%20Mediterranean%20Cuisine&query_place_id=1866066488743823102","Health-aware picks (highlight menu items)":["Grilled fish plates","Greek salad + olive oil dressing","Vegetable-forward appetizers (hummus/eggplant dips)"],"Ordering Tips (to meet the dietary or health metrics)":["Ask for sauces on the side","Favor fish/seafood; limit lamb/beef","Share starch sides; load up on salad/vegetables"]},{"Restaurant Name":"Mediterranean Kitchen",Rating:4.4,"Distance to that restaurant":"â 11â15 miles",Price:"$10â20",Description:"Lebanese-style Mediterranean with many lean-protein and veggie-based dishes.","Link to the thumbnail pic":"https://serpapi.com/searches/697fd7c099d5f466ac48ed90/images/aea5a7c05a0921f68d36de620e881466cd64349f1b48d87001a7084802be99aa.jpeg",Type:"Lebanese","Google Maps link":"https://www.google.com/maps/search/?api=1&query=Mediterranean%20Kitchen%20Kirkland&query_place_id=13541648956699768422","Health-aware picks (highlight menu items)":["Tabbouleh (parsley + lemon + olive oil)","Hummus/baba ghanoush with veggies","Grilled chicken or fish with salad"],"Ordering Tips (to meet the dietary or health metrics)":["Choose grilled over fried","Keep pita modest; add extra salad/veggies","Ask for olive oil + lemon dressing"]},{"Restaurant Name":"Fork Mediterranean Grill",Rating:4.8,"Distance to that restaurant":"â 11â15 miles",Price:"$10â20",Description:"Mediterranean grillâeasy to build a Mediterranean-diet plate with salads, dips, and grilled proteins.","Link to the thumbnail pic":"https://serpapi.com/searches/697fd7c099d5f466ac48ed90/images/aea5a7c05a0921f623307822d7083fc3026f9fbe3443ab4fc049ec799e278ba2.jpeg",Type:"Mediterranean","Google Maps link":"https://www.google.com/maps/search/?api=1&query=Fork%20Mediterranean%20grill%20Lynnwood&query_place_id=15642986365676275780","Health-aware picks (highlight menu items)":["Mediterranean salad bowl/plate","Grilled chicken/fish with veggies","Hummus/eggplant dip with cucumber/tomato"],"Ordering Tips (to meet the dietary or health metrics)":["Build a plate: half vegetables, quarter protein, quarter whole grains","Ask for olive oil + lemon; keep creamy sauces minimal","Limit red meat; choose fish/lean poultry"]}],i2=g.memo(({loadCacheEntry:e})=>{const t=g.useMemo(()=>{try{const r=localStorage.getItem(mc);let n=r?JSON.parse(r):[];return n.length===0&&(n=[{key:"98072 (woodinville, wa)|mediterranean diet, olive oil, fish, vegetables, whole grains, nuts, limited red meat",results:Bi(a2),timestamp:Date.now()}]),n}catch{return null}},[]);return t?a.jsx(Vc,{className:"h-[60vh]",children:a.jsxs(Ea,{children:[a.jsx(Ta,{children:a.jsxs(wr,{children:[a.jsx(ze,{className:"w-12",children:"#"}),a.jsx(ze,{children:"Location"}),a.jsx(ze,{children:"Health Constraints"}),a.jsx(ze,{className:"w-20",children:"Results"})]})}),a.jsx(Pa,{children:t.map((r,n)=>{const[s,i]=r.key.split("|");return a.jsxs(wr,{className:"cursor-pointer hover:bg-accent",onClick:()=>e(r),children:[a.jsx(Be,{className:"font-medium",children:n+1}),a.jsx(Be,{className:"max-w-[150px] truncate",children:s}),a.jsx(Be,{className:"max-w-[300px]",children:a.jsx("span",{className:"line-clamp-2 text-sm",children:i})}),a.jsx(Be,{children:r.results.length})]},n)})})]})}):a.jsx("p",{className:"text-destructive text-center py-8",children:"Error reading cache."})});
624i2.displayName="CacheDialogContent";const o2=g.memo(({restaurant:e})=>{const[t,r]=g.useState(!1);return a.jsxs(a.Fragment,{children:[a.jsx(ie,{className:"overflow-hidden border-purple-200/50 dark:border-purple-800/50 hover:shadow-lg transition-all duration-300 hover:-translate-y-0.5 group cursor-pointer",onClick:()=>r(!0),children:a.jsxs("div",{className:"flex",children:[e.thumbnail&&a.jsxs("div",{className:"relative flex-shrink-0 w-28 h-28 overflow-hidden",children:[a.jsx("img",{src:e.thumbnail,alt:e.name,loading:"lazy",decoding:"async",className:"object-cover w-full h-full group-hover:scale-105 transition-transform duration-300",onError:n=>{n.target.parentElement.style.display="none"}}),a.jsx(Ae,{className:"absolute bottom-1 left-1 text-[10px] px-1.5 py-0.5 bg-black/70 text-white border-0 backdrop-blur-sm",children:e.type})]}),a.jsxs(Me,{className:"flex-1 p-3 min-w-0",children:[a.jsxs("div",{className:"space-y-1.5",children:[a.jsx("h3",{className:"font-semibold text-sm leading-tight line-clamp-1",children:e.name}),a.jsxs("div",{className:"flex items-center gap-2 flex-wrap text-xs",children:[a.jsxs("div",{className:"flex items-center gap-0.5",children:[a.jsx(Zl,{className:"w-3 h-3 fill-amber-400 text-amber-400"}),a.jsx("span",{className:"font-medium",children:e.rating})]}),a.jsx("span",{className:"text-muted-foreground",children:e.distance}),a.jsx("span",{className:"text-muted-foreground",children:e.price})]})]}),e.description&&a.jsx("p",{className:"text-xs text-muted-foreground line-clamp-1 mt-1.5",children:e.description}),e.healthPicks.length>0&&a.jsxs("div",{className:"group/picks relative mt-2",onClick:n=>n.stopPropagation(),children:[a.jsxs("div",{className:"flex flex-wrap gap-1 cursor-pointer",children:[e.healthPicks.slice(0,2).map((n,s)=>a.jsxs(Ae,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-5 bg-green-50 dark:bg-green-900/20 border-green-300 dark:border-green-700 text-green-700 dark:text-green-300",children:[a.jsx(kl,{className:"w-2.5 h-2.5 mr-0.5"}),n.length>25?n.slice(0,25)+"...":n]},s)),e.healthPicks.length>2&&a.jsxs(Ae,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-5 hover:bg-purple-100 dark:hover:bg-purple-900/30",children:["+",e.healthPicks.length-2]})]}),a.jsx("div",{className:"absolute left-0 right-0 bottom-full mb-1 opacity-0 invisible group-hover/picks:opacity-100 group-hover/picks:visible transition-all duration-200 z-50 pointer-events-none",children:a.jsxs("div",{className:"bg-green-50 dark:bg-green-950 border border-green-200 dark:border-green-800 rounded-lg p-2.5 shadow-lg",children:[a.jsxs("p",{className:"text-[10px] font-semibold text-green-700 dark:text-green-300 mb-1.5 flex items-center gap-1",children:[a.jsx(ls,{className:"w-3 h-3"}),"Health-Aware Picks"]}),a.jsx("div",{className:"flex flex-wrap gap-1.5",children:e.healthPicks.map((n,s)=>a.jsxs(Ae,{variant:"outline",className:"text-[10px] bg-white dark:bg-green-900/40 border-green-300 dark:border-green-700 text-green-700 dark:text-green-300",children:[a.jsx(kl,{className:"w-2.5 h-2.5 mr-0.5"}),n]},s))})]})})]}),e.orderingTips&&a.jsxs("div",{className:"group/tips relative mt-1.5",onClick:n=>n.stopPropagation(),children:[a.jsxs("div",{className:"text-[10px] text-pink-600 dark:text-pink-400 line-clamp-1 flex items-start gap-1 cursor-pointer",children:[a.jsx(zr,{className:"w-2.5 h-2.5 flex-shrink-0 mt-0.5"}),a.jsx("span",{className:"truncate",children:e.orderingTips})]}),a.jsx("div",{className:"absolute left-0 right-0 bottom-full mb-1 opacity-0 invisible group-hover/tips:opacity-100 group-hover/tips:visible transition-all duration-200 z-50 pointer-events-none",children:a.jsx("div",{className:"bg-pink-50 dark:bg-pink-950 border border-pink-200 dark:border-pink-800 rounded-lg p-2.5 shadow-lg",children:a.jsxs("p",{className:"text-[11px] text-pink-700 dark:text-pink-300 leading-relaxed flex items-start gap-1.5",children:[a.jsx(zr,{className:"w-3 h-3 flex-shrink-0 mt-0.5"}),e.orderingTips]})})})]}),e.mapsLink&&a.jsxs("a",{href:e.mapsLink,target:"_blank",rel:"noopener noreferrer",onClick:n=>n.stopPropagation(),className:"inline-flex items-center gap-1 text-xs font-medium text-purple-600 dar
624k:text-purple-400 hover:text-purple-800 dark:hover:text-purple-300 transition-colors mt-2",children:[a.jsx(yu,{className:"w-3 h-3"}),"Maps"]})]})]})}),a.jsx(Bh,{open:t,onOpenChange:r,children:a.jsxs($c,{className:"max-w-lg max-h-[85vh] overflow-y-auto",children:[a.jsxs(Fc,{children:[a.jsxs(Uc,{className:"flex items-center gap-2 pr-6",children:[a.jsx(JT,{className:"w-5 h-5 text-purple-500"}),e.name]}),a.jsxs(zc,{className:"flex items-center gap-3 pt-1",children:[a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(Zl,{className:"w-4 h-4 fill-amber-400 text-amber-400"}),a.jsx("span",{className:"font-medium",children:e.rating})]}),a.jsx("span",{children:e.distance}),a.jsx("span",{children:e.price}),a.jsx(Ae,{variant:"outline",className:"text-xs",children:e.type})]})]}),a.jsxs("div",{className:"space-y-4 pt-2",children:[e.thumbnail&&a.jsx("div",{className:"relative overflow-hidden rounded-lg",children:a.jsx(O_,{ratio:16/9,children:a.jsx("img",{src:e.thumbnail,alt:e.name,className:"object-cover w-full h-full"})})}),e.description&&a.jsxs("div",{children:[a.jsx("h4",{className:"text-sm font-semibold mb-1",children:"About"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]}),e.healthPicks.length>0&&a.jsxs("div",{children:[a.jsxs("h4",{className:"text-sm font-semibold mb-2 flex items-center gap-1.5 text-purple-600 dark:text-purple-400",children:[a.jsx(ls,{className:"w-4 h-4"}),"Health-Aware Picks"]}),a.jsx("div",{className:"flex flex-wrap gap-2",children:e.healthPicks.map((n,s)=>a.jsxs(Ae,{variant:"outline",className:"text-xs bg-green-50 dark:bg-green-900/20 border-green-300 dark:border-green-700 text-green-700 dark:text-green-300",children:[a.jsx(kl,{className:"w-3 h-3 mr-1"}),n]},s))})]}),e.orderingTips&&a.jsxs("div",{className:"bg-pink-50 dark:bg-pink-900/20 rounded-lg p-4 border border-pink-200 dark:border-pink-800/30",children:[a.jsxs("h4",{className:"text-sm font-semibold mb-2 flex items-center gap-1.5 text-pink-600 dark:text-pink-400",children:[a.jsx(zr,{className:"w-4 h-4"}),"Ordering Tips"]}),a.jsx("p",{className:"text-sm text-muted-foreground",children:e.orderingTips})]}),e.mapsLink&&a.jsxs("a",{href:e.mapsLink,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm font-medium text-purple-600 dark:text-purple-400 hover:text-purple-800 dark:hover:text-purple-300 transition-colors",children:[a.jsx(yu,{className:"w-4 h-4"}),"View on Google Maps"]})]})]})})]})});o2.displayName="RestaurantCard";const ZF=()=>{const[e,t]=g.useState(""),[r,n]=g.useState(""),[s,i]=g.useState([]),[o,l]=g.useState(!1),[c,d]=g.useState(!1),[u,h]=g.useState(!1),[f,m]=g.useState(null),[b,x]=g.useState(!1),w=j=>{x(!1),d(!0),m(null),i([]),l(!0);const[N,S]=j.key.split("|");t(S),n(N);const k=Bi(j.results);setTimeout(()=>{i(k),l(!1)},2e3)},v=j=>{j.key==="Enter"&&y()},p=()=>{d(!0),m(null),i([]),l(!0);try{const N=localStorage.getItem(mc);if(N){const S=JSON.parse(N);if(S.length>0){const k=S[Math.floor(Math.random()*S.length)],[A,E]=k.key.split("|");t(E),n(A);const O=Bi(k.results);setTimeout(()=>{i(O),l(!1)},2e3),console.log("Loading random cached entry with 2s delay");return}}}catch(N){console.error("Error loading from cache:",N)}t("Mediterranean diet, olive oil, fish, vegetables, whole grains, nuts, limited red meat"),n("98072 (Woodinville, WA)");const j=Bi(a2);setTimeout(()=>{i(j),l(!1)},2e3)},y=async()=>{if(!e.trim()||!r.trim())return;i([]),m(null),d(!0);const j=BF(r,e);if(j&&j.length>0){console.log("Cache hit! Loading with 2s delay"),l(!0),setTimeout(()=>{i(j),l(!1)},2e3);return}console.log("Cache miss. Fetching from API..."),l(!0),h(!1);const N=new AbortController,S=setTimeout(()=>N.abort(),9e4),k=setTimeout(()=>h(!0),7e3);try{const A=new FormData;A.append("healthConstraints",e),A.append("location",r);const E=await fetch("https://prasak.app.n8n.cloud/webhook/c66bdb9a-0ca1-433f-afe7-5c7b69997c5e",{method:"POST",body:A,signal:N.signal});if(clearTimeout(S),clearTimeout(k),!E.ok){console.error("API response not OK:",E.status,E.statusText),m("Sorry, we seem to have run into some unex
624pected issues. Please try again in a few minutes..."),i([]);return}const O=await E.json();console.log("Raw API response:",JSON.stringify(O,null,2)),console.log("Response type:",typeof O,Array.isArray(O)?"array":"not array");const R=Bi(O);console.log("Parsed restaurants:",R.length,R),R.length>0&&(VF(r,e,R),console.log("Results cached successfully")),i(R)}catch(A){clearTimeout(S),clearTimeout(k),A instanceof Error&&A.name==="AbortError"?(console.error("Request timed out after 90 seconds"),m("Sorry, we seem to have run into some unexpected issues. Please try again in a few minutes...")):(console.error("Error fetching AI recommendations:",A),m("Sorry, we seem to have run into some unexpected issues. Please try again in a few minutes...")),i([])}finally{l(!1),h(!1)}};return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(vr,{title:"Find Health-Conscious Restaurants",description:"Discover restaurants near you that align with your health goals. Search by zip code to find dining options with detailed nutritional information.",canonicalUrl:"/gavrun/restaurants",keywords:"healthy restaurants, nutrition-focused dining, diet-friendly restaurants, health-conscious eating"}),a.jsx("header",{className:"border-b border-border bg-background/80 backdrop-blur-md sticky top-0 z-50",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"flex justify-between items-center h-16",children:[a.jsxs(xe,{to:"/gavrun",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[a.jsx(da,{className:"w-4 h-4"}),a.jsx("span",{className:"text-sm font-medium",children:"Back to Gavrun"})]}),a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsxs(Bh,{open:b,onOpenChange:x,children:[a.jsx(S_,{asChild:!0,children:a.jsxs(se,{variant:"outline",size:"sm",children:[a.jsx(ip,{className:"w-4 h-4 mr-1"}),"Show Cache"]})}),a.jsxs($c,{className:"max-w-3xl max-h-[80vh]",children:[a.jsxs(Fc,{children:[a.jsx(Uc,{children:"Search Cache"}),a.jsx(zc,{children:"Cached searches - see what people are searching for. Click an entry to load it."})]}),a.jsx(i2,{loadCacheEntry:w})]})]}),a.jsx(se,{variant:"outline",size:"sm",onClick:p,children:"Load Demo"}),a.jsx(xe,{to:"/gavrun/webscraper",children:a.jsx(se,{variant:"outline",size:"sm",children:"Web Scraper"})}),a.jsxs(xe,{to:"/",className:"flex items-center gap-2",children:[a.jsx("img",{src:$o,alt:"Aristle AI Logo",className:"h-8 w-8"}),a.jsx("span",{className:"text-lg font-bold bg-gradient-to-r from-orange-500 to-amber-500 bg-clip-text text-transparent",children:"Gavrun"})]})]})]})})}),a.jsx("main",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:a.jsxs("div",{children:[a.jsxs("div",{className:"text-center mb-8",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-gradient-to-r from-purple-100 to-pink-100 dark:from-purple-900/30 dark:to-pink-900/30 mb-4",children:[a.jsx(ls,{className:"w-4 h-4 text-purple-600 dark:text-purple-400"}),a.jsx("span",{className:"text-sm font-medium text-purple-700 dark:text-purple-300",children:"AI-Powered Search"})]}),a.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Find Restaurants by Your Health Goals"}),a.jsx("p",{className:"text-muted-foreground text-lg max-w-2xl mx-auto",children:"Click a diet plan below or describe your dietary needs, health constraints, or nutrition goals and we'll find the perfect dining options for you."})]}),a.jsxs("div",{className:"max-w-2xl mx-auto space-y-6",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm font-medium mb-3",children:"Quick Select a Diet Plan"}),a.jsx("div",{className:"px-12",children:a.jsxs(F_,{opts:{align:"start",loop:!0},className:"w-full",children:[a.jsx(U_,{className:"-ml-2",children:HF.map(j=>a.jsx(z_,{className:"pl-2 basis-1/3 md:basis-1/4",children:a.jsx("button",{type:"button",onClick:()=>t(j.constraints),className:"w-full group",children:a.jsx("div",{className:"relative overflow-hidden rounded-xl border-2 border-transparent hover:border-purple-500 transition-all duration-200",children:a.jsxs(O_,{ratio:1,children:[a.jsx("img",{src:j.image,alt:j.name,loading:"lazy",decoding:"async",className:"object-cover w-full h-full group-hover:scale-110 transition-transform duration-300"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-transparent"}),a.jsx("div",{className:"absolute bottom-0 left-0 right-0 p-2",children:a.jsx("span",{className:"text-white text-xs font-semibold drop-shadow-lg",children:j.name})})]})})})},j.id))}),a.jsx(B_,{className:"-left-10"}),a.jsx(V_,{className:"-right-10"})]})})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm font-medium mb-2",children:"Health & Dietary Constraints (or Cravings)"}),a.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:"Feel free to list as much detail as possible"}),a.jsx(Mh,{placeholder:"e.g., Low sodium, diabetic-friendly, high protein, avoiding gluten and dairy, trying to lose weight, craving Ital
624ian food, want something spicy...",value:e,onChange:j=>t(j.target.value),onKeyPress:v,className:"min-h-[100px]"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm font-medium mb-2",children:"Location"}),a.jsxs("div",{className:"relative",children:[a.jsx(F1,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),a.jsx(ft,{type:"text",placeholder:"City, State or Zip Code",value:r,onChange:j=>n(j.target.value),onKeyPress:v,className:"pl-10 h-12"})]})]}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx(se,{onClick:y,disabled:!e.trim()||!r.trim()||o,className:"flex-1 h-12 bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700",children:o?a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),"Finding recommendations..."]}):a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(ls,{className:"w-4 h-4"}),"Find Health-Aligned Restaurants"]})}),a.jsxs(se,{variant:"outline",onClick:()=>{i([]),d(!1),m(null)},disabled:s.length===0&&!f,className:"h-12 px-4",children:[a.jsx(qa,{className:"w-4 h-4 mr-2"}),"Clear"]})]})]}),o&&u&&a.jsxs("div",{className:"mt-6 flex items-center justify-center gap-3 p-4 bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-800/30 rounded-xl animate-fade-in",children:[a.jsx("div",{className:"w-5 h-5 border-2 border-amber-500 border-t-transparent rounded-full animate-spin"}),a.jsxs("p",{className:"text-sm text-amber-700 dark:text-amber-300 font-medium",children:["The search is taking longer than expected. We will have the results shortly",a.jsxs("span",{className:"inline-flex ml-1",children:[a.jsx("span",{className:"animate-[pulse_1s_ease-in-out_infinite]",children:"."}),a.jsx("span",{className:"animate-[pulse_1s_ease-in-out_infinite_0.2s]",children:"."}),a.jsx("span",{className:"animate-[pulse_1s_ease-in-out_infinite_0.4s]",children:"."})]})]})]}),f&&!o&&a.jsxs("div",{className:"mt-6 flex items-center justify-center gap-3 p-4 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800/30 rounded-xl animate-fade-in",children:[a.jsx("div",{className:"p-2 bg-white dark:bg-background rounded-lg shadow-sm",children:a.jsx(qa,{className:"w-5 h-5 text-red-500"})}),a.jsx("p",{className:"text-sm text-red-700 dark:text-red-300 font-medium",children:f})]}),c&&s.length>0&&a.jsxs("div",{className:"mt-8 space-y-6",children:[a.jsxs("div",{className:"space-y-3",children:[a.jsx("h3",{className:"text-xl font-semibold",children:"AI Recommendations"}),a.jsx("div",{className:"bg-gradient-to-r from-purple-50 to-pink-50 dark:from-purple-900/20 dark:to-pink-900/20 rounded-xl p-4 border border-purple-100 dark:border-purple-800/30",children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"p-2 bg-white dark:bg-background rounded-lg shadow-sm",children:a.jsx(zr,{className:"w-5 h-5 text-pink-500"})}),a.jsxs("div",{className:"space-y-1",children:[a.jsxs("p",{className:"text-sm font-medium text-foreground",children:["Found ",s.length," health-aligned restaurant",s.length!==1?"s":""," for you! ð"]}),a.jsxs("p",{className:"text-sm text-muted-foreground",children:["Based on your preferences: ",a.jsxs("span",{className:"font-medium text-purple-600 dark:text-purple-400",children:[e.slice(0,100),e.length>100?"...":""]})]}),a.jsxs("p",{className:"text-sm text-muted-foreground",children:["Near: ",a.jsx("span",{className:"font-medium text-purple-600 dark:text-purple-400",children:r})]})]})]})})]}),a.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:s.map(j=>a.jsx(o2,{restaurant:j},j.id))})]})]})})]})};var sv="Progress",av=100,[YF,ez]=lr(sv),[JF,QF]=YF(sv),l2=g.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:s,getValueLabel:i=XF,...o}=e;(s||s===0)&&!_b(s)&&console.error(e8(`${s}`,"Progress"));const l=_b(s)?s:av;n!==null&&!Cb(n,l)&&console.error(t8(`${n}`,"Progress"));const c=Cb(n,l)?n:null,d=qu(c)?i(c,l):void 0;return a.jsx(JF,{scope:r,value:c,max:l,children:a.jsx(de.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":qu(c)?c:void 0,"aria-valuetext":d,role:"progressbar","data-state":u2(c,l),"data-value":c??void 0,"data-max":l,...o,ref:t})})});l2.displayName=sv;var c2="ProgressIndicator",d2=g.forwardRef((e,t)=>
624{const{__scopeProgress:r,...n}=e,s=QF(c2,r);return a.jsx(de.div,{"data-state":u2(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...n,ref:t})});d2.displayName=c2;function XF(e,t){return`${Math.round(e/t*100)}%`}function u2(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function qu(e){return typeof e=="number"}function _b(e){return qu(e)&&!isNaN(e)&&e>0}function Cb(e,t){return qu(e)&&!isNaN(e)&&e<=t&&e>=0}function e8(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${av}\`.`}function t8(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 625 - a positive number 626 - less than the value passed to \`max\` (or ${av} if no \`max\` prop is set) 627 - \`null\` or \`undefined\` if the progress is indeterminate. 628 629Defaulting to \`null\`.`}var h2=l2,r8=d2;const Gu=g.forwardRef(({className:e,value:t,...r},n)=>a.jsx(h2,{ref:n,className:X("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:a.jsx(r8,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Gu.displayName=h2.displayName;const Ao="gavrun_search_cache",Ab=64,n8="https://prasak.app.n8n.cloud/webhook/c66bdb9a-0ca1-433f-afe7-5c7b69997c5e",Ku=[{name:"Keto",constraints:"Keto-friendly, low carb, high fat, no sugar, no grains, no starchy vegetables"},{name:"Vegan",constraints:"Vegan, plant-based only, no meat, no dairy, no eggs, no animal products"},{name:"Mediterranean",constraints:"Mediterranean diet, olive oil, fish, vegetables, whole grains, nuts, limited red meat"},{name:"High Protein",constraints:"High protein, lean meats, eggs, fish, low fat, muscle building, athletic diet"},{name:"Gluten-Free",constraints:"Gluten-free, no wheat, no barley, no rye, celiac-safe, no gluten cross-contamination"},{name:"Diabetic-Friendly",constraints:"Diabetic-friendly, low glycemic, low sugar, blood sugar friendly, balanced carbs"},{name:"Ovo-Lacto Vegetarian",constraints:"Ovo-lacto vegetarian, no meat, no fish, eggs and dairy allowed, plant-based with eggs and milk"},{name:"Weight Loss",constraints:"Weight loss diet, low calorie, portion control, lean protein, high fiber, low fat, no fried foods, no sugary drinks"}],Gp=()=>{try{const e=localStorage.getItem(Ao);if(!e)return[];const t=JSON.parse(e),r=new Set;return t.forEach(n=>{const[s]=n.key.split("|");s&&r.add(s)}),Array.from(r)}catch(e){return console.error("Error reading cache locations:",e),[]}},s8=e=>{try{const t=localStorage.getItem(Ao);if(!t)return[];const r=JSON.parse(t),n=[];return r.forEach(s=>{const[i,o]=s.key.split("|");if(i===e.toLowerCase()){const l=Ku.find(c=>o.includes(c.name.toLowerCase())||c.constraints.toLowerCase().includes(o.substring(0,20)));l&&n.push(l.name)}}),n}catch(t){return console.error("Error reading cached diets:",t),[]}},Eb=()=>{const e=Gp(),t=[];return e.forEach(r=>{const n=s8(r);Ku.forEach(s=>{n.includes(s.name)||t.push({location:r,diet:s})})}),t},Tb=(e,t,r)=>{try{const n=localStorage.getItem(Ao);let s=n?JSON.parse(n):[];const i=`${e.trim().toLowerCase()}|${t.trim().toLowerCase()}`;s=s.filter(o=>o.key!==i),s.push({key:i,results:r,timestamp:Date.now()}),s.length>Ab&&(s=s.slice(-Ab)),localStorage.setItem(Ao,JSON.stringify(s))}catch(n){console.error("Error writing cache:",n)}},im=e=>{const t=[...e];for(let r=t.length-1;r>0;r--){const n=Math.floor(Math.random()*(r+1));[t[r],t[n]]=[t[n],t[r]]}return t},f2=g.memo(({onEntryClick:e})=>{const t=g.useMemo(()=>{try{const r=localStorage.getItem(Ao);return r?JSON.parse(r):[]}catch{return null}},[]);return t?t.length===0?a.jsx("p",{className:"text-muted-foreground text-center py-8",children:"Cache is empty. Run some scrapes first!"}):a.jsx(Vc,{className:"h-[60vh]",children:a.jsxs(Ea,{children:[a.jsx(Ta,{children:a.jsxs(wr,{children:[a.jsx(ze,{className:"w-12",children:"#"}),a.jsx(ze,{children:"Location"}),a.jsx(ze,{children:"Health Constraints"}),a.jsx(ze,{className:"w-20",children:"Results"})]})}),a.jsx(Pa,{children:t.map((r,n)=>{const[s,i]=r.key.split("|");return a.jsxs(wr,{className:"cursor-pointer hover:bg-accent",onClick:()=>e(r),children:[a.jsx(Be,{className:"font-medium",children:n+1}),a.jsx(Be,{className:"max-w-[150px] truncate",children:s}),a.jsx(Be,{className:"max-w-[300px]",children:a.jsx("span",{className:"line-clamp-2 text-sm",children:i})}),a.jsx(Be,{children:Array.isArray(r.results)?r.results.length:0})]},n)})})]})}):a.jsx("p",{className:"text-destructive text-center py-8",children:"Error reading cache."})});
629f2.displayName="CacheDialogContent";const a8=()=>{const[e,t]=g.useState([]),[r,n]=g.useState(!1),[s,i]=g.useState(!1),[o,l]=g.useState(0),[c,d]=g.useState(0),[u,h]=g.useState(0),[f,m]=g.useState(0),[b,x]=g.useState(!1),w=g.useCallback(()=>{try{const R=localStorage.getItem(Ao);if(!R)return{entries:0,locations:0};const I=JSON.parse(R),U=Gp();return{entries:I.length,locations:U.length}}catch{return{entries:0,locations:0}}},[]),[v,p]=g.useState(w),y=async R=>{const I=Ku.find(U=>U.name===R.diet);if(!I)return{...R,status:"error",error:"Diet not found"};try{const U=new FormData;U.append("healthConstraints",I.constraints),U.append("location",R.location);const L=new AbortController,C=setTimeout(()=>L.abort(),9e4),F=await fetch(n8,{method:"POST",body:U,signal:L.signal});if(clearTimeout(C),!F.ok)throw new Error(`HTTP ${F.status}`);const B=await F.json();let P=[];if(Array.isArray(B))P=B;else if(B.output&&typeof B.output=="string")try{const D=B.output.match(/\[[\s\S]*\]/);D&&(P=JSON.parse(D[0]))}catch{P=[B]}else B.restaurants||B.results||B.data?P=B.restaurants||B.results||B.data:P=[B];return Tb(R.location,I.constraints,P),{...R,status:"success",resultCount:Array.isArray(P)?P.length:1}}catch(U){const L=U instanceof Error?U.message:"Unknown error";return{...R,status:"error",error:L}}},j=async()=>{const R=Eb();if(R.length===0){alert("No missing combinations found! All diets are cached for all locations.");return}const U=im(R).slice(0,5).map((C,F)=>({id:`task-${Date.now()}-${F}`,location:C.location,diet:C.diet.name,status:"pending"}));t(C=>[...U,...C]),n(!0),l(0),d(U.length);const L=U.map(async C=>{t(B=>B.map(P=>P.id===C.id?{...P,status:"running"}:P));const F=await y(C);return t(B=>B.map(P=>P.id===C.id?F:P)),l(B=>B+1),F});await Promise.all(L),n(!1),p(w())},N=()=>Gp().filter(I=>/^\d{5}$/.test(I.trim())),S=async(R,I)=>{var L;const U=`firecrawl-${Date.now()}-${R}-${I.name}`;try{const{data:C,error:F}=await Jt.functions.invoke("firecrawl-agent",{body:{zipCode:R,dietName:I.name,dietConstraints:I.constraints}});if(F)throw new Error(F.message);if(!C.success)throw new Error(C.error||"Firecrawl request failed");const B=((L=C.data)==null?void 0:L.restaurants)||[];return Tb(R,I.constraints,B),{id:U,location:R,diet:I.name,status:"success",resultCount:B.length}}catch(C){const F=C instanceof Error?C.message:"Unknown error";return{id:U,location:R,diet:I.name,status:"error",error:F}}},k=async()=>{const R=N();if(R.length===0){cl({title:"No zip codes found",description:"No valid zip codes found in cache. Try scraping with the n8n method first.",variant:"destructive"});return}const I=im(R).slice(0,3),U=im([...Ku]),L=I.map((V,te)=>({zipCode:V,diet:U[te%U.length]})),C=L.map((V,te)=>({id:`firecrawl-${Date.now()}-${te}`,location:V.zipCode,diet:V.diet.name,status:"pending"}));t(V=>[...C,...V]),i(!0),h(0),m(C.length),cl({title:"Starting Firecrawl scraping",description:`Scraping ${C.length} zip code + diet combinations using Firecrawl agent...`});const F=L.map(async(V,te)=>{const re=C[te].id;t(ce=>ce.map(_e=>_e.id===re?{..._e,status:"running"}:_e));const me=await S(V.zipCode,V.diet);return me.id=re,t(ce=>ce.map(_e=>_e.id===re?me:_e)),h(ce=>ce+1),me}),B=await Promise.all(F),P=B.filter(V=>V.status==="success").length,D=B.reduce((V,te)=>V+(te.resultCount||0),0);cl({title:"Firecrawl scraping complete",description:`${P}/${B.length} successful. Found ${D} restaurants total.`}),i(!1),p(w())},A=c>0?o/c*100:0,E=f>0?u/f*100:0,O=R=>{x(!1);const[I,U]=R.key.split("|"),L=Array.isArray(R.results)?R.results.length:0;cl({title:"Cache Entry",description:`${I} - ${L} restaurants with "${U.substring(0,50)}..."`})};return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(vr,{title:"Web Scraper Admin - Gavrun",description:"Admin tool for populating the Gavrun restaurant cache"}),a.jsx("header",{className:"border-b border-border bg-background/80 backdrop-blur-md sticky top-0 z-50",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"flex justify-between items-center h-16",children:[a.jsxs(xe,{to:"/gavrun",className:"flex items-center gap-3",children:[a.jsx("img",{src:$o,alt:"Aristle AI",className:"h-8 w-8"}),a.jsx("span",{className:"text-lg font-bold bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent",children:"Gavrun"})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(Bh,{open:b,onOpenChange:x,children:[a.jsx(S_,{asChild:!0,children:a.jsxs(se,{variant:"outline",size:"sm",children:[a.jsx(ip,{className:"w-4 h-4 mr-1"}),"Show Cache"]}
629)}),a.jsxs($c,{className:"max-w-3xl max-h-[80vh]",children:[a.jsxs(Fc,{children:[a.jsx(Uc,{children:"Search Cache"}),a.jsx(zc,{children:"Cached searches - click an entry to view details."})]}),a.jsx(f2,{onEntryClick:O})]})]}),a.jsx(xe,{to:"/gavrun/restaurants",children:a.jsxs(se,{variant:"outline",size:"sm",children:[a.jsx(da,{className:"w-4 h-4 mr-2"}),"Back to Search"]})})]})]})})}),a.jsx("main",{className:"max-w-4xl mx-auto px-4 py-8",children:a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"text-center",children:[a.jsx("h1",{className:"text-3xl font-bold mb-2",children:"Web Scraper Admin"}),a.jsx("p",{className:"text-muted-foreground",children:"Populate the cache by scraping restaurant data for different diet+location combinations"})]}),a.jsxs(ie,{children:[a.jsx(Ve,{className:"pb-3",children:a.jsxs(He,{className:"text-lg flex items-center gap-2",children:[a.jsx(ip,{className:"w-5 h-5"}),"Cache Statistics"]})}),a.jsxs(Me,{children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{className:"text-center p-4 bg-muted/50 rounded-lg",children:[a.jsx("p",{className:"text-3xl font-bold text-primary",children:v.entries}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Total Cache Entries"})]}),a.jsxs("div",{className:"text-center p-4 bg-muted/50 rounded-lg",children:[a.jsx("p",{className:"text-3xl font-bold text-secondary",children:v.locations}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Unique Locations"})]})]}),a.jsx("div",{className:"mt-4 text-center",children:a.jsxs("p",{className:"text-sm text-muted-foreground",children:[Eb().length," missing diet+location combinations available to scrape"]})})]})]}),a.jsxs(ie,{children:[a.jsx(Ve,{className:"pb-3",children:a.jsxs(He,{className:"text-lg flex items-center gap-2",children:[a.jsx(ls,{className:"w-5 h-5"}),"Scraping Control"]})}),a.jsxs(Me,{className:"space-y-4",children:[a.jsx(se,{onClick:j,disabled:r,size:"lg",className:"w-full",children:r?a.jsxs(a.Fragment,{children:[a.jsx(Js,{className:"w-5 h-5 mr-2 animate-spin"}),"Scraping in Progress..."]}):a.jsxs(a.Fragment,{children:[a.jsx(HT,{className:"w-5 h-5 mr-2"}),"Start Web Scraping (5 queries)"]}
629)}),r&&a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"flex justify-between text-sm",children:[a.jsx("span",{children:"Progress"}),a.jsxs("span",{children:[o," / ",c]})]}),a.jsx(Gu,{value:A,className:"h-2"})]}),a.jsxs("div",{className:"border-t border-border pt-4",children:[a.jsx(se,{onClick:k,disabled:s||r,size:"lg",className:"w-full",variant:"secondary",children:s?a.jsxs(a.Fragment,{children:[a.jsx(Js,{className:"w-5 h-5 mr-2 animate-spin"}),"Firecrawl in Progress..."]}):a.jsxs(a.Fragment,{children:[a.jsx(Xg,{className:"w-5 h-5 mr-2"}),"Scrape with FireCrawl (3 queries)"]})}),a.jsx("p",{className:"text-xs text-muted-foreground mt-2 text-center",children:"Uses AI-powered Firecrawl agent with random zip codes from cache"})]}),s&&a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"flex justify-between text-sm",children:[a.jsx("span",{children:"Firecrawl Progress"}),a.jsxs("span",{children:[u," / ",f]})]}),a.jsx(Gu,{value:E,className:"h-2"})]})]})]}),e.length>0&&a.jsxs(ie,{children:[a.jsx(Ve,{className:"pb-3",children:a.jsx(He,{className:"text-lg",children:"Scraping Tasks"})}),a.jsx(Me,{children:a.jsx(Vc,{className:"h-[400px]",children:a.jsx("div",{className:"space-y-2",children:e.map(R=>a.jsxs("div",{className:"flex items-center justify-between p-3 bg-muted/30 rounded-lg",children:[a.jsxs("div",{className:"flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Ae,{variant:"outline",className:"text-xs",children:R.diet}),a.jsx("span",{className:"text-sm font-medium",children:R.location})]}),R.error&&a.jsx("p",{className:"text-xs text-destructive mt-1",children:R.error}),R.resultCount!==void 0&&a.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[R.resultCount," restaurants found"]})]}),a.jsxs("div",{className:"flex items-center",children:[R.status==="pending"&&a.jsx(Ae,{variant:"secondary",className:"text-xs",children:"Pending"}),R.status==="running"&&a.jsx(Js,{className:"w-4 h-4 animate-spin text-primary"}),R.status==="success"&&a.jsx(O1,{className:"w-5 h-5 text-green-500"}),R.status==="error"&&a.jsx(M1,{className:"w-5 h-5 text-destructive"})]})]},R.id))})})})]})]})})]})},i8=({icon:e,title:t,subtitle:r,purpose:n,signals:s,capabilities:i,insight:o})=>a.jsxs(ie,{className:"p-6 h-full flex flex-col",children:[a.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[a.jsx("div",{className:"p-3 rounded-xl bg-primary/10 text-primary",children:e}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-semibold",children:t}),a.jsx("p",{className:"text-sm text-muted-foreground",children:r})]})]}),a.jsx("p",{className:"text-muted-foreground mb-4",children:n}),a.jsxs("div",{className:"mb-4",children:[a.jsx("h4",{className:"text-sm font-semibold mb-2 text-primary",children:"Signals Ingested"}),a.jsx("div",{className:"flex flex-wrap gap-2",children:s.map((l,c)=>a.jsx("span",{className:"text-xs bg-muted rounded-full px-3 py-1",children:l},c))})]}),a.jsxs("div",{className:"mb-4 flex-1",children:[a.jsx("h4",{className:"text-sm font-semibold mb-2 text-primary",children:"Capabilities"}),a.jsx("ul",{className:"space-y-1",children:i.map((l,c)=>a.jsxs("li",{className:"text-sm text-muted-foreground flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1",children:"â¢"}),l]},c))})]}),a.jsx("div",{className:"mt-auto pt-4 border-t border-border",children:a.jsxs("p",{className:"text-sm italic bg-primary/5 rounded-lg px-4 py-3",children:[a.jsx("span",{className:"font-medium text-primary",children:"Typical Insight:"}),' "',o,'"']})})]}),o8=()=>{g.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);const e=[{icon:a.jsx(vh,{className:"w-6 h-6"}),title:"Financial Health & Cash Flow Agent",subtitle:"The CFO Agent",purpose:"Continuously monitor financial health and liquidity, and predict cash risk before it becomes critical.",signals:["Bank transactions","Accounting systems (AP/AR)","Payroll obligations","Recurring expenses"],capabilities:["Cash runway forecasting","Burn rate and margin analysis","Early warning on payroll and vendor payment risk","Scenario modeling (hire, spend, price changes)"],insight:"At current burn, runway drops below 60 days in 41 days."},{icon:a.jsx(wn,{className:"w-6 h-6"}),title:"Revenue & Growth Intelligence Agent",subtitle:"The Revenue Agent",purpose:"Understand revenue dynamics and identify growth and leakage opportunities.",signals:["Sales pipelines","POS / billing events","Subscription metrics","Pricing and discounts"],capabilities:["Revenue trend prediction","Customer and product profitability","Churn and expansion signals","Pricing and packaging optimization"],insight:"Revenue growth is slowing due to increased discounting in Segment B."},{icon:a.jsx(Ec,{className:"w-6 h-6"}),title:"Operations & Efficiency Agent",subtitle:"The COO Agent",purpose:"Detect operational inefficiencies and resource misalignment.",signals:["Labor hours","Utilization metrics","Delivery timelines","Internal workflows"],capabilities:["Labor-to-revenue efficiency analysis","Bottleneck detection","Cost leakage identification","Process optimization recommendations"],insight:"Utilization dropped 11% while labor cost increased 7%."},{icon:a.jsx(Ac,{className:"w-6 h-6"}),title:"Inventory & Supply Chain Agent",subtitle:"The Supply Agent",purpose:"Optimize inventory, procurement, and vendor dependencies.",signals:["Inventory levels","Purchase orders","Vendor pricing and lead times","Demand forecasts"],capabilities:["Demand-aware reordering","Overstock and spoilage detection","Vendor performance benchmarking","Supplier risk alerts"],insight:"Supplier X delays are causing recurring stockouts and margin loss."},{icon:a.jsx(qr,{className:"w-6 h-6"}),title:"Customer & Experience Intelligence Agent",subtitle:"The CX Agent",purpose:"Monitor customer behavior, satisfaction, and retention risk.",signals:["CRM activity","Support tickets","Reviews and feedback","Usage or engagement data"],capabilities:["Churn prediction","Customer lifetime value modeling","Sentiment analysis","Experience gap detection"],insight:"Customers acquired via Channel Y churn 2à faster."},{icon:a.jsx(Vt,{className:"w-6 h-6"}),title:"Risk, Compliance & Governance Agent",subtitle:"The Trust Agent",purpose:"Reduce regulatory, financial, and operational risk.",signals:["Payroll and contractor data","Tax deadlines","Policy changes","Access and approvals"],capabilities:["Compliance reminders and alerts","Anomaly detection (fraud, errors)","Policy adherence checks","Risk scoring across operations"],insight:"Contractor hours exceed threshold for reclassification risk."},{icon:a.jsx(_l,{className:"w-6 h-6"}
629),title:"Infrastructure & Systems Reliability Agent",subtitle:"The Platform Agent",purpose:"Ensure operational continuity for tech-enabled businesses and startups.",signals:["Cloud spend","Uptime metrics","API performance","Tool usage"],capabilities:["Cost vs usage optimization","Reliability risk detection","Vendor tool consolidation","Infra cost forecasting"],insight:"Cloud spend increased 18% without corresponding usage growth."},{icon:a.jsx(z1,{className:"w-6 h-6"}),title:"Custom Domain Agent",subtitle:"Composable, Customer-Defined",purpose:"Allow businesses to define domain-specific intelligence tailored to their industry or workflow.",signals:["Customer-defined signals","Custom KPIs and thresholds","Pluggable data sources","Domain-specific rules"],capabilities:["Healthcare operations agent","Legal services utilization agent","AI model cost & performance agent","Construction project tracking agent","Marketplace supply-demand agent"],insight:"A personalized intelligence layer that adapts to the businessânot the other way around."}],t=[Oc([{name:"Home",url:"/"},{name:"Agents",url:"/agents"}]),{"@context":"https://schema.org","@type":"WebPage",name:"AI Agents - Domain-Specific Business Intelligence",description:"8 specialized AI agents that monitor, analyze, and advise on every aspect of your business operations",url:"https://aristle-ai.lovable.app/agents"}];return a.jsxs("main",{className:"min-h-screen pt-16",children:[a.jsx(vr,{title:"AI Agents - Domain-Specific Business Intelligence",description:"8 specialized AI agents for finance, revenue, operations, inventory, customer experience, compliance, infrastructure, and custom domains. Many specialists. One brain. One source of truth.",keywords:"AI agents, business intelligence, CFO agent, COO agent, revenue agent, supply chain AI, customer experience AI, compliance automation, domain-specific AI",canonicalUrl:"/agents",structuredData:t}),a.jsx(ua,{}),a.jsx("section",{className:"bg-gradient-to-b from-background to-muted/20 py-20 px-4 md:px-8",children:a.jsxs("div",{className:"max-w-7xl mx-auto text-center",children:[a.jsxs("h1",{className:"text-4xl md:text-6xl font-bold mb-6",children:["Operational Intelligence &"," ",a.jsx("span",{className:"text-gradient",children:"Business Advisory AI Agents"})]}),a.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-3xl mx-auto mb-8",children:"Purpose-built agents that monitor key business domains, anticipate risks and opportunities, and recommend actions to improve performance and outcomes."})]})}),a.jsx("section",{className:"py-16 px-4 md:px-8",children:a.jsx("div",{className:"max-w-7xl mx-auto",children:a.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:e.map((r,n)=>a.jsx(i8,{...r},n))})})}),a.jsx("section",{className:"py-20 px-4 md:px-8 bg-muted/30",children:a.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[a.jsx("div",{className:"flex justify-center mb-6",children:a.jsx("div",{className:"p-4 rounded-2xl bg-primary/10",children:a.jsx(Zs,{className:"w-12 h-12 text-primary"})})}),a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"How These Agents Work Together"}),a.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"The Platform Story"}),a.jsxs("div",{className:"grid md:grid-cols-4 gap-4 mb-12",children:[a.jsxs(ie,{className:"p-4 text-center",children:[a.jsx("p",{className:"text-sm font-medium",children:"Each agent is"}),a.jsx("p",{className:"text-primary font-semibold",children:"Domain-Specialized"})]}),a.jsxs(ie,{className:"p-4 text-center",children:[a.jsx("p",{className:"text-sm font-medium",children:"Agents emit"}),a.jsx("p",{className:"text-primary font-semibold",children:"Normalized Signals"})]}),a.jsxs(ie,{className:"p-4 text-center",children:[a.jsx("p",{className:"text-sm font-medium",children:"Signals flow into"}),a.jsx("p",{className:"text-primary font-semibold",children:"Central Intelligence Brain"})]}),a.jsxs(ie,{className:"p-4 text-center",children:[a.jsx("p",{className:"text-sm font-medium",children:"Enabling"}),a.jsx("p",{className:"text-primary font-semibold",children:"Cross-Agent Correlation"})]})]}),a.jsxs(ie,{className:"p-8 bg-primary/5 border-primary/20",children:[a.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Cross-Agent Correlation Enables"}),a.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[a.jsxs("div",{className:"text-center",children:[a.jsx("p",{className:"font-medium",children:"Root-Cause Analysis"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Trace issues across domains"})]}),a.jsxs("div",{className:"text-center",children:[a.jsx("p",{className:"font-medium",children:"Multi-Domain Predictions"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Forecast interconnected impacts"})]}),a.jsxs("div",{className:"text-center",children:[a.jsx("p",{className:"font-medium",children:"Prioritized Actions"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Focus on what matters most"})]})]})]}),a.jsxs("p",{className:"mt-8 text-2xl font-bold",children:["Many specialists. One brain."," ",a.jsx("span",{className:"text-primary",children:"One source of truth."})]})]})}),a.jsx("section",{className:"py-20 px-4 md:px-8",children:a.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Ready to Deploy Your Agent Fleet?"}),a.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"Get specialized intelligence across every domain of your business operations."}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsx(xe,{to:"/consultation",children:a.jsx(se,{size:"lg",className:"text-lg px-8",children:"Schedule Consultation"})}),a.jsx(xe,{to:"/platform",children:a.jsxs(se,{size:"lg",variant:"outline",className:"text-lg px-8",children:["Learn About the Platform",a.jsx(tt,{className:"ml-2 w-4 h-4"})]})})]})]})}),a.jsx("footer",{className:"bg-card border-t border-border py-12 px-4 md:px-8",children:a.jsxs("div",{className:"max-w-7xl mx-auto text-center text-muted-foreground",children:[a.jsx("p",{className:"mb-2",children:"© 2025 Aristle AI. All rights reserved."}),a.jsx("p",{className:"text-sm",children:"Domain-Specific AI Agents for Business Intelligence"})]})})]})},l8=()=>{const[e,t]=g.useState(!0),[r,n]=g.useState(""),[s,i]=g.useState(""),[o,l]=g.useState(!1),[c,d]=g.useState(null),[u,h]=g.useState(null),f=Rc(),{toast:m}=hh();g.useEffect(()=>{const x=async v=>{try{const{data:p,error:y}=await Jt.storage.from("business-profiles").download(`${v}/onboarding.json`);if(y||!p){f("/onboarding");return}const j=await p.text();JSON.parse(j).completedAt?f("/"):f("/onboarding")}catch{f("/onboarding")}},{data:{subscription:w}}=Jt.auth.onAuthStateChange((v,p)=>{h(p),d((p==null?void 0:p.user)??null),p!=null&&p.user&&x(p.user.id)});return Jt.auth.getSession().then(({data:{session:v}})=>{h(v),d((v==null?void 0:v.user)??null),v!=null&&v.user&&x(v.user.id)}),()=>w.unsubscribe()},[f]);const b=async x=>{x.preventDefault(),l(!0);try{if(e){const{error:w}=await Jt.auth.signInWithPassword({email:r,password:s});if(w)throw w;m({title:"Welcome back!",description:"You have successfully logged in."})}else{const w=`${window.location.origin}/onboarding`,{error:v}=await Jt.auth.signUp({email:r,password:s,options:{emailRedirectTo:w}});if(v)throw v;m({title:"Account created!",description:"Please check your email to verify your account."})}}catch(w){m({title:"Error",description:w.message||"An error occurred during authentication.",variant:"destructive"})}finally{l(!1)}};return a.jsxs("main",{className:"min-h-screen pt-16 bg-background",children:[a.jsx(ua,{}),a.jsx("div",{className:"flex items-center justify-center min-h-[calc(100vh-4rem)] px-4",children:a.jsxs(ie,{className:"w-full max-w-md",children:[a.jsxs(Ve,{className:"text-center",children:[a.jsx("div",{className:"flex justify-center mb-4",children:a.jsx("img",{src:$o,alt:"Aristle AI Logo",className:"h-16 w-16"})}),a.jsx(He,{className:"text-2xl",children:e?"Welcome Back":"Create Account"}),a.jsx(Et,{children:e?"Sign in to access your Aristle AI dashboard":"Sign up to get started with Aristle AI"})]}),a.jsxs(Me,{children:[a.jsxs("form",{onSubmit:b,className:"space-y-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{htmlFor:"email",children:"Email"}),a.jsx(ft,{id:"email",type:"email",placeholder:"[email protected]",value:r,onChange:x=>n(x.target.value),required:!0})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{htmlFor:"password",children:"Password"}),a.jsx(ft,{id:"password",type:"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:s,onChange:x=>i(x.target.value),required:!0,minLength:6})]}),a.jsx(se,{type:"submit",className:"w-full",disabled:o,children:o?"Loading...":e?"Sign In":"Sign Up"})]}),a.jsxs("div",{className:"mt-4 text-center text-sm",children:[a.jsx("span",{className:"text-muted-foreground",children:e?"Don't have an account? ":"Already have an account? "}),a.jsx("button",{type:"button",onClick:()=>t(!e),className:"text-primary hover:underline font-medium",children:e?"Sign up":"Sign in"})]})]})]})})]})},sl=[{id:1,name:"Core Details",description:"Basic business information"},{id:2,name:"Business Objectives",description:"Goals and priorities"},{id:3,name:"AI Agents",description:"Select your AI agents"},{id:4,name:"Financial Baseline",description:"Financial integrations"},{id:5,name:"Revenue Signals",description:"Customer and sales data"},{id:6,name:"Operations",description:"Labor and capacity"},{id:7,name:"Inventory & Vendors",description:"Supply chain details"},{id:8,name:"Systems",description:"Tools and platforms"},{id:9,name:"Compliance",description:"Regulations and constraints"}],c8=["Restaurant & Food Service","Retail & E-commerce","Healthcare & Medical","Professional Services","Manufacturing","Construction","Technology & SaaS","Real Estate","Hospital
629ity & Tourism","Education","Financial Services","Transportation & Logistics","Agriculture","Other"],d8=["B2B","B2C","B2B2C","Marketplace","Subscription","Franchise","Hybrid"],u8=["Product Sales","Service Fees","Subscription/Recurring","Transaction-based","Advertising","Licensing","Freemium","Mixed"],h8=["America/New_York","America/Chicago","America/Denver","America/Los_Angeles","America/Phoenix","America/Anchorage","Pacific/Honolulu","Europe/London","Europe/Paris","Asia/Tokyo","Asia/Singapore","Australia/Sydney"],m2=[{id:"financial-health",name:"Financial Health (CFO)",description:"Monitor cash flow, margins, and financial KPIs"},{id:"revenue-growth",name:"Revenue & Growth",description:"Track sales performance and growth opportunities"},{id:"operations-efficiency",name:"Operations & Efficiency (COO)",description:"Optimize workflows and operational metrics"},{id:"inventory-supply",name:"Inventory & Supply Chain",description:"Manage stock levels and vendor relationships"},{id:"customer-experience",name:"Customer Experience (CX)",description:"Monitor satisfaction and customer journey"},{id:"risk-compliance",name:"Risk & Compliance (Trust)",description:"Ensure regulatory compliance and risk mitigation"}
629,{id:"infrastructure",name:"Infrastructure Reliability (Platform)",description:"Monitor system health and uptime"},{id:"custom-domain",name:"Custom Domain Agent",description:"Tailored agent for your specific needs"}],f8=()=>({coreDetails:{legalName:"",industry:"",businessModel:"",revenueModel:"",numberOfLocations:1,timeZone:"America/New_York"},businessObjectives:{primaryGoals:[],topConcerns:[],nearTermPriorities:[],riskTolerance:"moderate",growthStage:"growth"},agentSelection:{selectedAgents:[]},financialBaseline:{accountingIntegration:"",bankingIntegration:"",payrollIntegration:"",annualRevenue:"",monthlyBurnRate:"",profitMargin:""},revenueSignals:{crmPlatform:"",billingPlatform:"",averageOrderValue:"",customerAcquisitionCost:"",lifetimeValue:""},operationsSignals:{laborManagementSystem:"",capacityUtilization:"",peakHours:[],staffingChallenges:[]},inventoryVendors:{inventorySystem:"",primaryVendors:[],leadTimeDays:7,criticalDependencies:[]},systemsLandscape:{pointOfSale:"",ecommercePlatform:"",marketingTools:[],communicationTools:[],otherSystems:[]},complianceConstraints:{industryRegulations:[],dataPrivacyRequirements:[],financialCompliance:[],operationalConstraints:[]},lastUpdatedAt:new Date().toISOString()}),m8=()=>{const[e,t]=g.useState(f8()),[r,n]=g.useState(1),[s,i]=g.useState(!0),[o,l]=g.useState(!1),[c,d]=g.useState(null),{toast:u}=hh();g.useEffect(()=>{(async()=>{try{const{data:{user:p}}=await Jt.auth.getUser();if(!p){i(!1);return}d(p.id);const{data:y,error:j}=await Jt.storage.from("business-profiles").download(`${p.id}/onboarding.json`);if(j){if(j.message.includes("not found")||j.message.includes("Object not found")){i(!1);return}throw j}const N=await y.text(),S=JSON.parse(N);t(S)}catch(p){console.error("Error loading onboarding data:",p)}finally{i(!1)}})()},[]);const h=g.useCallback((v,p)=>{t(y=>({...y,[v]:p,lastUpdatedAt:new Date().toISOString()}))},[]),f=g.useCallback(async(v=!1)=>{if(!c)return u({title:"Not authenticated",description:"Please sign in to save your progress.",variant:"destructive"}),!1;l(!0);try{const p={...e,lastUpdatedAt:new Date().toISOString(),...v&&{completedAt:new Date().toISOString()}},y=new Blob([JSON.stringify(p,null,2)],{type:"application/json"}),{error:j}=await Jt.storage.from("business-profiles").upload(`${c}/onboarding.json`,y,{upsert:!0,contentType:"application/json"});if(j)throw j;return u({title:v?"Onboarding complete!":"Progress saved",description:v?"Your business profile has been saved successfully.":"Your progress has been saved."}),!0}catch(p){return console.error("Error saving onboarding data:",p),u({title:"Error saving",description:p.message||"Failed to save your progress.",variant:"destructive"}),!1}finally{l(!1)}},[e,c,u]),m=g.useCallback(async()=>{await f()&&r<9&&n(p=>p+1)},[r,f]),b=g.useCallback(()=>{r>1&&n(v=>v-1)},[r]),x=g.useCallback(v=>{v>=1&&v<=9&&n(v)},[]),w=g.useCallback(async()=>await f(!0),[f]);return{data:e,updateData:h,currentStep:r,setCurrentStep:x,nextStep:m,prevStep:b,loading:s,saving:o,saveProgress:f,completeOnboarding:w,isComplete:!!e.completedAt}},p8=({currentStep:e,onStepClick:t})=>a.jsxs("div",{className:"w-full py-4",children:[a.jsx("div",{className:"hidden md:flex items-center justify-between",children:sl.map((r,n)=>a.jsxs("div",{className:"flex items-center",children:[a.jsx("button",{onClick:()=>t(r.id),className:X("flex items-center justify-center w-10 h-10 rounded-full border-2 transition-all",e>r.id?"bg-primary border-primary text-primary-foreground":e===r.id?"border-primary text-primary bg-background":"border-muted-foreground/30 text-muted-foreground bg-background"),children:e>r.id?a.jsx(kc,{className:"w-5 h-5"}):a.jsx("span",{className:"text-sm font-medium",children:r.id})}),n<sl.length-1&&a.jsx("div",{className:X("w-8 lg:w-16 h-0.5 mx-1",e>r.id?"bg-primary":"bg-muted-foreground/30")})]},r.id))}),a.jsxs("div",{className:"md:hidden",children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsxs("span",{className:"text-sm text-muted-foreground",children:["Step ",e," of ",sl.length]}),a.jsx("span",{className:"text-sm font-medium",children:sl[e-1].name})]}),a.jsx("div",{className:"w-full bg-muted rounded-full h-2",children:a.jsx("div",{className:"bg-primary h-2 rounded-full transition-all duration-300",style:{width:`${e/sl.length*100}%`}})})]})]});var g8=[" ","Enter","ArrowUp","ArrowDown"],x8=[" ","Enter"],Qa="Select",[Kh,Zh,v8]=fh(Qa),[Fo,tz]=lr(Qa,[v8,jh]),Yh=jh(),[y8,ha]=Fo(Qa),[b8,w8]=Fo(Qa),p2=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:s,onOpenChange:i,value:o,defaultValue:l,onValueChange:c,dir:d,name:u,autoComplete:h,disabled:f,required:m,form:b}=e,x=Yh(t),[w,v]=g.useState(null),[p,y]=g.useState(null),[j,N]=g.useState(!1),S=Dc(d),[k,A]=bn({prop:n,defaultProp:s??!1,onChange:i,caller:Qa}),[E,O]=bn({prop:o,defaultProp:l,onChange:c,caller:Qa}),R=g.useRef(null),I=w?b||!!w.closest("form"):!0,[U,L]=g.useState(new Set),C=Array.from(U).map(F=>F.props.value).join(";");return a.jsx(II,{...x,children:a.jsxs(y8,{required:m,scope:t,trigger:w,onTriggerChange:v,valueNode:p,onValueNodeChange:y,valueNodeHasChildren:j,onValueNodeHasChildrenChange:N,contentId:$n(),value:E,onValueChange:O,open:k,onOpenChange:A,dir:S,triggerPointerDownPosRef:R,disabled:f,children:[a.jsx(Kh.Provider,{scope:t,children:a.jsx(b8,{scope:e.__scopeSelect,onNativeOptionAdd:g.useCallback(F=>{L(B=>new Set(B).add(F))},[]),onNativeOptionRemove:g.useCallback(F=>{L(B=>{const P=new Set(B);return P.delete(F),P})},[]),children:r})}),I?a.jsxs(F2,{"aria-hidden":!0,required:m,tabIndex:-1,name:u,autoComplete:h,value:E,onChange:F=>O(F.target.value),disabled:f,form:b,children:[E===void 0?a.jsx("option",{value:""}):null,Array.from(U)]},C):null]})})};p2.displayName=Qa;var g2="SelectTrigger",x2=g.forwardRef((e,t)=>
vendor: 16,808 bytes, line 629
629{const{__scopeSelect:r,disabled:n=!1,...s}=e,i=Yh(r),o=ha(g2,r),l=o.disabled||n,c=Pe(t,o.onTriggerChange),d=Zh(r),u=g.useRef("touch"),[h,f,m]=z2(x=>{const w=d().filter(y=>!y.disabled),v=w.find(y=>y.value===o.value),p=B2(w,x,v);p!==void 0&&o.onValueChange(p.value)}),b=x=>{l||(o.onOpenChange(!0),m()),x&&(o.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})};return a.jsx(wN,{asChild:!0,...i,children:a.jsx(de.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":U2(o.value)?"":void 0,...s,ref:c,onClick:le(s.onClick,x=>{x.currentTarget.focus(),u.current!=="mouse"&&b(x)}),onPointerDown:le(s.onPointerDown,x=>{u.current=x.pointerType;const w=x.target;w.hasPointerCapture(x.pointerId)&&w.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(b(x),x.preventDefault())}),onKeyDown:le(s.onKeyDown,x=>{const w=h.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&f(x.key),!(w&&x.key===" ")&&g8.includes(x.key)&&(b(),x.preventDefault())})})})});x2.displayName=g2;var v2="SelectValue",y2=g.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:s,children:i,placeholder:o="",...l}=e,c=ha(v2,r),{onValueNodeHasChildrenChange:d}=c,u=i!==void 0,h=Pe(t,c.onValueNodeChange);return mt(()=>{d(u)},[d,u]),a.jsx(de.span,{...l,ref:h,style:{pointerEvents:"none"},children:U2(c.value)?a.jsx(a.Fragment,{children:o}):i})});y2.displayName=v2;var j8="SelectIcon",b2=g.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...s}=e;return a.jsx(de.span,{"aria-hidden":!0,...s,ref:t,children:n||"â¼"})});b2.displayName=j8;var N8="SelectPortal",w2=e=>a.jsx(mh,{asChild:!0,...e});w2.displayName=N8;var Xa="SelectContent",j2=g.forwardRef((e,t)=>{const r=ha(Xa,e.__scopeSelect),[n,s]=g.useState();if(mt(()=>{s(new DocumentFragment)},[]),!r.open){const i=n;return i?ri.createPortal(a.jsx(N2,{scope:e.__scopeSelect,children:a.jsx(Kh.Slot,{scope:e.__scopeSelect,children:a.jsx("div",{children:e.children})})}),i):null}return a.jsx(S2,{...e,ref:t})});j2.displayName=Xa;var nn=10,[N2,fa]=Fo(Xa),S8="SelectContentImpl",k8=xo("SelectContent.RemoveScroll"),S2=g.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:h,collisionBoundary:f,collisionPadding:m,sticky:b,hideWhenDetached:x,avoidCollisions:w,...v}=e,p=ha(Xa,r),[y,j]=g.useState(null),[N,S]=g.useState(null),k=Pe(t,q=>j(q)),[A,E]=g.useState(null),[O,R]=g.useState(null),I=Zh(r),[U,L]=g.useState(!1),C=g.useRef(!1);g.useEffect(()=>{if(y)return n_(y)},[y]),Zk();const F=g.useCallback(q=>{const[ye,...Ie]=I().map(W=>W.ref.current),[be]=Ie.slice(-1),ue=document.activeElement;for(const W of q)if(W===ue||(W==null||W.scrollIntoView({block:"nearest"}),W===ye&&N&&(N.scrollTop=0),W===be&&N&&(N.scrollTop=N.scrollHeight),W==null||W.focus(),document.activeElement!==ue))return},[I,N]),B=g.useCallback(()=>F([A,y]),[F,A,y]);g.useEffect(()=>{U&&B()},[U,B]);const{onOpenChange:P,triggerPointerDownPosRef:D}=p;g.useEffect(()=>{if(y){let q={x:0,y:0};const ye=be=>{var ue,W;q={x:Math.abs(Math.round(be.pageX)-(((ue=D.current)==null?void 0:ue.x)??0)),y:Math.abs(Math.round(be.pageY)-(((W=D.current)==null?void 0:W.y)??0))}},Ie=be=>{q.x<=10&&q.y<=10?be.preventDefault():y.contains(be.target)||P(!1),document.removeEventListener("pointermove",ye),D.current=null};return D.current!==null&&(document.addEventListener("pointermove",ye),document.addEventListener("pointerup",Ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ye),document.removeEventListener("pointerup",Ie,{capture:!0})}}},[y,P,D]),g.useEffect(()=>{const q=()=>P(!1);return window.addEventListener("blur",q),window.addEventListener("resize",q),()=>{window.removeEventListener("blur",q),window.removeEventListener("resize",q)}},[P]);const[V,te]=z2(q=>{const ye=I().filter(ue=>!ue.disabled),Ie=ye.find(ue=>ue.ref.current===document.activeElement),be=B2(ye,q,Ie);be&&setTimeout(()=>be.ref.current.focus())}),re=g.useCallback((q,ye,Ie)=>{const be=!C.current&&!Ie;(p.value!==void 0&&p.value===ye||be)&&(E(q),be&&(C.current=!0))},[p.value]),me=g.useCallback(()=>y==null?void 0:y.focus(),[y]),ce=g.useCallback((q,ye,Ie)=>{const be=!C.current&&!Ie;(p.value!==void 0&&p.value===ye||be)&&R(q)},[p.value]),_e=n==="popper"?Kp:k2,We=_e===Kp?{side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:h,collisionBoundary:f,collisionPadding:m,sticky:b,hideWhenDetached:x,avoidCollisions:w}:{};return a.jsx(N2,{scope:r,content:y,viewport:N,onViewportChange:S,itemRefCallback:re,selectedItem:A,onItemLeave:me,itemTextRefCallback:ce,focusSelectedItem:B,selectedItemText:O,position:n,isPositioned:U,searchRef:V,children:a.jsx(Wx,{as:k8,allowPinchZoom:!0,children:a.jsx(Hx,{asChild:!0,trapped:p.open,onMountAutoFocus:q=>{q.preventDefault()},onUnmountAutoFocus:le(s,q=>{var ye;(ye=p.trigger)==null||ye.focus({preventScroll:!0}),q.preventDefault()}),children:a.jsx(Nc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:q=>q.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:a.jsx(_e,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:q=>q.preventDefault(),...v,...We,onPlaced:()=>L(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:le(v.onKeyDown,q=>{const ye=q.ctrlKey||q.altKey||q.metaKey;if(q.key==="Tab"&&q.preventDefault(),!ye&&q.key.length===1&&te(q.key),["ArrowUp","ArrowDown","Home","End"].includes(q.key)){let be=I().filter(ue=>!ue.disabled).map(ue=>ue.ref.current);if(["ArrowUp","End"].includes(q.key)&&(be=be.slice().reverse()),["ArrowUp","ArrowDown"].includes(q.key)){const ue=q.target,W=be.indexOf(ue);be=be.slice(W+1)}setTimeout(()=>F(be)),q.preventDefault()}})})})})})})});S2.displayName=S8;var _8="SelectItemAlignedPosition",k2=g.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...s}=e,i=ha(Xa,r),o=fa(Xa,r),[l,c]=g.useState(null),[d,u]=g.useState(null),h=Pe(t,k=>u(k)),f=Zh(r),m=g.useRef(!1),b=g.useRef(!0),{viewport:x,selectedItem:w,selectedItemText:v,focusSelectedItem:p}=o,y=g.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&d&&x&&w&&v){const k=i.trigger.getBoundingClientRect(),A=d.getBoundingClientRect(),E=i.valueNode.getBoundingClientRect(),O=v.getBoundingClientRect();if(i.dir!=="rtl"){const ue=O.left-A.left,W=E.left-ue,je=k.left-W,Oe=k.width+je,Ze=Math.max(Oe,A.width),pt=window.innerWidth-nn,kt=qp(W,[nn,Math.max(nn,pt-Ze)]);l.style.minWidth=Oe+"px",l.style.left=kt+"px"}else{const ue=A.right-O.right,W=window.innerWidth-E.right-ue,je=window.innerWidth-k.right-W,Oe=k.width+je,Ze=Math.max(Oe,A.width),pt=window.innerWidth-nn,kt=qp(W,[nn,Math.max(nn,pt-Ze)]);l.style.minWidth=Oe+"px",l.style.right=kt+"px"}const R=f(),I=window.innerHeight-nn*2,U=x.scrollHeight,L=window.getComputedStyle(d),C=parseInt(L.borderTopWidth,10),F=parseInt(L.paddingTop,10),B=parseInt(L.borderBottomWidth,10),P=parseInt(L.paddingBottom,10),D=C+F+U+P+B,V=Math.min(w.offsetHeight*5,D),te=window.getComputedStyle(x),re=parseInt(te.paddingTop,10),me=parseInt(te.paddingBottom,10),ce=k.top+k.height/2-nn,_e=I-ce,We=w.offsetHeight/2,q=w.offsetTop+We,ye=C+F+q,Ie=D-ye;if(ye<=ce){const ue=R.length>0&&w===R[R.length-1].ref.current;l.style.bottom="0px";const W=d.clientHeight-x.offsetTop-x.offsetHeight,je=Math.max(_e,We+(ue?me:0)+W+B),Oe=ye+je;l.style.height=Oe+"px"}else{const ue=R.length>0&&w===R[0].ref.current;l.style.top="0px";const je=Math.max(ce,C+x.offsetTop+(ue?re:0)+We)+Ie;l.style.height=je+"px",x.scrollTop=ye-ce+x.offsetTop}l.style.margin=`${nn}px 0`,l.style.minHeight=V+"px",l.style.maxHeight=I+"px",n==null||n(),requestAnimationFrame(()=>m.current=!0)}},[f,i.trigger,i.valueNode,l,d,x,w,v,i.dir,n]);mt(()=>y(),[y]);const[j,N]=g.useState();mt(()=>{d&&N(window.getComputedStyle(d).zIndex)},[d]);const S=g.useCallback(k=>{k&&b.current===!0&&(y(),p==null||p(),b.current=!1)},[y,p]);return a.jsx(A8,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:S,children:a.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:a.jsx(de.div,{...s,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});k2.displayName=_8;var C8="SelectPopperPosition",Kp=g.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:s=nn,...i}=e,o=Yh(r);return a.jsx(jN,{...o,...i,ref:t,align:n,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Kp.displayName=C8;var[A8,iv]=Fo(Xa,{}),Zp="SelectViewport",_2=g.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...s}=e,i=fa(Zp,r),o=iv(Zp,r),l=Pe(t,i.onViewportChange),c=g.useRef(0);return a.jsxs(a.Fragment,{children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),a.jsx(Kh.Slot,{scope:r,children:a.jsx(de.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:le(s.onScroll,d=>{const u=d.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&h){const m=Math.abs(c.current-u.scrollTop);if(m>0){const b=window.innerHeight-nn*2,x=parseFloat(h.style.minHeight),w=parseFloat(h.style.height),v=Math.max(x,w);if(v<b){const p=v+m,y=Math.min(b,p),j=p-y;h.style.height=y+"px",h.style.bottom==="0px"&&(u.scrollTop=j>0?j:0,h.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});_2.displayName=Zp;var C2="SelectGroup",[E8,T8]=Fo(C2),P8=g.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,s=$n();return a.jsx(E8,{scope:r,id:s,children:a.jsx(de.div,{role:"group","aria-labelledby":s,...n,ref:t})})});P8.displayName=C2;var A2="SelectLabel",E2=g.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,s=T8(A2,r);return a.jsx(de.div,{id:s.id,...n,ref:t})});E2.displayName=A2;var Zu="SelectItem",[R8,T2]=Fo(Zu),P2=g.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:s=!1,textValue:i,...o}=e,l=ha(Zu,r),c=fa(Zu,r),d=l.value===n,[u,h]=g.useState(i??""),[f,m]=g.useState(!1),b=Pe(t,p=>{var y;return(y=c.itemRefCallback)==null?void 0:y.call(c,p,n,s)}),x=$n(),w=g.useRef("touch"),v=()=>{s||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return a.jsx(R8,{scope:r,value:n,disabled:s,textId:x,isSelected:d,onItemTextChange:g.useCallback(p=>{h(y=>y||((p==null?void 0:p.textContent)??"").trim())},[]),children:a.jsx(Kh.ItemSlot,{scope:r,value:n,disabled:s,textValue:u,children:a.jsx(de.div,{role:"option","aria-labelledby":x,"data-highlighted":f?"":void 0,"aria-selected":d&&f,"data-state":d?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:b,onFocus:le(o.onFocus,()=>m(!0)),onBlur:le(o.onBlur,()=>m(!1)),onClick:le(o.onClick,()=>{w.current!=="mouse"&&v()}),onPointerUp:le(o.onPointerUp,()=>{w.current==="mouse"&&v()}),onPointerDown:le(o.onPointerDown,p=>{w.current=p.pointerType}),onPointerMove:le(o.onPointerMove,p=>{var y;w.current=p.pointerType,s?(y=c.onItemLeave)==null||y.call(c):w.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:le(o.onPointerLeave,p=>{var y;p.currentTarget===document.activeElement&&((y=c.onItemLeave)==null||y.call(c))}),onKeyDown:le(o.onKeyDown,p=>{var j;((j=c.searchRef)==null?void 0:j.current)!==""&&p.key===" "||(x8.includes(p.key)&&v(),p.key===" "&&p.preventDefault())})})})})});P2.displayName=Zu;var ml="SelectItemText",R2=g.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:s,...i}=e,o=ha(ml,r),l=fa(ml,r),c=T2(ml,r),d=w8(ml,r),[u,h]=g.useState(null),f=Pe(t,v=>h(v),c.onItemTextChange,v=>{var p;return(p=l.itemTextRefCallback)==null?void 0:p.call(l,v,c.value,c.disabled)}),m=u==null?void 0:u.textContent,b=g.useMemo(()=>a.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:x,onNativeOptionRemove:w}=d;return mt(()=>(x(b),()=>w(b)),[x,w,b]),a.jsxs(a.Fragment,{children:[a.jsx(de.span,{id:c.textId,...i,ref:f}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?ri.createPortal(i.children,o.valueNode):null]})});R2.displayName=ml;var I2="SelectItemIndicator",O2=g.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return T2(I2,r).isSelected?a.jsx(de.span,{"aria-hidden":!0,...n,ref:t}):null});O2.displayName=I2;var Yp="SelectScrollUpButton",M2=g.forwardRef((e,t)=>{const r=fa(Yp,e.__scopeSelect),n=iv(Yp,e.__scopeSelect),[s,i]=g.useState(!1),o=Pe(t,n.onScrollButtonChange);return mt(()=>{if(r.viewport&&r.isPositioned){let l=function(){const d=c.scrollTop>0;i(d)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),s?a.jsx(L2,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});M2.displayName=Yp;var Jp="SelectScrollDownButton",D2=g.forwardRef((e,t)=>{const r=fa(Jp,e.__scopeSelect),n=iv(Jp,e.__scopeSelect),[s,i]=g.useState(!1),o=Pe(t,n.onScrollButtonChange);return mt(()=>{if(r.viewport&&r.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)<d;i(u)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),s?a.jsx(L2,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});D2.displayName=Jp;var L2=g.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...s}=e,i=fa("SelectScrollButton",r),o=g.useRef(null),l=Zh(r),c=g.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return g.useEffect(()=>()=>c(),[c]),mt(()=>{var u;const d=l().find(h=>h.ref.current===document.activeElement);(u=d==null?void 0:d.ref.current)==null||u.scrollIntoView({block:"nearest"})},[l]),a.jsx(de.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:le(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:le(s.onPointerMove,()=>{var d;(d=i.onItemLeave)==null||d.call(i),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:le(s.onPointerLeave,()=>{c()})})}),I8="SelectSeparator",$2=g.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return a.jsx(de.div,{"aria-hidden":!0,...n,ref:t})});$2.displayName=I8;var Qp="SelectArrow",O8=g.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,s=Yh(r),i=ha(Qp,r),o=fa(Qp,r);return i.open&&o.position==="popper"?a.jsx(NN,{...s,...n,ref:t}):null});O8.displayName=Qp;var M8="SelectBubbleInput",F2=g.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const s=g.useRef(null),i=Pe(n,s),o=Rx(t);return g.useEffect(()=>{const l=s.current;if(!l)return;const c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&u){const h=new Event("change",{bubbles:!0});u.call(l,t),l.dispatchEvent(h)}},[o,t]),a.jsx(de.select,{...r,style:{...c1,...r.style},ref:i,defaultValue:t})});F2.displayName=M8;function U2(e){return e===""||e===void 0}function z2(e){const t=Nt(e),r=g.useRef(""),n=g.useRef(0),s=g.useCallback(o=>{const l=r.current+o;t(l),function c(d){r.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),i=g.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,s,i]}function B2(e,t,r){const s=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let o=D8(e,Math.max(i,0));s.length===1&&(o=o.filter(d=>d!==r));const c=o.find(d=>d.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==r?c:void 0}function D8(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var L8=p2,V2=x2,$8=y2,F8=b2,U8=w2,H2=j2,z8=_2,W2=E2,q2=P2,B8=R2,V8=O2,G2=M2,K2=D2,Z2=$2;const Qt=L8,Xt=$8,Ft=g.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(V2,{ref:n,className:X("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
629ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,a.jsx(F8,{asChild:!0,children:a.jsx(Jg,{className:"h-4 w-4 opacity-50"})})]}));Ft.displayName=V2.displayName;const Y2=g.forwardRef(({className:e,...t},r)=>a.jsx(G2,{ref:r,className:X("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(ET,{className:"h-4 w-4"})}));Y2.displayName=G2.displayName;const J2=g.forwardRef(({className:e,...t},r)=>a.jsx(K2,{ref:r,className:X("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(Jg,{className:"h-4 w-4"})}));J2.displayName=K2.displayName;const Ut=g.forwardRef(({className:e,children:t,position:r="popper",...n},s)=>a.jsx(U8,{children:a.jsxs(H2,{ref:s,className:X("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[a.jsx(Y2,{}),a.jsx(z8,{className:X("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(J2,{})]})}));Ut.displayName=H2.displayName;const H8=g.forwardRef(({className:e,...t},r)=>a.jsx(W2,{ref:r,className:X("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));H8.displayName=W2.displayName;const ht=g.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(q2,{ref:n,className:X("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(V8,{children:a.jsx(kc,{className:"h-4 w-4"})})}),a.jsx(B8,{children:t})]}));ht.displayName=q2.displayName;const W8=g.forwardRef(({className:e,...t},r)=>a.jsx(Z2,{ref:r,className:X("-mx-1 my-1 h-px bg-muted",e),...t}));W8.displayName=Z2.displayName;const q8=({data:e,onChange:t})=>{const r=(n,s)=>{t({...e,[n]:s})};return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[a.jsx("div",{className:"p-3 rounded-lg bg-primary/10",children:a.jsx(I1,{className:"w-6 h-6 text-primary"})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-semibold",children:"Core Business Details"}),a.jsx("p",{className:"text-muted-foreground",children:"Tell us about your business"})]})]}),a.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[a.jsxs("div",{className:"space-y-2 md:col-span-2",children:[a.jsx(ve,{htmlFor:"legalName",children:"Legal Business Name"}),a.jsx(ft,{id:"legalName",placeholder:"Enter your legal business name",value:e.legalName,onChange:n=>r("legalName",n.target.value)})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Industry"}),a.jsxs(Qt,{value:e.industry,onValueChange:n=>r("industry",n),children:[a.jsx(Ft,{children:a.jsx(Xt,{placeholder:"Select industry"})}),a.jsx(Ut,{children:c8.map(n=>a.jsx(ht,{value:n,children:n},n))})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Business Model"}),a.jsxs(Qt,{value:e.businessModel,onValueChange:n=>r("businessModel",n),children:[a.jsx(Ft,{children:a.jsx(Xt,{placeholder:"Select model"})}),a.jsx(Ut,{children:d8.map(n=>a.jsx(ht,{value:n,children:n},n))})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Revenue Model"}),a.jsxs(Qt,{value:e.revenueModel,onValueChange:n=>r("revenueModel",n),children:[a.jsx(Ft,{children:a.jsx(Xt,{placeholder:"Select revenue model"})}),a.jsx(Ut,{children:u8.map(n=>a.jsx(ht,{value:n,children:n},n))})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{htmlFor:"locations",children:"Number of Locations"}),a.jsx(ft,{id:"locations",type:"number",min:1,value:e.numberOfLocations,onChange:n=>r("numberOfLocations",parseInt(n.target.value)||1)})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Time Zone"}),a.jsxs(Qt,{value:e.timeZone,onValueChange:n=>r("timeZone",n),children:[a.jsx(Ft,{children:a.jsx(Xt,{placeholder:"Select timezone"})}),a.jsx(Ut,{children:h8.map(n=>a.jsx(ht,{value:n,children:n.replace("_"," ")},n))})]})]})]})]})},G8=["Increase Revenue","Reduce Costs","Improve Cash Flow","Scale Operations","Enhance Customer Experience","Expand Market Reach","Optimize Workforce","Digital Transformation"],K8=["Cash Flow Management","Customer Acquisition","Operational Efficiency","Staff Turnover","Supply Chain Issues","Competition","Regulatory Compliance","Technology Gaps"],Z8=["Launc
629h New Product/Service","Open New Location","Hire Key Talent","Implement New Systems","Raise Capital","Reduce Overhead","Improve Marketing","Automate Processes"],Y8=({data:e,onChange:t})=>{const r=(n,s)=>{const i=e[n],o=i.includes(s)?i.filter(l=>l!==s):[...i,s];t({...e,[n]:o})};return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[a.jsx("div",{className:"p-3 rounded-lg bg-primary/10",children:a.jsx(yo,{className:"w-6 h-6 text-primary"})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-semibold",children:"Business Objectives"}),a.jsx("p",{className:"text-muted-foreground",children:"Define your goals and priorities"})]})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"space-y-3",children:[a.jsx(ve,{className:"text-base",children:"Primary Goals (Select all that apply)"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:G8.map(n=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Ot,{id:`goal-${n}`,checked:e.primaryGoals.includes(n),onCheckedChange:()=>r("primaryGoals",n)}),a.jsx("label",{htmlFor:`goal-${n}`,className:"text-sm cursor-pointer",children:n})]},n))})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx(ve,{className:"text-base",children:"Top Concerns (Select up to 3)"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:K8.map(n=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Ot,{id:`concern-${n}`,checked:e.topConcerns.includes(n),disabled:e.topConcerns.length>=3&&!e.topConcerns.includes(n),onCheckedChange:()=>r("topConcerns",n)}),a.jsx("label",{htmlFor:`concern-${n}`,className:"text-sm cursor-pointer",children:n})]},n))})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx(ve,{className:"text-base",children:"Near-term Priorities (Next 6-12 months)"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:Z8.map(n=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Ot,{id:`priority-${n}`,checked:e.nearTermPriorities.includes(n),onCheckedChange:()=>r("nearTermPriorities",n)}),a.jsx("label",{htmlFor:`priority-${n}`,className:"text-sm cursor-pointer",children:n})]},n))})]}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Risk Tolerance"}),a.jsxs(Qt,{value:e.riskTolerance,onValueChange:n=>t({...e,riskTolerance:n}
629),children:[a.jsx(Ft,{children:a.jsx(Xt,{placeholder:"Select risk tolerance"})}),a.jsxs(Ut,{children:[a.jsx(ht,{value:"conservative",children:"Conservative"}),a.jsx(ht,{value:"moderate",children:"Moderate"}),a.jsx(ht,{value:"aggressive",children:"Aggressive"})]})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Growth Stage"}),a.jsxs(Qt,{value:e.growthStage,onValueChange:n=>t({...e,growthStage:n}),children:[a.jsx(Ft,{children:a.jsx(Xt,{placeholder:"Select growth stage"})}),a.jsxs(Ut,{children:[a.jsx(ht,{value:"startup",children:"Startup"}),a.jsx(ht,{value:"growth",children:"Growth"}),a.jsx(ht,{value:"mature",children:"Mature"}),a.jsx(ht,{value:"turnaround",children:"Turnaround"})]})]})]})]})]})]})},J8={"financial-health":wn,"revenue-growth":wn,"operations-efficiency":Ec,"inventory-supply":Ac,"customer-experience":qr,"risk-compliance":Vt,infrastructure:_l,"custom-domain":z1},Q8=({data:e,onChange:t})=>{const r=n=>{const s=e.selectedAgents,i=s.includes(n)?s.filter(o=>o!==n):[...s,n];t({selectedAgents:i})};return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[a.jsx("div",{className:"p-3 rounded-lg bg-primary/10",children:a.jsx(Vr,{className:"w-6 h-6 text-primary"})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-semibold",children:"AI Agent Selection"}),a.jsx("p",{className:"text-muted-foreground",children:"Choose the AI agents to power your business intelligence"})]})]}),a.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:m2.map(n=>{const s=J8[n.id]||Zs,i=e.selectedAgents.includes(n.id);return a.jsxs(ie,{className:X("cursor-pointer transition-all hover:shadow-md",i&&"ring-2 ring-primary bg-primary/5"),onClick:()=>r(n.id),children:[a.jsx(Ve,{className:"pb-2",children:a.jsxs("div",{className:"flex items-start justify-between",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:X("p-2 rounded-lg",i?"bg-primary text-primary-foreground":"bg-muted"),children:a.jsx(s,{className:"w-5 h-5"})}),a.jsx(He,{className:"text-base",children:n.name})]}),a.jsx(Ot,{checked:i,onCheckedChange:()=>r(n.id),onClick:o=>o.stopPropagation()})]})}),a.jsx(Me,{children:a.jsx(Et,{children:n.description})})]},n.id)})}),a.jsx("p",{className:"text-sm text-muted-foreground text-center",children:"Select the agents that best match your business needs. You can always adjust this later."})]})},X8=["QuickBooks","Xero","FreshBooks","Sage","Wave","NetSuite","Other","None"],eU=["Plaid Connected","Chase Business","Bank of America","Wells Fargo","Capital One","Other","Manual Entry"],tU=["Gusto","ADP","Paychex","Square Payroll","QuickBooks Payroll","Rippling","Other","None"],rU=["Under $100K","$100K - $500K","$500K - $1M","$1M - $5M","$5M - $10M","$10M - $50M","$50M+","Prefer not to say"],nU=({data:e,onChange:t})=>{const r=(n,s)=>{t({...e,[n]:s})};return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[a.jsx("div",{className:"p-3 rounded-lg bg-primary/10",children:a.jsx(vh,{className:"w-6 h-6 text-primary"})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-semibold",children:"Financial Baseline"}),a.jsx("p",{className:"text-muted-foreground",children:"Connect your financial data sources"})]})]}),a.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Accounting Integration"}),a.jsxs(Qt,{value:e.accountingIntegration,onValueChange:n=>r("accountingIntegration",n),children:[a.jsx(Ft,{children:a.jsx(Xt,{placeholder:"Select platform"})}),a.jsx(Ut,{children:X8.map(n=>a.jsx(ht,{value:n,children:n},n))})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Banking Integration"}),a.jsxs(Qt,{value:e.bankingIntegration,onValueChange:n=>r("bankingIntegration",n),children:[a.jsx(Ft,{children:a.jsx(Xt,{placeholder:"Select platform"})}),a.jsx(Ut,{children:eU.map(n=>a.jsx(ht,{value:n,children:n},n))})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Payroll Integration"}),a.jsxs(Qt,{value:e.payrollIntegration,onValueChange:n=>r("payrollIntegration",n),children:[a.jsx(Ft,{children:a.jsx(Xt,{placeholder:"Select platform"})}),a.jsx(Ut,{children:tU.map(n=>a.jsx(ht,{value:n,children:n},n))})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Annual Revenue"}),a.jsxs(Qt,{value:e.annualRevenue,onValueChange:n=>r("annualRevenue",n),children:[a.jsx(Ft,{children:a.jsx(Xt,{placeholder:"Select range"})}),a.jsx(Ut,{children:rU.map(n=>a.jsx(ht,{value:n,children:n},n))})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{htmlFor:"burnRate",children:"Monthly Burn Rate (Optional)"}),a.jsx(ft,{id:"burnRate",placeholder:"e.g., $50,000",value:e.monthlyBurnRate,onChange:n=>r("monthlyBurnRate",n.target.value)})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{htmlFor:"profitMargin",children:"Profit Margin % (Optional)"}),a.jsx(ft,{id:"profitMargin",placeholder:"e.g., 15%",value:e.profitMargin,onChange:n=>r("profitMargin",n.target.value)})]})]}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"This information helps our AI agents provide more accurate financial insights and recommendations."})]})},sU=["Salesforce","HubSpot","Pipedrive","Zoho CRM","Monday CRM","Freshsales","Other","None"],aU=["Stripe","Square","PayPal","Chargebee","Recurly","QuickBooks Invoicing","Other","None"],iU=({data:e,onChange:t})=>{const r=(n,s)=>{t({...e,[n]:s})};return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[a.jsx("div",{className:"p-3 rounded-lg bg-primary/10",children:a.jsx(vo,{className:"w-6 h-6 text-primary"})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-semibold",children:"Revenue & Customer Signals"}),a.jsx("p",{className:"text-muted-foreground",children:"Connect your sales and customer data"})]})]}),a.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"CRM Platform"}),a.jsxs(Qt,{value:e.crmPlatform,onValueChange:n=>r("crmPlatform",n),children:[a.jsx(Ft,{children:a.jsx(Xt,{placeholder:"Select CRM"})}),a.jsx(Ut,{children:sU.map(n=>a.jsx(ht,{value:n,children:n},n))})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Billing Platform"}),a.jsxs(Qt,{value:e.billingPlatform,onValueChange:n=>r("billingPlatform",n),children:[a.jsx(Ft,{children:a.jsx(Xt,{placeholder:"Select billing platform"})}),a.jsx(Ut,{children:aU.map(n=>a.jsx(ht,{value:n,children:n},n))})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{htmlFor:"aov",children:"Average Order Value (Optional)"}),a.jsx(ft,{id:"aov",placeholder:"e.g., $150",value:e.averageOrderValue,onChange:n=>r("averageOrderValue",n.target.value)})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{htmlFor:"cac",children:"Customer Acquisition Cost (Optional)"}),a.jsx(ft,{id:"cac",placeholder:"e.g., $50",value:e.customerAcquisitionCost,onChange:n=>r("customerAcquisitionCost",n.target.value)})]}),a.jsxs("div",{className:"space-y-2 md:col-span-2",children:[a.jsx(ve,{htmlFor:"ltv",children:"Customer Lifetime Value (Optional)"}),a.jsx(ft,{id:"ltv",placeholder:"e.g., $2,500",value:e.lifetimeValue,onChange:n=>r("lifetimeValue",n.target.value)})]})]}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Revenue signals help optimize sales strategies and customer retention recommendations."})]})},oU=["Deputy","When I Work","Homebase","7shifts","Sling","ADP Workforce","Other","None"],lU=["Morning (6am-10am)","Late Morning (10am-12pm)","Lunc
629h (12pm-2pm)","Afternoon (2pm-5pm)","Evening (5pm-8pm)","Night (8pm-12am)","Late Night (12am-6am)"],cU=["High turnover","Scheduling conflicts","Skills gaps","Overtime costs","Seasonal fluctuations","Training needs","Labor law compliance","Remote workforce management"],dU=({data:e,onChange:t})=>{const r=(s,i)=>{t({...e,[s]:i})},n=(s,i)=>{const o=e[s],l=o.includes(i)?o.filter(c=>c!==i):[...o,i];r(s,l)};return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[a.jsx("div",{className:"p-3 rounded-lg bg-primary/10",children:a.jsx(Ys,{className:"w-6 h-6 text-primary"})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-semibold",children:"Operations & Capacity"}),a.jsx("p",{className:"text-muted-foreground",children:"Tell us about your labor and operations"})]})]}),a.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Labor Management System"}),a.jsxs(Qt,{value:e.laborManagementSystem,onValueChange:s=>r("laborManagementSystem",s),children:[a.jsx(Ft,{children:a.jsx(Xt,{placeholder:"Select system"})}),a.jsx(Ut,{children:oU.map(s=>a.jsx(ht,{value:s,children:s},s))})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{htmlFor:"capacity",children:"Capacity Utilization % (Optional)"}),a.jsx(ft,{id:"capacity",placeholder:"e.g., 75%",value:e.capacityUtilization,onChange:s=>r("capacityUtilization",s.target.value)})]})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx(ve,{className:"text-base",children:"Peak Operating Hours"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:lU.map(s=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Ot,{id:`hour-${s}`,checked:e.peakHours.includes(s),onCheckedChange:()=>n("peakHours",s)}),a.jsx("label",{htmlFor:`hour-${s}`,className:"text-sm cursor-pointer",children:s})]},s))})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx(ve,{className:"text-base",children:"Staffing Challenges (Select all that apply)"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:cU.map(s=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Ot,{id:`challenge-${s}`,checked:e.staffingChallenges.includes(s),onCheckedChange:()=>n("staffingChallenges",s)}),a.jsx("label",{htmlFor:`challenge-${s}`,className:"text-sm cursor-pointer",children:s})]},s))})]})]})},uU=["Shopify","Square Inventory","Lightspeed","inFlow","Sortly","Cin7","TradeGecko","Other","None/Manual"],hU=["Raw Materials","Finished Goods","Equipment/Supplies","Technology/Software","Professional Services","Logistics/Shipping","Marketing/Advertising","Utilities"],fU=["Single-source suppliers","International imports","Perishable goods","Custom/Made-to-order items","Seasonal availability","Long lead times","Minimum order quantities","Exclusive contracts"],mU=({data:e,onChange:t})=>{const r=(s,i)=>{t({...e,[s]:i})},n=(s,i)=>{const o=e[s],l=o.includes(i)?o.filter(c=>c!==i):[...o,i];r(s,l)};return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[a.jsx("div",{className:"p-3 rounded-lg bg-primary/10",children:a.jsx(Ac,{className:"w-6 h-6 text-primary"})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-semibold",children:"Inventory & Vendors"}),a.jsx("p",{className:"text-muted-foreground",children:"Describe your supply chain"})]})]}),a.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Inventory Management System"}),a.jsxs(Qt,{value:e.inventorySystem,onValueChange:s=>r("inventorySystem",s),children:[a.jsx(Ft,{children:a.jsx(Xt,{placeholder:"Select system"})}),a.jsx(Ut,{children:uU.map(s=>a.jsx(ht,{value:s,children:s},s))})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{htmlFor:"leadTime",children:"Average Lead Time (Days)"}),a.jsx(ft,{id:"leadTime",type:"number",min:1,value:e.leadTimeDays,onChange:s=>r("leadTimeDays",parseInt(s.target.value)||7)})]})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx(ve,{className:"text-base",children:"Primary Vendor Categories"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:hU.map(s=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Ot,{id:`vendor-${s}`,checked:e.primaryVendors.includes(s),onCheckedChange:()=>n("primaryVendors",s)}),a.jsx("label",{htmlFor:`vendor-${s}`,className:"text-sm cursor-pointer",children:s})]},s))})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx(ve,{className:"text-base",children:"Critical Dependencies"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:fU.map(s=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Ot,{id:`dep-${s}`,checked:e.criticalDependencies.includes(s),onCheckedChange:()=>n("criticalDependencies",s)}),a.jsx("label",{htmlFor:`dep-${s}`,className:"text-sm cursor-pointer",children:s})]},s))})]})]})},pU=["Square","Toast","Clover","Shopify POS","Lightspeed","Revel","TouchBistro","Other","None"],gU=["Shopify","WooCommerce","BigCommerce","Squarespace","Wix","Magento","Custom Built","None"],xU=["Mailchimp","HubSpot Marketing","Klaviyo","Constant Contact","Google Ads","Meta Ads","Hootsuite","Buffer"],vU=["Slack","Microsoft Teams","Discord","Zoom","Google Meet","Intercom","Zendesk","Freshdesk"],yU=["Project Management (Asana, Monday)","Document Management (Google, Microsoft)","Design Tools (Figma, Canva)","Analytics (Google Analytics, Mixpanel)","Business Intelligence (Tableau, Looker)","Automation (Zapier, Make)","Customer Feedback (SurveyMonkey, Typeform)","Scheduling (Calendly, Acuity)"],bU=({data:e,onChange:t})=>{const r=(s,i)=>{t({...e,[s]:i})},n=(s,i)=>{const o=e[s],l=o.includes(i)?o.filter(c=>c!==i):[...o,i];r(s,l)};return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[a.jsx("div",{className:"p-3 rounded-lg bg-primary/10",children:a.jsx(ex,{className:"w-6 h-6 text-primary"})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-semibold",children:"Systems & Tools"}),a.jsx("p",{className:"text-muted-foreground",children:"Map your technology landscape"})]})]}),a.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"Point of Sale System"}),a.jsxs(Qt,{value:e.pointOfSale,onValueChange:s=>r("pointOfSale",s),children:[a.jsx(Ft,{children:a.jsx(Xt,{placeholder:"Select POS"})}),a.jsx(Ut,{children:pU.map(s=>a.jsx(ht,{value:s,children:s},s))})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ve,{children:"E-commerce Platform"}
629),a.jsxs(Qt,{value:e.ecommercePlatform,onValueChange:s=>r("ecommercePlatform",s),children:[a.jsx(Ft,{children:a.jsx(Xt,{placeholder:"Select platform"})}),a.jsx(Ut,{children:gU.map(s=>a.jsx(ht,{value:s,children:s},s))})]})]})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx(ve,{className:"text-base",children:"Marketing Tools"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:xU.map(s=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Ot,{id:`marketing-${s}`,checked:e.marketingTools.includes(s),onCheckedChange:()=>n("marketingTools",s)}),a.jsx("label",{htmlFor:`marketing-${s}`,className:"text-sm cursor-pointer",children:s})]},s))})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx(ve,{className:"text-base",children:"Communication Tools"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:vU.map(s=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Ot,{id:`comm-${s}`,checked:e.communicationTools.includes(s),onCheckedChange:()=>n("communicationTools",s)}),a.jsx("label",{htmlFor:`comm-${s}`,className:"text-sm cursor-pointer",children:s})]},s))})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx(ve,{className:"text-base",children:"Other Systems"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:yU.map(s=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Ot,{id:`other-${s}`,checked:e.otherSystems.includes(s),onCheckedChange:()=>n("otherSystems",s)}),a.jsx("label",{htmlFor:`other-${s}`,className:"text-sm cursor-pointer",children:s})]},s))})]})]})},wU=["FDA (Food & Drug)","HIPAA (Healthcare)","PCI-DSS (Payment Card)","SOX (Financial)","OSHA (Workplace Safety)","EPA (Environmental)","FTC (Consumer Protection)","State-specific licenses"],jU=["GDPR (EU)","CCPA (California)","COPPA (Children's Privacy)","HIPAA Privacy Rule","State Privacy Laws","Customer Consent Management","Data Retention Policies","Cross-border Data Transfer"],NU=["Tax Compliance","Audit Requirements","Financial Reporting Standards","Anti-Money Laundering (AML)","Know Your Customer (KYC)","Credit/Loan Regulations","Insurance Requirements","Franchise Disclosure"],SU=["Union Labor Requirements","Minimum Wage Laws","Overtime Regulations","Benefits Requirements","Licensing Restrictions","Operating Hour Limits","Zoning Restrictions","Environmental Impact Rules"],kU=({data:e,onChange:t})=>{const r=(n,s)=>{const i=e[n],o=i.includes(s)?i.filter(l=>l!==s):[...i,s];t({...e,[n]:o})};return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[a.jsx("div",{className:"p-3 rounded-lg bg-primary/10",children:a.jsx(Vt,{className:"w-6 h-6 text-primary"})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-semibold",children:"Compliance & Constraints"}),a.jsx("p",{className:"text-muted-foreground",children:"Define your regulatory and operational boundaries"})]})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"space-y-3",children:[a.jsx(ve,{className:"text-base",children:"Industry Regulations (Select all that apply)"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:wU.map(n=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Ot,{id:`reg-${n}`,checked:e.industryRegulations.includes(n),onCheckedChange:()=>r("industryRegulations",n)}),a.jsx("label",{htmlFor:`reg-${n}`,className:"text-sm cursor-pointer",children:n})]},n))})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx(ve,{className:"text-base",children:"Data Privacy Requirements"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:jU.map(n=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Ot,{id:`privacy-${n}`,checked:e.dataPrivacyRequirements.includes(n),onCheckedChange:()=>r("dataPrivacyRequirements",n)}),a.jsx("label",{htmlFor:`privacy-${n}`,className:"text-sm cursor-pointer",children:n})]},n))})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx(ve,{className:"text-base",children:"Financial Compliance"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:NU.map(n=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Ot,{id:`fin-${n}`,checked:e.financialCompliance.includes(n),onCheckedChange:()=>r("financialCompliance",n)}),a.jsx("label",{htmlFor:`fin-${n}`,className:"text-sm cursor-pointer",children:n})]},n))})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx(ve,{className:"text-base",children:"Operational Constraints"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:SU.map(n=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Ot,{id:`op-${n}`,checked:e.operationalConstraints.includes(n),onCheckedChange:()=>r("operationalConstraints",n)}),a.jsx("label",{htmlFor:`op-${n}`,className:"text-sm cursor-pointer",children:n})]},n))})]})]}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Understanding your compliance requirements helps our AI agents provide recommendations within your regulatory boundaries."})]})},_U=()=>{const e=Rc(),{data:t,updateData:r,currentStep:n,setCurrentStep:s,nextStep:i,prevStep:o,loading:l,saving:c,completeOnboarding:d,isComplete:u}=m8();g.useEffect(()=>{(async()=>{const{data:{user:b}}=await Jt.auth.getUser();b||e("/auth")})()},[e]),g.useEffect(()=>{u&&!l&&e("/")},[u,l,e]);const h=async()=>{await d()&&e("/")};if(l)return a.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:a.jsx(Js,{className:"w-8 h-8 animate-spin text-primary"})});const f=()=>{switch(n){case 1:return a.jsx(q8,{data:t.coreDetails,onChange:m=>r("coreDetails",m)});case 2:return a.jsx(Y8,{data:t.businessObjectives,onChange:m=>r("businessObjectives",m)});case 3:return a.jsx(Q8,{data:t.agentSelection,onChange:m=>r("agentSelection",m)});case 4:return a.jsx(nU,{data:t.financialBaseline,onChange:m=>r("financialBaseline",m)});case 5:return a.jsx(iU,{data:t.revenueSignals,onChange:m=>r("revenueSignals",m)});case 6:return a.jsx(dU,{data:t.operationsSignals,onChange:m=>r("operationsSignals",m)});case 7:return a.jsx(mU,{data:t.inventoryVendors,onChange:m=>r("inventoryVendors",m)});
629case 8:return a.jsx(bU,{data:t.systemsLandscape,onChange:m=>r("systemsLandscape",m)});case 9:return a.jsx(kU,{data:t.complianceConstraints,onChange:m=>r("complianceConstraints",m)});default:return null}};return a.jsx("div",{className:"min-h-screen bg-gradient-to-b from-background to-muted/30",children:a.jsxs("div",{className:"container max-w-4xl mx-auto px-4 py-8",children:[a.jsxs("div",{className:"flex items-center justify-center gap-3 mb-8",children:[a.jsx("img",{src:$o,alt:"Aristle AI",className:"h-10 w-10"}),a.jsx("h1",{className:"text-2xl font-bold",children:"Welcome to Aristle AI"})]}),a.jsx(p8,{currentStep:n,onStepClick:s}),a.jsx(ie,{className:"mt-6",children:a.jsx(Me,{className:"p-6 md:p-8",children:f()})}),a.jsxs("div",{className:"flex justify-between items-center mt-6",children:[a.jsxs(se,{variant:"outline",onClick:o,disabled:n===1||c,children:[a.jsx(da,{className:"w-4 h-4 mr-2"}),"Previous"]}),n===9?a.jsxs(se,{onClick:h,disabled:c,children:[c?a.jsx(Js,{className:"w-4 h-4 mr-2 animate-spin"}):a.jsx(kc,{className:"w-4 h-4 mr-2"}),"Complete Setup"]}):a.jsxs(se,{onClick:i,disabled:c,children:[c&&a.jsx(Js,{className:"w-4 h-4 mr-2 animate-spin"}),"Next",a.jsx(tt,{className:"w-4 h-4 ml-2"})]})]}),a.jsx("div",{className:"text-center mt-4",children:a.jsx("button",{onClick:()=>e("/"),className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Skip for now (you can complete this later)"})})]})})},CU={active:"bg-green-500",idle:"bg-muted-foreground",warning:"bg-yellow-500",error:"bg-destructive"},AU={active:"Active",idle:"Idle",warning:"Attention",error:"Error"},EU=({name:e,description:t,isSelected:r,onClick:n,status:s,signalsCount:i,lastActivity:o})=>a.jsxs(ie,{className:X("cursor-pointer transition-all hover:shadow-md",r&&"ring-2 ring-primary bg-primary/5"),onClick:n,children:[a.jsx(Ve,{className:"p-3 pb-2",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx(He,{className:"text-sm font-medium truncate pr-2",children:e}),a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx("div",{className:X("w-2 h-2 rounded-full",CU[s])}),a.jsx("span",{className:"text-xs text-muted-foreground",children:AU[s]})]})]})}),a.jsxs(Me,{className:"p-3 pt-0 space-y-2",children:[a.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:t}),a.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[a.jsxs("div",{className:"flex items-center gap-1 text-muted-foreground",children:[a.jsx(GT,{className:"w-3 h-3"}),a.jsxs("span",{children:[i," signals"]})]}),a.jsxs("div",{className:"flex items-center gap-1 text-muted-foreground",children:[a.jsx(Er,{className:"w-3 h-3"}),a.jsx("span",{children:o})]})]})]})]}),Pb=e=>({"financial-health":{status:"active",signalsCount:24,lastActivity:"2m ago"},"revenue-growth":{status:"active",signalsCount:18,lastActivity:"5m ago"},"operations-efficiency":{status:"warning",signalsCount:12,lastActivity:"1m ago"},"inventory-supply":{status:"active",signalsCount:8,lastActivity:"10m ago"},"customer-experience":{status:"idle",signalsCount:15,lastActivity:"30m ago"},"risk-compliance":{status:"active",signalsCount:6,lastActivity:"15m ago"},infrastructure:{status:"error",signalsCount:3,lastActivity:"Just now"},"custom-domain":{status:"idle",signalsCount:0,lastActivity:"Never"}})[e]||{status:"idle",signalsCount:0,lastActivity:"Unknown"},TU=({selectedAgentIds:e,onAgentSelect:t})=>{const[r,n]=g.useState(!1),s=m2.filter(i=>e.includes(i.id));return a.jsxs("div",{className:X("border-r bg-muted/30 transition-all duration-300 flex flex-col",r?"w-14":"w-80"),children:[a.jsxs("div",{className:"p-3 border-b flex items-center justify-between",children:[!r&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Vr,{className:"w-5 h-5 text-primary"}),a.jsx("h2",{className:"font-semibold text-sm",children:"AI Agents"})]}),a.jsx(se,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>n(!r),children:r?a.jsx(vu,{className:"w-4 h-4"}):a.jsx(AT,{className:"w-4 h-4"})})]}),r?a.jsx("div",{className:"flex flex-col items-center gap-2 p-2",children:s.map(i=>{const{status:o}
629=Pb(i.id),l={active:"bg-green-500",idle:"bg-muted-foreground",warning:"bg-yellow-500",error:"bg-destructive"};return a.jsxs("div",{className:"w-10 h-10 rounded-lg bg-background flex items-center justify-center cursor-pointer hover:bg-muted transition-colors relative",title:i.name,children:[a.jsx(Vr,{className:"w-5 h-5 text-muted-foreground"}),a.jsx("div",{className:X("absolute bottom-1 right-1 w-2 h-2 rounded-full",l[o])})]},i.id)})}):a.jsx(Vc,{className:"flex-1",children:a.jsx("div",{className:"p-3 space-y-2",children:s.length===0?a.jsx("p",{className:"text-sm text-muted-foreground text-center py-4",children:"No agents selected during onboarding."}):s.map(i=>{const o=Pb(i.id);return a.jsx(EU,{id:i.id,name:i.name,description:i.description,isSelected:!1,onClick:()=>t(i.id),status:o.status,signalsCount:o.signalsCount,lastActivity:o.lastActivity},i.id)})})})]})},Rb=[{id:"1",type:"critical",title:"Cash Flow Alert",message:"Projected cash balance will drop below threshold in 5 days based on current burn rate.",timestamp:"2 min ago",agentSource:"Financial Health"},{id:"2",type:"warning",title:"Inventory Low",message:"3 SKUs are below reorder point. Recommended PO needed within 48 hours.",timestamp:"15 min ago",agentSource:"Inventory & Supply Chain"},{id:"3",type:"warning",title:"Server Response Degradation",message:"API latency increased by 40% in the last hour. Investigating root cause.",timestamp:"23 min ago",agentSource:"Infrastructure Reliability"},{id:"4",type:"info",title:"Revenue Milestone",message:"Monthly recurring revenue on track to exceed last month by 12%.",timestamp:"1 hour ago",agentSource:"Revenue & Growth"},{id:"5",type:"success",title:"Compliance Check Passed",message:"All quarterly compliance requirements have been met and documented.",timestamp:"3 hours ago",agentSource:"Risk & Compliance"}],PU={critical:{icon:TT,bg:"bg-destructive/10",border:"border-destructive/30",iconColor:"text-destructive"},warning:{icon:Ln,bg:"bg-yellow-500/10",border:"border-yellow-500/30",iconColor:"text-yellow-600"},info:{icon:$T,bg:"bg-blue-500/10",border:"border-blue-500/30",iconColor:"text-blue-600"},success:{icon:O1,bg:"bg-green-500/10",border:"border-green-500/30",iconColor:"text-green-600"}},RU=()=>a.jsxs(ie,{children:[a.jsx(Ve,{className:"pb-3",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx(He,{className:"text-lg",children:"Business Alerts"}),a.jsxs(Ae,{variant:"secondary",children:[Rb.length," Active"]})]})}),a.jsx(Me,{className:"space-y-3",children:Rb.map(e=>{const t=PU[e.type],r=t.icon;return a.jsx("div",{className:X("p-3 rounded-lg border",t.bg,t.border),children:a.jsxs("div",{className:"flex gap-3",children:[a.jsx(r,{className:X("w-5 h-5 mt-0.5 flex-shrink-0",t.iconColor)}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-start justify-between gap-2",children:[a.jsx("h4",{className:"font-medium text-sm",children:e.title}),a.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:e.timestamp})]}),a.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:e.message}),a.jsx(Ae,{variant:"outline",className:"mt-2 text-xs",children:e.agentSource})]})]})},e.id)})})]}),wi=({icon:e,label:t,value:r,change:n,changeType:s,progress:i})=>a.jsx("div",{className:"p-4 rounded-lg border bg-card",children:a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"p-2 rounded-md bg-primary/10",children:a.jsx(e,{className:"w-4 h-4 text-primary"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-xs text-muted-foreground truncate",children:t}),a.jsxs("div",{className:"flex items-baseline gap-2",children:[a.jsx("span",{className:"text-lg font-semibold",children:r}),n&&a.jsx("span",{className:`text-xs ${s==="positive"?"text-green-600":s==="negative"?"text-destructive":"text-muted-foreground"}`,children:n})]}),i!==void 0&&a.jsx(Gu,{value:i,className:"mt-2 h-1.5"})]})]})}),IU=()=>a.jsxs(ie,{children:[a.jsx(Ve,{className:"pb-3",children:a.jsx(He,{className:"text-lg",children:"Business Operations"})}),a.jsx(Me,{children:a.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:[a.jsx(wi,{icon:qr,label:"Staff On Shift",value:"18/22",change:"82% capacity",changeType:"neutral",progress:82}),a.jsx(wi,{icon:Ys,label:"Avg Response Time",value:"2.4 min",change:"-15%",changeType:"positive"}),a.jsx(wi,{icon:yo,label:"Daily Goal Progress",value:"$12,450",change:"78% of target",changeType:"neutral",progress:78}),a.jsx(wi,{icon:Ac,label:"Orders Fulfilled",value:"156",change:"+23 today",changeType:"positive"}),a.jsx(wi,{icon:vh,label:"Avg Order Value",value:"$89.50",change:"+8%",changeType:"positive"}),a.jsx(wi,{icon:wn,label:"Efficiency Score",value:"94%",change:"+2 pts",changeType:"positive",progress:94})]})})]}),Ib=[{id:"1",category:"opportunity",title:"Upsell Opportunity Detected",description:"35% of customers who purchased Product A also show interest in Product B. Consider bundling recommendation.",impact:"high",agentSource:"Revenue & Growth"},{id:"2",category:"optimization",title:"Schedule Optimization",description:"Shifting lunch staff by 30 minutes could reduce wait times by 18% during peak hours.",impact:"medium",agentSource:"Operations & Efficiency"},{id:"3",category:"risk",title:"Vendor Dependency Risk",description:"Single-source supplier for 3 critical items. Recommend identifying backup vendors.",impact:"high",agentSource:"Risk &
629Compliance"},{id:"4",category:"growth",title:"Customer Retention Pattern",description:"Customers who engage within 7 days of signup have 3x higher LTV. Consider early engagement campaign.",impact:"high",agentSource:"Customer Experience"}],OU={opportunity:{icon:wn,color:"text-green-600",bg:"bg-green-500/10"},risk:{icon:Vt,color:"text-orange-600",bg:"bg-orange-500/10"},optimization:{icon:Ga,color:"text-blue-600",bg:"bg-blue-500/10"},growth:{icon:qr,color:"text-purple-600",bg:"bg-purple-500/10"}},MU={high:"bg-destructive text-destructive-foreground",medium:"bg-yellow-500 text-white",low:"bg-muted text-muted-foreground"},DU=()=>a.jsxs(ie,{children:[a.jsx(Ve,{className:"pb-3",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(tx,{className:"w-5 h-5 text-primary"}),a.jsx(He,{className:"text-lg",children:"Business Insights"})]}),a.jsxs(Ae,{variant:"outline",children:[Ib.length," New"]})]})}),a.jsx(Me,{className:"space-y-3",children:Ib.map(e=>{const t=OU[e.category],r=t.icon;return a.jsx("div",{className:"p-4 rounded-lg border bg-card hover:shadow-sm transition-shadow",children:a.jsxs("div",{className:"flex gap-3",children:[a.jsx("div",{className:`p-2 rounded-md ${t.bg} h-fit`,children:a.jsx(r,{className:`w-4 h-4 ${t.color}`})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-start justify-between gap-2 mb-1",children:[a.jsx("h4",{className:"font-medium text-sm",children:e.title}),a.jsxs(Ae,{className:MU[e.impact],variant:"secondary",children:[e.impact," impact"]})]}),a.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:e.description}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx(Ae,{variant:"outline",className:"text-xs",children:e.agentSource}),a.jsxs(se,{variant:"ghost",size:"sm",className:"h-7 text-xs",children:["View Details",a.jsx(tt,{className:"w-3 h-3 ml-1"})]})]})]})]})},e.id)})})]}),LU=()=>{const e=Rc(),[t,r]=g.useState(!0),[n,s]=g.useState(null),[i,o]=g.useState(null);g.useEffect(()=>{(async()=>{try{const{data:{user:d}}=await Jt.auth.getUser();if(!d){e("/auth");return}const{data:u,error:h}=await Jt.storage.from("business-profiles").download(`${d.id}/onboarding.json`);if(h||!u){e("/onboarding");return}const f=await u.text(),m=JSON.parse(f);if(!m.completedAt){e("/onboarding");return}s(m)}catch(d){console.error("Error loading dashboard:",d),e("/onboarding")}finally{r(!1)}})()},[e]);const l=async()=>{await Jt.auth.signOut(),e("/auth")};return t?a.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:a.jsx(Js,{className:"w-8 h-8 animate-spin text-primary"})}):n?a.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[a.jsxs("header",{className:"h-14 border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 flex items-center justify-between px-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("img",{src:$o,alt:"Aristle AI",className:"h-8 w-8"}),a.jsxs("div",{children:[a.jsx("h1",{className:"font-semibold text-sm",children:n.coreDetails.legalName||"Dashboard"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:n.coreDetails.industry})]})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(se,{variant:"ghost",size:"icon",title:"Settings",children:a.jsx(Ec,{className:"w-4 h-4"})}),a.jsx(se,{variant:"ghost",size:"icon",onClick:l,title:"Logout",children:a.jsx(FT,{className:"w-4 h-4"})})]})]}),a.jsxs("div",{className:"flex-1 flex",children:[a.jsx(TU,{selectedAgentIds:n.agentSelection.selectedAgents,onAgentSelect:o}),a.jsx("main",{className:"flex-1 overflow-auto",children:a.jsxs("div",{className:"p-6 space-y-6 max-w-6xl",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-2xl font-bold",children:"Welcome back"}),a.jsx("p",{className:"text-muted-foreground",children:"Here's what's happening with your business today."})]}),a.jsx(RU,{}),a.jsxs("div",{className:"grid gap-6 lg:grid-cols-2",children:[a.jsx(IU,{}),a.jsx(DU,{})]})]})})]})]}):null},$U=()=>{const e=ai();return g.useEffect(()=>{},[e.pathname]),a.jsxs("div",{className:"flex min-h-screen items-center justify-center bg-background",children:[a.jsx(vr,{title:"Page Not Found (404)",description:"The page you're looking for doesn't exist. Return to Aristle AI homepage to explore our AI solutions for small businesses.",canonicalUrl:"/404",noIndex:!0}),a.jsxs("div",{className:"text-center",children:[a.jsx("h1",{className:"mb-4 text-4xl font-bold text-foreground",children:"404"}),a.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),a.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/80",children:"Return to Home"})]})]})},FU=new wO,UU=()=>a.jsx(rS,{children:a.jsx(NO,{client:FU,children:a.jsxs(JI,{children:[a.jsx(OP,{}),a.jsx(hR,{}),a.jsx(y4,{children:a.jsxs(h4,{children:[a.jsx(yt,{path:"/",element:a.jsx(fD,{})}),a.jsx(yt,{path:"/platform",element:a.jsx(wL,{})}),a.jsx(yt,{path:"/agents",element:a.jsx(o8,{})}),a.jsx(yt,{path:"/pricing",element:a.jsx(jL,{})}),a.jsx(yt,{path:"/about",element:a.jsx(qL,{})}),a.jsx(yt,{path:"/strahut",element:a.jsx(YL,{})}),a.jsx(yt,{path:"/zumie",element:a.jsx(e6,{})}),a.jsx(yt,{path:"/zumie/case-study",element:a.jsx(r6,{})}),a.jsx(yt,{path:"/zumie/novacraft",element:a.jsx(M$,{})}),a.jsx(yt,{path:"/zumie/demo",element:a.jsx(D$,{})}),a.jsx(yt,{path:"/zumie/dev",element:a.jsx(L$,{})}),a.jsx(yt,{path:"/gavrun",element:a.jsx($$,{})}),a.jsx(yt,{path:"/gavrun/restaurants",element:a.jsx(ZF,{})}),a.jsx(yt,{path:"/gavrun/webscraper",element:a.jsx(a8,{})}),a.jsx(yt,{path:"/consultation",element:a.jsx(bL,{})}),a.jsx(yt,{path:"/auth",element:a.jsx(l8,{})}),a.jsx(yt,{path:"/onboarding",element:a.jsx(_U,{})}),a.jsx(yt,{path:"/dashboard",element:a.jsx(LU,{})}),a.jsx(yt,{path:"*",element:a.jsx($U,{})})]})})]})})});t1(document.getElementById("root")).render(a.jsx(UU,{}));
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.