Files
2026-01-20 12:58:28 -08:00

791 lines
764 KiB
JavaScript

var Ym=e=>{throw TypeError(e)};var Du=(e,t,n)=>t.has(e)||Ym("Cannot "+n);var A=(e,t,n)=>(Du(e,t,"read from private field"),n?n.call(e):t.get(e)),ue=(e,t,n)=>t.has(e)?Ym("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),te=(e,t,n,r)=>(Du(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ze=(e,t,n)=>(Du(e,t,"access private method"),n);var Za=(e,t,n,r)=>({set _(i){te(e,t,i,n)},get _(){return A(e,t,r)}});function PS(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _S(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var qv={exports:{}},Kc={},Gv={exports:{}},ie={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ra=Symbol.for("react.element"),AS=Symbol.for("react.portal"),RS=Symbol.for("react.fragment"),IS=Symbol.for("react.strict_mode"),MS=Symbol.for("react.profiler"),OS=Symbol.for("react.provider"),DS=Symbol.for("react.context"),LS=Symbol.for("react.forward_ref"),zS=Symbol.for("react.suspense"),$S=Symbol.for("react.memo"),FS=Symbol.for("react.lazy"),Qm=Symbol.iterator;function VS(e){return e===null||typeof e!="object"?null:(e=Qm&&e[Qm]||e["@@iterator"],typeof e=="function"?e:null)}var Yv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qv=Object.assign,Xv={};function Us(e,t,n){this.props=e,this.context=t,this.refs=Xv,this.updater=n||Yv}Us.prototype.isReactComponent={};Us.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")};Us.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jv(){}Jv.prototype=Us.prototype;function Ff(e,t,n){this.props=e,this.context=t,this.refs=Xv,this.updater=n||Yv}var Vf=Ff.prototype=new Jv;Vf.constructor=Ff;Qv(Vf,Us.prototype);Vf.isPureReactComponent=!0;var Xm=Array.isArray,Zv=Object.prototype.hasOwnProperty,Bf={current:null},ex={key:!0,ref:!0,__self:!0,__source:!0};function tx(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Zv.call(t,r)&&!ex.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Ra,type:e,key:s,ref:o,props:i,_owner:Bf.current}}function BS(e,t){return{$$typeof:Ra,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Uf(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ra}function US(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Jm=/\/+/g;function Lu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?US(""+e.key):t.toString(36)}function Ll(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Ra:case AS:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Lu(o,0):r,Xm(i)?(n="",e!=null&&(n=e.replace(Jm,"$&/")+"/"),Ll(i,t,n,"",function(u){return u})):i!=null&&(Uf(i)&&(i=BS(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Jm,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Xm(e))for(var l=0;l<e.length;l++){s=e[l];var c=r+Lu(s,l);o+=Ll(s,t,n,c,i)}else if(c=VS(e),typeof c=="function")for(e=c.call(e),l=0;!(s=e.next()).done;)s=s.value,c=r+Lu(s,l++),o+=Ll(s,t,n,c,i);else if(s==="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 el(e,t,n){if(e==null)return e;var r=[],i=0;return Ll(e,r,"","",function(s){return t.call(n,s,i++)}),r}function HS(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ft={current:null},zl={transition:null},WS={ReactCurrentDispatcher:ft,ReactCurrentBatchConfig:zl,ReactCurrentOwner:Bf};function nx(){throw Error("act(...) is not supported in production builds of React.")}ie.Children={map:el,forEach:function(e,t,n){el(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return el(e,function(){t++}),t},toArray:function(e){return el(e,function(t){return t})||[]},only:function(e){if(!Uf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ie.Component=Us;ie.Fragment=RS;ie.Profiler=MS;ie.PureComponent=Ff;ie.StrictMode=IS;ie.Suspense=zS;ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=WS;ie.act=nx;ie.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Qv({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Bf.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)Zv.call(t,c)&&!ex.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Ra,type:e.type,key:i,ref:s,props:r,_owner:o}};ie.createContext=function(e){return e={$$typeof:DS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:OS,_context:e},e.Consumer=e};ie.createElement=tx;ie.createFactory=function(e){var t=tx.bind(null,e);return t.type=e,t};ie.createRef=function(){return{current:null}};ie.forwardRef=function(e){return{$$typeof:LS,render:e}};ie.isValidElement=Uf;ie.lazy=function(e){return{$$typeof:FS,_payload:{_status:-1,_result:e},_init:HS}};ie.memo=function(e,t){return{$$typeof:$S,type:e,compare:t===void 0?null:t}};ie.startTransition=function(e){var t=zl.transition;zl.transition={};try{e()}finally{zl.transition=t}};ie.unstable_act=nx;ie.useCallback=function(e,t){return ft.current.useCallback(e,t)};ie.useContext=function(e){return ft.current.useContext(e)};ie.useDebugValue=function(){};ie.useDeferredValue=function(e){return ft.current.useDeferredValue(e)};ie.useEffect=function(e,t){return ft.current.useEffect(e,t)};ie.useId=function(){return ft.current.useId()};ie.useImperativeHandle=function(e,t,n){return ft.current.useImperativeHandle(e,t,n)};ie.useInsertionEffect=function(e,t){return ft.current.useInsertionEffect(e,t)};ie.useLayoutEffect=function(e,t){return ft.current.useLayoutEffect(e,t)};ie.useMemo=function(e,t){return ft.current.useMemo(e,t)};ie.useReducer=function(e,t,n){return ft.current.useReducer(e,t,n)};ie.useRef=function(e){return ft.current.useRef(e)};ie.useState=function(e){return ft.current.useState(e)};ie.useSyncExternalStore=function(e,t,n){return ft.current.useSyncExternalStore(e,t,n)};ie.useTransition=function(){return ft.current.useTransition()};ie.version="18.3.1";Gv.exports=ie;var v=Gv.exports;const T=Kv(v),rx=PS({__proto__:null,default:T},[v]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var KS=v,qS=Symbol.for("react.element"),GS=Symbol.for("react.fragment"),YS=Object.prototype.hasOwnProperty,QS=KS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,XS={key:!0,ref:!0,__self:!0,__source:!0};function ix(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)YS.call(t,r)&&!XS.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:qS,type:e,key:s,ref:o,props:i,_owner:QS.current}}Kc.Fragment=GS;Kc.jsx=ix;Kc.jsxs=ix;qv.exports=Kc;var a=qv.exports,sx={exports:{}},Ot={},ox={exports:{}},ax={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(E,O){var B=E.length;E.push(O);e:for(;0<B;){var V=B-1>>>1,G=E[V];if(0<i(G,O))E[V]=O,E[B]=G,B=V;else break e}}function n(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var O=E[0],B=E.pop();if(B!==O){E[0]=B;e:for(var V=0,G=E.length,Z=G>>>1;V<Z;){var he=2*(V+1)-1,We=E[he],le=he+1,Je=E[le];if(0>i(We,B))le<G&&0>i(Je,We)?(E[V]=Je,E[le]=B,V=le):(E[V]=We,E[he]=B,V=he);else if(le<G&&0>i(Je,B))E[V]=Je,E[le]=B,V=le;else break e}}return O}function i(E,O){var B=E.sortIndex-O.sortIndex;return B!==0?B:E.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,h=null,f=3,p=!1,x=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(E){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=E)r(u),O.sortIndex=O.expirationTime,t(c,O);else break;O=n(u)}}function j(E){if(g=!1,w(E),!x)if(n(c)!==null)x=!0,W(S);else{var O=n(u);O!==null&&F(j,O.startTime-E)}}function S(E,O){x=!1,g&&(g=!1,m(C),C=-1),p=!0;var B=f;try{for(w(O),h=n(c);h!==null&&(!(h.expirationTime>O)||E&&!R());){var V=h.callback;if(typeof V=="function"){h.callback=null,f=h.priorityLevel;var G=V(h.expirationTime<=O);O=e.unstable_now(),typeof G=="function"?h.callback=G:h===n(c)&&r(c),w(O)}else r(c);h=n(c)}if(h!==null)var Z=!0;else{var he=n(u);he!==null&&F(j,he.startTime-O),Z=!1}return Z}finally{h=null,f=B,p=!1}}var N=!1,k=null,C=-1,_=5,I=-1;function R(){return!(e.unstable_now()-I<_)}function z(){if(k!==null){var E=e.unstable_now();I=E;var O=!0;try{O=k(!0,E)}finally{O?H():(N=!1,k=null)}}else N=!1}var H;if(typeof y=="function")H=function(){y(z)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,q=L.port2;L.port1.onmessage=z,H=function(){q.postMessage(null)}}else H=function(){b(z,0)};function W(E){k=E,N||(N=!0,H())}function F(E,O){C=b(function(){E(e.unstable_now())},O)}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(E){E.callback=null},e.unstable_continueExecution=function(){x||p||(x=!0,W(S))},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(E){switch(f){case 1:case 2:case 3:var O=3;break;default:O=f}var B=f;f=O;try{return E()}finally{f=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,O){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var B=f;f=E;try{return O()}finally{f=B}},e.unstable_scheduleCallback=function(E,O,B){var V=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?V+B:V):B=V,E){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=B+G,E={id:d++,callback:O,priorityLevel:E,startTime:B,expirationTime:G,sortIndex:-1},B>V?(E.sortIndex=B,t(u,E),n(c)===null&&E===n(u)&&(g?(m(C),C=-1):g=!0,F(j,B-V))):(E.sortIndex=G,t(c,E),x||p||(x=!0,W(S))),E},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(E){var O=f;return function(){var B=f;f=O;try{return E.apply(this,arguments)}finally{f=B}}}})(ax);ox.exports=ax;var JS=ox.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ZS=v,Mt=JS;function M(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 lx=new Set,Xo={};function _i(e,t){Ts(e,t),Ts(e+"Capture",t)}function Ts(e,t){for(Xo[e]=t,e=0;e<t.length;e++)lx.add(t[e])}var Gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qd=Object.prototype.hasOwnProperty,ek=/^[: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]*$/,Zm={},eg={};function tk(e){return Qd.call(eg,e)?!0:Qd.call(Zm,e)?!1:ek.test(e)?eg[e]=!0:(Zm[e]=!0,!1)}function nk(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function rk(e,t,n,r){if(t===null||typeof t>"u"||nk(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 pt(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new pt(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){Xe[e]=new pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Hf=/[\-:]([a-z])/g;function Wf(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(Hf,Wf);Xe[t]=new pt(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(Hf,Wf);Xe[t]=new pt(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(Hf,Wf);Xe[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new pt(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Kf(e,t,n,r){var i=Xe.hasOwnProperty(t)?Xe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(rk(t,n,i,r)&&(n=null),r||i===null?tk(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var tr=ZS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,tl=Symbol.for("react.element"),Wi=Symbol.for("react.portal"),Ki=Symbol.for("react.fragment"),qf=Symbol.for("react.strict_mode"),Xd=Symbol.for("react.profiler"),cx=Symbol.for("react.provider"),ux=Symbol.for("react.context"),Gf=Symbol.for("react.forward_ref"),Jd=Symbol.for("react.suspense"),Zd=Symbol.for("react.suspense_list"),Yf=Symbol.for("react.memo"),hr=Symbol.for("react.lazy"),dx=Symbol.for("react.offscreen"),tg=Symbol.iterator;function uo(e){return e===null||typeof e!="object"?null:(e=tg&&e[tg]||e["@@iterator"],typeof e=="function"?e:null)}var Ce=Object.assign,zu;function To(e){if(zu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);zu=t&&t[1]||""}return`
`+zu+e}var $u=!1;function Fu(e,t){if(!e||$u)return"";$u=!0;var n=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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),s=r.stack.split(`
`),o=i.length-1,l=s.length-1;1<=o&&0<=l&&i[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==s[l]){var c=`
`+i[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{$u=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?To(e):""}function ik(e){switch(e.tag){case 5:return To(e.type);case 16:return To("Lazy");case 13:return To("Suspense");case 19:return To("SuspenseList");case 0:case 2:case 15:return e=Fu(e.type,!1),e;case 11:return e=Fu(e.type.render,!1),e;case 1:return e=Fu(e.type,!0),e;default:return""}}function eh(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 Ki:return"Fragment";case Wi:return"Portal";case Xd:return"Profiler";case qf:return"StrictMode";case Jd:return"Suspense";case Zd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ux:return(e.displayName||"Context")+".Consumer";case cx:return(e._context.displayName||"Context")+".Provider";case Gf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yf:return t=e.displayName||null,t!==null?t:eh(e.type)||"Memo";case hr:t=e._payload,e=e._init;try{return eh(e(t))}catch{}}return null}function sk(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 eh(t);case 8:return t===qf?"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 Or(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ok(e){var t=hx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nl(e){e._valueTracker||(e._valueTracker=ok(e))}function fx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function rc(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 th(e,t){var n=t.checked;return Ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ng(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Or(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function px(e,t){t=t.checked,t!=null&&Kf(e,"checked",t,!1)}function nh(e,t){px(e,t);var n=Or(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?rh(e,t.type,n):t.hasOwnProperty("defaultValue")&&rh(e,t.type,Or(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function rg(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function rh(e,t,n){(t!=="number"||rc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Po=Array.isArray;function ls(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Or(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ih(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(M(91));return Ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ig(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(M(92));if(Po(n)){if(1<n.length)throw Error(M(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Or(n)}}function mx(e,t){var n=Or(t.value),r=Or(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function sg(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function gx(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 sh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?gx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var rl,yx=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(rl=rl||document.createElement("div"),rl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=rl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Oo={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},ak=["Webkit","ms","Moz","O"];Object.keys(Oo).forEach(function(e){ak.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Oo[t]=Oo[e]})});function vx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Oo.hasOwnProperty(e)&&Oo[e]?(""+t).trim():t+"px"}function xx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=vx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var lk=Ce({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 oh(e,t){if(t){if(lk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function ah(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 lh=null;function Qf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ch=null,cs=null,us=null;function og(e){if(e=Oa(e)){if(typeof ch!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Xc(t),ch(e.stateNode,e.type,t))}}function wx(e){cs?us?us.push(e):us=[e]:cs=e}function bx(){if(cs){var e=cs,t=us;if(us=cs=null,og(e),t)for(e=0;e<t.length;e++)og(t[e])}}function jx(e,t){return e(t)}function Sx(){}var Vu=!1;function kx(e,t,n){if(Vu)return e(t,n);Vu=!0;try{return jx(e,t,n)}finally{Vu=!1,(cs!==null||us!==null)&&(Sx(),bx())}}function Zo(e,t){var n=e.stateNode;if(n===null)return null;var r=Xc(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(M(231,t,typeof n));return n}var uh=!1;if(Gn)try{var ho={};Object.defineProperty(ho,"passive",{get:function(){uh=!0}}),window.addEventListener("test",ho,ho),window.removeEventListener("test",ho,ho)}catch{uh=!1}function ck(e,t,n,r,i,s,o,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Do=!1,ic=null,sc=!1,dh=null,uk={onError:function(e){Do=!0,ic=e}};function dk(e,t,n,r,i,s,o,l,c){Do=!1,ic=null,ck.apply(uk,arguments)}function hk(e,t,n,r,i,s,o,l,c){if(dk.apply(this,arguments),Do){if(Do){var u=ic;Do=!1,ic=null}else throw Error(M(198));sc||(sc=!0,dh=u)}}function Ai(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Nx(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 ag(e){if(Ai(e)!==e)throw Error(M(188))}function fk(e){var t=e.alternate;if(!t){if(t=Ai(e),t===null)throw Error(M(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return ag(i),e;if(s===r)return ag(i),t;s=s.sibling}throw Error(M(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o)throw Error(M(189))}}if(n.alternate!==r)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?e:t}function Cx(e){return e=fk(e),e!==null?Ex(e):null}function Ex(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ex(e);if(t!==null)return t;e=e.sibling}return null}var Tx=Mt.unstable_scheduleCallback,lg=Mt.unstable_cancelCallback,pk=Mt.unstable_shouldYield,mk=Mt.unstable_requestPaint,Ie=Mt.unstable_now,gk=Mt.unstable_getCurrentPriorityLevel,Xf=Mt.unstable_ImmediatePriority,Px=Mt.unstable_UserBlockingPriority,oc=Mt.unstable_NormalPriority,yk=Mt.unstable_LowPriority,_x=Mt.unstable_IdlePriority,qc=null,Nn=null;function vk(e){if(Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot(qc,e,void 0,(e.current.flags&128)===128)}catch{}}var cn=Math.clz32?Math.clz32:bk,xk=Math.log,wk=Math.LN2;function bk(e){return e>>>=0,e===0?32:31-(xk(e)/wk|0)|0}var il=64,sl=4194304;function _o(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 ac(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=_o(l):(s&=o,s!==0&&(r=_o(s)))}else o=n&~i,o!==0?r=_o(o):s!==0&&(r=_o(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-cn(t),i=1<<n,r|=e[n],t&=~i;return r}function jk(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 Sk(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-cn(s),l=1<<o,c=i[o];c===-1?(!(l&n)||l&r)&&(i[o]=jk(l,t)):c<=t&&(e.expiredLanes|=l),s&=~l}}function hh(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ax(){var e=il;return il<<=1,!(il&4194240)&&(il=64),e}function Bu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ia(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-cn(t),e[t]=n}function kk(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-cn(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function Jf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-cn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var de=0;function Rx(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ix,Zf,Mx,Ox,Dx,fh=!1,ol=[],Cr=null,Er=null,Tr=null,ea=new Map,ta=new Map,mr=[],Nk="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 cg(e,t){switch(e){case"focusin":case"focusout":Cr=null;break;case"dragenter":case"dragleave":Er=null;break;case"mouseover":case"mouseout":Tr=null;break;case"pointerover":case"pointerout":ea.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ta.delete(t.pointerId)}}function fo(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Oa(t),t!==null&&Zf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ck(e,t,n,r,i){switch(t){case"focusin":return Cr=fo(Cr,e,t,n,r,i),!0;case"dragenter":return Er=fo(Er,e,t,n,r,i),!0;case"mouseover":return Tr=fo(Tr,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return ea.set(s,fo(ea.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,ta.set(s,fo(ta.get(s)||null,e,t,n,r,i)),!0}return!1}function Lx(e){var t=di(e.target);if(t!==null){var n=Ai(t);if(n!==null){if(t=n.tag,t===13){if(t=Nx(n),t!==null){e.blockedOn=t,Dx(e.priority,function(){Mx(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $l(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ph(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);lh=r,n.target.dispatchEvent(r),lh=null}else return t=Oa(n),t!==null&&Zf(t),e.blockedOn=n,!1;t.shift()}return!0}function ug(e,t,n){$l(e)&&n.delete(t)}function Ek(){fh=!1,Cr!==null&&$l(Cr)&&(Cr=null),Er!==null&&$l(Er)&&(Er=null),Tr!==null&&$l(Tr)&&(Tr=null),ea.forEach(ug),ta.forEach(ug)}function po(e,t){e.blockedOn===t&&(e.blockedOn=null,fh||(fh=!0,Mt.unstable_scheduleCallback(Mt.unstable_NormalPriority,Ek)))}function na(e){function t(i){return po(i,e)}if(0<ol.length){po(ol[0],e);for(var n=1;n<ol.length;n++){var r=ol[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Cr!==null&&po(Cr,e),Er!==null&&po(Er,e),Tr!==null&&po(Tr,e),ea.forEach(t),ta.forEach(t),n=0;n<mr.length;n++)r=mr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<mr.length&&(n=mr[0],n.blockedOn===null);)Lx(n),n.blockedOn===null&&mr.shift()}var ds=tr.ReactCurrentBatchConfig,lc=!0;function Tk(e,t,n,r){var i=de,s=ds.transition;ds.transition=null;try{de=1,ep(e,t,n,r)}finally{de=i,ds.transition=s}}function Pk(e,t,n,r){var i=de,s=ds.transition;ds.transition=null;try{de=4,ep(e,t,n,r)}finally{de=i,ds.transition=s}}function ep(e,t,n,r){if(lc){var i=ph(e,t,n,r);if(i===null)Ju(e,t,r,cc,n),cg(e,r);else if(Ck(i,e,t,n,r))r.stopPropagation();else if(cg(e,r),t&4&&-1<Nk.indexOf(e)){for(;i!==null;){var s=Oa(i);if(s!==null&&Ix(s),s=ph(e,t,n,r),s===null&&Ju(e,t,r,cc,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Ju(e,t,r,null,n)}}var cc=null;function ph(e,t,n,r){if(cc=null,e=Qf(r),e=di(e),e!==null)if(t=Ai(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Nx(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return cc=e,null}function zx(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(gk()){case Xf:return 1;case Px:return 4;case oc:case yk:return 16;case _x:return 536870912;default:return 16}default:return 16}}var Sr=null,tp=null,Fl=null;function $x(){if(Fl)return Fl;var e,t=tp,n=t.length,r,i="value"in Sr?Sr.value:Sr.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Fl=i.slice(e,1<r?1-r:void 0)}function Vl(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 al(){return!0}function dg(){return!1}function Dt(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?al:dg,this.isPropagationStopped=dg,this}return Ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=al)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=al)},persist:function(){},isPersistent:al}),t}var Hs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},np=Dt(Hs),Ma=Ce({},Hs,{view:0,detail:0}),_k=Dt(Ma),Uu,Hu,mo,Gc=Ce({},Ma,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rp,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!==mo&&(mo&&e.type==="mousemove"?(Uu=e.screenX-mo.screenX,Hu=e.screenY-mo.screenY):Hu=Uu=0,mo=e),Uu)},movementY:function(e){return"movementY"in e?e.movementY:Hu}}),hg=Dt(Gc),Ak=Ce({},Gc,{dataTransfer:0}),Rk=Dt(Ak),Ik=Ce({},Ma,{relatedTarget:0}),Wu=Dt(Ik),Mk=Ce({},Hs,{animationName:0,elapsedTime:0,pseudoElement:0}),Ok=Dt(Mk),Dk=Ce({},Hs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Lk=Dt(Dk),zk=Ce({},Hs,{data:0}),fg=Dt(zk),$k={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fk={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"},Vk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vk[e])?!!t[e]:!1}function rp(){return Bk}var Uk=Ce({},Ma,{key:function(e){if(e.key){var t=$k[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fk[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rp,charCode:function(e){return e.type==="keypress"?Vl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Hk=Dt(Uk),Wk=Ce({},Gc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pg=Dt(Wk),Kk=Ce({},Ma,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rp}),qk=Dt(Kk),Gk=Ce({},Hs,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yk=Dt(Gk),Qk=Ce({},Gc,{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}),Xk=Dt(Qk),Jk=[9,13,27,32],ip=Gn&&"CompositionEvent"in window,Lo=null;Gn&&"documentMode"in document&&(Lo=document.documentMode);var Zk=Gn&&"TextEvent"in window&&!Lo,Fx=Gn&&(!ip||Lo&&8<Lo&&11>=Lo),mg=" ",gg=!1;function Vx(e,t){switch(e){case"keyup":return Jk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qi=!1;function eN(e,t){switch(e){case"compositionend":return Bx(t);case"keypress":return t.which!==32?null:(gg=!0,mg);case"textInput":return e=t.data,e===mg&&gg?null:e;default:return null}}function tN(e,t){if(qi)return e==="compositionend"||!ip&&Vx(e,t)?(e=$x(),Fl=tp=Sr=null,qi=!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 Fx&&t.locale!=="ko"?null:t.data;default:return null}}var nN={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 yg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nN[e.type]:t==="textarea"}function Ux(e,t,n,r){wx(r),t=uc(t,"onChange"),0<t.length&&(n=new np("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var zo=null,ra=null;function rN(e){ew(e,0)}function Yc(e){var t=Qi(e);if(fx(t))return e}function iN(e,t){if(e==="change")return t}var Hx=!1;if(Gn){var Ku;if(Gn){var qu="oninput"in document;if(!qu){var vg=document.createElement("div");vg.setAttribute("oninput","return;"),qu=typeof vg.oninput=="function"}Ku=qu}else Ku=!1;Hx=Ku&&(!document.documentMode||9<document.documentMode)}function xg(){zo&&(zo.detachEvent("onpropertychange",Wx),ra=zo=null)}function Wx(e){if(e.propertyName==="value"&&Yc(ra)){var t=[];Ux(t,ra,e,Qf(e)),kx(rN,t)}}function sN(e,t,n){e==="focusin"?(xg(),zo=t,ra=n,zo.attachEvent("onpropertychange",Wx)):e==="focusout"&&xg()}function oN(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yc(ra)}function aN(e,t){if(e==="click")return Yc(t)}function lN(e,t){if(e==="input"||e==="change")return Yc(t)}function cN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dn=typeof Object.is=="function"?Object.is:cN;function ia(e,t){if(dn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Qd.call(t,i)||!dn(e[i],t[i]))return!1}return!0}function wg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bg(e,t){var n=wg(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=wg(n)}}function Kx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qx(){for(var e=window,t=rc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=rc(e.document)}return t}function sp(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 uN(e){var t=qx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Kx(n.ownerDocument.documentElement,n)){if(r!==null&&sp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=bg(n,s);var o=bg(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var dN=Gn&&"documentMode"in document&&11>=document.documentMode,Gi=null,mh=null,$o=null,gh=!1;function jg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gh||Gi==null||Gi!==rc(r)||(r=Gi,"selectionStart"in r&&sp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),$o&&ia($o,r)||($o=r,r=uc(mh,"onSelect"),0<r.length&&(t=new np("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Gi)))}function ll(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Yi={animationend:ll("Animation","AnimationEnd"),animationiteration:ll("Animation","AnimationIteration"),animationstart:ll("Animation","AnimationStart"),transitionend:ll("Transition","TransitionEnd")},Gu={},Gx={};Gn&&(Gx=document.createElement("div").style,"AnimationEvent"in window||(delete Yi.animationend.animation,delete Yi.animationiteration.animation,delete Yi.animationstart.animation),"TransitionEvent"in window||delete Yi.transitionend.transition);function Qc(e){if(Gu[e])return Gu[e];if(!Yi[e])return e;var t=Yi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Gx)return Gu[e]=t[n];return e}var Yx=Qc("animationend"),Qx=Qc("animationiteration"),Xx=Qc("animationstart"),Jx=Qc("transitionend"),Zx=new Map,Sg="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 Wr(e,t){Zx.set(e,t),_i(t,[e])}for(var Yu=0;Yu<Sg.length;Yu++){var Qu=Sg[Yu],hN=Qu.toLowerCase(),fN=Qu[0].toUpperCase()+Qu.slice(1);Wr(hN,"on"+fN)}Wr(Yx,"onAnimationEnd");Wr(Qx,"onAnimationIteration");Wr(Xx,"onAnimationStart");Wr("dblclick","onDoubleClick");Wr("focusin","onFocus");Wr("focusout","onBlur");Wr(Jx,"onTransitionEnd");Ts("onMouseEnter",["mouseout","mouseover"]);Ts("onMouseLeave",["mouseout","mouseover"]);Ts("onPointerEnter",["pointerout","pointerover"]);Ts("onPointerLeave",["pointerout","pointerover"]);_i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_i("onBeforeInput",["compositionend","keypress","textInput","paste"]);_i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ao="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(" "),pN=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ao));function kg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,hk(r,t,void 0,e),e.currentTarget=null}function ew(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==s&&i.isPropagationStopped())break e;kg(i,l,u),s=c}else for(o=0;o<r.length;o++){if(l=r[o],c=l.instance,u=l.currentTarget,l=l.listener,c!==s&&i.isPropagationStopped())break e;kg(i,l,u),s=c}}}if(sc)throw e=dh,sc=!1,dh=null,e}function ye(e,t){var n=t[bh];n===void 0&&(n=t[bh]=new Set);var r=e+"__bubble";n.has(r)||(tw(t,e,2,!1),n.add(r))}function Xu(e,t,n){var r=0;t&&(r|=4),tw(n,e,r,t)}var cl="_reactListening"+Math.random().toString(36).slice(2);function sa(e){if(!e[cl]){e[cl]=!0,lx.forEach(function(n){n!=="selectionchange"&&(pN.has(n)||Xu(n,!1,e),Xu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[cl]||(t[cl]=!0,Xu("selectionchange",!1,t))}}function tw(e,t,n,r){switch(zx(t)){case 1:var i=Tk;break;case 4:i=Pk;break;default:i=ep}n=i.bind(null,t,n,e),i=void 0,!uh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ju(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;l!==null;){if(o=di(l),o===null)return;if(c=o.tag,c===5||c===6){r=s=o;continue e}l=l.parentNode}}r=r.return}kx(function(){var u=s,d=Qf(n),h=[];e:{var f=Zx.get(e);if(f!==void 0){var p=np,x=e;switch(e){case"keypress":if(Vl(n)===0)break e;case"keydown":case"keyup":p=Hk;break;case"focusin":x="focus",p=Wu;break;case"focusout":x="blur",p=Wu;break;case"beforeblur":case"afterblur":p=Wu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=hg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Rk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=qk;break;case Yx:case Qx:case Xx:p=Ok;break;case Jx:p=Yk;break;case"scroll":p=_k;break;case"wheel":p=Xk;break;case"copy":case"cut":case"paste":p=Lk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=pg}var g=(t&4)!==0,b=!g&&e==="scroll",m=g?f!==null?f+"Capture":null:f;g=[];for(var y=u,w;y!==null;){w=y;var j=w.stateNode;if(w.tag===5&&j!==null&&(w=j,m!==null&&(j=Zo(y,m),j!=null&&g.push(oa(y,j,w)))),b)break;y=y.return}0<g.length&&(f=new p(f,x,null,n,d),h.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==lh&&(x=n.relatedTarget||n.fromElement)&&(di(x)||x[Yn]))break e;if((p||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,p?(x=n.relatedTarget||n.toElement,p=u,x=x?di(x):null,x!==null&&(b=Ai(x),x!==b||x.tag!==5&&x.tag!==6)&&(x=null)):(p=null,x=u),p!==x)){if(g=hg,j="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(g=pg,j="onPointerLeave",m="onPointerEnter",y="pointer"),b=p==null?f:Qi(p),w=x==null?f:Qi(x),f=new g(j,y+"leave",p,n,d),f.target=b,f.relatedTarget=w,j=null,di(d)===u&&(g=new g(m,y+"enter",x,n,d),g.target=w,g.relatedTarget=b,j=g),b=j,p&&x)t:{for(g=p,m=x,y=0,w=g;w;w=Li(w))y++;for(w=0,j=m;j;j=Li(j))w++;for(;0<y-w;)g=Li(g),y--;for(;0<w-y;)m=Li(m),w--;for(;y--;){if(g===m||m!==null&&g===m.alternate)break t;g=Li(g),m=Li(m)}g=null}else g=null;p!==null&&Ng(h,f,p,g,!1),x!==null&&b!==null&&Ng(h,b,x,g,!0)}}e:{if(f=u?Qi(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var S=iN;else if(yg(f))if(Hx)S=lN;else{S=oN;var N=sN}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(S=aN);if(S&&(S=S(e,u))){Ux(h,S,n,d);break e}N&&N(e,f,u),e==="focusout"&&(N=f._wrapperState)&&N.controlled&&f.type==="number"&&rh(f,"number",f.value)}switch(N=u?Qi(u):window,e){case"focusin":(yg(N)||N.contentEditable==="true")&&(Gi=N,mh=u,$o=null);break;case"focusout":$o=mh=Gi=null;break;case"mousedown":gh=!0;break;case"contextmenu":case"mouseup":case"dragend":gh=!1,jg(h,n,d);break;case"selectionchange":if(dN)break;case"keydown":case"keyup":jg(h,n,d)}var k;if(ip)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else qi?Vx(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Fx&&n.locale!=="ko"&&(qi||C!=="onCompositionStart"?C==="onCompositionEnd"&&qi&&(k=$x()):(Sr=d,tp="value"in Sr?Sr.value:Sr.textContent,qi=!0)),N=uc(u,C),0<N.length&&(C=new fg(C,e,null,n,d),h.push({event:C,listeners:N}),k?C.data=k:(k=Bx(n),k!==null&&(C.data=k)))),(k=Zk?eN(e,n):tN(e,n))&&(u=uc(u,"onBeforeInput"),0<u.length&&(d=new fg("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:u}),d.data=k))}ew(h,t)})}function oa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function uc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Zo(e,n),s!=null&&r.unshift(oa(e,s,i)),s=Zo(e,t),s!=null&&r.push(oa(e,s,i))),e=e.return}return r}function Li(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ng(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,i?(c=Zo(n,s),c!=null&&o.unshift(oa(n,c,l))):i||(c=Zo(n,s),c!=null&&o.push(oa(n,c,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var mN=/\r\n?/g,gN=/\u0000|\uFFFD/g;function Cg(e){return(typeof e=="string"?e:""+e).replace(mN,`
`).replace(gN,"")}function ul(e,t,n){if(t=Cg(t),Cg(e)!==t&&n)throw Error(M(425))}function dc(){}var yh=null,vh=null;function xh(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 wh=typeof setTimeout=="function"?setTimeout:void 0,yN=typeof clearTimeout=="function"?clearTimeout:void 0,Eg=typeof Promise=="function"?Promise:void 0,vN=typeof queueMicrotask=="function"?queueMicrotask:typeof Eg<"u"?function(e){return Eg.resolve(null).then(e).catch(xN)}:wh;function xN(e){setTimeout(function(){throw e})}function Zu(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),na(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);na(t)}function Pr(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 Tg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ws=Math.random().toString(36).slice(2),Sn="__reactFiber$"+Ws,aa="__reactProps$"+Ws,Yn="__reactContainer$"+Ws,bh="__reactEvents$"+Ws,wN="__reactListeners$"+Ws,bN="__reactHandles$"+Ws;function di(e){var t=e[Sn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yn]||n[Sn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Tg(e);e!==null;){if(n=e[Sn])return n;e=Tg(e)}return t}e=n,n=e.parentNode}return null}function Oa(e){return e=e[Sn]||e[Yn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(M(33))}function Xc(e){return e[aa]||null}var jh=[],Xi=-1;function Kr(e){return{current:e}}function ve(e){0>Xi||(e.current=jh[Xi],jh[Xi]=null,Xi--)}function pe(e,t){Xi++,jh[Xi]=e.current,e.current=t}var Dr={},ot=Kr(Dr),wt=Kr(!1),ji=Dr;function Ps(e,t){var n=e.type.contextTypes;if(!n)return Dr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function bt(e){return e=e.childContextTypes,e!=null}function hc(){ve(wt),ve(ot)}function Pg(e,t,n){if(ot.current!==Dr)throw Error(M(168));pe(ot,t),pe(wt,n)}function nw(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(M(108,sk(e)||"Unknown",i));return Ce({},n,r)}function fc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dr,ji=ot.current,pe(ot,e),pe(wt,wt.current),!0}function _g(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=nw(e,t,ji),r.__reactInternalMemoizedMergedChildContext=e,ve(wt),ve(ot),pe(ot,e)):ve(wt),pe(wt,n)}var Vn=null,Jc=!1,ed=!1;function rw(e){Vn===null?Vn=[e]:Vn.push(e)}function jN(e){Jc=!0,rw(e)}function qr(){if(!ed&&Vn!==null){ed=!0;var e=0,t=de;try{var n=Vn;for(de=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Vn=null,Jc=!1}catch(i){throw Vn!==null&&(Vn=Vn.slice(e+1)),Tx(Xf,qr),i}finally{de=t,ed=!1}}return null}var Ji=[],Zi=0,pc=null,mc=0,Ut=[],Ht=0,Si=null,Bn=1,Un="";function oi(e,t){Ji[Zi++]=mc,Ji[Zi++]=pc,pc=e,mc=t}function iw(e,t,n){Ut[Ht++]=Bn,Ut[Ht++]=Un,Ut[Ht++]=Si,Si=e;var r=Bn;e=Un;var i=32-cn(r)-1;r&=~(1<<i),n+=1;var s=32-cn(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Bn=1<<32-cn(t)+i|n<<i|r,Un=s+e}else Bn=1<<s|n<<i|r,Un=e}function op(e){e.return!==null&&(oi(e,1),iw(e,1,0))}function ap(e){for(;e===pc;)pc=Ji[--Zi],Ji[Zi]=null,mc=Ji[--Zi],Ji[Zi]=null;for(;e===Si;)Si=Ut[--Ht],Ut[Ht]=null,Un=Ut[--Ht],Ut[Ht]=null,Bn=Ut[--Ht],Ut[Ht]=null}var At=null,_t=null,xe=!1,ln=null;function sw(e,t){var n=Wt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ag(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,At=e,_t=Pr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,At=e,_t=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Si!==null?{id:Bn,overflow:Un}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Wt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,At=e,_t=null,!0):!1;default:return!1}}function Sh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function kh(e){if(xe){var t=_t;if(t){var n=t;if(!Ag(e,t)){if(Sh(e))throw Error(M(418));t=Pr(n.nextSibling);var r=At;t&&Ag(e,t)?sw(r,n):(e.flags=e.flags&-4097|2,xe=!1,At=e)}}else{if(Sh(e))throw Error(M(418));e.flags=e.flags&-4097|2,xe=!1,At=e}}}function Rg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;At=e}function dl(e){if(e!==At)return!1;if(!xe)return Rg(e),xe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!xh(e.type,e.memoizedProps)),t&&(t=_t)){if(Sh(e))throw ow(),Error(M(418));for(;t;)sw(e,t),t=Pr(t.nextSibling)}if(Rg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){_t=Pr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}_t=null}}else _t=At?Pr(e.stateNode.nextSibling):null;return!0}function ow(){for(var e=_t;e;)e=Pr(e.nextSibling)}function _s(){_t=At=null,xe=!1}function lp(e){ln===null?ln=[e]:ln.push(e)}var SN=tr.ReactCurrentBatchConfig;function go(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(M(309));var r=n.stateNode}if(!r)throw Error(M(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var l=i.refs;o===null?delete l[s]:l[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(M(284));if(!n._owner)throw Error(M(290,e))}return e}function hl(e,t){throw e=Object.prototype.toString.call(t),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ig(e){var t=e._init;return t(e._payload)}function aw(e){function t(m,y){if(e){var w=m.deletions;w===null?(m.deletions=[y],m.flags|=16):w.push(y)}}function n(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function r(m,y){for(m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function i(m,y){return m=Ir(m,y),m.index=0,m.sibling=null,m}function s(m,y,w){return m.index=w,e?(w=m.alternate,w!==null?(w=w.index,w<y?(m.flags|=2,y):w):(m.flags|=2,y)):(m.flags|=1048576,y)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,y,w,j){return y===null||y.tag!==6?(y=ad(w,m.mode,j),y.return=m,y):(y=i(y,w),y.return=m,y)}function c(m,y,w,j){var S=w.type;return S===Ki?d(m,y,w.props.children,j,w.key):y!==null&&(y.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===hr&&Ig(S)===y.type)?(j=i(y,w.props),j.ref=go(m,y,w),j.return=m,j):(j=Gl(w.type,w.key,w.props,null,m.mode,j),j.ref=go(m,y,w),j.return=m,j)}function u(m,y,w,j){return y===null||y.tag!==4||y.stateNode.containerInfo!==w.containerInfo||y.stateNode.implementation!==w.implementation?(y=ld(w,m.mode,j),y.return=m,y):(y=i(y,w.children||[]),y.return=m,y)}function d(m,y,w,j,S){return y===null||y.tag!==7?(y=wi(w,m.mode,j,S),y.return=m,y):(y=i(y,w),y.return=m,y)}function h(m,y,w){if(typeof y=="string"&&y!==""||typeof y=="number")return y=ad(""+y,m.mode,w),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case tl:return w=Gl(y.type,y.key,y.props,null,m.mode,w),w.ref=go(m,null,y),w.return=m,w;case Wi:return y=ld(y,m.mode,w),y.return=m,y;case hr:var j=y._init;return h(m,j(y._payload),w)}if(Po(y)||uo(y))return y=wi(y,m.mode,w,null),y.return=m,y;hl(m,y)}return null}function f(m,y,w,j){var S=y!==null?y.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return S!==null?null:l(m,y,""+w,j);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case tl:return w.key===S?c(m,y,w,j):null;case Wi:return w.key===S?u(m,y,w,j):null;case hr:return S=w._init,f(m,y,S(w._payload),j)}if(Po(w)||uo(w))return S!==null?null:d(m,y,w,j,null);hl(m,w)}return null}function p(m,y,w,j,S){if(typeof j=="string"&&j!==""||typeof j=="number")return m=m.get(w)||null,l(y,m,""+j,S);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case tl:return m=m.get(j.key===null?w:j.key)||null,c(y,m,j,S);case Wi:return m=m.get(j.key===null?w:j.key)||null,u(y,m,j,S);case hr:var N=j._init;return p(m,y,w,N(j._payload),S)}if(Po(j)||uo(j))return m=m.get(w)||null,d(y,m,j,S,null);hl(y,j)}return null}function x(m,y,w,j){for(var S=null,N=null,k=y,C=y=0,_=null;k!==null&&C<w.length;C++){k.index>C?(_=k,k=null):_=k.sibling;var I=f(m,k,w[C],j);if(I===null){k===null&&(k=_);break}e&&k&&I.alternate===null&&t(m,k),y=s(I,y,C),N===null?S=I:N.sibling=I,N=I,k=_}if(C===w.length)return n(m,k),xe&&oi(m,C),S;if(k===null){for(;C<w.length;C++)k=h(m,w[C],j),k!==null&&(y=s(k,y,C),N===null?S=k:N.sibling=k,N=k);return xe&&oi(m,C),S}for(k=r(m,k);C<w.length;C++)_=p(k,m,C,w[C],j),_!==null&&(e&&_.alternate!==null&&k.delete(_.key===null?C:_.key),y=s(_,y,C),N===null?S=_:N.sibling=_,N=_);return e&&k.forEach(function(R){return t(m,R)}),xe&&oi(m,C),S}function g(m,y,w,j){var S=uo(w);if(typeof S!="function")throw Error(M(150));if(w=S.call(w),w==null)throw Error(M(151));for(var N=S=null,k=y,C=y=0,_=null,I=w.next();k!==null&&!I.done;C++,I=w.next()){k.index>C?(_=k,k=null):_=k.sibling;var R=f(m,k,I.value,j);if(R===null){k===null&&(k=_);break}e&&k&&R.alternate===null&&t(m,k),y=s(R,y,C),N===null?S=R:N.sibling=R,N=R,k=_}if(I.done)return n(m,k),xe&&oi(m,C),S;if(k===null){for(;!I.done;C++,I=w.next())I=h(m,I.value,j),I!==null&&(y=s(I,y,C),N===null?S=I:N.sibling=I,N=I);return xe&&oi(m,C),S}for(k=r(m,k);!I.done;C++,I=w.next())I=p(k,m,C,I.value,j),I!==null&&(e&&I.alternate!==null&&k.delete(I.key===null?C:I.key),y=s(I,y,C),N===null?S=I:N.sibling=I,N=I);return e&&k.forEach(function(z){return t(m,z)}),xe&&oi(m,C),S}function b(m,y,w,j){if(typeof w=="object"&&w!==null&&w.type===Ki&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case tl:e:{for(var S=w.key,N=y;N!==null;){if(N.key===S){if(S=w.type,S===Ki){if(N.tag===7){n(m,N.sibling),y=i(N,w.props.children),y.return=m,m=y;break e}}else if(N.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===hr&&Ig(S)===N.type){n(m,N.sibling),y=i(N,w.props),y.ref=go(m,N,w),y.return=m,m=y;break e}n(m,N);break}else t(m,N);N=N.sibling}w.type===Ki?(y=wi(w.props.children,m.mode,j,w.key),y.return=m,m=y):(j=Gl(w.type,w.key,w.props,null,m.mode,j),j.ref=go(m,y,w),j.return=m,m=j)}return o(m);case Wi:e:{for(N=w.key;y!==null;){if(y.key===N)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(m,y.sibling),y=i(y,w.children||[]),y.return=m,m=y;break e}else{n(m,y);break}else t(m,y);y=y.sibling}y=ld(w,m.mode,j),y.return=m,m=y}return o(m);case hr:return N=w._init,b(m,y,N(w._payload),j)}if(Po(w))return x(m,y,w,j);if(uo(w))return g(m,y,w,j);hl(m,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(m,y.sibling),y=i(y,w),y.return=m,m=y):(n(m,y),y=ad(w,m.mode,j),y.return=m,m=y),o(m)):n(m,y)}return b}var As=aw(!0),lw=aw(!1),gc=Kr(null),yc=null,es=null,cp=null;function up(){cp=es=yc=null}function dp(e){var t=gc.current;ve(gc),e._currentValue=t}function Nh(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function hs(e,t){yc=e,cp=es=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(xt=!0),e.firstContext=null)}function Gt(e){var t=e._currentValue;if(cp!==e)if(e={context:e,memoizedValue:t,next:null},es===null){if(yc===null)throw Error(M(308));es=e,yc.dependencies={lanes:0,firstContext:e}}else es=es.next=e;return t}var hi=null;function hp(e){hi===null?hi=[e]:hi.push(e)}function cw(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,hp(t)):(n.next=i.next,i.next=n),t.interleaved=n,Qn(e,r)}function Qn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var fr=!1;function fp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function uw(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 Wn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _r(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Qn(e,n)}return i=r.interleaved,i===null?(t.next=t,hp(r)):(t.next=i.next,i.next=t),r.interleaved=t,Qn(e,n)}function Bl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Jf(e,n)}}function Mg(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function vc(e,t,n,r){var i=e.updateQueue;fr=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,u=c.next;c.next=null,o===null?s=u:o.next=u,o=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(s!==null){var h=i.baseState;o=0,d=u=c=null,l=s;do{var f=l.lane,p=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,g=l;switch(f=t,p=n,g.tag){case 1:if(x=g.payload,typeof x=="function"){h=x.call(p,h,f);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,f=typeof x=="function"?x.call(p,h,f):x,f==null)break e;h=Ce({},h,f);break e;case 2:fr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=p,c=h):d=d.next=p,o|=f;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(c=h),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Ni|=o,e.lanes=o,e.memoizedState=h}}function Og(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(M(191,i));i.call(r)}}}var Da={},Cn=Kr(Da),la=Kr(Da),ca=Kr(Da);function fi(e){if(e===Da)throw Error(M(174));return e}function pp(e,t){switch(pe(ca,t),pe(la,e),pe(Cn,Da),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:sh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=sh(t,e)}ve(Cn),pe(Cn,t)}function Rs(){ve(Cn),ve(la),ve(ca)}function dw(e){fi(ca.current);var t=fi(Cn.current),n=sh(t,e.type);t!==n&&(pe(la,e),pe(Cn,n))}function mp(e){la.current===e&&(ve(Cn),ve(la))}var Se=Kr(0);function xc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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 td=[];function gp(){for(var e=0;e<td.length;e++)td[e]._workInProgressVersionPrimary=null;td.length=0}var Ul=tr.ReactCurrentDispatcher,nd=tr.ReactCurrentBatchConfig,ki=0,Ne=null,Fe=null,Ue=null,wc=!1,Fo=!1,ua=0,kN=0;function et(){throw Error(M(321))}function yp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!dn(e[n],t[n]))return!1;return!0}function vp(e,t,n,r,i,s){if(ki=s,Ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ul.current=e===null||e.memoizedState===null?TN:PN,e=n(r,i),Fo){s=0;do{if(Fo=!1,ua=0,25<=s)throw Error(M(301));s+=1,Ue=Fe=null,t.updateQueue=null,Ul.current=_N,e=n(r,i)}while(Fo)}if(Ul.current=bc,t=Fe!==null&&Fe.next!==null,ki=0,Ue=Fe=Ne=null,wc=!1,t)throw Error(M(300));return e}function xp(){var e=ua!==0;return ua=0,e}function xn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?Ne.memoizedState=Ue=e:Ue=Ue.next=e,Ue}function Yt(){if(Fe===null){var e=Ne.alternate;e=e!==null?e.memoizedState:null}else e=Fe.next;var t=Ue===null?Ne.memoizedState:Ue.next;if(t!==null)Ue=t,Fe=e;else{if(e===null)throw Error(M(310));Fe=e,e={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},Ue===null?Ne.memoizedState=Ue=e:Ue=Ue.next=e}return Ue}function da(e,t){return typeof t=="function"?t(e):t}function rd(e){var t=Yt(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=Fe,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var l=o=null,c=null,u=s;do{var d=u.lane;if((ki&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=h,o=r):c=c.next=h,Ne.lanes|=d,Ni|=d}u=u.next}while(u!==null&&u!==s);c===null?o=r:c.next=l,dn(r,t.memoizedState)||(xt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,Ne.lanes|=s,Ni|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function id(e){var t=Yt(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);dn(s,t.memoizedState)||(xt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function hw(){}function fw(e,t){var n=Ne,r=Yt(),i=t(),s=!dn(r.memoizedState,i);if(s&&(r.memoizedState=i,xt=!0),r=r.queue,wp(gw.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ue!==null&&Ue.memoizedState.tag&1){if(n.flags|=2048,ha(9,mw.bind(null,n,r,i,t),void 0,null),He===null)throw Error(M(349));ki&30||pw(n,t,i)}return i}function pw(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ne.updateQueue,t===null?(t={lastEffect:null,stores:null},Ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function mw(e,t,n,r){t.value=n,t.getSnapshot=r,yw(t)&&vw(e)}function gw(e,t,n){return n(function(){yw(t)&&vw(e)})}function yw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!dn(e,n)}catch{return!0}}function vw(e){var t=Qn(e,1);t!==null&&un(t,e,1,-1)}function Dg(e){var t=xn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:e},t.queue=e,e=e.dispatch=EN.bind(null,Ne,e),[t.memoizedState,e]}function ha(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ne.updateQueue,t===null?(t={lastEffect:null,stores:null},Ne.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function xw(){return Yt().memoizedState}function Hl(e,t,n,r){var i=xn();Ne.flags|=e,i.memoizedState=ha(1|t,n,void 0,r===void 0?null:r)}function Zc(e,t,n,r){var i=Yt();r=r===void 0?null:r;var s=void 0;if(Fe!==null){var o=Fe.memoizedState;if(s=o.destroy,r!==null&&yp(r,o.deps)){i.memoizedState=ha(t,n,s,r);return}}Ne.flags|=e,i.memoizedState=ha(1|t,n,s,r)}function Lg(e,t){return Hl(8390656,8,e,t)}function wp(e,t){return Zc(2048,8,e,t)}function ww(e,t){return Zc(4,2,e,t)}function bw(e,t){return Zc(4,4,e,t)}function jw(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 Sw(e,t,n){return n=n!=null?n.concat([e]):null,Zc(4,4,jw.bind(null,t,e),n)}function bp(){}function kw(e,t){var n=Yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&yp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Nw(e,t){var n=Yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&yp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Cw(e,t,n){return ki&21?(dn(n,t)||(n=Ax(),Ne.lanes|=n,Ni|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,xt=!0),e.memoizedState=n)}function NN(e,t){var n=de;de=n!==0&&4>n?n:4,e(!0);var r=nd.transition;nd.transition={};try{e(!1),t()}finally{de=n,nd.transition=r}}function Ew(){return Yt().memoizedState}function CN(e,t,n){var r=Rr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Tw(e))Pw(t,n);else if(n=cw(e,t,n,r),n!==null){var i=dt();un(n,e,r,i),_w(n,t,r)}}function EN(e,t,n){var r=Rr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Tw(e))Pw(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,dn(l,o)){var c=t.interleaved;c===null?(i.next=i,hp(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=cw(e,t,i,r),n!==null&&(i=dt(),un(n,e,r,i),_w(n,t,r))}}function Tw(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function Pw(e,t){Fo=wc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _w(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Jf(e,n)}}var bc={readContext:Gt,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useInsertionEffect:et,useLayoutEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useMutableSource:et,useSyncExternalStore:et,useId:et,unstable_isNewReconciler:!1},TN={readContext:Gt,useCallback:function(e,t){return xn().memoizedState=[e,t===void 0?null:t],e},useContext:Gt,useEffect:Lg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hl(4194308,4,jw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hl(4,2,e,t)},useMemo:function(e,t){var n=xn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=CN.bind(null,Ne,e),[r.memoizedState,e]},useRef:function(e){var t=xn();return e={current:e},t.memoizedState=e},useState:Dg,useDebugValue:bp,useDeferredValue:function(e){return xn().memoizedState=e},useTransition:function(){var e=Dg(!1),t=e[0];return e=NN.bind(null,e[1]),xn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ne,i=xn();if(xe){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),He===null)throw Error(M(349));ki&30||pw(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Lg(gw.bind(null,r,s,e),[e]),r.flags|=2048,ha(9,mw.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=xn(),t=He.identifierPrefix;if(xe){var n=Un,r=Bn;n=(r&~(1<<32-cn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ua++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=kN++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},PN={readContext:Gt,useCallback:kw,useContext:Gt,useEffect:wp,useImperativeHandle:Sw,useInsertionEffect:ww,useLayoutEffect:bw,useMemo:Nw,useReducer:rd,useRef:xw,useState:function(){return rd(da)},useDebugValue:bp,useDeferredValue:function(e){var t=Yt();return Cw(t,Fe.memoizedState,e)},useTransition:function(){var e=rd(da)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:hw,useSyncExternalStore:fw,useId:Ew,unstable_isNewReconciler:!1},_N={readContext:Gt,useCallback:kw,useContext:Gt,useEffect:wp,useImperativeHandle:Sw,useInsertionEffect:ww,useLayoutEffect:bw,useMemo:Nw,useReducer:id,useRef:xw,useState:function(){return id(da)},useDebugValue:bp,useDeferredValue:function(e){var t=Yt();return Fe===null?t.memoizedState=e:Cw(t,Fe.memoizedState,e)},useTransition:function(){var e=id(da)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:hw,useSyncExternalStore:fw,useId:Ew,unstable_isNewReconciler:!1};function nn(e,t){if(e&&e.defaultProps){t=Ce({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ch(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var eu={isMounted:function(e){return(e=e._reactInternals)?Ai(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=dt(),i=Rr(e),s=Wn(r,i);s.payload=t,n!=null&&(s.callback=n),t=_r(e,s,i),t!==null&&(un(t,e,i,r),Bl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=dt(),i=Rr(e),s=Wn(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=_r(e,s,i),t!==null&&(un(t,e,i,r),Bl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=dt(),r=Rr(e),i=Wn(n,r);i.tag=2,t!=null&&(i.callback=t),t=_r(e,i,r),t!==null&&(un(t,e,r,n),Bl(t,e,r))}};function zg(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!ia(n,r)||!ia(i,s):!0}function Aw(e,t,n){var r=!1,i=Dr,s=t.contextType;return typeof s=="object"&&s!==null?s=Gt(s):(i=bt(t)?ji:ot.current,r=t.contextTypes,s=(r=r!=null)?Ps(e,i):Dr),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=eu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function $g(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&eu.enqueueReplaceState(t,t.state,null)}function Eh(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},fp(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Gt(s):(s=bt(t)?ji:ot.current,i.context=Ps(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Ch(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&eu.enqueueReplaceState(i,i.state,null),vc(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Is(e,t){try{var n="",r=t;do n+=ik(r),r=r.return;while(r);var i=n}catch(s){i=`
Error generating stack: `+s.message+`
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function sd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Th(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var AN=typeof WeakMap=="function"?WeakMap:Map;function Rw(e,t,n){n=Wn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sc||(Sc=!0,zh=r),Th(e,t)},n}function Iw(e,t,n){n=Wn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Th(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Th(e,t),typeof r!="function"&&(Ar===null?Ar=new Set([this]):Ar.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Fg(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new AN;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=WN.bind(null,e,t,n),t.then(e,e))}function Vg(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 Bg(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Wn(-1,1),t.tag=2,_r(n,t,1))),n.lanes|=1),e)}var RN=tr.ReactCurrentOwner,xt=!1;function lt(e,t,n,r){t.child=e===null?lw(t,null,n,r):As(t,e.child,n,r)}function Ug(e,t,n,r,i){n=n.render;var s=t.ref;return hs(t,i),r=vp(e,t,n,r,s,i),n=xp(),e!==null&&!xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xn(e,t,i)):(xe&&n&&op(t),t.flags|=1,lt(e,t,r,i),t.child)}function Hg(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Pp(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Mw(e,t,s,r,i)):(e=Gl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:ia,n(o,r)&&e.ref===t.ref)return Xn(e,t,i)}return t.flags|=1,e=Ir(s,r),e.ref=t.ref,e.return=t,t.child=e}function Mw(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(ia(s,r)&&e.ref===t.ref)if(xt=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(xt=!0);else return t.lanes=e.lanes,Xn(e,t,i)}return Ph(e,t,n,r,i)}function Ow(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},pe(ns,Tt),Tt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,pe(ns,Tt),Tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,pe(ns,Tt),Tt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,pe(ns,Tt),Tt|=r;return lt(e,t,i,n),t.child}function Dw(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ph(e,t,n,r,i){var s=bt(n)?ji:ot.current;return s=Ps(t,s),hs(t,i),n=vp(e,t,n,r,s,i),r=xp(),e!==null&&!xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xn(e,t,i)):(xe&&r&&op(t),t.flags|=1,lt(e,t,n,i),t.child)}function Wg(e,t,n,r,i){if(bt(n)){var s=!0;fc(t)}else s=!1;if(hs(t,i),t.stateNode===null)Wl(e,t),Aw(t,n,r),Eh(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Gt(u):(u=bt(n)?ji:ot.current,u=Ps(t,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||c!==u)&&$g(t,o,r,u),fr=!1;var f=t.memoizedState;o.state=f,vc(t,r,o,i),c=t.memoizedState,l!==r||f!==c||wt.current||fr?(typeof d=="function"&&(Ch(t,n,d,r),c=t.memoizedState),(l=fr||zg(t,n,l,r,f,c,u))?(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=r,t.memoizedState=c),o.props=r,o.state=c,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,uw(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:nn(t.type,l),o.props=u,h=t.pendingProps,f=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=Gt(c):(c=bt(n)?ji:ot.current,c=Ps(t,c));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==h||f!==c)&&$g(t,o,r,c),fr=!1,f=t.memoizedState,o.state=f,vc(t,r,o,i);var x=t.memoizedState;l!==h||f!==x||wt.current||fr?(typeof p=="function"&&(Ch(t,n,p,r),x=t.memoizedState),(u=fr||zg(t,n,u,r,f,x,c)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,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=r,t.memoizedState=x),o.props=r,o.state=x,o.context=c,r=u):(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),r=!1)}return _h(e,t,n,r,s,i)}function _h(e,t,n,r,i,s){Dw(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&_g(t,n,!1),Xn(e,t,s);r=t.stateNode,RN.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=As(t,e.child,null,s),t.child=As(t,null,l,s)):lt(e,t,l,s),t.memoizedState=r.state,i&&_g(t,n,!0),t.child}function Lw(e){var t=e.stateNode;t.pendingContext?Pg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Pg(e,t.context,!1),pp(e,t.containerInfo)}function Kg(e,t,n,r,i){return _s(),lp(i),t.flags|=256,lt(e,t,n,r),t.child}var Ah={dehydrated:null,treeContext:null,retryLane:0};function Rh(e){return{baseLanes:e,cachePool:null,transitions:null}}function zw(e,t,n){var r=t.pendingProps,i=Se.current,s=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),pe(Se,i&1),e===null)return kh(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=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=ru(o,r,0,null),e=wi(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Rh(n),t.memoizedState=Ah,e):jp(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return IN(e,t,o,r,l,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,l=i.sibling;var c={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Ir(i,c),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Ir(l,s):(s=wi(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?Rh(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Ah,r}return s=e.child,e=s.sibling,r=Ir(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function jp(e,t){return t=ru({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fl(e,t,n,r){return r!==null&&lp(r),As(t,e.child,null,n),e=jp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function IN(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=sd(Error(M(422))),fl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=ru({mode:"visible",children:r.children},i,0,null),s=wi(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&As(t,e.child,null,o),t.child.memoizedState=Rh(o),t.memoizedState=Ah,s);if(!(t.mode&1))return fl(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(M(419)),r=sd(s,r,void 0),fl(e,t,o,r)}if(l=(o&e.childLanes)!==0,xt||l){if(r=He,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Qn(e,i),un(r,e,i,-1))}return Tp(),r=sd(Error(M(421))),fl(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=KN.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,_t=Pr(i.nextSibling),At=t,xe=!0,ln=null,e!==null&&(Ut[Ht++]=Bn,Ut[Ht++]=Un,Ut[Ht++]=Si,Bn=e.id,Un=e.overflow,Si=t),t=jp(t,r.children),t.flags|=4096,t)}function qg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Nh(e.return,t,n)}function od(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function $w(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(lt(e,t,r.children,n),r=Se.current,r&2)r=r&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&&qg(e,n,t);else if(e.tag===19)qg(e,n,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}r&=1}if(pe(Se,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&xc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),od(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&xc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}od(t,!0,n,null,s);break;case"together":od(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ni|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,n=Ir(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ir(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function MN(e,t,n){switch(t.tag){case 3:Lw(t),_s();break;case 5:dw(t);break;case 1:bt(t.type)&&fc(t);break;case 4:pp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;pe(gc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(pe(Se,Se.current&1),t.flags|=128,null):n&t.child.childLanes?zw(e,t,n):(pe(Se,Se.current&1),e=Xn(e,t,n),e!==null?e.sibling:null);pe(Se,Se.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $w(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),pe(Se,Se.current),r)break;return null;case 22:case 23:return t.lanes=0,Ow(e,t,n)}return Xn(e,t,n)}var Fw,Ih,Vw,Bw;Fw=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ih=function(){};Vw=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,fi(Cn.current);var s=null;switch(n){case"input":i=th(e,i),r=th(e,r),s=[];break;case"select":i=Ce({},i,{value:void 0}),r=Ce({},r,{value:void 0}),s=[];break;case"textarea":i=ih(e,i),r=ih(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=dc)}oh(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Xo.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(s=s||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(s=s||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Xo.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&ye("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Bw=function(e,t,n,r){n!==r&&(t.flags|=4)};function yo(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function tt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ON(e,t,n){var r=t.pendingProps;switch(ap(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tt(t),null;case 1:return bt(t.type)&&hc(),tt(t),null;case 3:return r=t.stateNode,Rs(),ve(wt),ve(ot),gp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(dl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ln!==null&&(Vh(ln),ln=null))),Ih(e,t),tt(t),null;case 5:mp(t);var i=fi(ca.current);if(n=t.type,e!==null&&t.stateNode!=null)Vw(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(M(166));return tt(t),null}if(e=fi(Cn.current),dl(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Sn]=t,r[aa]=s,e=(t.mode&1)!==0,n){case"dialog":ye("cancel",r),ye("close",r);break;case"iframe":case"object":case"embed":ye("load",r);break;case"video":case"audio":for(i=0;i<Ao.length;i++)ye(Ao[i],r);break;case"source":ye("error",r);break;case"img":case"image":case"link":ye("error",r),ye("load",r);break;case"details":ye("toggle",r);break;case"input":ng(r,s),ye("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ye("invalid",r);break;case"textarea":ig(r,s),ye("invalid",r)}oh(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&ul(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&ul(r.textContent,l,e),i=["children",""+l]):Xo.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&ye("scroll",r)}switch(n){case"input":nl(r),rg(r,s,!0);break;case"textarea":nl(r),sg(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=dc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=gx(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Sn]=t,e[aa]=r,Fw(e,t,!1,!1),t.stateNode=e;e:{switch(o=ah(n,r),n){case"dialog":ye("cancel",e),ye("close",e),i=r;break;case"iframe":case"object":case"embed":ye("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ao.length;i++)ye(Ao[i],e);i=r;break;case"source":ye("error",e),i=r;break;case"img":case"image":case"link":ye("error",e),ye("load",e),i=r;break;case"details":ye("toggle",e),i=r;break;case"input":ng(e,r),i=th(e,r),ye("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ce({},r,{value:void 0}),ye("invalid",e);break;case"textarea":ig(e,r),i=ih(e,r),ye("invalid",e);break;default:i=r}oh(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var c=l[s];s==="style"?xx(e,c):s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&yx(e,c)):s==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Jo(e,c):typeof c=="number"&&Jo(e,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Xo.hasOwnProperty(s)?c!=null&&s==="onScroll"&&ye("scroll",e):c!=null&&Kf(e,s,c,o))}switch(n){case"input":nl(e),rg(e,r,!1);break;case"textarea":nl(e),sg(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Or(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?ls(e,!!r.multiple,s,!1):r.defaultValue!=null&&ls(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=dc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return tt(t),null;case 6:if(e&&t.stateNode!=null)Bw(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(M(166));if(n=fi(ca.current),fi(Cn.current),dl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Sn]=t,(s=r.nodeValue!==n)&&(e=At,e!==null))switch(e.tag){case 3:ul(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ul(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Sn]=t,t.stateNode=r}return tt(t),null;case 13:if(ve(Se),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xe&&_t!==null&&t.mode&1&&!(t.flags&128))ow(),_s(),t.flags|=98560,s=!1;else if(s=dl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(M(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(M(317));s[Sn]=t}else _s(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;tt(t),s=!1}else ln!==null&&(Vh(ln),ln=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Se.current&1?Ve===0&&(Ve=3):Tp())),t.updateQueue!==null&&(t.flags|=4),tt(t),null);case 4:return Rs(),Ih(e,t),e===null&&sa(t.stateNode.containerInfo),tt(t),null;case 10:return dp(t.type._context),tt(t),null;case 17:return bt(t.type)&&hc(),tt(t),null;case 19:if(ve(Se),s=t.memoizedState,s===null)return tt(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)yo(s,!1);else{if(Ve!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=xc(e),o!==null){for(t.flags|=128,yo(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return pe(Se,Se.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ie()>Ms&&(t.flags|=128,r=!0,yo(s,!1),t.lanes=4194304)}else{if(!r)if(e=xc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!xe)return tt(t),null}else 2*Ie()-s.renderingStartTime>Ms&&n!==1073741824&&(t.flags|=128,r=!0,yo(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ie(),t.sibling=null,n=Se.current,pe(Se,r?n&1|2:n&1),t):(tt(t),null);case 22:case 23:return Ep(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Tt&1073741824&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function DN(e,t){switch(ap(t),t.tag){case 1:return bt(t.type)&&hc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rs(),ve(wt),ve(ot),gp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mp(t),null;case 13:if(ve(Se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));_s()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(Se),null;case 4:return Rs(),null;case 10:return dp(t.type._context),null;case 22:case 23:return Ep(),null;case 24:return null;default:return null}}var pl=!1,it=!1,LN=typeof WeakSet=="function"?WeakSet:Set,U=null;function ts(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ae(e,t,r)}else n.current=null}function Mh(e,t,n){try{n()}catch(r){Ae(e,t,r)}}var Gg=!1;function zN(e,t){if(yh=lc,e=qx(),sp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||i!==0&&h.nodeType!==3||(l=o+i),h!==s||r!==0&&h.nodeType!==3||(c=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(p=h.firstChild)!==null;)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++u===i&&(l=o),f===s&&++d===r&&(c=o),(p=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=p}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(vh={focusedElem:e,selectionRange:n},lc=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var g=x.memoizedProps,b=x.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:nn(t.type,g),b);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(j){Ae(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return x=Gg,Gg=!1,x}function Vo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Mh(t,n,s)}i=i.next}while(i!==r)}}function tu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Oh(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Uw(e){var t=e.alternate;t!==null&&(e.alternate=null,Uw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Sn],delete t[aa],delete t[bh],delete t[wN],delete t[bN])),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 Hw(e){return e.tag===5||e.tag===3||e.tag===4}function Yg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hw(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 Dh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=dc));else if(r!==4&&(e=e.child,e!==null))for(Dh(e,t,n),e=e.sibling;e!==null;)Dh(e,t,n),e=e.sibling}function Lh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Lh(e,t,n),e=e.sibling;e!==null;)Lh(e,t,n),e=e.sibling}var Ge=null,on=!1;function ir(e,t,n){for(n=n.child;n!==null;)Ww(e,t,n),n=n.sibling}function Ww(e,t,n){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(qc,n)}catch{}switch(n.tag){case 5:it||ts(n,t);case 6:var r=Ge,i=on;Ge=null,ir(e,t,n),Ge=r,on=i,Ge!==null&&(on?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(on?(e=Ge,n=n.stateNode,e.nodeType===8?Zu(e.parentNode,n):e.nodeType===1&&Zu(e,n),na(e)):Zu(Ge,n.stateNode));break;case 4:r=Ge,i=on,Ge=n.stateNode.containerInfo,on=!0,ir(e,t,n),Ge=r,on=i;break;case 0:case 11:case 14:case 15:if(!it&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Mh(n,t,o),i=i.next}while(i!==r)}ir(e,t,n);break;case 1:if(!it&&(ts(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ae(n,t,l)}ir(e,t,n);break;case 21:ir(e,t,n);break;case 22:n.mode&1?(it=(r=it)||n.memoizedState!==null,ir(e,t,n),it=r):ir(e,t,n);break;default:ir(e,t,n)}}function Qg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new LN),t.forEach(function(r){var i=qN.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function en(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:Ge=l.stateNode,on=!1;break e;case 3:Ge=l.stateNode.containerInfo,on=!0;break e;case 4:Ge=l.stateNode.containerInfo,on=!0;break e}l=l.return}if(Ge===null)throw Error(M(160));Ww(s,o,i),Ge=null,on=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(u){Ae(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Kw(t,e),t=t.sibling}function Kw(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(en(t,e),yn(e),r&4){try{Vo(3,e,e.return),tu(3,e)}catch(g){Ae(e,e.return,g)}try{Vo(5,e,e.return)}catch(g){Ae(e,e.return,g)}}break;case 1:en(t,e),yn(e),r&512&&n!==null&&ts(n,n.return);break;case 5:if(en(t,e),yn(e),r&512&&n!==null&&ts(n,n.return),e.flags&32){var i=e.stateNode;try{Jo(i,"")}catch(g){Ae(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&px(i,s),ah(l,o);var u=ah(l,s);for(o=0;o<c.length;o+=2){var d=c[o],h=c[o+1];d==="style"?xx(i,h):d==="dangerouslySetInnerHTML"?yx(i,h):d==="children"?Jo(i,h):Kf(i,d,h,u)}switch(l){case"input":nh(i,s);break;case"textarea":mx(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var p=s.value;p!=null?ls(i,!!s.multiple,p,!1):f!==!!s.multiple&&(s.defaultValue!=null?ls(i,!!s.multiple,s.defaultValue,!0):ls(i,!!s.multiple,s.multiple?[]:"",!1))}i[aa]=s}catch(g){Ae(e,e.return,g)}}break;case 6:if(en(t,e),yn(e),r&4){if(e.stateNode===null)throw Error(M(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(g){Ae(e,e.return,g)}}break;case 3:if(en(t,e),yn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{na(t.containerInfo)}catch(g){Ae(e,e.return,g)}break;case 4:en(t,e),yn(e);break;case 13:en(t,e),yn(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Np=Ie())),r&4&&Qg(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(it=(u=it)||d,en(t,e),it=u):en(t,e),yn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(U=e,d=e.child;d!==null;){for(h=U=d;U!==null;){switch(f=U,p=f.child,f.tag){case 0:case 11:case 14:case 15:Vo(4,f,f.return);break;case 1:ts(f,f.return);var x=f.stateNode;if(typeof x.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(g){Ae(r,n,g)}}break;case 5:ts(f,f.return);break;case 22:if(f.memoizedState!==null){Jg(h);continue}}p!==null?(p.return=f,U=p):Jg(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{i=h.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=h.stateNode,c=h.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=vx("display",o))}catch(g){Ae(e,e.return,g)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(g){Ae(e,e.return,g)}}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;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:en(t,e),yn(e),r&4&&Qg(e);break;case 21:break;default:en(t,e),yn(e)}}function yn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Hw(n)){var r=n;break e}n=n.return}throw Error(M(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Jo(i,""),r.flags&=-33);var s=Yg(e);Lh(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=Yg(e);Dh(e,l,o);break;default:throw Error(M(161))}}catch(c){Ae(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $N(e,t,n){U=e,qw(e)}function qw(e,t,n){for(var r=(e.mode&1)!==0;U!==null;){var i=U,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||pl;if(!o){var l=i.alternate,c=l!==null&&l.memoizedState!==null||it;l=pl;var u=it;if(pl=o,(it=c)&&!u)for(U=i;U!==null;)o=U,c=o.child,o.tag===22&&o.memoizedState!==null?Zg(i):c!==null?(c.return=o,U=c):Zg(i);for(;s!==null;)U=s,qw(s),s=s.sibling;U=i,pl=l,it=u}Xg(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,U=s):Xg(e)}}function Xg(e){for(;U!==null;){var t=U;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:it||tu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!it)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:nn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Og(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Og(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&na(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(M(163))}it||t.flags&512&&Oh(t)}catch(f){Ae(t,t.return,f)}}if(t===e){U=null;break}if(n=t.sibling,n!==null){n.return=t.return,U=n;break}U=t.return}}function Jg(e){for(;U!==null;){var t=U;if(t===e){U=null;break}var n=t.sibling;if(n!==null){n.return=t.return,U=n;break}U=t.return}}function Zg(e){for(;U!==null;){var t=U;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{tu(4,t)}catch(c){Ae(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(c){Ae(t,i,c)}}var s=t.return;try{Oh(t)}catch(c){Ae(t,s,c)}break;case 5:var o=t.return;try{Oh(t)}catch(c){Ae(t,o,c)}}}catch(c){Ae(t,t.return,c)}if(t===e){U=null;break}var l=t.sibling;if(l!==null){l.return=t.return,U=l;break}U=t.return}}var FN=Math.ceil,jc=tr.ReactCurrentDispatcher,Sp=tr.ReactCurrentOwner,Kt=tr.ReactCurrentBatchConfig,ce=0,He=null,Oe=null,Qe=0,Tt=0,ns=Kr(0),Ve=0,fa=null,Ni=0,nu=0,kp=0,Bo=null,yt=null,Np=0,Ms=1/0,$n=null,Sc=!1,zh=null,Ar=null,ml=!1,kr=null,kc=0,Uo=0,$h=null,Kl=-1,ql=0;function dt(){return ce&6?Ie():Kl!==-1?Kl:Kl=Ie()}function Rr(e){return e.mode&1?ce&2&&Qe!==0?Qe&-Qe:SN.transition!==null?(ql===0&&(ql=Ax()),ql):(e=de,e!==0||(e=window.event,e=e===void 0?16:zx(e.type)),e):1}function un(e,t,n,r){if(50<Uo)throw Uo=0,$h=null,Error(M(185));Ia(e,n,r),(!(ce&2)||e!==He)&&(e===He&&(!(ce&2)&&(nu|=n),Ve===4&&gr(e,Qe)),jt(e,r),n===1&&ce===0&&!(t.mode&1)&&(Ms=Ie()+500,Jc&&qr()))}function jt(e,t){var n=e.callbackNode;Sk(e,t);var r=ac(e,e===He?Qe:0);if(r===0)n!==null&&lg(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&lg(n),t===1)e.tag===0?jN(ey.bind(null,e)):rw(ey.bind(null,e)),vN(function(){!(ce&6)&&qr()}),n=null;else{switch(Rx(r)){case 1:n=Xf;break;case 4:n=Px;break;case 16:n=oc;break;case 536870912:n=_x;break;default:n=oc}n=t1(n,Gw.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Gw(e,t){if(Kl=-1,ql=0,ce&6)throw Error(M(327));var n=e.callbackNode;if(fs()&&e.callbackNode!==n)return null;var r=ac(e,e===He?Qe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Nc(e,r);else{t=r;var i=ce;ce|=2;var s=Qw();(He!==e||Qe!==t)&&($n=null,Ms=Ie()+500,xi(e,t));do try{UN();break}catch(l){Yw(e,l)}while(!0);up(),jc.current=s,ce=i,Oe!==null?t=0:(He=null,Qe=0,t=Ve)}if(t!==0){if(t===2&&(i=hh(e),i!==0&&(r=i,t=Fh(e,i))),t===1)throw n=fa,xi(e,0),gr(e,r),jt(e,Ie()),n;if(t===6)gr(e,r);else{if(i=e.current.alternate,!(r&30)&&!VN(i)&&(t=Nc(e,r),t===2&&(s=hh(e),s!==0&&(r=s,t=Fh(e,s))),t===1))throw n=fa,xi(e,0),gr(e,r),jt(e,Ie()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(M(345));case 2:ai(e,yt,$n);break;case 3:if(gr(e,r),(r&130023424)===r&&(t=Np+500-Ie(),10<t)){if(ac(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){dt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=wh(ai.bind(null,e,yt,$n),t);break}ai(e,yt,$n);break;case 4:if(gr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-cn(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=Ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*FN(r/1960))-r,10<r){e.timeoutHandle=wh(ai.bind(null,e,yt,$n),r);break}ai(e,yt,$n);break;case 5:ai(e,yt,$n);break;default:throw Error(M(329))}}}return jt(e,Ie()),e.callbackNode===n?Gw.bind(null,e):null}function Fh(e,t){var n=Bo;return e.current.memoizedState.isDehydrated&&(xi(e,t).flags|=256),e=Nc(e,t),e!==2&&(t=yt,yt=n,t!==null&&Vh(t)),e}function Vh(e){yt===null?yt=e:yt.push.apply(yt,e)}function VN(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!dn(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 gr(e,t){for(t&=~kp,t&=~nu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-cn(t),r=1<<n;e[n]=-1,t&=~r}}function ey(e){if(ce&6)throw Error(M(327));fs();var t=ac(e,0);if(!(t&1))return jt(e,Ie()),null;var n=Nc(e,t);if(e.tag!==0&&n===2){var r=hh(e);r!==0&&(t=r,n=Fh(e,r))}if(n===1)throw n=fa,xi(e,0),gr(e,t),jt(e,Ie()),n;if(n===6)throw Error(M(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ai(e,yt,$n),jt(e,Ie()),null}function Cp(e,t){var n=ce;ce|=1;try{return e(t)}finally{ce=n,ce===0&&(Ms=Ie()+500,Jc&&qr())}}function Ci(e){kr!==null&&kr.tag===0&&!(ce&6)&&fs();var t=ce;ce|=1;var n=Kt.transition,r=de;try{if(Kt.transition=null,de=1,e)return e()}finally{de=r,Kt.transition=n,ce=t,!(ce&6)&&qr()}}function Ep(){Tt=ns.current,ve(ns)}function xi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,yN(n)),Oe!==null)for(n=Oe.return;n!==null;){var r=n;switch(ap(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&hc();break;case 3:Rs(),ve(wt),ve(ot),gp();break;case 5:mp(r);break;case 4:Rs();break;case 13:ve(Se);break;case 19:ve(Se);break;case 10:dp(r.type._context);break;case 22:case 23:Ep()}n=n.return}if(He=e,Oe=e=Ir(e.current,null),Qe=Tt=t,Ve=0,fa=null,kp=nu=Ni=0,yt=Bo=null,hi!==null){for(t=0;t<hi.length;t++)if(n=hi[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}hi=null}return e}function Yw(e,t){do{var n=Oe;try{if(up(),Ul.current=bc,wc){for(var r=Ne.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}wc=!1}if(ki=0,Ue=Fe=Ne=null,Fo=!1,ua=0,Sp.current=null,n===null||n.return===null){Ve=1,fa=t,Oe=null;break}e:{var s=e,o=n.return,l=n,c=t;if(t=Qe,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=Vg(o);if(p!==null){p.flags&=-257,Bg(p,o,l,s,t),p.mode&1&&Fg(s,u,t),t=p,c=u;var x=t.updateQueue;if(x===null){var g=new Set;g.add(c),t.updateQueue=g}else x.add(c);break e}else{if(!(t&1)){Fg(s,u,t),Tp();break e}c=Error(M(426))}}else if(xe&&l.mode&1){var b=Vg(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Bg(b,o,l,s,t),lp(Is(c,l));break e}}s=c=Is(c,l),Ve!==4&&(Ve=2),Bo===null?Bo=[s]:Bo.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=Rw(s,c,t);Mg(s,m);break e;case 1:l=c;var y=s.type,w=s.stateNode;if(!(s.flags&128)&&(typeof y.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Ar===null||!Ar.has(w)))){s.flags|=65536,t&=-t,s.lanes|=t;var j=Iw(s,l,t);Mg(s,j);break e}}s=s.return}while(s!==null)}Jw(n)}catch(S){t=S,Oe===n&&n!==null&&(Oe=n=n.return);continue}break}while(!0)}function Qw(){var e=jc.current;return jc.current=bc,e===null?bc:e}function Tp(){(Ve===0||Ve===3||Ve===2)&&(Ve=4),He===null||!(Ni&268435455)&&!(nu&268435455)||gr(He,Qe)}function Nc(e,t){var n=ce;ce|=2;var r=Qw();(He!==e||Qe!==t)&&($n=null,xi(e,t));do try{BN();break}catch(i){Yw(e,i)}while(!0);if(up(),ce=n,jc.current=r,Oe!==null)throw Error(M(261));return He=null,Qe=0,Ve}function BN(){for(;Oe!==null;)Xw(Oe)}function UN(){for(;Oe!==null&&!pk();)Xw(Oe)}function Xw(e){var t=e1(e.alternate,e,Tt);e.memoizedProps=e.pendingProps,t===null?Jw(e):Oe=t,Sp.current=null}function Jw(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=DN(n,t),n!==null){n.flags&=32767,Oe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ve=6,Oe=null;return}}else if(n=ON(n,t,Tt),n!==null){Oe=n;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);Ve===0&&(Ve=5)}function ai(e,t,n){var r=de,i=Kt.transition;try{Kt.transition=null,de=1,HN(e,t,n,r)}finally{Kt.transition=i,de=r}return null}function HN(e,t,n,r){do fs();while(kr!==null);if(ce&6)throw Error(M(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(M(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(kk(e,s),e===He&&(Oe=He=null,Qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ml||(ml=!0,t1(oc,function(){return fs(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Kt.transition,Kt.transition=null;var o=de;de=1;var l=ce;ce|=4,Sp.current=null,zN(e,n),Kw(n,e),uN(vh),lc=!!yh,vh=yh=null,e.current=n,$N(n),mk(),ce=l,de=o,Kt.transition=s}else e.current=n;if(ml&&(ml=!1,kr=e,kc=i),s=e.pendingLanes,s===0&&(Ar=null),vk(n.stateNode),jt(e,Ie()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Sc)throw Sc=!1,e=zh,zh=null,e;return kc&1&&e.tag!==0&&fs(),s=e.pendingLanes,s&1?e===$h?Uo++:(Uo=0,$h=e):Uo=0,qr(),null}function fs(){if(kr!==null){var e=Rx(kc),t=Kt.transition,n=de;try{if(Kt.transition=null,de=16>e?16:e,kr===null)var r=!1;else{if(e=kr,kr=null,kc=0,ce&6)throw Error(M(331));var i=ce;for(ce|=4,U=e.current;U!==null;){var s=U,o=s.child;if(U.flags&16){var l=s.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(U=u;U!==null;){var d=U;switch(d.tag){case 0:case 11:case 15:Vo(8,d,s)}var h=d.child;if(h!==null)h.return=d,U=h;else for(;U!==null;){d=U;var f=d.sibling,p=d.return;if(Uw(d),d===u){U=null;break}if(f!==null){f.return=p,U=f;break}U=p}}}var x=s.alternate;if(x!==null){var g=x.child;if(g!==null){x.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}U=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,U=o;else e:for(;U!==null;){if(s=U,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Vo(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,U=m;break e}U=s.return}}var y=e.current;for(U=y;U!==null;){o=U;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,U=w;else e:for(o=y;U!==null;){if(l=U,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:tu(9,l)}}catch(S){Ae(l,l.return,S)}if(l===o){U=null;break e}var j=l.sibling;if(j!==null){j.return=l.return,U=j;break e}U=l.return}}if(ce=i,qr(),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot(qc,e)}catch{}r=!0}return r}finally{de=n,Kt.transition=t}}return!1}function ty(e,t,n){t=Is(n,t),t=Rw(e,t,1),e=_r(e,t,1),t=dt(),e!==null&&(Ia(e,1,t),jt(e,t))}function Ae(e,t,n){if(e.tag===3)ty(e,e,n);else for(;t!==null;){if(t.tag===3){ty(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ar===null||!Ar.has(r))){e=Is(n,e),e=Iw(t,e,1),t=_r(t,e,1),e=dt(),t!==null&&(Ia(t,1,e),jt(t,e));break}}t=t.return}}function WN(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=dt(),e.pingedLanes|=e.suspendedLanes&n,He===e&&(Qe&n)===n&&(Ve===4||Ve===3&&(Qe&130023424)===Qe&&500>Ie()-Np?xi(e,0):kp|=n),jt(e,t)}function Zw(e,t){t===0&&(e.mode&1?(t=sl,sl<<=1,!(sl&130023424)&&(sl=4194304)):t=1);var n=dt();e=Qn(e,t),e!==null&&(Ia(e,t,n),jt(e,n))}function KN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zw(e,n)}function qN(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),Zw(e,n)}var e1;e1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)xt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return xt=!1,MN(e,t,n);xt=!!(e.flags&131072)}else xt=!1,xe&&t.flags&1048576&&iw(t,mc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wl(e,t),e=t.pendingProps;var i=Ps(t,ot.current);hs(t,n),i=vp(null,t,r,e,i,n);var s=xp();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,bt(r)?(s=!0,fc(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,fp(t),i.updater=eu,t.stateNode=i,i._reactInternals=t,Eh(t,r,e,n),t=_h(null,t,r,!0,s,n)):(t.tag=0,xe&&s&&op(t),lt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=YN(r),e=nn(r,e),i){case 0:t=Ph(null,t,r,e,n);break e;case 1:t=Wg(null,t,r,e,n);break e;case 11:t=Ug(null,t,r,e,n);break e;case 14:t=Hg(null,t,r,nn(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:nn(r,i),Ph(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:nn(r,i),Wg(e,t,r,i,n);case 3:e:{if(Lw(t),e===null)throw Error(M(387));r=t.pendingProps,s=t.memoizedState,i=s.element,uw(e,t),vc(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Is(Error(M(423)),t),t=Kg(e,t,r,n,i);break e}else if(r!==i){i=Is(Error(M(424)),t),t=Kg(e,t,r,n,i);break e}else for(_t=Pr(t.stateNode.containerInfo.firstChild),At=t,xe=!0,ln=null,n=lw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_s(),r===i){t=Xn(e,t,n);break e}lt(e,t,r,n)}t=t.child}return t;case 5:return dw(t),e===null&&kh(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,xh(r,i)?o=null:s!==null&&xh(r,s)&&(t.flags|=32),Dw(e,t),lt(e,t,o,n),t.child;case 6:return e===null&&kh(t),null;case 13:return zw(e,t,n);case 4:return pp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=As(t,null,r,n):lt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:nn(r,i),Ug(e,t,r,i,n);case 7:return lt(e,t,t.pendingProps,n),t.child;case 8:return lt(e,t,t.pendingProps.children,n),t.child;case 12:return lt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,pe(gc,r._currentValue),r._currentValue=o,s!==null)if(dn(s.value,o)){if(s.children===i.children&&!wt.current){t=Xn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(s.tag===1){c=Wn(-1,n&-n),c.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Nh(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(M(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Nh(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}lt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,hs(t,n),i=Gt(i),r=r(i),t.flags|=1,lt(e,t,r,n),t.child;case 14:return r=t.type,i=nn(r,t.pendingProps),i=nn(r.type,i),Hg(e,t,r,i,n);case 15:return Mw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:nn(r,i),Wl(e,t),t.tag=1,bt(r)?(e=!0,fc(t)):e=!1,hs(t,n),Aw(t,r,i),Eh(t,r,i,n),_h(null,t,r,!0,e,n);case 19:return $w(e,t,n);case 22:return Ow(e,t,n)}throw Error(M(156,t.tag))};function t1(e,t){return Tx(e,t)}function GN(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,t,n,r){return new GN(e,t,n,r)}function Pp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YN(e){if(typeof e=="function")return Pp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gf)return 11;if(e===Yf)return 14}return 2}function Ir(e,t){var n=e.alternate;return n===null?(n=Wt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gl(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Pp(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ki:return wi(n.children,i,s,t);case qf:o=8,i|=8;break;case Xd:return e=Wt(12,n,t,i|2),e.elementType=Xd,e.lanes=s,e;case Jd:return e=Wt(13,n,t,i),e.elementType=Jd,e.lanes=s,e;case Zd:return e=Wt(19,n,t,i),e.elementType=Zd,e.lanes=s,e;case dx:return ru(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cx:o=10;break e;case ux:o=9;break e;case Gf:o=11;break e;case Yf:o=14;break e;case hr:o=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=Wt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function wi(e,t,n,r){return e=Wt(7,e,r,t),e.lanes=n,e}function ru(e,t,n,r){return e=Wt(22,e,r,t),e.elementType=dx,e.lanes=n,e.stateNode={isHidden:!1},e}function ad(e,t,n){return e=Wt(6,e,null,t),e.lanes=n,e}function ld(e,t,n){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function QN(e,t,n,r,i){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=Bu(0),this.expirationTimes=Bu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function _p(e,t,n,r,i,s,o,l,c){return e=new QN(e,t,n,l,c),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Wt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fp(s),e}function XN(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Wi,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function n1(e){if(!e)return Dr;e=e._reactInternals;e:{if(Ai(e)!==e||e.tag!==1)throw Error(M(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(bt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(M(171))}if(e.tag===1){var n=e.type;if(bt(n))return nw(e,n,t)}return t}function r1(e,t,n,r,i,s,o,l,c){return e=_p(n,r,!0,e,i,s,o,l,c),e.context=n1(null),n=e.current,r=dt(),i=Rr(n),s=Wn(r,i),s.callback=t??null,_r(n,s,i),e.current.lanes=i,Ia(e,i,r),jt(e,r),e}function iu(e,t,n,r){var i=t.current,s=dt(),o=Rr(i);return n=n1(n),t.context===null?t.context=n:t.pendingContext=n,t=Wn(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=_r(i,t,o),e!==null&&(un(e,i,o,s),Bl(e,i,o)),o}function Cc(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 ny(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ap(e,t){ny(e,t),(e=e.alternate)&&ny(e,t)}function JN(){return null}var i1=typeof reportError=="function"?reportError:function(e){console.error(e)};function Rp(e){this._internalRoot=e}su.prototype.render=Rp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(M(409));iu(e,t,null,null)};su.prototype.unmount=Rp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ci(function(){iu(null,e,null,null)}),t[Yn]=null}};function su(e){this._internalRoot=e}su.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ox();e={blockedOn:null,target:e,priority:t};for(var n=0;n<mr.length&&t!==0&&t<mr[n].priority;n++);mr.splice(n,0,e),n===0&&Lx(e)}};function Ip(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ou(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ry(){}function ZN(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Cc(o);s.call(u)}}var o=r1(t,r,e,0,null,!1,!1,"",ry);return e._reactRootContainer=o,e[Yn]=o.current,sa(e.nodeType===8?e.parentNode:e),Ci(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Cc(c);l.call(u)}}var c=_p(e,0,!1,null,null,!1,!1,"",ry);return e._reactRootContainer=c,e[Yn]=c.current,sa(e.nodeType===8?e.parentNode:e),Ci(function(){iu(t,c,n,r)}),c}function au(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var l=i;i=function(){var c=Cc(o);l.call(c)}}iu(t,o,e,i)}else o=ZN(n,t,e,i,r);return Cc(o)}Ix=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=_o(t.pendingLanes);n!==0&&(Jf(t,n|1),jt(t,Ie()),!(ce&6)&&(Ms=Ie()+500,qr()))}break;case 13:Ci(function(){var r=Qn(e,1);if(r!==null){var i=dt();un(r,e,1,i)}}),Ap(e,1)}};Zf=function(e){if(e.tag===13){var t=Qn(e,134217728);if(t!==null){var n=dt();un(t,e,134217728,n)}Ap(e,134217728)}};Mx=function(e){if(e.tag===13){var t=Rr(e),n=Qn(e,t);if(n!==null){var r=dt();un(n,e,t,r)}Ap(e,t)}};Ox=function(){return de};Dx=function(e,t){var n=de;try{return de=e,t()}finally{de=n}};ch=function(e,t,n){switch(t){case"input":if(nh(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Xc(r);if(!i)throw Error(M(90));fx(r),nh(r,i)}}}break;case"textarea":mx(e,n);break;case"select":t=n.value,t!=null&&ls(e,!!n.multiple,t,!1)}};jx=Cp;Sx=Ci;var eC={usingClientEntryPoint:!1,Events:[Oa,Qi,Xc,wx,bx,Cp]},vo={findFiberByHostInstance:di,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tC={bundleType:vo.bundleType,version:vo.version,rendererPackageName:vo.rendererPackageName,rendererConfig:vo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:tr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Cx(e),e===null?null:e.stateNode},findFiberByHostInstance:vo.findFiberByHostInstance||JN,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 gl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gl.isDisabled&&gl.supportsFiber)try{qc=gl.inject(tC),Nn=gl}catch{}}Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eC;Ot.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ip(t))throw Error(M(200));return XN(e,t,null,n)};Ot.createRoot=function(e,t){if(!Ip(e))throw Error(M(299));var n=!1,r="",i=i1;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=_p(e,1,!1,null,null,n,!1,r,i),e[Yn]=t.current,sa(e.nodeType===8?e.parentNode:e),new Rp(t)};Ot.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(M(188)):(e=Object.keys(e).join(","),Error(M(268,e)));return e=Cx(t),e=e===null?null:e.stateNode,e};Ot.flushSync=function(e){return Ci(e)};Ot.hydrate=function(e,t,n){if(!ou(t))throw Error(M(200));return au(null,e,t,!0,n)};Ot.hydrateRoot=function(e,t,n){if(!Ip(e))throw Error(M(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=i1;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=r1(t,null,e,1,n??null,i,!1,s,o),e[Yn]=t.current,sa(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new su(t)};Ot.render=function(e,t,n){if(!ou(t))throw Error(M(200));return au(null,e,t,!1,n)};Ot.unmountComponentAtNode=function(e){if(!ou(e))throw Error(M(40));return e._reactRootContainer?(Ci(function(){au(null,null,e,!1,function(){e._reactRootContainer=null,e[Yn]=null})}),!0):!1};Ot.unstable_batchedUpdates=Cp;Ot.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ou(n))throw Error(M(200));if(e==null||e._reactInternals===void 0)throw Error(M(38));return au(e,t,n,!1,r)};Ot.version="18.3.1-next-f1338f8080-20240426";function s1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s1)}catch(e){console.error(e)}}s1(),sx.exports=Ot;var La=sx.exports;const o1=Kv(La);var a1,iy=La;a1=iy.createRoot,iy.hydrateRoot;const nC=1,rC=1e6;let cd=0;function iC(){return cd=(cd+1)%Number.MAX_SAFE_INTEGER,cd.toString()}const ud=new Map,sy=e=>{if(ud.has(e))return;const t=setTimeout(()=>{ud.delete(e),Ho({type:"REMOVE_TOAST",toastId:e})},rC);ud.set(e,t)},sC=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,nC)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?sy(n):e.toasts.forEach(r=>{sy(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Yl=[];let Ql={toasts:[]};function Ho(e){Ql=sC(Ql,e),Yl.forEach(t=>{t(Ql)})}function oC({...e}){const t=iC(),n=i=>Ho({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>Ho({type:"DISMISS_TOAST",toastId:t});return Ho({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function Mp(){const[e,t]=v.useState(Ql);return v.useEffect(()=>(Yl.push(t),()=>{const n=Yl.indexOf(t);n>-1&&Yl.splice(n,1)}),[e]),{...e,toast:oC,dismiss:n=>Ho({type:"DISMISS_TOAST",toastId:n})}}function we(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function aC(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function l1(...e){return t=>e.forEach(n=>aC(n,t))}function ht(...e){return v.useCallback(l1(...e),e)}function lC(e,t=[]){let n=[];function r(s,o){const l=v.createContext(o),c=n.length;n=[...n,o];function u(h){const{scope:f,children:p,...x}=h,g=(f==null?void 0:f[e][c])||l,b=v.useMemo(()=>x,Object.values(x));return a.jsx(g.Provider,{value:b,children:p})}function d(h,f){const p=(f==null?void 0:f[e][c])||l,x=v.useContext(p);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,d]}const i=()=>{const s=n.map(o=>v.createContext(o));return function(l){const c=(l==null?void 0:l[e])||s;return v.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return i.scopeName=e,[r,cC(i,...t)]}function cC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((l,{useScope:c,scopeName:u})=>{const h=c(s)[`__scope${u}`];return{...l,...h}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var Os=v.forwardRef((e,t)=>{const{children:n,...r}=e,i=v.Children.toArray(n),s=i.find(uC);if(s){const o=s.props.children,l=i.map(c=>c===s?v.Children.count(o)>1?v.Children.only(null):v.isValidElement(o)?o.props.children:null:c);return a.jsx(Bh,{...r,ref:t,children:v.isValidElement(o)?v.cloneElement(o,void 0,l):null})}return a.jsx(Bh,{...r,ref:t,children:n})});Os.displayName="Slot";var Bh=v.forwardRef((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const i=hC(n);return v.cloneElement(n,{...dC(r,n.props),ref:t?l1(t,i):i})}return v.Children.count(n)>1?v.Children.only(null):null});Bh.displayName="SlotClone";var c1=({children:e})=>a.jsx(a.Fragment,{children:e});function uC(e){return v.isValidElement(e)&&e.type===c1}function dC(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...l)=>{s(...l),i(...l)}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function hC(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function fC(e){const t=e+"CollectionProvider",[n,r]=lC(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:x,children:g}=p,b=T.useRef(null),m=T.useRef(new Map).current;return a.jsx(i,{scope:x,itemMap:m,collectionRef:b,children:g})};o.displayName=t;const l=e+"CollectionSlot",c=T.forwardRef((p,x)=>{const{scope:g,children:b}=p,m=s(l,g),y=ht(x,m.collectionRef);return a.jsx(Os,{ref:y,children:b})});c.displayName=l;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=T.forwardRef((p,x)=>{const{scope:g,children:b,...m}=p,y=T.useRef(null),w=ht(x,y),j=s(u,g);return T.useEffect(()=>(j.itemMap.set(y,{ref:y,...m}),()=>void j.itemMap.delete(y))),a.jsx(Os,{[d]:"",ref:w,children:b})});h.displayName=u;function f(p){const x=s(e+"CollectionConsumer",p);return T.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const m=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((j,S)=>m.indexOf(j.ref.current)-m.indexOf(S.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:c,ItemSlot:h},f,r]}function pC(e,t){const n=v.createContext(t),r=s=>{const{children:o,...l}=s,c=v.useMemo(()=>l,Object.values(l));return a.jsx(n.Provider,{value:c,children:o})};r.displayName=e+"Provider";function i(s){const o=v.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,i]}function Op(e,t=[]){let n=[];function r(s,o){const l=v.createContext(o),c=n.length;n=[...n,o];const u=h=>{var m;const{scope:f,children:p,...x}=h,g=((m=f==null?void 0:f[e])==null?void 0:m[c])||l,b=v.useMemo(()=>x,Object.values(x));return a.jsx(g.Provider,{value:b,children:p})};u.displayName=s+"Provider";function d(h,f){var g;const p=((g=f==null?void 0:f[e])==null?void 0:g[c])||l,x=v.useContext(p);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,d]}const i=()=>{const s=n.map(o=>v.createContext(o));return function(l){const c=(l==null?void 0:l[e])||s;return v.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return i.scopeName=e,[r,mC(i,...t)]}function mC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((l,{useScope:c,scopeName:u})=>{const h=c(s)[`__scope${u}`];return{...l,...h}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var gC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Le=gC.reduce((e,t)=>{const n=v.forwardRef((r,i)=>{const{asChild:s,...o}=r,l=s?Os:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(l,{...o,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function u1(e,t){e&&La.flushSync(()=>e.dispatchEvent(t))}function Qt(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function yC(e,t=globalThis==null?void 0:globalThis.document){const n=Qt(e);v.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var vC="DismissableLayer",Uh="dismissableLayer.update",xC="dismissableLayer.pointerDownOutside",wC="dismissableLayer.focusOutside",oy,d1=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lu=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:l,...c}=e,u=v.useContext(d1),[d,h]=v.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=v.useState({}),x=ht(t,k=>h(k)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=g.indexOf(b),y=d?g.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,j=y>=m,S=jC(k=>{const C=k.target,_=[...u.branches].some(I=>I.contains(C));!j||_||(i==null||i(k),o==null||o(k),k.defaultPrevented||l==null||l())},f),N=SC(k=>{const C=k.target;[...u.branches].some(I=>I.contains(C))||(s==null||s(k),o==null||o(k),k.defaultPrevented||l==null||l())},f);return yC(k=>{y===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},f),v.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(oy=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ay(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=oy)}},[d,f,n,u]),v.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ay())},[d,u]),v.useEffect(()=>{const k=()=>p({});return document.addEventListener(Uh,k),()=>document.removeEventListener(Uh,k)},[]),a.jsx(Le.div,{...c,ref:x,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:we(e.onFocusCapture,N.onFocusCapture),onBlurCapture:we(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:we(e.onPointerDownCapture,S.onPointerDownCapture)})});lu.displayName=vC;var bC="DismissableLayerBranch",h1=v.forwardRef((e,t)=>{const n=v.useContext(d1),r=v.useRef(null),i=ht(t,r);return v.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),a.jsx(Le.div,{...e,ref:i})});h1.displayName=bC;function jC(e,t=globalThis==null?void 0:globalThis.document){const n=Qt(e),r=v.useRef(!1),i=v.useRef(()=>{});return v.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let c=function(){f1(xC,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function SC(e,t=globalThis==null?void 0:globalThis.document){const n=Qt(e),r=v.useRef(!1);return v.useEffect(()=>{const i=s=>{s.target&&!r.current&&f1(wC,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ay(){const e=new CustomEvent(Uh);document.dispatchEvent(e)}function f1(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?u1(i,s):i.dispatchEvent(s)}var kC=lu,NC=h1,Lr=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},CC="Portal",Dp=v.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[i,s]=v.useState(!1);Lr(()=>s(!0),[]);const o=n||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?o1.createPortal(a.jsx(Le.div,{...r,ref:t}),o):null});Dp.displayName=CC;function EC(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var Ks=e=>{const{present:t,children:n}=e,r=TC(t),i=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),s=ht(r.ref,PC(i));return typeof n=="function"||r.isPresent?v.cloneElement(i,{ref:s}):null};Ks.displayName="Presence";function TC(e){const[t,n]=v.useState(),r=v.useRef({}),i=v.useRef(e),s=v.useRef("none"),o=e?"mounted":"unmounted",[l,c]=EC(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=yl(r.current);s.current=l==="mounted"?u:"none"},[l]),Lr(()=>{const u=r.current,d=i.current;if(d!==e){const f=s.current,p=yl(u);e?c("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&f!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),Lr(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,h=p=>{const g=yl(r.current).includes(p.animationName);if(p.target===t&&g&&(c("ANIMATION_END"),!i.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=p=>{p.target===t&&(s.current=yl(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:v.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function yl(e){return(e==null?void 0:e.animationName)||"none"}function PC(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function p1({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=_C({defaultProp:t,onChange:n}),s=e!==void 0,o=s?e:r,l=Qt(n),c=v.useCallback(u=>{if(s){const h=typeof u=="function"?u(e):u;h!==e&&l(h)}else i(u)},[s,e,i,l]);return[o,c]}function _C({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,i=v.useRef(r),s=Qt(t);return v.useEffect(()=>{i.current!==r&&(s(r),i.current=r)},[r,i,s]),n}var AC="VisuallyHidden",cu=v.forwardRef((e,t)=>a.jsx(Le.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));cu.displayName=AC;var RC=cu,Lp="ToastProvider",[zp,IC,MC]=fC("Toast"),[m1,qL]=Op("Toast",[MC]),[OC,uu]=m1(Lp),g1=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=e,[l,c]=v.useState(null),[u,d]=v.useState(0),h=v.useRef(!1),f=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Lp}\`. Expected non-empty \`string\`.`),a.jsx(zp.Provider,{scope:t,children:a.jsx(OC,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:v.useCallback(()=>d(p=>p+1),[]),onToastRemove:v.useCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:o})})};g1.displayName=Lp;var y1="ToastViewport",DC=["F8"],Hh="toast.viewportPause",Wh="toast.viewportResume",v1=v.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=DC,label:i="Notifications ({hotkey})",...s}=e,o=uu(y1,n),l=IC(n),c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),h=v.useRef(null),f=ht(t,h,o.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=o.toastCount>0;v.useEffect(()=>{const b=m=>{var w;r.length!==0&&r.every(j=>m[j]||m.code===j)&&((w=h.current)==null||w.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),v.useEffect(()=>{const b=c.current,m=h.current;if(x&&b&&m){const y=()=>{if(!o.isClosePausedRef.current){const N=new CustomEvent(Hh);m.dispatchEvent(N),o.isClosePausedRef.current=!0}},w=()=>{if(o.isClosePausedRef.current){const N=new CustomEvent(Wh);m.dispatchEvent(N),o.isClosePausedRef.current=!1}},j=N=>{!b.contains(N.relatedTarget)&&w()},S=()=>{b.contains(document.activeElement)||w()};return b.addEventListener("focusin",y),b.addEventListener("focusout",j),b.addEventListener("pointermove",y),b.addEventListener("pointerleave",S),window.addEventListener("blur",y),window.addEventListener("focus",w),()=>{b.removeEventListener("focusin",y),b.removeEventListener("focusout",j),b.removeEventListener("pointermove",y),b.removeEventListener("pointerleave",S),window.removeEventListener("blur",y),window.removeEventListener("focus",w)}}},[x,o.isClosePausedRef]);const g=v.useCallback(({tabbingDirection:b})=>{const y=l().map(w=>{const j=w.ref.current,S=[j,...YC(j)];return b==="forwards"?S:S.reverse()});return(b==="forwards"?y.reverse():y).flat()},[l]);return v.useEffect(()=>{const b=h.current;if(b){const m=y=>{var S,N,k;const w=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!w){const C=document.activeElement,_=y.shiftKey;if(y.target===b&&_){(S=u.current)==null||S.focus();return}const z=g({tabbingDirection:_?"backwards":"forwards"}),H=z.findIndex(L=>L===C);dd(z.slice(H+1))?y.preventDefault():_?(N=u.current)==null||N.focus():(k=d.current)==null||k.focus()}};return b.addEventListener("keydown",m),()=>b.removeEventListener("keydown",m)}},[l,g]),a.jsxs(NC,{ref:c,role:"region","aria-label":i.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&a.jsx(Kh,{ref:u,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"forwards"});dd(b)}}),a.jsx(zp.Slot,{scope:n,children:a.jsx(Le.ol,{tabIndex:-1,...s,ref:f})}),x&&a.jsx(Kh,{ref:d,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"backwards"});dd(b)}})]})});v1.displayName=y1;var x1="ToastFocusProxy",Kh=v.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=uu(x1,n);return a.jsx(cu,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const l=o.relatedTarget;!((u=s.viewport)!=null&&u.contains(l))&&r()}})});Kh.displayName=x1;var du="Toast",LC="toast.swipeStart",zC="toast.swipeMove",$C="toast.swipeCancel",FC="toast.swipeEnd",w1=v.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...o}=e,[l=!0,c]=p1({prop:r,defaultProp:i,onChange:s});return a.jsx(Ks,{present:n||l,children:a.jsx(UC,{open:l,...o,ref:t,onClose:()=>c(!1),onPause:Qt(e.onPause),onResume:Qt(e.onResume),onSwipeStart:we(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:we(e.onSwipeMove,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:we(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:we(e.onSwipeEnd,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});w1.displayName=du;var[VC,BC]=m1(du,{onClose(){}}),UC=v.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:p,...x}=e,g=uu(du,n),[b,m]=v.useState(null),y=ht(t,L=>m(L)),w=v.useRef(null),j=v.useRef(null),S=i||g.duration,N=v.useRef(0),k=v.useRef(S),C=v.useRef(0),{onToastAdd:_,onToastRemove:I}=g,R=Qt(()=>{var q;(b==null?void 0:b.contains(document.activeElement))&&((q=g.viewport)==null||q.focus()),o()}),z=v.useCallback(L=>{!L||L===1/0||(window.clearTimeout(C.current),N.current=new Date().getTime(),C.current=window.setTimeout(R,L))},[R]);v.useEffect(()=>{const L=g.viewport;if(L){const q=()=>{z(k.current),u==null||u()},W=()=>{const F=new Date().getTime()-N.current;k.current=k.current-F,window.clearTimeout(C.current),c==null||c()};return L.addEventListener(Hh,W),L.addEventListener(Wh,q),()=>{L.removeEventListener(Hh,W),L.removeEventListener(Wh,q)}}},[g.viewport,S,c,u,z]),v.useEffect(()=>{s&&!g.isClosePausedRef.current&&z(S)},[s,S,g.isClosePausedRef,z]),v.useEffect(()=>(_(),()=>I()),[_,I]);const H=v.useMemo(()=>b?E1(b):null,[b]);return g.viewport?a.jsxs(a.Fragment,{children:[H&&a.jsx(HC,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:H}),a.jsx(VC,{scope:n,onClose:R,children:La.createPortal(a.jsx(zp.ItemSlot,{scope:n,children:a.jsx(kC,{asChild:!0,onEscapeKeyDown:we(l,()=>{g.isFocusedToastEscapeKeyDownRef.current||R(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:a.jsx(Le.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":g.swipeDirection,...x,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:we(e.onKeyDown,L=>{L.key==="Escape"&&(l==null||l(L.nativeEvent),L.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,R()))}),onPointerDown:we(e.onPointerDown,L=>{L.button===0&&(w.current={x:L.clientX,y:L.clientY})}),onPointerMove:we(e.onPointerMove,L=>{if(!w.current)return;const q=L.clientX-w.current.x,W=L.clientY-w.current.y,F=!!j.current,E=["left","right"].includes(g.swipeDirection),O=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,B=E?O(0,q):0,V=E?0:O(0,W),G=L.pointerType==="touch"?10:2,Z={x:B,y:V},he={originalEvent:L,delta:Z};F?(j.current=Z,vl(zC,h,he,{discrete:!1})):ly(Z,g.swipeDirection,G)?(j.current=Z,vl(LC,d,he,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(q)>G||Math.abs(W)>G)&&(w.current=null)}),onPointerUp:we(e.onPointerUp,L=>{const q=j.current,W=L.target;if(W.hasPointerCapture(L.pointerId)&&W.releasePointerCapture(L.pointerId),j.current=null,w.current=null,q){const F=L.currentTarget,E={originalEvent:L,delta:q};ly(q,g.swipeDirection,g.swipeThreshold)?vl(FC,p,E,{discrete:!0}):vl($C,f,E,{discrete:!0}),F.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),HC=e=>{const{__scopeToast:t,children:n,...r}=e,i=uu(du,t),[s,o]=v.useState(!1),[l,c]=v.useState(!1);return qC(()=>o(!0)),v.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:a.jsx(Dp,{asChild:!0,children:a.jsx(cu,{...r,children:s&&a.jsxs(a.Fragment,{children:[i.label," ",n]})})})},WC="ToastTitle",b1=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return a.jsx(Le.div,{...r,ref:t})});b1.displayName=WC;var KC="ToastDescription",j1=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return a.jsx(Le.div,{...r,ref:t})});j1.displayName=KC;var S1="ToastAction",k1=v.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?a.jsx(C1,{altText:n,asChild:!0,children:a.jsx($p,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${S1}\`. Expected non-empty \`string\`.`),null)});k1.displayName=S1;var N1="ToastClose",$p=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=BC(N1,n);return a.jsx(C1,{asChild:!0,children:a.jsx(Le.button,{type:"button",...r,ref:t,onClick:we(e.onClick,i.onClose)})})});$p.displayName=N1;var C1=v.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return a.jsx(Le.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function E1(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),GC(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...E1(r))}}),t}function vl(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?u1(i,s):i.dispatchEvent(s)}var ly=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),s=r>i;return t==="left"||t==="right"?s&&r>n:!s&&i>n};function qC(e=()=>{}){const t=Qt(e);Lr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function GC(e){return e.nodeType===e.ELEMENT_NODE}function YC(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function dd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var QC=g1,T1=v1,P1=w1,_1=b1,A1=j1,R1=k1,I1=$p;function M1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=M1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function O1(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=M1(e))&&(r&&(r+=" "),r+=t);return r}const cy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,uy=O1,D1=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return uy(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(u=>{const d=n==null?void 0:n[u],h=s==null?void 0:s[u];if(d===null)return null;const f=cy(d)||cy(h);return i[u][f]}),l=n&&Object.entries(n).reduce((u,d)=>{let[h,f]=d;return f===void 0||(u[h]=f),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:h,className:f,...p}=d;return Object.entries(p).every(x=>{let[g,b]=x;return Array.isArray(b)?b.includes({...s,...l}[g]):{...s,...l}[g]===b})?[...u,h,f]:u},[]);return uy(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const XC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),L1=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var JC={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"};/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ZC=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...l},c)=>v.createElement("svg",{ref:c,...JC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:L1("lucide",i),...l},[...o.map(([u,d])=>v.createElement(u,d)),...Array.isArray(s)?s:[s]]));/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $=(e,t)=>{const n=v.forwardRef(({className:r,...i},s)=>v.createElement(ZC,{ref:s,iconNode:t,className:L1(`lucide-${XC(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pa=$("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const z1=$("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qh=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ec=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gr=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eE=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dy=$("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tE=$("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nE=$("ChartBar",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16h8",key:"srdodz"}],["path",{d:"M7 11h12",key:"127s9w"}],["path",{d:"M7 6h3",key:"w9rmul"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rE=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gh=$("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iE=$("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hd=$("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hy=$("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sE=$("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oE=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const za=$("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ma=$("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yh=$("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const aE=$("Cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const An=$("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"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zr=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qh=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Tc=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fp=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fy=$("Factory",[["path",{d:"M2 20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8l-7 5V8l-7 5V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"159hny"}],["path",{d:"M17 18h1",key:"uldtlt"}],["path",{d:"M12 18h1",key:"s9uhes"}],["path",{d:"M7 18h1",key:"1neino"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $1=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lE=$("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cE=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uE=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dE=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xh=$("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ri=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hE=$("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const py=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const F1=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fE=$("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pE=$("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const my=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jh=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pn=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xo=$("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mE=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gE=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gy=$("MessagesSquare",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yE=$("Navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ps=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vE=$("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xE=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wE=$("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bE=$("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pc=$("Plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jE=$("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _c=$("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:"m3kijz"}],["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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const V1=$("Satellite",[["path",{d:"M13 7 9 3 5 7l4 4",key:"vyckw6"}],["path",{d:"m17 11 4 4-4 4-4-4",key:"rchckc"}],["path",{d:"m8 12 4 4 6-6-4-4Z",key:"1sshf7"}],["path",{d:"m16 8 3-3",key:"x428zp"}],["path",{d:"M9 21a6 6 0 0 0-6-6",key:"1iajcf"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const SE=$("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $a=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kE=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const NE=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const De=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fd=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const CE=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const B1=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yy=$("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const EE=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const TE=$("UserCheck",[["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"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ei=$("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PE=$("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const U1=$("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yr=$("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"}]]),Vp="-",_E=e=>{const t=RE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const l=o.split(Vp);return l[0]===""&&l.length!==1&&l.shift(),H1(l,t)||AE(o)},getConflictingClassGroupIds:(o,l)=>{const c=n[o]||[];return l&&r[o]?[...c,...r[o]]:c}}},H1=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?H1(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(Vp);return(o=t.validators.find(({validator:l})=>l(s)))==null?void 0:o.classGroupId},vy=/^\[(.+)\]$/,AE=e=>{if(vy.test(e)){const t=vy.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},RE=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return ME(Object.entries(e.classGroups),n).forEach(([s,o])=>{Zh(o,r,s,t)}),r},Zh=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:xy(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(IE(i)){Zh(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{Zh(o,xy(t,s),n,r)})})},xy=(e,t)=>{let n=e;return t.split(Vp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},IE=e=>e.isThemeGetter,ME=(e,t)=>t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,l])=>[t+o,l])):s);return[n,i]}):e,OE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},W1="!",DE=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],s=t.length,o=l=>{const c=[];let u=0,d=0,h;for(let b=0;b<l.length;b++){let m=l[b];if(u===0){if(m===i&&(r||l.slice(b,b+s)===t)){c.push(l.slice(d,b)),d=b+s;continue}if(m==="/"){h=b;continue}}m==="["?u++:m==="]"&&u--}const f=c.length===0?l:l.substring(d),p=f.startsWith(W1),x=p?f.substring(1):f,g=h&&h>d?h-d:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:x,maybePostfixModifierPosition:g}};return n?l=>n({className:l,parseClassName:o}):o},LE=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},zE=e=>({cache:OE(e.cacheSize),parseClassName:DE(e),..._E(e)}),$E=/\s+/,FE=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],o=e.trim().split($E);let l="";for(let c=o.length-1;c>=0;c-=1){const u=o[c],{modifiers:d,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:p}=n(u);let x=!!p,g=r(x?f.substring(0,p):f);if(!g){if(!x){l=u+(l.length>0?" "+l:l);continue}if(g=r(f),!g){l=u+(l.length>0?" "+l:l);continue}x=!1}const b=LE(d).join(":"),m=h?b+W1:b,y=m+g;if(s.includes(y))continue;s.push(y);const w=i(g,x);for(let j=0;j<w.length;++j){const S=w[j];s.push(m+S)}l=u+(l.length>0?" "+l:l)}return l};function VE(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=K1(t))&&(r&&(r+=" "),r+=n);return r}const K1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=K1(e[r]))&&(n&&(n+=" "),n+=t);return n};function BE(e,...t){let n,r,i,s=o;function o(c){const u=t.reduce((d,h)=>h(d),e());return n=zE(u),r=n.cache.get,i=n.cache.set,s=l,l(c)}function l(c){const u=r(c);if(u)return u;const d=FE(c,n);return i(c,d),d}return function(){return s(VE.apply(null,arguments))}}const ge=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},q1=/^\[(?:([a-z-]+):)?(.+)\]$/i,UE=/^\d+\/\d+$/,HE=new Set(["px","full","screen"]),WE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,KE=/\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$/,qE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,GE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,YE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ln=e=>ms(e)||HE.has(e)||UE.test(e),sr=e=>qs(e,"length",rT),ms=e=>!!e&&!Number.isNaN(Number(e)),pd=e=>qs(e,"number",ms),wo=e=>!!e&&Number.isInteger(Number(e)),QE=e=>e.endsWith("%")&&ms(e.slice(0,-1)),ee=e=>q1.test(e),or=e=>WE.test(e),XE=new Set(["length","size","percentage"]),JE=e=>qs(e,XE,G1),ZE=e=>qs(e,"position",G1),eT=new Set(["image","url"]),tT=e=>qs(e,eT,sT),nT=e=>qs(e,"",iT),bo=()=>!0,qs=(e,t,n)=>{const r=q1.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},rT=e=>KE.test(e)&&!qE.test(e),G1=()=>!1,iT=e=>GE.test(e),sT=e=>YE.test(e),oT=()=>{const e=ge("colors"),t=ge("spacing"),n=ge("blur"),r=ge("brightness"),i=ge("borderColor"),s=ge("borderRadius"),o=ge("borderSpacing"),l=ge("borderWidth"),c=ge("contrast"),u=ge("grayscale"),d=ge("hueRotate"),h=ge("invert"),f=ge("gap"),p=ge("gradientColorStops"),x=ge("gradientColorStopPositions"),g=ge("inset"),b=ge("margin"),m=ge("opacity"),y=ge("padding"),w=ge("saturate"),j=ge("scale"),S=ge("sepia"),N=ge("skew"),k=ge("space"),C=ge("translate"),_=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto",ee,t],z=()=>[ee,t],H=()=>["",Ln,sr],L=()=>["auto",ms,ee],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",ee],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[ms,ee];return{cacheSize:500,separator:":",theme:{colors:[bo],spacing:[Ln,sr],blur:["none","",or,ee],brightness:V(),borderColor:[e],borderRadius:["none","","full",or,ee],borderSpacing:z(),borderWidth:H(),contrast:V(),grayscale:O(),hueRotate:V(),invert:O(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[QE,sr],inset:R(),margin:R(),opacity:V(),padding:z(),saturate:V(),scale:V(),sepia:O(),skew:V(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",ee]}],container:["container"],columns:[{columns:[or]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"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:[...q(),ee]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",wo,ee]}],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",ee]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",wo,ee]}],"grid-cols":[{"grid-cols":[bo]}],"col-start-end":[{col:["auto",{span:["full",wo,ee]},ee]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[bo]}],"row-start-end":[{row:["auto",{span:[wo,ee]},ee]}],"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",ee]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ee]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...E()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...E(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...E(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"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",ee,t]}],"min-w":[{"min-w":[ee,t,"min","max","fit"]}],"max-w":[{"max-w":[ee,t,"none","full","min","max","fit","prose",{screen:[or]},or]}],h:[{h:[ee,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ee,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ee,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ee,t,"auto","min","max","fit"]}],"font-size":[{text:["base",or,sr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pd]}],"font-family":[{font:[bo]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ee]}],"line-clamp":[{"line-clamp":["none",ms,pd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ln,ee]}],"list-image":[{"list-image":["none",ee]}],"list-style-type":[{list:["none","disc","decimal",ee]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ln,sr]}],"underline-offset":[{"underline-offset":["auto",Ln,ee]}],"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:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee]}],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",ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),ZE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",JE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tT]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"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":[m]}],"border-style":[{border:[...W(),"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":[m]}],"divide-style":[{divide:W()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[Ln,ee]}],"outline-w":[{outline:[Ln,sr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Ln,sr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",or,nT]}],"shadow-color":[{shadow:[bo]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",or,ee]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"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",ee]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",ee]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",ee]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[wo,ee]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ee]}],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",ee]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"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"]}],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",ee]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ln,sr,pd]}],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"]}}},aT=BE(oT);function St(...e){return aT(O1(e))}const lT=QC,Y1=v.forwardRef(({className:e,...t},n)=>a.jsx(T1,{ref:n,className:St("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}));Y1.displayName=T1.displayName;const cT=D1("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"}}),Q1=v.forwardRef(({className:e,variant:t,...n},r)=>a.jsx(P1,{ref:r,className:St(cT({variant:t}),e),...n}));Q1.displayName=P1.displayName;const uT=v.forwardRef(({className:e,...t},n)=>a.jsx(R1,{ref:n,className:St("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 hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));uT.displayName=R1.displayName;const X1=v.forwardRef(({className:e,...t},n)=>a.jsx(I1,{ref:n,className:St("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:a.jsx(U1,{className:"h-4 w-4"})}));X1.displayName=I1.displayName;const J1=v.forwardRef(({className:e,...t},n)=>a.jsx(_1,{ref:n,className:St("text-sm font-semibold",e),...t}));J1.displayName=_1.displayName;const Z1=v.forwardRef(({className:e,...t},n)=>a.jsx(A1,{ref:n,className:St("text-sm opacity-90",e),...t}));Z1.displayName=A1.displayName;function dT(){const{toasts:e}=Mp();return a.jsxs(lT,{children:[e.map(function({id:t,title:n,description:r,action:i,...s}){return a.jsxs(Q1,{...s,children:[a.jsxs("div",{className:"grid gap-1",children:[n&&a.jsx(J1,{children:n}),r&&a.jsx(Z1,{children:r})]}),i,a.jsx(X1,{})]},t)}),a.jsx(Y1,{})]})}var wy=["light","dark"],hT="(prefers-color-scheme: dark)",fT=v.createContext(void 0),pT={setTheme:e=>{},themes:[]},mT=()=>{var e;return(e=v.useContext(fT))!=null?e:pT};v.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:o,attrs:l,nonce:c})=>{let u=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=i?wy.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(x,g=!1,b=!0)=>{let m=o?o[x]:x,y=g?x+"|| ''":`'${m}'`,w="";return i&&b&&!g&&wy.includes(x)&&(w+=`d.style.colorScheme = '${x}';`),n==="class"?g||m?w+=`c.add(${y})`:w+="null":m&&(w+=`d[s](n,${y})`),w},p=e?`!function(){${d}${f(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${hT}',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)}}${u?"":"else{"+f(s,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(s,!1,!1)};}${h}}catch(t){}}();`;return v.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:p}})});var gT=e=>{switch(e){case"success":return xT;case"info":return bT;case"warning":return wT;case"error":return jT;default:return null}},yT=Array(12).fill(0),vT=({visible:e})=>T.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},T.createElement("div",{className:"sonner-spinner"},yT.map((t,n)=>T.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),xT=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.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"})),wT=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},T.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"})),bT=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.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"})),jT=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.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"})),ST=()=>{let[e,t]=T.useState(document.hidden);return T.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},ef=1,kT=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:n,...r}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:ef++,s=this.toasts.find(l=>l.id===i),o=e.dismissible===void 0?!0:e.dismissible;return s?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...e,id:i,title:n}),{...l,...e,id:i,dismissible:o,title:n}):l):this.addToast({title:n,...r,dismissible:o,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({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)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),i=n!==void 0;return r.then(async s=>{if(CT(s)&&!s.ok){i=!1;let o=typeof t.error=="function"?await t.error(`HTTP error! status: ${s.status}`):t.error,l=typeof t.description=="function"?await t.description(`HTTP error! status: ${s.status}`):t.description;this.create({id:n,type:"error",message:o,description:l})}else if(t.success!==void 0){i=!1;let o=typeof t.success=="function"?await t.success(s):t.success,l=typeof t.description=="function"?await t.description(s):t.description;this.create({id:n,type:"success",message:o,description:l})}}).catch(async s=>{if(t.error!==void 0){i=!1;let o=typeof t.error=="function"?await t.error(s):t.error,l=typeof t.description=="function"?await t.description(s):t.description;this.create({id:n,type:"error",message:o,description:l})}}).finally(()=>{var s;i&&(this.dismiss(n),n=void 0),(s=t.finally)==null||s.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||ef++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},Et=new kT,NT=(e,t)=>{let n=(t==null?void 0:t.id)||ef++;return Et.addToast({title:e,...t,id:n}),n},CT=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",ET=NT,TT=()=>Et.toasts;Object.assign(ET,{success:Et.success,info:Et.info,warning:Et.warning,error:Et.error,custom:Et.custom,message:Et.message,promise:Et.promise,dismiss:Et.dismiss,loading:Et.loading},{getHistory:TT});function PT(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}PT(`: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}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-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;left: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;background:var(--gray1);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}: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:0;right:0;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}: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, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);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-border: hsl(0, 0%, 20%);--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%);--error-text: hsl(358, 100%, 81%)}[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%)}
`);function xl(e){return e.label!==void 0}var _T=3,AT="32px",RT=4e3,IT=356,MT=14,OT=20,DT=200;function LT(...e){return e.filter(Boolean).join(" ")}var zT=e=>{var t,n,r,i,s,o,l,c,u,d;let{invert:h,toast:f,unstyled:p,interacting:x,setHeights:g,visibleToasts:b,heights:m,index:y,toasts:w,expanded:j,removeToast:S,defaultRichColors:N,closeButton:k,style:C,cancelButtonStyle:_,actionButtonStyle:I,className:R="",descriptionClassName:z="",duration:H,position:L,gap:q,loadingIcon:W,expandByDefault:F,classNames:E,icons:O,closeButtonAriaLabel:B="Close toast",pauseWhenPageIsHidden:V,cn:G}=e,[Z,he]=T.useState(!1),[We,le]=T.useState(!1),[Je,mt]=T.useState(!1),[Lt,zt]=T.useState(!1),[Xt,Mn]=T.useState(0),[X,nr]=T.useState(0),Zr=T.useRef(null),$t=T.useRef(null),so=y===0,oo=y+1<=b,be=f.type,On=f.dismissible!==!1,Iu=f.className||"",ei=f.descriptionClassName||"",Di=T.useMemo(()=>m.findIndex(D=>D.toastId===f.id)||0,[m,f.id]),qa=T.useMemo(()=>{var D;return(D=f.closeButton)!=null?D:k},[f.closeButton,k]),Ga=T.useMemo(()=>f.duration||H||RT,[f.duration,H]),ao=T.useRef(0),Jt=T.useRef(0),Ya=T.useRef(0),Dn=T.useRef(null),[Qa,ti]=L.split("-"),lo=T.useMemo(()=>m.reduce((D,K,Y)=>Y>=Di?D:D+K.height,0),[m,Di]),Xa=ST(),Mu=f.invert||h,co=be==="loading";Jt.current=T.useMemo(()=>Di*q+lo,[Di,lo]),T.useEffect(()=>{he(!0)},[]),T.useLayoutEffect(()=>{if(!Z)return;let D=$t.current,K=D.style.height;D.style.height="auto";let Y=D.getBoundingClientRect().height;D.style.height=K,nr(Y),g(oe=>oe.find(re=>re.toastId===f.id)?oe.map(re=>re.toastId===f.id?{...re,height:Y}:re):[{toastId:f.id,height:Y,position:f.position},...oe])},[Z,f.title,f.description,g,f.id]);let mn=T.useCallback(()=>{le(!0),Mn(Jt.current),g(D=>D.filter(K=>K.toastId!==f.id)),setTimeout(()=>{S(f)},DT)},[f,S,g,Jt]);T.useEffect(()=>{if(f.promise&&be==="loading"||f.duration===1/0||f.type==="loading")return;let D,K=Ga;return j||x||V&&Xa?(()=>{if(Ya.current<ao.current){let Y=new Date().getTime()-ao.current;K=K-Y}Ya.current=new Date().getTime()})():K!==1/0&&(ao.current=new Date().getTime(),D=setTimeout(()=>{var Y;(Y=f.onAutoClose)==null||Y.call(f,f),mn()},K)),()=>clearTimeout(D)},[j,x,F,f,Ga,mn,f.promise,be,V,Xa]),T.useEffect(()=>{let D=$t.current;if(D){let K=D.getBoundingClientRect().height;return nr(K),g(Y=>[{toastId:f.id,height:K,position:f.position},...Y]),()=>g(Y=>Y.filter(oe=>oe.toastId!==f.id))}},[g,f.id]),T.useEffect(()=>{f.delete&&mn()},[mn,f.delete]);function Ou(){return O!=null&&O.loading?T.createElement("div",{className:"sonner-loader","data-visible":be==="loading"},O.loading):W?T.createElement("div",{className:"sonner-loader","data-visible":be==="loading"},W):T.createElement(vT,{visible:be==="loading"})}return T.createElement("li",{"aria-live":f.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:$t,className:G(R,Iu,E==null?void 0:E.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,E==null?void 0:E.default,E==null?void 0:E[be],(n=f==null?void 0:f.classNames)==null?void 0:n[be]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:N,"data-styled":!(f.jsx||f.unstyled||p),"data-mounted":Z,"data-promise":!!f.promise,"data-removed":We,"data-visible":oo,"data-y-position":Qa,"data-x-position":ti,"data-index":y,"data-front":so,"data-swiping":Je,"data-dismissible":On,"data-type":be,"data-invert":Mu,"data-swipe-out":Lt,"data-expanded":!!(j||F&&Z),style:{"--index":y,"--toasts-before":y,"--z-index":w.length-y,"--offset":`${We?Xt:Jt.current}px`,"--initial-height":F?"auto":`${X}px`,...C,...f.style},onPointerDown:D=>{co||!On||(Zr.current=new Date,Mn(Jt.current),D.target.setPointerCapture(D.pointerId),D.target.tagName!=="BUTTON"&&(mt(!0),Dn.current={x:D.clientX,y:D.clientY}))},onPointerUp:()=>{var D,K,Y,oe;if(Lt||!On)return;Dn.current=null;let re=Number(((D=$t.current)==null?void 0:D.style.getPropertyValue("--swipe-amount").replace("px",""))||0),Ke=new Date().getTime()-((K=Zr.current)==null?void 0:K.getTime()),qe=Math.abs(re)/Ke;if(Math.abs(re)>=OT||qe>.11){Mn(Jt.current),(Y=f.onDismiss)==null||Y.call(f,f),mn(),zt(!0);return}(oe=$t.current)==null||oe.style.setProperty("--swipe-amount","0px"),mt(!1)},onPointerMove:D=>{var K;if(!Dn.current||!On)return;let Y=D.clientY-Dn.current.y,oe=D.clientX-Dn.current.x,re=(Qa==="top"?Math.min:Math.max)(0,Y),Ke=D.pointerType==="touch"?10:2;Math.abs(re)>Ke?(K=$t.current)==null||K.style.setProperty("--swipe-amount",`${Y}px`):Math.abs(oe)>Ke&&(Dn.current=null)}},qa&&!f.jsx?T.createElement("button",{"aria-label":B,"data-disabled":co,"data-close-button":!0,onClick:co||!On?()=>{}:()=>{var D;mn(),(D=f.onDismiss)==null||D.call(f,f)},className:G(E==null?void 0:E.closeButton,(i=f==null?void 0:f.classNames)==null?void 0:i.closeButton)},T.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"},T.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),T.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,f.jsx||T.isValidElement(f.title)?f.jsx||f.title:T.createElement(T.Fragment,null,be||f.icon||f.promise?T.createElement("div",{"data-icon":"",className:G(E==null?void 0:E.icon,(s=f==null?void 0:f.classNames)==null?void 0:s.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Ou():null,f.type!=="loading"?f.icon||(O==null?void 0:O[be])||gT(be):null):null,T.createElement("div",{"data-content":"",className:G(E==null?void 0:E.content,(o=f==null?void 0:f.classNames)==null?void 0:o.content)},T.createElement("div",{"data-title":"",className:G(E==null?void 0:E.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},f.title),f.description?T.createElement("div",{"data-description":"",className:G(z,ei,E==null?void 0:E.description,(c=f==null?void 0:f.classNames)==null?void 0:c.description)},f.description):null),T.isValidElement(f.cancel)?f.cancel:f.cancel&&xl(f.cancel)?T.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||_,onClick:D=>{var K,Y;xl(f.cancel)&&On&&((Y=(K=f.cancel).onClick)==null||Y.call(K,D),mn())},className:G(E==null?void 0:E.cancelButton,(u=f==null?void 0:f.classNames)==null?void 0:u.cancelButton)},f.cancel.label):null,T.isValidElement(f.action)?f.action:f.action&&xl(f.action)?T.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||I,onClick:D=>{var K,Y;xl(f.action)&&(D.defaultPrevented||((Y=(K=f.action).onClick)==null||Y.call(K,D),mn()))},className:G(E==null?void 0:E.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function by(){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}var $T=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:i,closeButton:s,className:o,offset:l,theme:c="light",richColors:u,duration:d,style:h,visibleToasts:f=_T,toastOptions:p,dir:x=by(),gap:g=MT,loadingIcon:b,icons:m,containerAriaLabel:y="Notifications",pauseWhenPageIsHidden:w,cn:j=LT}=e,[S,N]=T.useState([]),k=T.useMemo(()=>Array.from(new Set([n].concat(S.filter(V=>V.position).map(V=>V.position)))),[S,n]),[C,_]=T.useState([]),[I,R]=T.useState(!1),[z,H]=T.useState(!1),[L,q]=T.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),W=T.useRef(null),F=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=T.useRef(null),O=T.useRef(!1),B=T.useCallback(V=>{var G;(G=S.find(Z=>Z.id===V.id))!=null&&G.delete||Et.dismiss(V.id),N(Z=>Z.filter(({id:he})=>he!==V.id))},[S]);return T.useEffect(()=>Et.subscribe(V=>{if(V.dismiss){N(G=>G.map(Z=>Z.id===V.id?{...Z,delete:!0}:Z));return}setTimeout(()=>{o1.flushSync(()=>{N(G=>{let Z=G.findIndex(he=>he.id===V.id);return Z!==-1?[...G.slice(0,Z),{...G[Z],...V},...G.slice(Z+1)]:[V,...G]})})})}),[]),T.useEffect(()=>{if(c!=="system"){q(c);return}c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?q("dark"):q("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:V})=>{q(V?"dark":"light")})},[c]),T.useEffect(()=>{S.length<=1&&R(!1)},[S]),T.useEffect(()=>{let V=G=>{var Z,he;r.every(We=>G[We]||G.code===We)&&(R(!0),(Z=W.current)==null||Z.focus()),G.code==="Escape"&&(document.activeElement===W.current||(he=W.current)!=null&&he.contains(document.activeElement))&&R(!1)};return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[r]),T.useEffect(()=>{if(W.current)return()=>{E.current&&(E.current.focus({preventScroll:!0}),E.current=null,O.current=!1)}},[W.current]),S.length?T.createElement("section",{"aria-label":`${y} ${F}`,tabIndex:-1},k.map((V,G)=>{var Z;let[he,We]=V.split("-");return T.createElement("ol",{key:V,dir:x==="auto"?by():x,tabIndex:-1,ref:W,className:o,"data-sonner-toaster":!0,"data-theme":L,"data-y-position":he,"data-x-position":We,style:{"--front-toast-height":`${((Z=C[0])==null?void 0:Z.height)||0}px`,"--offset":typeof l=="number"?`${l}px`:l||AT,"--width":`${IT}px`,"--gap":`${g}px`,...h},onBlur:le=>{O.current&&!le.currentTarget.contains(le.relatedTarget)&&(O.current=!1,E.current&&(E.current.focus({preventScroll:!0}),E.current=null))},onFocus:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||O.current||(O.current=!0,E.current=le.relatedTarget)},onMouseEnter:()=>R(!0),onMouseMove:()=>R(!0),onMouseLeave:()=>{z||R(!1)},onPointerDown:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||H(!0)},onPointerUp:()=>H(!1)},S.filter(le=>!le.position&&G===0||le.position===V).map((le,Je)=>{var mt,Lt;return T.createElement(zT,{key:le.id,icons:m,index:Je,toast:le,defaultRichColors:u,duration:(mt=p==null?void 0:p.duration)!=null?mt:d,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:t,visibleToasts:f,closeButton:(Lt=p==null?void 0:p.closeButton)!=null?Lt:s,interacting:z,position:V,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:B,toasts:S.filter(zt=>zt.position==le.position),heights:C.filter(zt=>zt.position==le.position),setHeights:_,expandByDefault:i,gap:g,loadingIcon:b,expanded:I,pauseWhenPageIsHidden:w,cn:j})}))})):null};const FT=({...e})=>{const{theme:t="system"}=mT();return a.jsx($T,{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 VT=rx.useId||(()=>{}),BT=0;function md(e){const[t,n]=v.useState(VT());return Lr(()=>{e||n(r=>r??String(BT++))},[e]),e||(t?`radix-${t}`:"")}const UT=["top","right","bottom","left"],$r=Math.min,Pt=Math.max,Ac=Math.round,wl=Math.floor,Fr=e=>({x:e,y:e}),HT={left:"right",right:"left",bottom:"top",top:"bottom"},WT={start:"end",end:"start"};function tf(e,t,n){return Pt(e,$r(t,n))}function Jn(e,t){return typeof e=="function"?e(t):e}function Zn(e){return e.split("-")[0]}function Gs(e){return e.split("-")[1]}function Bp(e){return e==="x"?"y":"x"}function Up(e){return e==="y"?"height":"width"}function Vr(e){return["top","bottom"].includes(Zn(e))?"y":"x"}function Hp(e){return Bp(Vr(e))}function KT(e,t,n){n===void 0&&(n=!1);const r=Gs(e),i=Hp(e),s=Up(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Rc(o)),[o,Rc(o)]}function qT(e){const t=Rc(e);return[nf(e),t,nf(t)]}function nf(e){return e.replace(/start|end/g,t=>WT[t])}function GT(e,t,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?s:o;default:return[]}}function YT(e,t,n,r){const i=Gs(e);let s=GT(Zn(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(nf)))),s}function Rc(e){return e.replace(/left|right|bottom|top/g,t=>HT[t])}function QT(e){return{top:0,right:0,bottom:0,left:0,...e}}function eb(e){return typeof e!="number"?QT(e):{top:e,right:e,bottom:e,left:e}}function Ic(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function jy(e,t,n){let{reference:r,floating:i}=e;const s=Vr(t),o=Hp(t),l=Up(o),c=Zn(t),u=s==="y",d=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,f=r[l]/2-i[l]/2;let p;switch(c){case"top":p={x:d,y:r.y-i.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-i.width,y:h};break;default:p={x:r.x,y:r.y}}switch(Gs(t)){case"start":p[o]-=f*(n&&u?-1:1);break;case"end":p[o]+=f*(n&&u?-1:1);break}return p}const XT=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,l=s.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:h}=jy(u,r,c),f=r,p={},x=0;for(let g=0;g<l.length;g++){const{name:b,fn:m}=l[g],{x:y,y:w,data:j,reset:S}=await m({x:d,y:h,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});d=y??d,h=w??h,p={...p,[b]:{...p[b],...j}},S&&x<=50&&(x++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:d,y:h}=jy(u,f,c)),g=-1)}return{x:d,y:h,placement:f,strategy:i,middlewareData:p}};async function ga(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=Jn(t,e),x=eb(p),b=l[f?h==="floating"?"reference":"floating":h],m=Ic(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),y=h==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),j=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},S=Ic(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:w,strategy:c}):y);return{top:(m.top-S.top+x.top)/j.y,bottom:(S.bottom-m.bottom+x.bottom)/j.y,left:(m.left-S.left+x.left)/j.x,right:(S.right-m.right+x.right)/j.x}}const JT=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:o,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=Jn(e,t)||{};if(u==null)return{};const h=eb(d),f={x:n,y:r},p=Hp(i),x=Up(p),g=await o.getDimensions(u),b=p==="y",m=b?"top":"left",y=b?"bottom":"right",w=b?"clientHeight":"clientWidth",j=s.reference[x]+s.reference[p]-f[p]-s.floating[x],S=f[p]-s.reference[p],N=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let k=N?N[w]:0;(!k||!await(o.isElement==null?void 0:o.isElement(N)))&&(k=l.floating[w]||s.floating[x]);const C=j/2-S/2,_=k/2-g[x]/2-1,I=$r(h[m],_),R=$r(h[y],_),z=I,H=k-g[x]-R,L=k/2-g[x]/2+C,q=tf(z,L,H),W=!c.arrow&&Gs(i)!=null&&L!==q&&s.reference[x]/2-(L<z?I:R)-g[x]/2<0,F=W?L<z?L-z:L-H:0;return{[p]:f[p]+F,data:{[p]:q,centerOffset:L-q-F,...W&&{alignmentOffset:F}},reset:W}}}),ZT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:g=!0,...b}=Jn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const m=Zn(i),y=Vr(l),w=Zn(l)===l,j=await(c.isRTL==null?void 0:c.isRTL(u.floating)),S=f||(w||!g?[Rc(l)]:qT(l)),N=x!=="none";!f&&N&&S.push(...YT(l,g,x,j));const k=[l,...S],C=await ga(t,b),_=[];let I=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&_.push(C[m]),h){const L=KT(i,o,j);_.push(C[L[0]],C[L[1]])}if(I=[...I,{placement:i,overflows:_}],!_.every(L=>L<=0)){var R,z;const L=(((R=s.flip)==null?void 0:R.index)||0)+1,q=k[L];if(q)return{data:{index:L,overflows:I},reset:{placement:q}};let W=(z=I.filter(F=>F.overflows[0]<=0).sort((F,E)=>F.overflows[1]-E.overflows[1])[0])==null?void 0:z.placement;if(!W)switch(p){case"bestFit":{var H;const F=(H=I.filter(E=>{if(N){const O=Vr(E.placement);return O===y||O==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(O=>O>0).reduce((O,B)=>O+B,0)]).sort((E,O)=>E[1]-O[1])[0])==null?void 0:H[0];F&&(W=F);break}case"initialPlacement":W=l;break}if(i!==W)return{reset:{placement:W}}}return{}}}};function Sy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ky(e){return UT.some(t=>e[t]>=0)}const eP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Jn(e,t);switch(r){case"referenceHidden":{const s=await ga(t,{...i,elementContext:"reference"}),o=Sy(s,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:ky(o)}}}case"escaped":{const s=await ga(t,{...i,altBoundary:!0}),o=Sy(s,n.floating);return{data:{escapedOffsets:o,escaped:ky(o)}}}default:return{}}}}};async function tP(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Zn(n),l=Gs(n),c=Vr(n)==="y",u=["left","top"].includes(o)?-1:1,d=s&&c?-1:1,h=Jn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof x=="number"&&(p=l==="end"?x*-1:x),c?{x:p*d,y:f*u}:{x:f*u,y:p*d}}const nP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:l}=t,c=await tP(t,e);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:s+c.y,data:{...c,placement:o}}}}},rP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:l={fn:b=>{let{x:m,y}=b;return{x:m,y}}},...c}=Jn(e,t),u={x:n,y:r},d=await ga(t,c),h=Vr(Zn(i)),f=Bp(h);let p=u[f],x=u[h];if(s){const b=f==="y"?"top":"left",m=f==="y"?"bottom":"right",y=p+d[b],w=p-d[m];p=tf(y,p,w)}if(o){const b=h==="y"?"top":"left",m=h==="y"?"bottom":"right",y=x+d[b],w=x-d[m];x=tf(y,x,w)}const g=l.fn({...t,[f]:p,[h]:x});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[f]:s,[h]:o}}}}}},iP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=Jn(e,t),d={x:n,y:r},h=Vr(i),f=Bp(h);let p=d[f],x=d[h];const g=Jn(l,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const w=f==="y"?"height":"width",j=s.reference[f]-s.floating[w]+b.mainAxis,S=s.reference[f]+s.reference[w]-b.mainAxis;p<j?p=j:p>S&&(p=S)}if(u){var m,y;const w=f==="y"?"width":"height",j=["top","left"].includes(Zn(i)),S=s.reference[h]-s.floating[w]+(j&&((m=o.offset)==null?void 0:m[h])||0)+(j?0:b.crossAxis),N=s.reference[h]+s.reference[w]+(j?0:((y=o.offset)==null?void 0:y[h])||0)-(j?b.crossAxis:0);x<S?x=S:x>N&&(x=N)}return{[f]:p,[h]:x}}}},sP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:o,elements:l}=t,{apply:c=()=>{},...u}=Jn(e,t),d=await ga(t,u),h=Zn(i),f=Gs(i),p=Vr(i)==="y",{width:x,height:g}=s.floating;let b,m;h==="top"||h==="bottom"?(b=h,m=f===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(m=h,b=f==="end"?"top":"bottom");const y=g-d.top-d.bottom,w=x-d.left-d.right,j=$r(g-d[b],y),S=$r(x-d[m],w),N=!t.middlewareData.shift;let k=j,C=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=y),N&&!f){const I=Pt(d.left,0),R=Pt(d.right,0),z=Pt(d.top,0),H=Pt(d.bottom,0);p?C=x-2*(I!==0||R!==0?I+R:Pt(d.left,d.right)):k=g-2*(z!==0||H!==0?z+H:Pt(d.top,d.bottom))}await c({...t,availableWidth:C,availableHeight:k});const _=await o.getDimensions(l.floating);return x!==_.width||g!==_.height?{reset:{rects:!0}}:{}}}};function hu(){return typeof window<"u"}function Ys(e){return tb(e)?(e.nodeName||"").toLowerCase():"#document"}function Rt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rn(e){var t;return(t=(tb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tb(e){return hu()?e instanceof Node||e instanceof Rt(e).Node:!1}function hn(e){return hu()?e instanceof Element||e instanceof Rt(e).Element:!1}function _n(e){return hu()?e instanceof HTMLElement||e instanceof Rt(e).HTMLElement:!1}function Ny(e){return!hu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Rt(e).ShadowRoot}function Fa(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function oP(e){return["table","td","th"].includes(Ys(e))}function fu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Wp(e){const t=Kp(),n=hn(e)?fn(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function aP(e){let t=Br(e);for(;_n(t)&&!Ds(t);){if(Wp(t))return t;if(fu(t))return null;t=Br(t)}return null}function Kp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ds(e){return["html","body","#document"].includes(Ys(e))}function fn(e){return Rt(e).getComputedStyle(e)}function pu(e){return hn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Br(e){if(Ys(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ny(e)&&e.host||Rn(e);return Ny(t)?t.host:t}function nb(e){const t=Br(e);return Ds(t)?e.ownerDocument?e.ownerDocument.body:e.body:_n(t)&&Fa(t)?t:nb(t)}function ya(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=nb(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=Rt(i);if(s){const l=rf(o);return t.concat(o,o.visualViewport||[],Fa(i)?i:[],l&&n?ya(l):[])}return t.concat(i,ya(i,[],n))}function rf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rb(e){const t=fn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=_n(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,l=Ac(n)!==s||Ac(r)!==o;return l&&(n=s,r=o),{width:n,height:r,$:l}}function qp(e){return hn(e)?e:e.contextElement}function gs(e){const t=qp(e);if(!_n(t))return Fr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=rb(t);let o=(s?Ac(n.width):n.width)/r,l=(s?Ac(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const lP=Fr(0);function ib(e){const t=Rt(e);return!Kp()||!t.visualViewport?lP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cP(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Rt(e)?!1:t}function Ti(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=qp(e);let o=Fr(1);t&&(r?hn(r)&&(o=gs(r)):o=gs(e));const l=cP(s,n,r)?ib(s):Fr(0);let c=(i.left+l.x)/o.x,u=(i.top+l.y)/o.y,d=i.width/o.x,h=i.height/o.y;if(s){const f=Rt(s),p=r&&hn(r)?Rt(r):r;let x=f,g=rf(x);for(;g&&r&&p!==x;){const b=gs(g),m=g.getBoundingClientRect(),y=fn(g),w=m.left+(g.clientLeft+parseFloat(y.paddingLeft))*b.x,j=m.top+(g.clientTop+parseFloat(y.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,h*=b.y,c+=w,u+=j,x=Rt(g),g=rf(x)}}return Ic({width:d,height:h,x:c,y:u})}function uP(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=Rn(r),l=t?fu(t.floating):!1;if(r===o||l&&s)return n;let c={scrollLeft:0,scrollTop:0},u=Fr(1);const d=Fr(0),h=_n(r);if((h||!h&&!s)&&((Ys(r)!=="body"||Fa(o))&&(c=pu(r)),_n(r))){const f=Ti(r);u=gs(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x,y:n.y*u.y-c.scrollTop*u.y+d.y}}function dP(e){return Array.from(e.getClientRects())}function sf(e,t){const n=pu(e).scrollLeft;return t?t.left+n:Ti(Rn(e)).left+n}function hP(e){const t=Rn(e),n=pu(e),r=e.ownerDocument.body,i=Pt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Pt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+sf(e);const l=-n.scrollTop;return fn(r).direction==="rtl"&&(o+=Pt(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:l}}function fP(e,t){const n=Rt(e),r=Rn(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,l=0,c=0;if(i){s=i.width,o=i.height;const u=Kp();(!u||u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:o,x:l,y:c}}function pP(e,t){const n=Ti(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=_n(e)?gs(e):Fr(1),o=e.clientWidth*s.x,l=e.clientHeight*s.y,c=i*s.x,u=r*s.y;return{width:o,height:l,x:c,y:u}}function Cy(e,t,n){let r;if(t==="viewport")r=fP(e,n);else if(t==="document")r=hP(Rn(e));else if(hn(t))r=pP(t,n);else{const i=ib(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Ic(r)}function sb(e,t){const n=Br(e);return n===t||!hn(n)||Ds(n)?!1:fn(n).position==="fixed"||sb(n,t)}function mP(e,t){const n=t.get(e);if(n)return n;let r=ya(e,[],!1).filter(l=>hn(l)&&Ys(l)!=="body"),i=null;const s=fn(e).position==="fixed";let o=s?Br(e):e;for(;hn(o)&&!Ds(o);){const l=fn(o),c=Wp(o);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Fa(o)&&!c&&sb(e,o))?r=r.filter(d=>d!==o):i=l,o=Br(o)}return t.set(e,r),r}function gP(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?fu(t)?[]:mP(t,this._c):[].concat(n),r],l=o[0],c=o.reduce((u,d)=>{const h=Cy(t,d,i);return u.top=Pt(h.top,u.top),u.right=$r(h.right,u.right),u.bottom=$r(h.bottom,u.bottom),u.left=Pt(h.left,u.left),u},Cy(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function yP(e){const{width:t,height:n}=rb(e);return{width:t,height:n}}function vP(e,t,n){const r=_n(t),i=Rn(t),s=n==="fixed",o=Ti(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=Fr(0);if(r||!r&&!s)if((Ys(t)!=="body"||Fa(i))&&(l=pu(t)),r){const p=Ti(t,!0,s,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else i&&(c.x=sf(i));let u=0,d=0;if(i&&!r&&!s){const p=i.getBoundingClientRect();d=p.top+l.scrollTop,u=p.left+l.scrollLeft-sf(i,p)}const h=o.left+l.scrollLeft-c.x-u,f=o.top+l.scrollTop-c.y-d;return{x:h,y:f,width:o.width,height:o.height}}function gd(e){return fn(e).position==="static"}function Ey(e,t){if(!_n(e)||fn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Rn(e)===n&&(n=n.ownerDocument.body),n}function ob(e,t){const n=Rt(e);if(fu(e))return n;if(!_n(e)){let i=Br(e);for(;i&&!Ds(i);){if(hn(i)&&!gd(i))return i;i=Br(i)}return n}let r=Ey(e,t);for(;r&&oP(r)&&gd(r);)r=Ey(r,t);return r&&Ds(r)&&gd(r)&&!Wp(r)?n:r||aP(e)||n}const xP=async function(e){const t=this.getOffsetParent||ob,n=this.getDimensions,r=await n(e.floating);return{reference:vP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function wP(e){return fn(e).direction==="rtl"}const bP={convertOffsetParentRelativeRectToViewportRelativeRect:uP,getDocumentElement:Rn,getClippingRect:gP,getOffsetParent:ob,getElementRects:xP,getClientRects:dP,getDimensions:yP,getScale:gs,isElement:hn,isRTL:wP};function jP(e,t){let n=null,r;const i=Rn(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:u,top:d,width:h,height:f}=e.getBoundingClientRect();if(l||t(),!h||!f)return;const p=wl(d),x=wl(i.clientWidth-(u+h)),g=wl(i.clientHeight-(d+f)),b=wl(u),y={rootMargin:-p+"px "+-x+"px "+-g+"px "+-b+"px",threshold:Pt(0,$r(1,c))||1};let w=!0;function j(S){const N=S[0].intersectionRatio;if(N!==c){if(!w)return o();N?o(!1,N):r=setTimeout(()=>{o(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(j,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(j,y)}n.observe(e)}return o(!0),s}function SP(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=qp(e),d=i||s?[...u?ya(u):[],...ya(t)]:[];d.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const h=u&&l?jP(u,n):null;let f=-1,p=null;o&&(p=new ResizeObserver(m=>{let[y]=m;y&&y.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let x,g=c?Ti(e):null;c&&b();function b(){const m=Ti(e);g&&(m.x!==g.x||m.y!==g.y||m.width!==g.width||m.height!==g.height)&&n(),g=m,x=requestAnimationFrame(b)}return n(),()=>{var m;d.forEach(y=>{i&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),h==null||h(),(m=p)==null||m.disconnect(),p=null,c&&cancelAnimationFrame(x)}}const kP=nP,NP=rP,CP=ZT,EP=sP,TP=eP,Ty=JT,PP=iP,_P=(e,t,n)=>{const r=new Map,i={platform:bP,...n},s={...i.platform,_c:r};return XT(e,t,{...i,platform:s})};var Xl=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Mc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Mc(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Mc(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ab(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Py(e,t){const n=ab(e);return Math.round(t*n)/n}function yd(e){const t=v.useRef(e);return Xl(()=>{t.current=e}),t}function AP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,h]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(r);Mc(f,r)||p(r);const[x,g]=v.useState(null),[b,m]=v.useState(null),y=v.useCallback(E=>{E!==N.current&&(N.current=E,g(E))},[]),w=v.useCallback(E=>{E!==k.current&&(k.current=E,m(E))},[]),j=s||x,S=o||b,N=v.useRef(null),k=v.useRef(null),C=v.useRef(d),_=c!=null,I=yd(c),R=yd(i),z=yd(u),H=v.useCallback(()=>{if(!N.current||!k.current)return;const E={placement:t,strategy:n,middleware:f};R.current&&(E.platform=R.current),_P(N.current,k.current,E).then(O=>{const B={...O,isPositioned:z.current!==!1};L.current&&!Mc(C.current,B)&&(C.current=B,La.flushSync(()=>{h(B)}))})},[f,t,n,R,z]);Xl(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,h(E=>({...E,isPositioned:!1})))},[u]);const L=v.useRef(!1);Xl(()=>(L.current=!0,()=>{L.current=!1}),[]),Xl(()=>{if(j&&(N.current=j),S&&(k.current=S),j&&S){if(I.current)return I.current(j,S,H);H()}},[j,S,H,I,_]);const q=v.useMemo(()=>({reference:N,floating:k,setReference:y,setFloating:w}),[y,w]),W=v.useMemo(()=>({reference:j,floating:S}),[j,S]),F=v.useMemo(()=>{const E={position:n,left:0,top:0};if(!W.floating)return E;const O=Py(W.floating,d.x),B=Py(W.floating,d.y);return l?{...E,transform:"translate("+O+"px, "+B+"px)",...ab(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:B}},[n,l,W.floating,d.x,d.y]);return v.useMemo(()=>({...d,update:H,refs:q,elements:W,floatingStyles:F}),[d,H,q,W,F])}const RP=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ty({element:r.current,padding:i}).fn(n):{}:r?Ty({element:r,padding:i}).fn(n):{}}}},IP=(e,t)=>({...kP(e),options:[e,t]}),MP=(e,t)=>({...NP(e),options:[e,t]}),OP=(e,t)=>({...PP(e),options:[e,t]}),DP=(e,t)=>({...CP(e),options:[e,t]}),LP=(e,t)=>({...EP(e),options:[e,t]}),zP=(e,t)=>({...TP(e),options:[e,t]}),$P=(e,t)=>({...RP(e),options:[e,t]});var FP="Arrow",lb=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return a.jsx(Le.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});lb.displayName=FP;var VP=lb;function BP(e,t=[]){let n=[];function r(s,o){const l=v.createContext(o),c=n.length;n=[...n,o];function u(h){const{scope:f,children:p,...x}=h,g=(f==null?void 0:f[e][c])||l,b=v.useMemo(()=>x,Object.values(x));return a.jsx(g.Provider,{value:b,children:p})}function d(h,f){const p=(f==null?void 0:f[e][c])||l,x=v.useContext(p);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,d]}const i=()=>{const s=n.map(o=>v.createContext(o));return function(l){const c=(l==null?void 0:l[e])||s;return v.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return i.scopeName=e,[r,UP(i,...t)]}function UP(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((l,{useScope:c,scopeName:u})=>{const h=c(s)[`__scope${u}`];return{...l,...h}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function HP(e){const[t,n]=v.useState(void 0);return Lr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,l;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,l=u.blockSize}else o=e.offsetWidth,l=e.offsetHeight;n({width:o,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var cb="Popper",[ub,db]=BP(cb),[GL,hb]=ub(cb),fb="PopperAnchor",pb=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=hb(fb,n),o=v.useRef(null),l=ht(t,o);return v.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:a.jsx(Le.div,{...i,ref:l})});pb.displayName=fb;var Gp="PopperContent",[WP,KP]=ub(Gp),mb=v.forwardRef((e,t)=>{var Je,mt,Lt,zt,Xt,Mn;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:x,...g}=e,b=hb(Gp,n),[m,y]=v.useState(null),w=ht(t,X=>y(X)),[j,S]=v.useState(null),N=HP(j),k=(N==null?void 0:N.width)??0,C=(N==null?void 0:N.height)??0,_=r+(s!=="center"?"-"+s:""),I=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},R=Array.isArray(u)?u:[u],z=R.length>0,H={padding:I,boundary:R.filter(GP),altBoundary:z},{refs:L,floatingStyles:q,placement:W,isPositioned:F,middlewareData:E}=AP({strategy:"fixed",placement:_,whileElementsMounted:(...X)=>SP(...X,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[IP({mainAxis:i+C,alignmentAxis:o}),c&&MP({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?OP():void 0,...H}),c&&DP({...H}),LP({...H,apply:({elements:X,rects:nr,availableWidth:Zr,availableHeight:$t})=>{const{width:so,height:oo}=nr.reference,be=X.floating.style;be.setProperty("--radix-popper-available-width",`${Zr}px`),be.setProperty("--radix-popper-available-height",`${$t}px`),be.setProperty("--radix-popper-anchor-width",`${so}px`),be.setProperty("--radix-popper-anchor-height",`${oo}px`)}}),j&&$P({element:j,padding:l}),YP({arrowWidth:k,arrowHeight:C}),f&&zP({strategy:"referenceHidden",...H})]}),[O,B]=vb(W),V=Qt(x);Lr(()=>{F&&(V==null||V())},[F,V]);const G=(Je=E.arrow)==null?void 0:Je.x,Z=(mt=E.arrow)==null?void 0:mt.y,he=((Lt=E.arrow)==null?void 0:Lt.centerOffset)!==0,[We,le]=v.useState();return Lr(()=>{m&&le(window.getComputedStyle(m).zIndex)},[m]),a.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:F?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:We,"--radix-popper-transform-origin":[(zt=E.transformOrigin)==null?void 0:zt.x,(Xt=E.transformOrigin)==null?void 0:Xt.y].join(" "),...((Mn=E.hide)==null?void 0:Mn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(WP,{scope:n,placedSide:O,onArrowChange:S,arrowX:G,arrowY:Z,shouldHideArrow:he,children:a.jsx(Le.div,{"data-side":O,"data-align":B,...g,ref:w,style:{...g.style,animation:F?void 0:"none"}})})})});mb.displayName=Gp;var gb="PopperArrow",qP={top:"bottom",right:"left",bottom:"top",left:"right"},yb=v.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=KP(gb,r),o=qP[s.placedSide];return a.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:a.jsx(VP,{...i,ref:n,style:{...i.style,display:"block"}})})});yb.displayName=gb;function GP(e){return e!==null}var YP=e=>({name:"transformOrigin",options:e,fn(t){var b,m,y;const{placement:n,rects:r,middlewareData:i}=t,o=((b=i.arrow)==null?void 0:b.centerOffset)!==0,l=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,d]=vb(n),h={start:"0%",center:"50%",end:"100%"}[d],f=(((m=i.arrow)==null?void 0:m.x)??0)+l/2,p=(((y=i.arrow)==null?void 0:y.y)??0)+c/2;let x="",g="";return u==="bottom"?(x=o?h:`${f}px`,g=`${-c}px`):u==="top"?(x=o?h:`${f}px`,g=`${r.floating.height+c}px`):u==="right"?(x=`${-c}px`,g=o?h:`${p}px`):u==="left"&&(x=`${r.floating.width+c}px`,g=o?h:`${p}px`),{data:{x,y:g}}}});function vb(e){const[t,n="center"]=e.split("-");return[t,n]}var QP=pb,XP=mb,JP=yb,[mu,YL]=Op("Tooltip",[db]),Yp=db(),xb="TooltipProvider",ZP=700,_y="tooltip.open",[e_,wb]=mu(xb),bb=e=>{const{__scopeTooltip:t,delayDuration:n=ZP,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,[o,l]=v.useState(!0),c=v.useRef(!1),u=v.useRef(0);return v.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),a.jsx(e_,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(u.current),l(!1)},[]),onClose:v.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>l(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:v.useCallback(d=>{c.current=d},[]),disableHoverableContent:i,children:s})};bb.displayName=xb;var jb="Tooltip",[QL,gu]=mu(jb),of="TooltipTrigger",t_=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=gu(of,n),s=wb(of,n),o=Yp(n),l=v.useRef(null),c=ht(t,l,i.onTriggerChange),u=v.useRef(!1),d=v.useRef(!1),h=v.useCallback(()=>u.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),a.jsx(QP,{asChild:!0,...o,children:a.jsx(Le.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:c,onPointerMove:we(e.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:we(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:we(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:we(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:we(e.onBlur,i.onClose),onClick:we(e.onClick,i.onClose)})})});t_.displayName=of;var n_="TooltipPortal",[XL,r_]=mu(n_,{forceMount:void 0}),Ls="TooltipContent",Sb=v.forwardRef((e,t)=>{const n=r_(Ls,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,o=gu(Ls,e.__scopeTooltip);return a.jsx(Ks,{present:r||o.open,children:o.disableHoverableContent?a.jsx(kb,{side:i,...s,ref:t}):a.jsx(i_,{side:i,...s,ref:t})})}),i_=v.forwardRef((e,t)=>{const n=gu(Ls,e.__scopeTooltip),r=wb(Ls,e.__scopeTooltip),i=v.useRef(null),s=ht(t,i),[o,l]=v.useState(null),{trigger:c,onClose:u}=n,d=i.current,{onPointerInTransitChange:h}=r,f=v.useCallback(()=>{l(null),h(!1)},[h]),p=v.useCallback((x,g)=>{const b=x.currentTarget,m={x:x.clientX,y:x.clientY},y=l_(m,b.getBoundingClientRect()),w=c_(m,y),j=u_(g.getBoundingClientRect()),S=h_([...w,...j]);l(S),h(!0)},[h]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(c&&d){const x=b=>p(b,d),g=b=>p(b,c);return c.addEventListener("pointerleave",x),d.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",x),d.removeEventListener("pointerleave",g)}}},[c,d,p,f]),v.useEffect(()=>{if(o){const x=g=>{const b=g.target,m={x:g.clientX,y:g.clientY},y=(c==null?void 0:c.contains(b))||(d==null?void 0:d.contains(b)),w=!d_(m,o);y?f():w&&(f(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[c,d,o,u,f]),a.jsx(kb,{...e,ref:s})}),[s_,o_]=mu(jb,{isInside:!1}),kb=v.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...l}=e,c=gu(Ls,n),u=Yp(n),{onClose:d}=c;return v.useEffect(()=>(document.addEventListener(_y,d),()=>document.removeEventListener(_y,d)),[d]),v.useEffect(()=>{if(c.trigger){const h=f=>{const p=f.target;p!=null&&p.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),a.jsx(lu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:a.jsxs(XP,{"data-state":c.stateAttribute,...u,...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(c1,{children:r}),a.jsx(s_,{scope:n,isInside:!0,children:a.jsx(RC,{id:c.contentId,role:"tooltip",children:i||r})})]})})});Sb.displayName=Ls;var Nb="TooltipArrow",a_=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Yp(n);return o_(Nb,n).isInside?null:a.jsx(JP,{...i,...r,ref:t})});a_.displayName=Nb;function l_(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function c_(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function u_(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function d_(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const l=t[s].x,c=t[s].y,u=t[o].x,d=t[o].y;c>r!=d>r&&n<(u-l)*(r-c)/(d-c)+l&&(i=!i)}return i}function h_(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),f_(t)}function f_(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var p_=bb,Cb=Sb;const m_=p_,g_=v.forwardRef(({className:e,sideOffset:t=4,...n},r)=>a.jsx(Cb,{ref:r,sideOffset:t,className:St("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),...n}));g_.displayName=Cb.displayName;var yu=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(){}},vu=typeof window>"u"||"Deno"in globalThis;function rn(){}function y_(e,t){return typeof e=="function"?e(t):e}function v_(e){return typeof e=="number"&&e>=0&&e!==1/0}function x_(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ay(e,t){return typeof e=="function"?e(t):e}function w_(e,t){return typeof e=="function"?e(t):e}function Ry(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==Qp(o,t.options))return!1}else if(!xa(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||s&&!s(t))}function Iy(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(va(t.options.mutationKey)!==va(s))return!1}else if(!xa(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Qp(e,t){return((t==null?void 0:t.queryKeyHashFn)||va)(e)}function va(e){return JSON.stringify(e,(t,n)=>af(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function xa(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!xa(e[n],t[n])):!1}function Eb(e,t){if(e===t)return e;const n=My(e)&&My(t);if(n||af(e)&&af(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,l=n?[]:{};let c=0;for(let u=0;u<o;u++){const d=n?u:s[u];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(l[d]=void 0,c++):(l[d]=Eb(e[d],t[d]),l[d]===e[d]&&e[d]!==void 0&&c++)}return i===o&&c===i?e:l}return t}function My(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function af(e){if(!Oy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Oy(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Oy(e){return Object.prototype.toString.call(e)==="[object Object]"}function b_(e){return new Promise(t=>{setTimeout(t,e)})}function j_(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Eb(e,t):t}function S_(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function k_(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Xp=Symbol();function Tb(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Xp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var mi,vr,xs,zv,N_=(zv=class extends yu{constructor(){super();ue(this,mi);ue(this,vr);ue(this,xs);te(this,xs,t=>{if(!vu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){A(this,vr)||this.setEventListener(A(this,xs))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,vr))==null||t.call(this),te(this,vr,void 0))}setEventListener(t){var n;te(this,xs,t),(n=A(this,vr))==null||n.call(this),te(this,vr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){A(this,mi)!==t&&(te(this,mi,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof A(this,mi)=="boolean"?A(this,mi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},mi=new WeakMap,vr=new WeakMap,xs=new WeakMap,zv),Pb=new N_,ws,xr,bs,$v,C_=($v=class extends yu{constructor(){super();ue(this,ws,!0);ue(this,xr);ue(this,bs);te(this,bs,t=>{if(!vu&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){A(this,xr)||this.setEventListener(A(this,bs))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,xr))==null||t.call(this),te(this,xr,void 0))}setEventListener(t){var n;te(this,bs,t),(n=A(this,xr))==null||n.call(this),te(this,xr,t(this.setOnline.bind(this)))}setOnline(t){A(this,ws)!==t&&(te(this,ws,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return A(this,ws)}},ws=new WeakMap,xr=new WeakMap,bs=new WeakMap,$v),Oc=new C_;function E_(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function T_(e){return Math.min(1e3*2**e,3e4)}function _b(e){return(e??"online")==="online"?Oc.isOnline():!0}var Ab=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function vd(e){return e instanceof Ab}function Rb(e){let t=!1,n=0,r=!1,i;const s=E_(),o=g=>{var b;r||(f(new Ab(g)),(b=e.abort)==null||b.call(e))},l=()=>{t=!0},c=()=>{t=!1},u=()=>Pb.isFocused()&&(e.networkMode==="always"||Oc.isOnline())&&e.canRun(),d=()=>_b(e.networkMode)&&e.canRun(),h=g=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,g),i==null||i(),s.resolve(g))},f=g=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,g),i==null||i(),s.reject(g))},p=()=>new Promise(g=>{var b;i=m=>{(r||u())&&g(m)},(b=e.onPause)==null||b.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),x=()=>{if(r)return;let g;const b=n===0?e.initialPromise:void 0;try{g=b??e.fn()}catch(m){g=Promise.reject(m)}Promise.resolve(g).then(h).catch(m=>{var N;if(r)return;const y=e.retry??(vu?0:3),w=e.retryDelay??T_,j=typeof w=="function"?w(n,m):w,S=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,m);if(t||!S){f(m);return}n++,(N=e.onFail)==null||N.call(e,n,m),b_(j).then(()=>u()?void 0:p()).then(()=>{t?f(m):x()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?x():p().then(x),s)}}function P_(){let e=[],t=0,n=l=>{l()},r=l=>{l()},i=l=>setTimeout(l,0);const s=l=>{t?e.push(l):i(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&i(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},batchCalls:l=>(...c)=>{s(()=>{l(...c)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{i=l}}}var ct=P_(),gi,Fv,Ib=(Fv=class{constructor(){ue(this,gi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),v_(this.gcTime)&&te(this,gi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(vu?1/0:5*60*1e3))}clearGcTimeout(){A(this,gi)&&(clearTimeout(A(this,gi)),te(this,gi,void 0))}},gi=new WeakMap,Fv),js,Ss,Bt,nt,_a,yi,sn,zn,Vv,__=(Vv=class extends Ib{constructor(t){super();ue(this,sn);ue(this,js);ue(this,Ss);ue(this,Bt);ue(this,nt);ue(this,_a);ue(this,yi);te(this,yi,!1),te(this,_a,t.defaultOptions),this.setOptions(t.options),this.observers=[],te(this,Bt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,te(this,js,R_(this.options)),this.state=t.state??A(this,js),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=A(this,nt))==null?void 0:t.promise}setOptions(t){this.options={...A(this,_a),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,Bt).remove(this)}setData(t,n){const r=j_(this.state.data,t,this.options);return Ze(this,sn,zn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ze(this,sn,zn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=A(this,nt))==null?void 0:r.promise;return(i=A(this,nt))==null||i.cancel(t),n?n.then(rn).catch(rn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,js))}isActive(){return this.observers.some(t=>w_(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!x_(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,nt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,nt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),A(this,Bt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(A(this,nt)&&(A(this,yi)?A(this,nt).cancel({revert:!0}):A(this,nt).cancelRetry()),this.scheduleGc()),A(this,Bt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ze(this,sn,zn).call(this,{type:"invalidate"})}fetch(t,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(A(this,nt))return A(this,nt).continueRetry(),A(this,nt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(f=>f.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,i=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(te(this,yi,!0),r.signal)})},s=()=>{const h=Tb(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),te(this,yi,!1),this.options.persister?this.options.persister(h,f,this):h(f)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};i(o),(c=this.options.behavior)==null||c.onFetch(o,this),te(this,Ss,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=o.fetchOptions)==null?void 0:u.meta))&&Ze(this,sn,zn).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta});const l=h=>{var f,p,x,g;vd(h)&&h.silent||Ze(this,sn,zn).call(this,{type:"error",error:h}),vd(h)||((p=(f=A(this,Bt).config).onError)==null||p.call(f,h,this),(g=(x=A(this,Bt).config).onSettled)==null||g.call(x,this.state.data,h,this)),this.scheduleGc()};return te(this,nt,Rb({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var f,p,x,g;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(b){l(b);return}(p=(f=A(this,Bt).config).onSuccess)==null||p.call(f,h,this),(g=(x=A(this,Bt).config).onSettled)==null||g.call(x,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,f)=>{Ze(this,sn,zn).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{Ze(this,sn,zn).call(this,{type:"pause"})},onContinue:()=>{Ze(this,sn,zn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),A(this,nt).start()}},js=new WeakMap,Ss=new WeakMap,Bt=new WeakMap,nt=new WeakMap,_a=new WeakMap,yi=new WeakMap,sn=new WeakSet,zn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...A_(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return vd(i)&&i.revert&&A(this,Ss)?{...A(this,Ss),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ct.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),A(this,Bt).notify({query:this,type:"updated",action:t})})},Vv);function A_(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_b(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function R_(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var wn,Bv,I_=(Bv=class extends yu{constructor(t={}){super();ue(this,wn);this.config=t,te(this,wn,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??Qp(i,n);let o=this.get(s);return o||(o=new __({cache:this,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){A(this,wn).has(t.queryHash)||(A(this,wn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=A(this,wn).get(t.queryHash);n&&(t.destroy(),n===t&&A(this,wn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ct.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return A(this,wn).get(t)}getAll(){return[...A(this,wn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ry(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ry(t,r)):n}notify(t){ct.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ct.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ct.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},wn=new WeakMap,Bv),bn,at,vi,jn,ar,Uv,M_=(Uv=class extends Ib{constructor(t){super();ue(this,jn);ue(this,bn);ue(this,at);ue(this,vi);this.mutationId=t.mutationId,te(this,at,t.mutationCache),te(this,bn,[]),this.state=t.state||O_(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){A(this,bn).includes(t)||(A(this,bn).push(t),this.clearGcTimeout(),A(this,at).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){te(this,bn,A(this,bn).filter(n=>n!==t)),this.scheduleGc(),A(this,at).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){A(this,bn).length||(this.state.status==="pending"?this.scheduleGc():A(this,at).remove(this))}continue(){var t;return((t=A(this,vi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,o,l,c,u,d,h,f,p,x,g,b,m,y,w,j,S,N,k;te(this,vi,Rb({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,_)=>{Ze(this,jn,ar).call(this,{type:"failed",failureCount:C,error:_})},onPause:()=>{Ze(this,jn,ar).call(this,{type:"pause"})},onContinue:()=>{Ze(this,jn,ar).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,at).canRun(this)}));const n=this.state.status==="pending",r=!A(this,vi).canStart();try{if(!n){Ze(this,jn,ar).call(this,{type:"pending",variables:t,isPaused:r}),await((s=(i=A(this,at).config).onMutate)==null?void 0:s.call(i,t,this));const _=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));_!==this.state.context&&Ze(this,jn,ar).call(this,{type:"pending",context:_,variables:t,isPaused:r})}const C=await A(this,vi).start();return await((u=(c=A(this,at).config).onSuccess)==null?void 0:u.call(c,C,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,C,t,this.state.context)),await((p=(f=A(this,at).config).onSettled)==null?void 0:p.call(f,C,null,this.state.variables,this.state.context,this)),await((g=(x=this.options).onSettled)==null?void 0:g.call(x,C,null,t,this.state.context)),Ze(this,jn,ar).call(this,{type:"success",data:C}),C}catch(C){try{throw await((m=(b=A(this,at).config).onError)==null?void 0:m.call(b,C,t,this.state.context,this)),await((w=(y=this.options).onError)==null?void 0:w.call(y,C,t,this.state.context)),await((S=(j=A(this,at).config).onSettled)==null?void 0:S.call(j,void 0,C,this.state.variables,this.state.context,this)),await((k=(N=this.options).onSettled)==null?void 0:k.call(N,void 0,C,t,this.state.context)),C}finally{Ze(this,jn,ar).call(this,{type:"error",error:C})}}finally{A(this,at).runNext(this)}}},bn=new WeakMap,at=new WeakMap,vi=new WeakMap,jn=new WeakSet,ar=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ct.batch(()=>{A(this,bn).forEach(r=>{r.onMutationUpdate(t)}),A(this,at).notify({mutation:this,type:"updated",action:t})})},Uv);function O_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ct,Aa,Hv,D_=(Hv=class extends yu{constructor(t={}){super();ue(this,Ct);ue(this,Aa);this.config=t,te(this,Ct,new Map),te(this,Aa,Date.now())}build(t,n,r){const i=new M_({mutationCache:this,mutationId:++Za(this,Aa)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=bl(t),r=A(this,Ct).get(n)??[];r.push(t),A(this,Ct).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=bl(t);if(A(this,Ct).has(n)){const i=(r=A(this,Ct).get(n))==null?void 0:r.filter(s=>s!==t);i&&(i.length===0?A(this,Ct).delete(n):A(this,Ct).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=A(this,Ct).get(bl(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=A(this,Ct).get(bl(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){ct.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...A(this,Ct).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Iy(n,r))}findAll(t={}){return this.getAll().filter(n=>Iy(t,n))}notify(t){ct.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ct.batch(()=>Promise.all(t.map(n=>n.continue().catch(rn))))}},Ct=new WeakMap,Aa=new WeakMap,Hv);function bl(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Dy(e){return{onFetch:(t,n)=>{var d,h,f,p,x;const r=t.options,i=(f=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,s=((p=t.state.data)==null?void 0:p.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let g=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},m=Tb(t.options,t.fetchOptions),y=async(w,j,S)=>{if(g)return Promise.reject();if(j==null&&w.pages.length)return Promise.resolve(w);const N={queryKey:t.queryKey,pageParam:j,direction:S?"backward":"forward",meta:t.options.meta};b(N);const k=await m(N),{maxPages:C}=t.options,_=S?k_:S_;return{pages:_(w.pages,k,C),pageParams:_(w.pageParams,j,C)}};if(i&&s.length){const w=i==="backward",j=w?L_:Ly,S={pages:s,pageParams:o},N=j(r,S);l=await y(S,N,w)}else{const w=e??s.length;do{const j=c===0?o[0]??r.initialPageParam:Ly(r,l);if(c>0&&j==null)break;l=await y(l,j),c++}while(c<w)}return l};t.options.persister?t.fetchFn=()=>{var g,b;return(b=(g=t.options).persister)==null?void 0:b.call(g,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Ly(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function L_(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Pe,wr,br,ks,Ns,jr,Cs,Es,Wv,z_=(Wv=class{constructor(e={}){ue(this,Pe);ue(this,wr);ue(this,br);ue(this,ks);ue(this,Ns);ue(this,jr);ue(this,Cs);ue(this,Es);te(this,Pe,e.queryCache||new I_),te(this,wr,e.mutationCache||new D_),te(this,br,e.defaultOptions||{}),te(this,ks,new Map),te(this,Ns,new Map),te(this,jr,0)}mount(){Za(this,jr)._++,A(this,jr)===1&&(te(this,Cs,Pb.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,Pe).onFocus())})),te(this,Es,Oc.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,Pe).onOnline())})))}unmount(){var e,t;Za(this,jr)._--,A(this,jr)===0&&((e=A(this,Cs))==null||e.call(this),te(this,Cs,void 0),(t=A(this,Es))==null||t.call(this),te(this,Es,void 0))}isFetching(e){return A(this,Pe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return A(this,wr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=A(this,Pe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=A(this,Pe).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Ay(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return A(this,Pe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=A(this,Pe).get(r.queryHash),s=i==null?void 0:i.state.data,o=y_(t,s);if(o!==void 0)return A(this,Pe).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ct.batch(()=>A(this,Pe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=A(this,Pe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=A(this,Pe);ct.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=A(this,Pe),r={type:"active",...e};return ct.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ct.batch(()=>A(this,Pe).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(rn).catch(rn)}invalidateQueries(e={},t={}){return ct.batch(()=>{if(A(this,Pe).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=ct.batch(()=>A(this,Pe).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(rn)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(rn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=A(this,Pe).build(this,t);return n.isStaleByTime(Ay(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(rn).catch(rn)}fetchInfiniteQuery(e){return e.behavior=Dy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(rn).catch(rn)}ensureInfiniteQueryData(e){return e.behavior=Dy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Oc.isOnline()?A(this,wr).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,Pe)}getMutationCache(){return A(this,wr)}getDefaultOptions(){return A(this,br)}setDefaultOptions(e){te(this,br,e)}setQueryDefaults(e,t){A(this,ks).set(va(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...A(this,ks).values()];let n={};return t.forEach(r=>{xa(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){A(this,Ns).set(va(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...A(this,Ns).values()];let n={};return t.forEach(r=>{xa(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...A(this,br).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Qp(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.enabled!==!0&&t.queryFn===Xp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...A(this,br).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){A(this,Pe).clear(),A(this,wr).clear()}},Pe=new WeakMap,wr=new WeakMap,br=new WeakMap,ks=new WeakMap,Ns=new WeakMap,jr=new WeakMap,Cs=new WeakMap,Es=new WeakMap,Wv),$_=v.createContext(void 0),F_=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),a.jsx($_.Provider,{value:e,children:t}));/**
* @remix-run/router v1.20.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wa.apply(this,arguments)}var Nr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Nr||(Nr={}));const zy="popstate";function V_(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:o,hash:l}=r.location;return lf("",{pathname:s,search:o,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Dc(i)}return U_(t,n,null,e)}function Me(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Mb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function B_(){return Math.random().toString(36).substr(2,8)}function $y(e,t){return{usr:e.state,key:e.key,idx:t}}function lf(e,t,n,r){return n===void 0&&(n=null),wa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Qs(t):t,{state:n,key:t&&t.key||r||B_()})}function Dc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Qs(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function U_(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,l=Nr.Pop,c=null,u=d();u==null&&(u=0,o.replaceState(wa({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function h(){l=Nr.Pop;let b=d(),m=b==null?null:b-u;u=b,c&&c({action:l,location:g.location,delta:m})}function f(b,m){l=Nr.Push;let y=lf(g.location,b,m);u=d()+1;let w=$y(y,u),j=g.createHref(y);try{o.pushState(w,"",j)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(j)}s&&c&&c({action:l,location:g.location,delta:1})}function p(b,m){l=Nr.Replace;let y=lf(g.location,b,m);u=d();let w=$y(y,u),j=g.createHref(y);o.replaceState(w,"",j),s&&c&&c({action:l,location:g.location,delta:0})}function x(b){let m=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof b=="string"?b:Dc(b);return y=y.replace(/ $/,"%20"),Me(m,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,m)}let g={get action(){return l},get location(){return e(i,o)},listen(b){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(zy,h),c=b,()=>{i.removeEventListener(zy,h),c=null}},createHref(b){return t(i,b)},createURL:x,encodeLocation(b){let m=x(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:p,go(b){return o.go(b)}};return g}var Fy;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Fy||(Fy={}));function H_(e,t,n){return n===void 0&&(n="/"),W_(e,t,n,!1)}function W_(e,t,n,r){let i=typeof t=="string"?Qs(t):t,s=Jp(i.pathname||"/",n);if(s==null)return null;let o=Ob(e);K_(o);let l=null;for(let c=0;l==null&&c<o.length;++c){let u=rA(s);l=tA(o[c],u,r)}return l}function Ob(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,l)=>{let c={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};c.relativePath.startsWith("/")&&(Me(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Mr([r,c.relativePath]),d=n.concat(c);s.children&&s.children.length>0&&(Me(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Ob(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:Z_(u,s.index),routesMeta:d})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,o);else for(let c of Db(s.path))i(s,o,c)}),t}function Db(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=Db(r.join("/")),l=[];return l.push(...o.map(c=>c===""?s:[s,c].join("/"))),i&&l.push(...o),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function K_(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:eA(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const q_=/^:[\w-]+$/,G_=3,Y_=2,Q_=1,X_=10,J_=-2,Vy=e=>e==="*";function Z_(e,t){let n=e.split("/"),r=n.length;return n.some(Vy)&&(r+=J_),t&&(r+=Y_),n.filter(i=>!Vy(i)).reduce((i,s)=>i+(q_.test(s)?G_:s===""?Q_:X_),r)}function eA(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function tA(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",h=By({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),f=c.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=By({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!h)return null;Object.assign(i,h.params),o.push({params:i,pathname:Mr([s,h.pathname]),pathnameBase:aA(Mr([s,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(s=Mr([s,h.pathnameBase]))}return o}function By(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=nA(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,d,h)=>{let{paramName:f,isOptional:p}=d;if(f==="*"){let g=l[h]||"";o=s.slice(0,s.length-g.length).replace(/(.)\/+$/,"$1")}const x=l[h];return p&&!x?u[f]=void 0:u[f]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function nA(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Mb(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 r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function rA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mb(!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 Jp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function iA(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Qs(e):e;return{pathname:n?n.startsWith("/")?n:sA(n,t):t,search:lA(r),hash:cA(i)}}function sA(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function xd(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function oA(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Zp(e,t){let n=oA(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function em(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Qs(e):(i=wa({},e),Me(!i.pathname||!i.pathname.includes("?"),xd("?","pathname","search",i)),Me(!i.pathname||!i.pathname.includes("#"),xd("#","pathname","hash",i)),Me(!i.search||!i.search.includes("#"),xd("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,l;if(o==null)l=n;else{let h=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),h-=1;i.pathname=f.join("/")}l=h>=0?t[h]:"/"}let c=iA(i,l),u=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const Mr=e=>e.join("/").replace(/\/\/+/g,"/"),aA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),lA=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,cA=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function uA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Lb=["post","put","patch","delete"];new Set(Lb);const dA=["get",...Lb];new Set(dA);/**
* React Router v6.27.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ba.apply(this,arguments)}const tm=v.createContext(null),hA=v.createContext(null),Qr=v.createContext(null),xu=v.createContext(null),Xr=v.createContext({outlet:null,matches:[],isDataRoute:!1}),zb=v.createContext(null);function fA(e,t){let{relative:n}=t===void 0?{}:t;Xs()||Me(!1);let{basename:r,navigator:i}=v.useContext(Qr),{hash:s,pathname:o,search:l}=Fb(e,{relative:n}),c=o;return r!=="/"&&(c=o==="/"?r:Mr([r,o])),i.createHref({pathname:c,search:l,hash:s})}function Xs(){return v.useContext(xu)!=null}function Js(){return Xs()||Me(!1),v.useContext(xu).location}function $b(e){v.useContext(Qr).static||v.useLayoutEffect(e)}function Zs(){let{isDataRoute:e}=v.useContext(Xr);return e?CA():pA()}function pA(){Xs()||Me(!1);let e=v.useContext(tm),{basename:t,future:n,navigator:r}=v.useContext(Qr),{matches:i}=v.useContext(Xr),{pathname:s}=Js(),o=JSON.stringify(Zp(i,n.v7_relativeSplatPath)),l=v.useRef(!1);return $b(()=>{l.current=!0}),v.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let h=em(u,JSON.parse(o),s,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Mr([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,o,s,e])}function Fb(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(Qr),{matches:i}=v.useContext(Xr),{pathname:s}=Js(),o=JSON.stringify(Zp(i,r.v7_relativeSplatPath));return v.useMemo(()=>em(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function mA(e,t){return gA(e,t)}function gA(e,t,n,r){Xs()||Me(!1);let{navigator:i}=v.useContext(Qr),{matches:s}=v.useContext(Xr),o=s[s.length-1],l=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let u=Js(),d;if(t){var h;let b=typeof t=="string"?Qs(t):t;c==="/"||(h=b.pathname)!=null&&h.startsWith(c)||Me(!1),d=b}else d=u;let f=d.pathname||"/",p=f;if(c!=="/"){let b=c.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let x=H_(e,{pathname:p}),g=bA(x&&x.map(b=>Object.assign({},b,{params:Object.assign({},l,b.params),pathname:Mr([c,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:Mr([c,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),s,n,r);return t&&g?v.createElement(xu.Provider,{value:{location:ba({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Nr.Pop}},g):g}function yA(){let e=NA(),t=uA(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:i},n):null,null)}const vA=v.createElement(yA,null);class xA extends v.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(Xr.Provider,{value:this.props.routeContext},v.createElement(zb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function wA(e){let{routeContext:t,match:n,children:r}=e,i=v.useContext(tm);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(Xr.Provider,{value:t},r)}function bA(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let d=o.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);d>=0||Me(!1),o=o.slice(0,Math.min(o.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let h=o[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:f,errors:p}=n,x=h.route.loader&&f[h.route.id]===void 0&&(!p||p[h.route.id]===void 0);if(h.route.lazy||x){c=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,h,f)=>{let p,x=!1,g=null,b=null;n&&(p=l&&h.route.id?l[h.route.id]:void 0,g=h.route.errorElement||vA,c&&(u<0&&f===0?(x=!0,b=null):u===f&&(x=!0,b=h.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,f+1)),y=()=>{let w;return p?w=g:x?w=b:h.route.Component?w=v.createElement(h.route.Component,null):h.route.element?w=h.route.element:w=d,v.createElement(wA,{match:h,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:w})};return n&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?v.createElement(xA,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):y()},null)}var Vb=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Vb||{}),Lc=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}(Lc||{});function jA(e){let t=v.useContext(tm);return t||Me(!1),t}function SA(e){let t=v.useContext(hA);return t||Me(!1),t}function kA(e){let t=v.useContext(Xr);return t||Me(!1),t}function Bb(e){let t=kA(),n=t.matches[t.matches.length-1];return n.route.id||Me(!1),n.route.id}function NA(){var e;let t=v.useContext(zb),n=SA(Lc.UseRouteError),r=Bb(Lc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function CA(){let{router:e}=jA(Vb.UseNavigateStable),t=Bb(Lc.UseNavigateStable),n=v.useRef(!1);return $b(()=>{n.current=!0}),v.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ba({fromRouteId:t},s)))},[e,t])}function Uy(e){let{to:t,replace:n,state:r,relative:i}=e;Xs()||Me(!1);let{future:s,static:o}=v.useContext(Qr),{matches:l}=v.useContext(Xr),{pathname:c}=Js(),u=Zs(),d=em(t,Zp(l,s.v7_relativeSplatPath),c,i==="path"),h=JSON.stringify(d);return v.useEffect(()=>u(JSON.parse(h),{replace:n,state:r,relative:i}),[u,h,i,n,r]),null}function se(e){Me(!1)}function EA(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Nr.Pop,navigator:s,static:o=!1,future:l}=e;Xs()&&Me(!1);let c=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:c,navigator:s,static:o,future:ba({v7_relativeSplatPath:!1},l)}),[c,l,s,o]);typeof r=="string"&&(r=Qs(r));let{pathname:d="/",search:h="",hash:f="",state:p=null,key:x="default"}=r,g=v.useMemo(()=>{let b=Jp(d,c);return b==null?null:{location:{pathname:b,search:h,hash:f,state:p,key:x},navigationType:i}},[c,d,h,f,p,x,i]);return g==null?null:v.createElement(Qr.Provider,{value:u},v.createElement(xu.Provider,{children:n,value:g}))}function TA(e){let{children:t,location:n}=e;return mA(cf(t),n)}new Promise(()=>{});function cf(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,i)=>{if(!v.isValidElement(r))return;let s=[...t,i];if(r.type===v.Fragment){n.push.apply(n,cf(r.props.children,s));return}r.type!==se&&Me(!1),!r.props.index||!r.props.children||Me(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=cf(r.props.children,s)),n.push(o)}),n}/**
* React Router DOM v6.27.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function uf(){return uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uf.apply(this,arguments)}function PA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function _A(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function AA(e,t){return e.button===0&&(!t||t==="_self")&&!_A(e)}const RA=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],IA="6";try{window.__reactRouterVersion=IA}catch{}const MA="startTransition",Hy=rx[MA];function OA(e){let{basename:t,children:n,future:r,window:i}=e,s=v.useRef();s.current==null&&(s.current=V_({window:i,v5Compat:!0}));let o=s.current,[l,c]=v.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},d=v.useCallback(h=>{u&&Hy?Hy(()=>c(h)):c(h)},[c,u]);return v.useLayoutEffect(()=>o.listen(d),[o,d]),v.createElement(EA,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}const DA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",LA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hn=v.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:l,target:c,to:u,preventScrollReset:d,viewTransition:h}=t,f=PA(t,RA),{basename:p}=v.useContext(Qr),x,g=!1;if(typeof u=="string"&&LA.test(u)&&(x=u,DA))try{let w=new URL(window.location.href),j=u.startsWith("//")?new URL(w.protocol+u):new URL(u),S=Jp(j.pathname,p);j.origin===w.origin&&S!=null?u=S+j.search+j.hash:g=!0}catch{}let b=fA(u,{relative:i}),m=zA(u,{replace:o,state:l,target:c,preventScrollReset:d,relative:i,viewTransition:h});function y(w){r&&r(w),w.defaultPrevented||m(w)}return v.createElement("a",uf({},f,{href:x||b,onClick:g||s?r:y,ref:n,target:c}))});var Wy;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Wy||(Wy={}));var Ky;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ky||(Ky={}));function zA(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,viewTransition:l}=t===void 0?{}:t,c=Zs(),u=Js(),d=Fb(e,{relative:o});return v.useCallback(h=>{if(AA(h,n)){h.preventDefault();let f=r!==void 0?r:Dc(u)===Dc(d);c(e,{replace:f,state:i,preventScrollReset:s,relative:o,viewTransition:l})}},[u,c,d,r,i,n,e,s,o,l])}const $A=D1("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"}}),J=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},s)=>{const o=r?Os:"button";return a.jsx(o,{className:St($A({variant:t,size:n,className:e})),ref:s,...i})});J.displayName="Button";const nm=v.createContext({});function rm(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const wu=v.createContext(null),im=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class FA extends v.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function VA({children:e,isPresent:t,anchorX:n}){const r=v.useId(),i=v.useRef(null),s=v.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=v.useContext(im);return v.useInsertionEffect(()=>{const{width:l,height:c,top:u,left:d,right:h}=s.current;if(t||!i.current||!l||!c)return;const f=n==="left"?`left: ${d}`:`right: ${h}`;i.current.dataset.motionPopId=r;const p=document.createElement("style");return o&&(p.nonce=o),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(`
[data-motion-pop-id="${r}"] {
position: absolute !important;
width: ${l}px !important;
height: ${c}px !important;
${f}px !important;
top: ${u}px !important;
}
`),()=>{document.head.removeChild(p)}},[t]),a.jsx(FA,{isPresent:t,childRef:i,sizeRef:s,children:v.cloneElement(e,{ref:i})})}const BA=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:l})=>{const c=rm(UA),u=v.useId(),d=v.useCallback(f=>{c.set(f,!0);for(const p of c.values())if(!p)return;r&&r()},[c,r]),h=v.useMemo(()=>({id:u,initial:t,isPresent:n,custom:i,onExitComplete:d,register:f=>(c.set(f,!1),()=>c.delete(f))}),s?[Math.random(),d]:[n,d]);return v.useMemo(()=>{c.forEach((f,p)=>c.set(p,!1))},[n]),v.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),o==="popLayout"&&(e=a.jsx(VA,{isPresent:n,anchorX:l,children:e})),a.jsx(wu.Provider,{value:h,children:e})};function UA(){return new Map}function Ub(e=!0){const t=v.useContext(wu);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=v.useId();v.useEffect(()=>{e&&i(s)},[e]);const o=v.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const jl=e=>e.key||"";function qy(e){const t=[];return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const sm=typeof window<"u",Hb=sm?v.useLayoutEffect:v.useEffect,om=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:l="left"})=>{const[c,u]=Ub(o),d=v.useMemo(()=>qy(e),[e]),h=o&&!c?[]:d.map(jl),f=v.useRef(!0),p=v.useRef(d),x=rm(()=>new Map),[g,b]=v.useState(d),[m,y]=v.useState(d);Hb(()=>{f.current=!1,p.current=d;for(let S=0;S<m.length;S++){const N=jl(m[S]);h.includes(N)?x.delete(N):x.get(N)!==!0&&x.set(N,!1)}},[m,h.length,h.join("-")]);const w=[];if(d!==g){let S=[...d];for(let N=0;N<m.length;N++){const k=m[N],C=jl(k);h.includes(C)||(S.splice(N,0,k),w.push(k))}return s==="wait"&&w.length&&(S=w),y(qy(S)),b(d),null}const{forceRender:j}=v.useContext(nm);return a.jsx(a.Fragment,{children:m.map(S=>{const N=jl(S),k=o&&!c?!1:d===m||h.includes(N),C=()=>{if(x.has(N))x.set(N,!0);else return;let _=!0;x.forEach(I=>{I||(_=!1)}),_&&(j==null||j(),y(p.current),o&&(u==null||u()),r&&r())};return a.jsx(BA,{isPresent:k,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,onExitComplete:k?void 0:C,anchorX:l,children:S},N)})})},It=e=>e;let df=It;function am(e){let t;return()=>(t===void 0&&(t=e()),t)}const zs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Kn=e=>e*1e3,qn=e=>e/1e3,HA={skipAnimations:!1,useManualTiming:!1},Sl=["read","resolveKeyframes","update","preRender","render","postRender"],Gy={value:null,addProjectionMetrics:null};function WA(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},c=0;function u(h){o.has(h)&&(d.schedule(h),e()),c++,h(l)}const d={schedule:(h,f=!1,p=!1)=>{const g=p&&i?n:r;return f&&o.add(h),g.has(h)||g.add(h),h},cancel:h=>{r.delete(h),o.delete(h)},process:h=>{if(l=h,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),t&&Gy.value&&Gy.value.frameloop[t].push(c),c=0,n.clear(),i=!1,s&&(s=!1,d.process(h))}};return d}const KA=40;function Wb(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Sl.reduce((m,y)=>(m[y]=WA(s,t?y:void 0),m),{}),{read:l,resolveKeyframes:c,update:u,preRender:d,render:h,postRender:f}=o,p=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,KA),1),i.timestamp=m,i.isProcessing=!0,l.process(i),c.process(i),u.process(i),d.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},x=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:Sl.reduce((m,y)=>{const w=o[y];return m[y]=(j,S=!1,N=!1)=>(n||x(),w.schedule(j,S,N)),m},{}),cancel:m=>{for(let y=0;y<Sl.length;y++)o[Sl[y]].cancel(m)},state:i,steps:o}}const{schedule:me,cancel:Ur,state:Ye,steps:wd}=Wb(typeof requestAnimationFrame<"u"?requestAnimationFrame:It,!0),Kb=v.createContext({strict:!1}),Yy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},$s={};for(const e in Yy)$s[e]={isEnabled:t=>Yy[e].some(n=>!!t[n])};function qA(e){for(const t in e)$s[t]={...$s[t],...e[t]}}const GA=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function zc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||GA.has(e)}let qb=e=>!zc(e);function YA(e){e&&(qb=t=>t.startsWith("on")?!zc(t):e(t))}try{YA(require("@emotion/is-prop-valid").default)}catch{}function QA(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(qb(i)||n===!0&&zc(i)||!t&&!zc(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function XA(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const bu=v.createContext({});function ju(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ja(e){return typeof e=="string"||Array.isArray(e)}const lm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cm=["initial",...lm];function Su(e){return ju(e.animate)||cm.some(t=>ja(e[t]))}function Gb(e){return!!(Su(e)||e.variants)}function JA(e,t){if(Su(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ja(n)?n:void 0,animate:ja(r)?r:void 0}}return e.inherit!==!1?t:{}}function ZA(e){const{initial:t,animate:n}=JA(e,v.useContext(bu));return v.useMemo(()=>({initial:t,animate:n}),[Qy(t),Qy(n)])}function Qy(e){return Array.isArray(e)?e.join(" "):e}const eR=Symbol.for("motionComponentSymbol");function rs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function tR(e,t,n){return v.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):rs(n)&&(n.current=r))},[t])}const um=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),nR="framerAppearId",Yb="data-"+um(nR),{schedule:dm,cancel:JL}=Wb(queueMicrotask,!1),Qb=v.createContext({});function rR(e,t,n,r,i){var s,o;const{visualElement:l}=v.useContext(bu),c=v.useContext(Kb),u=v.useContext(wu),d=v.useContext(im).reducedMotion,h=v.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const f=h.current,p=v.useContext(Qb);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&iR(h.current,n,i,p);const x=v.useRef(!1);v.useInsertionEffect(()=>{f&&x.current&&f.update(n,u)});const g=n[Yb],b=v.useRef(!!g&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,g))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,g)));return Hb(()=>{f&&(x.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),dm.render(f.render),b.current&&f.animationState&&f.animationState.animateChanges())}),v.useEffect(()=>{f&&(!b.current&&f.animationState&&f.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,g)}),b.current=!1))}),f}function iR(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Xb(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||l&&rs(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:u})}function Xb(e){if(e)return e.options.allowProjection!==!1?e.projection:Xb(e.parent)}function sR({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&qA(e);function l(u,d){let h;const f={...v.useContext(im),...u,layoutId:oR(u)},{isStatic:p}=f,x=ZA(u),g=r(u,p);if(!p&&sm){aR();const b=lR(f);h=b.MeasureLayout,x.visualElement=rR(i,g,f,t,b.ProjectionNode)}return a.jsxs(bu.Provider,{value:x,children:[h&&x.visualElement?a.jsx(h,{visualElement:x.visualElement,...f}):null,n(i,u,tR(g,x.visualElement,d),g,p,x.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const c=v.forwardRef(l);return c[eR]=i,c}function oR({layoutId:e}){const t=v.useContext(nm).id;return t&&e!==void 0?t+"-"+e:e}function aR(e,t){v.useContext(Kb).strict}function lR(e){const{drag:t,layout:n}=$s;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Jb=e=>t=>typeof t=="string"&&t.startsWith(e),hm=Jb("--"),cR=Jb("var(--"),fm=e=>cR(e)?uR.test(e.split("/*")[0].trim()):!1,uR=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Sa={};function dR(e){for(const t in e)Sa[t]=e[t],hm(t)&&(Sa[t].isCSSVariable=!0)}const eo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ii=new Set(eo);function Zb(e,{layout:t,layoutId:n}){return Ii.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Sa[e]||e==="opacity")}const st=e=>!!(e&&e.getVelocity),ej=(e,t)=>t&&typeof e=="number"?t.transform(e):e,er=(e,t,n)=>n>t?t:n<e?e:n,to={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ka={...to,transform:e=>er(0,1,e)},kl={...to,default:1},Va=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),lr=Va("deg"),En=Va("%"),Q=Va("px"),hR=Va("vh"),fR=Va("vw"),Xy={...En,parse:e=>En.parse(e)/100,transform:e=>En.transform(e*100)},pR={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,backgroundPositionX:Q,backgroundPositionY:Q},mR={rotate:lr,rotateX:lr,rotateY:lr,rotateZ:lr,scale:kl,scaleX:kl,scaleY:kl,scaleZ:kl,skew:lr,skewX:lr,skewY:lr,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:ka,originX:Xy,originY:Xy,originZ:Q},Jy={...to,transform:Math.round},pm={...pR,...mR,zIndex:Jy,size:Q,fillOpacity:ka,strokeOpacity:ka,numOctaves:Jy},gR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yR=eo.length;function vR(e,t,n){let r="",i=!0;for(let s=0;s<yR;s++){const o=eo[s],l=e[o];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(o.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const u=ej(l,pm[o]);if(!c){i=!1;const d=gR[o]||o;r+=`${d}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function mm(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,l=!1;for(const c in t){const u=t[c];if(Ii.has(c)){o=!0;continue}else if(hm(c)){i[c]=u;continue}else{const d=ej(u,pm[c]);c.startsWith("origin")?(l=!0,s[c]=d):r[c]=d}}if(t.transform||(o||n?r.transform=vR(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=s;r.transformOrigin=`${c} ${u} ${d}`}}const gm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tj(e,t,n){for(const r in t)!st(t[r])&&!Zb(r,n)&&(e[r]=t[r])}function xR({transformTemplate:e},t){return v.useMemo(()=>{const n=gm();return mm(n,t,e),Object.assign({},n.vars,n.style)},[t])}function wR(e,t){const n=e.style||{},r={};return tj(r,n,e),Object.assign(r,xR(e,t)),r}function bR(e,t){const n={},r=wR(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const jR=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ym(e){return typeof e!="string"||e.includes("-")?!1:!!(jR.indexOf(e)>-1||/[A-Z]/u.test(e))}const SR={offset:"stroke-dashoffset",array:"stroke-dasharray"},kR={offset:"strokeDashoffset",array:"strokeDasharray"};function NR(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?SR:kR;e[s.offset]=Q.transform(-r);const o=Q.transform(t),l=Q.transform(n);e[s.array]=`${o} ${l}`}function Zy(e,t,n){return typeof e=="string"?e:Q.transform(t+n*e)}function CR(e,t,n){const r=Zy(t,e.x,e.width),i=Zy(n,e.y,e.height);return`${r} ${i}`}function vm(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:l=1,pathOffset:c=0,...u},d,h){if(mm(e,u,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:x}=e;f.transform&&(x&&(p.transform=f.transform),delete f.transform),x&&(i!==void 0||s!==void 0||p.transform)&&(p.transformOrigin=CR(x,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&NR(f,o,l,c,!1)}const nj=()=>({...gm(),attrs:{}}),xm=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ER(e,t,n,r){const i=v.useMemo(()=>{const s=nj();return vm(s,t,xm(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};tj(s,e.style,e),i.style={...s,...i.style}}return i}function TR(e=!1){return(n,r,i,{latestValues:s},o)=>{const c=(ym(n)?ER:bR)(r,s,o,n),u=QA(r,typeof n=="string",e),d=n!==v.Fragment?{...u,...c,ref:i}:{},{children:h}=r,f=v.useMemo(()=>st(h)?h.get():h,[h]);return v.createElement(n,{...d,children:f})}}function e0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function wm(e,t,n,r){if(typeof t=="function"){const[i,s]=e0(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=e0(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const hf=e=>Array.isArray(e),PR=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),_R=e=>hf(e)?e[e.length-1]||0:e;function Jl(e){const t=st(e)?e.get():e;return PR(t)?t.toValue():t}function AR({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:RR(r,i,s,e),renderState:t()};return n&&(o.onMount=l=>n({props:r,current:l,...o}),o.onUpdate=l=>n(l)),o}const rj=e=>(t,n)=>{const r=v.useContext(bu),i=v.useContext(wu),s=()=>AR(e,t,r,i);return n?s():rm(s)};function RR(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=Jl(s[f]);let{initial:o,animate:l}=e;const c=Su(e),u=Gb(e);t&&u&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?l:o;if(h&&typeof h!="boolean"&&!ju(h)){const f=Array.isArray(h)?h:[h];for(let p=0;p<f.length;p++){const x=wm(e,f[p]);if(x){const{transitionEnd:g,transition:b,...m}=x;for(const y in m){let w=m[y];if(Array.isArray(w)){const j=d?w.length-1:0;w=w[j]}w!==null&&(i[y]=w)}for(const y in g)i[y]=g[y]}}}return i}function bm(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(st(i[o])||t.style&&st(t.style[o])||Zb(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}const IR={useVisualState:rj({scrapeMotionValuesFromProps:bm,createRenderState:gm})};function ij(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function sj(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const oj=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function aj(e,t,n,r){sj(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(oj.has(i)?i:um(i),t.attrs[i])}function lj(e,t,n){const r=bm(e,t,n);for(const i in e)if(st(e[i])||st(t[i])){const s=eo.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const t0=["x","y","width","height","cx","cy","r"],MR={useVisualState:rj({scrapeMotionValuesFromProps:lj,createRenderState:nj,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const l in i)if(Ii.has(l)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let l=0;l<t0.length;l++){const c=t0[l];e[c]!==t[c]&&(o=!0)}o&&me.read(()=>{ij(n,r),me.render(()=>{vm(r,i,xm(n.tagName),e.transformTemplate),aj(n,r)})})}})};function OR(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...ym(r)?MR:IR,preloadedFeatures:e,useRender:TR(i),createVisualElement:t,Component:r};return sR(o)}}function Na(e,t,n){const r=e.getProps();return wm(r,t,n!==void 0?n:r.custom,e)}const DR=am(()=>window.ScrollTimeline!==void 0);class LR{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(DR()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class zR extends LR{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function jm(e,t){return e?e[t]||e.default||e:void 0}const ff=2e4;function cj(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ff;)t+=n,r=e.next(t);return t>=ff?1/0:t}function Sm(e){return typeof e=="function"}function n0(e,t){e.timeline=t,e.onfinish=null}const km=e=>Array.isArray(e)&&typeof e[0]=="number",$R={linearEasing:void 0};function FR(e,t){const n=am(e);return()=>{var r;return(r=$R[t])!==null&&r!==void 0?r:n()}}const $c=FR(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),uj=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(zs(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function dj(e){return!!(typeof e=="function"&&$c()||!e||typeof e=="string"&&(e in pf||$c())||km(e)||Array.isArray(e)&&e.every(dj))}const Ro=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ro([0,.65,.55,1]),circOut:Ro([.55,0,1,.45]),backIn:Ro([.31,.01,.66,-.59]),backOut:Ro([.33,1.53,.69,.99])};function hj(e,t){if(e)return typeof e=="function"&&$c()?uj(e,t):km(e)?Ro(e):Array.isArray(e)?e.map(n=>hj(n,t)||pf.easeOut):pf[e]}const tn={x:!1,y:!1};function fj(){return tn.x||tn.y}function VR(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function pj(e,t){const n=VR(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function r0(e){return!(e.pointerType==="touch"||fj())}function BR(e,t,n={}){const[r,i,s]=pj(e,n),o=l=>{if(!r0(l))return;const{target:c}=l,u=t(c,l);if(typeof u!="function"||!c)return;const d=h=>{r0(h)&&(u(h),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,i)};return r.forEach(l=>{l.addEventListener("pointerenter",o,i)}),s}const mj=(e,t)=>t?e===t?!0:mj(e,t.parentElement):!1,Nm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,UR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function HR(e){return UR.has(e.tagName)||e.tabIndex!==-1}const Io=new WeakSet;function i0(e){return t=>{t.key==="Enter"&&e(t)}}function bd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const WR=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=i0(()=>{if(Io.has(n))return;bd(n,"down");const i=i0(()=>{bd(n,"up")}),s=()=>bd(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function s0(e){return Nm(e)&&!fj()}function KR(e,t,n={}){const[r,i,s]=pj(e,n),o=l=>{const c=l.currentTarget;if(!s0(l)||Io.has(c))return;Io.add(c);const u=t(c,l),d=(p,x)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!s0(p)||!Io.has(c))&&(Io.delete(c),typeof u=="function"&&u(p,{success:x}))},h=p=>{d(p,n.useGlobalTarget||mj(c,p.target))},f=p=>{d(p,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return r.forEach(l=>{!HR(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,i),l.addEventListener("focus",u=>WR(u,i),i)}),s}function qR(e){return e==="x"||e==="y"?tn[e]?null:(tn[e]=!0,()=>{tn[e]=!1}):tn.x||tn.y?null:(tn.x=tn.y=!0,()=>{tn.x=tn.y=!1})}const gj=new Set(["width","height","top","left","right","bottom",...eo]);let Zl;function GR(){Zl=void 0}const Tn={now:()=>(Zl===void 0&&Tn.set(Ye.isProcessing||HA.useManualTiming?Ye.timestamp:performance.now()),Zl),set:e=>{Zl=e,queueMicrotask(GR)}};function Cm(e,t){e.indexOf(t)===-1&&e.push(t)}function Em(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Tm{constructor(){this.subscriptions=[]}add(t){return Cm(this.subscriptions,t),()=>Em(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function yj(e,t){return t?e*(1e3/t):0}const o0=30,YR=e=>!isNaN(parseFloat(e));class QR{constructor(t,n={}){this.version="12.4.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Tn.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Tn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=YR(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Tm);const r=this.events[t].add(n);return t==="change"?()=>{r(),me.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Tn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>o0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,o0);return yj(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ca(e,t){return new QR(e,t)}function XR(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ca(n))}function JR(e,t){const n=Na(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const l=_R(s[o]);XR(e,o,l)}}function ZR(e){return!!(st(e)&&e.add)}function mf(e,t){const n=e.getValue("willChange");if(ZR(n))return n.add(t)}function vj(e){return e.props[Yb]}const xj=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,eI=1e-7,tI=12;function nI(e,t,n,r,i){let s,o,l=0;do o=t+(n-t)/2,s=xj(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>eI&&++l<tI);return o}function Ba(e,t,n,r){if(e===t&&n===r)return It;const i=s=>nI(s,0,1,e,n);return s=>s===0||s===1?s:xj(i(s),t,r)}const wj=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bj=e=>t=>1-e(1-t),jj=Ba(.33,1.53,.69,.99),Pm=bj(jj),Sj=wj(Pm),kj=e=>(e*=2)<1?.5*Pm(e):.5*(2-Math.pow(2,-10*(e-1))),_m=e=>1-Math.sin(Math.acos(e)),Nj=bj(_m),Cj=wj(_m),Ej=e=>/^0[^.\s]+$/u.test(e);function rI(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ej(e):!0}const Wo=e=>Math.round(e*1e5)/1e5,Am=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function iI(e){return e==null}const sI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Rm=(e,t)=>n=>!!(typeof n=="string"&&sI.test(n)&&n.startsWith(e)||t&&!iI(n)&&Object.prototype.hasOwnProperty.call(n,t)),Tj=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,l]=r.match(Am);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},oI=e=>er(0,255,e),jd={...to,transform:e=>Math.round(oI(e))},pi={test:Rm("rgb","red"),parse:Tj("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+jd.transform(e)+", "+jd.transform(t)+", "+jd.transform(n)+", "+Wo(ka.transform(r))+")"};function aI(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const gf={test:Rm("#"),parse:aI,transform:pi.transform},is={test:Rm("hsl","hue"),parse:Tj("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+En.transform(Wo(t))+", "+En.transform(Wo(n))+", "+Wo(ka.transform(r))+")"},rt={test:e=>pi.test(e)||gf.test(e)||is.test(e),parse:e=>pi.test(e)?pi.parse(e):is.test(e)?is.parse(e):gf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?pi.transform(e):is.transform(e)},lI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function cI(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Am))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(lI))===null||n===void 0?void 0:n.length)||0)>0}const Pj="number",_j="color",uI="var",dI="var(",a0="${}",hI=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ea(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const l=t.replace(hI,c=>(rt.test(c)?(r.color.push(s),i.push(_j),n.push(rt.parse(c))):c.startsWith(dI)?(r.var.push(s),i.push(uI),n.push(c)):(r.number.push(s),i.push(Pj),n.push(parseFloat(c))),++s,a0)).split(a0);return{values:n,split:l,indexes:r,types:i}}function Aj(e){return Ea(e).values}function Rj(e){const{split:t,types:n}=Ea(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const l=n[o];l===Pj?s+=Wo(i[o]):l===_j?s+=rt.transform(i[o]):s+=i[o]}return s}}const fI=e=>typeof e=="number"?0:e;function pI(e){const t=Aj(e);return Rj(e)(t.map(fI))}const Hr={test:cI,parse:Aj,createTransformer:Rj,getAnimatableNone:pI},mI=new Set(["brightness","contrast","saturate","opacity"]);function gI(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Am)||[];if(!r)return e;const i=n.replace(r,"");let s=mI.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const yI=/\b([a-z-]*)\(.*?\)/gu,yf={...Hr,getAnimatableNone:e=>{const t=e.match(yI);return t?t.map(gI).join(" "):e}},vI={...pm,color:rt,backgroundColor:rt,outlineColor:rt,fill:rt,stroke:rt,borderColor:rt,borderTopColor:rt,borderRightColor:rt,borderBottomColor:rt,borderLeftColor:rt,filter:yf,WebkitFilter:yf},Im=e=>vI[e];function Ij(e,t){let n=Im(e);return n!==yf&&(n=Hr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const xI=new Set(["auto","none","0"]);function wI(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!xI.has(s)&&Ea(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Ij(n,i)}const l0=e=>e===to||e===Q,c0=(e,t)=>parseFloat(e.split(", ")[t]),u0=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return c0(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?c0(s[1],e):0}},bI=new Set(["x","y","z"]),jI=eo.filter(e=>!bI.has(e));function SI(e){const t=[];return jI.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Fs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:u0(4,13),y:u0(5,14)};Fs.translateX=Fs.x;Fs.translateY=Fs.y;const bi=new Set;let vf=!1,xf=!1;function Mj(){if(xf){const e=Array.from(bi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=SI(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var l;(l=r.getValue(s))===null||l===void 0||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}xf=!1,vf=!1,bi.forEach(e=>e.complete()),bi.clear()}function Oj(){bi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xf=!0)})}function kI(){Oj(),Mj()}class Mm{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(bi.add(this),vf||(vf=!0,me.read(Oj),me.resolveKeyframes(Mj))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),bi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,bi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Dj=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),NI=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function CI(e){const t=NI.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Lj(e,t,n=1){const[r,i]=CI(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Dj(o)?parseFloat(o):o}return fm(i)?Lj(i,t,n+1):i}const zj=e=>t=>t.test(e),EI={test:e=>e==="auto",parse:e=>e},$j=[to,Q,En,lr,fR,hR,EI],d0=e=>$j.find(zj(e));class Fj extends Mm{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),fm(u))){const d=Lj(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!gj.has(r)||t.length!==2)return;const[i,s]=t,o=d0(i),l=d0(s);if(o!==l)if(l0(o)&&l0(l))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)rI(t[i])&&r.push(i);r.length&&wI(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fs[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,l=i[o];i[o]=Fs[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,u])=>{n.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const h0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Hr.test(e)||e==="0")&&!e.startsWith("url("));function TI(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function PI(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=h0(i,t),l=h0(s,t);return!o||!l?!1:TI(e)||(n==="spring"||Sm(n))&&r}const _I=e=>e!==null;function ku(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(_I),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const AI=40;class Vj{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Tn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>AI?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&kI(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Tn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!PI(t,r,i,s))if(o)this.options.duration=0;else{c&&c(ku(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ke=(e,t,n)=>e+(t-e)*n;function Sd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function RI({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=Sd(c,l,e+1/3),s=Sd(c,l,e),o=Sd(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Fc(e,t){return n=>n>0?t:e}const kd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},II=[gf,pi,is],MI=e=>II.find(t=>t.test(e));function f0(e){const t=MI(e);if(!t)return!1;let n=t.parse(e);return t===is&&(n=RI(n)),n}const p0=(e,t)=>{const n=f0(e),r=f0(t);if(!n||!r)return Fc(e,t);const i={...n};return s=>(i.red=kd(n.red,r.red,s),i.green=kd(n.green,r.green,s),i.blue=kd(n.blue,r.blue,s),i.alpha=ke(n.alpha,r.alpha,s),pi.transform(i))},OI=(e,t)=>n=>t(e(n)),Ua=(...e)=>e.reduce(OI),wf=new Set(["none","hidden"]);function DI(e,t){return wf.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function LI(e,t){return n=>ke(e,t,n)}function Om(e){return typeof e=="number"?LI:typeof e=="string"?fm(e)?Fc:rt.test(e)?p0:FI:Array.isArray(e)?Bj:typeof e=="object"?rt.test(e)?p0:zI:Fc}function Bj(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Om(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function zI(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Om(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function $I(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],l=e.indexes[o][i[o]],c=(n=e.values[l])!==null&&n!==void 0?n:0;r[s]=c,i[o]++}return r}const FI=(e,t)=>{const n=Hr.createTransformer(t),r=Ea(e),i=Ea(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?wf.has(e)&&!i.values.length||wf.has(t)&&!r.values.length?DI(e,t):Ua(Bj($I(r,i),i.values),n):Fc(e,t)};function Uj(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ke(e,t,n):Om(e)(e,t)}const VI=5;function Hj(e,t,n){const r=Math.max(t-VI,0);return yj(n-e(r),t-r)}const _e={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Nd=.001;function BI({duration:e=_e.duration,bounce:t=_e.bounce,velocity:n=_e.velocity,mass:r=_e.mass}){let i,s,o=1-t;o=er(_e.minDamping,_e.maxDamping,o),e=er(_e.minDuration,_e.maxDuration,qn(e)),o<1?(i=u=>{const d=u*o,h=d*e,f=d-n,p=bf(u,o),x=Math.exp(-h);return Nd-f/p*x},s=u=>{const h=u*o*e,f=h*n+n,p=Math.pow(o,2)*Math.pow(u,2)*e,x=Math.exp(-h),g=bf(Math.pow(u,2),o);return(-i(u)+Nd>0?-1:1)*((f-p)*x)/g}):(i=u=>{const d=Math.exp(-u*e),h=(u-n)*e+1;return-Nd+d*h},s=u=>{const d=Math.exp(-u*e),h=(n-u)*(e*e);return d*h});const l=5/e,c=HI(i,s,l);if(e=Kn(e),isNaN(c))return{stiffness:_e.stiffness,damping:_e.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const UI=12;function HI(e,t,n){let r=n;for(let i=1;i<UI;i++)r=r-e(r)/t(r);return r}function bf(e,t){return e*Math.sqrt(1-t*t)}const WI=["duration","bounce"],KI=["stiffness","damping","mass"];function m0(e,t){return t.some(n=>e[n]!==void 0)}function qI(e){let t={velocity:_e.velocity,stiffness:_e.stiffness,damping:_e.damping,mass:_e.mass,isResolvedFromDuration:!1,...e};if(!m0(e,KI)&&m0(e,WI))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*er(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:_e.mass,stiffness:i,damping:s}}else{const n=BI(e);t={...t,...n,mass:_e.mass},t.isResolvedFromDuration=!0}return t}function Wj(e=_e.visualDuration,t=_e.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:c,damping:u,mass:d,duration:h,velocity:f,isResolvedFromDuration:p}=qI({...n,velocity:-qn(n.velocity||0)}),x=f||0,g=u/(2*Math.sqrt(c*d)),b=o-s,m=qn(Math.sqrt(c/d)),y=Math.abs(b)<5;r||(r=y?_e.restSpeed.granular:_e.restSpeed.default),i||(i=y?_e.restDelta.granular:_e.restDelta.default);let w;if(g<1){const S=bf(m,g);w=N=>{const k=Math.exp(-g*m*N);return o-k*((x+g*m*b)/S*Math.sin(S*N)+b*Math.cos(S*N))}}else if(g===1)w=S=>o-Math.exp(-m*S)*(b+(x+m*b)*S);else{const S=m*Math.sqrt(g*g-1);w=N=>{const k=Math.exp(-g*m*N),C=Math.min(S*N,300);return o-k*((x+g*m*b)*Math.sinh(C)+S*b*Math.cosh(C))/S}}const j={calculatedDuration:p&&h||null,next:S=>{const N=w(S);if(p)l.done=S>=h;else{let k=0;g<1&&(k=S===0?Kn(x):Hj(w,S,N));const C=Math.abs(k)<=r,_=Math.abs(o-N)<=i;l.done=C&&_}return l.value=l.done?o:N,l},toString:()=>{const S=Math.min(cj(j),ff),N=uj(k=>j.next(S*k).value,S,30);return S+"ms "+N}};return j}function g0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:l,max:c,restDelta:u=.5,restSpeed:d}){const h=e[0],f={done:!1,value:h},p=C=>l!==void 0&&C<l||c!==void 0&&C>c,x=C=>l===void 0?c:c===void 0||Math.abs(l-C)<Math.abs(c-C)?l:c;let g=n*t;const b=h+g,m=o===void 0?b:o(b);m!==b&&(g=m-h);const y=C=>-g*Math.exp(-C/r),w=C=>m+y(C),j=C=>{const _=y(C),I=w(C);f.done=Math.abs(_)<=u,f.value=f.done?m:I};let S,N;const k=C=>{p(f.value)&&(S=C,N=Wj({keyframes:[f.value,x(f.value)],velocity:Hj(w,C,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:d}))};return k(0),{calculatedDuration:null,next:C=>{let _=!1;return!N&&S===void 0&&(_=!0,j(C),k(C)),S!==void 0&&C>=S?N.next(C-S):(!_&&j(C),f)}}}const GI=Ba(.42,0,1,1),YI=Ba(0,0,.58,1),Kj=Ba(.42,0,.58,1),QI=e=>Array.isArray(e)&&typeof e[0]!="number",y0={linear:It,easeIn:GI,easeInOut:Kj,easeOut:YI,circIn:_m,circInOut:Cj,circOut:Nj,backIn:Pm,backInOut:Sj,backOut:jj,anticipate:kj},v0=e=>{if(km(e)){df(e.length===4);const[t,n,r,i]=e;return Ba(t,n,r,i)}else if(typeof e=="string")return df(y0[e]!==void 0),y0[e];return e};function XI(e,t,n){const r=[],i=n||Uj,s=e.length-1;for(let o=0;o<s;o++){let l=i(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||It:t;l=Ua(c,l)}r.push(l)}return r}function JI(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(df(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=XI(t,r,i),c=l.length,u=d=>{if(o&&d<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const f=zs(e[h],e[h+1],d);return l[h](f)};return n?d=>u(er(e[0],e[s-1],d)):u}function ZI(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=zs(0,t,r);e.push(ke(n,1,i))}}function e4(e){const t=[0];return ZI(t,e.length-1),t}function t4(e,t){return e.map(n=>n*t)}function n4(e,t){return e.map(()=>t||Kj).splice(0,e.length-1)}function Vc({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=QI(r)?r.map(v0):v0(r),s={done:!1,value:t[0]},o=t4(n&&n.length===t.length?n:e4(t),e),l=JI(o,t,{ease:Array.isArray(i)?i:n4(t,i)});return{calculatedDuration:e,next:c=>(s.value=l(c),s.done=c>=e,s)}}const r4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>me.update(t,!0),stop:()=>Ur(t),now:()=>Ye.isProcessing?Ye.timestamp:Tn.now()}},i4={decay:g0,inertia:g0,tween:Vc,keyframes:Vc,spring:Wj},s4=e=>e/100;class Dm extends Vj{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Mm,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new o(s,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,l=Sm(n)?n:i4[n]||Vc;let c,u;l!==Vc&&typeof t[0]!="number"&&(c=Ua(s4,Uj(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});s==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=cj(d));const{calculatedDuration:h}=d,f=h+i,p=f*(r+1)-i;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:C}=this.options;return{done:!0,value:C[C.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:h}=r;if(this.startTime===null)return s.next(0);const{delay:f,repeat:p,repeatType:x,repeatDelay:g,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),y=this.speed>=0?m<0:m>d;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let w=this.currentTime,j=s;if(p){const C=Math.min(this.currentTime,d)/h;let _=Math.floor(C),I=C%1;!I&&C>=1&&(I=1),I===1&&_--,_=Math.min(_,p+1),!!(_%2)&&(x==="reverse"?(I=1-I,g&&(I-=g/h)):x==="mirror"&&(j=o)),w=er(0,1,I)*h}const S=y?{done:!1,value:c[0]}:j.next(w);l&&(S.value=l(S.value));let{done:N}=S;!y&&u!==null&&(N=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return k&&i!==void 0&&(S.value=ku(c,this.options,i)),b&&b(S.value),k&&this.finish(),S}get duration(){const{resolved:t}=this;return t?qn(t.calculatedDuration):0}get time(){return qn(this.currentTime)}set time(t){t=Kn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=qn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=r4,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const o4=new Set(["opacity","clipPath","filter","transform"]);function a4(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:l="easeInOut",times:c}={}){const u={[t]:n};c&&(u.offset=c);const d=hj(l,i);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const l4=am(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Bc=10,c4=2e4;function u4(e){return Sm(e.type)||e.type==="spring"||!dj(e.ease)}function d4(e,t){const n=new Dm({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<c4;)r=n.sample(s),i.push(r.value),s+=Bc;return{times:void 0,keyframes:i,duration:s-Bc,ease:"linear"}}const qj={anticipate:kj,backInOut:Sj,circInOut:Cj};function h4(e){return e in qj}class x0 extends Vj{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new Fj(s,(o,l)=>this.onKeyframesResolved(o,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:l,name:c,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof s=="string"&&$c()&&h4(s)&&(s=qj[s]),u4(this.options)){const{onComplete:h,onUpdate:f,motionValue:p,element:x,...g}=this.options,b=d4(t,g);t=b.keyframes,t.length===1&&(t[1]=t[0]),r=b.duration,i=b.times,s=b.ease,o="keyframes"}const d=a4(l.owner.current,c,t,{...this.options,duration:r,times:i,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(n0(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;l.set(ku(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return qn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return qn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Kn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return It;const{animation:r}=n;n0(r,t)}return It}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:h,element:f,...p}=this.options,x=new Dm({...p,keyframes:r,duration:i,type:s,ease:o,times:l,isGenerator:!0}),g=Kn(this.time);u.setWithVelocity(x.sample(g-Bc).value,x.sample(g).value,Bc)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return l4()&&r&&o4.has(r)&&!c&&!u&&!i&&s!=="mirror"&&o!==0&&l!=="inertia"}}const f4={type:"spring",stiffness:500,damping:25,restSpeed:10},p4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),m4={type:"keyframes",duration:.8},g4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},y4=(e,{keyframes:t})=>t.length>2?m4:Ii.has(e)?e.startsWith("scale")?p4(t[1]):f4:g4;function v4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const Lm=(e,t,n,r={},i,s)=>o=>{const l=jm(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Kn(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:f=>{t.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:i};v4(l)||(d={...d,...y4(e,d)}),d.duration&&(d.duration=Kn(d.duration)),d.repeatDelay&&(d.repeatDelay=Kn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!s&&t.get()!==void 0){const f=ku(d.keyframes,l);if(f!==void 0)return me.update(()=>{d.onUpdate(f),d.onComplete()}),new zR([])}return!s&&x0.supports(d)?new x0(d):new Dm(d)};function x4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Gj(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(o=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const f=e.getValue(h,(s=e.latestValues[h])!==null&&s!==void 0?s:null),p=c[h];if(p===void 0||d&&x4(d,h))continue;const x={delay:n,...jm(o||{},h)};let g=!1;if(window.MotionHandoffAnimation){const m=vj(e);if(m){const y=window.MotionHandoffAnimation(m,h,me);y!==null&&(x.startTime=y,g=!0)}}mf(e,h),f.start(Lm(h,f,p,e.shouldReduceMotion&&gj.has(h)?{type:!1}:x,e,g));const b=f.animation;b&&u.push(b)}return l&&Promise.all(u).then(()=>{me.update(()=>{l&&JR(e,l)})}),u}function jf(e,t,n={}){var r;const i=Na(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(Gj(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=s;return w4(e,t,d+u,h,f,n)}:()=>Promise.resolve(),{when:c}=s;if(c){const[u,d]=c==="beforeChildren"?[o,l]:[l,o];return u().then(()=>d())}else return Promise.all([o(),l(n.delay)])}function w4(e,t,n=0,r=0,i=1,s){const o=[],l=(e.variantChildren.size-1)*r,c=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(b4).forEach((u,d)=>{u.notify("AnimationStart",t),o.push(jf(u,t,{...s,delay:n+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function b4(e,t){return e.sortNodePosition(t)}function j4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>jf(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=jf(e,t,n);else{const i=typeof t=="function"?Na(e,t,n.custom):t;r=Promise.all(Gj(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Yj(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const S4=cm.length;function Qj(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Qj(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<S4;n++){const r=cm[n],i=e.props[r];(ja(i)||i===!1)&&(t[r]=i)}return t}const k4=[...lm].reverse(),N4=lm.length;function C4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>j4(e,n,r)))}function E4(e){let t=C4(e),n=w0(),r=!0;const i=c=>(u,d)=>{var h;const f=Na(e,d,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:p,transitionEnd:x,...g}=f;u={...u,...g,...x}}return u};function s(c){t=c(e)}function o(c){const{props:u}=e,d=Qj(e.parent)||{},h=[],f=new Set;let p={},x=1/0;for(let b=0;b<N4;b++){const m=k4[b],y=n[m],w=u[m]!==void 0?u[m]:d[m],j=ja(w),S=m===c?y.isActive:null;S===!1&&(x=b);let N=w===d[m]&&w!==u[m]&&j;if(N&&r&&e.manuallyAnimateOnMount&&(N=!1),y.protectedKeys={...p},!y.isActive&&S===null||!w&&!y.prevProp||ju(w)||typeof w=="boolean")continue;const k=T4(y.prevProp,w);let C=k||m===c&&y.isActive&&!N&&j||b>x&&j,_=!1;const I=Array.isArray(w)?w:[w];let R=I.reduce(i(m),{});S===!1&&(R={});const{prevResolvedValues:z={}}=y,H={...z,...R},L=F=>{C=!0,f.has(F)&&(_=!0,f.delete(F)),y.needsAnimating[F]=!0;const E=e.getValue(F);E&&(E.liveStyle=!1)};for(const F in H){const E=R[F],O=z[F];if(p.hasOwnProperty(F))continue;let B=!1;hf(E)&&hf(O)?B=!Yj(E,O):B=E!==O,B?E!=null?L(F):f.add(F):E!==void 0&&f.has(F)?L(F):y.protectedKeys[F]=!0}y.prevProp=w,y.prevResolvedValues=R,y.isActive&&(p={...p,...R}),r&&e.blockInitialAnimation&&(C=!1),C&&(!(N&&k)||_)&&h.push(...I.map(F=>({animation:F,options:{type:m}})))}if(f.size){const b={};if(typeof u.initial!="boolean"){const m=Na(e,Array.isArray(u.initial)?u.initial[0]:u.initial);m&&m.transition&&(b.transition=m.transition)}f.forEach(m=>{const y=e.getBaseTarget(m),w=e.getValue(m);w&&(w.liveStyle=!0),b[m]=y??null}),h.push({animation:b})}let g=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(h):Promise.resolve()}function l(c,u){var d;if(n[c].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(c,u)}),n[c].isActive=u;const h=o(c);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=w0(),r=!0}}}function T4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Yj(t,e):!1}function ri(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function w0(){return{animate:ri(!0),whileInView:ri(),whileHover:ri(),whileTap:ri(),whileDrag:ri(),whileFocus:ri(),exit:ri()}}class Jr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class P4 extends Jr{constructor(t){super(t),t.animationState||(t.animationState=E4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ju(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let _4=0;class A4 extends Jr{constructor(){super(...arguments),this.id=_4++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const R4={animation:{Feature:P4},exit:{Feature:A4}};function Ta(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ha(e){return{point:{x:e.pageX,y:e.pageY}}}const I4=e=>t=>Nm(t)&&e(t,Ha(t));function Ko(e,t,n,r){return Ta(e,t,I4(n),r)}const b0=(e,t)=>Math.abs(e-t);function M4(e,t){const n=b0(e.x,t.x),r=b0(e.y,t.y);return Math.sqrt(n**2+r**2)}class Xj{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Ed(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=M4(h.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:x}=h,{timestamp:g}=Ye;this.history.push({...x,timestamp:g});const{onStart:b,onMove:m}=this.handlers;f||(b&&b(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Cd(f,this.transformPagePoint),me.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:p,onSessionEnd:x,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Ed(h.type==="pointercancel"?this.lastMoveEventInfo:Cd(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(h,b),x&&x(h,b)},!Nm(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Ha(t),l=Cd(o,this.transformPagePoint),{point:c}=l,{timestamp:u}=Ye;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,Ed(l,this.history)),this.removeListeners=Ua(Ko(this.contextWindow,"pointermove",this.handlePointerMove),Ko(this.contextWindow,"pointerup",this.handlePointerUp),Ko(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ur(this.updatePoint)}}function Cd(e,t){return t?{point:t(e.point)}:e}function j0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ed({point:e},t){return{point:e,delta:j0(e,Jj(t)),offset:j0(e,O4(t)),velocity:D4(t,.1)}}function O4(e){return e[0]}function Jj(e){return e[e.length-1]}function D4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Jj(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Kn(t)));)n--;if(!r)return{x:0,y:0};const s=qn(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Zj=1e-4,L4=1-Zj,z4=1+Zj,e2=.01,$4=0-e2,F4=0+e2;function ut(e){return e.max-e.min}function V4(e,t,n){return Math.abs(e-t)<=n}function S0(e,t,n,r=.5){e.origin=r,e.originPoint=ke(t.min,t.max,e.origin),e.scale=ut(n)/ut(t),e.translate=ke(n.min,n.max,e.origin)-e.originPoint,(e.scale>=L4&&e.scale<=z4||isNaN(e.scale))&&(e.scale=1),(e.translate>=$4&&e.translate<=F4||isNaN(e.translate))&&(e.translate=0)}function qo(e,t,n,r){S0(e.x,t.x,n.x,r?r.originX:void 0),S0(e.y,t.y,n.y,r?r.originY:void 0)}function k0(e,t,n){e.min=n.min+t.min,e.max=e.min+ut(t)}function B4(e,t,n){k0(e.x,t.x,n.x),k0(e.y,t.y,n.y)}function N0(e,t,n){e.min=t.min-n.min,e.max=e.min+ut(t)}function Go(e,t,n){N0(e.x,t.x,n.x),N0(e.y,t.y,n.y)}function U4(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ke(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ke(n,e,r.max):Math.min(e,n)),e}function C0(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function H4(e,{top:t,left:n,bottom:r,right:i}){return{x:C0(e.x,n,i),y:C0(e.y,t,r)}}function E0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function W4(e,t){return{x:E0(e.x,t.x),y:E0(e.y,t.y)}}function K4(e,t){let n=.5;const r=ut(e),i=ut(t);return i>r?n=zs(t.min,t.max-r,e.min):r>i&&(n=zs(e.min,e.max-i,t.min)),er(0,1,n)}function q4(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Sf=.35;function G4(e=Sf){return e===!1?e=0:e===!0&&(e=Sf),{x:T0(e,"left","right"),y:T0(e,"top","bottom")}}function T0(e,t,n){return{min:P0(e,t),max:P0(e,n)}}function P0(e,t){return typeof e=="number"?e:e[t]||0}const _0=()=>({translate:0,scale:1,origin:0,originPoint:0}),ss=()=>({x:_0(),y:_0()}),A0=()=>({min:0,max:0}),Re=()=>({x:A0(),y:A0()});function Vt(e){return[e("x"),e("y")]}function t2({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Y4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Q4(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Td(e){return e===void 0||e===1}function kf({scale:e,scaleX:t,scaleY:n}){return!Td(e)||!Td(t)||!Td(n)}function li(e){return kf(e)||n2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function n2(e){return R0(e.x)||R0(e.y)}function R0(e){return e&&e!=="0%"}function Uc(e,t,n){const r=e-n,i=t*r;return n+i}function I0(e,t,n,r,i){return i!==void 0&&(e=Uc(e,i,r)),Uc(e,n,r)+t}function Nf(e,t=0,n=1,r,i){e.min=I0(e.min,t,n,r,i),e.max=I0(e.max,t,n,r,i)}function r2(e,{x:t,y:n}){Nf(e.x,t.translate,t.scale,t.originPoint),Nf(e.y,n.translate,n.scale,n.originPoint)}const M0=.999999999999,O0=1.0000000000001;function X4(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let l=0;l<i;l++){s=n[l],o=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&as(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,r2(e,o)),r&&li(s.latestValues)&&as(e,s.latestValues))}t.x<O0&&t.x>M0&&(t.x=1),t.y<O0&&t.y>M0&&(t.y=1)}function os(e,t){e.min=e.min+t,e.max=e.max+t}function D0(e,t,n,r,i=.5){const s=ke(e.min,e.max,i);Nf(e,t,n,s,r)}function as(e,t){D0(e.x,t.x,t.scaleX,t.scale,t.originX),D0(e.y,t.y,t.scaleY,t.scale,t.originY)}function i2(e,t){return t2(Q4(e.getBoundingClientRect(),t))}function J4(e,t,n){const r=i2(e,n),{scroll:i}=t;return i&&(os(r.x,i.offset.x),os(r.y,i.offset.y)),r}const s2=({current:e})=>e?e.ownerDocument.defaultView:null,Z4=new WeakMap;class eM{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Re(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ha(d).point)},s=(d,h)=>{const{drag:f,dragPropagation:p,onDragStart:x}=this.getProps();if(f&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=qR(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Vt(b=>{let m=this.getAxisMotionValue(b).get()||0;if(En.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const w=y.layout.layoutBox[b];w&&(m=ut(w)*(parseFloat(m)/100))}}this.originPoint[b]=m}),x&&me.postRender(()=>x(d,h)),mf(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},o=(d,h)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:x,onDrag:g}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:b}=h;if(p&&this.currentDirection===null){this.currentDirection=tM(b),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",h.point,b),this.updateAxis("y",h.point,b),this.visualElement.render(),g&&g(d,h)},l=(d,h)=>this.stop(d,h),c=()=>Vt(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Xj(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:s2(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&me.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Nl(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=U4(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&rs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=H4(i.layoutBox,n):this.constraints=!1,this.elastic=G4(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Vt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=q4(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!rs(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=J4(r,i.root,this.visualElement.getTransformPagePoint());let o=W4(i.layout.layoutBox,s);if(n){const l=n(Y4(o));this.hasMutatedConstraints=!!l,l&&(o=t2(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Vt(d=>{if(!Nl(d,n,this.currentDirection))return;let h=c&&c[d]||{};o&&(h={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...h};return this.startAxisValueAnimation(d,x)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return mf(this.visualElement,t),r.start(Lm(t,r,0,n,this.visualElement,!1))}stopAnimation(){Vt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Vt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Vt(n=>{const{drag:r}=this.getProps();if(!Nl(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:l}=i.layout.layoutBox[n];s.set(t[n]-ke(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!rs(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Vt(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();i[o]=K4({min:c,max:c},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Vt(o=>{if(!Nl(o,t,null))return;const l=this.getAxisMotionValue(o),{min:c,max:u}=this.constraints[o];l.set(ke(c,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Z4.set(this.visualElement,this);const t=this.visualElement.current,n=Ko(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();rs(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),me.read(r);const o=Ta(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Vt(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.get()+c[d].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Sf,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:l}}}function Nl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function tM(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class nM extends Jr{constructor(t){super(t),this.removeGroupControls=It,this.removeListeners=It,this.controls=new eM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||It}unmount(){this.removeGroupControls(),this.removeListeners()}}const L0=e=>(t,n)=>{e&&me.postRender(()=>e(t,n))};class rM extends Jr{constructor(){super(...arguments),this.removePointerDownListener=It}onPointerDown(t){this.session=new Xj(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:s2(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:L0(t),onStart:L0(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&me.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Ko(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ec={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function z0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const jo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Q.test(e))e=parseFloat(e);else return e;const n=z0(e,t.target.x),r=z0(e,t.target.y);return`${n}% ${r}%`}},iM={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Hr.parse(e);if(i.length>5)return r;const s=Hr.createTransformer(e),o=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=l,i[1+o]/=c;const u=ke(l,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class sM extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;dR(oM),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ec.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||me.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),dm.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function o2(e){const[t,n]=Ub(),r=v.useContext(nm);return a.jsx(sM,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(Qb),isPresent:t,safeToRemove:n})}const oM={borderRadius:{...jo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:jo,borderTopRightRadius:jo,borderBottomLeftRadius:jo,borderBottomRightRadius:jo,boxShadow:iM};function aM(e,t,n){const r=st(e)?e:Ca(e);return r.start(Lm("",r,t,n)),r.animation}function lM(e){return e instanceof SVGElement&&e.tagName!=="svg"}const cM=(e,t)=>e.depth-t.depth;class uM{constructor(){this.children=[],this.isDirty=!1}add(t){Cm(this.children,t),this.isDirty=!0}remove(t){Em(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(cM),this.isDirty=!1,this.children.forEach(t)}}function dM(e,t){const n=Tn.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Ur(r),e(s-t))};return me.read(r,!0),()=>Ur(r)}const a2=["TopLeft","TopRight","BottomLeft","BottomRight"],hM=a2.length,$0=e=>typeof e=="string"?parseFloat(e):e,F0=e=>typeof e=="number"||Q.test(e);function fM(e,t,n,r,i,s){i?(e.opacity=ke(0,n.opacity!==void 0?n.opacity:1,pM(r)),e.opacityExit=ke(t.opacity!==void 0?t.opacity:1,0,mM(r))):s&&(e.opacity=ke(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<hM;o++){const l=`border${a2[o]}Radius`;let c=V0(t,l),u=V0(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||F0(c)===F0(u)?(e[l]=Math.max(ke($0(c),$0(u),r),0),(En.test(u)||En.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=ke(t.rotate||0,n.rotate||0,r))}function V0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const pM=l2(0,.5,Nj),mM=l2(.5,.95,It);function l2(e,t,n){return r=>r<e?0:r>t?1:n(zs(e,t,r))}function B0(e,t){e.min=t.min,e.max=t.max}function Ft(e,t){B0(e.x,t.x),B0(e.y,t.y)}function U0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function H0(e,t,n,r,i){return e-=t,e=Uc(e,1/n,r),i!==void 0&&(e=Uc(e,1/i,r)),e}function gM(e,t=0,n=1,r=.5,i,s=e,o=e){if(En.test(t)&&(t=parseFloat(t),t=ke(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=ke(s.min,s.max,r);e===s&&(l-=t),e.min=H0(e.min,t,n,l,i),e.max=H0(e.max,t,n,l,i)}function W0(e,t,[n,r,i],s,o){gM(e,t[n],t[r],t[i],t.scale,s,o)}const yM=["x","scaleX","originX"],vM=["y","scaleY","originY"];function K0(e,t,n,r){W0(e.x,t,yM,n?n.x:void 0,r?r.x:void 0),W0(e.y,t,vM,n?n.y:void 0,r?r.y:void 0)}function q0(e){return e.translate===0&&e.scale===1}function c2(e){return q0(e.x)&&q0(e.y)}function G0(e,t){return e.min===t.min&&e.max===t.max}function xM(e,t){return G0(e.x,t.x)&&G0(e.y,t.y)}function Y0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function u2(e,t){return Y0(e.x,t.x)&&Y0(e.y,t.y)}function Q0(e){return ut(e.x)/ut(e.y)}function X0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class wM{constructor(){this.members=[]}add(t){Cm(this.members,t),t.scheduleRender()}remove(t){if(Em(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function bM(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:h,rotateY:f,skewX:p,skewY:x}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),x&&(r+=`skewY(${x}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const Pd=["","X","Y","Z"],jM={visibility:"hidden"},J0=1e3;let SM=0;function _d(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function d2(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=vj(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",me,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&d2(r)}function h2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},l=t==null?void 0:t()){this.id=SM++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(CM),this.nodes.forEach(AM),this.nodes.forEach(RM),this.nodes.forEach(EM)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new uM)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Tm),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const c=this.eventHandlers.get(o);c&&c.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=lM(o),this.instance=o;const{layoutId:c,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||c)&&(this.isLayoutDirty=!0),e){let h;const f=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=dM(f,250),ec.hasAnimatedSinceResize&&(ec.hasAnimatedSinceResize=!1,this.nodes.forEach(ev))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeLayoutChanged:p,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||LM,{onLayoutAnimationStart:b,onLayoutAnimationComplete:m}=d.getProps(),y=!this.targetLayout||!u2(this.targetLayout,x),w=!f&&p;if(this.options.layoutRoot||this.resumeFrom||w||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,w);const j={...jm(g,"layout"),onPlay:b,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(j.delay=0,j.type=!1),this.startAnimation(j)}else f||ev(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ur(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(IM),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&d2(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Z0);return}this.isUpdating||this.nodes.forEach(PM),this.isUpdating=!1,this.nodes.forEach(_M),this.nodes.forEach(kM),this.nodes.forEach(NM),this.clearAllSnapshots();const l=Tn.now();Ye.delta=er(0,1e3/60,l-Ye.timestamp),Ye.timestamp=l,Ye.isProcessing=!0,wd.update.process(Ye),wd.preRender.process(Ye),wd.render.process(Ye),Ye.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,dm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(TM),this.sharedNodes.forEach(MM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,me.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){me.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ut(this.snapshot.measuredBox.x)&&!ut(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Re(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!c2(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&(l||li(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return o&&(c=this.removeTransform(c)),zM(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return Re();const c=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some($M))){const{scroll:d}=this.root;d&&(os(c.x,d.offset.x),os(c.y,d.offset.y))}return c}removeElementScroll(o){var l;const c=Re();if(Ft(c,o),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:h,options:f}=d;d!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&Ft(c,o),os(c.x,h.offset.x),os(c.y,h.offset.y))}return c}applyTransform(o,l=!1){const c=Re();Ft(c,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&as(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),li(d.latestValues)&&as(c,d.latestValues)}return li(this.latestValues)&&as(c,this.latestValues),c}removeTransform(o){const l=Re();Ft(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!li(u.latestValues))continue;kf(u.latestValues)&&u.updateSnapshot();const d=Re(),h=u.measurePageBox();Ft(d,h),K0(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return li(this.latestValues)&&K0(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ye.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=Ye.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Re(),this.relativeTargetOrigin=Re(),Go(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Ft(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Re(),this.targetWithTransforms=Re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),B4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ft(this.target,this.layout.layoutBox),r2(this.target,this.targetDelta)):Ft(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Re(),this.relativeTargetOrigin=Re(),Go(this.relativeTargetOrigin,this.target,p.target),Ft(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||kf(this.parent.latestValues)||n2(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Ye.timestamp&&(u=!1),u)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;Ft(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;X4(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Re());const{target:x}=l;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(U0(this.prevProjectionDelta.x,this.projectionDelta.x),U0(this.prevProjectionDelta.y,this.projectionDelta.y)),qo(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!X0(this.projectionDelta.x,this.prevProjectionDelta.x)||!X0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ss(),this.projectionDelta=ss(),this.projectionDeltaWithTransform=ss()}setAnimationOrigin(o,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},h=ss();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=Re(),p=c?c.source:void 0,x=this.layout?this.layout.source:void 0,g=p!==x,b=this.getStack(),m=!b||b.members.length<=1,y=!!(g&&!m&&this.options.crossfade===!0&&!this.path.some(DM));this.animationProgress=0;let w;this.mixTargetDelta=j=>{const S=j/1e3;tv(h.x,o.x,S),tv(h.y,o.y,S),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Go(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),OM(this.relativeTarget,this.relativeTargetOrigin,f,S),w&&xM(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Re()),Ft(w,this.relativeTarget)),g&&(this.animationValues=d,fM(d,u,this.latestValues,S,y,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ur(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=me.update(()=>{ec.hasAnimatedSinceResize=!0,this.currentAnimation=aM(0,J0,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(J0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=o;if(!(!l||!c||!u)){if(this!==o&&this.layout&&u&&f2(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Re();const h=ut(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+h;const f=ut(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}Ft(l,c),as(l,d),qo(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new wM),this.sharedNodes.get(o).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&_d("z",o,u,this.animationValues);for(let d=0;d<Pd.length;d++)_d(`rotate${Pd[d]}`,o,u,this.animationValues),_d(`skew${Pd[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}getProjectionStyles(o){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return jM;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Jl(o==null?void 0:o.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Jl(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!li(this.latestValues)&&(g.transform=d?d({},""):"none",this.hasProjected=!1),g}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=bM(this.projectionDeltaWithTransform,this.treeScale,f),d&&(u.transform=d(f,u.transform));const{x:p,y:x}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${x.origin*100}% 0`,h.animationValues?u.opacity=h===this?(c=(l=f.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const g in Sa){if(f[g]===void 0)continue;const{correct:b,applyTo:m,isCSSVariable:y}=Sa[g],w=u.transform==="none"?f[g]:b(f[g],h);if(m){const j=m.length;for(let S=0;S<j;S++)u[m[S]]=w}else y?this.options.visualElement.renderState.vars[g]=w:u[g]=w}return this.options.layoutId&&(u.pointerEvents=h===this?Jl(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Z0),this.root.sharedNodes.clear()}}}function kM(e){e.updateLayout()}function NM(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?Vt(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],p=ut(f);f.min=r[h].min,f.max=f.min+p}):f2(s,n.layoutBox,r)&&Vt(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],p=ut(r[h]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+p)});const l=ss();qo(l,r,n.layoutBox);const c=ss();o?qo(c,e.applyTransform(i,!0),n.measuredBox):qo(c,r,n.layoutBox);const u=!c2(l);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:p}=h;if(f&&p){const x=Re();Go(x,n.layoutBox,f.layoutBox);const g=Re();Go(g,r,p.layoutBox),u2(x,g)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=x,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function CM(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function EM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function TM(e){e.clearSnapshot()}function Z0(e){e.clearMeasurements()}function PM(e){e.isLayoutDirty=!1}function _M(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ev(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function AM(e){e.resolveTargetDelta()}function RM(e){e.calcProjection()}function IM(e){e.resetSkewAndRotation()}function MM(e){e.removeLeadSnapshot()}function tv(e,t,n){e.translate=ke(t.translate,0,n),e.scale=ke(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function nv(e,t,n,r){e.min=ke(t.min,n.min,r),e.max=ke(t.max,n.max,r)}function OM(e,t,n,r){nv(e.x,t.x,n.x,r),nv(e.y,t.y,n.y,r)}function DM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const LM={duration:.45,ease:[.4,0,.1,1]},rv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),iv=rv("applewebkit/")&&!rv("chrome/")?Math.round:It;function sv(e){e.min=iv(e.min),e.max=iv(e.max)}function zM(e){sv(e.x),sv(e.y)}function f2(e,t,n){return e==="position"||e==="preserve-aspect"&&!V4(Q0(t),Q0(n),.2)}function $M(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const FM=h2({attachResizeListener:(e,t)=>Ta(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ad={current:void 0},p2=h2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ad.current){const e=new FM({});e.mount(window),e.setOptions({layoutScroll:!0}),Ad.current=e}return Ad.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),VM={pan:{Feature:rM},drag:{Feature:nM,ProjectionNode:p2,MeasureLayout:o2}};function ov(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&me.postRender(()=>s(t,Ha(t)))}class BM extends Jr{mount(){const{current:t}=this.node;t&&(this.unmount=BR(t,(n,r)=>(ov(this.node,r,"Start"),i=>ov(this.node,i,"End"))))}unmount(){}}class UM extends Jr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ua(Ta(this.node.current,"focus",()=>this.onFocus()),Ta(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function av(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&me.postRender(()=>s(t,Ha(t)))}class HM extends Jr{mount(){const{current:t}=this.node;t&&(this.unmount=KR(t,(n,r)=>(av(this.node,r,"Start"),(i,{success:s})=>av(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Cf=new WeakMap,Rd=new WeakMap,WM=e=>{const t=Cf.get(e.target);t&&t(e)},KM=e=>{e.forEach(WM)};function qM({root:e,...t}){const n=e||document;Rd.has(n)||Rd.set(n,{});const r=Rd.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(KM,{root:e,...t})),r[i]}function GM(e,t,n){const r=qM(t);return Cf.set(e,n),r.observe(e),()=>{Cf.delete(e),r.unobserve(e)}}const YM={some:0,all:1};class QM extends Jr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:YM[i]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),f=u?d:h;f&&f(c)};return GM(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(XM(t,n))&&this.startObserver()}unmount(){}}function XM({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const JM={inView:{Feature:QM},tap:{Feature:HM},focus:{Feature:UM},hover:{Feature:BM}},ZM={layout:{ProjectionNode:p2,MeasureLayout:o2}},Ef={current:null},m2={current:!1};function eO(){if(m2.current=!0,!!sm)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ef.current=e.matches;e.addListener(t),t()}else Ef.current=!1}const tO=[...$j,rt,Hr],nO=e=>tO.find(zj(e)),rO=new WeakMap;function iO(e,t,n){for(const r in t){const i=t[r],s=n[r];if(st(i))e.addValue(r,i);else if(st(s))e.addValue(r,Ca(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Ca(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const lv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sO{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Mm,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Tn.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,me.render(this.render,!1,!0))};const{latestValues:c,renderState:u,onUpdate:d}=o;this.onUpdate=d,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=Su(n),this.isVariantNode=Gb(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const x=f[p];c[p]!==void 0&&st(x)&&x.set(c[p],!1)}}mount(t){this.current=t,rO.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),m2.current||eO(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ef.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ur(this.notifyUpdate),Ur(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Ii.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&me.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in $s){const n=$s[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Re()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<lv.length;r++){const i=lv[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=iO(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ca(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Dj(i)||Ej(i))?i=parseFloat(i):!nO(i)&&Hr.test(n)&&(i=Ij(t,n)),this.setBaseTarget(t,st(i)?i.get():i)),st(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=wm(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!st(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Tm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class g2 extends sO{constructor(){super(...arguments),this.KeyframeResolver=Fj}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;st(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function oO(e){return window.getComputedStyle(e)}class aO extends g2{constructor(){super(...arguments),this.type="html",this.renderInstance=sj}readValueFromInstance(t,n){if(Ii.has(n)){const r=Im(n);return r&&r.default||0}else{const r=oO(t),i=(hm(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return i2(t,n)}build(t,n,r){mm(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return bm(t,n,r)}}class lO extends g2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Re,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&ij(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ii.has(n)){const r=Im(n);return r&&r.default||0}return n=oj.has(n)?n:um(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return lj(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&me.postRender(this.updateDimensions)}build(t,n,r){vm(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){aj(t,n,r,i)}mount(t){this.isSVGTag=xm(t.tagName),super.mount(t)}}const cO=(e,t)=>ym(e)?new lO(t):new aO(t,{allowProjection:e!==v.Fragment}),uO=OR({...R4,...JM,...VM,...ZM},cO),P=XA(uO),So={research:{title:"Research",items:[{label:"Overview",href:"/research",description:"Our research mission and approach"},{label:"Papers",href:"/research/papers",description:"Published research papers"},{label:"Open Source",href:"/research/open-source",description:"GitHub repositories and projects"},{label:"Blog",href:"/blog",description:"Research updates and insights"}]},products:{title:"Products",items:[{label:"Hanzo AI",href:"https://hanzo.ai",description:"AI platform and models",external:!0},{label:"Hanzo Dev",href:"https://hanzo.ai/dev",description:"AI-powered development tools",external:!0},{label:"Hanzo Cloud",href:"https://cloud.hanzo.ai",description:"Enterprise AI infrastructure",external:!0},{label:"API Access",href:"https://hanzo.ai/api",description:"Model API and integrations",external:!0}]},solutions:{title:"Solutions",items:[{label:"Enterprise",href:"/solutions/enterprise",description:"AI solutions for enterprise"},{label:"Defense & Intelligence",href:"/defense",description:"Secure AI for government"},{label:"Edge Deployment",href:"/solutions/edge",description:"On-premise AI infrastructure"},{label:"Custom Models",href:"/solutions/custom",description:"Fine-tuned models for your needs"}]},company:{title:"Company",items:[{label:"About",href:"/about",description:"Our mission and values"},{label:"Team",href:"/team",description:"Meet our team"},{label:"Careers",href:"/careers",description:"Join us"},{label:"News",href:"/news",description:"Latest announcements"},{label:"Contact",href:"/contact",description:"Get in touch"}]}},Cl=({menu:e,isOpen:t,onToggle:n,onClose:r})=>{const i=v.useRef(null),s=Zs();v.useEffect(()=>{const l=c=>{i.current&&!i.current.contains(c.target)&&r()};return t&&document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[t,r]);const o=l=>{r(),"external"in l&&l.external?window.open(l.href,"_blank"):s(l.href)};return a.jsxs("div",{className:"relative",ref:i,children:[a.jsxs("button",{onClick:n,className:"flex items-center gap-1 text-gray-700 hover:text-black font-medium transition-colors text-sm py-2",children:[e.title,a.jsx(iE,{className:`w-4 h-4 transition-transform duration-200 ${t?"rotate-180":""}`})]}),a.jsx(om,{children:t&&a.jsx(P.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:8},transition:{duration:.15},className:"absolute left-0 mt-2 w-72 bg-white border border-gray-200 rounded-lg shadow-xl overflow-hidden z-50",children:a.jsx("div",{className:"py-2",children:e.items.map(l=>a.jsxs("button",{onClick:()=>o(l),className:"w-full text-left px-4 py-3 hover:bg-gray-50 transition-colors group",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"font-medium text-gray-900 group-hover:text-black text-sm",children:l.label}),"external"in l&&l.external&&a.jsx(Tc,{className:"w-3.5 h-3.5 text-gray-400"})]}),a.jsx("p",{className:"text-xs text-gray-500 mt-0.5",children:l.description})]},l.label))})})})]})},Ee=()=>{const[e,t]=v.useState(!1),[n,r]=v.useState(!1),[i,s]=v.useState(null);Zs(),v.useEffect(()=>{const l=()=>{t(window.scrollY>10)};return window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)},[]),v.useEffect(()=>{const l=c=>{c.key==="Escape"&&s(null)};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[]);const o=l=>{s(i===l?null:l)};return a.jsx("nav",{className:`fixed w-full z-50 transition-all duration-300 ${e?"bg-white shadow-sm border-b border-gray-100":"bg-white"}`,children:a.jsxs("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(Hn,{to:"/",className:"flex items-center space-x-2",children:[a.jsx("img",{src:"/hanzo-logo.png",alt:"Hanzo",className:"h-8 w-8"}),a.jsx("span",{className:"text-black font-semibold text-xl",children:"Hanzo Industries"})]}),a.jsxs("div",{className:"hidden md:flex items-center space-x-8",children:[a.jsx(Cl,{menu:So.research,isOpen:i==="research",onToggle:()=>o("research"),onClose:()=>s(null)}),a.jsx(Cl,{menu:So.products,isOpen:i==="products",onToggle:()=>o("products"),onClose:()=>s(null)}),a.jsx(Cl,{menu:So.solutions,isOpen:i==="solutions",onToggle:()=>o("solutions"),onClose:()=>s(null)}),a.jsx(Cl,{menu:So.company,isOpen:i==="company",onToggle:()=>o("company"),onClose:()=>s(null)})]}),a.jsxs("div",{className:"hidden md:flex items-center space-x-4",children:[a.jsx(Hn,{to:"/contact",children:a.jsx(J,{variant:"ghost",size:"sm",className:"text-gray-700 hover:text-black hover:bg-transparent font-medium",children:"Contact Sales"})}),a.jsx("a",{href:"https://hanzo.ai",target:"_blank",rel:"noopener noreferrer",children:a.jsx(J,{size:"sm",className:"bg-black text-white hover:bg-gray-800 rounded-full px-5",children:"Try Hanzo"})})]}),a.jsx("button",{className:"md:hidden p-2",onClick:()=>r(!n),children:n?a.jsx(U1,{className:"w-6 h-6 text-gray-700"}):a.jsx(gE,{className:"w-6 h-6 text-gray-700"})})]}),a.jsx(om,{children:n&&a.jsx(P.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"md:hidden border-t border-gray-100",children:a.jsxs("div",{className:"py-4 space-y-4",children:[Object.entries(So).map(([l,c])=>a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{className:"text-xs font-medium text-gray-400 uppercase tracking-wider px-4",children:c.title}),c.items.map(u=>a.jsx(Hn,{to:u.href,onClick:()=>r(!1),className:"block px-4 py-2 text-gray-700 hover:text-black hover:bg-gray-50",children:u.label},u.label))]},l)),a.jsxs("div",{className:"pt-4 px-4 space-y-2",children:[a.jsx(Hn,{to:"/contact",onClick:()=>r(!1),children:a.jsx(J,{variant:"outline",className:"w-full",children:"Contact Sales"})}),a.jsx("a",{href:"https://hanzo.ai",target:"_blank",rel:"noopener noreferrer",children:a.jsx(J,{className:"w-full bg-black text-white hover:bg-gray-800",children:"Try Hanzo"})})]})]})})})]})})},dO=()=>a.jsxs("div",{className:"relative min-h-[90vh] flex items-center justify-center overflow-hidden bg-white pt-16",children:[a.jsxs("div",{className:"absolute inset-0",children:[a.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))] from-gray-50 via-white to-white"}),a.jsx("div",{className:"absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-gray-200 to-transparent"})]}),a.jsxs("div",{className:"relative z-10 max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-24",children:[a.jsxs("div",{className:"text-center",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"inline-flex items-center gap-2 px-4 py-2 mb-8 rounded-full bg-gray-100 border border-gray-200",children:[a.jsx("span",{className:"text-xs font-medium text-gray-500 uppercase tracking-wider",children:"New"}),a.jsx("span",{className:"text-sm text-gray-700",children:"Hanzo L1 now available for enterprise deployment"}),a.jsxs(Hn,{to:"/research",className:"text-sm font-medium text-black hover:underline flex items-center gap-1",children:["Learn more ",a.jsx(pa,{className:"w-3 h-3"})]})]}),a.jsxs(P.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:"text-5xl sm:text-6xl md:text-7xl font-bold tracking-tight text-black leading-[1.1]",children:["AI research and products",a.jsx("br",{}),a.jsx("span",{className:"text-gray-400",children:"that put safety at the frontier"})]}),a.jsx(P.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},className:"mt-8 text-xl text-gray-600 max-w-2xl mx-auto leading-relaxed",children:"Hanzo builds frontier AI systems with a focus on safety, interpretability, and alignment. We develop foundation models and deploy them through secure, decentralized infrastructure."}),a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},className:"mt-10 flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsx(Hn,{to:"/research",children:a.jsx(J,{size:"lg",className:"text-base px-8 h-12 bg-black text-white hover:bg-gray-800 rounded-full",children:"Explore Our Research"})}),a.jsx("a",{href:"https://hanzo.ai",target:"_blank",rel:"noopener noreferrer",children:a.jsxs(J,{size:"lg",variant:"outline",className:"text-base px-8 h-12 text-black border-gray-300 hover:bg-gray-50 rounded-full",children:["Try Hanzo AI",a.jsx(Tc,{className:"w-4 h-4 ml-2"})]})})]})]}),a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.4},className:"mt-24 grid grid-cols-2 md:grid-cols-4 gap-8 border-t border-gray-100 pt-12",children:[a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"text-3xl font-bold text-black",children:"Techstars '17"}),a.jsx("div",{className:"text-sm text-gray-500 mt-1",children:"Backed Company"})]}),a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"text-3xl font-bold text-black",children:"50+"}),a.jsx("div",{className:"text-sm text-gray-500 mt-1",children:"Research Papers"})]}),a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"text-3xl font-bold text-black",children:"100+"}),a.jsx("div",{className:"text-sm text-gray-500 mt-1",children:"Open Source Projects"})]}),a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"text-3xl font-bold text-black",children:"Safety First"}),a.jsx("div",{className:"text-sm text-gray-500 mt-1",children:"Aligned AI Systems"})]})]})]})]}),hO=()=>{const e=[{icon:Gr,title:"Frontier AI Models",description:"State-of-the-art language models and multimodal AI with built-in safety mechanisms and alignment research",capabilities:["Zen MoE Architecture","Constitutional AI","RLHF Training","Safety Benchmarks"],link:"https://docs.google.com/document/d/19rZTIUZShaITzwp35XK1893OE83HA1bIIhmQNzFvKrg/edit?usp=sharing"},{icon:De,title:"AI Safety & Alignment",description:"Research and implementation of AI safety measures, interpretability tools, and alignment techniques",capabilities:["Mechanistic Interpretability","Value Alignment","Robustness Testing","Safety Monitoring"],link:"https://hanzo.ai/ai"},{icon:zr,title:"Edge AI Infrastructure",description:"Deploy AI locally with our decentralized, private, and configurable edge computing solutions",capabilities:["On-Device Inference","Federated Learning","Privacy Preservation","Offline Capability"],link:"https://docs.google.com/document/d/1Dga5hEIxTopxwYzmLh7L-NgZlJR8XB5V7du-UdY2Nk8/edit?usp=sharing"},{icon:za,title:"Resilient AI Systems",description:"Build fault-tolerant, distributed AI systems that maintain performance under adverse conditions",capabilities:["Decentralized Training","Redundant Architecture","Graceful Degradation","Self-Healing Systems"],link:"https://drive.google.com/drive/folders/1IoRe9gJo3IGHa5G6J_xDMZWsKcFjlRa7?usp=sharing"}];return a.jsx("section",{id:"capabilities",className:"py-20 bg-gray-50",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.jsx(P.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-4xl font-bold text-black mb-4",children:"Building the Future of Safe AI"}),a.jsx(P.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"From frontier model development to edge deployment, we're advancing AI capabilities while prioritizing safety, privacy, and human alignment at every step"})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:e.map((t,n)=>{const r=t.icon;return a.jsx(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:n*.1},className:"bg-white p-8 rounded-lg shadow-sm border border-gray-200 hover:shadow-md transition-shadow",children:a.jsxs("div",{className:"flex items-start space-x-4",children:[a.jsx("div",{className:"flex-shrink-0",children:a.jsx("div",{className:"w-12 h-12 bg-black rounded-lg flex items-center justify-center",children:a.jsx(r,{className:"w-6 h-6 text-white"})})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("h3",{className:"text-2xl font-semibold text-black mb-3",children:t.link?a.jsx("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"hover:underline",children:t.title}):t.title}),a.jsx("p",{className:"text-gray-600 mb-4",children:t.description}),a.jsx("div",{className:"space-y-2",children:t.capabilities.map(i=>a.jsxs("div",{className:"flex items-center text-sm text-gray-700",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-black rounded-full mr-2"}),i]},i))})]})]})},t.title)})})]})})},fO=()=>{const e=[{title:"Intelligence Analysis Platform",description:"Multi-source data fusion and analysis for actionable intelligence",features:["Real-time data processing","Predictive threat modeling","Geospatial analysis","Pattern recognition"]},{title:"Secure Communications Suite",description:"End-to-end encrypted communications for classified operations",features:["Quantum-resistant","Zero-knowledge","Multi-factor authentication","Audit logging"]},{title:"Mission Planning System",description:"AI-powered planning and simulation for complex operations",features:["Scenario modeling","Resource optimization","Risk assessment","Real-time collaboration"]},{title:"Cyber Defense Platform",description:"Advanced threat detection and response for critical infrastructure",features:["24/7 monitoring","Automated response","Threat hunting","Compliance reporting"]}];return a.jsx("section",{className:"py-20 bg-white",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.jsx(P.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-4xl font-bold text-black mb-4",children:"Defense-Grade Solutions for Critical Missions"}),a.jsx(P.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Our solutions are built from the ground up to meet the unique requirements of defense and intelligence organizations"})]}),a.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12",children:e.map((t,n)=>a.jsx(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:n*.1},className:"group",children:a.jsxs("div",{className:"h-full bg-gray-50 p-8 rounded-lg border border-gray-200 hover:border-black transition-colors",children:[a.jsx("h3",{className:"text-2xl font-semibold text-black mb-3",children:t.title}),a.jsx("p",{className:"text-gray-600 mb-6",children:t.description}),a.jsx("div",{className:"grid grid-cols-2 gap-3",children:t.features.map(r=>a.jsxs("div",{className:"flex items-center text-sm text-gray-700",children:[a.jsx("svg",{className:"w-4 h-4 mr-2 text-black",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),r]},r))})]})},t.title))}),a.jsx(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.4},className:"mt-16 text-center",children:a.jsxs("div",{className:"inline-flex items-center justify-center space-x-8 p-6 bg-black text-white rounded-lg",children:[a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"text-2xl font-bold",children:"NIST"}),a.jsx("div",{className:"text-sm opacity-80",children:"Compliant"})]}),a.jsx("div",{className:"w-px h-12 bg-white/20"}),a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"text-2xl font-bold",children:"ITAR"}),a.jsx("div",{className:"text-sm opacity-80",children:"Compliant"})]}),a.jsx("div",{className:"w-px h-12 bg-white/20"}),a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"text-2xl font-bold",children:"Security"}),a.jsx("div",{className:"text-sm opacity-80",children:"Focused"})]})]})})]})})},pO=()=>{const e=[{name:"Zach Kelling",title:"Founder and CTO",bio:"Visionary leader driving Hanzo's technical innovation and frontier AI research. Focused on building cutting-edge AI systems and technology infrastructure.",image:"/leadership/zach-kelling.png"},{name:"Michael Kelling",title:"President",bio:"Strategic operations leader overseeing commercial expansion and enterprise partnerships. Expert in scaling AI solutions for global impact.",image:"/leadership/michael-kelling.png"},{name:"Antje Worring",title:"Chief Operating Officer",bio:"Operational excellence leader ensuring seamless execution across all divisions. Drives strategic initiatives and organizational effectiveness.",image:"/leadership/antje-worring.png"},{name:"Vincent Butta",title:"Executive VP",bio:"Leading key business initiatives and strategic operations. Expert in driving growth and operational excellence across the organization.",image:"/leadership/vincent-butta.jpg"},{name:"Leigh Ferreria",title:"Chief Revenue Officer",bio:"Revenue growth strategist leading sales and market expansion. Expert in building scalable revenue operations and driving commercial success.",image:"/leadership/leigh-ferreria.png"},{name:"Danielle Savage",title:"Chief Brand Officer",bio:"Brand visionary elevating Hanzo's global presence and market positioning. Expert in creating compelling brand narratives and customer experiences.",image:"/leadership/danielle-savage.png"},{name:"Ashley Kathleen Christie",title:"Chief of Staff",bio:"Strategic advisor ensuring organizational alignment and leadership effectiveness. Expert in executive operations and cross-functional coordination.",image:"/leadership/ashley-christie.png"},{name:"Anastasia Zacharaoff",title:"VP Engineering",bio:"Engineering leader driving technical excellence and innovation. Expert in building high-performing engineering teams and scalable systems.",image:"/leadership/anastasia-zacharaoff.png"},{name:"Rob Ruiz",title:"VP Strategy",bio:"Strategic planning expert developing business intelligence and growth initiatives. Focused on market analysis and strategic partnerships.",image:"/leadership/rob-ruiz.png"},{name:"Marcus White",title:"VP Research",bio:"Research leader advancing AI capabilities and innovation. Expert in applied research and bringing cutting-edge technology to production.",image:"/leadership/marcus-white.png"}];return a.jsx("section",{className:"py-20 bg-white",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.jsx(P.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-4xl font-bold text-black mb-4",children:"Leadership Team"}),a.jsx(P.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Our leadership team combines deep AI expertise with operational excellence, driving innovation in frontier AI research while maintaining focus on safety and alignment"})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-8",children:e.map((t,n)=>a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:n*.1},className:"text-center",children:[a.jsx("div",{className:"mb-4",children:a.jsx("div",{className:"w-32 h-32 mx-auto rounded-full overflow-hidden bg-white",children:a.jsx("img",{src:t.image,alt:t.name,className:"w-full h-full object-cover grayscale",style:{filter:"grayscale(100%)"}})})}),a.jsx("h3",{className:"text-lg font-semibold text-black mb-1",children:t.name}),a.jsx("p",{className:"text-sm font-medium text-gray-600 mb-3",children:t.title}),a.jsx("p",{className:"text-sm text-gray-600",children:t.bio})]},t.name))}),a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.4},className:"mt-16 grid grid-cols-1 md:grid-cols-3 gap-8 border-t border-gray-200 pt-16",children:[a.jsxs("div",{className:"text-center",children:[a.jsx("h4",{className:"text-3xl font-bold text-black mb-2",children:"Techstars"}),a.jsx("p",{className:"text-gray-600",children:"Backed Company"})]}),a.jsxs("div",{className:"text-center",children:[a.jsx("h4",{className:"text-3xl font-bold text-black mb-2",children:"100+"}),a.jsx("p",{className:"text-gray-600",children:"Enterprise Clients"})]}),a.jsxs("div",{className:"text-center",children:[a.jsx("h4",{className:"text-3xl font-bold text-black mb-2",children:"24/7"}),a.jsx("p",{className:"text-gray-600",children:"AI Support"})]})]})]})})},mO=()=>a.jsx("section",{id:"contact",className:"py-20 bg-gray-50",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.jsx(P.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-4xl font-bold text-black mb-4",children:"Mission, Accepted."}),a.jsx(P.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"From single-scope initiatives to enterprise-wide transformations, we align with your objectives and scale to your mission requirements"})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[a.jsxs(P.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},transition:{duration:.5},className:"bg-white p-8 rounded-lg border border-gray-200",children:[a.jsx("h3",{className:"text-2xl font-semibold text-black mb-6",children:"Defense Division"}),a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-black mb-2",children:"Antje Karina Worring"}),a.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Chief Operating Officer"}),a.jsxs("div",{className:"flex items-center text-gray-600 mt-3",children:[a.jsx(xo,{className:"w-4 h-4 mr-2"}),a.jsx("a",{href:"mailto:[email protected]",className:"hover:text-black",children:"[email protected]"})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-black mb-2",children:"Leigh Ferreira"}),a.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"VP of Defense Solutions"}),a.jsxs("div",{className:"flex items-center text-gray-600 mt-3",children:[a.jsx(xo,{className:"w-4 h-4 mr-2"}),a.jsx("a",{href:"mailto:[email protected]",className:"hover:text-black",children:"[email protected]"})]})]})]})]}),a.jsxs(P.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},transition:{duration:.5},className:"bg-white p-8 rounded-lg border border-gray-200",children:[a.jsx("h3",{className:"text-2xl font-semibold text-black mb-6",children:"Commercial Division"}),a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-black mb-2",children:"Zach Kelling"}),a.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Chief Executive Officer"}),a.jsxs("div",{className:"flex items-center text-gray-600 mt-3",children:[a.jsx(xo,{className:"w-4 h-4 mr-2"}),a.jsx("a",{href:"mailto:[email protected]",className:"hover:text-black",children:"[email protected]"})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-black mb-2",children:"Michael Kelling"}),a.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"President"}),a.jsxs("div",{className:"flex items-center text-gray-600 mt-3",children:[a.jsx(xo,{className:"w-4 h-4 mr-2"}),a.jsx("a",{href:"mailto:[email protected]",className:"hover:text-black",children:"[email protected]"})]})]})]})]})]}),a.jsx(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.2},className:"mt-12 bg-black text-white p-8 rounded-lg",children:a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 text-center",children:[a.jsxs("div",{children:[a.jsx(mE,{className:"w-6 h-6 mx-auto mb-3"}),a.jsx("h4",{className:"font-semibold mb-2",children:"Corporate Headquarters"}),a.jsxs("p",{className:"text-sm opacity-80",children:["1824 S. Fairfax Ave",a.jsx("br",{}),"Los Angeles, CA 90019",a.jsx("br",{}),"United States"]})]}),a.jsxs("div",{children:[a.jsx(bE,{className:"w-6 h-6 mx-auto mb-3"}),a.jsx("h4",{className:"font-semibold mb-2",children:"Secure Line"}),a.jsxs("p",{className:"text-sm opacity-80",children:["+1 (913) 777-4443",a.jsx("br",{}),"Available 24/7"]})]}),a.jsxs("div",{children:[a.jsx(xo,{className:"w-6 h-6 mx-auto mb-3"}),a.jsx("h4",{className:"font-semibold mb-2",children:"General Inquiries"}),a.jsxs("p",{className:"text-sm opacity-80",children:["[email protected]",a.jsx("br",{}),"[email protected]",a.jsx("br",{}),"[email protected]"]})]})]})})]})}),Te=()=>a.jsx("footer",{className:"border-t border-gray-200 bg-black text-white",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:[a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[a.jsxs("div",{className:"md:col-span-2",children:[a.jsxs("div",{className:"flex items-center space-x-3 mb-6",children:[a.jsx("img",{src:"/hanzo-logo.png",alt:"Hanzo Industries",className:"h-10 w-auto"}),a.jsx("span",{className:"text-white font-bold text-xl",children:"Hanzo Industries"})]}),a.jsx("p",{className:"text-gray-400 mb-6 max-w-md",children:"Delivering mission-critical defense and intelligence solutions through advanced AI, secure cloud infrastructure, and innovative engineering."}),a.jsxs("div",{className:"flex items-center space-x-6",children:[a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(De,{className:"h-5 w-5 text-gray-400"}),a.jsx("span",{className:"text-sm text-gray-400",children:"Security Focused"})]}),a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Pn,{className:"h-5 w-5 text-gray-400"}),a.jsx("span",{className:"text-sm text-gray-400",children:"Compliance Ready"})]})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold mb-4",children:"Solutions"}),a.jsxs("ul",{className:"space-y-2",children:[a.jsx("li",{children:a.jsx("a",{href:"/intelligence",className:"text-gray-400 hover:text-white text-sm",children:"AI & ML"})}),a.jsx("li",{children:a.jsx("a",{href:"/defense",className:"text-gray-400 hover:text-white text-sm",children:"Defense Systems"})}),a.jsx("li",{children:a.jsx("a",{href:"/cybersecurity",className:"text-gray-400 hover:text-white text-sm",children:"Cybersecurity"})}),a.jsx("li",{children:a.jsx("a",{href:"/cloud",className:"text-gray-400 hover:text-white text-sm",children:"Secure Cloud"})})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold mb-4",children:"Company"}),a.jsxs("ul",{className:"space-y-2",children:[a.jsx("li",{children:a.jsx("a",{href:"/about",className:"text-gray-400 hover:text-white text-sm",children:"About Us"})}),a.jsx("li",{children:a.jsx("a",{href:"/#contact",className:"text-gray-400 hover:text-white text-sm",children:"Careers"})}),a.jsx("li",{children:a.jsx("a",{href:"/#contact",className:"text-gray-400 hover:text-white text-sm",children:"News"})}),a.jsx("li",{children:a.jsx("a",{href:"/#contact",className:"text-gray-400 hover:text-white text-sm",children:"Contact"})})]})]})]}),a.jsx("div",{className:"mt-12 pt-8 border-t border-gray-800",children:a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center space-y-4 md:space-y-0",children:[a.jsxs("div",{className:"flex items-center space-x-8",children:[a.jsx("div",{className:"text-gray-500 text-sm",children:"© 2025 Hanzo Industries Inc. All rights reserved."}),a.jsxs("a",{href:"/status",className:"inline-flex items-center space-x-2 text-gray-500 hover:text-white text-sm",children:[a.jsx(Gh,{className:"h-4 w-4 text-green-500"}),a.jsx("span",{children:"All systems operational"})]})]}),a.jsxs("div",{className:"flex items-center space-x-6",children:[a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(z1,{className:"h-4 w-4 text-gray-500"}),a.jsx("span",{className:"text-sm text-gray-500",children:"Techstars Backed"})]}),a.jsx("a",{href:"/privacy",className:"text-gray-500 hover:text-white text-sm",children:"Privacy Policy"}),a.jsx("a",{href:"/terms",className:"text-gray-500 hover:text-white text-sm",children:"Terms of Service"}),a.jsx("a",{href:"/security",className:"text-gray-500 hover:text-white text-sm",children:"Security"})]})]})})]})}),gO=()=>(v.useEffect(()=>{const e=t=>{const n=t.target;if(n.hash){t.preventDefault();const r=document.querySelector(n.hash);r&&r.scrollIntoView({behavior:"smooth"})}};return document.querySelectorAll('a[href^="#"]').forEach(t=>{t.addEventListener("click",e)}),()=>{document.querySelectorAll('a[href^="#"]').forEach(t=>{t.removeEventListener("click",e)})}},[]),a.jsxs("div",{className:"min-h-screen bg-white",children:[a.jsx(Ee,{}),a.jsxs("main",{children:[a.jsx(dO,{}),a.jsx(hO,{}),a.jsx(fO,{}),a.jsx(pO,{}),a.jsx(mO,{})]}),a.jsx(Te,{})]})),yO="modulepreload",vO=function(e){return"/"+e},cv={},Vs=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(c=>{if(c=vO(c),c in cv)return;cv[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":yO,u||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((f,p)=>{h.addEventListener("load",f),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return i.then(o=>{for(const l of o||[])l.status==="rejected"&&s(l.reason);return t().catch(s)})},xO=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Vs(async()=>{const{default:r}=await Promise.resolve().then(()=>no);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};class zm extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class wO extends zm{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class bO extends zm{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class jO extends zm{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Tf;(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"})(Tf||(Tf={}));var SO=function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})};class kO{constructor(t,{headers:n={},customFetch:r,region:i=Tf.Any}={}){this.url=t,this.headers=n,this.region=i,this.fetch=xO(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return SO(this,void 0,void 0,function*(){try{const{headers:i,method:s,body:o}=n;let l={},{region:c}=n;c||(c=this.region),c&&c!=="any"&&(l["x-region"]=c);let u;o&&(i&&!Object.prototype.hasOwnProperty.call(i,"Content-Type")||!i)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(l["Content-Type"]="application/octet-stream",u=o):typeof o=="string"?(l["Content-Type"]="text/plain",u=o):typeof FormData<"u"&&o instanceof FormData?u=o:(l["Content-Type"]="application/json",u=JSON.stringify(o)));const d=yield this.fetch(`${this.url}/${t}`,{method:s||"POST",headers:Object.assign(Object.assign(Object.assign({},l),this.headers),i),body:u}).catch(x=>{throw new wO(x)}),h=d.headers.get("x-relay-error");if(h&&h==="true")throw new bO(d);if(!d.ok)throw new jO(d);let f=((r=d.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),p;return f==="application/json"?p=yield d.json():f==="application/octet-stream"?p=yield d.blob():f==="text/event-stream"?p=d:f==="multipart/form-data"?p=yield d.formData():p=yield d.text(),{data:p,error:null}}catch(i){return{data:null,error:i}}})}}var vt={},$m={},Nu={},Wa={},Cu={},Eu={},NO=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Bs=NO();const CO=Bs.fetch,y2=Bs.fetch.bind(Bs),v2=Bs.Headers,EO=Bs.Request,TO=Bs.Response,no=Object.freeze(Object.defineProperty({__proto__:null,Headers:v2,Request:EO,Response:TO,default:y2,fetch:CO},Symbol.toStringTag,{value:"Module"})),PO=_S(no);var Tu={};Object.defineProperty(Tu,"__esModule",{value:!0});let _O=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}};Tu.default=_O;var x2=qt&&qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Eu,"__esModule",{value:!0});const AO=x2(PO),RO=x2(Tu);let IO=class{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=AO.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,n){return this.headers=Object.assign({},this.headers),this.headers[t]=n,this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const r=this.fetch;let i=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{var o,l,c;let u=null,d=null,h=null,f=s.status,p=s.statusText;if(s.ok){if(this.method!=="HEAD"){const m=await s.text();m===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?d=m:d=JSON.parse(m))}const g=(o=this.headers.Prefer)===null||o===void 0?void 0:o.match(/count=(exact|planned|estimated)/),b=(l=s.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");g&&b&&b.length>1&&(h=parseInt(b[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(d)&&(d.length>1?(u={code:"PGRST116",details:`Results contain ${d.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},d=null,h=null,f=406,p="Not Acceptable"):d.length===1?d=d[0]:d=null)}else{const g=await s.text();try{u=JSON.parse(g),Array.isArray(u)&&s.status===404&&(d=[],u=null,f=200,p="OK")}catch{s.status===404&&g===""?(f=204,p="No Content"):u={message:g}}if(u&&this.isMaybeSingle&&(!((c=u==null?void 0:u.details)===null||c===void 0)&&c.includes("0 rows"))&&(u=null,f=200,p="OK"),u&&this.shouldThrowOnError)throw new RO.default(u)}return{error:u,data:d,count:h,status:f,statusText:p}});return this.shouldThrowOnError||(i=i.catch(s=>{var o,l,c;return{error:{message:`${(o=s==null?void 0:s.name)!==null&&o!==void 0?o:"FetchError"}: ${s==null?void 0:s.message}`,details:`${(l=s==null?void 0:s.stack)!==null&&l!==void 0?l:""}`,hint:"",code:`${(c=s==null?void 0:s.code)!==null&&c!==void 0?c:""}`},data:null,count:null,status:0,statusText:""}})),i.then(t,n)}returns(){return this}overrideTypes(){return this}};Eu.default=IO;var MO=qt&&qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Cu,"__esModule",{value:!0});const OO=MO(Eu);let DO=class extends OO.default{select(t){let n=!1;const r=(t??"*").split("").map(i=>/\s/.test(i)&&!n?"":(i==='"'&&(n=!n),i)).join("");return this.url.searchParams.set("select",r),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:i,referencedTable:s=i}={}){const o=s?`${s}.order`:"order",l=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${l?`${l},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:i=r}={}){const s=typeof i>"u"?"offset":`${i}.offset`,o=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(s,`${t}`),this.url.searchParams.set(o,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:i=!1,wal:s=!1,format:o="text"}={}){var l;const c=[t?"analyze":null,n?"verbose":null,r?"settings":null,i?"buffers":null,s?"wal":null].filter(Boolean).join("|"),u=(l=this.headers.Accept)!==null&&l!==void 0?l:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${o}; for="${u}"; options=${c};`,o==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};Cu.default=DO;var LO=qt&&qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wa,"__esModule",{value:!0});const zO=LO(Cu);let $O=class extends zO.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(i=>typeof i=="string"&&new RegExp("[,()]").test(i)?`"${i}"`:`${i}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:i}={}){let s="";i==="plain"?s="pl":i==="phrase"?s="ph":i==="websearch"&&(s="w");const o=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${s}fts${o}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const i=r?`${r}.or`:"or";return this.url.searchParams.append(i,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}};Wa.default=$O;var FO=qt&&qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nu,"__esModule",{value:!0});const ko=FO(Wa);let VO=class{constructor(t,{headers:n={},schema:r,fetch:i}){this.url=t,this.headers=n,this.schema=r,this.fetch=i}select(t,{head:n=!1,count:r}={}){const i=n?"HEAD":"GET";let s=!1;const o=(t??"*").split("").map(l=>/\s/.test(l)&&!s?"":(l==='"'&&(s=!s),l)).join("");return this.url.searchParams.set("select",o),r&&(this.headers.Prefer=`count=${r}`),new ko.default({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:n,defaultToNull:r=!0}={}){const i="POST",s=[];if(this.headers.Prefer&&s.push(this.headers.Prefer),n&&s.push(`count=${n}`),r||s.push("missing=default"),this.headers.Prefer=s.join(","),Array.isArray(t)){const o=t.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(o.length>0){const l=[...new Set(o)].map(c=>`"${c}"`);this.url.searchParams.set("columns",l.join(","))}}return new ko.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:i,defaultToNull:s=!0}={}){const o="POST",l=[`resolution=${r?"ignore":"merge"}-duplicates`];if(n!==void 0&&this.url.searchParams.set("on_conflict",n),this.headers.Prefer&&l.push(this.headers.Prefer),i&&l.push(`count=${i}`),s||l.push("missing=default"),this.headers.Prefer=l.join(","),Array.isArray(t)){const c=t.reduce((u,d)=>u.concat(Object.keys(d)),[]);if(c.length>0){const u=[...new Set(c)].map(d=>`"${d}"`);this.url.searchParams.set("columns",u.join(","))}}return new ko.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:n}={}){const r="PATCH",i=[];return this.headers.Prefer&&i.push(this.headers.Prefer),n&&i.push(`count=${n}`),this.headers.Prefer=i.join(","),new ko.default({method:r,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const n="DELETE",r=[];return t&&r.push(`count=${t}`),this.headers.Prefer&&r.unshift(this.headers.Prefer),this.headers.Prefer=r.join(","),new ko.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};Nu.default=VO;var Pu={},_u={};Object.defineProperty(_u,"__esModule",{value:!0});_u.version=void 0;_u.version="0.0.0-automated";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.DEFAULT_HEADERS=void 0;const BO=_u;Pu.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${BO.version}`};var w2=qt&&qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($m,"__esModule",{value:!0});const UO=w2(Nu),HO=w2(Wa),WO=Pu;let KO=class b2{constructor(t,{headers:n={},schema:r,fetch:i}={}){this.url=t,this.headers=Object.assign(Object.assign({},WO.DEFAULT_HEADERS),n),this.schemaName=r,this.fetch=i}from(t){const n=new URL(`${this.url}/${t}`);return new UO.default(n,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new b2(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:i=!1,count:s}={}){let o;const l=new URL(`${this.url}/rpc/${t}`);let c;r||i?(o=r?"HEAD":"GET",Object.entries(n).filter(([d,h])=>h!==void 0).map(([d,h])=>[d,Array.isArray(h)?`{${h.join(",")}}`:`${h}`]).forEach(([d,h])=>{l.searchParams.append(d,h)})):(o="POST",c=n);const u=Object.assign({},this.headers);return s&&(u.Prefer=`count=${s}`),new HO.default({method:o,url:l,headers:u,schema:this.schemaName,body:c,fetch:this.fetch,allowEmpty:!1})}};$m.default=KO;var ro=qt&&qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vt,"__esModule",{value:!0});vt.PostgrestError=vt.PostgrestBuilder=vt.PostgrestTransformBuilder=vt.PostgrestFilterBuilder=vt.PostgrestQueryBuilder=vt.PostgrestClient=void 0;const j2=ro($m);vt.PostgrestClient=j2.default;const S2=ro(Nu);vt.PostgrestQueryBuilder=S2.default;const k2=ro(Wa);vt.PostgrestFilterBuilder=k2.default;const N2=ro(Cu);vt.PostgrestTransformBuilder=N2.default;const C2=ro(Eu);vt.PostgrestBuilder=C2.default;const E2=ro(Tu);vt.PostgrestError=E2.default;var qO=vt.default={PostgrestClient:j2.default,PostgrestQueryBuilder:S2.default,PostgrestFilterBuilder:k2.default,PostgrestTransformBuilder:N2.default,PostgrestBuilder:C2.default,PostgrestError:E2.default};const{PostgrestClient:GO,PostgrestQueryBuilder:s6,PostgrestFilterBuilder:o6,PostgrestTransformBuilder:a6,PostgrestBuilder:l6,PostgrestError:c6}=qO,YO="2.11.2",QO={"X-Client-Info":`realtime-js/${YO}`},XO="1.0.0",T2=1e4,JO=1e3;var ys;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(ys||(ys={}));var Nt;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Nt||(Nt={}));var an;(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"})(an||(an={}));var Pf;(function(e){e.websocket="websocket"})(Pf||(Pf={}));var ui;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(ui||(ui={}));class ZO{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const i=n.getUint8(1),s=n.getUint8(2);let o=this.HEADER_LENGTH+2;const l=r.decode(t.slice(o,o+i));o=o+i;const c=r.decode(t.slice(o,o+s));o=o+s;const u=JSON.parse(r.decode(t.slice(o,t.byteLength)));return{ref:null,topic:l,event:c,payload:u}}}class P2{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var fe;(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"})(fe||(fe={}));const uv=(e,t,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((s,o)=>(s[o]=e3(o,e,t,i),s),{})},e3=(e,t,n,r)=>{const i=t.find(l=>l.name===e),s=i==null?void 0:i.type,o=n[e];return s&&!r.includes(s)?_2(s,o):_f(o)},_2=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return i3(t,n)}switch(e){case fe.bool:return t3(t);case fe.float4:case fe.float8:case fe.int2:case fe.int4:case fe.int8:case fe.numeric:case fe.oid:return n3(t);case fe.json:case fe.jsonb:return r3(t);case fe.timestamp:return s3(t);case fe.abstime:case fe.date:case fe.daterange:case fe.int4range:case fe.int8range:case fe.money:case fe.reltime:case fe.text:case fe.time:case fe.timestamptz:case fe.timetz:case fe.tsrange:case fe.tstzrange:return _f(t);default:return _f(t)}},_f=e=>e,t3=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},n3=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},r3=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},i3=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let s;const o=e.slice(1,n);try{s=JSON.parse("["+o+"]")}catch{s=o?o.split(","):[]}return s.map(l=>_2(t,l))}return e},s3=e=>typeof e=="string"?e.replace(" ","T"):e,A2=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")};class Id{constructor(t,n,r={},i=T2){this.channel=t,this.event=n,this.payload=r,this.timeout=i,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,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}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:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var dv;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(dv||(dv={}));class Yo{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},i=>{const{onJoin:s,onLeave:o,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Yo.syncState(this.state,i,s,o),this.pendingDiffs.forEach(c=>{this.state=Yo.syncDiff(this.state,c,s,o)}),this.pendingDiffs=[],l()}),this.channel._on(r.diff,{},i=>{const{onJoin:s,onLeave:o,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=Yo.syncDiff(this.state,i,s,o),l())}),this.onJoin((i,s,o)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:s,newPresences:o})}),this.onLeave((i,s,o)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:s,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,i){const s=this.cloneDeep(t),o=this.transformState(n),l={},c={};return this.map(s,(u,d)=>{o[u]||(c[u]=d)}),this.map(o,(u,d)=>{const h=s[u];if(h){const f=d.map(b=>b.presence_ref),p=h.map(b=>b.presence_ref),x=d.filter(b=>p.indexOf(b.presence_ref)<0),g=h.filter(b=>f.indexOf(b.presence_ref)<0);x.length>0&&(l[u]=x),g.length>0&&(c[u]=g)}else l[u]=d}),this.syncDiff(s,{joins:l,leaves:c},r,i)}static syncDiff(t,n,r,i){const{joins:s,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),i||(i=()=>{}),this.map(s,(l,c)=>{var u;const d=(u=t[l])!==null&&u!==void 0?u:[];if(t[l]=this.cloneDeep(c),d.length>0){const h=t[l].map(p=>p.presence_ref),f=d.filter(p=>h.indexOf(p.presence_ref)<0);t[l].unshift(...f)}r(l,d,c)}),this.map(o,(l,c)=>{let u=t[l];if(!u)return;const d=c.map(h=>h.presence_ref);u=u.filter(h=>d.indexOf(h.presence_ref)<0),t[l]=u,i(l,u,c),u.length===0&&delete t[l]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const i=t[r];return"metas"in i?n[r]=i.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):n[r]=i,n},{})}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 hv;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(hv||(hv={}));var fv;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(fv||(fv={}));var Fn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Fn||(Fn={}));class Fm{constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Nt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new Id(this,an.join,this.params,this.timeout),this.rejoinTimer=new P2(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Nt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Nt.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=Nt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Nt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(an.reply,{},(i,s)=>{this._trigger(this._replyEventName(s),i)}),this.presence=new Yo(this),this.broadcastEndpointURL=A2(this.socket.endPoint)+"/api/broadcast",this.private=this.params.config.private||!1}subscribe(t,n=this.timeout){var r,i;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:s,presence:o,private:l}}=this.params;this._onError(d=>t==null?void 0:t(Fn.CHANNEL_ERROR,d)),this._onClose(()=>t==null?void 0:t(Fn.CLOSED));const c={},u={broadcast:s,presence:o,postgres_changes:(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(d=>d.filter))!==null&&i!==void 0?i:[],private:l};this.socket.accessTokenValue&&(c.access_token=this.socket.accessTokenValue),this.updateJoinPayload(Object.assign({config:u},c)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:d})=>{var h;if(this.socket.setAuth(),d===void 0){t==null||t(Fn.SUBSCRIBED);return}else{const f=this.bindings.postgres_changes,p=(h=f==null?void 0:f.length)!==null&&h!==void 0?h:0,x=[];for(let g=0;g<p;g++){const b=f[g],{filter:{event:m,schema:y,table:w,filter:j}}=b,S=d&&d[g];if(S&&S.event===m&&S.schema===y&&S.table===w&&S.filter===j)x.push(Object.assign(Object.assign({},b),{id:S.id}));else{this.unsubscribe(),t==null||t(Fn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=x,t&&t(Fn.SUBSCRIBED);return}}).receive("error",d=>{t==null||t(Fn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(d).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Fn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this._on(t,n,r)}async send(t,n={}){var r,i;if(!this._canPush()&&t.type==="broadcast"){const{event:s,payload:o}=t,c={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((i=u.body)===null||i===void 0?void 0:i.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var o,l,c;const u=this._push(t.type,t,n.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)&&s("ok"),u.receive("ok",()=>s("ok")),u.receive("error",()=>s("error")),u.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Nt.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(an.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(r=>{const i=new Id(this,an.leave,{},t);i.receive("ok",()=>{n(),r("ok")}).receive("timeout",()=>{n(),r("timed out")}).receive("error",()=>{r("error")}),i.send(),this._canPush()||i.trigger("ok",{})})}async _fetchWithTimeout(t,n,r){const i=new AbortController,s=setTimeout(()=>i.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(s),o}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new Id(this,t,n,r);return this._canPush()?i.send():(i.startTimeout(),this.pushBuffer.push(i)),i}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var i,s;const o=t.toLocaleLowerCase(),{close:l,error:c,leave:u,join:d}=an;if(r&&[l,c,u,d].indexOf(o)>=0&&r!==this._joinRef())return;let f=this._onMessage(o,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(p=>{var x,g,b;return((x=p.filter)===null||x===void 0?void 0:x.event)==="*"||((b=(g=p.filter)===null||g===void 0?void 0:g.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===o}).map(p=>p.callback(f,r)):(s=this.bindings[o])===null||s===void 0||s.filter(p=>{var x,g,b,m,y,w;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in p){const j=p.id,S=(x=p.filter)===null||x===void 0?void 0:x.event;return j&&((g=n.ids)===null||g===void 0?void 0:g.includes(j))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((b=n.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))}else{const j=(y=(m=p==null?void 0:p.filter)===null||m===void 0?void 0:m.event)===null||y===void 0?void 0:y.toLocaleLowerCase();return j==="*"||j===((w=n==null?void 0:n.event)===null||w===void 0?void 0:w.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===o}).map(p=>{if(typeof f=="object"&&"ids"in f){const x=f.data,{schema:g,table:b,commit_timestamp:m,type:y,errors:w}=x;f=Object.assign(Object.assign({},{schema:g,table:b,commit_timestamp:m,eventType:y,new:{},old:{},errors:w}),this._getPayloadRecords(x))}p.callback(f,r)})}_isClosed(){return this.state===Nt.closed}_isJoined(){return this.state===Nt.joined}_isJoining(){return this.state===Nt.joining}_isLeaving(){return this.state===Nt.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const i=t.toLocaleLowerCase(),s={type:i,filter:n,callback:r};return this.bindings[i]?this.bindings[i].push(s):this.bindings[i]=[s],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]=this.bindings[r].filter(i=>{var s;return!(((s=i.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===r&&Fm.isEqual(i.filter,n))}),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(an.close,{},t)}_onError(t){this._on(an.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Nt.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=uv(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=uv(t.columns,t.old_record)),n}}const o3=()=>{},a3=typeof WebSocket<"u",l3=`
addEventListener("message", (e) => {
if (e.data.event === "start") {
setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
}
});`;class c3{constructor(t,n){var r;this.accessTokenValue=null,this.apiKey=null,this.channels=[],this.endPoint="",this.httpEndpoint="",this.headers=QO,this.params={},this.timeout=T2,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=o3,this.conn=null,this.sendBuffer=[],this.serializer=new ZO,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._resolveFetch=s=>{let o;return s?o=s:typeof fetch>"u"?o=(...l)=>Vs(async()=>{const{default:c}=await Promise.resolve().then(()=>no);return{default:c}},void 0).then(({default:c})=>c(...l)):o=fetch,(...l)=>o(...l)},this.endPoint=`${t}/${Pf.websocket}`,this.httpEndpoint=A2(t),n!=null&&n.transport?this.transport=n.transport:this.transport=null,n!=null&&n.params&&(this.params=n.params),n!=null&&n.headers&&(this.headers=Object.assign(Object.assign({},this.headers),n.headers)),n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.logger&&(this.logger=n.logger),n!=null&&n.heartbeatIntervalMs&&(this.heartbeatIntervalMs=n.heartbeatIntervalMs);const i=(r=n==null?void 0:n.params)===null||r===void 0?void 0:r.apikey;if(i&&(this.accessTokenValue=i,this.apiKey=i),this.reconnectAfterMs=n!=null&&n.reconnectAfterMs?n.reconnectAfterMs:s=>[1e3,2e3,5e3,1e4][s-1]||1e4,this.encode=n!=null&&n.encode?n.encode:(s,o)=>o(JSON.stringify(s)),this.decode=n!=null&&n.decode?n.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new P2(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(n==null?void 0:n.fetch),n!=null&&n.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.worker=(n==null?void 0:n.worker)||!1,this.workerUrl=n==null?void 0:n.workerUrl}this.accessToken=(n==null?void 0:n.accessToken)||null}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this.endpointURL(),void 0,{headers:this.headers});return}if(a3){this.conn=new WebSocket(this.endpointURL()),this.setupConnection();return}this.conn=new u3(this.endpointURL(),void 0,{close:()=>{this.conn=null}}),Vs(async()=>{const{default:t}=await import("./browser-WZCNBIuh.js").then(n=>n.b);return{default:t}},[]).then(({default:t})=>{this.conn=new t(this.endpointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:XO}))}disconnect(t,n){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,n??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case ys.connecting:return ui.Connecting;case ys.open:return ui.Open;case ys.closing:return ui.Closing;default:return ui.Closed}}isConnected(){return this.connectionState()===ui.Open}channel(t,n={config:{}}){const r=new Fm(`realtime:${t}`,n,this);return this.channels.push(r),r}push(t){const{topic:n,event:r,payload:i,ref:s}=t,o=()=>{this.encode(t,l=>{var c;(c=this.conn)===null||c===void 0||c.send(l)})};this.log("push",`${n} ${r} (${s})`,i),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){let n=t||this.accessToken&&await this.accessToken()||this.accessTokenValue;if(n){let r=null;try{r=JSON.parse(atob(n.split(".")[1]))}catch{}if(r&&r.exp&&!(Math.floor(Date.now()/1e3)-r.exp<0))return this.log("auth",`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${r.exp}`),Promise.reject(`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${r.exp}`);this.accessTokenValue=n,this.channels.forEach(i=>{n&&i.updateJoinPayload({access_token:n}),i.joinedOnce&&i._isJoined()&&i._push(an.access_token,{access_token:n})})}}async sendHeartbeat(){var t;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),(t=this.conn)===null||t===void 0||t.close(JO,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth()}}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 n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n._joinRef()!==t._joinRef())}setupConnection(){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))}_onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:i,payload:s,ref:o}=n;o&&o===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null),this.log("receive",`${s.status||""} ${r} ${i} ${o&&"("+o+")"||""}`,s),this.channels.filter(l=>l._isMember(r)).forEach(l=>l._trigger(i,s,o)),this.stateChangeCallbacks.message.forEach(l=>l(n))})}async _onConnOpen(){if(this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this.reconnectTimer.reset(),!this.worker)this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs);else{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=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}this.stateChangeCallbacks.open.forEach(t=>t())}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(n=>n(t))}_onConnError(t){this.log("transport",t.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(n=>n(t))}_triggerChanError(){this.channels.forEach(t=>t._trigger(an.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",i=new URLSearchParams(n);return`${t}${r}${i}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([l3],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}}class u3{constructor(t,n,r){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=ys.connecting,this.send=()=>{},this.url=null,this.url=t,this.close=r.close}}class Vm extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Be(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class d3 extends Vm{constructor(t,n){super(t),this.name="StorageApiError",this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class Af extends Vm{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var h3=function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})};const R2=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Vs(async()=>{const{default:r}=await Promise.resolve().then(()=>no);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},f3=()=>h3(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield Vs(()=>Promise.resolve().then(()=>no),void 0)).Response:Response}),Rf=e=>{if(Array.isArray(e))return e.map(n=>Rf(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const i=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[i]=Rf(r)}),t};var Mi=function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})};const Md=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),p3=(e,t,n)=>Mi(void 0,void 0,void 0,function*(){const r=yield f3();e instanceof r&&!(n!=null&&n.noResolveJson)?e.json().then(i=>{t(new d3(Md(i),e.status||500))}).catch(i=>{t(new Af(Md(i),i))}):t(new Af(Md(e),e))}),m3=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),r&&(i.body=JSON.stringify(r)),Object.assign(Object.assign({},i),n))};function Ka(e,t,n,r,i,s){return Mi(this,void 0,void 0,function*(){return new Promise((o,l)=>{e(n,m3(t,r,i,s)).then(c=>{if(!c.ok)throw c;return r!=null&&r.noResolveJson?c:c.json()}).then(c=>o(c)).catch(c=>p3(c,l,r))})})}function Hc(e,t,n,r){return Mi(this,void 0,void 0,function*(){return Ka(e,"GET",t,n,r)})}function pr(e,t,n,r,i){return Mi(this,void 0,void 0,function*(){return Ka(e,"POST",t,r,i,n)})}function g3(e,t,n,r,i){return Mi(this,void 0,void 0,function*(){return Ka(e,"PUT",t,r,i,n)})}function y3(e,t,n,r){return Mi(this,void 0,void 0,function*(){return Ka(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function I2(e,t,n,r,i){return Mi(this,void 0,void 0,function*(){return Ka(e,"DELETE",t,r,i,n)})}var gt=function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})};const v3={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},pv={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class x3{constructor(t,n={},r,i){this.url=t,this.headers=n,this.bucketId=r,this.fetch=R2(i)}uploadOrUpdate(t,n,r,i){return gt(this,void 0,void 0,function*(){try{let s;const o=Object.assign(Object.assign({},pv),i);let l=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;typeof Blob<"u"&&r instanceof Blob?(s=new FormData,s.append("cacheControl",o.cacheControl),c&&s.append("metadata",this.encodeMetadata(c)),s.append("",r)):typeof FormData<"u"&&r instanceof FormData?(s=r,s.append("cacheControl",o.cacheControl),c&&s.append("metadata",this.encodeMetadata(c))):(s=r,l["cache-control"]=`max-age=${o.cacheControl}`,l["content-type"]=o.contentType,c&&(l["x-metadata"]=this.toBase64(this.encodeMetadata(c)))),i!=null&&i.headers&&(l=Object.assign(Object.assign({},l),i.headers));const u=this._removeEmptyFolders(n),d=this._getFinalPath(u),h=yield this.fetch(`${this.url}/object/${d}`,Object.assign({method:t,body:s,headers:l},o!=null&&o.duplex?{duplex:o.duplex}:{})),f=yield h.json();return h.ok?{data:{path:u,id:f.Id,fullPath:f.Key},error:null}:{data:null,error:f}}catch(s){if(Be(s))return{data:null,error:s};throw s}})}upload(t,n,r){return gt(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,i){return gt(this,void 0,void 0,function*(){const s=this._removeEmptyFolders(t),o=this._getFinalPath(s),l=new URL(this.url+`/object/upload/sign/${o}`);l.searchParams.set("token",n);try{let c;const u=Object.assign({upsert:pv.upsert},i),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),c.append("",r)):typeof FormData<"u"&&r instanceof FormData?(c=r,c.append("cacheControl",u.cacheControl)):(c=r,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType);const h=yield this.fetch(l.toString(),{method:"PUT",body:c,headers:d}),f=yield h.json();return h.ok?{data:{path:s,fullPath:f.Key},error:null}:{data:null,error:f}}catch(c){if(Be(c))return{data:null,error:c};throw c}})}createSignedUploadUrl(t,n){return gt(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const i=Object.assign({},this.headers);n!=null&&n.upsert&&(i["x-upsert"]="true");const s=yield pr(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:i}),o=new URL(this.url+s.url),l=o.searchParams.get("token");if(!l)throw new Vm("No token returned by API");return{data:{signedUrl:o.toString(),path:t,token:l},error:null}}catch(r){if(Be(r))return{data:null,error:r};throw r}})}update(t,n,r){return gt(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return gt(this,void 0,void 0,function*(){try{return{data:yield pr(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(i){if(Be(i))return{data:null,error:i};throw i}})}copy(t,n,r){return gt(this,void 0,void 0,function*(){try{return{data:{path:(yield pr(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(i){if(Be(i))return{data:null,error:i};throw i}})}createSignedUrl(t,n,r){return gt(this,void 0,void 0,function*(){try{let i=this._getFinalPath(t),s=yield pr(this.fetch,`${this.url}/object/sign/${i}`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return s={signedUrl:encodeURI(`${this.url}${s.signedURL}${o}`)},{data:s,error:null}}catch(i){if(Be(i))return{data:null,error:i};throw i}})}createSignedUrls(t,n,r){return gt(this,void 0,void 0,function*(){try{const i=yield pr(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),s=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:i.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${s}`):null})),error:null}}catch(i){if(Be(i))return{data:null,error:i};throw i}})}download(t,n){return gt(this,void 0,void 0,function*(){const i=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),o=s?`?${s}`:"";try{const l=this._getFinalPath(t);return{data:yield(yield Hc(this.fetch,`${this.url}/${i}/${l}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(l){if(Be(l))return{data:null,error:l};throw l}})}info(t){return gt(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const r=yield Hc(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:Rf(r),error:null}}catch(r){if(Be(r))return{data:null,error:r};throw r}})}exists(t){return gt(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield y3(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(Be(r)&&r instanceof Af){const i=r.originalError;if([400,404].includes(i==null?void 0:i.status))return{data:!1,error:r}}throw r}})}getPublicUrl(t,n){const r=this._getFinalPath(t),i=[],s=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";s!==""&&i.push(s);const l=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",c=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});c!==""&&i.push(c);let u=i.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${l}/public/${r}${u}`)}}}remove(t){return gt(this,void 0,void 0,function*(){try{return{data:yield I2(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(Be(n))return{data:null,error:n};throw n}})}list(t,n,r){return gt(this,void 0,void 0,function*(){try{const i=Object.assign(Object.assign(Object.assign({},v3),n),{prefix:t||""});return{data:yield pr(this.fetch,`${this.url}/object/list/${this.bucketId}`,i,{headers:this.headers},r),error:null}}catch(i){if(Be(i))return{data:null,error:i};throw i}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const w3="2.7.1",b3={"X-Client-Info":`storage-js/${w3}`};var zi=function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})};class j3{constructor(t,n={},r){this.url=t,this.headers=Object.assign(Object.assign({},b3),n),this.fetch=R2(r)}listBuckets(){return zi(this,void 0,void 0,function*(){try{return{data:yield Hc(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(Be(t))return{data:null,error:t};throw t}})}getBucket(t){return zi(this,void 0,void 0,function*(){try{return{data:yield Hc(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(Be(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return zi(this,void 0,void 0,function*(){try{return{data:yield pr(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(Be(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return zi(this,void 0,void 0,function*(){try{return{data:yield g3(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(Be(r))return{data:null,error:r};throw r}})}emptyBucket(t){return zi(this,void 0,void 0,function*(){try{return{data:yield pr(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(Be(n))return{data:null,error:n};throw n}})}deleteBucket(t){return zi(this,void 0,void 0,function*(){try{return{data:yield I2(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(Be(n))return{data:null,error:n};throw n}})}}class S3 extends j3{constructor(t,n={},r){super(t,n,r)}from(t){return new x3(this.url,this.headers,t,this.fetch)}}const k3="2.49.1";let Mo="";typeof Deno<"u"?Mo="deno":typeof document<"u"?Mo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Mo="react-native":Mo="node";const N3={"X-Client-Info":`supabase-js-${Mo}/${k3}`},C3={headers:N3},E3={schema:"public"},T3={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},P3={};var _3=function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})};const A3=e=>{let t;return e?t=e:typeof fetch>"u"?t=y2:t=fetch,(...n)=>t(...n)},R3=()=>typeof Headers>"u"?v2:Headers,I3=(e,t,n)=>{const r=A3(n),i=R3();return(s,o)=>_3(void 0,void 0,void 0,function*(){var l;const c=(l=yield t())!==null&&l!==void 0?l:e;let u=new i(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${c}`),r(s,Object.assign(Object.assign({},o),{headers:u}))})};var M3=function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})};function O3(e){return e.replace(/\/$/,"")}function D3(e,t){const{db:n,auth:r,realtime:i,global:s}=e,{db:o,auth:l,realtime:c,global:u}=t,d={db:Object.assign(Object.assign({},o),n),auth:Object.assign(Object.assign({},l),r),realtime:Object.assign(Object.assign({},c),i),global:Object.assign(Object.assign({},u),s),accessToken:()=>M3(this,void 0,void 0,function*(){return""})};return e.accessToken?d.accessToken=e.accessToken:delete d.accessToken,d}const M2="2.68.0",Hi=30*1e3,If=3,Od=If*Hi,L3="http://localhost:9999",z3="supabase.auth.token",$3={"X-Client-Info":`gotrue-js/${M2}`},Mf="X-Supabase-Api-Version",O2={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}};function F3(e){return Math.round(Date.now()/1e3)+e}function V3(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const vn=()=>typeof window<"u"&&typeof document<"u",ii={tested:!1,writable:!1},Qo=()=>{if(!vn())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ii.tested)return ii.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ii.tested=!0,ii.writable=!0}catch{ii.tested=!0,ii.writable=!1}return ii.writable};function B3(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,s)=>{t[s]=i})}catch{}return n.searchParams.forEach((r,i)=>{t[i]=r}),t}const D2=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Vs(async()=>{const{default:r}=await Promise.resolve().then(()=>no);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},U3=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",L2=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},El=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Tl=async(e,t)=>{await e.removeItem(t)};function H3(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let n="",r,i,s,o,l,c,u,d=0;for(e=e.replace("-","+").replace("_","/");d<e.length;)o=t.indexOf(e.charAt(d++)),l=t.indexOf(e.charAt(d++)),c=t.indexOf(e.charAt(d++)),u=t.indexOf(e.charAt(d++)),r=o<<2|l>>4,i=(l&15)<<4|c>>2,s=(c&3)<<6|u,n=n+String.fromCharCode(r),c!=64&&i!=0&&(n=n+String.fromCharCode(i)),u!=64&&s!=0&&(n=n+String.fromCharCode(s));return n}class Au{constructor(){this.promise=new Au.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Au.promiseConstructor=Promise;function mv(e){const t=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i,n=e.split(".");if(n.length!==3)throw new Error("JWT is not valid: not a JWT structure");if(!t.test(n[1]))throw new Error("JWT is not valid: payload is not in base64url format");const r=n[1];return JSON.parse(H3(r))}async function W3(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function K3(e,t){return new Promise((r,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const o=await e(s);if(!t(s,null,o)){r(o);return}}catch(o){if(!t(s,o)){i(o);return}}})()})}function q3(e){return("0"+e.toString(16)).substr(-2)}function G3(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let s=0;s<56;s++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(t),Array.from(t,q3).join("")}async function Y3(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}function Q3(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function X3(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 n=await Y3(e);return Q3(n)}async function $i(e,t,n=!1){const r=G3();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await L2(e,`${t}-code-verifier`,i);const s=await X3(r);return[s,r===s?"plain":"s256"]}const J3=/^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(Mf);if(!t||!t.match(J3))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}class Bm extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function ne(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class eD extends Bm{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function tD(e){return ne(e)&&e.name==="AuthApiError"}class z2 extends Bm{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Oi extends Bm{constructor(t,n,r,i){super(t,r,i),this.name=n,this.status=r}}class cr extends Oi{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function nD(e){return ne(e)&&e.name==="AuthSessionMissingError"}class Dd extends Oi{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Pl extends Oi{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class _l extends Oi{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function rD(e){return ne(e)&&e.name==="AuthImplicitGrantRedirectError"}class gv extends Oi{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Of extends Oi{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Ld(e){return ne(e)&&e.name==="AuthRetryableFetchError"}class yv extends Oi{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}var iD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ci=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),sD=[502,503,504];async function vv(e){var t;if(!U3(e))throw new Of(ci(e),0);if(sD.includes(e.status))throw new Of(ci(e),e.status);let n;try{n=await e.json()}catch(s){throw new z2(ci(s),s)}let r;const i=Z3(e);if(i&&i.getTime()>=O2["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new yv(ci(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new cr}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((s,o)=>s&&typeof o=="string",!0))throw new yv(ci(n),e.status,n.weak_password.reasons);throw new eD(ci(n),e.status||500,r)}const oD=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function ae(e,t,n,r){var i;const s=Object.assign({},r==null?void 0:r.headers);s[Mf]||(s[Mf]=O2["2024-01-01"].name),r!=null&&r.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const o=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const l=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await aD(e,t,n+l,{headers:s,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(c):{data:Object.assign({},c),error:null}}async function aD(e,t,n,r,i,s){const o=oD(t,r,i,s);let l;try{l=await e(n,Object.assign({},o))}catch(c){throw console.error(c),new Of(ci(c),0)}if(l.ok||await vv(l),r!=null&&r.noResolveJson)return l;try{return await l.json()}catch(c){await vv(c)}}function ur(e){var t;let n=null;dD(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=F3(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function xv(e){const t=ur(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((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function yr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function lD(e){return{data:e,error:null}}function cD(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s}=e,o=iD(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s},c=Object.assign({},o);return{data:{properties:l,user:c},error:null}}function uD(e){return e}function dD(e){return e.access_token&&e.refresh_token&&e.expires_in}var hD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};class fD{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=D2(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,n="global"){try{return await ae(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(ne(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await ae(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:yr})}catch(r){if(ne(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=hD(t,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await ae(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:cD,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(ne(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await ae(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:yr})}catch(n){if(ne(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,i,s,o,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await ae(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:uD});if(d.error)throw d.error;const h=await d.json(),f=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return p.length>0&&(p.forEach(x=>{const g=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(x.split(";")[1].split("=")[1]);u[`${b}Page`]=g}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(ne(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){try{return await ae(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:yr})}catch(n){if(ne(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){try{return await ae(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:yr})}catch(r){if(ne(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){try{return await ae(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:yr})}catch(r){if(ne(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){try{const{data:n,error:r}=await ae(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(ne(n))return{data:null,error:n};throw n}}async _deleteFactor(t){try{return{data:await ae(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(ne(n))return{data:null,error:n};throw n}}}const pD={getItem:e=>Qo()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{Qo()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{Qo()&&globalThis.localStorage.removeItem(e)}};function wv(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function mD(){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)}}const Fi={debug:!!(globalThis&&Qo()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class $2 extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class gD extends $2{}async function yD(e,t,n){Fi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),Fi.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:r.signal},async i=>{if(i){Fi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await n()}finally{Fi.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw Fi.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new gD(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Fi.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null," "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}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 n()}}))}mD();const vD={url:L3,storageKey:z3,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:$3,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function bv(e,t,n){return await n()}class Pa{constructor(t){var n,r;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=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,this.instanceID=Pa.nextInstanceID,Pa.nextInstanceID+=1,this.instanceID>0&&vn()&&console.warn("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.");const i=Object.assign(Object.assign({},vD),t);if(this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.persistSession=i.persistSession,this.storageKey=i.storageKey,this.autoRefreshToken=i.autoRefreshToken,this.admin=new fD({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=D2(i.fetch),this.lock=i.lock||bv,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,i.lock?this.lock=i.lock:vn()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=yD:this.lock=bv,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)},this.persistSession?i.storage?this.storage=i.storage:Qo()?this.storage=pD:(this.memoryStorage={},this.storage=wv(this.memoryStorage)):(this.memoryStorage={},this.storage=wv(this.memoryStorage)),vn()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(s){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",s)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async s=>{this._debug("received broadcast notification from other tab or client",s),await this._notifyAllSubscribers(s.data.event,s.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${M2}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=B3(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),vn()&&this.detectSessionInUrl&&r!=="none"){const{data:i,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),rD(s)){const c=(t=s.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:s}}return await this._removeSession(),{error:s}}const{session:o,redirectType:l}=i;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(n){return ne(n)?{error:n}:{error:new z2("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,i;try{const s=await ae(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:ur}),{data:o,error:l}=s;if(l||!o)return{data:{user:null,session:null},error:l};const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(s){if(ne(s))return{data:{user:null,session:null},error:s};throw s}}async signUp(t){var n,r,i;try{let s;if("email"in t){const{email:d,password:h,options:f}=t;let p=null,x=null;this.flowType==="pkce"&&([p,x]=await $i(this.storage,this.storageKey)),s=await ae(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:d,password:h,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:p,code_challenge_method:x},xform:ur})}else if("phone"in t){const{phone:d,password:h,options:f}=t;s=await ae(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(i=f==null?void 0:f.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:ur})}else throw new Pl("You must provide either an email or phone number and a password");const{data:o,error:l}=s;if(l||!o)return{data:{user:null,session:null},error:l};const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(s){if(ne(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithPassword(t){try{let n;if("email"in t){const{email:s,password:o,options:l}=t;n=await ae(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:xv})}else if("phone"in t){const{phone:s,password:o,options:l}=t;n=await ae(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:xv})}else throw new Pl("You must provide either an email or phone number and a password");const{data:r,error:i}=n;return i?{data:{user:null,session:null},error:i}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new Dd}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:i})}catch(n){if(ne(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,i,s;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async _exchangeCodeForSession(t){const n=await El(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/");try{const{data:s,error:o}=await ae(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:ur});if(await Tl(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!s||!s.session||!s.user?{data:{user:null,session:null,redirectType:null},error:new Dd}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:o})}catch(s){if(ne(s))return{data:{user:null,session:null,redirectType:null},error:s};throw s}}async signInWithIdToken(t){try{const{options:n,provider:r,token:i,access_token:s,nonce:o}=t,l=await ae(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:s,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:ur}),{data:c,error:u}=l;return u?{data:{user:null,session:null},error:u}:!c||!c.session||!c.user?{data:{user:null,session:null},error:new Dd}:(c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),{data:c,error:u})}catch(n){if(ne(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,i,s,o;try{if("email"in t){const{email:l,options:c}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await $i(this.storage,this.storageKey));const{error:h}=await ae(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(n=c==null?void 0:c.data)!==null&&n!==void 0?n:{},create_user:(r=c==null?void 0:c.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:c==null?void 0:c.emailRedirectTo});return{data:{user:null,session:null},error:h}}if("phone"in t){const{phone:l,options:c}=t,{data:u,error:d}=await ae(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(i=c==null?void 0:c.data)!==null&&i!==void 0?i:{},create_user:(s=c==null?void 0:c.shouldCreateUser)!==null&&s!==void 0?s:!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{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d}}throw new Pl("You must provide either an email or phone number.")}catch(l){if(ne(l))return{data:{user:null,session:null},error:l};throw l}}async verifyOtp(t){var n,r;try{let i,s;"options"in t&&(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo,s=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:l}=await ae(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:ur});if(l)throw l;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,u=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(i){if(ne(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithSSO(t){var n,r,i;try{let s=null,o=null;return this.flowType==="pkce"&&([s,o]=await $i(this.storage,this.storageKey)),await ae(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:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:s,code_challenge_method:o}),headers:this.headers,xform:lD})}catch(s){if(ne(s))return{data:null,error:s};throw s}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new cr;const{error:i}=await ae(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:i}})}catch(t){if(ne(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:i,options:s}=t,{error:o}=await ae(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in t){const{phone:r,type:i,options:s}=t,{data:o,error:l}=await ae(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:l}}throw new Pl("You must provide either an email or phone number and a type")}catch(n){if(ne(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await r}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 n=await this.__loadSession();return await t(n)}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 n=await El(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Od:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.storage.isServer){let o=this.suppressGetSessionWarning;t=new Proxy(t,{get:(c,u,d)=>(!o&&u==="user"&&(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."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(c,u,d))})}return{data:{session:t},error:null}}const{session:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{session:null},error:s}:{data:{session:i},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await ae(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:yr}):await this._useSession(async n=>{var r,i,s;const{data:o,error:l}=n;if(l)throw l;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new cr}:await ae(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(i=o.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:void 0,xform:yr})})}catch(n){if(ne(n))return nD(n)&&(await this._removeSession(),await Tl(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:i,error:s}=r;if(s)throw s;if(!i.session)throw new cr;const o=i.session;let l=null,c=null;this.flowType==="pkce"&&t.email!=null&&([l,c]=await $i(this.storage,this.storageKey));const{data:u,error:d}=await ae(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:l,code_challenge_method:c}),jwt:o.access_token,xform:yr});if(d)throw d;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(r){if(ne(r))return{data:{user:null},error:r};throw r}}_decodeJWT(t){return mv(t)}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new cr;const n=Date.now()/1e3;let r=n,i=!0,s=null;const o=mv(t.access_token);if(o.exp&&(r=o.exp,i=r<=n),i){const{session:l,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return{data:{user:null,session:null},error:c};if(!l)return{data:{user:null,session:null},error:null};s=l}else{const{data:l,error:c}=await this._getUser(t.access_token);if(c)throw c;s={access_token:t.access_token,refresh_token:t.refresh_token,user:l.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return{data:{user:s.user,session:s},error:null}}catch(n){if(ne(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:l}=n;if(l)throw l;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new cr;const{session:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{user:null,session:null},error:s}:i?{data:{user:i.user,session:i},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(ne(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t,n){try{if(!vn())throw new _l("No browser detected.");if(t.error||t.error_description||t.error_code)throw new _l(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new gv("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new _l("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new gv("No code detected.");const{data:y,error:w}=await this._exchangeCodeForSession(t.code);if(w)throw w;const j=new URL(window.location.href);return j.searchParams.delete("code"),window.history.replaceState(window.history.state,"",j.toString()),{data:{session:y.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:i,access_token:s,refresh_token:o,expires_in:l,expires_at:c,token_type:u}=t;if(!s||!l||!o||!u)throw new _l("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(l);let f=d+h;c&&(f=parseInt(c));const p=f-d;p*1e3<=Hi&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${h}s`);const x=f-h;d-x>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",x,f,d):d-x<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",x,f,d);const{data:g,error:b}=await this._getUser(s);if(b)throw b;const m={provider_token:r,provider_refresh_token:i,access_token:s,expires_in:h,expires_at:f,refresh_token:o,token_type:u,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:m,redirectType:t.type},error:null}}catch(r){if(ne(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await El(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return{error:s};const o=(r=i.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:l}=await this.admin.signOut(o,t);if(l&&!(tD(l)&&(l.status===404||l.status===401||l.status===403)))return{error:l}}return t!=="others"&&(await this._removeSession(),await Tl(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const n=V3(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,i;try{const{data:{session:s},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await $i(this.storage,this.storageKey,!0));try{return await ae(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(ne(s))return{data:null,error:s};throw s}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(ne(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:i}=await this._useSession(async s=>{var o,l,c,u,d;const{data:h,error:f}=s;if(f)throw f;const p=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 ae(this.fetch,"GET",p,{headers:this.headers,jwt:(d=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(i)throw i;return vn()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(ne(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;if(o)throw o;return await ae(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(ne(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await K3(async i=>(i>0&&await W3(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await ae(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:ur})),(i,s)=>{const o=200*Math.pow(2,i);return s&&Ld(s)&&Date.now()+o-r<Hi})}catch(r){if(this._debug(n,"error",r),ne(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),vn()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const r=await El(this.storage,this.storageKey);if(this._debug(n,"session from storage",r),!this._isValidSession(r)){this._debug(n,"session is not valid"),r!==null&&await this._removeSession();return}const i=((t=r.expires_at)!==null&&t!==void 0?t:1/0)*1e3-Date.now()<Od;if(this._debug(n,`session has${i?"":" not"} expired with margin of ${Od}s`),i){if(this.autoRefreshToken&&r.refresh_token){const{error:s}=await this._callRefreshToken(r.refresh_token);s&&(console.error(s),Ld(s)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",s),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",r)}catch(r){this._debug(n,"error",r),console.error(r);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new cr;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new Au;const{data:s,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!s.session)throw new cr;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const l={session:s.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(s){if(this._debug(i,"error",s),ne(s)){const o={session:null,error:s};return Ld(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,n,r=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const s=[],o=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(t,n)}catch(c){s.push(c)}});if(await Promise.all(o),s.length>0){for(let l=0;l<s.length;l+=1)console.error(s[l]);throw s[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await L2(this.storage,this.storageKey,t)}async _removeSession(){this._debug("#_removeSession()"),await Tl(this.storage,this.storageKey),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&vn()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Hi);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}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 n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((r.expires_at*1e3-t)/Hi);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${Hi}ms, refresh threshold is ${If} ticks`),i<=If&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof $2)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!vn()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"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,n,r){const i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,o]=await $i(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(o)}`});i.push(l.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);i.push(s.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;return s?{data:null,error:s}:await ae(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ne(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;if(o)return{data:null,error:o};const l=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:c,error:u}=await ae(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return u?{data:null,error:u}:(t.factorType==="totp"&&(!((i=c==null?void 0:c.totp)===null||i===void 0)&&i.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),{data:c,error:null})})}catch(n){if(ne(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return{data:null,error:s};const{data:o,error:l}=await ae(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return l?{data:null,error:l}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:l})})}catch(n){if(ne(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;return s?{data:null,error:s}:await ae(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ne(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],i=r.filter(o=>o.factor_type==="totp"&&o.status==="verified"),s=r.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:r,totp:i,phone:s},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:i},error:s}=t;if(s)return{data:null,error:s};if(!i)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const o=this._decodeJWT(i.access_token);let l=null;o.aal&&(l=o.aal);let c=l;((r=(n=i.user.factors)===null||n===void 0?void 0:n.filter(h=>h.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(c="aal2");const d=o.amr||[];return{data:{currentLevel:l,nextLevel:c,currentAuthenticationMethods:d},error:null}}))}}Pa.nextInstanceID=0;const xD=Pa;class wD extends xD{constructor(t){super(t)}}var bD=function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})};class jD{constructor(t,n,r){var i,s,o;if(this.supabaseUrl=t,this.supabaseKey=n,!t)throw new Error("supabaseUrl is required.");if(!n)throw new Error("supabaseKey is required.");const l=O3(t);this.realtimeUrl=`${l}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${l}/auth/v1`,this.storageUrl=`${l}/storage/v1`,this.functionsUrl=`${l}/functions/v1`;const c=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,u={db:E3,realtime:P3,auth:Object.assign(Object.assign({},T3),{storageKey:c}),global:C3},d=D3(r??{},u);this.storageKey=(i=d.auth.storageKey)!==null&&i!==void 0?i:"",this.headers=(s=d.global.headers)!==null&&s!==void 0?s:{},d.accessToken?(this.accessToken=d.accessToken,this.auth=new Proxy({},{get:(h,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=d.auth)!==null&&o!==void 0?o:{},this.headers,d.global.fetch),this.fetch=I3(n,this._getAccessToken.bind(this),d.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},d.realtime)),this.rest=new GO(`${l}/rest/v1`,{headers:this.headers,schema:d.db.schema,fetch:this.fetch}),d.accessToken||this._listenForAuthEvents()}get functions(){return new kO(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new S3(this.storageUrl,this.headers,this.fetch)}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return bD(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:i,storageKey:s,flowType:o,lock:l,debug:c},u,d){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new wD({url:this.authUrl,headers:Object.assign(Object.assign({},h),u),storageKey:s,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:i,flowType:o,lock:l,debug:c,fetch:d,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(t){return new c3(this.realtimeUrl,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const SD=(e,t,n)=>new jD(e,t,n),kD="https://dsrxxtnlqlqevqbuuktc.supabase.co",ND="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImRzcnh4dG5scWxxZXZxYnV1a3RjIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzkyMjU1NTMsImV4cCI6MjA1NDgwMTU1M30.BHuSPKxXj6DZsXxhnNonvXTIuRf3FjSEzvBThAJsI08",jv=SD(kD,ND),Df=v.forwardRef(({className:e,type:t,...n},r)=>a.jsx("input",{type:t,className:St("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:r,...n}));Df.displayName="Input";const CD=()=>{const[e,t]=v.useState(!1),[n,r]=v.useState(""),[i,s]=v.useState(""),[o,l]=v.useState(!0),c=Zs(),{toast:u}=Mp(),d=async h=>{h.preventDefault(),t(!0);try{if(o){const{error:f}=await jv.auth.signInWithPassword({email:n,password:i});if(f)throw f;c("/")}else{const f=`${window.location.origin}/auth`,{error:p}=await jv.auth.signUp({email:n,password:i,options:{emailRedirectTo:f}});if(p)throw p;u({title:"Success!",description:"Please check your email to confirm your account."})}}catch(f){u({title:"Error",description:f.message,variant:"destructive"})}finally{t(!1)}};return a.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center px-4",children:a.jsxs("div",{className:"max-w-md w-full space-y-8",children:[a.jsx("div",{children:a.jsx("h2",{className:"mt-6 text-center text-3xl font-extrabold text-white",children:o?"Sign in to your account":"Create your account"})}),a.jsxs("form",{className:"mt-8 space-y-6",onSubmit:d,children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx(Df,{type:"email",placeholder:"Email address",value:n,onChange:h=>r(h.target.value),required:!0,className:"bg-gray-900 border-gray-700 text-white placeholder-gray-400"}),a.jsx(Df,{type:"password",placeholder:"Password",value:i,onChange:h=>s(h.target.value),required:!0,className:"bg-gray-900 border-gray-700 text-white placeholder-gray-400"})]}),a.jsx("div",{children:a.jsx(J,{type:"submit",className:"w-full bg-white text-black hover:bg-gray-100",disabled:e,children:e?"Loading...":o?"Sign in":"Sign up"})})]}),a.jsx("div",{className:"text-center",children:a.jsx("button",{type:"button",onClick:()=>l(!o),className:"text-sm text-gray-400 hover:text-white",children:o?"Need an account? Sign up":"Already have an account? Sign in"})})]})})},ED=()=>{const e=[{name:"Dev",price:"$10",billingPeriod:"/bot/month",description:"Explore how to build with Hanzo AI",features:["Access to latest AI models","Limited API calls per month","Access to Hanzo Code and Hanzo Dev","Limited access to file uploads","Use custom Apps","Basic support"]},{name:"Duo",price:"$30",billingPeriod:"/month",description:"Level up productivity and creativity with expanded access",popular:!0,features:["Double Everything in Dev","Extended limits on messaging","Standard and advanced voice mode","Limited access to oT and oT-mini","Opportunities to test new features","Create and use custom GPTs","Priority support"]},{name:"Pro",price:"$90",billingPeriod:"/month",description:"Get the best of Hanzo with the highest level of access",features:["Triple Everything in Duo","Unlimited* access to oT, oT-mini, GPT-4x","Higher limits for video and screensharing","Access to oT pro mode","Extended access to Sora video generation","Access to Operator research preview (U.S. only)","24/7 premium support"]}],t=[{name:"Team",price:"$500",billingPeriod:"/dev/month",description:"Supercharge your team's work with a secure, collaborative workspace",features:["Higher message limits than Plus","Limited access to oT and oT-mini","Standard and advanced voice mode","Create and share GPTs with workspace","Admin console for workspace management","Team data excluded from training"]},{name:"Enterprise",price:"Custom",description:"Enable your workforce with enterprise-grade AI",features:["Everything in Team","High speed access to GPT-4, GPT-4x","Expanded context window","Enterprise data excluded from training","Admin controls and analytics","Enhanced support & account management"]}];return a.jsxs("div",{className:"min-h-screen bg-black text-white",children:[a.jsx(Ee,{}),a.jsxs("main",{className:"pt-32 pb-16 px-4 sm:px-6 lg:px-8",children:[a.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[a.jsx("h1",{className:"text-4xl sm:text-5xl font-bold mb-6",children:"Simple, transparent pricing"}),a.jsx("p",{className:"text-gray-400 text-lg",children:"Choose the plan that best fits your needs. All plans include a 14-day free trial."})]}),a.jsx("div",{className:"max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16",children:e.map(n=>a.jsxs("div",{className:`relative rounded-2xl border ${n.popular?"border-purple-500 bg-purple-500/10":"border-gray-800 bg-black/50"} p-8 backdrop-blur-sm`,children:[n.popular&&a.jsx("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2",children:a.jsx("div",{className:"bg-purple-500 text-white px-3 py-1 rounded-full text-sm font-medium",children:"Most Popular"})}),a.jsxs("div",{className:"mb-6",children:[a.jsx("h3",{className:"text-xl font-semibold mb-2",children:n.name}),a.jsxs("div",{className:"flex items-baseline gap-1",children:[a.jsx("span",{className:"text-4xl font-bold",children:n.price}),n.billingPeriod&&a.jsx("span",{className:"text-gray-400",children:n.billingPeriod})]}),a.jsx("p",{className:"text-gray-400 mt-2",children:n.description})]}),a.jsx(J,{className:`w-full mb-8 ${n.popular?"bg-purple-500 hover:bg-purple-600":"bg-white text-black hover:bg-gray-100"}`,children:n.price==="Custom"?"Contact Sales":"Get Started"}),a.jsx("ul",{className:"space-y-4",children:n.features.map(r=>a.jsxs("li",{className:"flex items-start gap-3",children:[a.jsx(Gh,{className:"h-5 w-5 text-purple-500 mt-0.5 flex-shrink-0"}),a.jsx("span",{className:"text-gray-300",children:r})]},r))})]},n.name))}),a.jsx("div",{className:"max-w-7xl mx-auto grid grid-cols-1 lg:grid-cols-2 gap-8",children:t.map(n=>a.jsxs("div",{className:"rounded-2xl border border-gray-800 bg-black/50 p-8 backdrop-blur-sm",children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h3",{className:"text-xl font-semibold mb-2",children:n.name}),a.jsxs("div",{className:"flex items-baseline gap-1",children:[a.jsx("span",{className:"text-4xl font-bold",children:n.price}),n.billingPeriod&&a.jsx("span",{className:"text-gray-400",children:n.billingPeriod})]}),a.jsx("p",{className:"text-gray-400 mt-2",children:n.description})]}),a.jsx(J,{className:"w-full mb-8 bg-white text-black hover:bg-gray-100",children:n.name==="Enterprise"?"Contact Sales":"Get Started"}),a.jsx("ul",{className:"space-y-4",children:n.features.map(r=>a.jsxs("li",{className:"flex items-start gap-3",children:[a.jsx(Gh,{className:"h-5 w-5 text-purple-500 mt-0.5 flex-shrink-0"}),a.jsx("span",{className:"text-gray-300",children:r})]},r))})]},n.name))}),a.jsxs("div",{className:"mt-20 text-center",children:[a.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Have questions? We're here to help."}),a.jsx("p",{className:"text-gray-400 mb-8 max-w-2xl mx-auto",children:"Our team is standing by to answer any questions you might have about our plans, features, or pricing. Get in touch with us today."}),a.jsx(J,{variant:"outline",className:"border-gray-800 hover:bg-gray-800",children:"Contact Sales"})]})]}),a.jsx(Te,{})]})},TD=[{title:"Capabilities",items:["Cloud","Cybersecurity","Data and Artificial Intelligence","Digital Engineering and Manufacturing","Emerging Technology","Ecosystem Partners","Finance and Risk Management","Infrastructure and Capital Projects","Learning","Marketing and Experience","Metaverse","Sales and Commerce","Strategic Managed Services","Strategy","Supply Chain","Sustainability","Talent and Organization","Technology Transformation"]},{title:"Industries",items:["Aerospace and Defense","Automotive","Banking","Capital Markets","Chemicals","Communications and Media","Consumer Goods and Services","Energy","Health","High Tech","Industrial","Insurance","Life Sciences","Natural Resources","Public Service","Private Equity","Retail","Software and Platforms","Travel","US Federal Government","Utilities"]}],PD={Cloud:Ri,Cybersecurity:De,"Data and Artificial Intelligence":Gr,"Digital Engineering and Manufacturing":Yh,"Emerging Technology":_c,"Ecosystem Partners":ps,"Finance and Risk Management":Qh,"Infrastructure and Capital Projects":eE,Learning:hE,"Marketing and Experience":vE,Metaverse:rE,"Sales and Commerce":fd,"Hanzo Works":Ei,"Aerospace and Defense":Pc,Automotive:tE,Banking:fE,Chemicals:fy,"Communications and Media":pE,"Consumer Goods and Services":fd,Energy:my,Health:py,"High Tech":_c,Industrial:fy,Insurance:De,"Life Sciences":py,"Natural Resources":my,"Public Service":dy,"Private Equity":Qh,Retail:fd,"Software and Platforms":Yh,Travel:Pc,"US Federal Government":dy,Utilities:ps,Technology:PE,Infrastructure:ps},_D=e=>PD[e]||Ri,AD=()=>{const[e,t]=v.useState({}),n=r=>{t(i=>({...i,[r]:(i[r]||6)+6}))};return a.jsxs("div",{className:"min-h-screen bg-black text-white",children:[a.jsx(Ee,{}),a.jsx("main",{className:"pt-32 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 max-w-3xl mx-auto mb-16",children:[a.jsx("h1",{className:"text-4xl sm:text-5xl font-bold mb-6",children:"Solutions for Every Industry"}),a.jsx("p",{className:"text-gray-400 text-lg",children:"Explore our comprehensive suite of solutions designed to transform businesses across industries and capabilities."})]}),TD.map(r=>{const i=e[r.title]||6,s=r.items.length>i,o=r.items.slice(0,i);return a.jsxs("div",{className:"mb-20",children:[a.jsx("h2",{className:"text-3xl font-bold mb-8 text-center",children:r.title}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.jsx(om,{initial:!1,children:o.map((l,c)=>{const u=_D(l);return a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.2,delay:c*.1},whileHover:{y:-5},className:"relative group rounded-xl border border-gray-800 bg-black/50 p-6 backdrop-blur-sm overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-purple-500/10 to-blue-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),a.jsxs("div",{className:"relative",children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsx(u,{className:"h-6 w-6 text-purple-400",strokeWidth:1.5}),a.jsx(hd,{className:"h-5 w-5 text-gray-500 group-hover:text-purple-400 transition-colors"})]}),a.jsx("h3",{className:"text-xl font-semibold mb-2 group-hover:text-purple-400 transition-colors",children:l}),a.jsxs("p",{className:"text-gray-400 text-sm",children:["Explore our solutions for ",l.toLowerCase()," and discover how we can help transform your business."]})]})]},l)})})}),s&&a.jsx(P.div,{className:"text-center mt-8",initial:!1,animate:{opacity:1},transition:{duration:.2},children:a.jsxs("button",{onClick:()=>n(r.title),className:"inline-flex items-center px-6 py-3 rounded-lg border border-purple-500 text-purple-400 hover:bg-purple-500/10 transition-colors",children:["View More ",r.title,a.jsx(hd,{className:"ml-2 h-5 w-5"})]})})]},r.title)}),a.jsx("div",{className:"mt-20 text-center",children:a.jsxs("div",{className:"max-w-3xl mx-auto",children:[a.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Ready to Transform Your Business?"}),a.jsx("p",{className:"text-gray-400 mb-8",children:"Connect with our team to learn how our solutions can help you achieve your goals."}),a.jsxs("a",{href:"/contact",className:"inline-flex items-center px-6 py-3 rounded-lg bg-purple-600 hover:bg-purple-700 text-white font-medium transition-colors",children:["Get Started",a.jsx(hd,{className:"ml-2 h-5 w-5"})]})]})})]})}),a.jsx(Te,{})]})};var zd="focusScope.autoFocusOnMount",$d="focusScope.autoFocusOnUnmount",Sv={bubbles:!1,cancelable:!0},RD="FocusScope",F2=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=e,[l,c]=v.useState(null),u=Qt(i),d=Qt(s),h=v.useRef(null),f=ht(t,g=>c(g)),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let g=function(w){if(p.paused||!l)return;const j=w.target;l.contains(j)?h.current=j:dr(h.current,{select:!0})},b=function(w){if(p.paused||!l)return;const j=w.relatedTarget;j!==null&&(l.contains(j)||dr(h.current,{select:!0}))},m=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&dr(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const y=new MutationObserver(m);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),y.disconnect()}}},[r,l,p.paused]),v.useEffect(()=>{if(l){Nv.add(p);const g=document.activeElement;if(!l.contains(g)){const m=new CustomEvent(zd,Sv);l.addEventListener(zd,u),l.dispatchEvent(m),m.defaultPrevented||(ID(zD(V2(l)),{select:!0}),document.activeElement===g&&dr(l))}return()=>{l.removeEventListener(zd,u),setTimeout(()=>{const m=new CustomEvent($d,Sv);l.addEventListener($d,d),l.dispatchEvent(m),m.defaultPrevented||dr(g??document.body,{select:!0}),l.removeEventListener($d,d),Nv.remove(p)},0)}}},[l,u,d,p]);const x=v.useCallback(g=>{if(!n&&!r||p.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,m=document.activeElement;if(b&&m){const y=g.currentTarget,[w,j]=MD(y);w&&j?!g.shiftKey&&m===j?(g.preventDefault(),n&&dr(w,{select:!0})):g.shiftKey&&m===w&&(g.preventDefault(),n&&dr(j,{select:!0})):m===y&&g.preventDefault()}},[n,r,p.paused]);return a.jsx(Le.div,{tabIndex:-1,...o,ref:f,onKeyDown:x})});F2.displayName=RD;function ID(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(dr(r,{select:t}),document.activeElement!==n)return}function MD(e){const t=V2(e),n=kv(t,e),r=kv(t.reverse(),e);return[n,r]}function V2(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function kv(e,t){for(const n of e)if(!OD(n,{upTo:t}))return n}function OD(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 DD(e){return e instanceof HTMLInputElement&&"select"in e}function dr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&DD(e)&&t&&e.select()}}var Nv=LD();function LD(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Cv(e,t),e.unshift(t)},remove(t){var n;e=Cv(e,t),(n=e[0])==null||n.resume()}}}function Cv(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zD(e){return e.filter(t=>t.tagName!=="A")}var Fd=0;function $D(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ev()),document.body.insertAdjacentElement("beforeend",e[1]??Ev()),Fd++,()=>{Fd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Fd--}},[])}function Ev(){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 kn=function(){return kn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},kn.apply(this,arguments)};function B2(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function FD(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var tc="right-scroll-bar-position",nc="width-before-scroll-bar",VD="with-scroll-bars-hidden",BD="--removed-body-scroll-bar-size";function Vd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function UD(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var HD=typeof window<"u"?v.useLayoutEffect:v.useEffect,Tv=new WeakMap;function WD(e,t){var n=UD(null,function(r){return e.forEach(function(i){return Vd(i,r)})});return HD(function(){var r=Tv.get(n);if(r){var i=new Set(r),s=new Set(e),o=n.current;i.forEach(function(l){s.has(l)||Vd(l,null)}),s.forEach(function(l){i.has(l)||Vd(l,o)})}Tv.set(n,e)},[e]),n}function KD(e){return e}function qD(e,t){t===void 0&&(t=KD);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var o=t(s,r);return n.push(o),function(){n=n.filter(function(l){return l!==o})}},assignSyncMedium:function(s){for(r=!0;n.length;){var o=n;n=[],o.forEach(s)}n={push:function(l){return s(l)},filter:function(){return n}}},assignMedium:function(s){r=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(s),o=n}var c=function(){var d=o;o=[],d.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),n}}}};return i}function GD(e){e===void 0&&(e={});var t=qD(null);return t.options=kn({async:!0,ssr:!1},e),t}var U2=function(e){var t=e.sideCar,n=B2(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,kn({},n))};U2.isSideCarExport=!0;function YD(e,t){return e.useMedium(t),U2}var H2=GD(),Bd=function(){},Ru=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:Bd,onWheelCapture:Bd,onTouchMoveCapture:Bd}),i=r[0],s=r[1],o=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,f=e.sideCar,p=e.noIsolation,x=e.inert,g=e.allowPinchZoom,b=e.as,m=b===void 0?"div":b,y=e.gapMode,w=B2(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=f,S=WD([n,t]),N=kn(kn({},w),i);return v.createElement(v.Fragment,null,d&&v.createElement(j,{sideCar:H2,removeScrollBar:u,shards:h,noIsolation:p,inert:x,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?v.cloneElement(v.Children.only(l),kn(kn({},N),{ref:S})):v.createElement(m,kn({},N,{className:c,ref:S}),l))});Ru.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ru.classNames={fullWidth:nc,zeroRight:tc};var QD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function XD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=QD();return t&&e.setAttribute("nonce",t),e}function JD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ZD(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var e5=function(){var e=0,t=null;return{add:function(n){e==0&&(t=XD())&&(JD(t,n),ZD(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},t5=function(){var e=e5();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},W2=function(){var e=t5(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},n5={left:0,top:0,right:0,gap:0},Ud=function(e){return parseInt(e||"",10)||0},r5=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Ud(n),Ud(r),Ud(i)]},i5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return n5;var t=r5(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},s5=W2(),vs="data-scroll-locked",o5=function(e,t,n,r){var i=e.left,s=e.top,o=e.right,l=e.gap;return n===void 0&&(n="margin"),`
.`.concat(VD,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(l,"px ").concat(r,`;
}
body[`).concat(vs,`] {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(i,`px;
padding-top: `).concat(s,`px;
padding-right: `).concat(o,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(l,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(tc,` {
right: `).concat(l,"px ").concat(r,`;
}
.`).concat(nc,` {
margin-right: `).concat(l,"px ").concat(r,`;
}
.`).concat(tc," .").concat(tc,` {
right: 0 `).concat(r,`;
}
.`).concat(nc," .").concat(nc,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(vs,`] {
`).concat(BD,": ").concat(l,`px;
}
`)},Pv=function(){var e=parseInt(document.body.getAttribute(vs)||"0",10);return isFinite(e)?e:0},a5=function(){v.useEffect(function(){return document.body.setAttribute(vs,(Pv()+1).toString()),function(){var e=Pv()-1;e<=0?document.body.removeAttribute(vs):document.body.setAttribute(vs,e.toString())}},[])},l5=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;a5();var s=v.useMemo(function(){return i5(i)},[i]);return v.createElement(s5,{styles:o5(s,!t,i,n?"":"!important")})},Lf=!1;if(typeof window<"u")try{var Al=Object.defineProperty({},"passive",{get:function(){return Lf=!0,!0}});window.addEventListener("test",Al,Al),window.removeEventListener("test",Al,Al)}catch{Lf=!1}var Vi=Lf?{passive:!1}:!1,c5=function(e){return e.tagName==="TEXTAREA"},K2=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!c5(e)&&n[t]==="visible")},u5=function(e){return K2(e,"overflowY")},d5=function(e){return K2(e,"overflowX")},_v=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=q2(e,r);if(i){var s=G2(e,r),o=s[1],l=s[2];if(o>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},h5=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},f5=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},q2=function(e,t){return e==="v"?u5(t):d5(t)},G2=function(e,t){return e==="v"?h5(t):f5(t)},p5=function(e,t){return e==="h"&&t==="rtl"?-1:1},m5=function(e,t,n,r,i){var s=p5(e,window.getComputedStyle(t).direction),o=s*r,l=n.target,c=t.contains(l),u=!1,d=o>0,h=0,f=0;do{var p=G2(e,l),x=p[0],g=p[1],b=p[2],m=g-b-s*x;(x||m)&&q2(e,l)&&(h+=m,f+=x),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&(Math.abs(h)<1||!i)||!d&&(Math.abs(f)<1||!i))&&(u=!0),u},Rl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Av=function(e){return[e.deltaX,e.deltaY]},Rv=function(e){return e&&"current"in e?e.current:e},g5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},y5=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},v5=0,Bi=[];function x5(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),i=v.useState(v5++)[0],s=v.useState(W2)[0],o=v.useRef(e);v.useEffect(function(){o.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var g=FD([e.lockRef.current],(e.shards||[]).map(Rv),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=v.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!o.current.allowPinchZoom;var m=Rl(g),y=n.current,w="deltaX"in g?g.deltaX:y[0]-m[0],j="deltaY"in g?g.deltaY:y[1]-m[1],S,N=g.target,k=Math.abs(w)>Math.abs(j)?"h":"v";if("touches"in g&&k==="h"&&N.type==="range")return!1;var C=_v(k,N);if(!C)return!0;if(C?S=k:(S=k==="v"?"h":"v",C=_v(k,N)),!C)return!1;if(!r.current&&"changedTouches"in g&&(w||j)&&(r.current=S),!S)return!0;var _=r.current||S;return m5(_,b,g,_==="h"?w:j,!0)},[]),c=v.useCallback(function(g){var b=g;if(!(!Bi.length||Bi[Bi.length-1]!==s)){var m="deltaY"in b?Av(b):Rl(b),y=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&g5(S.delta,m)})[0];if(y&&y.should){b.cancelable&&b.preventDefault();return}if(!y){var w=(o.current.shards||[]).map(Rv).filter(Boolean).filter(function(S){return S.contains(b.target)}),j=w.length>0?l(b,w[0]):!o.current.noIsolation;j&&b.cancelable&&b.preventDefault()}}},[]),u=v.useCallback(function(g,b,m,y){var w={name:g,delta:b,target:m,should:y,shadowParent:w5(m)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(j){return j!==w})},1)},[]),d=v.useCallback(function(g){n.current=Rl(g),r.current=void 0},[]),h=v.useCallback(function(g){u(g.type,Av(g),g.target,l(g,e.lockRef.current))},[]),f=v.useCallback(function(g){u(g.type,Rl(g),g.target,l(g,e.lockRef.current))},[]);v.useEffect(function(){return Bi.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Vi),document.addEventListener("touchmove",c,Vi),document.addEventListener("touchstart",d,Vi),function(){Bi=Bi.filter(function(g){return g!==s}),document.removeEventListener("wheel",c,Vi),document.removeEventListener("touchmove",c,Vi),document.removeEventListener("touchstart",d,Vi)}},[]);var p=e.removeScrollBar,x=e.inert;return v.createElement(v.Fragment,null,x?v.createElement(s,{styles:y5(i)}):null,p?v.createElement(l5,{gapMode:e.gapMode}):null)}function w5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const b5=YD(H2,x5);var Y2=v.forwardRef(function(e,t){return v.createElement(Ru,kn({},e,{ref:t,sideCar:b5}))});Y2.classNames=Ru.classNames;var j5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ui=new WeakMap,Il=new WeakMap,Ml={},Hd=0,Q2=function(e){return e&&(e.host||Q2(e.parentNode))},S5=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Q2(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},k5=function(e,t,n,r){var i=S5(t,Array.isArray(e)?e:[e]);Ml[n]||(Ml[n]=new WeakMap);var s=Ml[n],o=[],l=new Set,c=new Set(i),u=function(h){!h||l.has(h)||(l.add(h),u(h.parentNode))};i.forEach(u);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(f){if(l.has(f))d(f);else try{var p=f.getAttribute(r),x=p!==null&&p!=="false",g=(Ui.get(f)||0)+1,b=(s.get(f)||0)+1;Ui.set(f,g),s.set(f,b),o.push(f),g===1&&x&&Il.set(f,!0),b===1&&f.setAttribute(n,"true"),x||f.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",f,m)}})};return d(t),l.clear(),Hd++,function(){o.forEach(function(h){var f=Ui.get(h)-1,p=s.get(h)-1;Ui.set(h,f),s.set(h,p),f||(Il.has(h)||h.removeAttribute(r),Il.delete(h)),p||h.removeAttribute(n)}),Hd--,Hd||(Ui=new WeakMap,Ui=new WeakMap,Il=new WeakMap,Ml={})}},N5=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=j5(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),k5(r,i,n,"aria-hidden")):function(){return null}},Um="Dialog",[X2,u6]=Op(Um),[C5,pn]=X2(Um),J2=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:o=!0}=e,l=v.useRef(null),c=v.useRef(null),[u=!1,d]=p1({prop:r,defaultProp:i,onChange:s});return a.jsx(C5,{scope:t,triggerRef:l,contentRef:c,contentId:md(),titleId:md(),descriptionId:md(),open:u,onOpenChange:d,onOpenToggle:v.useCallback(()=>d(h=>!h),[d]),modal:o,children:n})};J2.displayName=Um;var Z2="DialogTrigger",eS=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=pn(Z2,n),s=ht(t,i.triggerRef);return a.jsx(Le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Km(i.open),...r,ref:s,onClick:we(e.onClick,i.onOpenToggle)})});eS.displayName=Z2;var Hm="DialogPortal",[E5,tS]=X2(Hm,{forceMount:void 0}),nS=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,s=pn(Hm,t);return a.jsx(E5,{scope:t,forceMount:n,children:v.Children.map(r,o=>a.jsx(Ks,{present:n||s.open,children:a.jsx(Dp,{asChild:!0,container:i,children:o})}))})};nS.displayName=Hm;var Wc="DialogOverlay",rS=v.forwardRef((e,t)=>{const n=tS(Wc,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=pn(Wc,e.__scopeDialog);return s.modal?a.jsx(Ks,{present:r||s.open,children:a.jsx(T5,{...i,ref:t})}):null});rS.displayName=Wc;var T5=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=pn(Wc,n);return a.jsx(Y2,{as:Os,allowPinchZoom:!0,shards:[i.contentRef],children:a.jsx(Le.div,{"data-state":Km(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Pi="DialogContent",iS=v.forwardRef((e,t)=>{const n=tS(Pi,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=pn(Pi,e.__scopeDialog);return a.jsx(Ks,{present:r||s.open,children:s.modal?a.jsx(P5,{...i,ref:t}):a.jsx(_5,{...i,ref:t})})});iS.displayName=Pi;var P5=v.forwardRef((e,t)=>{const n=pn(Pi,e.__scopeDialog),r=v.useRef(null),i=ht(t,n.contentRef,r);return v.useEffect(()=>{const s=r.current;if(s)return N5(s)},[]),a.jsx(sS,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:we(e.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:we(e.onPointerDownOutside,s=>{const o=s.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&s.preventDefault()}),onFocusOutside:we(e.onFocusOutside,s=>s.preventDefault())})}),_5=v.forwardRef((e,t)=>{const n=pn(Pi,e.__scopeDialog),r=v.useRef(!1),i=v.useRef(!1);return a.jsx(sS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,s),s.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),s.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(o))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),sS=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=e,l=pn(Pi,n),c=v.useRef(null),u=ht(t,c);return $D(),a.jsxs(a.Fragment,{children:[a.jsx(F2,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:a.jsx(lu,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Km(l.open),...o,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(A5,{titleId:l.titleId}),a.jsx(I5,{contentRef:c,descriptionId:l.descriptionId})]})]})}),Wm="DialogTitle",oS=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=pn(Wm,n);return a.jsx(Le.h2,{id:i.titleId,...r,ref:t})});oS.displayName=Wm;var aS="DialogDescription",lS=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=pn(aS,n);return a.jsx(Le.p,{id:i.descriptionId,...r,ref:t})});lS.displayName=aS;var cS="DialogClose",uS=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=pn(cS,n);return a.jsx(Le.button,{type:"button",...r,ref:t,onClick:we(e.onClick,()=>i.onOpenChange(!1))})});uS.displayName=cS;function Km(e){return e?"open":"closed"}var dS="DialogTitleWarning",[d6,hS]=pC(dS,{contentName:Pi,titleName:Wm,docsSlug:"dialog"}),A5=({titleId:e})=>{const t=hS(dS),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},R5="DialogDescriptionWarning",I5=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${hS(R5).contentName}}.`;return v.useEffect(()=>{var s;const i=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},M5=J2,O5=eS,D5=nS,L5=rS,z5=iS,$5=oS,F5=lS,V5=uS;function B5(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const fS=T.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),io=()=>{const e=T.useContext(fS);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};B5(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
[data-state=closed]
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,100%,0)}}@keyframes slideFromTop{from{transform:translate3d(0,-100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,-100%,0)}}@keyframes slideFromLeft{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(-100%,0,0)}}@keyframes slideFromRight{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(100%,0,0)}}`);const U5=24,H5=typeof window<"u"?v.useLayoutEffect:v.useEffect;function Iv(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function W5(){return qm(/^Mac/)}function K5(){return qm(/^iPhone/)}function Mv(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function q5(){return qm(/^iPad/)||W5()&&navigator.maxTouchPoints>1}function pS(){return K5()||q5()}function qm(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const Wd=typeof document<"u"&&window.visualViewport;function Ov(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function mS(e){for(Ov(e)&&(e=e.parentElement);e&&!Ov(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const G5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Ol=0,Kd;function Y5(e={}){let{isDisabled:t}=e;H5(()=>{if(!t)return Ol++,Ol===1&&pS()&&(Kd=Q5()),()=>{Ol--,Ol===0&&(Kd==null||Kd())}},[t])}function Q5(){let e,t=0,n=h=>{e=mS(h.target),!(e===document.documentElement&&e===document.body)&&(t=h.changedTouches[0].pageY)},r=h=>{if(!e||e===document.documentElement||e===document.body){h.preventDefault();return}let f=h.changedTouches[0].pageY,p=e.scrollTop,x=e.scrollHeight-e.clientHeight;x!==0&&((p<=0&&f>t||p>=x&&f<t)&&h.preventDefault(),t=f)},i=h=>{let f=h.target;zf(f)&&f!==document.activeElement&&(h.preventDefault(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""}))},s=h=>{let f=h.target;zf(f)&&(f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",Wd&&(Wd.height<window.innerHeight?requestAnimationFrame(()=>{Dv(f)}):Wd.addEventListener("resize",()=>Dv(f),{once:!0}))}))},o=()=>{window.scrollTo(0,0)},l=window.pageXOffset,c=window.pageYOffset,u=Iv(X5(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let d=Iv(No(document,"touchstart",n,{passive:!1,capture:!0}),No(document,"touchmove",r,{passive:!1,capture:!0}),No(document,"touchend",i,{passive:!1,capture:!0}),No(document,"focus",s,!0),No(window,"scroll",o));return()=>{u(),d(),window.scrollTo(l,c)}}function X5(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function No(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Dv(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=mS(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,i=e.getBoundingClientRect().top,s=e.getBoundingClientRect().bottom;const o=n.getBoundingClientRect().bottom+U5;s>o&&(n.scrollTop+=i-r)}e=n.parentElement}}function zf(e){return e instanceof HTMLInputElement&&!G5.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function J5(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Z5(...e){return t=>e.forEach(n=>J5(n,t))}function gS(...e){return v.useCallback(Z5(...e),e)}const yS=new WeakMap;function ze(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([i,s])=>{if(i.startsWith("--")){e.style.setProperty(i,s);return}r[i]=e.style[i],e.style[i]=s}),!n&&yS.set(e,r)}function eL(e,t){if(!e||!(e instanceof HTMLElement))return;let n=yS.get(e);n&&(e.style[t]=n[t])}const $e=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Dl(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let i=r.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(", ")[$e(t)?13:12]):(i=r.match(/^matrix\((.+)\)$/),i?parseFloat(i[1].split(", ")[$e(t)?5:4]):null)}function tL(e){return 8*(Math.log(e+1)-2)}function qd(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function nL(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const je={DURATION:.5,EASE:[.32,.72,0,1]},vS=.4,rL=.25,iL=100,xS=8,si=16,$f=26,Gd="vaul-dragging";function wS(e){const t=T.useRef(e);return T.useEffect(()=>{t.current=e}),T.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function sL({defaultProp:e,onChange:t}){const n=T.useState(e),[r]=n,i=T.useRef(r),s=wS(t);return T.useEffect(()=>{i.current!==r&&(s(r),i.current=r)},[r,i,s]),n}function bS({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=sL({defaultProp:t,onChange:n}),s=e!==void 0,o=s?e:r,l=wS(n),c=T.useCallback(u=>{if(s){const h=typeof u=="function"?u(e):u;h!==e&&l(h)}else i(u)},[s,e,i,l]);return[o,c]}function oL({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:i,fadeFromIndex:s,onSnapPointChange:o,direction:l="bottom",container:c,snapToSequentialPoint:u}){const[d,h]=bS({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),[f,p]=T.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);T.useEffect(()=>{function k(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[]);const x=T.useMemo(()=>d===(n==null?void 0:n[n.length-1])||null,[n,d]),g=T.useMemo(()=>n==null?void 0:n.findIndex(k=>k===d),[n,d]),b=n&&n.length>0&&(s||s===0)&&!Number.isNaN(s)&&n[s]===d||!n,m=T.useMemo(()=>{const k=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var C;return(C=n==null?void 0:n.map(_=>{const I=typeof _=="string";let R=0;if(I&&(R=parseInt(_,10)),$e(l)){const H=I?R:f?_*k.height:0;return f?l==="bottom"?k.height-H:-k.height+H:H}const z=I?R:f?_*k.width:0;return f?l==="right"?k.width-z:-k.width+z:z}))!=null?C:[]},[n,f,c]),y=T.useMemo(()=>g!==null?m==null?void 0:m[g]:null,[m,g]),w=T.useCallback(k=>{var C;const _=(C=m==null?void 0:m.findIndex(I=>I===k))!=null?C:null;o(_),ze(r.current,{transition:`transform ${je.DURATION}s cubic-bezier(${je.EASE.join(",")})`,transform:$e(l)?`translate3d(0, ${k}px, 0)`:`translate3d(${k}px, 0, 0)`}),m&&_!==m.length-1&&_!==s&&_<s?ze(i.current,{transition:`opacity ${je.DURATION}s cubic-bezier(${je.EASE.join(",")})`,opacity:"0"}):ze(i.current,{transition:`opacity ${je.DURATION}s cubic-bezier(${je.EASE.join(",")})`,opacity:"1"}),h(n==null?void 0:n[Math.max(_,0)])},[r.current,n,m,s,i,h]);T.useEffect(()=>{if(d||e){var k;const C=(k=n==null?void 0:n.findIndex(_=>_===e||_===d))!=null?k:-1;m&&C!==-1&&typeof m[C]=="number"&&w(m[C])}},[d,e,n,m,w]);function j({draggedDistance:k,closeDrawer:C,velocity:_,dismissible:I}){if(s===void 0)return;const R=l==="bottom"||l==="right"?(y??0)-k:(y??0)+k,z=g===s-1,H=g===0,L=k>0;if(z&&ze(i.current,{transition:`opacity ${je.DURATION}s cubic-bezier(${je.EASE.join(",")})`}),!u&&_>2&&!L){I?C():w(m[0]);return}if(!u&&_>2&&L&&m&&n){w(m[n.length-1]);return}const q=m==null?void 0:m.reduce((F,E)=>typeof F!="number"||typeof E!="number"?F:Math.abs(E-R)<Math.abs(F-R)?E:F),W=$e(l)?window.innerHeight:window.innerWidth;if(_>vS&&Math.abs(k)<W*.4){const F=L?1:-1;if(F>0&&x){w(m[n.length-1]);return}if(H&&F<0&&I&&C(),g===null)return;w(m[g+F]);return}w(q)}function S({draggedDistance:k}){if(y===null)return;const C=l==="bottom"||l==="right"?y-k:y+k;(l==="bottom"||l==="right")&&C<m[m.length-1]||(l==="top"||l==="left")&&C>m[m.length-1]||ze(r.current,{transform:$e(l)?`translate3d(0, ${C}px, 0)`:`translate3d(${C}px, 0, 0)`})}function N(k,C){if(!n||typeof g!="number"||!m||s===void 0)return null;const _=g===s-1;if(g>=s&&C)return 0;if(_&&!C)return 1;if(!b&&!_)return null;const R=_?g+1:g-1,z=_?m[R]-m[R-1]:m[R+1]-m[R],H=k/Math.abs(z);return _?1-H:H}return{isLastSnapPoint:x,activeSnapPoint:d,shouldFade:b,getPercentageDragged:N,setActiveSnapPoint:h,activeSnapPointIndex:g,onRelease:j,onDrag:S,snapPointsOffset:m}}const aL=()=>()=>{};function lL(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:i}=io(),s=T.useRef(null),o=v.useMemo(()=>document.body.style.backgroundColor,[]);function l(){return(window.innerWidth-$f)/window.innerWidth}T.useEffect(()=>{if(t&&n){s.current&&clearTimeout(s.current);const c=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!c)return;nL(r&&!i?qd(document.body,{background:"black"}):aL,qd(c,{transformOrigin:$e(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${je.DURATION}s`,transitionTimingFunction:`cubic-bezier(${je.EASE.join(",")})`}));const u=qd(c,{borderRadius:`${xS}px`,overflow:"hidden",...$e(e)?{transform:`scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${l()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{u(),s.current=window.setTimeout(()=>{o?document.body.style.background=o:document.body.style.removeProperty("background")},je.DURATION*1e3)}}},[t,n,o])}let Co=null;function cL({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:i,noBodyStyles:s}){const[o,l]=T.useState(()=>typeof window<"u"?window.location.href:""),c=T.useRef(0),u=T.useCallback(()=>{if(Mv()&&Co===null&&e&&!s){Co={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:h,innerHeight:f}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-h}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const p=f-window.innerHeight;p&&c.current>=f&&(document.body.style.top=`${-(c.current+p)}px`)}),300)}},[e]),d=T.useCallback(()=>{if(Mv()&&Co!==null&&!s){const h=-parseInt(document.body.style.top,10),f=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Co),window.requestAnimationFrame(()=>{if(i&&o!==window.location.href){l(window.location.href);return}window.scrollTo(f,h)}),Co=null}},[o]);return T.useEffect(()=>{function h(){c.current=window.scrollY}return h(),window.addEventListener("scroll",h),()=>{window.removeEventListener("scroll",h)}},[]),T.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{d()},500)):d())},[e,r,o,t,n,u,d]),{restorePositionSetting:d}}function jS({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:i,snapPoints:s,shouldScaleBackground:o=!1,setBackgroundColorOnScale:l=!0,closeThreshold:c=rL,scrollLockTimeout:u=iL,dismissible:d=!0,handleOnly:h=!1,fadeFromIndex:f=s&&s.length-1,activeSnapPoint:p,setActiveSnapPoint:x,fixed:g,modal:b=!0,onClose:m,nested:y,noBodyStyles:w,direction:j="bottom",defaultOpen:S=!1,disablePreventScroll:N=!0,snapToSequentialPoint:k=!1,preventScrollRestoration:C=!1,repositionInputs:_=!0,onAnimationEnd:I,container:R,autoFocus:z=!1}){var H,L;const[q=!1,W]=bS({defaultProp:S,prop:e,onChange:D=>{t==null||t(D),!D&&!y&&ao(),setTimeout(()=>{I==null||I(D)},je.DURATION*1e3),D&&!b&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),D||(document.body.style.pointerEvents="auto")}}),[F,E]=T.useState(!1),[O,B]=T.useState(!1),[V,G]=T.useState(!1),Z=T.useRef(null),he=T.useRef(null),We=T.useRef(null),le=T.useRef(null),Je=T.useRef(null),mt=T.useRef(!1),Lt=T.useRef(null),zt=T.useRef(0),Xt=T.useRef(!1),Mn=T.useRef(0),X=T.useRef(null),nr=T.useRef(((H=X.current)==null?void 0:H.getBoundingClientRect().height)||0),Zr=T.useRef(((L=X.current)==null?void 0:L.getBoundingClientRect().width)||0),$t=T.useRef(0),so=T.useCallback(D=>{s&&D===ei.length-1&&(he.current=new Date)},[]),{activeSnapPoint:oo,activeSnapPointIndex:be,setActiveSnapPoint:On,onRelease:Iu,snapPointsOffset:ei,onDrag:Di,shouldFade:qa,getPercentageDragged:Ga}=oL({snapPoints:s,activeSnapPointProp:p,setActiveSnapPointProp:x,drawerRef:X,fadeFromIndex:f,overlayRef:Z,onSnapPointChange:so,direction:j,container:R,snapToSequentialPoint:k});Y5({isDisabled:!q||O||!b||V||!F||!_||!N});const{restorePositionSetting:ao}=cL({isOpen:q,modal:b,nested:y,hasBeenOpened:F,preventScrollRestoration:C,noBodyStyles:w});function Jt(){return(window.innerWidth-$f)/window.innerWidth}function Ya(D){var K,Y;!d&&!s||X.current&&!X.current.contains(D.target)||(nr.current=((K=X.current)==null?void 0:K.getBoundingClientRect().height)||0,Zr.current=((Y=X.current)==null?void 0:Y.getBoundingClientRect().width)||0,B(!0),We.current=new Date,pS()&&window.addEventListener("touchend",()=>mt.current=!1,{once:!0}),D.target.setPointerCapture(D.pointerId),zt.current=$e(j)?D.pageY:D.pageX)}function Dn(D,K){var Y,oe;let re=D;const Ke=(Y=window.getSelection())==null?void 0:Y.toString(),qe=X.current?Dl(X.current,j):null,kt=new Date;if(re.hasAttribute("data-vaul-no-drag")||re.closest("[data-vaul-no-drag]"))return!1;if(j==="right"||j==="left")return!0;if(he.current&&kt.getTime()-he.current.getTime()<500)return!1;if(qe!==null&&(j==="bottom"?qe>0:qe<0))return!0;if(Ke&&Ke.length>0)return!1;if(kt.getTime()-((oe=Je.current)==null?void 0:oe.getTime())<u&&qe===0||K)return Je.current=kt,!1;for(;re;){if(re.scrollHeight>re.clientHeight){if(re.scrollTop!==0)return Je.current=new Date,!1;if(re.getAttribute("role")==="dialog")return!0}re=re.parentNode}return!0}function Qa(D){if(X.current&&O){const K=j==="bottom"||j==="right"?1:-1,Y=(zt.current-($e(j)?D.pageY:D.pageX))*K,oe=Y>0,re=s&&!d&&!oe;if(re&&be===0)return;const Ke=Math.abs(Y),qe=document.querySelector("[data-vaul-drawer-wrapper]"),kt=j==="bottom"||j==="top"?nr.current:Zr.current;let Zt=Ke/kt;const ni=Ga(Ke,oe);if(ni!==null&&(Zt=ni),re&&Zt>=1||!mt.current&&!Dn(D.target,oe))return;if(X.current.classList.add(Gd),mt.current=!0,ze(X.current,{transition:"none"}),ze(Z.current,{transition:"none"}),s&&Di({draggedDistance:Y}),oe&&!s){const gn=tL(Y),Ja=Math.min(gn*-1,0)*K;ze(X.current,{transform:$e(j)?`translate3d(0, ${Ja}px, 0)`:`translate3d(${Ja}px, 0, 0)`});return}const rr=1-Zt;if((qa||f&&be===f-1)&&(r==null||r(D,Zt),ze(Z.current,{opacity:`${rr}`,transition:"none"},!0)),qe&&Z.current&&o){const gn=Math.min(Jt()+Zt*(1-Jt()),1),Ja=8-Zt*8,Gm=Math.max(0,14-Zt*14);ze(qe,{borderRadius:`${Ja}px`,transform:$e(j)?`scale(${gn}) translate3d(0, ${Gm}px, 0)`:`scale(${gn}) translate3d(${Gm}px, 0, 0)`,transition:"none"},!0)}if(!s){const gn=Ke*K;ze(X.current,{transform:$e(j)?`translate3d(0, ${gn}px, 0)`:`translate3d(${gn}px, 0, 0)`})}}}T.useEffect(()=>{var D;function K(){if(!X.current||!_)return;const Y=document.activeElement;if(zf(Y)||Xt.current){var oe;const re=((oe=window.visualViewport)==null?void 0:oe.height)||0,Ke=window.innerHeight;let qe=Ke-re;const kt=X.current.getBoundingClientRect().height||0,Zt=kt>Ke*.8;$t.current||($t.current=kt);const ni=X.current.getBoundingClientRect().top;if(Math.abs(Mn.current-qe)>60&&(Xt.current=!Xt.current),s&&s.length>0&&ei&&be){const rr=ei[be]||0;qe+=rr}if(Mn.current=qe,kt>re||Xt.current){const rr=X.current.getBoundingClientRect().height;let gn=rr;rr>re&&(gn=re-(Zt?ni:$f)),g?X.current.style.height=`${rr-Math.max(qe,0)}px`:X.current.style.height=`${Math.max(gn,re-ni)}px`}else X.current.style.height=`${$t.current}px`;s&&s.length>0&&!Xt.current?X.current.style.bottom="0px":X.current.style.bottom=`${Math.max(qe,0)}px`}}return(D=window.visualViewport)==null||D.addEventListener("resize",K),()=>{var Y;return(Y=window.visualViewport)==null?void 0:Y.removeEventListener("resize",K)}},[be,s,ei]);function ti(D){Xa(),m==null||m(),D||W(!1),setTimeout(()=>{s&&On(s[0])},je.DURATION*1e3)}function lo(){if(!X.current)return;const D=document.querySelector("[data-vaul-drawer-wrapper]"),K=Dl(X.current,j);ze(X.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${je.DURATION}s cubic-bezier(${je.EASE.join(",")})`}),ze(Z.current,{transition:`opacity ${je.DURATION}s cubic-bezier(${je.EASE.join(",")})`,opacity:"1"}),o&&K&&K>0&&q&&ze(D,{borderRadius:`${xS}px`,overflow:"hidden",...$e(j)?{transform:`scale(${Jt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Jt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${je.DURATION}s`,transitionTimingFunction:`cubic-bezier(${je.EASE.join(",")})`},!0)}function Xa(){!O||!X.current||(X.current.classList.remove(Gd),mt.current=!1,B(!1),le.current=new Date)}function Mu(D){if(!O||!X.current)return;X.current.classList.remove(Gd),mt.current=!1,B(!1),le.current=new Date;const K=Dl(X.current,j);if(!Dn(D.target,!1)||!K||Number.isNaN(K)||We.current===null)return;const Y=le.current.getTime()-We.current.getTime(),oe=zt.current-($e(j)?D.pageY:D.pageX),re=Math.abs(oe)/Y;if(re>.05&&(G(!0),setTimeout(()=>{G(!1)},200)),s){Iu({draggedDistance:oe*(j==="bottom"||j==="right"?1:-1),closeDrawer:ti,velocity:re,dismissible:d}),i==null||i(D,!0);return}if(j==="bottom"||j==="right"?oe>0:oe<0){lo(),i==null||i(D,!0);return}if(re>vS){ti(),i==null||i(D,!1);return}var Ke;const qe=Math.min((Ke=X.current.getBoundingClientRect().height)!=null?Ke:0,window.innerHeight);var kt;const Zt=Math.min((kt=X.current.getBoundingClientRect().width)!=null?kt:0,window.innerWidth),ni=j==="left"||j==="right";if(Math.abs(K)>=(ni?Zt:qe)*c){ti(),i==null||i(D,!1);return}i==null||i(D,!0),lo()}T.useEffect(()=>(q&&(ze(document.documentElement,{scrollBehavior:"auto"}),he.current=new Date),()=>{eL(document.documentElement,"scrollBehavior")}),[q]);function co(D){const K=D?(window.innerWidth-si)/window.innerWidth:1,Y=D?-si:0;Lt.current&&window.clearTimeout(Lt.current),ze(X.current,{transition:`transform ${je.DURATION}s cubic-bezier(${je.EASE.join(",")})`,transform:`scale(${K}) translate3d(0, ${Y}px, 0)`}),!D&&X.current&&(Lt.current=setTimeout(()=>{const oe=Dl(X.current,j);ze(X.current,{transition:"none",transform:$e(j)?`translate3d(0, ${oe}px, 0)`:`translate3d(${oe}px, 0, 0)`})},500))}function mn(D,K){if(K<0)return;const Y=(window.innerWidth-si)/window.innerWidth,oe=Y+K*(1-Y),re=-si+K*si;ze(X.current,{transform:$e(j)?`scale(${oe}) translate3d(0, ${re}px, 0)`:`scale(${oe}) translate3d(${re}px, 0, 0)`,transition:"none"})}function Ou(D,K){const Y=$e(j)?window.innerHeight:window.innerWidth,oe=K?(Y-si)/Y:1,re=K?-si:0;K&&ze(X.current,{transition:`transform ${je.DURATION}s cubic-bezier(${je.EASE.join(",")})`,transform:$e(j)?`scale(${oe}) translate3d(0, ${re}px, 0)`:`scale(${oe}) translate3d(${re}px, 0, 0)`})}return T.createElement(M5,{defaultOpen:S,onOpenChange:D=>{!d&&!D||(D?E(!0):ti(!0),W(D))},open:q},T.createElement(fS.Provider,{value:{activeSnapPoint:oo,snapPoints:s,setActiveSnapPoint:On,drawerRef:X,overlayRef:Z,onOpenChange:t,onPress:Ya,onRelease:Mu,onDrag:Qa,dismissible:d,handleOnly:h,isOpen:q,isDragging:O,shouldFade:qa,closeDrawer:ti,onNestedDrag:mn,onNestedOpenChange:co,onNestedRelease:Ou,keyboardIsOpen:Xt,modal:b,snapPointsOffset:ei,direction:j,shouldScaleBackground:o,setBackgroundColorOnScale:l,noBodyStyles:w,container:R,autoFocus:z}},n))}const SS=T.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:i,shouldFade:s,isOpen:o,modal:l}=io(),c=gS(t,n),u=r&&r.length>0;return l?T.createElement(L5,{onMouseUp:i,ref:c,"data-vaul-overlay":"","data-vaul-snap-points":o&&u?"true":"false","data-vaul-snap-points-overlay":o&&s?"true":"false",...e}):(typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),null)});SS.displayName="Drawer.Overlay";const kS=T.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},i){const{drawerRef:s,onPress:o,onRelease:l,onDrag:c,keyboardIsOpen:u,snapPointsOffset:d,modal:h,isOpen:f,direction:p,snapPoints:x,container:g,handleOnly:b,autoFocus:m}=io(),[y,w]=T.useState(!1),j=gS(i,s),S=T.useRef(null),N=T.useRef(null),k=T.useRef(!1),C=x&&x.length>0;lL();const _=(R,z,H=0)=>{if(k.current)return!0;const L=Math.abs(R.y),q=Math.abs(R.x),W=q>L,F=["bottom","right"].includes(z)?1:-1;if(z==="left"||z==="right"){if(!(R.x*F<0)&&q>=0&&q<=H)return W}else if(!(R.y*F<0)&&L>=0&&L<=H)return!W;return k.current=!0,!0};T.useEffect(()=>{C&&window.requestAnimationFrame(()=>{w(!0)})},[]);function I(R){S.current=null,k.current=!1,l(R)}return T.createElement(z5,{"data-vaul-drawer-direction":p,"data-vaul-drawer":"","data-vaul-delayed-snap-points":y?"true":"false","data-vaul-snap-points":f&&C?"true":"false","data-vaul-custom-container":g?"true":"false",...r,ref:j,style:d&&d.length>0?{"--snap-point-height":`${d[0]}px`,...t}:t,onPointerDown:R=>{b||(r.onPointerDown==null||r.onPointerDown.call(r,R),S.current={x:R.pageX,y:R.pageY},o(R))},onOpenAutoFocus:R=>{n==null||n(R),m||R.preventDefault()},onPointerDownOutside:R=>{if(e==null||e(R),!h||R.defaultPrevented){R.preventDefault();return}u.current&&(u.current=!1)},onFocusOutside:R=>{if(!h){R.preventDefault();return}},onPointerMove:R=>{if(N.current=R,b||(r.onPointerMove==null||r.onPointerMove.call(r,R),!S.current))return;const z=R.pageY-S.current.y,H=R.pageX-S.current.x,L=R.pointerType==="touch"?10:2;_({x:H,y:z},p,L)?c(R):(Math.abs(H)>L||Math.abs(z)>L)&&(S.current=null)},onPointerUp:R=>{r.onPointerUp==null||r.onPointerUp.call(r,R),S.current=null,k.current=!1,l(R)},onPointerOut:R=>{r.onPointerOut==null||r.onPointerOut.call(r,R),I(N.current)},onContextMenu:R=>{r.onContextMenu==null||r.onContextMenu.call(r,R),I(N.current)}})});kS.displayName="Drawer.Content";const uL=250,dL=120,NS=T.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:i,isDragging:s,snapPoints:o,activeSnapPoint:l,setActiveSnapPoint:c,dismissible:u,handleOnly:d,isOpen:h,onPress:f,onDrag:p}=io(),x=T.useRef(null),g=T.useRef(!1);function b(){if(g.current){w();return}window.setTimeout(()=>{m()},dL)}function m(){if(s||e||g.current){w();return}if(w(),(!o||o.length===0)&&u){i();return}if(l===o[o.length-1]&&u){i();return}const S=o.findIndex(k=>k===l);if(S===-1)return;const N=o[S+1];c(N)}function y(){x.current=window.setTimeout(()=>{g.current=!0},uL)}function w(){window.clearTimeout(x.current),g.current=!1}return T.createElement("div",{onClick:b,onPointerCancel:w,onPointerDown:j=>{d&&f(j),y()},onPointerMove:j=>{d&&p(j)},ref:r,"data-vaul-drawer-visible":h?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},T.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});NS.displayName="Drawer.Handle";function hL({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:i,onNestedRelease:s}=io();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return T.createElement(jS,{nested:!0,onClose:()=>{i(!1)},onDrag:(o,l)=>{r(o,l),e==null||e(o,l)},onOpenChange:o=>{o&&i(o)},onRelease:s,...n})}function fL(e){const t=io(),{container:n=t.container,...r}=e;return T.createElement(D5,{container:n,...r})}const In={Root:jS,NestedRoot:hL,Content:kS,Overlay:SS,Trigger:O5,Portal:fL,Handle:NS,Close:V5,Title:$5,Description:F5},CS=({shouldScaleBackground:e=!0,...t})=>a.jsx(In.Root,{shouldScaleBackground:e,...t});CS.displayName="Drawer";const pL=In.Trigger,mL=In.Portal,ES=v.forwardRef(({className:e,...t},n)=>a.jsx(In.Overlay,{ref:n,className:St("fixed inset-0 z-50 bg-black/80",e),...t}));ES.displayName=In.Overlay.displayName;const TS=v.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(mL,{children:[a.jsx(ES,{}),a.jsxs(In.Content,{ref:r,className:St("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[a.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));TS.displayName="DrawerContent";const gL=v.forwardRef(({className:e,...t},n)=>a.jsx(In.Title,{ref:n,className:St("text-lg font-semibold leading-none tracking-tight",e),...t}));gL.displayName=In.Title.displayName;const yL=v.forwardRef(({className:e,...t},n)=>a.jsx(In.Description,{ref:n,className:St("text-sm text-muted-foreground",e),...t}));yL.displayName=In.Description.displayName;const vL=()=>{const e=Js(),[t,n]=v.useState(!1),[r,i]=v.useState(""),[s,o]=v.useState([]),{toast:l}=Mp();v.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]);const c=async()=>{if(!r.trim())return;const u={role:"user",content:r},d=[...s,u];o(d),i(""),setTimeout(()=>{const h={role:"assistant",content:`I noticed you're trying to access ${e.pathname}. This page doesn't exist, but I can help you find what you're looking for! What were you trying to find?`};o([...d,h])},1e3),l({title:"Message sent!",description:"The AI assistant will respond shortly."})};return a.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:[a.jsxs("div",{className:"text-center",children:[a.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),a.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),a.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]}),a.jsxs(CS,{open:t,onOpenChange:n,children:[a.jsx(pL,{asChild:!0,children:a.jsx(J,{className:"fixed bottom-4 right-4 rounded-full p-4 bg-black hover:bg-gray-800 text-white shadow-lg animate-bounce",size:"icon",children:a.jsx(Ec,{className:"h-6 w-6"})})}),a.jsx(TS,{className:"h-[500px] p-4 bg-white",children:a.jsxs("div",{className:"flex flex-col h-full",children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Ec,{className:"h-6 w-6 text-blue-500"}),a.jsx("h2",{className:"text-lg font-semibold",children:"AI Assistant"})]}),a.jsx(J,{variant:"ghost",size:"icon",onClick:()=>n(!1),children:a.jsx(oE,{className:"h-5 w-5"})})]}),a.jsx("div",{className:"flex-1 overflow-y-auto space-y-4 mb-4",children:s.map((u,d)=>a.jsx("div",{className:St("p-3 rounded-lg max-w-[80%]",u.role==="user"?"bg-blue-500 text-white ml-auto":"bg-gray-100 text-gray-800"),children:u.content},d))}),a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx("input",{type:"text",value:r,onChange:u=>i(u.target.value),onKeyPress:u=>u.key==="Enter"&&c(),placeholder:"Ask me anything...",className:"flex-1 p-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"}),a.jsx(J,{onClick:c,size:"icon",children:a.jsx(SE,{className:"h-4 w-4"})})]})]})})]})]})},Lv=()=>(v.useEffect(()=>{const e=document.createElement("meta");return e.httpEquiv="Content-Type",e.content="text/plain",document.head.appendChild(e),()=>{document.head.removeChild(e)}},[]),a.jsx("pre",{style:{margin:0,padding:0},children:`#!/bin/sh
<<\\EOF
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>hanzo.sh | Install Hanzo Platform</title>
<link rel="stylesheet" href="https://hanzo.sh/styles.css"/>
</head>
<body class="bg-[#1A1F2C] text-white min-h-screen">
<div class="max-w-4xl mx-auto p-8">
<div class="text-center mb-16">
<div class="mb-8">
<span class="font-display text-8xl text-white">H</span>
</div>
<h1 class="text-5xl font-bold mb-6 bg-clip-text text-transparent bg-gradient-to-r from-white to-gray-500">Install Hanzo Platform</h1>
<p class="text-xl text-gray-400 max-w-2xl mx-auto">
One command to install the complete Hanzo development platform.
This page doubles as both documentation and the installer script itself.
</p>
</div>
<div class="bg-black/50 rounded-lg p-8 mb-12 border border-purple-500/20 backdrop-blur">
<div class="flex items-center gap-3 mb-4">
<Terminal class="text-purple-400" size="20" />
<h2 class="text-xl font-semibold text-purple-400">Quick Install</h2>
</div>
<pre class="bg-black rounded-lg p-4 overflow-x-auto border border-purple-500/10"><code>curl -sL hanzo.sh | sh</code></pre>
<p class="mt-4 text-sm text-gray-400">This command downloads and executes the Hanzo Platform installer.</p>
</div>
<div class="space-y-8">
<div class="bg-black/30 rounded-lg p-6">
<h2 class="text-2xl font-semibold mb-4 text-purple-400">Requirements</h2>
<ul class="list-disc list-inside text-gray-400 space-y-2">
<li>Root access (sudo)</li>
<li>Linux operating system</li>
<li>Docker support</li>
<li>Ports 80, 443, and 3000 available</li>
</ul>
</div>
<div class="bg-black/30 rounded-lg p-6">
<h2 class="text-2xl font-semibold mb-4 text-purple-400">What's Included</h2>
<ul class="list-disc list-inside text-gray-400 space-y-2">
<li>Docker Swarm initialization</li>
<li>Hanzo Platform container</li>
<li>PostgreSQL 16 database</li>
<li>Redis 7 cache</li>
<li>Traefik v3.1.2 proxy</li>
</ul>
</div>
</div>
<footer class="mt-16 text-center text-gray-500 border-t border-gray-800 pt-8">
<p>&copy; 2024 Hanzo. All rights reserved.</p>
</footer>
</div>
</body>
</html>
EOF
install_hanzo() {
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" >&2
exit 1
fi
# check if is Mac OS
if [ "$(uname)" = "Darwin" ]; then
echo "This script must be run on Linux" >&2
exit 1
fi
# check if is running inside a container
if [ -f /.dockerenv ]; then
echo "This script must be run on Linux" >&2
exit 1
fi
# check if something is running on port 80
if ss -tulnp | grep ':80 ' >/dev/null; then
echo "Error: something is already running on port 80" >&2
exit 1
fi
# check if something is running on port 443
if ss -tulnp | grep ':443 ' >/dev/null; then
echo "Error: something is already running on port 443" >&2
exit 1
fi
command_exists() {
command -v "$@" > /dev/null 2>&1
}
if command_exists docker; then
echo "Docker already installed"
else
curl -sSL https://get.docker.com | sh
fi
docker swarm leave --force 2>/dev/null
get_ip() {
local ip=""
# Try IPv4 first
ip=$(curl -4s --connect-timeout 5 https://ifconfig.io 2>/dev/null)
if [ -z "$ip" ]; then
ip=$(curl -4s --connect-timeout 5 https://icanhazip.com 2>/dev/null)
fi
if [ -z "$ip" ]; then
ip=$(curl -4s --connect-timeout 5 https://ipecho.net/plain 2>/dev/null)
fi
# If no IPv4, try IPv6
if [ -z "$ip" ]; then
ip=$(curl -6s --connect-timeout 5 https://ifconfig.io 2>/dev/null)
if [ -z "$ip" ]; then
ip=$(curl -6s --connect-timeout 5 https://icanhazip.com 2>/dev/null)
fi
if [ -z "$ip" ]; then
ip=$(curl -6s --connect-timeout 5 https://ipecho.net/plain 2>/dev/null)
fi
fi
if [ -z "$ip" ]; then
echo "Error: Could not determine server IP address automatically." >&2
echo "Please set the ADVERTISE_ADDR environment variable manually." >&2
exit 1
fi
echo "$ip"
}
advertise_addr="\${ADVERTISE_ADDR:-$(get_ip)}"
echo "Using advertise address: $advertise_addr"
docker swarm init --advertise-addr $advertise_addr
if [ $? -ne 0 ]; then
echo "Error: Failed to initialize Docker Swarm" >&2
exit 1
fi
echo "Swarm initialized"
docker network rm -f hanzo-network 2>/dev/null
docker network create --driver overlay --attachable hanzo-network
echo "Network created"
mkdir -p /etc/hanzo
chmod 777 /etc/hanzo
docker pull postgres:16
docker pull redis:7
docker pull traefik:v3.1.2
docker pull hanzo/platform:latest
# Installation
docker service create \\
--name hanzo \\
--replicas 1 \\
--network hanzo-network \\
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \\
--mount type=bind,source=/etc/hanzo,target=/etc/hanzo \\
--mount type=volume,source=hanzo-docker-config,target=/root/.docker \\
--publish published=3000,target=3000,mode=host \\
--update-parallelism 1 \\
--update-order stop-first \\
--constraint 'node.role == manager' \\
-e ADVERTISE_ADDR=$advertise_addr \\
hanzo/platform:latest
GREEN="\\\\033[0;32m"
YELLOW="\\\\033[1;33m"
BLUE="\\\\033[0;34m"
NC="\\\\033[0m" # No Color
format_ip_for_url() {
local ip="$1"
if echo "$ip" | grep -q ':'; then
echo "[\${ip}]"
else
echo "\${ip}"
fi
}
formatted_addr=$(format_ip_for_url "$advertise_addr")
echo ""
printf "\${GREEN}Congratulations, hanzo is installed!\${NC}\\n"
printf "\${BLUE}Wait 15 seconds for the server to start\${NC}\\n"
printf "\${YELLOW}Please go to http://\${formatted_addr}:3000\${NC}\\n\\n"
}
update_hanzo() {
echo "Updating Hanzo Platform..."
docker pull hanzo/platform:latest
docker service update --image hanzo/platform:latest hanzo
echo "Hanzo Platform has been updated to the latest version."
}
# Main script execution
if [ "$1" = "update" ]; then
update_hanzo
else
install_hanzo
fi`})),xL=()=>{const e=[{name:"Hanzo Platform APIs",icon:$a,status:"Operational",uptime:"100%",latency:"45ms"},{name:"Hanzo Database",icon:zr,status:"Operational",uptime:"100%",latency:"28ms"},{name:"Hanzo Auth Service",icon:De,status:"Operational",uptime:"100%",latency:"32ms"},{name:"Hanzo AI Engine",icon:za,status:"Operational",uptime:"100%",latency:"52ms"}];return a.jsxs("div",{className:"min-h-screen bg-black",children:[a.jsx(Ee,{}),a.jsx("main",{className:"pt-32 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("div",{className:"inline-flex items-center space-x-2 mb-4",children:[a.jsx(hy,{className:"h-8 w-8 text-green-500"}),a.jsx("h1",{className:"text-3xl font-bold text-white",children:"All Systems Operational"})]}),a.jsx("p",{className:"text-gray-400",children:"Current status of Hanzo services and infrastructure"})]}),a.jsx("div",{className:"grid gap-6",children:e.map(t=>{const n=t.icon;return a.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-lg p-6",children:[a.jsxs("div",{className:"flex items-start justify-between",children:[a.jsxs("div",{className:"flex items-center space-x-4",children:[a.jsx(n,{className:"h-6 w-6 text-gray-400"}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-lg font-medium text-white",children:t.name}),a.jsxs("div",{className:"flex items-center space-x-2 mt-1",children:[a.jsx(hy,{className:"h-4 w-4 text-green-500"}),a.jsx("span",{className:"text-green-500 text-sm",children:t.status})]})]})]}),a.jsxs("div",{className:"text-right",children:[a.jsx("div",{className:"text-white font-medium",children:t.uptime}),a.jsx("div",{className:"text-gray-400 text-sm",children:"Uptime"})]})]}),a.jsxs("div",{className:"mt-4 flex items-center justify-between text-sm",children:[a.jsx("span",{className:"text-gray-400",children:"Average Latency"}),a.jsx("span",{className:"text-white",children:t.latency})]})]},t.name)})}),a.jsx("div",{className:"mt-12 text-center",children:a.jsx("div",{className:"inline-block bg-green-500/10 border border-green-500/20 rounded-lg px-4 py-2",children:a.jsx("div",{className:"text-green-500 font-medium",children:"No incidents reported in the last 90 days"})})})]})}),a.jsx(Te,{})]})},wL=()=>{const e=[{icon:De,title:"Enterprise-Grade Security",description:"Best-in-class security practices and infrastructure to protect your data and applications"},{icon:Pn,title:"End-to-End Encryption",description:"All data in transit and at rest is encrypted using industry-standard protocols"},{icon:F1,title:"Access Controls",description:"Fine-grained permissions and role-based access control (RBAC) for team management"},{icon:TE,title:"Identity & Authentication",description:"Multi-factor authentication and single sign-on (SSO) support"},{icon:$a,title:"Data Protection",description:"Regular backups and disaster recovery protocols to ensure data safety"},{icon:$1,title:"Compliance",description:"SOC 2 Type II certified, GDPR compliant, and ISO 27001 certified"}];return a.jsxs("div",{className:"min-h-screen bg-black",children:[a.jsx(Ee,{}),a.jsx("main",{className:"pt-32 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-16",children:[a.jsx("h1",{className:"text-4xl font-bold text-white mb-4",children:"Security First, Always"}),a.jsx("p",{className:"text-xl text-gray-400 max-w-2xl mx-auto",children:"We prioritize the security and privacy of your data with enterprise-grade protection at every layer"})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((t,n)=>{const r=t.icon;return a.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-lg p-6 hover:border-gray-700 transition-colors",children:[a.jsxs("div",{className:"flex items-center space-x-4 mb-4",children:[a.jsx("div",{className:"p-2 bg-gray-800 rounded-lg",children:a.jsx(r,{className:"h-6 w-6 text-white"})}),a.jsx("h3",{className:"text-lg font-medium text-white",children:t.title})]}),a.jsx("p",{className:"text-gray-400",children:t.description})]},n)})}),a.jsxs("div",{className:"mt-16 text-center space-y-8",children:[a.jsxs("div",{className:"bg-gradient-to-r from-gray-900 to-gray-800 rounded-lg p-8",children:[a.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:"SOC 2 Type II Certified"}),a.jsx("p",{className:"text-gray-400 mb-6",children:"Our security practices and controls have been audited and certified by independent third-party auditors"}),a.jsx(J,{variant:"outline",className:"text-white border-white hover:bg-white/10",children:"Download Security Whitepaper"})]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[a.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-lg p-6",children:[a.jsx("div",{className:"text-3xl font-bold text-white mb-2",children:"99.99%"}),a.jsx("div",{className:"text-gray-400",children:"Uptime SLA"})]}),a.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-lg p-6",children:[a.jsx("div",{className:"text-3xl font-bold text-white mb-2",children:"24/7"}),a.jsx("div",{className:"text-gray-400",children:"Security Monitoring"})]}),a.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-lg p-6",children:[a.jsx("div",{className:"text-3xl font-bold text-white mb-2",children:"100%"}),a.jsx("div",{className:"text-gray-400",children:"Data Encryption"})]})]})]})]})}),a.jsx(Te,{})]})},bL=()=>a.jsxs("div",{className:"min-h-screen bg-black",children:[a.jsx(Ee,{}),a.jsx("main",{className:"pt-32 pb-16 px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"max-w-4xl mx-auto prose prose-invert",children:[a.jsx("h1",{className:"text-4xl font-bold text-white mb-8",children:"Terms of Service"}),a.jsxs("div",{className:"space-y-8",children:[a.jsxs("section",{children:[a.jsx("h2",{children:"1. Agreement to Terms"}),a.jsx("p",{children:`By accessing or using Hanzo's services, you agree to be bound by these Terms of Service and all applicable laws and regulations. These terms constitute a legal agreement between you and Hanzo Industries, Inc. ("Hanzo", "we", "us", or "our").`})]}),a.jsxs("section",{children:[a.jsx("h2",{children:"2. Intellectual Property Rights"}),a.jsx("p",{children:"When you use our AI services to generate content:"}),a.jsxs("ul",{children:[a.jsx("li",{children:"You retain ownership of your input prompts and any pre-existing materials you provide."}),a.jsx("li",{children:"For content generated using our public services, Hanzo retains the right to use, modify, and distribute the AI-generated outputs for any purpose."}),a.jsx("li",{children:"For private/enterprise services, content ownership is determined by your specific service agreement."})]})]}),a.jsxs("section",{children:[a.jsx("h2",{children:"3. User Generated Content"}),a.jsx("p",{children:"By submitting content to our platform, you grant Hanzo a worldwide, non-exclusive, royalty-free license to use, modify, and analyze such content for service improvement and research purposes."})]}),a.jsxs("section",{children:[a.jsx("h2",{children:"4. API Usage and Rate Limits"}),a.jsx("p",{children:"Your use of our API is subject to rate limits and fair use policies. We reserve the right to modify these limits based on service load and other factors."})]}),a.jsxs("section",{children:[a.jsx("h2",{children:"5. Payment Terms"}),a.jsx("p",{children:"Payment processing is handled securely through Stripe. By subscribing to our services, you agree to:"}),a.jsxs("ul",{children:[a.jsx("li",{children:"Provide valid payment information"}),a.jsx("li",{children:"Pay all charges at the prices in effect when incurred"}),a.jsx("li",{children:"Pay any applicable taxes"}),a.jsx("li",{children:"Keep your billing information current and accurate"}),a.jsx("li",{children:"Authorize us to share your payment information with Stripe"})]}),a.jsx("p",{children:"All payment information is processed and stored securely by Stripe. Hanzo does not store your full payment details."})]}),a.jsxs("section",{children:[a.jsx("h2",{children:"6. Service Availability"}),a.jsx("p",{children:"While we strive for high availability, we do not guarantee uninterrupted access to our services. We reserve the right to modify or discontinue services with reasonable notice."})]}),a.jsxs("section",{children:[a.jsx("h2",{children:"7. Limitation of Liability"}),a.jsx("p",{children:"Hanzo shall not be liable for any indirect, incidental, special, consequential, or punitive damages resulting from your use or inability to use the service."})]}),a.jsxs("section",{children:[a.jsx("h2",{children:"8. Modifications to Terms"}),a.jsx("p",{children:"We reserve the right to modify these terms at any time. Continued use of the service after such modifications constitutes acceptance of the updated terms."})]}),a.jsxs("section",{children:[a.jsx("h2",{children:"9. Contact Information"}),a.jsx("p",{children:"For any questions about these Terms of Service, please contact us at:"}),a.jsxs("ul",{children:[a.jsx("li",{children:"Email: [email protected]"}),a.jsx("li",{children:"Company: Hanzo Industries, Inc."}),a.jsx("li",{children:"For legal notices: [email protected]"})]}),a.jsx("p",{children:"Our registered agent information:"}),a.jsxs("ul",{children:[a.jsx("li",{children:"Registered Agent: Legalinc Corporate Services Inc."}),a.jsx("li",{children:"Address: 131 Continental Dr, Suite 305, Newark, DE 19713 US"})]})]})]})]})}),a.jsx(Te,{})]}),jL=()=>a.jsxs("div",{className:"min-h-screen bg-black",children:[a.jsx(Ee,{}),a.jsx("main",{className:"pt-32 pb-16 px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"max-w-4xl mx-auto prose prose-invert",children:[a.jsx("h1",{className:"text-4xl font-bold text-white mb-8",children:"Privacy Policy"}),a.jsxs("div",{className:"space-y-8",children:[a.jsxs("section",{children:[a.jsx("h2",{children:"Data Controller"}),a.jsx("p",{children:'Hanzo Industries, Inc. ("Hanzo", "we", "us", or "our") is the data controller for the personal information we process under this policy.'}),a.jsx("p",{children:"For privacy-related inquiries, you can reach our Data Protection Officer (DPO) at:"}),a.jsxs("ul",{children:[a.jsx("li",{children:"Email: [email protected]"}),a.jsx("li",{children:"General Support: [email protected]"})]}),a.jsx("p",{children:"Our registered agent information:"}),a.jsxs("ul",{children:[a.jsx("li",{children:"Registered Agent: Legalinc Corporate Services Inc."}),a.jsx("li",{children:"Address: 131 Continental Dr, Suite 305, Newark, DE 19713 US"})]})]}),a.jsxs("section",{children:[a.jsx("h2",{children:"1. Information We Collect"}),a.jsx("p",{children:"We collect the following types of information:"}),a.jsxs("ul",{children:[a.jsx("li",{children:"Account information (email, name, billing details)"}),a.jsx("li",{children:"Usage data (API calls, prompts, generated content)"}),a.jsx("li",{children:"Device information (IP address, browser type)"}),a.jsx("li",{children:"Payment information (processed securely via Stripe)"})]})]}),a.jsxs("section",{children:[a.jsx("h2",{children:"2. How We Use Your Information"}),a.jsx("p",{children:"We use collected information for:"}),a.jsxs("ul",{children:[a.jsx("li",{children:"Providing and improving our services"}),a.jsx("li",{children:"Training and fine-tuning our AI models"}),a.jsx("li",{children:"Personalizing your experience"}),a.jsx("li",{children:"Marketing and advertising purposes"}),a.jsx("li",{children:"Analytics and service optimization"}),a.jsx("li",{children:"Processing payments and maintaining financial records"})]})]}),a.jsxs("section",{children:[a.jsx("h2",{children:"3. Data Sharing and Disclosure"}),a.jsx("p",{children:"We may share your information with:"}),a.jsxs("ul",{children:[a.jsx("li",{children:"Service providers (e.g., Stripe for payment processing)"}),a.jsx("li",{children:"Analytics partners"}),a.jsx("li",{children:"Marketing partners"}),a.jsx("li",{children:"Law enforcement when required by law"})]}),a.jsx("p",{children:"When you make a payment, your payment information is processed securely by Stripe. Hanzo does not store your full payment details."})]}),a.jsxs("section",{children:[a.jsx("h2",{children:"4. AI Training and Data Usage"}),a.jsx("p",{children:"Content generated through our platform may be used to:"}),a.jsxs("ul",{children:[a.jsx("li",{children:"Improve our AI models"}),a.jsx("li",{children:"Analyze usage patterns"}),a.jsx("li",{children:"Develop new features"}),a.jsx("li",{children:"Create derivative works"})]})]}),a.jsxs("section",{children:[a.jsx("h2",{children:"5. Data Retention"}),a.jsx("p",{children:"We retain your information for as long as necessary to provide our services and comply with legal obligations. You can request deletion of your data, subject to legal requirements."})]}),a.jsxs("section",{children:[a.jsx("h2",{children:"6. Your Rights"}),a.jsx("p",{children:"You have the right to:"}),a.jsxs("ul",{children:[a.jsx("li",{children:"Access your personal data"}),a.jsx("li",{children:"Correct inaccurate data"}),a.jsx("li",{children:"Request data deletion"}),a.jsx("li",{children:"Object to data processing"}),a.jsx("li",{children:"Export your data"})]}),a.jsx("p",{children:"To exercise these rights, please contact our DPO at [email protected]"})]}),a.jsxs("section",{children:[a.jsx("h2",{children:"7. Security"}),a.jsx("p",{children:"We implement appropriate security measures to protect your information from unauthorized access, alteration, or destruction. This includes using industry-standard encryption for data transmission and storage."})]}),a.jsxs("section",{children:[a.jsx("h2",{children:"8. Updates to Privacy Policy"}),a.jsx("p",{children:"We may update this policy periodically. We will notify you of significant changes via email or service notifications."})]}),a.jsxs("section",{children:[a.jsx("h2",{children:"9. Contact Information"}),a.jsx("p",{children:"For any questions about our Privacy Policy or data practices:"}),a.jsxs("ul",{children:[a.jsx("li",{children:"Data Protection Officer: [email protected]"}),a.jsx("li",{children:"General Support: [email protected]"}),a.jsx("li",{children:"Company: Hanzo Industries, Inc."}),a.jsx("li",{children:"Registered Agent: Legalinc Corporate Services Inc."}),a.jsx("li",{children:"Address: 131 Continental Dr, Suite 305, Newark, DE 19713 US"})]})]})]})]})}),a.jsx(Te,{})]}),SL=()=>{const e=[{icon:B1,title:"Targeting & Fire Control",description:"AI-enhanced targeting systems with real-time threat assessment and precision engagement capabilities",features:["Multi-domain integration","Predictive targeting","Collateral damage assessment"]},{icon:V1,title:"ISR & Reconnaissance",description:"Advanced intelligence, surveillance, and reconnaissance platforms with multi-sensor fusion",features:["Real-time imagery analysis","Pattern of life analysis","Automated threat detection"]},{icon:De,title:"Missile Defense Systems",description:"Next-generation ballistic missile defense with AI-powered trajectory prediction",features:["Multi-layered defense","Hypersonic tracking","Automated response systems"]},{icon:An,title:"Command & Control",description:"Unified C4ISR systems for joint all-domain command and control operations",features:["Cross-domain operations","Decision support AI","Secure communications"]},{icon:Fp,title:"Electronic Warfare",description:"Advanced EW capabilities for spectrum dominance and signal intelligence",features:["Cognitive EW systems","Adaptive jamming","Signal classification"]},{icon:Pn,title:"Cyber Operations",description:"Offensive and defensive cyber capabilities for military networks",features:["Zero-day detection","Attribution analysis","Resilient architectures"]}];return a.jsxs("div",{className:"min-h-screen bg-white",children:[a.jsx(Ee,{}),a.jsx("section",{className:"pt-24 pb-16 bg-black text-white",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center",children:[a.jsx("h1",{className:"text-5xl font-bold mb-6",children:"Defense Solutions"}),a.jsx("p",{className:"text-xl text-gray-300 max-w-3xl mx-auto mb-8",children:"Protecting national security through advanced technology solutions designed for the modern battlespace"}),a.jsxs("div",{className:"flex justify-center gap-4",children:[a.jsx(J,{size:"lg",className:"bg-white text-black hover:bg-gray-200",onClick:()=>window.location.href="/contact",children:"Schedule Briefing"}),a.jsx(J,{size:"lg",variant:"outline",className:"border-white text-white hover:bg-white/10",onClick:()=>window.open("/hanzo-defense-capabilities.html","_blank"),children:"Download Capabilities"})]})]})})}),a.jsx("section",{className:"py-20",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-center mb-16",children:[a.jsx("h2",{className:"text-4xl font-bold text-black mb-4",children:"Mission-Critical Capabilities"}),a.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Comprehensive defense solutions engineered for superiority across all domains"})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((t,n)=>{const r=t.icon;return a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:n*.1},className:"bg-gray-50 p-8 rounded-lg border border-gray-200 hover:border-black transition-colors",children:[a.jsx("div",{className:"w-12 h-12 bg-black rounded-lg flex items-center justify-center mb-6",children:a.jsx(r,{className:"w-6 h-6 text-white"})}),a.jsx("h3",{className:"text-xl font-semibold text-black mb-3",children:t.title}),a.jsx("p",{className:"text-gray-600 mb-4",children:t.description}),a.jsx("ul",{className:"space-y-2",children:t.features.map(i=>a.jsxs("li",{className:"flex items-center text-sm text-gray-700",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-black rounded-full mr-2"}),i]},i))})]},t.title)})})]})}),a.jsx("section",{className:"py-20 bg-black text-white",children:a.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},children:[a.jsx("h2",{className:"text-4xl font-bold mb-6",children:"Ready to Enhance Your Mission?"}),a.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"Contact our defense solutions team for a classified briefing on how Hanzo Industries can support your operational requirements"}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsx(J,{size:"lg",className:"bg-white text-black hover:bg-gray-200",children:"Request SCIF Briefing"}),a.jsx(J,{size:"lg",variant:"outline",className:"border-white text-white hover:bg-white/10",children:"Download CAGE/DUNS Info"})]}),a.jsx("p",{className:"mt-8 text-sm text-gray-400",children:"CAGE Code: 1ABC2 | DUNS: 123456789 | NAICS: 541511, 541512, 541519"})]})})}),a.jsx(Te,{})]})},kL=()=>{const e=[{icon:Gr,title:"Zen - Multi-Modal MoE",description:"Our flagship Mixture of Experts model delivering state-of-the-art performance across text, code, and reasoning tasks",features:["175B+ parameters","Multi-modal understanding","Enterprise-ready API","On-premise deployment"]},{icon:CE,title:"Sho - Diffusion Model",description:"Advanced generative AI for creating high-quality images, designs, and visual content with unparalleled control",features:["Text-to-image generation","Style transfer","Inpainting & outpainting","Commercial use licensed"]},{icon:zr,title:"Open Data Platform",description:"Modular, enterprise-ready data infrastructure designed for AI/ML workloads at scale",features:["Real-time processing","Multi-cloud support","Data governance","Open source core"]},{icon:dE,title:"AI/ML Ecosystem",description:"Comprehensive toolkit for building, training, and deploying AI models in production environments",features:["AutoML capabilities","Model versioning","A/B testing framework","Monitoring & observability"]},{icon:An,title:"Edge AI Solutions",description:"Optimized models for deployment on edge devices with minimal latency and resource usage",features:["Model compression","Hardware acceleration","Offline capabilities","Secure inference"]},{icon:Yr,title:"Applied AI Research",description:"Cutting-edge research in natural language processing, computer vision, and reinforcement learning",features:["Published papers","Open source contributions","Industry partnerships","Patent portfolio"]}],t=[{title:"Natural Language Processing",description:"Advanced language understanding and generation capabilities",projects:["Multilingual models","Code generation","Document analysis","Sentiment analysis"]},{title:"Computer Vision",description:"State-of-the-art visual perception and understanding",projects:["Object detection","Scene understanding","Video analysis","3D reconstruction"]},{title:"Reinforcement Learning",description:"Self-improving systems for complex decision making",projects:["Autonomous agents","Game playing AI","Robotics control","Resource optimization"]}];return a.jsxs("div",{className:"min-h-screen bg-white",children:[a.jsx(Ee,{}),a.jsx("section",{className:"pt-24 pb-16 bg-black text-white",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center",children:[a.jsx("h1",{className:"text-5xl font-bold mb-6",children:"AI Intelligence Solutions"}),a.jsx("p",{className:"text-xl text-gray-300 max-w-3xl mx-auto mb-8",children:"Powered by Hanzo AI Inc, our Techstars-backed applied AI research lab delivering frontier models and enterprise-ready AI infrastructure"}),a.jsxs("div",{className:"flex justify-center gap-4",children:[a.jsx(J,{size:"lg",className:"bg-white text-black hover:bg-gray-200",children:"Explore Our Models"}),a.jsx(J,{size:"lg",variant:"outline",className:"border-white text-white hover:bg-white/10",children:"View Research Papers"})]})]})})}),a.jsx("section",{className:"py-20",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-center mb-16",children:[a.jsx("h2",{className:"text-4xl font-bold text-black mb-4",children:"Frontier AI Models & Infrastructure"}),a.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Building the future of artificial intelligence with open source principles and enterprise-grade reliability"})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((n,r)=>{const i=n.icon;return a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:r*.1},className:"bg-gray-50 p-8 rounded-lg border border-gray-200 hover:border-black transition-colors",children:[a.jsx("div",{className:"w-12 h-12 bg-black rounded-lg flex items-center justify-center mb-6",children:a.jsx(i,{className:"w-6 h-6 text-white"})}),a.jsx("h3",{className:"text-xl font-semibold text-black mb-3",children:n.title}),a.jsx("p",{className:"text-gray-600 mb-4",children:n.description}),a.jsx("ul",{className:"space-y-2",children:n.features.map(s=>a.jsxs("li",{className:"flex items-center text-sm text-gray-700",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-black rounded-full mr-2"}),s]},s))})]},n.title)})})]})}),a.jsx("section",{className:"py-20 bg-gray-50",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-center mb-16",children:[a.jsx("h2",{className:"text-4xl font-bold text-black mb-4",children:"Applied AI Research"}),a.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Advancing the state of the art through fundamental research and practical applications"})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:t.map((n,r)=>a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:r*.1},className:"bg-white p-8 rounded-lg shadow-sm",children:[a.jsx("h3",{className:"text-2xl font-semibold text-black mb-4",children:n.title}),a.jsx("p",{className:"text-gray-600 mb-6",children:n.description}),a.jsx("div",{className:"space-y-3",children:n.projects.map(i=>a.jsxs("div",{className:"flex items-center",children:[a.jsx("svg",{className:"w-5 h-5 mr-3 text-black",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}),a.jsx("span",{className:"text-gray-700",children:i})]},i))})]},n.title))})]})}),a.jsx("section",{className:"py-20 bg-black text-white",children:a.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},children:[a.jsx("h2",{className:"text-4xl font-bold mb-6",children:"Open Source First"}),a.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"We believe in democratizing AI technology. Our core infrastructure and select models are available as open source, enabling innovation across the entire ecosystem."}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mb-12",children:[a.jsxs("div",{children:[a.jsx("div",{className:"text-3xl font-bold mb-2",children:"50+"}),a.jsx("div",{className:"text-gray-400",children:"Open Source Projects"})]}),a.jsxs("div",{children:[a.jsx("div",{className:"text-3xl font-bold mb-2",children:"10k+"}),a.jsx("div",{className:"text-gray-400",children:"GitHub Stars"})]}),a.jsxs("div",{children:[a.jsx("div",{className:"text-3xl font-bold mb-2",children:"500+"}),a.jsx("div",{className:"text-gray-400",children:"Contributors"})]})]}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsx(J,{size:"lg",className:"bg-white text-black hover:bg-gray-200",onClick:()=>window.open("https://github.com/hanzoai","_blank"),children:"Visit Our GitHub"}),a.jsx(J,{size:"lg",variant:"outline",className:"border-white text-white hover:bg-white/10",children:"Join Our Community"})]})]})})}),a.jsx(Te,{})]})},NL=()=>{const e=[{icon:Yh,title:"Custom AI Development",description:"End-to-end AI solution development tailored to your specific business needs",offerings:["Model architecture design","Training pipeline setup","Fine-tuning and optimization","API development and integration"]},{icon:zr,title:"Data Engineering",description:"Build robust data infrastructure to power your AI and analytics initiatives",offerings:["Data pipeline architecture","ETL/ELT development","Real-time streaming","Data warehouse design"]},{icon:za,title:"Cloud & DevOps",description:"Scalable cloud infrastructure and automation for modern applications",offerings:["Multi-cloud architecture","CI/CD pipeline setup","Infrastructure as Code","Kubernetes orchestration"]},{icon:De,title:"Security & Compliance",description:"Comprehensive security solutions to protect your data and systems",offerings:["Security assessments","Compliance consulting","Penetration testing","Security architecture design"]},{icon:Jh,title:"AI Strategy Consulting",description:"Strategic guidance to maximize the value of AI in your organization",offerings:["AI readiness assessment","Use case identification","ROI analysis","Implementation roadmap"]},{icon:Ei,title:"Training & Support",description:"Empower your team with the knowledge and skills to succeed with AI",offerings:["Technical workshops","Custom training programs","24/7 support","Documentation & knowledge transfer"]}],t=[{title:"Project-Based",description:"Fixed-scope engagements with clear deliverables and timelines",ideal:"Organizations with well-defined projects and specific outcomes"},{title:"Dedicated Teams",description:"Embedded experts working as an extension of your team",ideal:"Companies needing ongoing development and support"},{title:"Consulting & Advisory",description:"Strategic guidance and technical expertise on demand",ideal:"Organizations exploring AI opportunities and best practices"}];return a.jsxs("div",{className:"min-h-screen bg-white",children:[a.jsx(Ee,{}),a.jsx("section",{className:"pt-24 pb-16 bg-gradient-to-b from-gray-50 to-white",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center",children:[a.jsx("h1",{className:"text-5xl font-bold text-black mb-6",children:"Professional Services"}),a.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto mb-8",children:"From strategy to implementation, we provide end-to-end services to help you harness the power of AI and modern technology"}),a.jsxs("div",{className:"flex justify-center gap-4",children:[a.jsx(J,{size:"lg",className:"bg-black text-white hover:bg-gray-800",children:"Get Started"}),a.jsx(J,{size:"lg",variant:"outline",className:"border-black text-black hover:bg-gray-50",children:"View Case Studies"})]})]})})}),a.jsx("section",{className:"py-20",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-center mb-16",children:[a.jsx("h2",{className:"text-4xl font-bold text-black mb-4",children:"Comprehensive Service Offerings"}),a.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Expert services across the entire technology stack, delivered by our team of specialists"})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((n,r)=>{const i=n.icon;return a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:r*.1},className:"bg-white p-8 rounded-lg border border-gray-200 hover:shadow-lg transition-shadow",children:[a.jsx("div",{className:"w-12 h-12 bg-black rounded-lg flex items-center justify-center mb-6",children:a.jsx(i,{className:"w-6 h-6 text-white"})}),a.jsx("h3",{className:"text-xl font-semibold text-black mb-3",children:n.title}),a.jsx("p",{className:"text-gray-600 mb-6",children:n.description}),a.jsx("ul",{className:"space-y-2",children:n.offerings.map(s=>a.jsxs("li",{className:"flex items-start text-sm text-gray-700",children:[a.jsx("span",{className:"text-black mr-2",children:"•"}),s]},s))})]},n.title)})})]})}),a.jsx("section",{className:"py-20 bg-gray-50",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-center mb-16",children:[a.jsx("h2",{className:"text-4xl font-bold text-black mb-4",children:"Flexible Engagement Models"}),a.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Choose the engagement model that best fits your needs and budget"})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:t.map((n,r)=>a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:r*.1},className:"bg-white p-8 rounded-lg shadow-sm",children:[a.jsx("h3",{className:"text-2xl font-semibold text-black mb-4",children:n.title}),a.jsx("p",{className:"text-gray-600 mb-4",children:n.description}),a.jsxs("p",{className:"text-sm text-gray-500",children:[a.jsx("strong",{children:"Ideal for:"})," ",n.ideal]})]},n.title))})]})}),a.jsx("section",{className:"py-20 bg-black text-white",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-center mb-16",children:[a.jsx("h2",{className:"text-4xl font-bold mb-4",children:"Our Process"}),a.jsx("p",{className:"text-xl text-gray-300 max-w-3xl mx-auto",children:"A proven methodology that ensures successful outcomes"})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[{step:"01",title:"Discovery",desc:"Understand your goals and challenges"},{step:"02",title:"Strategy",desc:"Design the optimal solution approach"},{step:"03",title:"Implementation",desc:"Build and deploy with excellence"},{step:"04",title:"Support",desc:"Ensure long-term success"}].map((n,r)=>a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:r*.1},className:"text-center",children:[a.jsx("div",{className:"text-5xl font-bold text-gray-600 mb-4",children:n.step}),a.jsx("h3",{className:"text-xl font-semibold mb-2",children:n.title}),a.jsx("p",{className:"text-gray-400",children:n.desc})]},n.step))})]})}),a.jsx("section",{className:"py-20",children:a.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},children:[a.jsx("h2",{className:"text-4xl font-bold text-black mb-6",children:"Ready to Transform Your Business?"}),a.jsx("p",{className:"text-xl text-gray-600 mb-8",children:"Let's discuss how our services can help you achieve your goals"}),a.jsx(J,{size:"lg",className:"bg-black text-white hover:bg-gray-800",children:"Schedule a Consultation"})]})})}),a.jsx(Te,{})]})},CL=()=>{const e=[{icon:V1,title:"Satellite AI Systems",description:"Edge AI for satellite operations, image processing, and autonomous decision-making",features:["On-orbit processing","Real-time analytics","Autonomous navigation","Data compression"]},{icon:yE,title:"Flight Control AI",description:"Advanced AI for autonomous flight systems, traffic management, and safety monitoring",features:["Predictive maintenance","Route optimization","Collision avoidance","Weather adaptation"]},{icon:jE,title:"Communications Intelligence",description:"AI-powered communication systems for secure, reliable aerospace operations",features:["Signal processing","Interference mitigation","Adaptive protocols","Quantum-safe encryption"]},{icon:De,title:"Space Cybersecurity",description:"Protecting critical space infrastructure with AI-driven security solutions",features:["Threat detection","Anomaly monitoring","Secure boot systems","Zero-trust architecture"]},{icon:An,title:"Avionics AI",description:"Next-generation AI for aircraft systems, sensors, and operational efficiency",features:["Sensor fusion","System health monitoring","Fuel optimization","Crew assistance"]},{icon:Pc,title:"Unmanned Systems",description:"Autonomous AI for drones, UAVs, and unmanned space vehicles",features:["Swarm intelligence","Mission planning","Remote operation","Adaptive behavior"]}],t=[{title:"Autonomous Satellite Constellation",client:"Major Aerospace Contractor",description:"Deployed edge AI across 50+ satellites for real-time Earth observation and autonomous tasking",impact:"90% reduction in ground control requirements"},{title:"AI Flight Safety System",client:"Commercial Aviation Leader",description:"Implemented predictive maintenance AI reducing unscheduled maintenance by 40%",impact:"$25M annual savings"},{title:"Space Traffic Management",client:"International Space Agency",description:"Built AI system for tracking and predicting orbital debris trajectories",impact:"3x improvement in collision prediction accuracy"}];return a.jsxs("div",{className:"min-h-screen bg-white",children:[a.jsx(Ee,{}),a.jsx("section",{className:"pt-24 pb-16 bg-gradient-to-b from-blue-50 to-white",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center",children:[a.jsx("div",{className:"flex justify-center mb-6",children:a.jsx(Pc,{className:"w-16 h-16 text-blue-600"})}),a.jsx("h1",{className:"text-5xl font-bold text-black mb-6",children:"Aerospace Industry Solutions"}),a.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto mb-8",children:"Advancing aerospace innovation with frontier AI technology for safer, more efficient, and autonomous flight operations from Earth to orbit and beyond"}),a.jsxs("div",{className:"flex justify-center gap-4",children:[a.jsx(J,{size:"lg",className:"bg-black text-white hover:bg-gray-800",children:"Schedule Consultation"}),a.jsx(J,{size:"lg",className:"bg-black text-white hover:bg-gray-800",children:"Download Industry Brief"})]})]})})}),a.jsx("section",{className:"py-20",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-center mb-16",children:[a.jsx("h2",{className:"text-4xl font-bold text-black mb-4",children:"AI Solutions for Aerospace"}),a.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"From autonomous satellites to intelligent flight systems, our AI solutions are designed for the unique challenges of aerospace operations"})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((n,r)=>{const i=n.icon;return a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:r*.1},className:"bg-white p-8 rounded-lg border border-gray-200 hover:shadow-lg transition-shadow",children:[a.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mb-6",children:a.jsx(i,{className:"w-6 h-6 text-blue-600"})}),a.jsx("h3",{className:"text-xl font-semibold text-black mb-3",children:n.title}),a.jsx("p",{className:"text-gray-600 mb-4",children:n.description}),a.jsx("ul",{className:"space-y-2",children:n.features.map(s=>a.jsxs("li",{className:"flex items-center text-sm text-gray-700",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-blue-600 rounded-full mr-2"}),s]},s))})]},n.title)})})]})}),a.jsx("section",{className:"py-20 bg-gray-50",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-center mb-16",children:[a.jsx("h2",{className:"text-4xl font-bold text-black mb-4",children:"Success Stories"}),a.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Real-world impact of our AI solutions in aerospace operations"})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:t.map((n,r)=>a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:r*.1},className:"bg-white p-8 rounded-lg shadow-sm",children:[a.jsx("h3",{className:"text-xl font-semibold text-black mb-2",children:n.title}),a.jsx("p",{className:"text-sm text-gray-600 mb-4",children:n.client}),a.jsx("p",{className:"text-gray-700 mb-4",children:n.description}),a.jsx("div",{className:"bg-blue-50 px-4 py-2 rounded-md inline-block",children:a.jsx("span",{className:"text-sm font-semibold text-blue-700",children:n.impact})})]},n.title))})]})}),a.jsx("section",{className:"py-20",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsx("div",{className:"bg-black text-white rounded-2xl p-12",children:a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"max-w-4xl mx-auto",children:[a.jsx("h2",{className:"text-3xl font-bold mb-6 text-center",children:"Why Choose Hanzo for Aerospace AI?"}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-8",children:[a.jsx("div",{children:a.jsxs("div",{className:"flex items-start space-x-4",children:[a.jsx("div",{className:"flex-shrink-0",children:a.jsx("div",{className:"w-12 h-12 bg-white/20 rounded-lg flex items-center justify-center",children:a.jsx(_c,{className:"w-6 h-6 text-white"})})}),a.jsxs("div",{className:"text-left",children:[a.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Edge-First Architecture"}),a.jsx("p",{className:"text-gray-300",children:"Our AI models are optimized for deployment in space and aviation environments with limited connectivity and computing resources"})]})]})}),a.jsx("div",{children:a.jsxs("div",{className:"flex items-start space-x-4",children:[a.jsx("div",{className:"flex-shrink-0",children:a.jsx("div",{className:"w-12 h-12 bg-white/20 rounded-lg flex items-center justify-center",children:a.jsx(NE,{className:"w-6 h-6 text-white"})})}),a.jsxs("div",{className:"text-left",children:[a.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Safety & Reliability"}),a.jsx("p",{className:"text-gray-300",children:"Built with aerospace-grade reliability standards and extensive safety validation for mission-critical operations"})]})]})}),a.jsx("div",{children:a.jsxs("div",{className:"flex items-start space-x-4",children:[a.jsx("div",{className:"flex-shrink-0",children:a.jsx("div",{className:"w-12 h-12 bg-white/20 rounded-lg flex items-center justify-center",children:a.jsx($1,{className:"w-6 h-6 text-white"})})}),a.jsxs("div",{className:"text-left",children:[a.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Regulatory Compliance"}),a.jsx("p",{className:"text-gray-300",children:"Deep understanding of FAA, EASA, and space agency requirements with AI solutions designed for certification"})]})]})}),a.jsx("div",{children:a.jsxs("div",{className:"flex items-start space-x-4",children:[a.jsx("div",{className:"flex-shrink-0",children:a.jsx("div",{className:"w-12 h-12 bg-white/20 rounded-lg flex items-center justify-center",children:a.jsx(z1,{className:"w-6 h-6 text-white"})})}),a.jsxs("div",{className:"text-left",children:[a.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Proven Track Record"}),a.jsx("p",{className:"text-gray-300",children:"Successfully deployed AI systems in commercial aviation, defense aerospace, and space exploration missions"})]})]})})]}),a.jsx("div",{className:"text-center",children:a.jsx(J,{size:"lg",className:"bg-white text-black hover:bg-gray-200",children:"Partner with Hanzo"})})]})})})}),a.jsx(Te,{})]})},EL=()=>{const e=[{icon:Gr,title:"AI-Powered Intelligence Analysis",description:"Advanced AI for processing multi-source intelligence and generating actionable insights",features:["Pattern recognition","Threat assessment","Predictive analytics","Data fusion"]},{icon:B1,title:"Autonomous Defense Systems",description:"AI-driven autonomous systems for defensive operations with human oversight",features:["Target identification","Decision support","Rules of engagement","Ethical constraints"]},{icon:Fp,title:"Surveillance & Reconnaissance AI",description:"Computer vision and sensor fusion for enhanced situational awareness",features:["Object detection","Activity recognition","Change detection","Multi-spectral analysis"]},{icon:Pn,title:"Cyber Defense AI",description:"AI-powered cybersecurity for protecting critical defense infrastructure",features:["Zero-day detection","Network defense","Threat hunting","Automated response"]},{icon:Yr,title:"Electronic Warfare AI",description:"Cognitive electronic warfare systems for spectrum dominance",features:["Signal classification","Adaptive jamming","Spectrum management","Countermeasures"]},{icon:De,title:"Force Protection AI",description:"AI systems for base defense, perimeter security, and personnel protection",features:["Intrusion detection","Behavioral analysis","Risk assessment","Alert prioritization"]}],t=[{title:"Aligned AI Development",description:"All our defense AI systems are built with strict ethical guidelines and human oversight requirements"},{title:"Secure by Design",description:"End-to-end encryption, air-gapped deployment options, and quantum-resistant security"},{title:"Edge Deployment Ready",description:"Optimized for disconnected operations in austere environments with minimal infrastructure"},{title:"Explainable AI",description:"Transparent decision-making processes for accountability and trust in critical operations"}];return a.jsxs("div",{className:"min-h-screen bg-white",children:[a.jsx(Ee,{}),a.jsx("section",{className:"pt-24 pb-16 bg-gradient-to-b from-gray-50 to-white",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center",children:[a.jsx("div",{className:"flex justify-center mb-6",children:a.jsx(De,{className:"w-16 h-16 text-gray-800"})}),a.jsx("h1",{className:"text-5xl font-bold text-black mb-6",children:"Defense Industry Solutions"}),a.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto mb-8",children:"Mission-critical AI systems designed for modern defense challenges, built with safety, security, and ethical alignment at the core"}),a.jsxs("div",{className:"flex justify-center gap-4",children:[a.jsx(J,{size:"lg",className:"bg-black text-white hover:bg-gray-800",children:"Request Security Briefing"}),a.jsx(J,{size:"lg",variant:"outline",className:"border-black text-black hover:bg-gray-50",children:"View Capabilities Guide"})]})]})})}),a.jsx("section",{className:"py-20",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-center mb-16",children:[a.jsx("h2",{className:"text-4xl font-bold text-black mb-4",children:"AI Solutions for Defense Operations"}),a.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Advanced AI capabilities designed to enhance decision-making, operational efficiency, and mission success while maintaining ethical standards"})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((n,r)=>{const i=n.icon;return a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:r*.1},className:"bg-white p-8 rounded-lg border border-gray-200 hover:shadow-lg transition-shadow",children:[a.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded-lg flex items-center justify-center mb-6",children:a.jsx(i,{className:"w-6 h-6 text-gray-800"})}),a.jsx("h3",{className:"text-xl font-semibold text-black mb-3",children:n.title}),a.jsx("p",{className:"text-gray-600 mb-4",children:n.description}),a.jsx("ul",{className:"space-y-2",children:n.features.map(s=>a.jsxs("li",{className:"flex items-center text-sm text-gray-700",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-gray-800 rounded-full mr-2"}),s]},s))})]},n.title)})})]})}),a.jsx("section",{className:"py-20 bg-gray-50",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-center mb-16",children:[a.jsx("h2",{className:"text-4xl font-bold text-black mb-4",children:"Our Defense AI Principles"}),a.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Every defense AI system we build adheres to strict principles ensuring responsible and effective deployment"})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:t.map((n,r)=>a.jsxs(P.div,{initial:{opacity:0,x:r%2===0?-20:20},whileInView:{opacity:1,x:0},transition:{duration:.5,delay:r*.1},className:"bg-white p-8 rounded-lg shadow-sm",children:[a.jsx("h3",{className:"text-2xl font-semibold text-black mb-4",children:n.title}),a.jsx("p",{className:"text-gray-600",children:n.description})]},n.title))})]})}),a.jsx("section",{className:"py-20",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsx(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"bg-black text-white rounded-2xl p-12",children:a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 items-center",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Trusted by Defense Organizations"}),a.jsx("p",{className:"text-gray-300 mb-6",children:"Our AI solutions are designed to meet the stringent requirements of modern defense operations, with a focus on security, reliability, and ethical deployment."}),a.jsxs("ul",{className:"space-y-4",children:[a.jsxs("li",{className:"flex items-start",children:[a.jsx("svg",{className:"w-6 h-6 mr-3 text-green-400 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),a.jsx("span",{className:"text-gray-300",children:"NIST AI Risk Management Framework compliant"})]}),a.jsxs("li",{className:"flex items-start",children:[a.jsx("svg",{className:"w-6 h-6 mr-3 text-green-400 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),a.jsx("span",{className:"text-gray-300",children:"DoD Ethical AI Principles aligned"})]}),a.jsxs("li",{className:"flex items-start",children:[a.jsx("svg",{className:"w-6 h-6 mr-3 text-green-400 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),a.jsx("span",{className:"text-gray-300",children:"Security clearance ready team"})]}),a.jsxs("li",{className:"flex items-start",children:[a.jsx("svg",{className:"w-6 h-6 mr-3 text-green-400 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),a.jsx("span",{className:"text-gray-300",children:"Air-gapped deployment options"})]})]})]}),a.jsx("div",{className:"text-center",children:a.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-lg p-8",children:[a.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Ready to Enhance Your Defense Capabilities?"}),a.jsx("p",{className:"text-gray-300 mb-6",children:"Contact our defense solutions team for a classified discussion on how our AI can support your mission"}),a.jsx(J,{size:"lg",className:"bg-white text-black hover:bg-gray-200",children:"Schedule SCIF Meeting"})]})})]})})})}),a.jsx(Te,{})]})};function Eo(){const e=Zs();return a.jsxs("div",{className:"min-h-screen bg-black text-white",children:[a.jsx(Ee,{}),a.jsx("main",{className:"pt-32 pb-16 px-4 sm:px-6 lg:px-8",children:a.jsx("div",{className:"max-w-4xl mx-auto text-center",children:a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[a.jsx("h1",{className:"text-6xl sm:text-7xl lg:text-8xl font-bold mb-8",children:"Coming Soon"}),a.jsx("p",{className:"text-xl sm:text-2xl text-gray-400 mb-12",children:"We're working on something amazing. This page will be available shortly."}),a.jsxs("div",{className:"space-x-4",children:[a.jsx(J,{size:"lg",className:"bg-white text-black hover:bg-gray-200",onClick:()=>e("/"),children:"Back to Home"}),a.jsx(J,{size:"lg",variant:"outline",className:"border-white text-white hover:bg-white hover:text-black",onClick:()=>e("/contact"),children:"Contact Us"})]})]})})}),a.jsx(Te,{})]})}function TL(){const e=[{name:"ZEN",link:"/products/zen"},{name:"KOAN",link:"/products/koan"},{name:"HANZO AI",link:"/products/hanzo-ai"},{name:"HANZO DX",link:"/products/hanzo-dx"},{name:"HANZO ML",link:"/products/hanzo-ml"},{name:"HANZO DEV",link:"/products/hanzo-dev"},{name:"HANZO TEAM",link:"/products/hanzo-team"}];return a.jsxs("div",{className:"min-h-screen bg-black text-white",children:[a.jsx(Ee,{}),a.jsx("main",{className:"pt-32 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:"mb-20",children:[a.jsx(P.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.5},className:"flex items-center justify-center mb-12",children:a.jsx("div",{className:"text-9xl font-bold text-white",children:"H"})}),a.jsx(P.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},className:"text-5xl sm:text-6xl font-bold mb-8",children:"Who are we?"}),a.jsx(P.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},className:"text-xl sm:text-2xl text-gray-300 max-w-4xl",children:"Hanzo is the Techstars backed, award-winning applied AI Lab behind countless disruptive, high growth startups."})]}),a.jsx(P.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.6,delay:.4},className:"mb-20",children:a.jsx("div",{className:"relative w-full max-w-2xl mx-auto",children:a.jsx("div",{className:"relative",children:e.map((t,n)=>a.jsx(P.div,{initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.5,delay:.5+n*.1},className:"relative",children:t.link?a.jsx("a",{href:t.link,className:"block",children:a.jsx("div",{className:"border border-gray-600 rounded-full py-4 px-8 text-center mb-[-1px] bg-black hover:bg-gray-900 transition-colors cursor-pointer",style:{clipPath:n===0?"none":"polygon(0 30%, 100% 30%, 100% 100%, 0 100%)"},children:a.jsx("span",{className:"text-lg font-medium hover:underline",children:t.name})})}):a.jsx("div",{className:"border border-gray-600 rounded-full py-4 px-8 text-center mb-[-1px] bg-black hover:bg-gray-900 transition-colors cursor-pointer",style:{clipPath:n===0?"none":"polygon(0 30%, 100% 30%, 100% 100%, 0 100%)"},children:a.jsx("span",{className:"text-lg font-medium",children:t.name})})},t.name))})})}),a.jsxs(P.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.6,delay:.8},className:"grid grid-cols-1 md:grid-cols-2 gap-12 items-center",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Recognition & Achievements"}),a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center space-x-4",children:[a.jsx("div",{className:"text-4xl",children:"⭐"}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-semibold",children:"Trustpilot Excellence"}),a.jsx("p",{className:"text-gray-400",children:"Rated 5 stars by our clients"})]})]}),a.jsxs("div",{className:"flex items-center space-x-4",children:[a.jsx("div",{className:"text-4xl",children:"🚀"}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-semibold",children:"Techstars Portfolio"}),a.jsx("p",{className:"text-gray-400",children:"Backed by leading accelerator"})]})]}),a.jsxs("div",{className:"flex items-center space-x-4",children:[a.jsx("div",{className:"text-4xl",children:"🏆"}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-semibold",children:"Award-Winning AI Lab"}),a.jsx("p",{className:"text-gray-400",children:"Industry-recognized innovation"})]})]})]})]}),a.jsxs("div",{className:"bg-gray-900 p-8 rounded-lg",children:[a.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Our Impact"}),a.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[a.jsxs("div",{children:[a.jsx("div",{className:"text-3xl font-bold text-white",children:"100+"}),a.jsx("p",{className:"text-gray-400",children:"Startups Powered"})]}),a.jsxs("div",{children:[a.jsx("div",{className:"text-3xl font-bold text-white",children:"50M+"}),a.jsx("p",{className:"text-gray-400",children:"Users Served"})]}),a.jsxs("div",{children:[a.jsx("div",{className:"text-3xl font-bold text-white",children:"15+"}),a.jsx("p",{className:"text-gray-400",children:"Industries Transformed"})]}),a.jsxs("div",{children:[a.jsx("div",{className:"text-3xl font-bold text-white",children:"7"}),a.jsx("p",{className:"text-gray-400",children:"AI Products"})]})]})]})]}),a.jsxs(P.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.6,delay:1},className:"mt-20 text-center",children:[a.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Our Mission"}),a.jsx("p",{className:"text-xl text-gray-300 max-w-3xl mx-auto",children:"We build frontier AI systems that power the next generation of transformative companies. From ideation to scale, we provide the AI infrastructure, expertise, and innovation that turns ambitious visions into market-leading realities."})]})]})}),a.jsx(Te,{})]})}function PL(){const e=[{icon:Pn,title:"Post-Quantum Cryptography",description:"Future-proof security with quantum-resistant encryption algorithms",features:["Quantum-safe protocols for data protection","Post-quantum key exchange mechanisms","Forward-secure encryption against quantum attacks","Integration with Hanzo Vault for quantum-safe key management"]},{icon:De,title:"Secure Communications Suite",description:"End-to-end encrypted communications for classified operations",features:["Quantum-resistant encryption","Zero-knowledge authentication","Multi-factor authentication with hardware tokens","Comprehensive audit logging and compliance"]},{icon:EE,title:"Cyber Defense Platform",description:"Advanced threat detection and response for critical infrastructure",features:["24/7 AI-powered monitoring and analysis","Automated incident response and mitigation","Advanced threat hunting capabilities","Real-time compliance reporting and auditing"]},{icon:F1,title:"Hanzo Vault",description:"Enterprise-grade secrets management with MPC-based security",features:["Hardware Security Module (HSM) integration","Multi-party computation for key protection","Post-quantum safe key storage","Secure credential management for edge devices"]}],t=[{title:"Federated Learning",description:"Train AI models on distributed data without centralizing sensitive information",icon:$a},{title:"Secure Enclaves",description:"Hardware-based isolation for processing sensitive data with Intel SGX and AWS Nitro",icon:An},{title:"Differential Privacy",description:"Mathematical guarantees that individual data cannot be extracted from AI models",icon:Fp},{title:"Homomorphic Encryption",description:"Perform computations on encrypted data without decrypting it",icon:uE}],n=[{title:"Zero Trust Architecture",description:"Never trust, always verify - comprehensive security for decentralized systems"},{title:"Defense in Depth",description:"Multiple layers of security controls throughout the infrastructure"},{title:"Continuous Monitoring",description:"Real-time threat detection and response across all systems"},{title:"Compliance First",description:"Built-in compliance with NIST, ITAR, and international security standards"}];return a.jsxs("div",{className:"min-h-screen bg-black text-white",children:[a.jsx(Ee,{}),a.jsxs("main",{className:"pt-32 pb-16 px-4 sm:px-6 lg:px-8",children:[a.jsx("div",{className:"max-w-7xl mx-auto mb-20",children:a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center",children:[a.jsx("h1",{className:"text-5xl sm:text-6xl font-bold mb-6",children:"Cybersecurity & Defense Solutions"}),a.jsx("p",{className:"text-xl sm:text-2xl text-gray-300 max-w-3xl mx-auto",children:"Military-grade security infrastructure protecting the world's most sensitive AI systems"})]})}),a.jsxs("div",{className:"max-w-7xl mx-auto mb-20",children:[a.jsx(P.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl font-bold text-center mb-12",children:"Defense-Grade Security Solutions"}),a.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:e.map((r,i)=>{const s=r.icon;return a.jsx(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:i*.1},className:"bg-gray-900 border border-gray-800 rounded-lg p-8 hover:border-gray-700 transition-colors",children:a.jsxs("div",{className:"flex items-start space-x-4",children:[a.jsx("div",{className:"flex-shrink-0",children:a.jsx("div",{className:"w-12 h-12 bg-white rounded-lg flex items-center justify-center",children:a.jsx(s,{className:"w-6 h-6 text-black"})})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("h3",{className:"text-2xl font-semibold mb-3",children:r.title}),a.jsx("p",{className:"text-gray-400 mb-4",children:r.description}),a.jsx("ul",{className:"space-y-2",children:r.features.map((o,l)=>a.jsxs("li",{className:"flex items-start",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-white rounded-full mt-2 mr-3 flex-shrink-0"}),a.jsx("span",{className:"text-gray-300 text-sm",children:o})]},l))})]})]})},r.title)})})]}),a.jsxs("div",{className:"max-w-7xl mx-auto mb-20",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-center mb-12",children:[a.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Privacy-Preserving AI Technologies"}),a.jsx("p",{className:"text-gray-400 max-w-2xl mx-auto",children:"Advanced cryptographic techniques enabling secure AI operations without compromising data privacy"})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:t.map((r,i)=>{const s=r.icon;return a.jsxs(P.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},transition:{duration:.5,delay:i*.1},className:"bg-gray-900 p-6 rounded-lg border border-gray-800 hover:border-gray-700 transition-colors",children:[a.jsx(s,{className:"w-8 h-8 text-white mb-4"}),a.jsx("h3",{className:"text-lg font-semibold mb-2",children:r.title}),a.jsx("p",{className:"text-gray-400 text-sm",children:r.description})]},r.title)})})]}),a.jsxs("div",{className:"max-w-7xl mx-auto mb-20",children:[a.jsx(P.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl font-bold text-center mb-12",children:"Our Security Philosophy"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:n.map((r,i)=>a.jsxs(P.div,{initial:{opacity:0,x:i%2===0?-20:20},whileInView:{opacity:1,x:0},transition:{duration:.5,delay:i*.1},className:"border-l-4 border-white pl-6",children:[a.jsx("h3",{className:"text-xl font-semibold mb-2",children:r.title}),a.jsx("p",{className:"text-gray-400",children:r.description})]},r.title))})]}),a.jsx(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"max-w-7xl mx-auto mb-20",children:a.jsxs("div",{className:"bg-white text-black p-12 rounded-lg",children:[a.jsx("h2",{className:"text-3xl font-bold text-center mb-8",children:"Compliance & Certifications"}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 text-center",children:[a.jsxs("div",{children:[a.jsx("div",{className:"text-4xl font-bold mb-2",children:"NIST"}),a.jsx("p",{className:"text-gray-700",children:"Compliant with NIST Cybersecurity Framework"})]}),a.jsxs("div",{children:[a.jsx("div",{className:"text-4xl font-bold mb-2",children:"ITAR"}),a.jsx("p",{className:"text-gray-700",children:"International Traffic in Arms Regulations compliant"})]}),a.jsxs("div",{children:[a.jsx("div",{className:"text-4xl font-bold mb-2",children:"SOC 2"}),a.jsx("p",{className:"text-gray-700",children:"Type II certified for security and availability"})]})]})]})}),a.jsx(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"max-w-7xl mx-auto mb-20",children:a.jsxs("div",{className:"bg-gradient-to-r from-gray-900 to-black p-12 rounded-lg border border-gray-800",children:[a.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Trustless AI Systems"}),a.jsx("p",{className:"text-gray-300 mb-6 max-w-3xl",children:"We embed robust testing and continual feedback loops throughout our processes, ensuring high safety standards and proactive risk management in all environments. Our trustless architecture means security isn't dependent on any single point of trust but is distributed across the entire system."}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Decentralized Verification"}),a.jsx("p",{className:"text-gray-400 text-sm",children:"Multi-party consensus for critical operations"})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Cryptographic Proofs"}),a.jsx("p",{className:"text-gray-400 text-sm",children:"Mathematical guarantees of system integrity"})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Transparent Auditing"}),a.jsx("p",{className:"text-gray-400 text-sm",children:"Immutable logs and verifiable computation"})]})]})]})}),a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"max-w-4xl mx-auto text-center",children:[a.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Secure Your AI Infrastructure"}),a.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"From quantum-resistant encryption to zero-trust architectures, we provide the security foundation for mission-critical AI deployments"}),a.jsx("a",{href:"#contact",className:"inline-block bg-white text-black px-8 py-4 rounded-lg font-semibold hover:bg-gray-200 transition-colors",children:"Schedule Security Assessment"})]})]}),a.jsx(Te,{})]})}function _L(){const e=[{icon:De,title:"Defense-Grade Infrastructure",description:"Military-spec cloud infrastructure with multi-layer security and compliance",features:["FedRAMP High and DoD IL5 compliant infrastructure","Air-gapped and classified cloud environments","Hardware security module (HSM) integration","Continuous compliance monitoring and reporting"]},{icon:Pn,title:"Zero Trust Architecture",description:"Complete zero-trust implementation for maximum security",features:["Identity-based microsegmentation","Continuous verification and authentication","Encrypted data in transit and at rest","Granular access controls and policies"]},{icon:zr,title:"Resilient Data Management",description:"Distributed, fault-tolerant data storage and processing",features:["Multi-region replication and failover","Immutable audit logs and versioning","Automated backup and disaster recovery","Post-quantum encryption for data protection"]},{icon:Yr,title:"Edge Computing Integration",description:"Seamless hybrid cloud-edge architecture for mission-critical operations",features:["Low-latency edge processing","Offline-first capabilities","Intelligent workload distribution","Real-time synchronization"]}],t=[{title:"Private Cloud",description:"Dedicated infrastructure for maximum control and security",icon:$a,benefits:["Complete data sovereignty","Custom security policies","Dedicated resources","Full compliance control"]},{title:"Hybrid Cloud",description:"Flexible deployment across private and public infrastructure",icon:Ri,benefits:["Workload optimization","Cost efficiency","Scalable resources","Regulatory compliance"]},{title:"Multi-Cloud",description:"Distribute workloads across multiple cloud providers",icon:za,benefits:["Vendor independence","Geographic distribution","Risk mitigation","Best-of-breed services"]},{title:"Edge Cloud",description:"Deploy compute resources at the tactical edge",icon:An,benefits:["Ultra-low latency","Bandwidth optimization","Offline operation","Local data processing"]}],n=[{name:"FedRAMP High",description:"Highest federal security authorization"},{name:"DoD IL5",description:"Department of Defense Impact Level 5"},{name:"ITAR",description:"International Traffic in Arms Regulations"},{name:"NIST 800-171",description:"Protecting Controlled Unclassified Information"},{name:"CMMC",description:"Cybersecurity Maturity Model Certification"},{name:"SOC 2 Type II",description:"Security, Availability, and Confidentiality"}];return a.jsxs("div",{className:"min-h-screen bg-black text-white",children:[a.jsx(Ee,{}),a.jsxs("main",{className:"pt-32 pb-16 px-4 sm:px-6 lg:px-8",children:[a.jsx("div",{className:"max-w-7xl mx-auto mb-20",children:a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center",children:[a.jsx("h1",{className:"text-5xl sm:text-6xl font-bold mb-6",children:"Secure Cloud Infrastructure"}),a.jsx("p",{className:"text-xl sm:text-2xl text-gray-300 max-w-3xl mx-auto",children:"Mission-critical cloud solutions built for defense, intelligence, and high-security operations"})]})}),a.jsxs("div",{className:"max-w-7xl mx-auto mb-20",children:[a.jsx(P.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl font-bold text-center mb-12",children:"Enterprise Security Solutions"}),a.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:e.map((r,i)=>{const s=r.icon;return a.jsx(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:i*.1},className:"bg-gray-900 border border-gray-800 rounded-lg p-8 hover:border-gray-700 transition-colors",children:a.jsxs("div",{className:"flex items-start space-x-4",children:[a.jsx("div",{className:"flex-shrink-0",children:a.jsx("div",{className:"w-12 h-12 bg-white rounded-lg flex items-center justify-center",children:a.jsx(s,{className:"w-6 h-6 text-black"})})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("h3",{className:"text-2xl font-semibold mb-3",children:r.title}),a.jsx("p",{className:"text-gray-400 mb-4",children:r.description}),a.jsx("ul",{className:"space-y-2",children:r.features.map((o,l)=>a.jsxs("li",{className:"flex items-start",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-white rounded-full mt-2 mr-3 flex-shrink-0"}),a.jsx("span",{className:"text-gray-300 text-sm",children:o})]},l))})]})]})},r.title)})})]}),a.jsxs("div",{className:"max-w-7xl mx-auto mb-20",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-center mb-12",children:[a.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Flexible Deployment Models"}),a.jsx("p",{className:"text-gray-400 max-w-2xl mx-auto",children:"Choose the deployment model that best fits your security requirements and operational needs"})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:t.map((r,i)=>{const s=r.icon;return a.jsxs(P.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},transition:{duration:.5,delay:i*.1},className:"bg-gray-900 p-6 rounded-lg border border-gray-800 hover:border-gray-700 transition-colors",children:[a.jsx(s,{className:"w-8 h-8 text-white mb-4"}),a.jsx("h3",{className:"text-lg font-semibold mb-2",children:r.title}),a.jsx("p",{className:"text-gray-400 text-sm mb-4",children:r.description}),a.jsx("ul",{className:"space-y-1",children:r.benefits.map((o,l)=>a.jsxs("li",{className:"text-gray-300 text-xs flex items-start",children:[a.jsx("span",{className:"mr-2",children:"•"}),o]},l))})]},r.title)})})]}),a.jsx(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"max-w-7xl mx-auto mb-20",children:a.jsxs("div",{className:"bg-white text-black p-12 rounded-lg",children:[a.jsx("h2",{className:"text-3xl font-bold text-center mb-8",children:"Compliance & Certifications"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:n.map((r,i)=>a.jsxs(P.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},transition:{duration:.5,delay:i*.1},className:"border-l-4 border-black pl-4",children:[a.jsx("h3",{className:"font-semibold text-lg",children:r.name}),a.jsx("p",{className:"text-gray-700 text-sm",children:r.description})]},r.name))})]})}),a.jsx("div",{className:"max-w-7xl mx-auto mb-20",children:a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"bg-gradient-to-r from-gray-900 to-black p-12 rounded-lg border border-gray-800",children:[a.jsx("h2",{className:"text-3xl font-bold mb-6 text-center",children:"Global Infrastructure"}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 text-center",children:[a.jsxs("div",{children:[a.jsx("div",{className:"text-4xl font-bold text-white mb-2",children:"25+"}),a.jsx("p",{className:"text-gray-400",children:"Global Data Centers"})]}),a.jsxs("div",{children:[a.jsx("div",{className:"text-4xl font-bold text-white mb-2",children:"99.99%"}),a.jsx("p",{className:"text-gray-400",children:"Uptime SLA"})]}),a.jsxs("div",{children:[a.jsx("div",{className:"text-4xl font-bold text-white mb-2",children:"<10ms"}),a.jsx("p",{className:"text-gray-400",children:"Average Latency"})]})]})]})}),a.jsxs("div",{className:"max-w-7xl mx-auto mb-20",children:[a.jsx(P.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl font-bold text-center mb-12",children:"Advanced Security Features"}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-center",children:[a.jsx("div",{className:"w-16 h-16 bg-white rounded-full flex items-center justify-center mx-auto mb-4",children:a.jsx(De,{className:"w-8 h-8 text-black"})}),a.jsx("h3",{className:"text-xl font-semibold mb-2",children:"DDoS Protection"}),a.jsx("p",{className:"text-gray-400 text-sm",children:"Advanced threat mitigation with automatic scaling"})]}),a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:"text-center",children:[a.jsx("div",{className:"w-16 h-16 bg-white rounded-full flex items-center justify-center mx-auto mb-4",children:a.jsx(Pn,{className:"w-8 h-8 text-black"})}),a.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Key Management"}),a.jsx("p",{className:"text-gray-400 text-sm",children:"FIPS 140-2 Level 3 validated HSMs"})]}),a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.2},className:"text-center",children:[a.jsx("div",{className:"w-16 h-16 bg-white rounded-full flex items-center justify-center mx-auto mb-4",children:a.jsx(zr,{className:"w-8 h-8 text-black"})}),a.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Data Residency"}),a.jsx("p",{className:"text-gray-400 text-sm",children:"Complete control over data location and sovereignty"})]})]})]}),a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"max-w-4xl mx-auto text-center",children:[a.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Ready for Mission-Critical Cloud?"}),a.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"Deploy secure, compliant, and resilient cloud infrastructure that meets the highest standards of defense and intelligence operations"}),a.jsx("a",{href:"#contact",className:"inline-block bg-white text-black px-8 py-4 rounded-lg font-semibold hover:bg-gray-200 transition-colors",children:"Contact Us"})]})]}),a.jsx(Te,{})]})}const AL=({name:e,role:t,description:n,icon:r,gradient:i})=>{const s=e.toLowerCase();return a.jsxs(P.div,{whileHover:{y:-5},className:"relative group rounded-2xl border border-gray-800 bg-black/50 p-8 backdrop-blur-sm overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity duration-500 ease-in-out -z-10"}),a.jsxs("div",{className:"block mb-4 relative z-10",children:[a.jsx("div",{className:`inline-flex p-3 rounded-xl bg-gradient-to-br ${i} mb-4`,children:a.jsx(r,{className:"h-6 w-6 text-white"})}),a.jsx("h3",{className:"text-xl font-semibold mb-2 hover:text-purple-400 transition-colors",children:e}),a.jsx("p",{className:"text-purple-400 font-medium mb-3",children:t}),a.jsx("p",{className:"text-gray-400 mb-4",children:n})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-3 relative z-10",children:[a.jsx("a",{href:`https://hanzo.ai/bot/${s}`,target:"_blank",rel:"noopener noreferrer",className:"w-full",children:a.jsxs(J,{variant:"outline",size:"sm",className:"w-full",children:["Deploy",a.jsx(pa,{className:"ml-2 h-4 w-4"})]})}),a.jsx("a",{href:"https://github.com/hanzoai/bot",target:"_blank",rel:"noopener noreferrer",className:"w-full",children:a.jsxs(J,{variant:"outline",size:"sm",className:"w-full",children:["Fork",a.jsx(Xh,{className:"ml-2 h-4 w-4"})]})})]})]})},RL=({name:e,role:t,description:n,icon:r,gradient:i})=>a.jsxs("div",{className:"relative group rounded-2xl border border-gray-800 bg-black/50 p-8 backdrop-blur-sm overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity duration-500 ease-in-out"}),a.jsx("div",{className:`inline-flex p-3 rounded-xl bg-gradient-to-br ${i} mb-4`,children:a.jsx(r,{className:"h-6 w-6 text-white"})}),a.jsx("h3",{className:"text-xl font-semibold mb-2",children:e}),a.jsx("p",{className:"text-purple-400 font-medium mb-3",children:t}),a.jsx("p",{className:"text-gray-400",children:n})]}),IL=()=>a.jsxs("div",{className:"mt-16 text-center",children:[a.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Ready to Get Started?"}),a.jsx("p",{className:"text-gray-400 mb-8 max-w-2xl mx-auto",children:"Join our community of innovators and start building with your AI team today."}),a.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[a.jsxs(J,{size:"lg",className:"bg-purple-600 hover:bg-purple-700",onClick:()=>window.open("https://hanzo.chat","_blank"),children:["Try Hanzo Chat",a.jsx(pa,{className:"ml-2 h-4 w-4"})]}),a.jsxs(J,{size:"lg",className:"bg-blue-600 hover:bg-blue-700",onClick:()=>window.open("https://hanzo.bot","_blank"),children:["Try Hanzo Bot",a.jsx(pa,{className:"ml-2 h-4 w-4"})]})]})]});function ML(){const e=[{name:"Zach Kelling",role:"Founder and CTO",description:"Leading technical vision and innovation at Hanzo Industries.",icon:ma,gradient:"from-blue-500 to-cyan-500"},{name:"Antje Worring",role:"Chief Operating Officer",description:"Driving operational excellence and strategic execution.",icon:kE,gradient:"from-purple-500 to-pink-500"},{name:"Michael Kelling",role:"President",description:"Guiding company strategy and vision for the future.",icon:Jh,gradient:"from-yellow-500 to-orange-500"},{name:"Vincent Butta",role:"Executive VP",description:"Leading key initiatives and business operations.",icon:gy,gradient:"from-green-500 to-emerald-500"},{name:"Leigh Ferreria",role:"Chief Revenue Officer",description:"Driving revenue growth and market expansion.",icon:Qh,gradient:"from-orange-500 to-red-500"},{name:"Danielle Savage",role:"Chief Brand Officer",description:"Building and elevating the Hanzo brand globally.",icon:wE,gradient:"from-rose-500 to-pink-500"},{name:"Ashley Kathleen Christie",role:"Chief of Staff",description:"Ensuring organizational effectiveness and leadership alignment.",icon:sE,gradient:"from-amber-500 to-orange-500"},{name:"Anastasia Zacharaoff",role:"VP Engineering",description:"Leading engineering teams and technical development.",icon:ma,gradient:"from-violet-500 to-purple-500"},{name:"Rob Ruiz",role:"VP Strategy",description:"Developing strategic initiatives and business intelligence.",icon:nE,gradient:"from-teal-500 to-green-500"},{name:"Marcus White",role:"VP Research",description:"Leading research and development initiatives.",icon:Jh,gradient:"from-indigo-500 to-purple-500"}],t=[{name:"Hanzo Chat",role:"Team Communication Platform",description:"Our Slack-like chat platform where all AI team members collaborate seamlessly. Features channels, direct messaging, and integrated AI workflows.",icon:gy,gradient:"from-teal-500 to-blue-500"},{name:"Hanzo Bot",role:"AI Framework",description:"Our advanced Agentic Framework that powers your AI team. Perfect for enterprises looking to augment their workforce with AI clones.",icon:Ec,gradient:"from-pink-500 to-rose-500"}];return a.jsxs("div",{className:"min-h-screen bg-black text-white",children:[a.jsx(Ee,{}),a.jsxs("main",{className:"pt-32 pb-16 px-4 sm:px-6 lg:px-8",children:[a.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[a.jsx("h1",{className:"text-4xl sm:text-5xl font-bold mb-6",children:"Meet Your AI Team"}),a.jsx("p",{className:"text-gray-400 text-lg",children:"Powered by Hanzo Bot, your AI team members work seamlessly with you on Hanzo App and through Hanzo Chat to bring your ideas to life."})]}),a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 mb-16",children:e.map(n=>a.jsx(AL,{...n},n.name))}),a.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-12",children:[a.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Our Platform"}),a.jsx("p",{className:"text-gray-400 mb-8",children:"Hanzo Works enables enterprises to create AI-powered clones of their workforce, enhancing productivity and innovation through our powerful platform."})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-4xl mx-auto",children:t.map(n=>a.jsx(RL,{...n},n.name))}),a.jsx(IL,{})]})]}),a.jsx(Te,{})]})}function OL(){const e=[{icon:Gr,title:"Frontier AI Models",description:"State-of-the-art language and multimodal models with built-in safety mechanisms",link:"https://docs.google.com/document/d/19rZTIUZShaITzwp35XK1893OE83HA1bIIhmQNzFvKrg/edit?usp=sharing",features:["Advanced language understanding","Multimodal processing","Constitutional AI integration","Safety-first architecture"]},{icon:De,title:"AI Safety & Alignment",description:"Research and tools for building safe, aligned, and beneficial AI systems",link:"https://hanzo.ai/ai",features:["Mechanistic interpretability","Value alignment research","Robustness testing","Safety monitoring"]},{icon:aE,title:"Edge AI & Local Deployment",description:"Private, on-device AI inference for maximum security and performance",link:"https://docs.google.com/document/d/1Dga5hEIxTopxwYzmLh7L-NgZlJR8XB5V7du-UdY2Nk8/edit?usp=sharing",features:["On-device processing","Offline capabilities","Privacy preservation","Low latency inference"]},{icon:za,title:"Decentralized AI Infrastructure",description:"Resilient, distributed AI computing for mission-critical applications",link:"/capabilities/decentralized-ai",features:["Distributed computing","Fault tolerance","Geographic distribution","Decentralized governance"]},{icon:Yr,title:"Defense & Security AI",description:"Mission-critical AI solutions for defense and intelligence operations",link:"https://docs.google.com/document/d/19rZTIUZShaITzwp35XK1893OE83HA1bIIhmQNzFvKrg/edit?usp=drive_link",features:["Classified deployments","Air-gapped systems","Real-time analysis","Threat detection"]},{icon:Ei,title:"Open Source Ecosystem",description:"Community-driven development and collaborative AI innovation",link:"https://docs.google.com/document/d/1mWC6mo9Wd4s3KaWPTF_4QhLqh5lRmzED12wRnLq71Sk/edit?usp=sharing",features:["Open development","Community contributions","Transparent research","Collaborative tools"]},{icon:Pn,title:"Cybersecurity Solutions",description:"Defense-grade security infrastructure and post-quantum cryptography",link:"/cybersecurity",features:["Post-quantum encryption","Zero-trust architecture","Threat monitoring","Compliance automation"]},{icon:zr,title:"Secure Cloud Infrastructure",description:"Mission-critical cloud solutions for sensitive workloads",link:"/cloud",features:["FedRAMP compliance","Multi-region deployment","Data sovereignty","99.99% uptime SLA"]},{icon:An,title:"AI Hardware Acceleration",description:"Optimized hardware solutions for AI training and inference",link:"#",features:["GPU optimization","TPU integration","Custom silicon","Edge accelerators"]},{icon:Ri,title:"Global AI Deployment",description:"Worldwide infrastructure for AI deployment and scaling",link:"#",features:["Multi-region presence","Local compliance","Global CDN","Edge locations"]}];return a.jsxs("div",{className:"min-h-screen bg-black text-white",children:[a.jsx(Ee,{}),a.jsx("main",{className:"pt-32 pb-16 px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center mb-16",children:[a.jsx("h1",{className:"text-5xl sm:text-6xl font-bold mb-6",children:"Our Capabilities"}),a.jsx("p",{className:"text-xl sm:text-2xl text-gray-300 max-w-3xl mx-auto",children:"Comprehensive AI solutions from frontier research to production deployment"})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((t,n)=>{const r=t.icon,i=t.link.startsWith("http");return a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:n*.1},className:"bg-gray-900 border border-gray-800 rounded-lg p-8 hover:border-gray-700 transition-all hover:shadow-lg",children:[a.jsxs("div",{className:"flex items-start space-x-4 mb-4",children:[a.jsx("div",{className:"flex-shrink-0",children:a.jsx("div",{className:"w-12 h-12 bg-white rounded-lg flex items-center justify-center",children:a.jsx(r,{className:"w-6 h-6 text-black"})})}),a.jsx("div",{className:"flex-1",children:a.jsx("h3",{className:"text-xl font-semibold",children:t.title})})]}),a.jsx("p",{className:"text-gray-400 mb-4",children:t.description}),a.jsx("ul",{className:"space-y-2 mb-6",children:t.features.map((s,o)=>a.jsxs("li",{className:"flex items-start",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-white rounded-full mt-2 mr-3 flex-shrink-0"}),a.jsx("span",{className:"text-gray-300 text-sm",children:s})]},o))}),t.link!=="#"&&a.jsxs("a",{href:t.link,target:i?"_blank":void 0,rel:i?"noopener noreferrer":void 0,className:"inline-flex items-center text-white hover:text-gray-300 text-sm font-medium transition-colors",children:["Learn more",a.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]},t.title)})}),a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"mt-20 text-center",children:[a.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Ready to Transform Your AI Infrastructure?"}),a.jsx("p",{className:"text-xl text-gray-300 mb-8 max-w-2xl mx-auto",children:"Let's discuss how our capabilities can accelerate your mission"}),a.jsx("a",{href:"/#contact",className:"inline-block bg-white text-black px-8 py-4 rounded-lg font-semibold hover:bg-gray-200 transition-colors",children:"Contact Us"})]})]})}),a.jsx(Te,{})]})}function DL(){const e=[{icon:Ri,title:"Global Distribution",description:"Deploy AI across multiple geographic regions for maximum resilience and compliance",details:["Multi-region deployment capabilities","Data sovereignty compliance","Local inference for reduced latency","Geographic load balancing"]},{icon:$a,title:"Distributed Computing",description:"Harness the power of distributed systems for scalable AI operations",details:["Horizontal scaling architecture","Resource pooling and sharing","Dynamic workload distribution","Fault-tolerant design"]},{icon:De,title:"Byzantine Fault Tolerance",description:"Maintain system integrity even with node failures or malicious actors",details:["Consensus mechanisms","Redundant validation","Self-healing networks","Attack resistance"]},{icon:An,title:"Edge Computing Integration",description:"Seamlessly integrate edge devices into your decentralized AI network",details:["Edge-cloud hybrid architecture","Local processing capabilities","Intelligent data routing","Bandwidth optimization"]}],t=[{title:"Defense Operations",description:"Resilient AI for mission-critical defense applications",icon:De},{title:"Financial Services",description:"Distributed AI for fraud detection and risk analysis",icon:zr},{title:"Healthcare Networks",description:"Privacy-preserving AI across medical institutions",icon:ps},{title:"Smart Cities",description:"Decentralized intelligence for urban infrastructure",icon:Yr}],n=[{metric:"99.999%",label:"Uptime with no single point of failure"},{metric:"10x",label:"Improved resilience over centralized systems"},{metric:"<5ms",label:"Local inference latency"},{metric:"100%",label:"Data sovereignty compliance"}];return a.jsxs("div",{className:"min-h-screen bg-black text-white",children:[a.jsx(Ee,{}),a.jsx("main",{className:"pt-32 pb-16 px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center mb-16",children:[a.jsx("h1",{className:"text-5xl sm:text-6xl font-bold mb-6",children:"Decentralized AI Infrastructure"}),a.jsx("p",{className:"text-xl sm:text-2xl text-gray-300 max-w-3xl mx-auto",children:"Build resilient, distributed AI systems that operate without central points of failure"})]}),a.jsx(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"grid grid-cols-2 md:grid-cols-4 gap-6 mb-20",children:n.map((r,i)=>a.jsxs("div",{className:"bg-gray-900 p-6 rounded-lg text-center border border-gray-800",children:[a.jsx("div",{className:"text-3xl font-bold text-white mb-2",children:r.metric}),a.jsx("div",{className:"text-sm text-gray-400",children:r.label})]},i))}),a.jsxs("div",{className:"mb-20",children:[a.jsx(P.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl font-bold text-center mb-12",children:"Core Capabilities"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:e.map((r,i)=>{const s=r.icon;return a.jsx(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:i*.1},className:"bg-gray-900 border border-gray-800 rounded-lg p-8",children:a.jsxs("div",{className:"flex items-start space-x-4",children:[a.jsx("div",{className:"flex-shrink-0",children:a.jsx("div",{className:"w-12 h-12 bg-white rounded-lg flex items-center justify-center",children:a.jsx(s,{className:"w-6 h-6 text-black"})})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("h3",{className:"text-xl font-semibold mb-3",children:r.title}),a.jsx("p",{className:"text-gray-400 mb-4",children:r.description}),a.jsx("ul",{className:"space-y-2",children:r.details.map((o,l)=>a.jsxs("li",{className:"flex items-start",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-white rounded-full mt-2 mr-3 flex-shrink-0"}),a.jsx("span",{className:"text-gray-300 text-sm",children:o})]},l))})]})]})},r.title)})})]}),a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"mb-20 bg-gray-900 border border-gray-800 rounded-lg p-12 text-center",children:[a.jsx(ps,{className:"w-24 h-24 text-gray-600 mx-auto mb-4"}),a.jsx("h3",{className:"text-2xl font-semibold mb-4",children:"Decentralized Architecture"}),a.jsx("p",{className:"text-gray-400 max-w-2xl mx-auto",children:"Our decentralized AI infrastructure eliminates single points of failure through distributed consensus, redundant nodes, and intelligent failover mechanisms."})]}),a.jsxs("div",{className:"mb-20",children:[a.jsx(P.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl font-bold text-center mb-12",children:"Industry Applications"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:t.map((r,i)=>{const s=r.icon;return a.jsxs(P.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},transition:{duration:.5,delay:i*.1},className:"bg-gray-900 p-6 rounded-lg border border-gray-800 text-center hover:border-gray-700 transition-colors",children:[a.jsx(s,{className:"w-12 h-12 text-white mx-auto mb-4"}),a.jsx("h3",{className:"text-lg font-semibold mb-2",children:r.title}),a.jsx("p",{className:"text-gray-400 text-sm",children:r.description})]},r.title)})})]}),a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"mb-20 bg-gradient-to-r from-gray-900 to-black p-12 rounded-lg border border-gray-800",children:[a.jsx("h2",{className:"text-3xl font-bold mb-8 text-center",children:"Technical Specifications"}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Consensus Protocol"}),a.jsxs("ul",{className:"space-y-2",children:[a.jsx("li",{className:"text-gray-300",children:"• Byzantine Fault Tolerant (BFT)"}),a.jsx("li",{className:"text-gray-300",children:"• Practical Byzantine Fault Tolerance"}),a.jsx("li",{className:"text-gray-300",children:"• Raft consensus for coordination"}),a.jsx("li",{className:"text-gray-300",children:"• Custom AI workload consensus"})]})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Network Architecture"}),a.jsxs("ul",{className:"space-y-2",children:[a.jsx("li",{className:"text-gray-300",children:"• Peer-to-peer mesh network"}),a.jsx("li",{className:"text-gray-300",children:"• Encrypted communication channels"}),a.jsx("li",{className:"text-gray-300",children:"• Dynamic node discovery"}),a.jsx("li",{className:"text-gray-300",children:"• Load balancing algorithms"})]})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Security Features"}),a.jsxs("ul",{className:"space-y-2",children:[a.jsx("li",{className:"text-gray-300",children:"• End-to-end encryption"}),a.jsx("li",{className:"text-gray-300",children:"• Zero-knowledge proofs"}),a.jsx("li",{className:"text-gray-300",children:"• Secure multi-party computation"}),a.jsx("li",{className:"text-gray-300",children:"• Homomorphic encryption support"})]})]})]})]}),a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-center",children:[a.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Ready to Decentralize Your AI Infrastructure?"}),a.jsx("p",{className:"text-xl text-gray-300 mb-8 max-w-2xl mx-auto",children:"Join the future of resilient, distributed AI systems"}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsx("a",{href:"/#contact",className:"inline-block bg-white text-black px-8 py-4 rounded-lg font-semibold hover:bg-gray-200 transition-colors",children:"Get Started"}),a.jsx("a",{href:"https://docs.google.com/document/d/1mWC6mo9Wd4s3KaWPTF_4QhLqh5lRmzED12wRnLq71Sk/edit?usp=sharing",target:"_blank",rel:"noopener noreferrer",className:"inline-block border border-white text-white px-8 py-4 rounded-lg font-semibold hover:bg-white hover:text-black transition-colors",children:"View Documentation"})]})]})]})}),a.jsx(Te,{})]})}function LL(){const e=[{icon:De,category:"Defense & Security",title:"US Department of Defense: Secure AI Operations",description:"Deployed resilient AI infrastructure for classified intelligence analysis",results:["99.99% uptime in mission-critical operations","10x faster threat detection and analysis","Zero security breaches in 24 months","Reduced operational costs by 40%"],technologies:["Edge AI","Secure Cloud","Post-Quantum Encryption"],impact:"Enhanced national security capabilities while maintaining strict compliance"},{icon:Gr,category:"Research & Development",title:"DARPA: Advanced AI Research Platform",description:"Built scalable infrastructure for frontier AI research and experimentation",results:["50% reduction in model training time","Support for 100+ concurrent experiments","Seamless integration with existing systems","Enhanced collaboration across teams"],technologies:["Frontier AI Models","Distributed Computing","MLOps"],impact:"Accelerated breakthrough research in AI safety and capabilities"},{icon:Ri,category:"Enterprise",title:"Fortune 500 Financial Services",description:"Implemented AI-powered fraud detection and risk management system",results:["95% fraud detection accuracy","$50M+ in prevented losses annually","Real-time transaction analysis","Regulatory compliance maintained"],technologies:["AI & ML","Secure Cloud","Real-time Analytics"],impact:"Transformed security posture while improving customer experience"},{icon:Yr,category:"Critical Infrastructure",title:"National Power Grid Optimization",description:"Deployed AI for predictive maintenance and grid optimization",results:["30% reduction in outages","20% energy efficiency improvement","Predictive maintenance accuracy of 92%","ROI achieved in 18 months"],technologies:["Edge AI","IoT Integration","Predictive Analytics"],impact:"Enhanced grid reliability and sustainability"},{icon:Ei,category:"Healthcare",title:"Multi-Hospital Network AI Deployment",description:"Privacy-preserving AI for medical imaging and diagnostics",results:["40% faster diagnosis times","98% accuracy in early detection","HIPAA compliant implementation","Seamless integration with PACS"],technologies:["Federated Learning","Privacy-Preserving AI","Edge Computing"],impact:"Improved patient outcomes while maintaining data privacy"},{icon:Pn,category:"Cybersecurity",title:"Global Threat Intelligence Network",description:"Built decentralized threat detection and response system",results:["Real-time threat detection across networks","75% reduction in response time","Automated incident response","Zero-day vulnerability detection"],technologies:["Cybersecurity AI","Decentralized Infrastructure","Threat Intelligence"],impact:"Created resilient defense against evolving cyber threats"}];return a.jsxs("div",{className:"min-h-screen bg-black text-white",children:[a.jsx(Ee,{}),a.jsx("main",{className:"pt-32 pb-16 px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center mb-16",children:[a.jsx("h1",{className:"text-5xl sm:text-6xl font-bold mb-6",children:"Case Studies"}),a.jsx("p",{className:"text-xl sm:text-2xl text-gray-300 max-w-3xl mx-auto",children:"Real-world success stories of AI transformation across industries"})]}),a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"grid grid-cols-2 md:grid-cols-4 gap-6 mb-20",children:[a.jsxs("div",{className:"bg-gray-900 p-6 rounded-lg text-center border border-gray-800",children:[a.jsx("div",{className:"text-3xl font-bold text-white mb-2",children:"100+"}),a.jsx("div",{className:"text-sm text-gray-400",children:"Successful Deployments"})]}),a.jsxs("div",{className:"bg-gray-900 p-6 rounded-lg text-center border border-gray-800",children:[a.jsx("div",{className:"text-3xl font-bold text-white mb-2",children:"$500M+"}),a.jsx("div",{className:"text-sm text-gray-400",children:"Value Generated"})]}),a.jsxs("div",{className:"bg-gray-900 p-6 rounded-lg text-center border border-gray-800",children:[a.jsx("div",{className:"text-3xl font-bold text-white mb-2",children:"15+"}),a.jsx("div",{className:"text-sm text-gray-400",children:"Industries Served"})]}),a.jsxs("div",{className:"bg-gray-900 p-6 rounded-lg text-center border border-gray-800",children:[a.jsx("div",{className:"text-3xl font-bold text-white mb-2",children:"99.9%"}),a.jsx("div",{className:"text-sm text-gray-400",children:"Customer Satisfaction"})]})]}),a.jsx("div",{className:"space-y-12",children:e.map((t,n)=>{const r=t.icon;return a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:n*.1},className:"bg-gray-900 border border-gray-800 rounded-lg p-8 hover:border-gray-700 transition-colors",children:[a.jsxs("div",{className:"flex items-start space-x-4 mb-6",children:[a.jsx("div",{className:"flex-shrink-0",children:a.jsx("div",{className:"w-12 h-12 bg-white rounded-lg flex items-center justify-center",children:a.jsx(r,{className:"w-6 h-6 text-black"})})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("div",{className:"text-sm text-gray-400 mb-1",children:t.category}),a.jsx("h3",{className:"text-2xl font-semibold mb-2",children:t.title}),a.jsx("p",{className:"text-gray-300",children:t.description})]})]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-6",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"text-lg font-semibold mb-3",children:"Key Results"}),a.jsx("ul",{className:"space-y-2",children:t.results.map((i,s)=>a.jsxs("li",{className:"flex items-start",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-white rounded-full mt-2 mr-3 flex-shrink-0"}),a.jsx("span",{className:"text-gray-300 text-sm",children:i})]},s))})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"text-lg font-semibold mb-3",children:"Technologies Used"}),a.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:t.technologies.map((i,s)=>a.jsx("span",{className:"px-3 py-1 bg-gray-800 text-gray-300 rounded-full text-sm",children:i},s))}),a.jsxs("div",{className:"text-sm text-gray-400",children:[a.jsx("strong",{children:"Impact:"})," ",t.impact]})]})]})]},t.title)})}),a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"mt-20 text-center",children:[a.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Ready to Write Your Success Story?"}),a.jsx("p",{className:"text-xl text-gray-300 mb-8 max-w-2xl mx-auto",children:"Let's discuss how our AI solutions can transform your operations"}),a.jsx("a",{href:"/#contact",className:"inline-block bg-white text-black px-8 py-4 rounded-lg font-semibold hover:bg-gray-200 transition-colors",children:"Start Your Journey"})]})]})}),a.jsx(Te,{})]})}function zL(){const e=[{title:"Quick Start: Deploy Your First AI Model",icon:_c,language:"bash",code:`# Install Hanzo CLI
curl -fsSL https://hanzo.ai/install.sh | sh
# Initialize a new project
hanzo init my-ai-project
# Deploy a pre-trained model
hanzo deploy --model gpt-4 --region us-west-2
# Test your deployment
hanzo test --endpoint https://api.hanzo.ai/v1/inference`,description:"Get started with Hanzo AI in minutes"},{title:"Python SDK: Text Generation",icon:ma,language:"python",code:`import hanzo
# Initialize the client
client = hanzo.Client(api_key="your-api-key")
# Generate text
response = client.generate(
prompt="Explain quantum computing in simple terms",
model="hanzo-gpt-4",
max_tokens=200,
temperature=0.7
)
print(response.text)`,description:"Generate text using our Python SDK"},{title:"Edge Deployment: Local AI",icon:An,language:"javascript",code:`// Edge AI deployment configuration
const edge = require('@hanzo/edge-ai');
// Initialize edge runtime
const runtime = new edge.Runtime({
model: 'hanzo-edge-v2',
device: 'gpu',
maxMemory: '4GB'
});
// Run inference locally
async function classify(image) {
const result = await runtime.classify(image);
return result.labels;
}`,description:"Deploy AI models at the edge for offline inference"},{title:"Secure Multi-Party Computation",icon:Pn,language:"python",code:`from hanzo.secure import MPCClient
# Initialize secure computation client
mpc = MPCClient(
party_id="hospital_a",
protocol="shamir",
threshold=3
)
# Perform computation on encrypted data
@mpc.secure_function
def analyze_patient_data(encrypted_data):
# Computation happens on encrypted values
risk_score = mpc.compute_risk(encrypted_data)
return risk_score
# Result is only revealed to authorized parties
result = analyze_patient_data(patient_records)`,description:"Compute on sensitive data without exposing it"},{title:"Federated Learning Setup",icon:Ei,language:"python",code:`from hanzo.federated import FederatedServer, FederatedClient
# Server configuration
server = FederatedServer(
model="resnet50",
aggregation="fedavg",
rounds=100
)
# Client setup (runs on edge devices)
client = FederatedClient(
server_url="wss://fed.hanzo.ai",
local_data="/path/to/data"
)
# Train without sharing raw data
client.train_local()
client.send_updates()`,description:"Train models across distributed data sources"},{title:"Real-time Stream Processing",icon:Yr,language:"javascript",code:`const { StreamProcessor } = require('@hanzo/stream');
// Create a real-time AI pipeline
const processor = new StreamProcessor({
model: 'hanzo-stream-v1',
batchSize: 32,
latencyTarget: 50 // ms
});
// Process incoming data stream
processor.on('data', async (batch) => {
const predictions = await processor.predict(batch);
// Real-time response
predictions.forEach(pred => {
if (pred.confidence > 0.95) {
alertSystem.trigger(pred);
}
});
});`,description:"Process streaming data with low-latency AI"}],t=[{name:"REST API",description:"RESTful API for all platforms",icon:Ri,link:"https://docs.hanzo.ai/api"},{name:"Python SDK",description:"Native Python integration",icon:ma,link:"https://github.com/hanzoai/python-sdk"},{name:"JavaScript/TypeScript",description:"Full TypeScript support",icon:lE,link:"https://github.com/hanzoai/js-sdk"},{name:"Go SDK",description:"High-performance Go client",icon:yy,link:"https://github.com/hanzoai/go-sdk"},{name:"Rust SDK",description:"Memory-safe Rust integration",icon:xE,link:"https://github.com/hanzoai/rust-sdk"},{name:"Documentation",description:"Comprehensive guides",icon:qh,link:"https://docs.hanzo.ai"}];return a.jsxs("div",{className:"min-h-screen bg-black text-white",children:[a.jsx(Ee,{}),a.jsx("main",{className:"pt-32 pb-16 px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center mb-16",children:[a.jsx("h1",{className:"text-5xl sm:text-6xl font-bold mb-6",children:"Code Examples"}),a.jsx("p",{className:"text-xl sm:text-2xl text-gray-300 max-w-3xl mx-auto",children:"Ready-to-use code examples to accelerate your AI development"})]}),a.jsx(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4 mb-16",children:t.map((n,r)=>{const i=n.icon;return a.jsxs("a",{href:n.link,target:"_blank",rel:"noopener noreferrer",className:"bg-gray-900 p-4 rounded-lg border border-gray-800 hover:border-gray-700 transition-colors text-center",children:[a.jsx(i,{className:"w-8 h-8 text-white mx-auto mb-2"}),a.jsx("div",{className:"text-sm font-medium",children:n.name})]},n.name)})}),a.jsx("div",{className:"space-y-12",children:e.map((n,r)=>{const i=n.icon;return a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:r*.1},className:"bg-gray-900 border border-gray-800 rounded-lg overflow-hidden",children:[a.jsxs("div",{className:"p-6 border-b border-gray-800",children:[a.jsxs("div",{className:"flex items-center space-x-3",children:[a.jsx(i,{className:"w-6 h-6 text-white"}),a.jsx("h3",{className:"text-xl font-semibold",children:n.title})]}),a.jsx("p",{className:"text-gray-400 mt-2",children:n.description})]}),a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"absolute top-4 right-4",children:a.jsx("span",{className:"text-xs text-gray-500 bg-gray-800 px-2 py-1 rounded",children:n.language})}),a.jsx("pre",{className:"p-6 overflow-x-auto",children:a.jsx("code",{className:"text-sm text-gray-300 whitespace-pre",children:n.code})})]})]},n.title)})}),a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"mt-20 bg-gradient-to-r from-gray-900 to-black p-12 rounded-lg border border-gray-800",children:[a.jsx("h2",{className:"text-3xl font-bold mb-8 text-center",children:"Developer Resources"}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 text-center",children:[a.jsxs("div",{children:[a.jsx(yy,{className:"w-12 h-12 text-white mx-auto mb-4"}),a.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Interactive Playground"}),a.jsx("p",{className:"text-gray-400 mb-4",children:"Test our APIs in your browser"}),a.jsx("a",{href:"https://playground.hanzo.ai",className:"text-white hover:text-gray-300",children:"Try Playground →"})]}),a.jsxs("div",{children:[a.jsx(qh,{className:"w-12 h-12 text-white mx-auto mb-4"}),a.jsx("h3",{className:"text-xl font-semibold mb-2",children:"API Reference"}),a.jsx("p",{className:"text-gray-400 mb-4",children:"Complete API documentation"}),a.jsx("a",{href:"https://docs.hanzo.ai/api",className:"text-white hover:text-gray-300",children:"View Docs →"})]}),a.jsxs("div",{children:[a.jsx(Ei,{className:"w-12 h-12 text-white mx-auto mb-4"}),a.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Community"}),a.jsx("p",{className:"text-gray-400 mb-4",children:"Join our developer community"}),a.jsx("a",{href:"https://community.hanzo.ai",className:"text-white hover:text-gray-300",children:"Join Discord →"})]})]})]}),a.jsxs(P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"mt-20 text-center",children:[a.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Ready to Build?"}),a.jsx("p",{className:"text-xl text-gray-300 mb-8 max-w-2xl mx-auto",children:"Start building with Hanzo AI today"}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsx("a",{href:"https://console.hanzo.ai/signup",className:"inline-block bg-white text-black px-8 py-4 rounded-lg font-semibold hover:bg-gray-200 transition-colors",children:"Get API Key"}),a.jsx("a",{href:"https://github.com/hanzoai",target:"_blank",rel:"noopener noreferrer",className:"inline-block border border-white text-white px-8 py-4 rounded-lg font-semibold hover:bg-white hover:text-black transition-colors",children:"View on GitHub"})]})]})]})}),a.jsx(Te,{})]})}const $L=[{icon:Gr,title:"AI Alignment",description:"Developing techniques to ensure AI systems reliably pursue intended goals and behave safely.",link:"/research/alignment"},{icon:De,title:"AI Safety",description:"Building robust safeguards and interpretability tools for understanding model behavior.",link:"/research/safety"},{icon:ps,title:"Decentralized AI",description:"Distributed inference, federated learning, and privacy-preserving AI infrastructure.",link:"/research/decentralized"},{icon:An,title:"Edge AI",description:"Efficient models and deployment strategies for on-device and edge computing.",link:"/research/edge"}],FL=[{name:"hanzo-mcp",description:"Model Context Protocol - infrastructure for AI context management and tool use",stars:"2.3k",language:"TypeScript",href:"https://github.com/hanzoai/mcp"},{name:"candle",description:"Minimalist ML framework for Rust with GPU acceleration",stars:"1.8k",language:"Rust",href:"https://github.com/hanzoai/candle"},{name:"jin",description:"Unified multimodal AI framework for vision, language, and audio",stars:"1.2k",language:"Python",href:"https://github.com/hanzoai/jin"},{name:"hanzo-ui",description:"React component library for AI-powered applications",stars:"950",language:"TypeScript",href:"https://github.com/hanzoai/ui"},{name:"agents",description:"Multi-agent orchestration framework for complex AI tasks",stars:"820",language:"Python",href:"https://github.com/hanzoai/agents"},{name:"hanzo-dev",description:"AI-powered development environment and CLI tools",stars:"650",language:"TypeScript",href:"https://github.com/hanzoai/dev"}],VL=[{title:"Scalable Alignment via Constitutional AI Methods",authors:"Hanzo Research Team",date:"2024",abstract:"We present a scalable approach to AI alignment using constitutional methods that can be applied across model scales.",link:"https://arxiv.org/abs/example1"},{title:"Decentralized Inference for Privacy-Preserving AI",authors:"Hanzo Research Team",date:"2024",abstract:"A framework for running large language model inference across distributed nodes while maintaining privacy guarantees.",link:"https://arxiv.org/abs/example2"},{title:"Efficient Edge Deployment of Foundation Models",authors:"Hanzo Research Team",date:"2023",abstract:"Techniques for quantization, pruning, and distillation to enable frontier models on edge devices.",link:"https://arxiv.org/abs/example3"},{title:"Interpretability Through Mechanistic Analysis",authors:"Hanzo Research Team",date:"2023",abstract:"Understanding neural network behavior through circuit-level analysis and activation patching.",link:"https://arxiv.org/abs/example4"}],Yd=()=>a.jsxs("div",{className:"min-h-screen bg-white",children:[a.jsx(Ee,{}),a.jsxs("main",{className:"pt-16",children:[a.jsx("section",{className:"py-24 px-4",children:a.jsx("div",{className:"max-w-5xl mx-auto text-center",children:a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[a.jsx("h1",{className:"text-5xl md:text-6xl font-bold text-black tracking-tight mb-6",children:"Research"}),a.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"We conduct fundamental research in AI safety, alignment, and capabilities to build AI systems that are safe, beneficial, and trustworthy."})]})})}),a.jsx("section",{className:"py-16 px-4 bg-gray-50",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsx("h2",{className:"text-3xl font-bold text-black mb-12",children:"Research Areas"}),a.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:$L.map((e,t)=>{const n=e.icon;return a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:t*.1},className:"bg-white p-8 rounded-xl border border-gray-200 hover:border-gray-300 transition-colors group",children:[a.jsx(n,{className:"w-10 h-10 text-gray-700 mb-4"}),a.jsx("h3",{className:"text-xl font-semibold text-black mb-3",children:e.title}),a.jsx("p",{className:"text-gray-600 mb-4",children:e.description}),a.jsxs(Hn,{to:e.link,className:"text-sm font-medium text-black hover:underline inline-flex items-center gap-1",children:["Learn more ",a.jsx(pa,{className:"w-3 h-3"})]})]},e.title)})})]})}),a.jsx("section",{className:"py-24 px-4",id:"open-source",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"flex items-center justify-between mb-12",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-3xl font-bold text-black mb-2",children:"Open Source"}),a.jsx("p",{className:"text-gray-600",children:"We believe in open research and share our tools with the community."})]}),a.jsx("a",{href:"https://github.com/hanzoai",target:"_blank",rel:"noopener noreferrer",children:a.jsxs(J,{variant:"outline",className:"gap-2",children:[a.jsx(Xh,{className:"w-4 h-4"}),"View all on GitHub"]})})]}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:FL.map((e,t)=>a.jsxs(P.a,{href:e.href,target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:t*.05},className:"block p-6 bg-white border border-gray-200 rounded-xl hover:border-gray-300 hover:shadow-sm transition-all group",children:[a.jsxs("div",{className:"flex items-start justify-between mb-3",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Xh,{className:"w-5 h-5 text-gray-700"}),a.jsx("span",{className:"font-semibold text-black group-hover:underline",children:e.name})]}),a.jsx(Tc,{className:"w-4 h-4 text-gray-400 opacity-0 group-hover:opacity-100 transition-opacity"})]}),a.jsx("p",{className:"text-sm text-gray-600 mb-4",children:e.description}),a.jsxs("div",{className:"flex items-center gap-4 text-xs text-gray-500",children:[a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx("span",{className:"w-2 h-2 rounded-full bg-yellow-400"}),e.language]}),a.jsxs("span",{children:["⭐ ",e.stars]})]})]},e.name))})]})}),a.jsx("section",{className:"py-24 px-4 bg-gray-50",id:"papers",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"flex items-center justify-between mb-12",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-3xl font-bold text-black mb-2",children:"Research Papers"}),a.jsx("p",{className:"text-gray-600",children:"Our published work on AI safety, alignment, and capabilities."})]}),a.jsx(Hn,{to:"/research/papers",children:a.jsxs(J,{variant:"outline",className:"gap-2",children:[a.jsx(qh,{className:"w-4 h-4"}),"View all papers"]})})]}),a.jsx("div",{className:"space-y-6",children:VL.map((e,t)=>a.jsx(P.a,{href:e.link,target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:t*.1},className:"block p-6 bg-white border border-gray-200 rounded-xl hover:border-gray-300 hover:shadow-sm transition-all group",children:a.jsxs("div",{className:"flex items-start justify-between",children:[a.jsxs("div",{className:"flex-1",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[a.jsx(cE,{className:"w-5 h-5 text-gray-500"}),a.jsx("span",{className:"text-sm text-gray-500",children:e.date})]}),a.jsx("h3",{className:"text-lg font-semibold text-black mb-2 group-hover:underline",children:e.title}),a.jsx("p",{className:"text-sm text-gray-500 mb-2",children:e.authors}),a.jsx("p",{className:"text-gray-600",children:e.abstract})]}),a.jsx(Tc,{className:"w-4 h-4 text-gray-400 opacity-0 group-hover:opacity-100 transition-opacity ml-4 flex-shrink-0"})]})},e.title))})]})}),a.jsx("section",{className:"py-24 px-4",children:a.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[a.jsx("h2",{className:"text-3xl font-bold text-black mb-4",children:"Join our research efforts"}),a.jsx("p",{className:"text-xl text-gray-600 mb-8",children:"We're looking for talented researchers to help build the future of safe AI."}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsx(Hn,{to:"/careers",children:a.jsx(J,{size:"lg",className:"bg-black text-white hover:bg-gray-800 rounded-full px-8",children:"View Open Positions"})}),a.jsx("a",{href:"mailto:[email protected]",children:a.jsx(J,{size:"lg",variant:"outline",className:"rounded-full px-8",children:"Contact Research Team"})})]})]})})]}),a.jsx(Te,{})]}),BL=({icon:e,title:t,description:n,features:r,documentation:i})=>a.jsxs("div",{className:"min-h-screen bg-black",children:[a.jsx(Ee,{}),a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-32 pb-16",children:[a.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-16",children:[a.jsxs("div",{className:"flex items-center justify-center gap-4 mb-6",children:[a.jsx(e,{className:"h-16 w-16 text-white"}),a.jsx("h1",{className:"text-4xl font-bold text-white",children:t})]}),a.jsx("p",{className:"text-xl text-gray-400 max-w-3xl mx-auto",children:n})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16",children:r.map((s,o)=>a.jsx(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:o*.1},className:"p-6 bg-gray-900/50 rounded-xl",children:a.jsx("p",{className:"text-gray-300",children:s})},o))}),a.jsx(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"text-center",children:a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsx(J,{size:"lg",className:"bg-white text-black hover:bg-gray-100",children:a.jsx("a",{href:"https://console.hanzo.ai",children:"Try in Hanzo Cloud"})}),a.jsx(J,{size:"lg",variant:"outline",className:"border-white text-white hover:bg-white hover:text-black",children:a.jsx("a",{href:i,children:"View Documentation"})})]})})]}),a.jsx(Te,{})]}),UL=new z_,HL=[{path:"zen",icon:Gr,title:"ZEN",description:"Advanced AI orchestration platform for building and deploying intelligent systems at scale.",features:["Multi-model AI orchestration and management","Automated prompt engineering and optimization","Real-time performance monitoring and analytics","Enterprise-grade security and compliance","Seamless integration with existing infrastructure","Cost optimization and resource management"],documentation:"https://docs.google.com/document/d/1CNrg4FwqttLbG4re3PeMg0MD548gUh5xKk-ij-BtJUs/edit?usp=drive_link"},{path:"koan",icon:De,title:"KOAN",description:"Enterprise knowledge management and AI-powered insights platform.",features:["Intelligent document processing and analysis","Knowledge graph construction and visualization","Natural language querying and exploration","Automated insight generation and reporting","Secure data governance and access control","Cross-organizational knowledge sharing"],documentation:"https://docs.google.com/document/d/10M7A9AqsshqhgUYCjkbTSmL25OcCC0cU6qoddmYNbAI/edit?usp=sharing"},{path:"hanzo-ai",icon:Ec,title:"HANZO AI",description:"Comprehensive AI platform powering next-generation intelligent applications.",features:["State-of-the-art language models and APIs","Custom model training and fine-tuning","Multimodal AI capabilities","Edge deployment and optimization","AI safety and alignment tools","Developer-friendly SDKs and integrations"],documentation:"https://hanzo.industries/"},{path:"hanzo-dx",icon:ma,title:"HANZO DX",description:"Developer experience platform for building AI-powered applications.",features:["Comprehensive development toolkit","CI/CD pipeline automation","Code generation and optimization","Testing and quality assurance tools","Performance profiling and debugging","Open source libraries and frameworks"],documentation:"https://github.com/hanzoai"},{path:"hanzo-ml",icon:An,title:"HANZO ML",description:"Machine learning operations platform for enterprise AI deployment.",features:["Model versioning and registry","Automated training pipelines","A/B testing and experimentation","Model monitoring and drift detection","Scalable inference infrastructure","MLOps best practices and governance"],documentation:"https://hanzo.ai/ai"},{path:"hanzo-dev",icon:Yr,title:"HANZO DEV",description:"Accelerated development environment for AI applications.",features:["AI-powered code completion","Intelligent debugging and error detection","Automated documentation generation","Performance optimization suggestions","Collaborative development features","Integrated learning resources"],documentation:"https://hanzo.ai/dev"},{path:"hanzo-team",icon:Ei,title:"HANZO TEAM",description:"Team collaboration and project management platform for AI initiatives.",features:["Project planning and tracking","Resource allocation and management","Real-time collaboration tools","Knowledge sharing and documentation","Performance analytics and reporting","Integration with development workflows"],documentation:"https://hanzo.team/login%3Acomponent%3ALoginApp"}],WL=()=>a.jsx(F_,{client:UL,children:a.jsxs(m_,{children:[a.jsx(dT,{}),a.jsx(FT,{}),a.jsx(OA,{children:a.jsxs(TA,{children:[a.jsx(se,{path:"/",element:a.jsx(gO,{})}),a.jsx(se,{path:"/auth",element:a.jsx(CD,{})}),a.jsx(se,{path:"/about",element:a.jsx(TL,{})}),a.jsx(se,{path:"/team",element:a.jsx(ML,{})}),a.jsx(se,{path:"/pricing",element:a.jsx(ED,{})}),a.jsx(se,{path:"/solutions",element:a.jsx(AD,{})}),a.jsx(se,{path:"/capabilities",element:a.jsx(OL,{})}),a.jsx(se,{path:"/capabilities/decentralized-ai",element:a.jsx(DL,{})}),a.jsx(se,{path:"/case-studies",element:a.jsx(LL,{})}),a.jsx(se,{path:"/examples",element:a.jsx(zL,{})}),a.jsx(se,{path:"/research",element:a.jsx(Yd,{})}),a.jsx(se,{path:"/research/papers",element:a.jsx(Yd,{})}),a.jsx(se,{path:"/research/open-source",element:a.jsx(Yd,{})}),a.jsx(se,{path:"/blog",element:a.jsx(Eo,{})}),a.jsx(se,{path:"/careers",element:a.jsx(Eo,{})}),a.jsx(se,{path:"/news",element:a.jsx(Eo,{})}),a.jsx(se,{path:"/contact",element:a.jsx(Eo,{})}),a.jsx(se,{path:"/defense",element:a.jsx(SL,{})}),a.jsx(se,{path:"/intelligence",element:a.jsx(kL,{})}),a.jsx(se,{path:"/services",element:a.jsx(NL,{})}),a.jsx(se,{path:"/industries/aerospace",element:a.jsx(CL,{})}),a.jsx(se,{path:"/industries/defense",element:a.jsx(EL,{})}),a.jsx(se,{path:"/industries/aerospace-defense",element:a.jsx(Uy,{to:"/industries/defense",replace:!0})}),a.jsx(se,{path:"/install",element:a.jsx(Lv,{})}),a.jsx(se,{path:"/install.sh",element:a.jsx(Lv,{})}),a.jsx(se,{path:"/status",element:a.jsx(xL,{})}),a.jsx(se,{path:"/security",element:a.jsx(wL,{})}),a.jsx(se,{path:"/cybersecurity",element:a.jsx(PL,{})}),a.jsx(se,{path:"/cloud",element:a.jsx(_L,{})}),a.jsx(se,{path:"/terms",element:a.jsx(bL,{})}),a.jsx(se,{path:"/privacy",element:a.jsx(jL,{})}),a.jsx(se,{path:"/coming-soon",element:a.jsx(Eo,{})}),HL.map(e=>a.jsx(se,{path:`/products/${e.path}`,element:a.jsx(BL,{icon:e.icon,title:e.title,description:e.description,features:e.features,documentation:e.documentation})},e.path)),a.jsx(se,{path:"/index.html",element:a.jsx(Uy,{to:"/",replace:!0})}),a.jsx(se,{path:"*",element:a.jsx(vL,{})})]})})]})});a1(document.getElementById("root")).render(a.jsx(WL,{}));export{Kv as g};