ohwow 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +384 -349
- package/dist/migrations/026-trigger-node-positions.sql +2 -0
- package/dist/web/assets/index-CLAt4rAT.css +1 -0
- package/dist/web/assets/index-D2O2_pUv.js +76 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/index-C5TP_l1N.css +0 -1
- package/dist/web/assets/index-Dylm-A3c.js +0 -75
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
var og=Object.defineProperty;var cg=(a,n,s)=>n in a?og(a,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[n]=s;var It=(a,n,s)=>cg(a,typeof n!="symbol"?n+"":n,s);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))o(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function s(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(u){if(u.ep)return;u.ep=!0;const f=s(u);fetch(u.href,f)}})();var _0={exports:{}},qs={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Dm;function ug(){if(Dm)return qs;Dm=1;var a=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function s(o,u,f){var h=null;if(f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),"key"in u){f={};for(var p in u)p!=="key"&&(f[p]=u[p])}else f=u;return u=f.ref,{$$typeof:a,type:o,key:h,ref:u!==void 0?u:null,props:f}}return qs.Fragment=n,qs.jsx=s,qs.jsxs=s,qs}var Rm;function dg(){return Rm||(Rm=1,_0.exports=ug()),_0.exports}var r=dg(),z0={exports:{}},de={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var km;function fg(){if(km)return de;km=1;var a=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),j=Symbol.iterator;function S(V){return V===null||typeof V!="object"?null:(V=j&&V[j]||V["@@iterator"],typeof V=="function"?V:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,E={};function C(V,P,W){this.props=V,this.context=P,this.refs=E,this.updater=W||w}C.prototype.isReactComponent={},C.prototype.setState=function(V,P){if(typeof V!="object"&&typeof V!="function"&&V!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,V,P,"setState")},C.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function T(){}T.prototype=C.prototype;function D(V,P,W){this.props=V,this.context=P,this.refs=E,this.updater=W||w}var Y=D.prototype=new T;Y.constructor=D,N(Y,C.prototype),Y.isPureReactComponent=!0;var F=Array.isArray;function L(){}var z={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function Q(V,P,W){var se=W.ref;return{$$typeof:a,type:V,key:P,ref:se!==void 0?se:null,props:W}}function J(V,P){return Q(V.type,P,V.props)}function ee(V){return typeof V=="object"&&V!==null&&V.$$typeof===a}function ue(V){var P={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(W){return P[W]})}var le=/\/+/g;function K(V,P){return typeof V=="object"&&V!==null&&V.key!=null?ue(""+V.key):P.toString(36)}function ne(V){switch(V.status){case"fulfilled":return V.value;case"rejected":throw V.reason;default:switch(typeof V.status=="string"?V.then(L,L):(V.status="pending",V.then(function(P){V.status==="pending"&&(V.status="fulfilled",V.value=P)},function(P){V.status==="pending"&&(V.status="rejected",V.reason=P)})),V.status){case"fulfilled":return V.value;case"rejected":throw V.reason}}throw V}function O(V,P,W,se,me){var ye=typeof V;(ye==="undefined"||ye==="boolean")&&(V=null);var Te=!1;if(V===null)Te=!0;else switch(ye){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(V.$$typeof){case a:case n:Te=!0;break;case y:return Te=V._init,O(Te(V._payload),P,W,se,me)}}if(Te)return me=me(V),Te=se===""?"."+K(V,0):se,F(me)?(W="",Te!=null&&(W=Te.replace(le,"$&/")+"/"),O(me,P,W,"",function(Ql){return Ql})):me!=null&&(ee(me)&&(me=J(me,W+(me.key==null||V&&V.key===me.key?"":(""+me.key).replace(le,"$&/")+"/")+Te)),P.push(me)),1;Te=0;var xt=se===""?".":se+":";if(F(V))for(var Ge=0;Ge<V.length;Ge++)se=V[Ge],ye=xt+K(se,Ge),Te+=O(se,P,W,ye,me);else if(Ge=S(V),typeof Ge=="function")for(V=Ge.call(V),Ge=0;!(se=V.next()).done;)se=se.value,ye=xt+K(se,Ge++),Te+=O(se,P,W,ye,me);else if(ye==="object"){if(typeof V.then=="function")return O(ne(V),P,W,se,me);throw P=String(V),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return Te}function B(V,P,W){if(V==null)return V;var se=[],me=0;return O(V,se,"","",function(ye){return P.call(W,ye,me++)}),se}function I(V){if(V._status===-1){var P=V._result;P=P(),P.then(function(W){(V._status===0||V._status===-1)&&(V._status=1,V._result=W)},function(W){(V._status===0||V._status===-1)&&(V._status=2,V._result=W)}),V._status===-1&&(V._status=0,V._result=P)}if(V._status===1)return V._result.default;throw V._result}var oe=typeof reportError=="function"?reportError:function(V){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof V=="object"&&V!==null&&typeof V.message=="string"?String(V.message):String(V),error:V});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",V);return}console.error(V)},fe={map:B,forEach:function(V,P,W){B(V,function(){P.apply(this,arguments)},W)},count:function(V){var P=0;return B(V,function(){P++}),P},toArray:function(V){return B(V,function(P){return P})||[]},only:function(V){if(!ee(V))throw Error("React.Children.only expected to receive a single React element child.");return V}};return de.Activity=b,de.Children=fe,de.Component=C,de.Fragment=s,de.Profiler=u,de.PureComponent=D,de.StrictMode=o,de.Suspense=x,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,de.__COMPILER_RUNTIME={__proto__:null,c:function(V){return z.H.useMemoCache(V)}},de.cache=function(V){return function(){return V.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(V,P,W){if(V==null)throw Error("The argument must be a React element, but you passed "+V+".");var se=N({},V.props),me=V.key;if(P!=null)for(ye in P.key!==void 0&&(me=""+P.key),P)!q.call(P,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&P.ref===void 0||(se[ye]=P[ye]);var ye=arguments.length-2;if(ye===1)se.children=W;else if(1<ye){for(var Te=Array(ye),xt=0;xt<ye;xt++)Te[xt]=arguments[xt+2];se.children=Te}return Q(V.type,me,se)},de.createContext=function(V){return V={$$typeof:h,_currentValue:V,_currentValue2:V,_threadCount:0,Provider:null,Consumer:null},V.Provider=V,V.Consumer={$$typeof:f,_context:V},V},de.createElement=function(V,P,W){var se,me={},ye=null;if(P!=null)for(se in P.key!==void 0&&(ye=""+P.key),P)q.call(P,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(me[se]=P[se]);var Te=arguments.length-2;if(Te===1)me.children=W;else if(1<Te){for(var xt=Array(Te),Ge=0;Ge<Te;Ge++)xt[Ge]=arguments[Ge+2];me.children=xt}if(V&&V.defaultProps)for(se in Te=V.defaultProps,Te)me[se]===void 0&&(me[se]=Te[se]);return Q(V,ye,me)},de.createRef=function(){return{current:null}},de.forwardRef=function(V){return{$$typeof:p,render:V}},de.isValidElement=ee,de.lazy=function(V){return{$$typeof:y,_payload:{_status:-1,_result:V},_init:I}},de.memo=function(V,P){return{$$typeof:g,type:V,compare:P===void 0?null:P}},de.startTransition=function(V){var P=z.T,W={};z.T=W;try{var se=V(),me=z.S;me!==null&&me(W,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(L,oe)}catch(ye){oe(ye)}finally{P!==null&&W.types!==null&&(P.types=W.types),z.T=P}},de.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},de.use=function(V){return z.H.use(V)},de.useActionState=function(V,P,W){return z.H.useActionState(V,P,W)},de.useCallback=function(V,P){return z.H.useCallback(V,P)},de.useContext=function(V){return z.H.useContext(V)},de.useDebugValue=function(){},de.useDeferredValue=function(V,P){return z.H.useDeferredValue(V,P)},de.useEffect=function(V,P){return z.H.useEffect(V,P)},de.useEffectEvent=function(V){return z.H.useEffectEvent(V)},de.useId=function(){return z.H.useId()},de.useImperativeHandle=function(V,P,W){return z.H.useImperativeHandle(V,P,W)},de.useInsertionEffect=function(V,P){return z.H.useInsertionEffect(V,P)},de.useLayoutEffect=function(V,P){return z.H.useLayoutEffect(V,P)},de.useMemo=function(V,P){return z.H.useMemo(V,P)},de.useOptimistic=function(V,P){return z.H.useOptimistic(V,P)},de.useReducer=function(V,P,W){return z.H.useReducer(V,P,W)},de.useRef=function(V){return z.H.useRef(V)},de.useState=function(V){return z.H.useState(V)},de.useSyncExternalStore=function(V,P,W){return z.H.useSyncExternalStore(V,P,W)},de.useTransition=function(){return z.H.useTransition()},de.version="19.2.4",de}var _m;function qu(){return _m||(_m=1,z0.exports=fg()),z0.exports}var c=qu(),O0={exports:{}},Ys={},B0={exports:{}},U0={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var zm;function mg(){return zm||(zm=1,(function(a){function n(O,B){var I=O.length;O.push(B);e:for(;0<I;){var oe=I-1>>>1,fe=O[oe];if(0<u(fe,B))O[oe]=B,O[I]=fe,I=oe;else break e}}function s(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var B=O[0],I=O.pop();if(I!==B){O[0]=I;e:for(var oe=0,fe=O.length,V=fe>>>1;oe<V;){var P=2*(oe+1)-1,W=O[P],se=P+1,me=O[se];if(0>u(W,I))se<fe&&0>u(me,W)?(O[oe]=me,O[se]=I,oe=se):(O[oe]=W,O[P]=I,oe=P);else if(se<fe&&0>u(me,I))O[oe]=me,O[se]=I,oe=se;else break e}}return B}function u(O,B){var I=O.sortIndex-B.sortIndex;return I!==0?I:O.id-B.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,p=h.now();a.unstable_now=function(){return h.now()-p}}var x=[],g=[],y=1,b=null,j=3,S=!1,w=!1,N=!1,E=!1,C=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function Y(O){for(var B=s(g);B!==null;){if(B.callback===null)o(g);else if(B.startTime<=O)o(g),B.sortIndex=B.expirationTime,n(x,B);else break;B=s(g)}}function F(O){if(N=!1,Y(O),!w)if(s(x)!==null)w=!0,L||(L=!0,ue());else{var B=s(g);B!==null&&ne(F,B.startTime-O)}}var L=!1,z=-1,q=5,Q=-1;function J(){return E?!0:!(a.unstable_now()-Q<q)}function ee(){if(E=!1,L){var O=a.unstable_now();Q=O;var B=!0;try{e:{w=!1,N&&(N=!1,T(z),z=-1),S=!0;var I=j;try{t:{for(Y(O),b=s(x);b!==null&&!(b.expirationTime>O&&J());){var oe=b.callback;if(typeof oe=="function"){b.callback=null,j=b.priorityLevel;var fe=oe(b.expirationTime<=O);if(O=a.unstable_now(),typeof fe=="function"){b.callback=fe,Y(O),B=!0;break t}b===s(x)&&o(x),Y(O)}else o(x);b=s(x)}if(b!==null)B=!0;else{var V=s(g);V!==null&&ne(F,V.startTime-O),B=!1}}break e}finally{b=null,j=I,S=!1}B=void 0}}finally{B?ue():L=!1}}}var ue;if(typeof D=="function")ue=function(){D(ee)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,K=le.port2;le.port1.onmessage=ee,ue=function(){K.postMessage(null)}}else ue=function(){C(ee,0)};function ne(O,B){z=C(function(){O(a.unstable_now())},B)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(O){O.callback=null},a.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<O?Math.floor(1e3/O):5},a.unstable_getCurrentPriorityLevel=function(){return j},a.unstable_next=function(O){switch(j){case 1:case 2:case 3:var B=3;break;default:B=j}var I=j;j=B;try{return O()}finally{j=I}},a.unstable_requestPaint=function(){E=!0},a.unstable_runWithPriority=function(O,B){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var I=j;j=O;try{return B()}finally{j=I}},a.unstable_scheduleCallback=function(O,B,I){var oe=a.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?oe+I:oe):I=oe,O){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=I+fe,O={id:y++,callback:B,priorityLevel:O,startTime:I,expirationTime:fe,sortIndex:-1},I>oe?(O.sortIndex=I,n(g,O),s(x)===null&&O===s(g)&&(N?(T(z),z=-1):N=!0,ne(F,I-oe))):(O.sortIndex=fe,n(x,O),w||S||(w=!0,L||(L=!0,ue()))),O},a.unstable_shouldYield=J,a.unstable_wrapCallback=function(O){var B=j;return function(){var I=j;j=B;try{return O.apply(this,arguments)}finally{j=I}}}})(U0)),U0}var Om;function hg(){return Om||(Om=1,B0.exports=mg()),B0.exports}var F0={exports:{}},mt={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Bm;function pg(){if(Bm)return mt;Bm=1;var a=qu();function n(x){var g="https://react.dev/errors/"+x;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+x+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(n(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(x,g,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:x,containerInfo:g,implementation:y}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(x,g){if(x==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,mt.createPortal=function(x,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return f(x,g,null,y)},mt.flushSync=function(x){var g=h.T,y=o.p;try{if(h.T=null,o.p=2,x)return x()}finally{h.T=g,o.p=y,o.d.f()}},mt.preconnect=function(x,g){typeof x=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(x,g))},mt.prefetchDNS=function(x){typeof x=="string"&&o.d.D(x)},mt.preinit=function(x,g){if(typeof x=="string"&&g&&typeof g.as=="string"){var y=g.as,b=p(y,g.crossOrigin),j=typeof g.integrity=="string"?g.integrity:void 0,S=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?o.d.S(x,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:j,fetchPriority:S}):y==="script"&&o.d.X(x,{crossOrigin:b,integrity:j,fetchPriority:S,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},mt.preinitModule=function(x,g){if(typeof x=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=p(g.as,g.crossOrigin);o.d.M(x,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(x)},mt.preload=function(x,g){if(typeof x=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,b=p(y,g.crossOrigin);o.d.L(x,y,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},mt.preloadModule=function(x,g){if(typeof x=="string")if(g){var y=p(g.as,g.crossOrigin);o.d.m(x,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(x)},mt.requestFormReset=function(x){o.d.r(x)},mt.unstable_batchedUpdates=function(x,g){return x(g)},mt.useFormState=function(x,g,y){return h.H.useFormState(x,g,y)},mt.useFormStatus=function(){return h.H.useHostTransitionStatus()},mt.version="19.2.4",mt}var Um;function xg(){if(Um)return F0.exports;Um=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(n){console.error(n)}}return a(),F0.exports=pg(),F0.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Fm;function gg(){if(Fm)return Ys;Fm=1;var a=hg(),n=qu(),s=xg();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function h(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 p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(f(e)!==e)throw Error(o(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,i=t;;){var d=l.return;if(d===null)break;var m=d.alternate;if(m===null){if(i=d.return,i!==null){l=i;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===l)return x(d),e;if(m===i)return x(d),t;m=m.sibling}throw Error(o(188))}if(l.return!==i.return)l=d,i=m;else{for(var v=!1,A=d.child;A;){if(A===l){v=!0,l=d,i=m;break}if(A===i){v=!0,i=d,l=m;break}A=A.sibling}if(!v){for(A=m.child;A;){if(A===l){v=!0,l=m,i=d;break}if(A===i){v=!0,i=m,l=d;break}A=A.sibling}if(!v)throw Error(o(189))}}if(l.alternate!==i)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,j=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),D=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function ue(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var le=Symbol.for("react.client.reference");function K(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case N:return"Fragment";case C:return"Profiler";case E:return"StrictMode";case F:return"Suspense";case L:return"SuspenseList";case Q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case D:return e.displayName||"Context";case T:return(e._context.displayName||"Context")+".Consumer";case Y:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z:return t=e.displayName||null,t!==null?t:K(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return K(e(t))}catch{}}return null}var ne=Array.isArray,O=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},oe=[],fe=-1;function V(e){return{current:e}}function P(e){0>fe||(e.current=oe[fe],oe[fe]=null,fe--)}function W(e,t){fe++,oe[fe]=e.current,e.current=t}var se=V(null),me=V(null),ye=V(null),Te=V(null);function xt(e,t){switch(W(ye,t),W(me,e),W(se,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?nm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=nm(t),e=lm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}P(se),W(se,e)}function Ge(){P(se),P(me),P(ye)}function Ql(e){e.memoizedState!==null&&W(Te,e);var t=se.current,l=lm(t,e.type);t!==l&&(W(me,e),W(se,l))}function mi(e){me.current===e&&(P(se),P(me)),Te.current===e&&(P(Te),Os._currentValue=I)}var yo,L1;function vn(e){if(yo===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);yo=t&&t[1]||"",L1=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+yo+e+L1}var vo=!1;function jo(e,t){if(!e||vo)return"";vo=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(U){var _=U}Reflect.construct(e,[],X)}else{try{X.call()}catch(U){_=U}e.call(X.prototype)}}else{try{throw Error()}catch(U){_=U}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(U){if(U&&_&&typeof U.stack=="string")return[U.stack,_.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=i.DetermineComponentFrameRoot(),v=m[0],A=m[1];if(v&&A){var M=v.split(`
|
|
44
|
-
`),k=A.split(`
|
|
45
|
-
`);for(d=i=0;i<M.length&&!M[i].includes("DetermineComponentFrameRoot");)i++;for(;d<k.length&&!k[d].includes("DetermineComponentFrameRoot");)d++;if(i===M.length||d===k.length)for(i=M.length-1,d=k.length-1;1<=i&&0<=d&&M[i]!==k[d];)d--;for(;1<=i&&0<=d;i--,d--)if(M[i]!==k[d]){if(i!==1||d!==1)do if(i--,d--,0>d||M[i]!==k[d]){var $=`
|
|
46
|
-
`+M[i].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),$}while(1<=i&&0<=d);break}}}finally{vo=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?vn(l):""}function Op(e,t){switch(e.tag){case 26:case 27:case 5:return vn(e.type);case 16:return vn("Lazy");case 13:return e.child!==t&&t!==null?vn("Suspense Fallback"):vn("Suspense");case 19:return vn("SuspenseList");case 0:case 15:return jo(e.type,!1);case 11:return jo(e.type.render,!1);case 1:return jo(e.type,!0);case 31:return vn("Activity");default:return""}}function Z1(e){try{var t="",l=null;do t+=Op(e,l),l=e,e=e.return;while(e);return t}catch(i){return`
|
|
47
|
-
Error generating stack: `+i.message+`
|
|
48
|
-
`+i.stack}}var Ao=Object.prototype.hasOwnProperty,So=a.unstable_scheduleCallback,Eo=a.unstable_cancelCallback,Bp=a.unstable_shouldYield,Up=a.unstable_requestPaint,Vt=a.unstable_now,Fp=a.unstable_getCurrentPriorityLevel,D1=a.unstable_ImmediatePriority,R1=a.unstable_UserBlockingPriority,hi=a.unstable_NormalPriority,qp=a.unstable_LowPriority,k1=a.unstable_IdlePriority,Yp=a.log,$p=a.unstable_setDisableYieldValue,Jl=null,Ht=null;function Fa(e){if(typeof Yp=="function"&&$p(e),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(Jl,e)}catch{}}var Lt=Math.clz32?Math.clz32:Pp,Gp=Math.log,Xp=Math.LN2;function Pp(e){return e>>>=0,e===0?32:31-(Gp(e)/Xp|0)|0}var pi=256,xi=262144,gi=4194304;function jn(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function bi(e,t,l){var i=e.pendingLanes;if(i===0)return 0;var d=0,m=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var A=i&134217727;return A!==0?(i=A&~m,i!==0?d=jn(i):(v&=A,v!==0?d=jn(v):l||(l=A&~e,l!==0&&(d=jn(l))))):(A=i&~m,A!==0?d=jn(A):v!==0?d=jn(v):l||(l=i&~e,l!==0&&(d=jn(l)))),d===0?0:t!==0&&t!==d&&(t&m)===0&&(m=d&-d,l=t&-t,m>=l||m===32&&(l&4194048)!==0)?t:d}function Wl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Kp(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _1(){var e=gi;return gi<<=1,(gi&62914560)===0&&(gi=4194304),e}function wo(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Il(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qp(e,t,l,i,d,m){var v=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var A=e.entanglements,M=e.expirationTimes,k=e.hiddenUpdates;for(l=v&~l;0<l;){var $=31-Lt(l),X=1<<$;A[$]=0,M[$]=-1;var _=k[$];if(_!==null)for(k[$]=null,$=0;$<_.length;$++){var U=_[$];U!==null&&(U.lane&=-536870913)}l&=~X}i!==0&&z1(e,i,0),m!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=m&~(v&~t))}function z1(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Lt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function O1(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var i=31-Lt(l),d=1<<i;d&t|e[i]&t&&(e[i]|=t),l&=~d}}function B1(e,t){var l=t&-t;return l=(l&42)!==0?1:No(l),(l&(e.suspendedLanes|t))!==0?0:l}function No(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Mo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function U1(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:Mm(e.type))}function F1(e,t){var l=B.p;try{return B.p=e,t()}finally{B.p=l}}var qa=Math.random().toString(36).slice(2),rt="__reactFiber$"+qa,At="__reactProps$"+qa,Pn="__reactContainer$"+qa,Co="__reactEvents$"+qa,Jp="__reactListeners$"+qa,Wp="__reactHandles$"+qa,q1="__reactResources$"+qa,es="__reactMarker$"+qa;function To(e){delete e[rt],delete e[At],delete e[Co],delete e[Jp],delete e[Wp]}function Kn(e){var t=e[rt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Pn]||l[rt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=dm(e);e!==null;){if(l=e[rt])return l;e=dm(e)}return t}e=l,l=e.parentNode}return null}function Qn(e){if(e=e[rt]||e[Pn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ts(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Jn(e){var t=e[q1];return t||(t=e[q1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[es]=!0}var Y1=new Set,$1={};function An(e,t){Wn(e,t),Wn(e+"Capture",t)}function Wn(e,t){for($1[e]=t,e=0;e<t.length;e++)Y1.add(t[e])}var Ip=RegExp("^[: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]*$"),G1={},X1={};function ex(e){return Ao.call(X1,e)?!0:Ao.call(G1,e)?!1:Ip.test(e)?X1[e]=!0:(G1[e]=!0,!1)}function yi(e,t,l){if(ex(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function vi(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function ja(e,t,l,i){if(i===null)e.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+i)}}function qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function P1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tx(e,t,l){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var d=i.get,m=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return d.call(this)},set:function(v){l=""+v,m.call(this,v)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vo(e){if(!e._valueTracker){var t=P1(e)?"checked":"value";e._valueTracker=tx(e,t,""+e[t])}}function K1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),i="";return e&&(i=P1(e)?e.checked?"true":"false":e.value),e=i,e!==l?(t.setValue(e),!0):!1}function ji(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}}var ax=/[\n"\\]/g;function Yt(e){return e.replace(ax,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ho(e,t,l,i,d,m,v,A){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?Lo(e,v,qt(t)):l!=null?Lo(e,v,qt(l)):i!=null&&e.removeAttribute("value"),d==null&&m!=null&&(e.defaultChecked=!!m),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.name=""+qt(A):e.removeAttribute("name")}function Q1(e,t,l,i,d,m,v,A){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.type=m),t!=null||l!=null){if(!(m!=="submit"&&m!=="reset"||t!=null)){Vo(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,A||t===e.value||(e.value=t),e.defaultValue=t}i=i??d,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=A?e.checked:!!i,e.defaultChecked=!!i,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),Vo(e)}function Lo(e,t,l){t==="number"&&ji(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function In(e,t,l,i){if(e=e.options,t){t={};for(var d=0;d<l.length;d++)t["$"+l[d]]=!0;for(l=0;l<e.length;l++)d=t.hasOwnProperty("$"+e[l].value),e[l].selected!==d&&(e[l].selected=d),d&&i&&(e[l].defaultSelected=!0)}else{for(l=""+qt(l),t=null,d=0;d<e.length;d++){if(e[d].value===l){e[d].selected=!0,i&&(e[d].defaultSelected=!0);return}t!==null||e[d].disabled||(t=e[d])}t!==null&&(t.selected=!0)}}function J1(e,t,l){if(t!=null&&(t=""+qt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+qt(l):""}function W1(e,t,l,i){if(t==null){if(i!=null){if(l!=null)throw Error(o(92));if(ne(i)){if(1<i.length)throw Error(o(93));i=i[0]}l=i}l==null&&(l=""),t=l}l=qt(t),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),Vo(e)}function el(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var nx=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function I1(e,t,l){var i=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,l):typeof l!="number"||l===0||nx.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ed(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var d in t)i=t[d],t.hasOwnProperty(d)&&l[d]!==i&&I1(e,d,i)}else for(var m in t)t.hasOwnProperty(m)&&I1(e,m,t[m])}function Zo(e){if(e.indexOf("-")===-1)return!1;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 lx=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),sx=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ai(e){return sx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Aa(){}var Do=null;function Ro(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tl=null,al=null;function td(e){var t=Qn(e);if(t&&(e=t.stateNode)){var l=e[At]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ho(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Yt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var i=l[t];if(i!==e&&i.form===e.form){var d=i[At]||null;if(!d)throw Error(o(90));Ho(i,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(t=0;t<l.length;t++)i=l[t],i.form===e.form&&K1(i)}break e;case"textarea":J1(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&In(e,!!l.multiple,t,!1)}}}var ko=!1;function ad(e,t,l){if(ko)return e(t,l);ko=!0;try{var i=e(t);return i}finally{if(ko=!1,(tl!==null||al!==null)&&(cr(),tl&&(t=tl,e=al,al=tl=null,td(t),e)))for(t=0;t<e.length;t++)td(e[t])}}function as(e,t){var l=e.stateNode;if(l===null)return null;var i=l[At]||null;if(i===null)return null;l=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var Sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_o=!1;if(Sa)try{var ns={};Object.defineProperty(ns,"passive",{get:function(){_o=!0}}),window.addEventListener("test",ns,ns),window.removeEventListener("test",ns,ns)}catch{_o=!1}var Ya=null,zo=null,Si=null;function nd(){if(Si)return Si;var e,t=zo,l=t.length,i,d="value"in Ya?Ya.value:Ya.textContent,m=d.length;for(e=0;e<l&&t[e]===d[e];e++);var v=l-e;for(i=1;i<=v&&t[l-i]===d[m-i];i++);return Si=d.slice(e,1<i?1-i:void 0)}function Ei(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 wi(){return!0}function ld(){return!1}function St(e){function t(l,i,d,m,v){this._reactName=l,this._targetInst=d,this.type=i,this.nativeEvent=m,this.target=v,this.currentTarget=null;for(var A in e)e.hasOwnProperty(A)&&(l=e[A],this[A]=l?l(m):m[A]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?wi:ld,this.isPropagationStopped=ld,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=wi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=wi)},persist:function(){},isPersistent:wi}),t}var Sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ni=St(Sn),ls=b({},Sn,{view:0,detail:0}),ix=St(ls),Oo,Bo,ss,Mi=b({},ls,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fo,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!==ss&&(ss&&e.type==="mousemove"?(Oo=e.screenX-ss.screenX,Bo=e.screenY-ss.screenY):Bo=Oo=0,ss=e),Oo)},movementY:function(e){return"movementY"in e?e.movementY:Bo}}),sd=St(Mi),rx=b({},Mi,{dataTransfer:0}),ox=St(rx),cx=b({},ls,{relatedTarget:0}),Uo=St(cx),ux=b({},Sn,{animationName:0,elapsedTime:0,pseudoElement:0}),dx=St(ux),fx=b({},Sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mx=St(fx),hx=b({},Sn,{data:0}),id=St(hx),px={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xx={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"},gx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=gx[e])?!!t[e]:!1}function Fo(){return bx}var yx=b({},ls,{key:function(e){if(e.key){var t=px[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ei(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fo,charCode:function(e){return e.type==="keypress"?Ei(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ei(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),vx=St(yx),jx=b({},Mi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rd=St(jx),Ax=b({},ls,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fo}),Sx=St(Ax),Ex=b({},Sn,{propertyName:0,elapsedTime:0,pseudoElement:0}),wx=St(Ex),Nx=b({},Mi,{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}),Mx=St(Nx),Cx=b({},Sn,{newState:0,oldState:0}),Tx=St(Cx),Vx=[9,13,27,32],qo=Sa&&"CompositionEvent"in window,is=null;Sa&&"documentMode"in document&&(is=document.documentMode);var Hx=Sa&&"TextEvent"in window&&!is,od=Sa&&(!qo||is&&8<is&&11>=is),cd=" ",ud=!1;function dd(e,t){switch(e){case"keyup":return Vx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var nl=!1;function Lx(e,t){switch(e){case"compositionend":return fd(t);case"keypress":return t.which!==32?null:(ud=!0,cd);case"textInput":return e=t.data,e===cd&&ud?null:e;default:return null}}function Zx(e,t){if(nl)return e==="compositionend"||!qo&&dd(e,t)?(e=nd(),Si=zo=Ya=null,nl=!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 od&&t.locale!=="ko"?null:t.data;default:return null}}var Dx={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 md(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Dx[e.type]:t==="textarea"}function hd(e,t,l,i){tl?al?al.push(i):al=[i]:tl=i,t=xr(t,"onChange"),0<t.length&&(l=new Ni("onChange","change",null,l,i),e.push({event:l,listeners:t}))}var rs=null,os=null;function Rx(e){Jf(e,0)}function Ci(e){var t=ts(e);if(K1(t))return e}function pd(e,t){if(e==="change")return t}var xd=!1;if(Sa){var Yo;if(Sa){var $o="oninput"in document;if(!$o){var gd=document.createElement("div");gd.setAttribute("oninput","return;"),$o=typeof gd.oninput=="function"}Yo=$o}else Yo=!1;xd=Yo&&(!document.documentMode||9<document.documentMode)}function bd(){rs&&(rs.detachEvent("onpropertychange",yd),os=rs=null)}function yd(e){if(e.propertyName==="value"&&Ci(os)){var t=[];hd(t,os,e,Ro(e)),ad(Rx,t)}}function kx(e,t,l){e==="focusin"?(bd(),rs=t,os=l,rs.attachEvent("onpropertychange",yd)):e==="focusout"&&bd()}function _x(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ci(os)}function zx(e,t){if(e==="click")return Ci(t)}function Ox(e,t){if(e==="input"||e==="change")return Ci(t)}function Bx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zt=typeof Object.is=="function"?Object.is:Bx;function cs(e,t){if(Zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var d=l[i];if(!Ao.call(t,d)||!Zt(e[d],t[d]))return!1}return!0}function vd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jd(e,t){var l=vd(e);e=0;for(var i;l;){if(l.nodeType===3){if(i=e+l.textContent.length,e<=t&&i>=t)return{node:l,offset:t-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=vd(l)}}function Ad(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ad(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ji(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ji(e.document)}return t}function Go(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")}var Ux=Sa&&"documentMode"in document&&11>=document.documentMode,ll=null,Xo=null,us=null,Po=!1;function Ed(e,t,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Po||ll==null||ll!==ji(i)||(i=ll,"selectionStart"in i&&Go(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),us&&cs(us,i)||(us=i,i=xr(Xo,"onSelect"),0<i.length&&(t=new Ni("onSelect","select",null,t,l),e.push({event:t,listeners:i}),t.target=ll)))}function En(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var sl={animationend:En("Animation","AnimationEnd"),animationiteration:En("Animation","AnimationIteration"),animationstart:En("Animation","AnimationStart"),transitionrun:En("Transition","TransitionRun"),transitionstart:En("Transition","TransitionStart"),transitioncancel:En("Transition","TransitionCancel"),transitionend:En("Transition","TransitionEnd")},Ko={},wd={};Sa&&(wd=document.createElement("div").style,"AnimationEvent"in window||(delete sl.animationend.animation,delete sl.animationiteration.animation,delete sl.animationstart.animation),"TransitionEvent"in window||delete sl.transitionend.transition);function wn(e){if(Ko[e])return Ko[e];if(!sl[e])return e;var t=sl[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in wd)return Ko[e]=t[l];return e}var Nd=wn("animationend"),Md=wn("animationiteration"),Cd=wn("animationstart"),Fx=wn("transitionrun"),qx=wn("transitionstart"),Yx=wn("transitioncancel"),Td=wn("transitionend"),Vd=new Map,Qo="abort auxClick beforeToggle 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(" ");Qo.push("scrollEnd");function na(e,t){Vd.set(e,t),An(t,[e])}var Ti=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},$t=[],il=0,Jo=0;function Vi(){for(var e=il,t=Jo=il=0;t<e;){var l=$t[t];$t[t++]=null;var i=$t[t];$t[t++]=null;var d=$t[t];$t[t++]=null;var m=$t[t];if($t[t++]=null,i!==null&&d!==null){var v=i.pending;v===null?d.next=d:(d.next=v.next,v.next=d),i.pending=d}m!==0&&Hd(l,d,m)}}function Hi(e,t,l,i){$t[il++]=e,$t[il++]=t,$t[il++]=l,$t[il++]=i,Jo|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Wo(e,t,l,i){return Hi(e,t,l,i),Li(e)}function Nn(e,t){return Hi(e,null,null,t),Li(e)}function Hd(e,t,l){e.lanes|=l;var i=e.alternate;i!==null&&(i.lanes|=l);for(var d=!1,m=e.return;m!==null;)m.childLanes|=l,i=m.alternate,i!==null&&(i.childLanes|=l),m.tag===22&&(e=m.stateNode,e===null||e._visibility&1||(d=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,d&&t!==null&&(d=31-Lt(l),e=m.hiddenUpdates,i=e[d],i===null?e[d]=[t]:i.push(t),t.lane=l|536870912),m):null}function Li(e){if(50<Ls)throw Ls=0,r0=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var rl={};function $x(e,t,l,i){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,l,i){return new $x(e,t,l,i)}function Io(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ea(e,t){var l=e.alternate;return l===null?(l=Dt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Ld(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Zi(e,t,l,i,d,m){var v=0;if(i=e,typeof e=="function")Io(e)&&(v=1);else if(typeof e=="string")v=Q3(e,l,se.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Q:return e=Dt(31,l,t,d),e.elementType=Q,e.lanes=m,e;case N:return Mn(l.children,d,m,t);case E:v=8,d|=24;break;case C:return e=Dt(12,l,t,d|2),e.elementType=C,e.lanes=m,e;case F:return e=Dt(13,l,t,d),e.elementType=F,e.lanes=m,e;case L:return e=Dt(19,l,t,d),e.elementType=L,e.lanes=m,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:v=10;break e;case T:v=9;break e;case Y:v=11;break e;case z:v=14;break e;case q:v=16,i=null;break e}v=29,l=Error(o(130,e===null?"null":typeof e,"")),i=null}return t=Dt(v,l,t,d),t.elementType=e,t.type=i,t.lanes=m,t}function Mn(e,t,l,i){return e=Dt(7,e,i,t),e.lanes=l,e}function ec(e,t,l){return e=Dt(6,e,null,t),e.lanes=l,e}function Zd(e){var t=Dt(18,null,null,0);return t.stateNode=e,t}function tc(e,t,l){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Dd=new WeakMap;function Gt(e,t){if(typeof e=="object"&&e!==null){var l=Dd.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Z1(t)},Dd.set(e,t),t)}return{value:e,source:t,stack:Z1(t)}}var ol=[],cl=0,Di=null,ds=0,Xt=[],Pt=0,$a=null,da=1,fa="";function wa(e,t){ol[cl++]=ds,ol[cl++]=Di,Di=e,ds=t}function Rd(e,t,l){Xt[Pt++]=da,Xt[Pt++]=fa,Xt[Pt++]=$a,$a=e;var i=da;e=fa;var d=32-Lt(i)-1;i&=~(1<<d),l+=1;var m=32-Lt(t)+d;if(30<m){var v=d-d%5;m=(i&(1<<v)-1).toString(32),i>>=v,d-=v,da=1<<32-Lt(t)+d|l<<d|i,fa=m+e}else da=1<<m|l<<d|i,fa=e}function ac(e){e.return!==null&&(wa(e,1),Rd(e,1,0))}function nc(e){for(;e===Di;)Di=ol[--cl],ol[cl]=null,ds=ol[--cl],ol[cl]=null;for(;e===$a;)$a=Xt[--Pt],Xt[Pt]=null,fa=Xt[--Pt],Xt[Pt]=null,da=Xt[--Pt],Xt[Pt]=null}function kd(e,t){Xt[Pt++]=da,Xt[Pt++]=fa,Xt[Pt++]=$a,da=t.id,fa=t.overflow,$a=e}var ot=null,_e=null,Ee=!1,Ga=null,Kt=!1,lc=Error(o(519));function Xa(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw fs(Gt(t,e)),lc}function _d(e){var t=e.stateNode,l=e.type,i=e.memoizedProps;switch(t[rt]=e,t[At]=i,l){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(l=0;l<Ds.length;l++)je(Ds[l],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),Q1(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),W1(t,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||i.suppressHydrationWarning===!0||tm(t.textContent,l)?(i.popover!=null&&(je("beforetoggle",t),je("toggle",t)),i.onScroll!=null&&je("scroll",t),i.onScrollEnd!=null&&je("scrollend",t),i.onClick!=null&&(t.onclick=Aa),t=!0):t=!1,t||Xa(e,!0)}function zd(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:Kt=!1;return;case 27:case 3:Kt=!0;return;default:ot=ot.return}}function ul(e){if(e!==ot)return!1;if(!Ee)return zd(e),Ee=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||A0(e.type,e.memoizedProps)),l=!l),l&&_e&&Xa(e),zd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));_e=um(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));_e=um(e)}else t===27?(t=_e,on(e.type)?(e=M0,M0=null,_e=e):_e=t):_e=ot?Jt(e.stateNode.nextSibling):null;return!0}function Cn(){_e=ot=null,Ee=!1}function sc(){var e=Ga;return e!==null&&(Mt===null?Mt=e:Mt.push.apply(Mt,e),Ga=null),e}function fs(e){Ga===null?Ga=[e]:Ga.push(e)}var ic=V(null),Tn=null,Na=null;function Pa(e,t,l){W(ic,t._currentValue),t._currentValue=l}function Ma(e){e._currentValue=ic.current,P(ic)}function rc(e,t,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===l)break;e=e.return}}function oc(e,t,l,i){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var m=d.dependencies;if(m!==null){var v=d.child;m=m.firstContext;e:for(;m!==null;){var A=m;m=d;for(var M=0;M<t.length;M++)if(A.context===t[M]){m.lanes|=l,A=m.alternate,A!==null&&(A.lanes|=l),rc(m.return,l,e),i||(v=null);break e}m=A.next}}else if(d.tag===18){if(v=d.return,v===null)throw Error(o(341));v.lanes|=l,m=v.alternate,m!==null&&(m.lanes|=l),rc(v,l,e),v=null}else v=d.child;if(v!==null)v.return=d;else for(v=d;v!==null;){if(v===e){v=null;break}if(d=v.sibling,d!==null){d.return=v.return,v=d;break}v=v.return}d=v}}function dl(e,t,l,i){e=null;for(var d=t,m=!1;d!==null;){if(!m){if((d.flags&524288)!==0)m=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var v=d.alternate;if(v===null)throw Error(o(387));if(v=v.memoizedProps,v!==null){var A=d.type;Zt(d.pendingProps.value,v.value)||(e!==null?e.push(A):e=[A])}}else if(d===Te.current){if(v=d.alternate,v===null)throw Error(o(387));v.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(Os):e=[Os])}d=d.return}e!==null&&oc(t,e,l,i),t.flags|=262144}function Ri(e){for(e=e.firstContext;e!==null;){if(!Zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vn(e){Tn=e,Na=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return Od(Tn,e)}function ki(e,t){return Tn===null&&Vn(e),Od(e,t)}function Od(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Na===null){if(e===null)throw Error(o(308));Na=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Na=Na.next=t;return l}var Gx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Xx=a.unstable_scheduleCallback,Px=a.unstable_NormalPriority,Ke={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cc(){return{controller:new Gx,data:new Map,refCount:0}}function ms(e){e.refCount--,e.refCount===0&&Xx(Px,function(){e.controller.abort()})}var hs=null,uc=0,fl=0,ml=null;function Kx(e,t){if(hs===null){var l=hs=[];uc=0,fl=m0(),ml={status:"pending",value:void 0,then:function(i){l.push(i)}}}return uc++,t.then(Bd,Bd),t}function Bd(){if(--uc===0&&hs!==null){ml!==null&&(ml.status="fulfilled");var e=hs;hs=null,fl=0,ml=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Qx(e,t){var l=[],i={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var d=0;d<l.length;d++)(0,l[d])(t)},function(d){for(i.status="rejected",i.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),i}var Ud=O.S;O.S=function(e,t){wf=Vt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Kx(e,t),Ud!==null&&Ud(e,t)};var Hn=V(null);function dc(){var e=Hn.current;return e!==null?e:Re.pooledCache}function _i(e,t){t===null?W(Hn,Hn.current):W(Hn,t.pool)}function Fd(){var e=dc();return e===null?null:{parent:Ke._currentValue,pool:e}}var hl=Error(o(460)),fc=Error(o(474)),zi=Error(o(542)),Oi={then:function(){}};function qd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Aa,Aa),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gd(e),e;default:if(typeof t.status=="string")t.then(Aa,Aa);else{if(e=Re,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=i}},function(i){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gd(e),e}throw Zn=t,hl}}function Ln(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Zn=l,hl):l}}var Zn=null;function $d(){if(Zn===null)throw Error(o(459));var e=Zn;return Zn=null,e}function Gd(e){if(e===hl||e===zi)throw Error(o(483))}var pl=null,ps=0;function Bi(e){var t=ps;return ps+=1,pl===null&&(pl=[]),Yd(pl,e,t)}function xs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ui(e,t){throw t.$$typeof===j?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Xd(e){function t(Z,H){if(e){var R=Z.deletions;R===null?(Z.deletions=[H],Z.flags|=16):R.push(H)}}function l(Z,H){if(!e)return null;for(;H!==null;)t(Z,H),H=H.sibling;return null}function i(Z){for(var H=new Map;Z!==null;)Z.key!==null?H.set(Z.key,Z):H.set(Z.index,Z),Z=Z.sibling;return H}function d(Z,H){return Z=Ea(Z,H),Z.index=0,Z.sibling=null,Z}function m(Z,H,R){return Z.index=R,e?(R=Z.alternate,R!==null?(R=R.index,R<H?(Z.flags|=67108866,H):R):(Z.flags|=67108866,H)):(Z.flags|=1048576,H)}function v(Z){return e&&Z.alternate===null&&(Z.flags|=67108866),Z}function A(Z,H,R,G){return H===null||H.tag!==6?(H=ec(R,Z.mode,G),H.return=Z,H):(H=d(H,R),H.return=Z,H)}function M(Z,H,R,G){var re=R.type;return re===N?$(Z,H,R.props.children,G,R.key):H!==null&&(H.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===q&&Ln(re)===H.type)?(H=d(H,R.props),xs(H,R),H.return=Z,H):(H=Zi(R.type,R.key,R.props,null,Z.mode,G),xs(H,R),H.return=Z,H)}function k(Z,H,R,G){return H===null||H.tag!==4||H.stateNode.containerInfo!==R.containerInfo||H.stateNode.implementation!==R.implementation?(H=tc(R,Z.mode,G),H.return=Z,H):(H=d(H,R.children||[]),H.return=Z,H)}function $(Z,H,R,G,re){return H===null||H.tag!==7?(H=Mn(R,Z.mode,G,re),H.return=Z,H):(H=d(H,R),H.return=Z,H)}function X(Z,H,R){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return H=ec(""+H,Z.mode,R),H.return=Z,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case S:return R=Zi(H.type,H.key,H.props,null,Z.mode,R),xs(R,H),R.return=Z,R;case w:return H=tc(H,Z.mode,R),H.return=Z,H;case q:return H=Ln(H),X(Z,H,R)}if(ne(H)||ue(H))return H=Mn(H,Z.mode,R,null),H.return=Z,H;if(typeof H.then=="function")return X(Z,Bi(H),R);if(H.$$typeof===D)return X(Z,ki(Z,H),R);Ui(Z,H)}return null}function _(Z,H,R,G){var re=H!==null?H.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return re!==null?null:A(Z,H,""+R,G);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case S:return R.key===re?M(Z,H,R,G):null;case w:return R.key===re?k(Z,H,R,G):null;case q:return R=Ln(R),_(Z,H,R,G)}if(ne(R)||ue(R))return re!==null?null:$(Z,H,R,G,null);if(typeof R.then=="function")return _(Z,H,Bi(R),G);if(R.$$typeof===D)return _(Z,H,ki(Z,R),G);Ui(Z,R)}return null}function U(Z,H,R,G,re){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Z=Z.get(R)||null,A(H,Z,""+G,re);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case S:return Z=Z.get(G.key===null?R:G.key)||null,M(H,Z,G,re);case w:return Z=Z.get(G.key===null?R:G.key)||null,k(H,Z,G,re);case q:return G=Ln(G),U(Z,H,R,G,re)}if(ne(G)||ue(G))return Z=Z.get(R)||null,$(H,Z,G,re,null);if(typeof G.then=="function")return U(Z,H,R,Bi(G),re);if(G.$$typeof===D)return U(Z,H,R,ki(H,G),re);Ui(H,G)}return null}function te(Z,H,R,G){for(var re=null,Ne=null,ie=H,be=H=0,Se=null;ie!==null&&be<R.length;be++){ie.index>be?(Se=ie,ie=null):Se=ie.sibling;var Me=_(Z,ie,R[be],G);if(Me===null){ie===null&&(ie=Se);break}e&&ie&&Me.alternate===null&&t(Z,ie),H=m(Me,H,be),Ne===null?re=Me:Ne.sibling=Me,Ne=Me,ie=Se}if(be===R.length)return l(Z,ie),Ee&&wa(Z,be),re;if(ie===null){for(;be<R.length;be++)ie=X(Z,R[be],G),ie!==null&&(H=m(ie,H,be),Ne===null?re=ie:Ne.sibling=ie,Ne=ie);return Ee&&wa(Z,be),re}for(ie=i(ie);be<R.length;be++)Se=U(ie,Z,be,R[be],G),Se!==null&&(e&&Se.alternate!==null&&ie.delete(Se.key===null?be:Se.key),H=m(Se,H,be),Ne===null?re=Se:Ne.sibling=Se,Ne=Se);return e&&ie.forEach(function(mn){return t(Z,mn)}),Ee&&wa(Z,be),re}function ce(Z,H,R,G){if(R==null)throw Error(o(151));for(var re=null,Ne=null,ie=H,be=H=0,Se=null,Me=R.next();ie!==null&&!Me.done;be++,Me=R.next()){ie.index>be?(Se=ie,ie=null):Se=ie.sibling;var mn=_(Z,ie,Me.value,G);if(mn===null){ie===null&&(ie=Se);break}e&&ie&&mn.alternate===null&&t(Z,ie),H=m(mn,H,be),Ne===null?re=mn:Ne.sibling=mn,Ne=mn,ie=Se}if(Me.done)return l(Z,ie),Ee&&wa(Z,be),re;if(ie===null){for(;!Me.done;be++,Me=R.next())Me=X(Z,Me.value,G),Me!==null&&(H=m(Me,H,be),Ne===null?re=Me:Ne.sibling=Me,Ne=Me);return Ee&&wa(Z,be),re}for(ie=i(ie);!Me.done;be++,Me=R.next())Me=U(ie,Z,be,Me.value,G),Me!==null&&(e&&Me.alternate!==null&&ie.delete(Me.key===null?be:Me.key),H=m(Me,H,be),Ne===null?re=Me:Ne.sibling=Me,Ne=Me);return e&&ie.forEach(function(rg){return t(Z,rg)}),Ee&&wa(Z,be),re}function De(Z,H,R,G){if(typeof R=="object"&&R!==null&&R.type===N&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case S:e:{for(var re=R.key;H!==null;){if(H.key===re){if(re=R.type,re===N){if(H.tag===7){l(Z,H.sibling),G=d(H,R.props.children),G.return=Z,Z=G;break e}}else if(H.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===q&&Ln(re)===H.type){l(Z,H.sibling),G=d(H,R.props),xs(G,R),G.return=Z,Z=G;break e}l(Z,H);break}else t(Z,H);H=H.sibling}R.type===N?(G=Mn(R.props.children,Z.mode,G,R.key),G.return=Z,Z=G):(G=Zi(R.type,R.key,R.props,null,Z.mode,G),xs(G,R),G.return=Z,Z=G)}return v(Z);case w:e:{for(re=R.key;H!==null;){if(H.key===re)if(H.tag===4&&H.stateNode.containerInfo===R.containerInfo&&H.stateNode.implementation===R.implementation){l(Z,H.sibling),G=d(H,R.children||[]),G.return=Z,Z=G;break e}else{l(Z,H);break}else t(Z,H);H=H.sibling}G=tc(R,Z.mode,G),G.return=Z,Z=G}return v(Z);case q:return R=Ln(R),De(Z,H,R,G)}if(ne(R))return te(Z,H,R,G);if(ue(R)){if(re=ue(R),typeof re!="function")throw Error(o(150));return R=re.call(R),ce(Z,H,R,G)}if(typeof R.then=="function")return De(Z,H,Bi(R),G);if(R.$$typeof===D)return De(Z,H,ki(Z,R),G);Ui(Z,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,H!==null&&H.tag===6?(l(Z,H.sibling),G=d(H,R),G.return=Z,Z=G):(l(Z,H),G=ec(R,Z.mode,G),G.return=Z,Z=G),v(Z)):l(Z,H)}return function(Z,H,R,G){try{ps=0;var re=De(Z,H,R,G);return pl=null,re}catch(ie){if(ie===hl||ie===zi)throw ie;var Ne=Dt(29,ie,null,Z.mode);return Ne.lanes=G,Ne.return=Z,Ne}finally{}}}var Dn=Xd(!0),Pd=Xd(!1),Ka=!1;function mc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ja(e,t,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ce&2)!==0){var d=i.pending;return d===null?t.next=t:(t.next=d.next,d.next=t),i.pending=t,t=Li(e),Hd(e,null,l),t}return Hi(e,i,t,l),Li(e)}function gs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,O1(e,l)}}function pc(e,t){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var d=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var v={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};m===null?d=m=v:m=m.next=v,l=l.next}while(l!==null);m===null?d=m=t:m=m.next=t}else d=m=t;l={baseState:i.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:i.shared,callbacks:i.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var xc=!1;function bs(){if(xc){var e=ml;if(e!==null)throw e}}function ys(e,t,l,i){xc=!1;var d=e.updateQueue;Ka=!1;var m=d.firstBaseUpdate,v=d.lastBaseUpdate,A=d.shared.pending;if(A!==null){d.shared.pending=null;var M=A,k=M.next;M.next=null,v===null?m=k:v.next=k,v=M;var $=e.alternate;$!==null&&($=$.updateQueue,A=$.lastBaseUpdate,A!==v&&(A===null?$.firstBaseUpdate=k:A.next=k,$.lastBaseUpdate=M))}if(m!==null){var X=d.baseState;v=0,$=k=M=null,A=m;do{var _=A.lane&-536870913,U=_!==A.lane;if(U?(Ae&_)===_:(i&_)===_){_!==0&&_===fl&&(xc=!0),$!==null&&($=$.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var te=e,ce=A;_=t;var De=l;switch(ce.tag){case 1:if(te=ce.payload,typeof te=="function"){X=te.call(De,X,_);break e}X=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=ce.payload,_=typeof te=="function"?te.call(De,X,_):te,_==null)break e;X=b({},X,_);break e;case 2:Ka=!0}}_=A.callback,_!==null&&(e.flags|=64,U&&(e.flags|=8192),U=d.callbacks,U===null?d.callbacks=[_]:U.push(_))}else U={lane:_,tag:A.tag,payload:A.payload,callback:A.callback,next:null},$===null?(k=$=U,M=X):$=$.next=U,v|=_;if(A=A.next,A===null){if(A=d.shared.pending,A===null)break;U=A,A=U.next,U.next=null,d.lastBaseUpdate=U,d.shared.pending=null}}while(!0);$===null&&(M=X),d.baseState=M,d.firstBaseUpdate=k,d.lastBaseUpdate=$,m===null&&(d.shared.lanes=0),an|=v,e.lanes=v,e.memoizedState=X}}function Kd(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Qd(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Kd(l[e],t)}var xl=V(null),Fi=V(0);function Jd(e,t){e=ka,W(Fi,e),W(xl,t),ka=e|t.baseLanes}function gc(){W(Fi,ka),W(xl,xl.current)}function bc(){ka=Fi.current,P(xl),P(Fi)}var Rt=V(null),Qt=null;function Wa(e){var t=e.alternate;W(Xe,Xe.current&1),W(Rt,e),Qt===null&&(t===null||xl.current!==null||t.memoizedState!==null)&&(Qt=e)}function yc(e){W(Xe,Xe.current),W(Rt,e),Qt===null&&(Qt=e)}function Wd(e){e.tag===22?(W(Xe,Xe.current),W(Rt,e),Qt===null&&(Qt=e)):Ia()}function Ia(){W(Xe,Xe.current),W(Rt,Rt.current)}function kt(e){P(Rt),Qt===e&&(Qt=null),P(Xe)}var Xe=V(0);function qi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||w0(l)||N0(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 Ca=0,he=null,Le=null,Qe=null,Yi=!1,gl=!1,Rn=!1,$i=0,vs=0,bl=null,Jx=0;function Fe(){throw Error(o(321))}function vc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Zt(e[l],t[l]))return!1;return!0}function jc(e,t,l,i,d,m){return Ca=m,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?R2:kc,Rn=!1,m=l(i,d),Rn=!1,gl&&(m=e2(t,l,i,d)),Id(e),m}function Id(e){O.H=Ss;var t=Le!==null&&Le.next!==null;if(Ca=0,Qe=Le=he=null,Yi=!1,vs=0,bl=null,t)throw Error(o(300));e===null||Je||(e=e.dependencies,e!==null&&Ri(e)&&(Je=!0))}function e2(e,t,l,i){he=e;var d=0;do{if(gl&&(bl=null),vs=0,gl=!1,25<=d)throw Error(o(301));if(d+=1,Qe=Le=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}O.H=k2,m=t(l,i)}while(gl);return m}function Wx(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?js(t):t,e=e.useState()[0],(Le!==null?Le.memoizedState:null)!==e&&(he.flags|=1024),t}function Ac(){var e=$i!==0;return $i=0,e}function Sc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Ec(e){if(Yi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yi=!1}Ca=0,Qe=Le=he=null,gl=!1,vs=$i=0,bl=null}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?he.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Pe(){if(Le===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=Qe===null?he.memoizedState:Qe.next;if(t!==null)Qe=t,Le=e;else{if(e===null)throw he.alternate===null?Error(o(467)):Error(o(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},Qe===null?he.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Gi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function js(e){var t=vs;return vs+=1,bl===null&&(bl=[]),e=Yd(bl,e,t),t=he,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?R2:kc),e}function Xi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return js(e);if(e.$$typeof===D)return ct(e)}throw Error(o(438,String(e)))}function wc(e){var t=null,l=he.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var i=he.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(d){return d.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Gi(),he.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),i=0;i<e;i++)l[i]=J;return t.index++,l}function Ta(e,t){return typeof t=="function"?t(e):t}function Pi(e){var t=Pe();return Nc(t,Le,e)}function Nc(e,t,l){var i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=l;var d=e.baseQueue,m=i.pending;if(m!==null){if(d!==null){var v=d.next;d.next=m.next,m.next=v}t.baseQueue=d=m,i.pending=null}if(m=e.baseState,d===null)e.memoizedState=m;else{t=d.next;var A=v=null,M=null,k=t,$=!1;do{var X=k.lane&-536870913;if(X!==k.lane?(Ae&X)===X:(Ca&X)===X){var _=k.revertLane;if(_===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),X===fl&&($=!0);else if((Ca&_)===_){k=k.next,_===fl&&($=!0);continue}else X={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},M===null?(A=M=X,v=m):M=M.next=X,he.lanes|=_,an|=_;X=k.action,Rn&&l(m,X),m=k.hasEagerState?k.eagerState:l(m,X)}else _={lane:X,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},M===null?(A=M=_,v=m):M=M.next=_,he.lanes|=X,an|=X;k=k.next}while(k!==null&&k!==t);if(M===null?v=m:M.next=A,!Zt(m,e.memoizedState)&&(Je=!0,$&&(l=ml,l!==null)))throw l;e.memoizedState=m,e.baseState=v,e.baseQueue=M,i.lastRenderedState=m}return d===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Mc(e){var t=Pe(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var i=l.dispatch,d=l.pending,m=t.memoizedState;if(d!==null){l.pending=null;var v=d=d.next;do m=e(m,v.action),v=v.next;while(v!==d);Zt(m,t.memoizedState)||(Je=!0),t.memoizedState=m,t.baseQueue===null&&(t.baseState=m),l.lastRenderedState=m}return[m,i]}function t2(e,t,l){var i=he,d=Pe(),m=Ee;if(m){if(l===void 0)throw Error(o(407));l=l()}else l=t();var v=!Zt((Le||d).memoizedState,l);if(v&&(d.memoizedState=l,Je=!0),d=d.queue,Vc(l2.bind(null,i,d,e),[e]),d.getSnapshot!==t||v||Qe!==null&&Qe.memoizedState.tag&1){if(i.flags|=2048,yl(9,{destroy:void 0},n2.bind(null,i,d,l,t),null),Re===null)throw Error(o(349));m||(Ca&127)!==0||a2(i,t,l)}return l}function a2(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=he.updateQueue,t===null?(t=Gi(),he.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function n2(e,t,l,i){t.value=l,t.getSnapshot=i,s2(t)&&i2(e)}function l2(e,t,l){return l(function(){s2(t)&&i2(e)})}function s2(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Zt(e,l)}catch{return!0}}function i2(e){var t=Nn(e,2);t!==null&&Ct(t,e,2)}function Cc(e){var t=gt();if(typeof e=="function"){var l=e;if(e=l(),Rn){Fa(!0);try{l()}finally{Fa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:e},t}function r2(e,t,l,i){return e.baseState=l,Nc(e,Le,typeof i=="function"?i:Ta)}function Ix(e,t,l,i,d){if(Ji(e))throw Error(o(485));if(e=t.action,e!==null){var m={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){m.listeners.push(v)}};O.T!==null?l(!0):m.isTransition=!1,i(m),l=t.pending,l===null?(m.next=t.pending=m,o2(t,m)):(m.next=l.next,t.pending=l.next=m)}}function o2(e,t){var l=t.action,i=t.payload,d=e.state;if(t.isTransition){var m=O.T,v={};O.T=v;try{var A=l(d,i),M=O.S;M!==null&&M(v,A),c2(e,t,A)}catch(k){Tc(e,t,k)}finally{m!==null&&v.types!==null&&(m.types=v.types),O.T=m}}else try{m=l(d,i),c2(e,t,m)}catch(k){Tc(e,t,k)}}function c2(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){u2(e,t,i)},function(i){return Tc(e,t,i)}):u2(e,t,l)}function u2(e,t,l){t.status="fulfilled",t.value=l,d2(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,o2(e,l)))}function Tc(e,t,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=l,d2(t),t=t.next;while(t!==i)}e.action=null}function d2(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function f2(e,t){return t}function m2(e,t){if(Ee){var l=Re.formState;if(l!==null){e:{var i=he;if(Ee){if(_e){t:{for(var d=_e,m=Kt;d.nodeType!==8;){if(!m){d=null;break t}if(d=Jt(d.nextSibling),d===null){d=null;break t}}m=d.data,d=m==="F!"||m==="F"?d:null}if(d){_e=Jt(d.nextSibling),i=d.data==="F!";break e}}Xa(i)}i=!1}i&&(t=l[0])}}return l=gt(),l.memoizedState=l.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:f2,lastRenderedState:t},l.queue=i,l=L2.bind(null,he,i),i.dispatch=l,i=Cc(!1),m=Rc.bind(null,he,!1,i.queue),i=gt(),d={state:t,dispatch:null,action:e,pending:null},i.queue=d,l=Ix.bind(null,he,d,m,l),d.dispatch=l,i.memoizedState=e,[t,l,!1]}function h2(e){var t=Pe();return p2(t,Le,e)}function p2(e,t,l){if(t=Nc(e,t,f2)[0],e=Pi(Ta)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=js(t)}catch(v){throw v===hl?zi:v}else i=t;t=Pe();var d=t.queue,m=d.dispatch;return l!==t.memoizedState&&(he.flags|=2048,yl(9,{destroy:void 0},e3.bind(null,d,l),null)),[i,m,e]}function e3(e,t){e.action=t}function x2(e){var t=Pe(),l=Le;if(l!==null)return p2(t,l,e);Pe(),t=t.memoizedState,l=Pe();var i=l.queue.dispatch;return l.memoizedState=e,[t,i,!1]}function yl(e,t,l,i){return e={tag:e,create:l,deps:i,inst:t,next:null},t=he.updateQueue,t===null&&(t=Gi(),he.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(i=l.next,l.next=e,e.next=i,t.lastEffect=e),e}function g2(){return Pe().memoizedState}function Ki(e,t,l,i){var d=gt();he.flags|=e,d.memoizedState=yl(1|t,{destroy:void 0},l,i===void 0?null:i)}function Qi(e,t,l,i){var d=Pe();i=i===void 0?null:i;var m=d.memoizedState.inst;Le!==null&&i!==null&&vc(i,Le.memoizedState.deps)?d.memoizedState=yl(t,m,l,i):(he.flags|=e,d.memoizedState=yl(1|t,m,l,i))}function b2(e,t){Ki(8390656,8,e,t)}function Vc(e,t){Qi(2048,8,e,t)}function t3(e){he.flags|=4;var t=he.updateQueue;if(t===null)t=Gi(),he.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function y2(e){var t=Pe().memoizedState;return t3({ref:t,nextImpl:e}),function(){if((Ce&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function v2(e,t){return Qi(4,2,e,t)}function j2(e,t){return Qi(4,4,e,t)}function A2(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function S2(e,t,l){l=l!=null?l.concat([e]):null,Qi(4,4,A2.bind(null,t,e),l)}function Hc(){}function E2(e,t){var l=Pe();t=t===void 0?null:t;var i=l.memoizedState;return t!==null&&vc(t,i[1])?i[0]:(l.memoizedState=[e,t],e)}function w2(e,t){var l=Pe();t=t===void 0?null:t;var i=l.memoizedState;if(t!==null&&vc(t,i[1]))return i[0];if(i=e(),Rn){Fa(!0);try{e()}finally{Fa(!1)}}return l.memoizedState=[i,t],i}function Lc(e,t,l){return l===void 0||(Ca&1073741824)!==0&&(Ae&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Mf(),he.lanes|=e,an|=e,l)}function N2(e,t,l,i){return Zt(l,t)?l:xl.current!==null?(e=Lc(e,l,i),Zt(e,t)||(Je=!0),e):(Ca&42)===0||(Ca&1073741824)!==0&&(Ae&261930)===0?(Je=!0,e.memoizedState=l):(e=Mf(),he.lanes|=e,an|=e,t)}function M2(e,t,l,i,d){var m=B.p;B.p=m!==0&&8>m?m:8;var v=O.T,A={};O.T=A,Rc(e,!1,t,l);try{var M=d(),k=O.S;if(k!==null&&k(A,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var $=Qx(M,i);As(e,t,$,Ot(e))}else As(e,t,i,Ot(e))}catch(X){As(e,t,{then:function(){},status:"rejected",reason:X},Ot())}finally{B.p=m,v!==null&&A.types!==null&&(v.types=A.types),O.T=v}}function a3(){}function Zc(e,t,l,i){if(e.tag!==5)throw Error(o(476));var d=C2(e).queue;M2(e,d,t,I,l===null?a3:function(){return T2(e),l(i)})}function C2(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:I},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function T2(e){var t=C2(e);t.next===null&&(t=e.alternate.memoizedState),As(e,t.next.queue,{},Ot())}function Dc(){return ct(Os)}function V2(){return Pe().memoizedState}function H2(){return Pe().memoizedState}function n3(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ot();e=Qa(l);var i=Ja(t,e,l);i!==null&&(Ct(i,t,l),gs(i,t,l)),t={cache:cc()},e.payload=t;return}t=t.return}}function l3(e,t,l){var i=Ot();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ji(e)?Z2(t,l):(l=Wo(e,t,l,i),l!==null&&(Ct(l,e,i),D2(l,t,i)))}function L2(e,t,l){var i=Ot();As(e,t,l,i)}function As(e,t,l,i){var d={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ji(e))Z2(t,d);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=t.lastRenderedReducer,m!==null))try{var v=t.lastRenderedState,A=m(v,l);if(d.hasEagerState=!0,d.eagerState=A,Zt(A,v))return Hi(e,t,d,0),Re===null&&Vi(),!1}catch{}finally{}if(l=Wo(e,t,d,i),l!==null)return Ct(l,e,i),D2(l,t,i),!0}return!1}function Rc(e,t,l,i){if(i={lane:2,revertLane:m0(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ji(e)){if(t)throw Error(o(479))}else t=Wo(e,l,i,2),t!==null&&Ct(t,e,2)}function Ji(e){var t=e.alternate;return e===he||t!==null&&t===he}function Z2(e,t){gl=Yi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function D2(e,t,l){if((l&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,O1(e,l)}}var Ss={readContext:ct,use:Xi,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useLayoutEffect:Fe,useInsertionEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useSyncExternalStore:Fe,useId:Fe,useHostTransitionStatus:Fe,useFormState:Fe,useActionState:Fe,useOptimistic:Fe,useMemoCache:Fe,useCacheRefresh:Fe};Ss.useEffectEvent=Fe;var R2={readContext:ct,use:Xi,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:b2,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ki(4194308,4,A2.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ki(4194308,4,e,t)},useInsertionEffect:function(e,t){Ki(4,2,e,t)},useMemo:function(e,t){var l=gt();t=t===void 0?null:t;var i=e();if(Rn){Fa(!0);try{e()}finally{Fa(!1)}}return l.memoizedState=[i,t],i},useReducer:function(e,t,l){var i=gt();if(l!==void 0){var d=l(t);if(Rn){Fa(!0);try{l(t)}finally{Fa(!1)}}}else d=t;return i.memoizedState=i.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},i.queue=e,e=e.dispatch=l3.bind(null,he,e),[i.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=Cc(e);var t=e.queue,l=L2.bind(null,he,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Hc,useDeferredValue:function(e,t){var l=gt();return Lc(l,e,t)},useTransition:function(){var e=Cc(!1);return e=M2.bind(null,he,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var i=he,d=gt();if(Ee){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Re===null)throw Error(o(349));(Ae&127)!==0||a2(i,t,l)}d.memoizedState=l;var m={value:l,getSnapshot:t};return d.queue=m,b2(l2.bind(null,i,m,e),[e]),i.flags|=2048,yl(9,{destroy:void 0},n2.bind(null,i,m,l,t),null),l},useId:function(){var e=gt(),t=Re.identifierPrefix;if(Ee){var l=fa,i=da;l=(i&~(1<<32-Lt(i)-1)).toString(32)+l,t="_"+t+"R_"+l,l=$i++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Jx++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Dc,useFormState:m2,useActionState:m2,useOptimistic:function(e){var t=gt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Rc.bind(null,he,!0,l),l.dispatch=t,[e,t]},useMemoCache:wc,useCacheRefresh:function(){return gt().memoizedState=n3.bind(null,he)},useEffectEvent:function(e){var t=gt(),l={impl:e};return t.memoizedState=l,function(){if((Ce&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},kc={readContext:ct,use:Xi,useCallback:E2,useContext:ct,useEffect:Vc,useImperativeHandle:S2,useInsertionEffect:v2,useLayoutEffect:j2,useMemo:w2,useReducer:Pi,useRef:g2,useState:function(){return Pi(Ta)},useDebugValue:Hc,useDeferredValue:function(e,t){var l=Pe();return N2(l,Le.memoizedState,e,t)},useTransition:function(){var e=Pi(Ta)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:js(e),t]},useSyncExternalStore:t2,useId:V2,useHostTransitionStatus:Dc,useFormState:h2,useActionState:h2,useOptimistic:function(e,t){var l=Pe();return r2(l,Le,e,t)},useMemoCache:wc,useCacheRefresh:H2};kc.useEffectEvent=y2;var k2={readContext:ct,use:Xi,useCallback:E2,useContext:ct,useEffect:Vc,useImperativeHandle:S2,useInsertionEffect:v2,useLayoutEffect:j2,useMemo:w2,useReducer:Mc,useRef:g2,useState:function(){return Mc(Ta)},useDebugValue:Hc,useDeferredValue:function(e,t){var l=Pe();return Le===null?Lc(l,e,t):N2(l,Le.memoizedState,e,t)},useTransition:function(){var e=Mc(Ta)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:js(e),t]},useSyncExternalStore:t2,useId:V2,useHostTransitionStatus:Dc,useFormState:x2,useActionState:x2,useOptimistic:function(e,t){var l=Pe();return Le!==null?r2(l,Le,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:wc,useCacheRefresh:H2};k2.useEffectEvent=y2;function _c(e,t,l,i){t=e.memoizedState,l=l(i,t),l=l==null?t:b({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var zc={enqueueSetState:function(e,t,l){e=e._reactInternals;var i=Ot(),d=Qa(i);d.payload=t,l!=null&&(d.callback=l),t=Ja(e,d,i),t!==null&&(Ct(t,e,i),gs(t,e,i))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var i=Ot(),d=Qa(i);d.tag=1,d.payload=t,l!=null&&(d.callback=l),t=Ja(e,d,i),t!==null&&(Ct(t,e,i),gs(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Ot(),i=Qa(l);i.tag=2,t!=null&&(i.callback=t),t=Ja(e,i,l),t!==null&&(Ct(t,e,l),gs(t,e,l))}};function _2(e,t,l,i,d,m,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,m,v):t.prototype&&t.prototype.isPureReactComponent?!cs(l,i)||!cs(d,m):!0}function z2(e,t,l,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,i),t.state!==e&&zc.enqueueReplaceState(t,t.state,null)}function kn(e,t){var l=t;if("ref"in t){l={};for(var i in t)i!=="ref"&&(l[i]=t[i])}if(e=e.defaultProps){l===t&&(l=b({},l));for(var d in e)l[d]===void 0&&(l[d]=e[d])}return l}function O2(e){Ti(e)}function B2(e){console.error(e)}function U2(e){Ti(e)}function Wi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function F2(e,t,l){try{var i=e.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Oc(e,t,l){return l=Qa(l),l.tag=3,l.payload={element:null},l.callback=function(){Wi(e,t)},l}function q2(e){return e=Qa(e),e.tag=3,e}function Y2(e,t,l,i){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var m=i.value;e.payload=function(){return d(m)},e.callback=function(){F2(t,l,i)}}var v=l.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){F2(t,l,i),typeof d!="function"&&(nn===null?nn=new Set([this]):nn.add(this));var A=i.stack;this.componentDidCatch(i.value,{componentStack:A!==null?A:""})})}function s3(e,t,l,i,d){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=l.alternate,t!==null&&dl(t,l,d,!0),l=Rt.current,l!==null){switch(l.tag){case 31:case 13:return Qt===null?ur():l.alternate===null&&qe===0&&(qe=3),l.flags&=-257,l.flags|=65536,l.lanes=d,i===Oi?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([i]):t.add(i),u0(e,i,d)),!1;case 22:return l.flags|=65536,i===Oi?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([i]):l.add(i)),u0(e,i,d)),!1}throw Error(o(435,l.tag))}return u0(e,i,d),ur(),!1}if(Ee)return t=Rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=d,i!==lc&&(e=Error(o(422),{cause:i}),fs(Gt(e,l)))):(i!==lc&&(t=Error(o(423),{cause:i}),fs(Gt(t,l))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,i=Gt(i,l),d=Oc(e.stateNode,i,d),pc(e,d),qe!==4&&(qe=2)),!1;var m=Error(o(520),{cause:i});if(m=Gt(m,l),Hs===null?Hs=[m]:Hs.push(m),qe!==4&&(qe=2),t===null)return!0;i=Gt(i,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=d&-d,l.lanes|=e,e=Oc(l.stateNode,i,e),pc(l,e),!1;case 1:if(t=l.type,m=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(nn===null||!nn.has(m))))return l.flags|=65536,d&=-d,l.lanes|=d,d=q2(d),Y2(d,e,l,i),pc(l,d),!1}l=l.return}while(l!==null);return!1}var Bc=Error(o(461)),Je=!1;function ut(e,t,l,i){t.child=e===null?Pd(t,null,l,i):Dn(t,e.child,l,i)}function $2(e,t,l,i,d){l=l.render;var m=t.ref;if("ref"in i){var v={};for(var A in i)A!=="ref"&&(v[A]=i[A])}else v=i;return Vn(t),i=jc(e,t,l,v,m,d),A=Ac(),e!==null&&!Je?(Sc(e,t,d),Va(e,t,d)):(Ee&&A&&ac(t),t.flags|=1,ut(e,t,i,d),t.child)}function G2(e,t,l,i,d){if(e===null){var m=l.type;return typeof m=="function"&&!Io(m)&&m.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=m,X2(e,t,m,i,d)):(e=Zi(l.type,null,i,t,t.mode,d),e.ref=t.ref,e.return=t,t.child=e)}if(m=e.child,!Pc(e,d)){var v=m.memoizedProps;if(l=l.compare,l=l!==null?l:cs,l(v,i)&&e.ref===t.ref)return Va(e,t,d)}return t.flags|=1,e=Ea(m,i),e.ref=t.ref,e.return=t,t.child=e}function X2(e,t,l,i,d){if(e!==null){var m=e.memoizedProps;if(cs(m,i)&&e.ref===t.ref)if(Je=!1,t.pendingProps=i=m,Pc(e,d))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,Va(e,t,d)}return Uc(e,t,l,i,d)}function P2(e,t,l,i){var d=i.children,m=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(m=m!==null?m.baseLanes|l:l,e!==null){for(i=t.child=e.child,d=0;i!==null;)d=d|i.lanes|i.childLanes,i=i.sibling;i=d&~m}else i=0,t.child=null;return K2(e,t,m,l,i)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_i(t,m!==null?m.cachePool:null),m!==null?Jd(t,m):gc(),Wd(t);else return i=t.lanes=536870912,K2(e,t,m!==null?m.baseLanes|l:l,l,i)}else m!==null?(_i(t,m.cachePool),Jd(t,m),Ia(),t.memoizedState=null):(e!==null&&_i(t,null),gc(),Ia());return ut(e,t,d,l),t.child}function Es(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function K2(e,t,l,i,d){var m=dc();return m=m===null?null:{parent:Ke._currentValue,pool:m},t.memoizedState={baseLanes:l,cachePool:m},e!==null&&_i(t,null),gc(),Wd(t),e!==null&&dl(e,t,i,!0),t.childLanes=d,null}function Ii(e,t){return t=tr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Q2(e,t,l){return Dn(t,e.child,null,l),e=Ii(t,t.pendingProps),e.flags|=2,kt(t),t.memoizedState=null,e}function i3(e,t,l){var i=t.pendingProps,d=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(i.mode==="hidden")return e=Ii(t,i),t.lanes=536870912,Es(null,e);if(yc(t),(e=_e)?(e=cm(e,Kt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$a!==null?{id:da,overflow:fa}:null,retryLane:536870912,hydrationErrors:null},l=Zd(e),l.return=t,t.child=l,ot=t,_e=null)):e=null,e===null)throw Xa(t);return t.lanes=536870912,null}return Ii(t,i)}var m=e.memoizedState;if(m!==null){var v=m.dehydrated;if(yc(t),d)if(t.flags&256)t.flags&=-257,t=Q2(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Je||dl(e,t,l,!1),d=(l&e.childLanes)!==0,Je||d){if(i=Re,i!==null&&(v=B1(i,l),v!==0&&v!==m.retryLane))throw m.retryLane=v,Nn(e,v),Ct(i,e,v),Bc;ur(),t=Q2(e,t,l)}else e=m.treeContext,_e=Jt(v.nextSibling),ot=t,Ee=!0,Ga=null,Kt=!1,e!==null&&kd(t,e),t=Ii(t,i),t.flags|=4096;return t}return e=Ea(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function er(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Uc(e,t,l,i,d){return Vn(t),l=jc(e,t,l,i,void 0,d),i=Ac(),e!==null&&!Je?(Sc(e,t,d),Va(e,t,d)):(Ee&&i&&ac(t),t.flags|=1,ut(e,t,l,d),t.child)}function J2(e,t,l,i,d,m){return Vn(t),t.updateQueue=null,l=e2(t,i,l,d),Id(e),i=Ac(),e!==null&&!Je?(Sc(e,t,m),Va(e,t,m)):(Ee&&i&&ac(t),t.flags|=1,ut(e,t,l,m),t.child)}function W2(e,t,l,i,d){if(Vn(t),t.stateNode===null){var m=rl,v=l.contextType;typeof v=="object"&&v!==null&&(m=ct(v)),m=new l(i,m),t.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=zc,t.stateNode=m,m._reactInternals=t,m=t.stateNode,m.props=i,m.state=t.memoizedState,m.refs={},mc(t),v=l.contextType,m.context=typeof v=="object"&&v!==null?ct(v):rl,m.state=t.memoizedState,v=l.getDerivedStateFromProps,typeof v=="function"&&(_c(t,l,v,i),m.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(v=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),v!==m.state&&zc.enqueueReplaceState(m,m.state,null),ys(t,i,m,d),bs(),m.state=t.memoizedState),typeof m.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){m=t.stateNode;var A=t.memoizedProps,M=kn(l,A);m.props=M;var k=m.context,$=l.contextType;v=rl,typeof $=="object"&&$!==null&&(v=ct($));var X=l.getDerivedStateFromProps;$=typeof X=="function"||typeof m.getSnapshotBeforeUpdate=="function",A=t.pendingProps!==A,$||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(A||k!==v)&&z2(t,m,i,v),Ka=!1;var _=t.memoizedState;m.state=_,ys(t,i,m,d),bs(),k=t.memoizedState,A||_!==k||Ka?(typeof X=="function"&&(_c(t,l,X,i),k=t.memoizedState),(M=Ka||_2(t,l,M,i,_,k,v))?($||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(t.flags|=4194308)):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=k),m.props=i,m.state=k,m.context=v,i=M):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{m=t.stateNode,hc(e,t),v=t.memoizedProps,$=kn(l,v),m.props=$,X=t.pendingProps,_=m.context,k=l.contextType,M=rl,typeof k=="object"&&k!==null&&(M=ct(k)),A=l.getDerivedStateFromProps,(k=typeof A=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(v!==X||_!==M)&&z2(t,m,i,M),Ka=!1,_=t.memoizedState,m.state=_,ys(t,i,m,d),bs();var U=t.memoizedState;v!==X||_!==U||Ka||e!==null&&e.dependencies!==null&&Ri(e.dependencies)?(typeof A=="function"&&(_c(t,l,A,i),U=t.memoizedState),($=Ka||_2(t,l,$,i,_,U,M)||e!==null&&e.dependencies!==null&&Ri(e.dependencies))?(k||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(i,U,M),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(i,U,M)),typeof m.componentDidUpdate=="function"&&(t.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof m.componentDidUpdate!="function"||v===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=U),m.props=i,m.state=U,m.context=M,i=$):(typeof m.componentDidUpdate!="function"||v===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),i=!1)}return m=i,er(e,t),i=(t.flags&128)!==0,m||i?(m=t.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:m.render(),t.flags|=1,e!==null&&i?(t.child=Dn(t,e.child,null,d),t.child=Dn(t,null,l,d)):ut(e,t,l,d),t.memoizedState=m.state,e=t.child):e=Va(e,t,d),e}function I2(e,t,l,i){return Cn(),t.flags|=256,ut(e,t,l,i),t.child}var Fc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qc(e){return{baseLanes:e,cachePool:Fd()}}function Yc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=zt),e}function ef(e,t,l){var i=t.pendingProps,d=!1,m=(t.flags&128)!==0,v;if((v=m)||(v=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),v&&(d=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(d?Wa(t):Ia(),(e=_e)?(e=cm(e,Kt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$a!==null?{id:da,overflow:fa}:null,retryLane:536870912,hydrationErrors:null},l=Zd(e),l.return=t,t.child=l,ot=t,_e=null)):e=null,e===null)throw Xa(t);return N0(e)?t.lanes=32:t.lanes=536870912,null}var A=i.children;return i=i.fallback,d?(Ia(),d=t.mode,A=tr({mode:"hidden",children:A},d),i=Mn(i,d,l,null),A.return=t,i.return=t,A.sibling=i,t.child=A,i=t.child,i.memoizedState=qc(l),i.childLanes=Yc(e,v,l),t.memoizedState=Fc,Es(null,i)):(Wa(t),$c(t,A))}var M=e.memoizedState;if(M!==null&&(A=M.dehydrated,A!==null)){if(m)t.flags&256?(Wa(t),t.flags&=-257,t=Gc(e,t,l)):t.memoizedState!==null?(Ia(),t.child=e.child,t.flags|=128,t=null):(Ia(),A=i.fallback,d=t.mode,i=tr({mode:"visible",children:i.children},d),A=Mn(A,d,l,null),A.flags|=2,i.return=t,A.return=t,i.sibling=A,t.child=i,Dn(t,e.child,null,l),i=t.child,i.memoizedState=qc(l),i.childLanes=Yc(e,v,l),t.memoizedState=Fc,t=Es(null,i));else if(Wa(t),N0(A)){if(v=A.nextSibling&&A.nextSibling.dataset,v)var k=v.dgst;v=k,i=Error(o(419)),i.stack="",i.digest=v,fs({value:i,source:null,stack:null}),t=Gc(e,t,l)}else if(Je||dl(e,t,l,!1),v=(l&e.childLanes)!==0,Je||v){if(v=Re,v!==null&&(i=B1(v,l),i!==0&&i!==M.retryLane))throw M.retryLane=i,Nn(e,i),Ct(v,e,i),Bc;w0(A)||ur(),t=Gc(e,t,l)}else w0(A)?(t.flags|=192,t.child=e.child,t=null):(e=M.treeContext,_e=Jt(A.nextSibling),ot=t,Ee=!0,Ga=null,Kt=!1,e!==null&&kd(t,e),t=$c(t,i.children),t.flags|=4096);return t}return d?(Ia(),A=i.fallback,d=t.mode,M=e.child,k=M.sibling,i=Ea(M,{mode:"hidden",children:i.children}),i.subtreeFlags=M.subtreeFlags&65011712,k!==null?A=Ea(k,A):(A=Mn(A,d,l,null),A.flags|=2),A.return=t,i.return=t,i.sibling=A,t.child=i,Es(null,i),i=t.child,A=e.child.memoizedState,A===null?A=qc(l):(d=A.cachePool,d!==null?(M=Ke._currentValue,d=d.parent!==M?{parent:M,pool:M}:d):d=Fd(),A={baseLanes:A.baseLanes|l,cachePool:d}),i.memoizedState=A,i.childLanes=Yc(e,v,l),t.memoizedState=Fc,Es(e.child,i)):(Wa(t),l=e.child,e=l.sibling,l=Ea(l,{mode:"visible",children:i.children}),l.return=t,l.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=l,t.memoizedState=null,l)}function $c(e,t){return t=tr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function tr(e,t){return e=Dt(22,e,null,t),e.lanes=0,e}function Gc(e,t,l){return Dn(t,e.child,null,l),e=$c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tf(e,t,l){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),rc(e.return,t,l)}function Xc(e,t,l,i,d,m){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:d,treeForkCount:m}:(v.isBackwards=t,v.rendering=null,v.renderingStartTime=0,v.last=i,v.tail=l,v.tailMode=d,v.treeForkCount=m)}function af(e,t,l){var i=t.pendingProps,d=i.revealOrder,m=i.tail;i=i.children;var v=Xe.current,A=(v&2)!==0;if(A?(v=v&1|2,t.flags|=128):v&=1,W(Xe,v),ut(e,t,i,l),i=Ee?ds:0,!A&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tf(e,l,t);else if(e.tag===19)tf(e,l,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}switch(d){case"forwards":for(l=t.child,d=null;l!==null;)e=l.alternate,e!==null&&qi(e)===null&&(d=l),l=l.sibling;l=d,l===null?(d=t.child,t.child=null):(d=l.sibling,l.sibling=null),Xc(t,!1,d,l,m,i);break;case"backwards":case"unstable_legacy-backwards":for(l=null,d=t.child,t.child=null;d!==null;){if(e=d.alternate,e!==null&&qi(e)===null){t.child=d;break}e=d.sibling,d.sibling=l,l=d,d=e}Xc(t,!0,l,null,m,i);break;case"together":Xc(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Va(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),an|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(dl(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=Ea(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Ea(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Pc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ri(e)))}function r3(e,t,l){switch(t.tag){case 3:xt(t,t.stateNode.containerInfo),Pa(t,Ke,e.memoizedState.cache),Cn();break;case 27:case 5:Ql(t);break;case 4:xt(t,t.stateNode.containerInfo);break;case 10:Pa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,yc(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Wa(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ef(e,t,l):(Wa(t),e=Va(e,t,l),e!==null?e.sibling:null);Wa(t);break;case 19:var d=(e.flags&128)!==0;if(i=(l&t.childLanes)!==0,i||(dl(e,t,l,!1),i=(l&t.childLanes)!==0),d){if(i)return af(e,t,l);t.flags|=128}if(d=t.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),W(Xe,Xe.current),i)break;return null;case 22:return t.lanes=0,P2(e,t,l,t.pendingProps);case 24:Pa(t,Ke,e.memoizedState.cache)}return Va(e,t,l)}function nf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!Pc(e,l)&&(t.flags&128)===0)return Je=!1,r3(e,t,l);Je=(e.flags&131072)!==0}else Je=!1,Ee&&(t.flags&1048576)!==0&&Rd(t,ds,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Ln(t.elementType),t.type=e,typeof e=="function")Io(e)?(i=kn(e,i),t.tag=1,t=W2(null,t,e,i,l)):(t.tag=0,t=Uc(null,t,e,i,l));else{if(e!=null){var d=e.$$typeof;if(d===Y){t.tag=11,t=$2(null,t,e,i,l);break e}else if(d===z){t.tag=14,t=G2(null,t,e,i,l);break e}}throw t=K(e)||e,Error(o(306,t,""))}}return t;case 0:return Uc(e,t,t.type,t.pendingProps,l);case 1:return i=t.type,d=kn(i,t.pendingProps),W2(e,t,i,d,l);case 3:e:{if(xt(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var m=t.memoizedState;d=m.element,hc(e,t),ys(t,i,null,l);var v=t.memoizedState;if(i=v.cache,Pa(t,Ke,i),i!==m.cache&&oc(t,[Ke],l,!0),bs(),i=v.element,m.isDehydrated)if(m={element:i,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=m,t.memoizedState=m,t.flags&256){t=I2(e,t,i,l);break e}else if(i!==d){d=Gt(Error(o(424)),t),fs(d),t=I2(e,t,i,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(_e=Jt(e.firstChild),ot=t,Ee=!0,Ga=null,Kt=!0,l=Pd(t,null,i,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Cn(),i===d){t=Va(e,t,l);break e}ut(e,t,i,l)}t=t.child}return t;case 26:return er(e,t),e===null?(l=pm(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ee||(l=t.type,e=t.pendingProps,i=gr(ye.current).createElement(l),i[rt]=t,i[At]=e,dt(i,l,e),lt(i),t.stateNode=i):t.memoizedState=pm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ql(t),e===null&&Ee&&(i=t.stateNode=fm(t.type,t.pendingProps,ye.current),ot=t,Kt=!0,d=_e,on(t.type)?(M0=d,_e=Jt(i.firstChild)):_e=d),ut(e,t,t.pendingProps.children,l),er(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((d=i=_e)&&(i=_3(i,t.type,t.pendingProps,Kt),i!==null?(t.stateNode=i,ot=t,_e=Jt(i.firstChild),Kt=!1,d=!0):d=!1),d||Xa(t)),Ql(t),d=t.type,m=t.pendingProps,v=e!==null?e.memoizedProps:null,i=m.children,A0(d,m)?i=null:v!==null&&A0(d,v)&&(t.flags|=32),t.memoizedState!==null&&(d=jc(e,t,Wx,null,null,l),Os._currentValue=d),er(e,t),ut(e,t,i,l),t.child;case 6:return e===null&&Ee&&((e=l=_e)&&(l=z3(l,t.pendingProps,Kt),l!==null?(t.stateNode=l,ot=t,_e=null,e=!0):e=!1),e||Xa(t)),null;case 13:return ef(e,t,l);case 4:return xt(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Dn(t,null,i,l):ut(e,t,i,l),t.child;case 11:return $2(e,t,t.type,t.pendingProps,l);case 7:return ut(e,t,t.pendingProps,l),t.child;case 8:return ut(e,t,t.pendingProps.children,l),t.child;case 12:return ut(e,t,t.pendingProps.children,l),t.child;case 10:return i=t.pendingProps,Pa(t,t.type,i.value),ut(e,t,i.children,l),t.child;case 9:return d=t.type._context,i=t.pendingProps.children,Vn(t),d=ct(d),i=i(d),t.flags|=1,ut(e,t,i,l),t.child;case 14:return G2(e,t,t.type,t.pendingProps,l);case 15:return X2(e,t,t.type,t.pendingProps,l);case 19:return af(e,t,l);case 31:return i3(e,t,l);case 22:return P2(e,t,l,t.pendingProps);case 24:return Vn(t),i=ct(Ke),e===null?(d=dc(),d===null&&(d=Re,m=cc(),d.pooledCache=m,m.refCount++,m!==null&&(d.pooledCacheLanes|=l),d=m),t.memoizedState={parent:i,cache:d},mc(t),Pa(t,Ke,d)):((e.lanes&l)!==0&&(hc(e,t),ys(t,null,null,l),bs()),d=e.memoizedState,m=t.memoizedState,d.parent!==i?(d={parent:i,cache:i},t.memoizedState=d,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=d),Pa(t,Ke,i)):(i=m.cache,Pa(t,Ke,i),i!==d.cache&&oc(t,[Ke],l,!0))),ut(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Ha(e){e.flags|=4}function Kc(e,t,l,i,d){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(Hf())e.flags|=8192;else throw Zn=Oi,fc}else e.flags&=-16777217}function lf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!vm(t))if(Hf())e.flags|=8192;else throw Zn=Oi,fc}function ar(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?_1():536870912,e.lanes|=t,Sl|=t)}function ws(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,i=0;if(t)for(var d=e.child;d!==null;)l|=d.lanes|d.childLanes,i|=d.subtreeFlags&65011712,i|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)l|=d.lanes|d.childLanes,i|=d.subtreeFlags,i|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=i,e.childLanes=l,t}function o3(e,t,l){var i=t.pendingProps;switch(nc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return ze(t),null;case 3:return l=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Ma(Ke),Ge(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ul(t)?Ha(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sc())),ze(t),null;case 26:var d=t.type,m=t.memoizedState;return e===null?(Ha(t),m!==null?(ze(t),lf(t,m)):(ze(t),Kc(t,d,null,i,l))):m?m!==e.memoizedState?(Ha(t),ze(t),lf(t,m)):(ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Ha(t),ze(t),Kc(t,d,e,i,l)),null;case 27:if(mi(t),l=ye.current,d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Ha(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return ze(t),null}e=se.current,ul(t)?_d(t):(e=fm(d,i,l),t.stateNode=e,Ha(t))}return ze(t),null;case 5:if(mi(t),d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Ha(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return ze(t),null}if(m=se.current,ul(t))_d(t);else{var v=gr(ye.current);switch(m){case 1:m=v.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:m=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":m=v.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":m=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":m=v.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof i.is=="string"?v.createElement("select",{is:i.is}):v.createElement("select"),i.multiple?m.multiple=!0:i.size&&(m.size=i.size);break;default:m=typeof i.is=="string"?v.createElement(d,{is:i.is}):v.createElement(d)}}m[rt]=t,m[At]=i;e:for(v=t.child;v!==null;){if(v.tag===5||v.tag===6)m.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===t)break e;for(;v.sibling===null;){if(v.return===null||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}t.stateNode=m;e:switch(dt(m,d,i),d){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Ha(t)}}return ze(t),Kc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Ha(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(e=ye.current,ul(t)){if(e=t.stateNode,l=t.memoizedProps,i=null,d=ot,d!==null)switch(d.tag){case 27:case 5:i=d.memoizedProps}e[rt]=t,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||tm(e.nodeValue,l)),e||Xa(t,!0)}else e=gr(e).createTextNode(i),e[rt]=t,t.stateNode=e}return ze(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(i=ul(t),l!==null){if(e===null){if(!i)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[rt]=t}else Cn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),e=!1}else l=sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(kt(t),t):(kt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return ze(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=ul(t),i!==null&&i.dehydrated!==null){if(e===null){if(!d)throw Error(o(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(o(317));d[rt]=t}else Cn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),d=!1}else d=sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return t.flags&256?(kt(t),t):(kt(t),null)}return kt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=i!==null,e=e!==null&&e.memoizedState!==null,l&&(i=t.child,d=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(d=i.alternate.memoizedState.cachePool.pool),m=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(m=i.memoizedState.cachePool.pool),m!==d&&(i.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),ar(t,t.updateQueue),ze(t),null);case 4:return Ge(),e===null&&g0(t.stateNode.containerInfo),ze(t),null;case 10:return Ma(t.type),ze(t),null;case 19:if(P(Xe),i=t.memoizedState,i===null)return ze(t),null;if(d=(t.flags&128)!==0,m=i.rendering,m===null)if(d)ws(i,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(m=qi(e),m!==null){for(t.flags|=128,ws(i,!1),e=m.updateQueue,t.updateQueue=e,ar(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Ld(l,e),l=l.sibling;return W(Xe,Xe.current&1|2),Ee&&wa(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Vt()>rr&&(t.flags|=128,d=!0,ws(i,!1),t.lanes=4194304)}else{if(!d)if(e=qi(m),e!==null){if(t.flags|=128,d=!0,e=e.updateQueue,t.updateQueue=e,ar(t,e),ws(i,!0),i.tail===null&&i.tailMode==="hidden"&&!m.alternate&&!Ee)return ze(t),null}else 2*Vt()-i.renderingStartTime>rr&&l!==536870912&&(t.flags|=128,d=!0,ws(i,!1),t.lanes=4194304);i.isBackwards?(m.sibling=t.child,t.child=m):(e=i.last,e!==null?e.sibling=m:t.child=m,i.last=m)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Vt(),e.sibling=null,l=Xe.current,W(Xe,d?l&1|2:l&1),Ee&&wa(t,i.treeForkCount),e):(ze(t),null);case 22:case 23:return kt(t),bc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(l&536870912)!==0&&(t.flags&128)===0&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),l=t.updateQueue,l!==null&&ar(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==l&&(t.flags|=2048),e!==null&&P(Hn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ma(Ke),ze(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function c3(e,t){switch(nc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ma(Ke),Ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return mi(t),null;case 31:if(t.memoizedState!==null){if(kt(t),t.alternate===null)throw Error(o(340));Cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return P(Xe),null;case 4:return Ge(),null;case 10:return Ma(t.type),null;case 22:case 23:return kt(t),bc(),e!==null&&P(Hn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ma(Ke),null;case 25:return null;default:return null}}function sf(e,t){switch(nc(t),t.tag){case 3:Ma(Ke),Ge();break;case 26:case 27:case 5:mi(t);break;case 4:Ge();break;case 31:t.memoizedState!==null&&kt(t);break;case 13:kt(t);break;case 19:P(Xe);break;case 10:Ma(t.type);break;case 22:case 23:kt(t),bc(),e!==null&&P(Hn);break;case 24:Ma(Ke)}}function Ns(e,t){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var d=i.next;l=d;do{if((l.tag&e)===e){i=void 0;var m=l.create,v=l.inst;i=m(),v.destroy=i}l=l.next}while(l!==d)}}catch(A){He(t,t.return,A)}}function en(e,t,l){try{var i=t.updateQueue,d=i!==null?i.lastEffect:null;if(d!==null){var m=d.next;i=m;do{if((i.tag&e)===e){var v=i.inst,A=v.destroy;if(A!==void 0){v.destroy=void 0,d=t;var M=l,k=A;try{k()}catch($){He(d,M,$)}}}i=i.next}while(i!==m)}}catch($){He(t,t.return,$)}}function rf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Qd(t,l)}catch(i){He(e,e.return,i)}}}function of(e,t,l){l.props=kn(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){He(e,t,i)}}function Ms(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof l=="function"?e.refCleanup=l(i):l.current=i}}catch(d){He(e,t,d)}}function ma(e,t){var l=e.ref,i=e.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(d){He(e,t,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(d){He(e,t,d)}else l.current=null}function cf(e){var t=e.type,l=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&i.focus();break e;case"img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet)}}catch(d){He(e,e.return,d)}}function Qc(e,t,l){try{var i=e.stateNode;H3(i,e.type,l,t),i[At]=t}catch(d){He(e,e.return,d)}}function uf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&on(e.type)||e.tag===4}function Jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uf(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.tag===27&&on(e.type)||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 Wc(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Aa));else if(i!==4&&(i===27&&on(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Wc(e,t,l),e=e.sibling;e!==null;)Wc(e,t,l),e=e.sibling}function nr(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(i!==4&&(i===27&&on(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(nr(e,t,l),e=e.sibling;e!==null;)nr(e,t,l),e=e.sibling}function df(e){var t=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,d=t.attributes;d.length;)t.removeAttributeNode(d[0]);dt(t,i,l),t[rt]=e,t[At]=l}catch(m){He(e,e.return,m)}}var La=!1,We=!1,Ic=!1,ff=typeof WeakSet=="function"?WeakSet:Set,st=null;function u3(e,t){if(e=e.containerInfo,v0=Er,e=Sd(e),Go(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var d=i.anchorOffset,m=i.focusNode;i=i.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var v=0,A=-1,M=-1,k=0,$=0,X=e,_=null;t:for(;;){for(var U;X!==l||d!==0&&X.nodeType!==3||(A=v+d),X!==m||i!==0&&X.nodeType!==3||(M=v+i),X.nodeType===3&&(v+=X.nodeValue.length),(U=X.firstChild)!==null;)_=X,X=U;for(;;){if(X===e)break t;if(_===l&&++k===d&&(A=v),_===m&&++$===i&&(M=v),(U=X.nextSibling)!==null)break;X=_,_=X.parentNode}X=U}l=A===-1||M===-1?null:{start:A,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(j0={focusedElem:e,selectionRange:l},Er=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,m=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)d=e[l],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&m!==null){e=void 0,l=t,d=m.memoizedProps,m=m.memoizedState,i=l.stateNode;try{var te=kn(l.type,d);e=i.getSnapshotBeforeUpdate(te,m),i.__reactInternalSnapshotBeforeUpdate=e}catch(ce){He(l,l.return,ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)E0(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":E0(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,st=e;break}st=t.return}}function mf(e,t,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:Da(e,l),i&4&&Ns(5,l);break;case 1:if(Da(e,l),i&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(v){He(l,l.return,v)}else{var d=kn(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(d,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){He(l,l.return,v)}}i&64&&rf(l),i&512&&Ms(l,l.return);break;case 3:if(Da(e,l),i&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Qd(e,t)}catch(v){He(l,l.return,v)}}break;case 27:t===null&&i&4&&df(l);case 26:case 5:Da(e,l),t===null&&i&4&&cf(l),i&512&&Ms(l,l.return);break;case 12:Da(e,l);break;case 31:Da(e,l),i&4&&xf(e,l);break;case 13:Da(e,l),i&4&&gf(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=y3.bind(null,l),O3(e,l))));break;case 22:if(i=l.memoizedState!==null||La,!i){t=t!==null&&t.memoizedState!==null||We,d=La;var m=We;La=i,(We=t)&&!m?Ra(e,l,(l.subtreeFlags&8772)!==0):Da(e,l),La=d,We=m}break;case 30:break;default:Da(e,l)}}function hf(e){var t=e.alternate;t!==null&&(e.alternate=null,hf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&To(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Oe=null,Et=!1;function Za(e,t,l){for(l=l.child;l!==null;)pf(e,t,l),l=l.sibling}function pf(e,t,l){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(Jl,l)}catch{}switch(l.tag){case 26:We||ma(l,t),Za(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:We||ma(l,t);var i=Oe,d=Et;on(l.type)&&(Oe=l.stateNode,Et=!1),Za(e,t,l),ks(l.stateNode),Oe=i,Et=d;break;case 5:We||ma(l,t);case 6:if(i=Oe,d=Et,Oe=null,Za(e,t,l),Oe=i,Et=d,Oe!==null)if(Et)try{(Oe.nodeType===9?Oe.body:Oe.nodeName==="HTML"?Oe.ownerDocument.body:Oe).removeChild(l.stateNode)}catch(m){He(l,t,m)}else try{Oe.removeChild(l.stateNode)}catch(m){He(l,t,m)}break;case 18:Oe!==null&&(Et?(e=Oe,rm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Hl(e)):rm(Oe,l.stateNode));break;case 4:i=Oe,d=Et,Oe=l.stateNode.containerInfo,Et=!0,Za(e,t,l),Oe=i,Et=d;break;case 0:case 11:case 14:case 15:en(2,l,t),We||en(4,l,t),Za(e,t,l);break;case 1:We||(ma(l,t),i=l.stateNode,typeof i.componentWillUnmount=="function"&&of(l,t,i)),Za(e,t,l);break;case 21:Za(e,t,l);break;case 22:We=(i=We)||l.memoizedState!==null,Za(e,t,l),We=i;break;default:Za(e,t,l)}}function xf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hl(e)}catch(l){He(t,t.return,l)}}}function gf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hl(e)}catch(l){He(t,t.return,l)}}function d3(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ff),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ff),t;default:throw Error(o(435,e.tag))}}function lr(e,t){var l=d3(e);t.forEach(function(i){if(!l.has(i)){l.add(i);var d=v3.bind(null,e,i);i.then(d,d)}})}function wt(e,t){var l=t.deletions;if(l!==null)for(var i=0;i<l.length;i++){var d=l[i],m=e,v=t,A=v;e:for(;A!==null;){switch(A.tag){case 27:if(on(A.type)){Oe=A.stateNode,Et=!1;break e}break;case 5:Oe=A.stateNode,Et=!1;break e;case 3:case 4:Oe=A.stateNode.containerInfo,Et=!0;break e}A=A.return}if(Oe===null)throw Error(o(160));pf(m,v,d),Oe=null,Et=!1,m=d.alternate,m!==null&&(m.return=null),d.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bf(t,e),t=t.sibling}var la=null;function bf(e,t){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wt(t,e),Nt(e),i&4&&(en(3,e,e.return),Ns(3,e),en(5,e,e.return));break;case 1:wt(t,e),Nt(e),i&512&&(We||l===null||ma(l,l.return)),i&64&&La&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?i:l.concat(i))));break;case 26:var d=la;if(wt(t,e),Nt(e),i&512&&(We||l===null||ma(l,l.return)),i&4){var m=l!==null?l.memoizedState:null;if(i=e.memoizedState,l===null)if(i===null)if(e.stateNode===null){e:{i=e.type,l=e.memoizedProps,d=d.ownerDocument||d;t:switch(i){case"title":m=d.getElementsByTagName("title")[0],(!m||m[es]||m[rt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=d.createElement(i),d.head.insertBefore(m,d.querySelector("head > title"))),dt(m,i,l),m[rt]=e,lt(m),i=m;break e;case"link":var v=bm("link","href",d).get(i+(l.href||""));if(v){for(var A=0;A<v.length;A++)if(m=v[A],m.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&m.getAttribute("rel")===(l.rel==null?null:l.rel)&&m.getAttribute("title")===(l.title==null?null:l.title)&&m.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){v.splice(A,1);break t}}m=d.createElement(i),dt(m,i,l),d.head.appendChild(m);break;case"meta":if(v=bm("meta","content",d).get(i+(l.content||""))){for(A=0;A<v.length;A++)if(m=v[A],m.getAttribute("content")===(l.content==null?null:""+l.content)&&m.getAttribute("name")===(l.name==null?null:l.name)&&m.getAttribute("property")===(l.property==null?null:l.property)&&m.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&m.getAttribute("charset")===(l.charSet==null?null:l.charSet)){v.splice(A,1);break t}}m=d.createElement(i),dt(m,i,l),d.head.appendChild(m);break;default:throw Error(o(468,i))}m[rt]=e,lt(m),i=m}e.stateNode=i}else ym(d,e.type,e.stateNode);else e.stateNode=gm(d,i,e.memoizedProps);else m!==i?(m===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):m.count--,i===null?ym(d,e.type,e.stateNode):gm(d,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Qc(e,e.memoizedProps,l.memoizedProps)}break;case 27:wt(t,e),Nt(e),i&512&&(We||l===null||ma(l,l.return)),l!==null&&i&4&&Qc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(wt(t,e),Nt(e),i&512&&(We||l===null||ma(l,l.return)),e.flags&32){d=e.stateNode;try{el(d,"")}catch(te){He(e,e.return,te)}}i&4&&e.stateNode!=null&&(d=e.memoizedProps,Qc(e,d,l!==null?l.memoizedProps:d)),i&1024&&(Ic=!0);break;case 6:if(wt(t,e),Nt(e),i&4){if(e.stateNode===null)throw Error(o(162));i=e.memoizedProps,l=e.stateNode;try{l.nodeValue=i}catch(te){He(e,e.return,te)}}break;case 3:if(vr=null,d=la,la=br(t.containerInfo),wt(t,e),la=d,Nt(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{Hl(t.containerInfo)}catch(te){He(e,e.return,te)}Ic&&(Ic=!1,yf(e));break;case 4:i=la,la=br(e.stateNode.containerInfo),wt(t,e),Nt(e),la=i;break;case 12:wt(t,e),Nt(e);break;case 31:wt(t,e),Nt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,lr(e,i)));break;case 13:wt(t,e),Nt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ir=Vt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,lr(e,i)));break;case 22:d=e.memoizedState!==null;var M=l!==null&&l.memoizedState!==null,k=La,$=We;if(La=k||d,We=$||M,wt(t,e),We=$,La=k,Nt(e),i&8192)e:for(t=e.stateNode,t._visibility=d?t._visibility&-2:t._visibility|1,d&&(l===null||M||La||We||_n(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){M=l=t;try{if(m=M.stateNode,d)v=m.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{A=M.stateNode;var X=M.memoizedProps.style,_=X!=null&&X.hasOwnProperty("display")?X.display:null;A.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(te){He(M,M.return,te)}}}else if(t.tag===6){if(l===null){M=t;try{M.stateNode.nodeValue=d?"":M.memoizedProps}catch(te){He(M,M.return,te)}}}else if(t.tag===18){if(l===null){M=t;try{var U=M.stateNode;d?om(U,!0):om(M.stateNode,!1)}catch(te){He(M,M.return,te)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(l=i.retryQueue,l!==null&&(i.retryQueue=null,lr(e,l))));break;case 19:wt(t,e),Nt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,lr(e,i)));break;case 30:break;case 21:break;default:wt(t,e),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{for(var l,i=e.return;i!==null;){if(uf(i)){l=i;break}i=i.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var d=l.stateNode,m=Jc(e);nr(e,m,d);break;case 5:var v=l.stateNode;l.flags&32&&(el(v,""),l.flags&=-33);var A=Jc(e);nr(e,A,v);break;case 3:case 4:var M=l.stateNode.containerInfo,k=Jc(e);Wc(e,k,M);break;default:throw Error(o(161))}}catch($){He(e,e.return,$)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Da(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mf(e,t.alternate,t),t=t.sibling}function _n(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:en(4,t,t.return),_n(t);break;case 1:ma(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&of(t,t.return,l),_n(t);break;case 27:ks(t.stateNode);case 26:case 5:ma(t,t.return),_n(t);break;case 22:t.memoizedState===null&&_n(t);break;case 30:_n(t);break;default:_n(t)}e=e.sibling}}function Ra(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,d=e,m=t,v=m.flags;switch(m.tag){case 0:case 11:case 15:Ra(d,m,l),Ns(4,m);break;case 1:if(Ra(d,m,l),i=m,d=i.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(k){He(i,i.return,k)}if(i=m,d=i.updateQueue,d!==null){var A=i.stateNode;try{var M=d.shared.hiddenCallbacks;if(M!==null)for(d.shared.hiddenCallbacks=null,d=0;d<M.length;d++)Kd(M[d],A)}catch(k){He(i,i.return,k)}}l&&v&64&&rf(m),Ms(m,m.return);break;case 27:df(m);case 26:case 5:Ra(d,m,l),l&&i===null&&v&4&&cf(m),Ms(m,m.return);break;case 12:Ra(d,m,l);break;case 31:Ra(d,m,l),l&&v&4&&xf(d,m);break;case 13:Ra(d,m,l),l&&v&4&&gf(d,m);break;case 22:m.memoizedState===null&&Ra(d,m,l),Ms(m,m.return);break;case 30:break;default:Ra(d,m,l)}t=t.sibling}}function e0(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&ms(l))}function t0(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ms(e))}function sa(e,t,l,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)vf(e,t,l,i),t=t.sibling}function vf(e,t,l,i){var d=t.flags;switch(t.tag){case 0:case 11:case 15:sa(e,t,l,i),d&2048&&Ns(9,t);break;case 1:sa(e,t,l,i);break;case 3:sa(e,t,l,i),d&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ms(e)));break;case 12:if(d&2048){sa(e,t,l,i),e=t.stateNode;try{var m=t.memoizedProps,v=m.id,A=m.onPostCommit;typeof A=="function"&&A(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){He(t,t.return,M)}}else sa(e,t,l,i);break;case 31:sa(e,t,l,i);break;case 13:sa(e,t,l,i);break;case 23:break;case 22:m=t.stateNode,v=t.alternate,t.memoizedState!==null?m._visibility&2?sa(e,t,l,i):Cs(e,t):m._visibility&2?sa(e,t,l,i):(m._visibility|=2,vl(e,t,l,i,(t.subtreeFlags&10256)!==0||!1)),d&2048&&e0(v,t);break;case 24:sa(e,t,l,i),d&2048&&t0(t.alternate,t);break;default:sa(e,t,l,i)}}function vl(e,t,l,i,d){for(d=d&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var m=e,v=t,A=l,M=i,k=v.flags;switch(v.tag){case 0:case 11:case 15:vl(m,v,A,M,d),Ns(8,v);break;case 23:break;case 22:var $=v.stateNode;v.memoizedState!==null?$._visibility&2?vl(m,v,A,M,d):Cs(m,v):($._visibility|=2,vl(m,v,A,M,d)),d&&k&2048&&e0(v.alternate,v);break;case 24:vl(m,v,A,M,d),d&&k&2048&&t0(v.alternate,v);break;default:vl(m,v,A,M,d)}t=t.sibling}}function Cs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,i=t,d=i.flags;switch(i.tag){case 22:Cs(l,i),d&2048&&e0(i.alternate,i);break;case 24:Cs(l,i),d&2048&&t0(i.alternate,i);break;default:Cs(l,i)}t=t.sibling}}var Ts=8192;function jl(e,t,l){if(e.subtreeFlags&Ts)for(e=e.child;e!==null;)jf(e,t,l),e=e.sibling}function jf(e,t,l){switch(e.tag){case 26:jl(e,t,l),e.flags&Ts&&e.memoizedState!==null&&J3(l,la,e.memoizedState,e.memoizedProps);break;case 5:jl(e,t,l);break;case 3:case 4:var i=la;la=br(e.stateNode.containerInfo),jl(e,t,l),la=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Ts,Ts=16777216,jl(e,t,l),Ts=i):jl(e,t,l));break;default:jl(e,t,l)}}function Af(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Vs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];st=i,Ef(i,e)}Af(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Sf(e),e=e.sibling}function Sf(e){switch(e.tag){case 0:case 11:case 15:Vs(e),e.flags&2048&&en(9,e,e.return);break;case 3:Vs(e);break;case 12:Vs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,sr(e)):Vs(e);break;default:Vs(e)}}function sr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];st=i,Ef(i,e)}Af(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:en(8,t,t.return),sr(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,sr(t));break;default:sr(t)}e=e.sibling}}function Ef(e,t){for(;st!==null;){var l=st;switch(l.tag){case 0:case 11:case 15:en(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:ms(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,st=i;else e:for(l=e;st!==null;){i=st;var d=i.sibling,m=i.return;if(hf(i),i===l){st=null;break e}if(d!==null){d.return=m,st=d;break e}st=m}}}var f3={getCacheForType:function(e){var t=ct(Ke),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return ct(Ke).controller.signal}},m3=typeof WeakMap=="function"?WeakMap:Map,Ce=0,Re=null,ve=null,Ae=0,Ve=0,_t=null,tn=!1,Al=!1,a0=!1,ka=0,qe=0,an=0,zn=0,n0=0,zt=0,Sl=0,Hs=null,Mt=null,l0=!1,ir=0,wf=0,rr=1/0,or=null,nn=null,et=0,ln=null,El=null,_a=0,s0=0,i0=null,Nf=null,Ls=0,r0=null;function Ot(){return(Ce&2)!==0&&Ae!==0?Ae&-Ae:O.T!==null?m0():U1()}function Mf(){if(zt===0)if((Ae&536870912)===0||Ee){var e=xi;xi<<=1,(xi&3932160)===0&&(xi=262144),zt=e}else zt=536870912;return e=Rt.current,e!==null&&(e.flags|=32),zt}function Ct(e,t,l){(e===Re&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)&&(wl(e,0),sn(e,Ae,zt,!1)),Il(e,l),((Ce&2)===0||e!==Re)&&(e===Re&&((Ce&2)===0&&(zn|=l),qe===4&&sn(e,Ae,zt,!1)),ha(e))}function Cf(e,t,l){if((Ce&6)!==0)throw Error(o(327));var i=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Wl(e,t),d=i?x3(e,t):c0(e,t,!0),m=i;do{if(d===0){Al&&!i&&sn(e,t,0,!1);break}else{if(l=e.current.alternate,m&&!h3(l)){d=c0(e,t,!1),m=!1;continue}if(d===2){if(m=t,e.errorRecoveryDisabledLanes&m)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var A=e;d=Hs;var M=A.current.memoizedState.isDehydrated;if(M&&(wl(A,v).flags|=256),v=c0(A,v,!1),v!==2){if(a0&&!M){A.errorRecoveryDisabledLanes|=m,zn|=m,d=4;break e}m=Mt,Mt=d,m!==null&&(Mt===null?Mt=m:Mt.push.apply(Mt,m))}d=v}if(m=!1,d!==2)continue}}if(d===1){wl(e,0),sn(e,t,0,!0);break}e:{switch(i=e,m=d,m){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:sn(i,t,zt,!tn);break e;case 2:Mt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(d=ir+300-Vt(),10<d)){if(sn(i,t,zt,!tn),bi(i,0,!0)!==0)break e;_a=t,i.timeoutHandle=sm(Tf.bind(null,i,l,Mt,or,l0,t,zt,zn,Sl,tn,m,"Throttled",-0,0),d);break e}Tf(i,l,Mt,or,l0,t,zt,zn,Sl,tn,m,null,-0,0)}}break}while(!0);ha(e)}function Tf(e,t,l,i,d,m,v,A,M,k,$,X,_,U){if(e.timeoutHandle=-1,X=t.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Aa},jf(t,m,X);var te=(m&62914560)===m?ir-Vt():(m&4194048)===m?wf-Vt():0;if(te=W3(X,te),te!==null){_a=m,e.cancelPendingCommit=te(_f.bind(null,e,t,m,l,i,d,v,A,M,$,X,null,_,U)),sn(e,m,v,!k);return}}_f(e,t,m,l,i,d,v,A,M)}function h3(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var i=0;i<l.length;i++){var d=l[i],m=d.getSnapshot;d=d.value;try{if(!Zt(m(),d))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 sn(e,t,l,i){t&=~n0,t&=~zn,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var d=t;0<d;){var m=31-Lt(d),v=1<<m;i[m]=-1,d&=~v}l!==0&&z1(e,l,t)}function cr(){return(Ce&6)===0?(Zs(0),!1):!0}function o0(){if(ve!==null){if(Ve===0)var e=ve.return;else e=ve,Na=Tn=null,Ec(e),pl=null,ps=0,e=ve;for(;e!==null;)sf(e.alternate,e),e=e.return;ve=null}}function wl(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,D3(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),_a=0,o0(),Re=e,ve=l=Ea(e.current,null),Ae=t,Ve=0,_t=null,tn=!1,Al=Wl(e,t),a0=!1,Sl=zt=n0=zn=an=qe=0,Mt=Hs=null,l0=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var d=31-Lt(i),m=1<<d;t|=e[d],i&=~m}return ka=t,Vi(),l}function Vf(e,t){he=null,O.H=Ss,t===hl||t===zi?(t=$d(),Ve=3):t===fc?(t=$d(),Ve=4):Ve=t===Bc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,_t=t,ve===null&&(qe=1,Wi(e,Gt(t,e.current)))}function Hf(){var e=Rt.current;return e===null?!0:(Ae&4194048)===Ae?Qt===null:(Ae&62914560)===Ae||(Ae&536870912)!==0?e===Qt:!1}function Lf(){var e=O.H;return O.H=Ss,e===null?Ss:e}function Zf(){var e=O.A;return O.A=f3,e}function ur(){qe=4,tn||(Ae&4194048)!==Ae&&Rt.current!==null||(Al=!0),(an&134217727)===0&&(zn&134217727)===0||Re===null||sn(Re,Ae,zt,!1)}function c0(e,t,l){var i=Ce;Ce|=2;var d=Lf(),m=Zf();(Re!==e||Ae!==t)&&(or=null,wl(e,t)),t=!1;var v=qe;e:do try{if(Ve!==0&&ve!==null){var A=ve,M=_t;switch(Ve){case 8:o0(),v=6;break e;case 3:case 2:case 9:case 6:Rt.current===null&&(t=!0);var k=Ve;if(Ve=0,_t=null,Nl(e,A,M,k),l&&Al){v=0;break e}break;default:k=Ve,Ve=0,_t=null,Nl(e,A,M,k)}}p3(),v=qe;break}catch($){Vf(e,$)}while(!0);return t&&e.shellSuspendCounter++,Na=Tn=null,Ce=i,O.H=d,O.A=m,ve===null&&(Re=null,Ae=0,Vi()),v}function p3(){for(;ve!==null;)Df(ve)}function x3(e,t){var l=Ce;Ce|=2;var i=Lf(),d=Zf();Re!==e||Ae!==t?(or=null,rr=Vt()+500,wl(e,t)):Al=Wl(e,t);e:do try{if(Ve!==0&&ve!==null){t=ve;var m=_t;t:switch(Ve){case 1:Ve=0,_t=null,Nl(e,t,m,1);break;case 2:case 9:if(qd(m)){Ve=0,_t=null,Rf(t);break}t=function(){Ve!==2&&Ve!==9||Re!==e||(Ve=7),ha(e)},m.then(t,t);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:qd(m)?(Ve=0,_t=null,Rf(t)):(Ve=0,_t=null,Nl(e,t,m,7));break;case 5:var v=null;switch(ve.tag){case 26:v=ve.memoizedState;case 5:case 27:var A=ve;if(v?vm(v):A.stateNode.complete){Ve=0,_t=null;var M=A.sibling;if(M!==null)ve=M;else{var k=A.return;k!==null?(ve=k,dr(k)):ve=null}break t}}Ve=0,_t=null,Nl(e,t,m,5);break;case 6:Ve=0,_t=null,Nl(e,t,m,6);break;case 8:o0(),qe=6;break e;default:throw Error(o(462))}}g3();break}catch($){Vf(e,$)}while(!0);return Na=Tn=null,O.H=i,O.A=d,Ce=l,ve!==null?0:(Re=null,Ae=0,Vi(),qe)}function g3(){for(;ve!==null&&!Bp();)Df(ve)}function Df(e){var t=nf(e.alternate,e,ka);e.memoizedProps=e.pendingProps,t===null?dr(e):ve=t}function Rf(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=J2(l,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=J2(l,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:Ec(t);default:sf(l,t),t=ve=Ld(t,ka),t=nf(l,t,ka)}e.memoizedProps=e.pendingProps,t===null?dr(e):ve=t}function Nl(e,t,l,i){Na=Tn=null,Ec(t),pl=null,ps=0;var d=t.return;try{if(s3(e,d,t,l,Ae)){qe=1,Wi(e,Gt(l,e.current)),ve=null;return}}catch(m){if(d!==null)throw ve=d,m;qe=1,Wi(e,Gt(l,e.current)),ve=null;return}t.flags&32768?(Ee||i===1?e=!0:Al||(Ae&536870912)!==0?e=!1:(tn=e=!0,(i===2||i===9||i===3||i===6)&&(i=Rt.current,i!==null&&i.tag===13&&(i.flags|=16384))),kf(t,e)):dr(t)}function dr(e){var t=e;do{if((t.flags&32768)!==0){kf(t,tn);return}e=t.return;var l=o3(t.alternate,t,ka);if(l!==null){ve=l;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);qe===0&&(qe=5)}function kf(e,t){do{var l=c3(e.alternate,e);if(l!==null){l.flags&=32767,ve=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ve=e;return}ve=e=l}while(e!==null);qe=6,ve=null}function _f(e,t,l,i,d,m,v,A,M){e.cancelPendingCommit=null;do fr();while(et!==0);if((Ce&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(m=t.lanes|t.childLanes,m|=Jo,Qp(e,l,m,v,A,M),e===Re&&(ve=Re=null,Ae=0),El=t,ln=e,_a=l,s0=m,i0=d,Nf=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,j3(hi,function(){return Ff(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=O.T,O.T=null,d=B.p,B.p=2,v=Ce,Ce|=4;try{u3(e,t,l)}finally{Ce=v,B.p=d,O.T=i}}et=1,zf(),Of(),Bf()}}function zf(){if(et===1){et=0;var e=ln,t=El,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var i=B.p;B.p=2;var d=Ce;Ce|=4;try{bf(t,e);var m=j0,v=Sd(e.containerInfo),A=m.focusedElem,M=m.selectionRange;if(v!==A&&A&&A.ownerDocument&&Ad(A.ownerDocument.documentElement,A)){if(M!==null&&Go(A)){var k=M.start,$=M.end;if($===void 0&&($=k),"selectionStart"in A)A.selectionStart=k,A.selectionEnd=Math.min($,A.value.length);else{var X=A.ownerDocument||document,_=X&&X.defaultView||window;if(_.getSelection){var U=_.getSelection(),te=A.textContent.length,ce=Math.min(M.start,te),De=M.end===void 0?ce:Math.min(M.end,te);!U.extend&&ce>De&&(v=De,De=ce,ce=v);var Z=jd(A,ce),H=jd(A,De);if(Z&&H&&(U.rangeCount!==1||U.anchorNode!==Z.node||U.anchorOffset!==Z.offset||U.focusNode!==H.node||U.focusOffset!==H.offset)){var R=X.createRange();R.setStart(Z.node,Z.offset),U.removeAllRanges(),ce>De?(U.addRange(R),U.extend(H.node,H.offset)):(R.setEnd(H.node,H.offset),U.addRange(R))}}}}for(X=[],U=A;U=U.parentNode;)U.nodeType===1&&X.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<X.length;A++){var G=X[A];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}Er=!!v0,j0=v0=null}finally{Ce=d,B.p=i,O.T=l}}e.current=t,et=2}}function Of(){if(et===2){et=0;var e=ln,t=El,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var i=B.p;B.p=2;var d=Ce;Ce|=4;try{mf(e,t.alternate,t)}finally{Ce=d,B.p=i,O.T=l}}et=3}}function Bf(){if(et===4||et===3){et=0,Up();var e=ln,t=El,l=_a,i=Nf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,El=ln=null,Uf(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(nn=null),Mo(l),t=t.stateNode,Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(Jl,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=O.T,d=B.p,B.p=2,O.T=null;try{for(var m=e.onRecoverableError,v=0;v<i.length;v++){var A=i[v];m(A.value,{componentStack:A.stack})}}finally{O.T=t,B.p=d}}(_a&3)!==0&&fr(),ha(e),d=e.pendingLanes,(l&261930)!==0&&(d&42)!==0?e===r0?Ls++:(Ls=0,r0=e):Ls=0,Zs(0)}}function Uf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ms(t)))}function fr(){return zf(),Of(),Bf(),Ff()}function Ff(){if(et!==5)return!1;var e=ln,t=s0;s0=0;var l=Mo(_a),i=O.T,d=B.p;try{B.p=32>l?32:l,O.T=null,l=i0,i0=null;var m=ln,v=_a;if(et=0,El=ln=null,_a=0,(Ce&6)!==0)throw Error(o(331));var A=Ce;if(Ce|=4,Sf(m.current),vf(m,m.current,v,l),Ce=A,Zs(0,!1),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(Jl,m)}catch{}return!0}finally{B.p=d,O.T=i,Uf(e,t)}}function qf(e,t,l){t=Gt(l,t),t=Oc(e.stateNode,t,2),e=Ja(e,t,2),e!==null&&(Il(e,2),ha(e))}function He(e,t,l){if(e.tag===3)qf(e,e,l);else for(;t!==null;){if(t.tag===3){qf(t,e,l);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(nn===null||!nn.has(i))){e=Gt(l,e),l=q2(2),i=Ja(t,l,2),i!==null&&(Y2(l,i,t,e),Il(i,2),ha(i));break}}t=t.return}}function u0(e,t,l){var i=e.pingCache;if(i===null){i=e.pingCache=new m3;var d=new Set;i.set(t,d)}else d=i.get(t),d===void 0&&(d=new Set,i.set(t,d));d.has(l)||(a0=!0,d.add(l),e=b3.bind(null,e,t,l),t.then(e,e))}function b3(e,t,l){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Re===e&&(Ae&l)===l&&(qe===4||qe===3&&(Ae&62914560)===Ae&&300>Vt()-ir?(Ce&2)===0&&wl(e,0):n0|=l,Sl===Ae&&(Sl=0)),ha(e)}function Yf(e,t){t===0&&(t=_1()),e=Nn(e,t),e!==null&&(Il(e,t),ha(e))}function y3(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Yf(e,l)}function v3(e,t){var l=0;switch(e.tag){case 31:case 13:var i=e.stateNode,d=e.memoizedState;d!==null&&(l=d.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(t),Yf(e,l)}function j3(e,t){return So(e,t)}var mr=null,Ml=null,d0=!1,hr=!1,f0=!1,rn=0;function ha(e){e!==Ml&&e.next===null&&(Ml===null?mr=Ml=e:Ml=Ml.next=e),hr=!0,d0||(d0=!0,S3())}function Zs(e,t){if(!f0&&hr){f0=!0;do for(var l=!1,i=mr;i!==null;){if(e!==0){var d=i.pendingLanes;if(d===0)var m=0;else{var v=i.suspendedLanes,A=i.pingedLanes;m=(1<<31-Lt(42|e)+1)-1,m&=d&~(v&~A),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(l=!0,Pf(i,m))}else m=Ae,m=bi(i,i===Re?m:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(m&3)===0||Wl(i,m)||(l=!0,Pf(i,m));i=i.next}while(l);f0=!1}}function A3(){$f()}function $f(){hr=d0=!1;var e=0;rn!==0&&Z3()&&(e=rn);for(var t=Vt(),l=null,i=mr;i!==null;){var d=i.next,m=Gf(i,t);m===0?(i.next=null,l===null?mr=d:l.next=d,d===null&&(Ml=l)):(l=i,(e!==0||(m&3)!==0)&&(hr=!0)),i=d}et!==0&&et!==5||Zs(e),rn!==0&&(rn=0)}function Gf(e,t){for(var l=e.suspendedLanes,i=e.pingedLanes,d=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var v=31-Lt(m),A=1<<v,M=d[v];M===-1?((A&l)===0||(A&i)!==0)&&(d[v]=Kp(A,t)):M<=t&&(e.expiredLanes|=A),m&=~A}if(t=Re,l=Ae,l=bi(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===t&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Eo(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Wl(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(i!==null&&Eo(i),Mo(l)){case 2:case 8:l=R1;break;case 32:l=hi;break;case 268435456:l=k1;break;default:l=hi}return i=Xf.bind(null,e),l=So(l,i),e.callbackPriority=t,e.callbackNode=l,t}return i!==null&&i!==null&&Eo(i),e.callbackPriority=2,e.callbackNode=null,2}function Xf(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(fr()&&e.callbackNode!==l)return null;var i=Ae;return i=bi(e,e===Re?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Cf(e,i,t),Gf(e,Vt()),e.callbackNode!=null&&e.callbackNode===l?Xf.bind(null,e):null)}function Pf(e,t){if(fr())return null;Cf(e,t,!0)}function S3(){R3(function(){(Ce&6)!==0?So(D1,A3):$f()})}function m0(){if(rn===0){var e=fl;e===0&&(e=pi,pi<<=1,(pi&261888)===0&&(pi=256)),rn=e}return rn}function Kf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ai(""+e)}function Qf(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function E3(e,t,l,i,d){if(t==="submit"&&l&&l.stateNode===d){var m=Kf((d[At]||null).action),v=i.submitter;v&&(t=(t=v[At]||null)?Kf(t.formAction):v.getAttribute("formAction"),t!==null&&(m=t,v=null));var A=new Ni("action","action",null,i,d);e.push({event:A,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(rn!==0){var M=v?Qf(d,v):new FormData(d);Zc(l,{pending:!0,data:M,method:d.method,action:m},null,M)}}else typeof m=="function"&&(A.preventDefault(),M=v?Qf(d,v):new FormData(d),Zc(l,{pending:!0,data:M,method:d.method,action:m},m,M))},currentTarget:d}]})}}for(var h0=0;h0<Qo.length;h0++){var p0=Qo[h0],w3=p0.toLowerCase(),N3=p0[0].toUpperCase()+p0.slice(1);na(w3,"on"+N3)}na(Nd,"onAnimationEnd"),na(Md,"onAnimationIteration"),na(Cd,"onAnimationStart"),na("dblclick","onDoubleClick"),na("focusin","onFocus"),na("focusout","onBlur"),na(Fx,"onTransitionRun"),na(qx,"onTransitionStart"),na(Yx,"onTransitionCancel"),na(Td,"onTransitionEnd"),Wn("onMouseEnter",["mouseout","mouseover"]),Wn("onMouseLeave",["mouseout","mouseover"]),Wn("onPointerEnter",["pointerout","pointerover"]),Wn("onPointerLeave",["pointerout","pointerover"]),An("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),An("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),An("onBeforeInput",["compositionend","keypress","textInput","paste"]),An("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),An("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),An("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ds="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(" "),M3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ds));function Jf(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var i=e[l],d=i.event;i=i.listeners;e:{var m=void 0;if(t)for(var v=i.length-1;0<=v;v--){var A=i[v],M=A.instance,k=A.currentTarget;if(A=A.listener,M!==m&&d.isPropagationStopped())break e;m=A,d.currentTarget=k;try{m(d)}catch($){Ti($)}d.currentTarget=null,m=M}else for(v=0;v<i.length;v++){if(A=i[v],M=A.instance,k=A.currentTarget,A=A.listener,M!==m&&d.isPropagationStopped())break e;m=A,d.currentTarget=k;try{m(d)}catch($){Ti($)}d.currentTarget=null,m=M}}}}function je(e,t){var l=t[Co];l===void 0&&(l=t[Co]=new Set);var i=e+"__bubble";l.has(i)||(Wf(t,e,2,!1),l.add(i))}function x0(e,t,l){var i=0;t&&(i|=4),Wf(l,e,i,t)}var pr="_reactListening"+Math.random().toString(36).slice(2);function g0(e){if(!e[pr]){e[pr]=!0,Y1.forEach(function(l){l!=="selectionchange"&&(M3.has(l)||x0(l,!1,e),x0(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pr]||(t[pr]=!0,x0("selectionchange",!1,t))}}function Wf(e,t,l,i){switch(Mm(t)){case 2:var d=tg;break;case 8:d=ag;break;default:d=L0}l=d.bind(null,t,l,e),d=void 0,!_o||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(d=!0),i?d!==void 0?e.addEventListener(t,l,{capture:!0,passive:d}):e.addEventListener(t,l,!0):d!==void 0?e.addEventListener(t,l,{passive:d}):e.addEventListener(t,l,!1)}function b0(e,t,l,i,d){var m=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var v=i.tag;if(v===3||v===4){var A=i.stateNode.containerInfo;if(A===d)break;if(v===4)for(v=i.return;v!==null;){var M=v.tag;if((M===3||M===4)&&v.stateNode.containerInfo===d)return;v=v.return}for(;A!==null;){if(v=Kn(A),v===null)return;if(M=v.tag,M===5||M===6||M===26||M===27){i=m=v;continue e}A=A.parentNode}}i=i.return}ad(function(){var k=m,$=Ro(l),X=[];e:{var _=Vd.get(e);if(_!==void 0){var U=Ni,te=e;switch(e){case"keypress":if(Ei(l)===0)break e;case"keydown":case"keyup":U=vx;break;case"focusin":te="focus",U=Uo;break;case"focusout":te="blur",U=Uo;break;case"beforeblur":case"afterblur":U=Uo;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=ox;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Sx;break;case Nd:case Md:case Cd:U=dx;break;case Td:U=wx;break;case"scroll":case"scrollend":U=ix;break;case"wheel":U=Mx;break;case"copy":case"cut":case"paste":U=mx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=rd;break;case"toggle":case"beforetoggle":U=Tx}var ce=(t&4)!==0,De=!ce&&(e==="scroll"||e==="scrollend"),Z=ce?_!==null?_+"Capture":null:_;ce=[];for(var H=k,R;H!==null;){var G=H;if(R=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||R===null||Z===null||(G=as(H,Z),G!=null&&ce.push(Rs(H,G,R))),De)break;H=H.return}0<ce.length&&(_=new U(_,te,null,l,$),X.push({event:_,listeners:ce}))}}if((t&7)===0){e:{if(_=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",_&&l!==Do&&(te=l.relatedTarget||l.fromElement)&&(Kn(te)||te[Pn]))break e;if((U||_)&&(_=$.window===$?$:(_=$.ownerDocument)?_.defaultView||_.parentWindow:window,U?(te=l.relatedTarget||l.toElement,U=k,te=te?Kn(te):null,te!==null&&(De=f(te),ce=te.tag,te!==De||ce!==5&&ce!==27&&ce!==6)&&(te=null)):(U=null,te=k),U!==te)){if(ce=sd,G="onMouseLeave",Z="onMouseEnter",H="mouse",(e==="pointerout"||e==="pointerover")&&(ce=rd,G="onPointerLeave",Z="onPointerEnter",H="pointer"),De=U==null?_:ts(U),R=te==null?_:ts(te),_=new ce(G,H+"leave",U,l,$),_.target=De,_.relatedTarget=R,G=null,Kn($)===k&&(ce=new ce(Z,H+"enter",te,l,$),ce.target=R,ce.relatedTarget=De,G=ce),De=G,U&&te)t:{for(ce=C3,Z=U,H=te,R=0,G=Z;G;G=ce(G))R++;G=0;for(var re=H;re;re=ce(re))G++;for(;0<R-G;)Z=ce(Z),R--;for(;0<G-R;)H=ce(H),G--;for(;R--;){if(Z===H||H!==null&&Z===H.alternate){ce=Z;break t}Z=ce(Z),H=ce(H)}ce=null}else ce=null;U!==null&&If(X,_,U,ce,!1),te!==null&&De!==null&&If(X,De,te,ce,!0)}}e:{if(_=k?ts(k):window,U=_.nodeName&&_.nodeName.toLowerCase(),U==="select"||U==="input"&&_.type==="file")var Ne=pd;else if(md(_))if(xd)Ne=Ox;else{Ne=_x;var ie=kx}else U=_.nodeName,!U||U.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?k&&Zo(k.elementType)&&(Ne=pd):Ne=zx;if(Ne&&(Ne=Ne(e,k))){hd(X,Ne,l,$);break e}ie&&ie(e,_,k),e==="focusout"&&k&&_.type==="number"&&k.memoizedProps.value!=null&&Lo(_,"number",_.value)}switch(ie=k?ts(k):window,e){case"focusin":(md(ie)||ie.contentEditable==="true")&&(ll=ie,Xo=k,us=null);break;case"focusout":us=Xo=ll=null;break;case"mousedown":Po=!0;break;case"contextmenu":case"mouseup":case"dragend":Po=!1,Ed(X,l,$);break;case"selectionchange":if(Ux)break;case"keydown":case"keyup":Ed(X,l,$)}var be;if(qo)e:{switch(e){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else nl?dd(e,l)&&(Se="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Se="onCompositionStart");Se&&(od&&l.locale!=="ko"&&(nl||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&nl&&(be=nd()):(Ya=$,zo="value"in Ya?Ya.value:Ya.textContent,nl=!0)),ie=xr(k,Se),0<ie.length&&(Se=new id(Se,e,null,l,$),X.push({event:Se,listeners:ie}),be?Se.data=be:(be=fd(l),be!==null&&(Se.data=be)))),(be=Hx?Lx(e,l):Zx(e,l))&&(Se=xr(k,"onBeforeInput"),0<Se.length&&(ie=new id("onBeforeInput","beforeinput",null,l,$),X.push({event:ie,listeners:Se}),ie.data=be)),E3(X,e,k,l,$)}Jf(X,t)})}function Rs(e,t,l){return{instance:e,listener:t,currentTarget:l}}function xr(e,t){for(var l=t+"Capture",i=[];e!==null;){var d=e,m=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||m===null||(d=as(e,l),d!=null&&i.unshift(Rs(e,d,m)),d=as(e,t),d!=null&&i.push(Rs(e,d,m))),e.tag===3)return i;e=e.return}return[]}function C3(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function If(e,t,l,i,d){for(var m=t._reactName,v=[];l!==null&&l!==i;){var A=l,M=A.alternate,k=A.stateNode;if(A=A.tag,M!==null&&M===i)break;A!==5&&A!==26&&A!==27||k===null||(M=k,d?(k=as(l,m),k!=null&&v.unshift(Rs(l,k,M))):d||(k=as(l,m),k!=null&&v.push(Rs(l,k,M)))),l=l.return}v.length!==0&&e.push({event:t,listeners:v})}var T3=/\r\n?/g,V3=/\u0000|\uFFFD/g;function em(e){return(typeof e=="string"?e:""+e).replace(T3,`
|
|
49
|
-
`).replace(V3,"")}function tm(e,t){return t=em(t),em(e)===t}function Ze(e,t,l,i,d,m){switch(l){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||el(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&el(e,""+i);break;case"className":vi(e,"class",i);break;case"tabIndex":vi(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":vi(e,l,i);break;case"style":ed(e,i,m);break;case"data":if(t!=="object"){vi(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Ai(""+i),e.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(l==="formAction"?(t!=="input"&&Ze(e,t,"name",d.name,d,null),Ze(e,t,"formEncType",d.formEncType,d,null),Ze(e,t,"formMethod",d.formMethod,d,null),Ze(e,t,"formTarget",d.formTarget,d,null)):(Ze(e,t,"encType",d.encType,d,null),Ze(e,t,"method",d.method,d,null),Ze(e,t,"target",d.target,d,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Ai(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=Aa);break;case"onScroll":i!=null&&je("scroll",e);break;case"onScrollEnd":i!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(l=i.__html,l!=null){if(d.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}l=Ai(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""+i):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":i===!0?e.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(l,i):e.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(l):e.setAttribute(l,i);break;case"popover":je("beforetoggle",e),je("toggle",e),yi(e,"popover",i);break;case"xlinkActuate":ja(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ja(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ja(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ja(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ja(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ja(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ja(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ja(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ja(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":yi(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=lx.get(l)||l,yi(e,l,i))}}function y0(e,t,l,i,d,m){switch(l){case"style":ed(e,i,m);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(l=i.__html,l!=null){if(d.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof i=="string"?el(e,i):(typeof i=="number"||typeof i=="bigint")&&el(e,""+i);break;case"onScroll":i!=null&&je("scroll",e);break;case"onScrollEnd":i!=null&&je("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Aa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$1.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(d=l.endsWith("Capture"),t=l.slice(2,d?l.length-7:void 0),m=e[At]||null,m=m!=null?m[l]:null,typeof m=="function"&&e.removeEventListener(t,m,d),typeof i=="function")){typeof m!="function"&&m!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,i,d);break e}l in e?e[l]=i:i===!0?e.setAttribute(l,""):yi(e,l,i)}}}function dt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var i=!1,d=!1,m;for(m in l)if(l.hasOwnProperty(m)){var v=l[m];if(v!=null)switch(m){case"src":i=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ze(e,t,m,v,l,null)}}d&&Ze(e,t,"srcSet",l.srcSet,l,null),i&&Ze(e,t,"src",l.src,l,null);return;case"input":je("invalid",e);var A=m=v=d=null,M=null,k=null;for(i in l)if(l.hasOwnProperty(i)){var $=l[i];if($!=null)switch(i){case"name":d=$;break;case"type":v=$;break;case"checked":M=$;break;case"defaultChecked":k=$;break;case"value":m=$;break;case"defaultValue":A=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(o(137,t));break;default:Ze(e,t,i,$,l,null)}}Q1(e,m,A,M,k,v,d,!1);return;case"select":je("invalid",e),i=v=m=null;for(d in l)if(l.hasOwnProperty(d)&&(A=l[d],A!=null))switch(d){case"value":m=A;break;case"defaultValue":v=A;break;case"multiple":i=A;default:Ze(e,t,d,A,l,null)}t=m,l=v,e.multiple=!!i,t!=null?In(e,!!i,t,!1):l!=null&&In(e,!!i,l,!0);return;case"textarea":je("invalid",e),m=d=i=null;for(v in l)if(l.hasOwnProperty(v)&&(A=l[v],A!=null))switch(v){case"value":i=A;break;case"defaultValue":d=A;break;case"children":m=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(91));break;default:Ze(e,t,v,A,l,null)}W1(e,i,d,m);return;case"option":for(M in l)if(l.hasOwnProperty(M)&&(i=l[M],i!=null))switch(M){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ze(e,t,M,i,l,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(i=0;i<Ds.length;i++)je(Ds[i],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in l)if(l.hasOwnProperty(k)&&(i=l[k],i!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ze(e,t,k,i,l,null)}return;default:if(Zo(t)){for($ in l)l.hasOwnProperty($)&&(i=l[$],i!==void 0&&y0(e,t,$,i,l,void 0));return}}for(A in l)l.hasOwnProperty(A)&&(i=l[A],i!=null&&Ze(e,t,A,i,l,null))}function H3(e,t,l,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,m=null,v=null,A=null,M=null,k=null,$=null;for(U in l){var X=l[U];if(l.hasOwnProperty(U)&&X!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":M=X;default:i.hasOwnProperty(U)||Ze(e,t,U,null,i,X)}}for(var _ in i){var U=i[_];if(X=l[_],i.hasOwnProperty(_)&&(U!=null||X!=null))switch(_){case"type":m=U;break;case"name":d=U;break;case"checked":k=U;break;case"defaultChecked":$=U;break;case"value":v=U;break;case"defaultValue":A=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,t));break;default:U!==X&&Ze(e,t,_,U,i,X)}}Ho(e,v,A,M,k,$,m,d);return;case"select":U=v=A=_=null;for(m in l)if(M=l[m],l.hasOwnProperty(m)&&M!=null)switch(m){case"value":break;case"multiple":U=M;default:i.hasOwnProperty(m)||Ze(e,t,m,null,i,M)}for(d in i)if(m=i[d],M=l[d],i.hasOwnProperty(d)&&(m!=null||M!=null))switch(d){case"value":_=m;break;case"defaultValue":A=m;break;case"multiple":v=m;default:m!==M&&Ze(e,t,d,m,i,M)}t=A,l=v,i=U,_!=null?In(e,!!l,_,!1):!!i!=!!l&&(t!=null?In(e,!!l,t,!0):In(e,!!l,l?[]:"",!1));return;case"textarea":U=_=null;for(A in l)if(d=l[A],l.hasOwnProperty(A)&&d!=null&&!i.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:Ze(e,t,A,null,i,d)}for(v in i)if(d=i[v],m=l[v],i.hasOwnProperty(v)&&(d!=null||m!=null))switch(v){case"value":_=d;break;case"defaultValue":U=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:d!==m&&Ze(e,t,v,d,i,m)}J1(e,_,U);return;case"option":for(var te in l)if(_=l[te],l.hasOwnProperty(te)&&_!=null&&!i.hasOwnProperty(te))switch(te){case"selected":e.selected=!1;break;default:Ze(e,t,te,null,i,_)}for(M in i)if(_=i[M],U=l[M],i.hasOwnProperty(M)&&_!==U&&(_!=null||U!=null))switch(M){case"selected":e.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:Ze(e,t,M,_,i,U)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ce in l)_=l[ce],l.hasOwnProperty(ce)&&_!=null&&!i.hasOwnProperty(ce)&&Ze(e,t,ce,null,i,_);for(k in i)if(_=i[k],U=l[k],i.hasOwnProperty(k)&&_!==U&&(_!=null||U!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,t));break;default:Ze(e,t,k,_,i,U)}return;default:if(Zo(t)){for(var De in l)_=l[De],l.hasOwnProperty(De)&&_!==void 0&&!i.hasOwnProperty(De)&&y0(e,t,De,void 0,i,_);for($ in i)_=i[$],U=l[$],!i.hasOwnProperty($)||_===U||_===void 0&&U===void 0||y0(e,t,$,_,i,U);return}}for(var Z in l)_=l[Z],l.hasOwnProperty(Z)&&_!=null&&!i.hasOwnProperty(Z)&&Ze(e,t,Z,null,i,_);for(X in i)_=i[X],U=l[X],!i.hasOwnProperty(X)||_===U||_==null&&U==null||Ze(e,t,X,_,i,U)}function am(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function L3(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var d=l[i],m=d.transferSize,v=d.initiatorType,A=d.duration;if(m&&A&&am(v)){for(v=0,A=d.responseEnd,i+=1;i<l.length;i++){var M=l[i],k=M.startTime;if(k>A)break;var $=M.transferSize,X=M.initiatorType;$&&am(X)&&(M=M.responseEnd,v+=$*(M<A?1:(A-k)/(M-k)))}if(--i,t+=8*(m+v)/(d.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var v0=null,j0=null;function gr(e){return e.nodeType===9?e:e.ownerDocument}function nm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function lm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function A0(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var S0=null;function Z3(){var e=window.event;return e&&e.type==="popstate"?e===S0?!1:(S0=e,!0):(S0=null,!1)}var sm=typeof setTimeout=="function"?setTimeout:void 0,D3=typeof clearTimeout=="function"?clearTimeout:void 0,im=typeof Promise=="function"?Promise:void 0,R3=typeof queueMicrotask=="function"?queueMicrotask:typeof im<"u"?function(e){return im.resolve(null).then(e).catch(k3)}:sm;function k3(e){setTimeout(function(){throw e})}function on(e){return e==="head"}function rm(e,t){var l=t,i=0;do{var d=l.nextSibling;if(e.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"||l==="/&"){if(i===0){e.removeChild(d),Hl(t);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")ks(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ks(l);for(var m=l.firstChild;m;){var v=m.nextSibling,A=m.nodeName;m[es]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&m.rel.toLowerCase()==="stylesheet"||l.removeChild(m),m=v}}else l==="body"&&ks(e.ownerDocument.body);l=d}while(l);Hl(t)}function om(e,t){var l=e;e=0;do{var i=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=i}while(l)}function E0(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":E0(l),To(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function _3(e,t,l,i){for(;e.nodeType===1;){var d=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[es])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var m=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=Jt(e.nextSibling),e===null)break}return null}function z3(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Jt(e.nextSibling),e===null))return null;return e}function cm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Jt(e.nextSibling),e===null))return null;return e}function w0(e){return e.data==="$?"||e.data==="$~"}function N0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function O3(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var i=function(){t(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Jt(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var M0=null;function um(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Jt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function dm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function fm(e,t,l){switch(t=gr(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function ks(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);To(e)}var Wt=new Map,mm=new Set;function br(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var za=B.d;B.d={f:B3,r:U3,D:F3,C:q3,L:Y3,m:$3,X:X3,S:G3,M:P3};function B3(){var e=za.f(),t=cr();return e||t}function U3(e){var t=Qn(e);t!==null&&t.tag===5&&t.type==="form"?T2(t):za.r(e)}var Cl=typeof document>"u"?null:document;function hm(e,t,l){var i=Cl;if(i&&typeof t=="string"&&t){var d=Yt(t);d='link[rel="'+e+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),mm.has(d)||(mm.add(d),e={rel:e,crossOrigin:l,href:t},i.querySelector(d)===null&&(t=i.createElement("link"),dt(t,"link",e),lt(t),i.head.appendChild(t)))}}function F3(e){za.D(e),hm("dns-prefetch",e,null)}function q3(e,t){za.C(e,t),hm("preconnect",e,t)}function Y3(e,t,l){za.L(e,t,l);var i=Cl;if(i&&e&&t){var d='link[rel="preload"][as="'+Yt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(d+='[imagesrcset="'+Yt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(d+='[imagesizes="'+Yt(l.imageSizes)+'"]')):d+='[href="'+Yt(e)+'"]';var m=d;switch(t){case"style":m=Tl(e);break;case"script":m=Vl(e)}Wt.has(m)||(e=b({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Wt.set(m,e),i.querySelector(d)!==null||t==="style"&&i.querySelector(_s(m))||t==="script"&&i.querySelector(zs(m))||(t=i.createElement("link"),dt(t,"link",e),lt(t),i.head.appendChild(t)))}}function $3(e,t){za.m(e,t);var l=Cl;if(l&&e){var i=t&&typeof t.as=="string"?t.as:"script",d='link[rel="modulepreload"][as="'+Yt(i)+'"][href="'+Yt(e)+'"]',m=d;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Vl(e)}if(!Wt.has(m)&&(e=b({rel:"modulepreload",href:e},t),Wt.set(m,e),l.querySelector(d)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(zs(m)))return}i=l.createElement("link"),dt(i,"link",e),lt(i),l.head.appendChild(i)}}}function G3(e,t,l){za.S(e,t,l);var i=Cl;if(i&&e){var d=Jn(i).hoistableStyles,m=Tl(e);t=t||"default";var v=d.get(m);if(!v){var A={loading:0,preload:null};if(v=i.querySelector(_s(m)))A.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Wt.get(m))&&C0(e,l);var M=v=i.createElement("link");lt(M),dt(M,"link",e),M._p=new Promise(function(k,$){M.onload=k,M.onerror=$}),M.addEventListener("load",function(){A.loading|=1}),M.addEventListener("error",function(){A.loading|=2}),A.loading|=4,yr(v,t,i)}v={type:"stylesheet",instance:v,count:1,state:A},d.set(m,v)}}}function X3(e,t){za.X(e,t);var l=Cl;if(l&&e){var i=Jn(l).hoistableScripts,d=Vl(e),m=i.get(d);m||(m=l.querySelector(zs(d)),m||(e=b({src:e,async:!0},t),(t=Wt.get(d))&&T0(e,t),m=l.createElement("script"),lt(m),dt(m,"link",e),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},i.set(d,m))}}function P3(e,t){za.M(e,t);var l=Cl;if(l&&e){var i=Jn(l).hoistableScripts,d=Vl(e),m=i.get(d);m||(m=l.querySelector(zs(d)),m||(e=b({src:e,async:!0,type:"module"},t),(t=Wt.get(d))&&T0(e,t),m=l.createElement("script"),lt(m),dt(m,"link",e),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},i.set(d,m))}}function pm(e,t,l,i){var d=(d=ye.current)?br(d):null;if(!d)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Tl(l.href),l=Jn(d).hoistableStyles,i=l.get(t),i||(i={type:"style",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Tl(l.href);var m=Jn(d).hoistableStyles,v=m.get(e);if(v||(d=d.ownerDocument||d,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(e,v),(m=d.querySelector(_s(e)))&&!m._p&&(v.instance=m,v.state.loading=5),Wt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Wt.set(e,l),m||K3(d,e,l,v.state))),t&&i===null)throw Error(o(528,""));return v}if(t&&i!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Vl(l),l=Jn(d).hoistableScripts,i=l.get(t),i||(i={type:"script",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Tl(e){return'href="'+Yt(e)+'"'}function _s(e){return'link[rel="stylesheet"]['+e+"]"}function xm(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function K3(e,t,l,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),dt(t,"link",l),lt(t),e.head.appendChild(t))}function Vl(e){return'[src="'+Yt(e)+'"]'}function zs(e){return"script[async]"+e}function gm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Yt(l.href)+'"]');if(i)return t.instance=i,lt(i),i;var d=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),lt(i),dt(i,"style",d),yr(i,l.precedence,e),t.instance=i;case"stylesheet":d=Tl(l.href);var m=e.querySelector(_s(d));if(m)return t.state.loading|=4,t.instance=m,lt(m),m;i=xm(l),(d=Wt.get(d))&&C0(i,d),m=(e.ownerDocument||e).createElement("link"),lt(m);var v=m;return v._p=new Promise(function(A,M){v.onload=A,v.onerror=M}),dt(m,"link",i),t.state.loading|=4,yr(m,l.precedence,e),t.instance=m;case"script":return m=Vl(l.src),(d=e.querySelector(zs(m)))?(t.instance=d,lt(d),d):(i=l,(d=Wt.get(m))&&(i=b({},l),T0(i,d)),e=e.ownerDocument||e,d=e.createElement("script"),lt(d),dt(d,"link",i),e.head.appendChild(d),t.instance=d);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,yr(i,l.precedence,e));return t.instance}function yr(e,t,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=i.length?i[i.length-1]:null,m=d,v=0;v<i.length;v++){var A=i[v];if(A.dataset.precedence===t)m=A;else if(m!==d)break}m?m.parentNode.insertBefore(e,m.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function C0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function T0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vr=null;function bm(e,t,l){if(vr===null){var i=new Map,d=vr=new Map;d.set(l,i)}else d=vr,i=d.get(l),i||(i=new Map,d.set(l,i));if(i.has(e))return i;for(i.set(e,null),l=l.getElementsByTagName(e),d=0;d<l.length;d++){var m=l[d];if(!(m[es]||m[rt]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var v=m.getAttribute(t)||"";v=e+v;var A=i.get(v);A?A.push(m):i.set(v,[m])}}return i}function ym(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Q3(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function J3(e,t,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var d=Tl(i.href),m=t.querySelector(_s(d));if(m){t=m._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=jr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=m,lt(m);return}m=t.ownerDocument||t,i=xm(i),(d=Wt.get(d))&&C0(i,d),m=m.createElement("link"),lt(m);var v=m;v._p=new Promise(function(A,M){v.onload=A,v.onerror=M}),dt(m,"link",i),l.instance=m}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=jr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var V0=0;function W3(e,t){return e.stylesheets&&e.count===0&&Sr(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&Sr(e,e.stylesheets),e.unsuspend){var m=e.unsuspend;e.unsuspend=null,m()}},6e4+t);0<e.imgBytes&&V0===0&&(V0=62500*L3());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Sr(e,e.stylesheets),e.unsuspend)){var m=e.unsuspend;e.unsuspend=null,m()}},(e.imgBytes>V0?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(d)}}:null}function jr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Sr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ar=null;function Sr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ar=new Map,t.forEach(I3,e),Ar=null,jr.call(e))}function I3(e,t){if(!(t.state.loading&4)){var l=Ar.get(e);if(l)var i=l.get(null);else{l=new Map,Ar.set(e,l);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<d.length;m++){var v=d[m];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(l.set(v.dataset.precedence,v),i=v)}i&&l.set(null,i)}d=t.instance,v=d.getAttribute("data-precedence"),m=l.get(v)||i,m===i&&l.set(null,d),l.set(v,d),this.count++,i=jr.bind(this),d.addEventListener("load",i),d.addEventListener("error",i),m?m.parentNode.insertBefore(d,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),t.state.loading|=4}}var Os={$$typeof:D,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function eg(e,t,l,i,d,m,v,A,M){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=wo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wo(0),this.hiddenUpdates=wo(null),this.identifierPrefix=i,this.onUncaughtError=d,this.onCaughtError=m,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function jm(e,t,l,i,d,m,v,A,M,k,$,X){return e=new eg(e,t,l,v,M,k,$,X,A),t=1,m===!0&&(t|=24),m=Dt(3,null,null,t),e.current=m,m.stateNode=e,t=cc(),t.refCount++,e.pooledCache=t,t.refCount++,m.memoizedState={element:i,isDehydrated:l,cache:t},mc(m),e}function Am(e){return e?(e=rl,e):rl}function Sm(e,t,l,i,d,m){d=Am(d),i.context===null?i.context=d:i.pendingContext=d,i=Qa(t),i.payload={element:l},m=m===void 0?null:m,m!==null&&(i.callback=m),l=Ja(e,i,t),l!==null&&(Ct(l,e,t),gs(l,e,t))}function Em(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function H0(e,t){Em(e,t),(e=e.alternate)&&Em(e,t)}function wm(e){if(e.tag===13||e.tag===31){var t=Nn(e,67108864);t!==null&&Ct(t,e,67108864),H0(e,67108864)}}function Nm(e){if(e.tag===13||e.tag===31){var t=Ot();t=No(t);var l=Nn(e,t);l!==null&&Ct(l,e,t),H0(e,t)}}var Er=!0;function tg(e,t,l,i){var d=O.T;O.T=null;var m=B.p;try{B.p=2,L0(e,t,l,i)}finally{B.p=m,O.T=d}}function ag(e,t,l,i){var d=O.T;O.T=null;var m=B.p;try{B.p=8,L0(e,t,l,i)}finally{B.p=m,O.T=d}}function L0(e,t,l,i){if(Er){var d=Z0(i);if(d===null)b0(e,t,i,wr,l),Cm(e,i);else if(lg(d,e,t,l,i))i.stopPropagation();else if(Cm(e,i),t&4&&-1<ng.indexOf(e)){for(;d!==null;){var m=Qn(d);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var v=jn(m.pendingLanes);if(v!==0){var A=m;for(A.pendingLanes|=2,A.entangledLanes|=2;v;){var M=1<<31-Lt(v);A.entanglements[1]|=M,v&=~M}ha(m),(Ce&6)===0&&(rr=Vt()+500,Zs(0))}}break;case 31:case 13:A=Nn(m,2),A!==null&&Ct(A,m,2),cr(),H0(m,2)}if(m=Z0(i),m===null&&b0(e,t,i,wr,l),m===d)break;d=m}d!==null&&i.stopPropagation()}else b0(e,t,i,null,l)}}function Z0(e){return e=Ro(e),D0(e)}var wr=null;function D0(e){if(wr=null,e=Kn(e),e!==null){var t=f(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=h(t),e!==null)return e;e=null}else if(l===31){if(e=p(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return wr=e,null}function Mm(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Fp()){case D1:return 2;case R1:return 8;case hi:case qp:return 32;case k1:return 268435456;default:return 32}default:return 32}}var R0=!1,cn=null,un=null,dn=null,Bs=new Map,Us=new Map,fn=[],ng="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".split(" ");function Cm(e,t){switch(e){case"focusin":case"focusout":cn=null;break;case"dragenter":case"dragleave":un=null;break;case"mouseover":case"mouseout":dn=null;break;case"pointerover":case"pointerout":Bs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Us.delete(t.pointerId)}}function Fs(e,t,l,i,d,m){return e===null||e.nativeEvent!==m?(e={blockedOn:t,domEventName:l,eventSystemFlags:i,nativeEvent:m,targetContainers:[d]},t!==null&&(t=Qn(t),t!==null&&wm(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,d!==null&&t.indexOf(d)===-1&&t.push(d),e)}function lg(e,t,l,i,d){switch(t){case"focusin":return cn=Fs(cn,e,t,l,i,d),!0;case"dragenter":return un=Fs(un,e,t,l,i,d),!0;case"mouseover":return dn=Fs(dn,e,t,l,i,d),!0;case"pointerover":var m=d.pointerId;return Bs.set(m,Fs(Bs.get(m)||null,e,t,l,i,d)),!0;case"gotpointercapture":return m=d.pointerId,Us.set(m,Fs(Us.get(m)||null,e,t,l,i,d)),!0}return!1}function Tm(e){var t=Kn(e.target);if(t!==null){var l=f(t);if(l!==null){if(t=l.tag,t===13){if(t=h(l),t!==null){e.blockedOn=t,F1(e.priority,function(){Nm(l)});return}}else if(t===31){if(t=p(l),t!==null){e.blockedOn=t,F1(e.priority,function(){Nm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Nr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Z0(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);Do=i,l.target.dispatchEvent(i),Do=null}else return t=Qn(l),t!==null&&wm(t),e.blockedOn=l,!1;t.shift()}return!0}function Vm(e,t,l){Nr(e)&&l.delete(t)}function sg(){R0=!1,cn!==null&&Nr(cn)&&(cn=null),un!==null&&Nr(un)&&(un=null),dn!==null&&Nr(dn)&&(dn=null),Bs.forEach(Vm),Us.forEach(Vm)}function Mr(e,t){e.blockedOn===t&&(e.blockedOn=null,R0||(R0=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,sg)))}var Cr=null;function Hm(e){Cr!==e&&(Cr=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Cr===e&&(Cr=null);for(var t=0;t<e.length;t+=3){var l=e[t],i=e[t+1],d=e[t+2];if(typeof i!="function"){if(D0(i||l)===null)continue;break}var m=Qn(l);m!==null&&(e.splice(t,3),t-=3,Zc(m,{pending:!0,data:d,method:l.method,action:i},i,d))}}))}function Hl(e){function t(M){return Mr(M,e)}cn!==null&&Mr(cn,e),un!==null&&Mr(un,e),dn!==null&&Mr(dn,e),Bs.forEach(t),Us.forEach(t);for(var l=0;l<fn.length;l++){var i=fn[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<fn.length&&(l=fn[0],l.blockedOn===null);)Tm(l),l.blockedOn===null&&fn.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var d=l[i],m=l[i+1],v=d[At]||null;if(typeof m=="function")v||Hm(l);else if(v){var A=null;if(m&&m.hasAttribute("formAction")){if(d=m,v=m[At]||null)A=v.formAction;else if(D0(d)!==null)continue}else A=v.action;typeof A=="function"?l[i+1]=A:(l.splice(i,3),i-=3),Hm(l)}}}function Lm(){function e(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(v){return d=v})},focusReset:"manual",scroll:"manual"})}function t(){d!==null&&(d(),d=null),i||setTimeout(l,20)}function l(){if(!i&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),d!==null&&(d(),d=null)}}}function k0(e){this._internalRoot=e}Tr.prototype.render=k0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,i=Ot();Sm(l,i,e,t,null,null)},Tr.prototype.unmount=k0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Sm(e.current,2,null,e,null,null),cr(),t[Pn]=null}};function Tr(e){this._internalRoot=e}Tr.prototype.unstable_scheduleHydration=function(e){if(e){var t=U1();e={blockedOn:null,target:e,priority:t};for(var l=0;l<fn.length&&t!==0&&t<fn[l].priority;l++);fn.splice(l,0,e),l===0&&Tm(e)}};var Zm=n.version;if(Zm!=="19.2.4")throw Error(o(527,Zm,"19.2.4"));B.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=g(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var ig={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vr.isDisabled&&Vr.supportsFiber)try{Jl=Vr.inject(ig),Ht=Vr}catch{}}return Ys.createRoot=function(e,t){if(!u(e))throw Error(o(299));var l=!1,i="",d=O2,m=B2,v=U2;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(d=t.onUncaughtError),t.onCaughtError!==void 0&&(m=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError)),t=jm(e,1,!1,null,null,l,i,null,d,m,v,Lm),e[Pn]=t.current,g0(e),new k0(t)},Ys.hydrateRoot=function(e,t,l){if(!u(e))throw Error(o(299));var i=!1,d="",m=O2,v=B2,A=U2,M=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(m=l.onUncaughtError),l.onCaughtError!==void 0&&(v=l.onCaughtError),l.onRecoverableError!==void 0&&(A=l.onRecoverableError),l.formState!==void 0&&(M=l.formState)),t=jm(e,1,!0,t,l??null,i,d,M,m,v,A,Lm),t.context=Am(null),l=t.current,i=Ot(),i=No(i),d=Qa(i),d.callback=null,Ja(l,d,i),l=i,t.current.lanes=l,Il(t,l),ha(t),e[Pn]=t.current,g0(e),new Tr(t)},Ys.version="19.2.4",Ys}var qm;function bg(){if(qm)return O0.exports;qm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(n){console.error(n)}}return a(),O0.exports=gg(),O0.exports}var yg=bg();/**
|
|
50
|
-
* react-router v7.13.1
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/var Ym="popstate";function $m(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function vg(a={}){function n(o,u){var g;let f=(g=u.state)==null?void 0:g.masked,{pathname:h,search:p,hash:x}=f||o.location;return fu("",{pathname:h,search:p,hash:x},u.state&&u.state.usr||null,u.state&&u.state.key||"default",f?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function s(o,u){return typeof u=="string"?u:Ws(u)}return Ag(n,s,null,a)}function Be(a,n){if(a===!1||a===null||typeof a>"u")throw new Error(n)}function ua(a,n){if(!a){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function jg(){return Math.random().toString(36).substring(2,10)}function Gm(a,n){return{usr:a.state,key:a.key,idx:n,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function fu(a,n,s=null,o,u){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof n=="string"?Fl(n):n,state:s,key:n&&n.key||o||jg(),unstable_mask:u}}function Ws({pathname:a="/",search:n="",hash:s=""}){return n&&n!=="?"&&(a+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(a+=s.charAt(0)==="#"?s:"#"+s),a}function Fl(a){let n={};if(a){let s=a.indexOf("#");s>=0&&(n.hash=a.substring(s),a=a.substring(0,s));let o=a.indexOf("?");o>=0&&(n.search=a.substring(o),a=a.substring(0,o)),a&&(n.pathname=a)}return n}function Ag(a,n,s,o={}){let{window:u=document.defaultView,v5Compat:f=!1}=o,h=u.history,p="POP",x=null,g=y();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function y(){return(h.state||{idx:null}).idx}function b(){p="POP";let E=y(),C=E==null?null:E-g;g=E,x&&x({action:p,location:N.location,delta:C})}function j(E,C){p="PUSH";let T=$m(E)?E:fu(N.location,E,C);g=y()+1;let D=Gm(T,g),Y=N.createHref(T.unstable_mask||T);try{h.pushState(D,"",Y)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;u.location.assign(Y)}f&&x&&x({action:p,location:N.location,delta:1})}function S(E,C){p="REPLACE";let T=$m(E)?E:fu(N.location,E,C);g=y();let D=Gm(T,g),Y=N.createHref(T.unstable_mask||T);h.replaceState(D,"",Y),f&&x&&x({action:p,location:N.location,delta:0})}function w(E){return Sg(E)}let N={get action(){return p},get location(){return a(u,h)},listen(E){if(x)throw new Error("A history only accepts one active listener");return u.addEventListener(Ym,b),x=E,()=>{u.removeEventListener(Ym,b),x=null}},createHref(E){return n(u,E)},createURL:w,encodeLocation(E){let C=w(E);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:j,replace:S,go(E){return h.go(E)}};return N}function Sg(a,n=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Be(s,"No window.location.(origin|href) available to create URL");let o=typeof a=="string"?a:Ws(a);return o=o.replace(/ $/,"%20"),!n&&o.startsWith("//")&&(o=s+o),new URL(o,s)}function N8(a,n,s="/"){return Eg(a,n,s,!1)}function Eg(a,n,s,o){let u=typeof n=="string"?Fl(n):n,f=Oa(u.pathname||"/",s);if(f==null)return null;let h=M8(a);wg(h);let p=null;for(let x=0;p==null&&x<h.length;++x){let g=kg(f);p=Dg(h[x],g,o)}return p}function M8(a,n=[],s=[],o="",u=!1){let f=(h,p,x=u,g)=>{let y={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(o)&&x)return;Be(y.relativePath.startsWith(o),`Absolute route path "${y.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(o.length)}let b=xa([o,y.relativePath]),j=s.concat(y);h.children&&h.children.length>0&&(Be(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),M8(h.children,n,j,b,x)),!(h.path==null&&!h.index)&&n.push({path:b,score:Lg(b,h.index),routesMeta:j})};return a.forEach((h,p)=>{var x;if(h.path===""||!((x=h.path)!=null&&x.includes("?")))f(h,p);else for(let g of C8(h.path))f(h,p,!0,g)}),n}function C8(a){let n=a.split("/");if(n.length===0)return[];let[s,...o]=n,u=s.endsWith("?"),f=s.replace(/\?$/,"");if(o.length===0)return u?[f,""]:[f];let h=C8(o.join("/")),p=[];return p.push(...h.map(x=>x===""?f:[f,x].join("/"))),u&&p.push(...h),p.map(x=>a.startsWith("/")&&x===""?"/":x)}function wg(a){a.sort((n,s)=>n.score!==s.score?s.score-n.score:Zg(n.routesMeta.map(o=>o.childrenIndex),s.routesMeta.map(o=>o.childrenIndex)))}var Ng=/^:[\w-]+$/,Mg=3,Cg=2,Tg=1,Vg=10,Hg=-2,Xm=a=>a==="*";function Lg(a,n){let s=a.split("/"),o=s.length;return s.some(Xm)&&(o+=Hg),n&&(o+=Cg),s.filter(u=>!Xm(u)).reduce((u,f)=>u+(Ng.test(f)?Mg:f===""?Tg:Vg),o)}function Zg(a,n){return a.length===n.length&&a.slice(0,-1).every((o,u)=>o===n[u])?a[a.length-1]-n[n.length-1]:0}function Dg(a,n,s=!1){let{routesMeta:o}=a,u={},f="/",h=[];for(let p=0;p<o.length;++p){let x=o[p],g=p===o.length-1,y=f==="/"?n:n.slice(f.length)||"/",b=Qr({path:x.relativePath,caseSensitive:x.caseSensitive,end:g},y),j=x.route;if(!b&&g&&s&&!o[o.length-1].route.index&&(b=Qr({path:x.relativePath,caseSensitive:x.caseSensitive,end:!1},y)),!b)return null;Object.assign(u,b.params),h.push({params:u,pathname:xa([f,b.pathname]),pathnameBase:Bg(xa([f,b.pathnameBase])),route:j}),b.pathnameBase!=="/"&&(f=xa([f,b.pathnameBase]))}return h}function Qr(a,n){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[s,o]=Rg(a.path,a.caseSensitive,a.end),u=n.match(s);if(!u)return null;let f=u[0],h=f.replace(/(.)\/+$/,"$1"),p=u.slice(1);return{params:o.reduce((g,{paramName:y,isOptional:b},j)=>{if(y==="*"){let w=p[j]||"";h=f.slice(0,f.length-w.length).replace(/(.)\/+$/,"$1")}const S=p[j];return b&&!S?g[y]=void 0:g[y]=(S||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:h,pattern:a}}function Rg(a,n=!1,s=!0){ua(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let o=[],u="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,x,g,y)=>{if(o.push({paramName:p,isOptional:x!=null}),x){let b=y.charAt(g+h.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(o.push({paramName:"*"}),u+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?u+="\\/*$":a!==""&&a!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,n?void 0:"i"),o]}function kg(a){try{return a.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return ua(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),a}}function Oa(a,n){if(n==="/")return a;if(!a.toLowerCase().startsWith(n.toLowerCase()))return null;let s=n.endsWith("/")?n.length-1:n.length,o=a.charAt(s);return o&&o!=="/"?null:a.slice(s)||"/"}var _g=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function zg(a,n="/"){let{pathname:s,search:o="",hash:u=""}=typeof a=="string"?Fl(a):a,f;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?f=Pm(s.substring(1),"/"):f=Pm(s,n)):f=n,{pathname:f,search:Ug(o),hash:Fg(u)}}function Pm(a,n){let s=n.replace(/\/+$/,"").split("/");return a.split("/").forEach(u=>{u===".."?s.length>1&&s.pop():u!=="."&&s.push(u)}),s.length>1?s.join("/"):"/"}function q0(a,n,s,o){return`Cannot include a '${a}' character in a manually specified \`to.${n}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Og(a){return a.filter((n,s)=>s===0||n.route.path&&n.route.path.length>0)}function Yu(a){let n=Og(a);return n.map((s,o)=>o===n.length-1?s.pathname:s.pathnameBase)}function oo(a,n,s,o=!1){let u;typeof a=="string"?u=Fl(a):(u={...a},Be(!u.pathname||!u.pathname.includes("?"),q0("?","pathname","search",u)),Be(!u.pathname||!u.pathname.includes("#"),q0("#","pathname","hash",u)),Be(!u.search||!u.search.includes("#"),q0("#","search","hash",u)));let f=a===""||u.pathname==="",h=f?"/":u.pathname,p;if(h==null)p=s;else{let b=n.length-1;if(!o&&h.startsWith("..")){let j=h.split("/");for(;j[0]==="..";)j.shift(),b-=1;u.pathname=j.join("/")}p=b>=0?n[b]:"/"}let x=zg(u,p),g=h&&h!=="/"&&h.endsWith("/"),y=(f||h===".")&&s.endsWith("/");return!x.pathname.endsWith("/")&&(g||y)&&(x.pathname+="/"),x}var xa=a=>a.join("/").replace(/\/\/+/g,"/"),Bg=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),Ug=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Fg=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,qg=class{constructor(a,n,s,o=!1){this.status=a,this.statusText=n||"",this.internal=o,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function Yg(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function $g(a){return a.map(n=>n.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var T8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function V8(a,n){let s=a;if(typeof s!="string"||!_g.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let o=s,u=!1;if(T8)try{let f=new URL(window.location.href),h=s.startsWith("//")?new URL(f.protocol+s):new URL(s),p=Oa(h.pathname,n);h.origin===f.origin&&p!=null?s=p+h.search+h.hash:u=!0}catch{ua(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:u,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var H8=["POST","PUT","PATCH","DELETE"];new Set(H8);var Gg=["GET",...H8];new Set(Gg);var ql=c.createContext(null);ql.displayName="DataRouter";var co=c.createContext(null);co.displayName="DataRouterState";var Xg=c.createContext(!1),L8=c.createContext({isTransitioning:!1});L8.displayName="ViewTransition";var Pg=c.createContext(new Map);Pg.displayName="Fetchers";var Kg=c.createContext(null);Kg.displayName="Await";var Ft=c.createContext(null);Ft.displayName="Navigation";var si=c.createContext(null);si.displayName="Location";var aa=c.createContext({outlet:null,matches:[],isDataRoute:!1});aa.displayName="Route";var $u=c.createContext(null);$u.displayName="RouteError";var Z8="REACT_ROUTER_ERROR",Qg="REDIRECT",Jg="ROUTE_ERROR_RESPONSE";function Wg(a){if(a.startsWith(`${Z8}:${Qg}:{`))try{let n=JSON.parse(a.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function Ig(a){if(a.startsWith(`${Z8}:${Jg}:{`))try{let n=JSON.parse(a.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new qg(n.status,n.statusText,n.data)}catch{}}function eb(a,{relative:n}={}){Be(Yl(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:o}=c.useContext(Ft),{hash:u,pathname:f,search:h}=ri(a,{relative:n}),p=f;return s!=="/"&&(p=f==="/"?s:xa([s,f])),o.createHref({pathname:p,search:h,hash:u})}function Yl(){return c.useContext(si)!=null}function ya(){return Be(Yl(),"useLocation() may be used only in the context of a <Router> component."),c.useContext(si).location}var D8="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function R8(a){c.useContext(Ft).static||c.useLayoutEffect(a)}function ii(){let{isDataRoute:a}=c.useContext(aa);return a?pb():tb()}function tb(){Be(Yl(),"useNavigate() may be used only in the context of a <Router> component.");let a=c.useContext(ql),{basename:n,navigator:s}=c.useContext(Ft),{matches:o}=c.useContext(aa),{pathname:u}=ya(),f=JSON.stringify(Yu(o)),h=c.useRef(!1);return R8(()=>{h.current=!0}),c.useCallback((x,g={})=>{if(ua(h.current,D8),!h.current)return;if(typeof x=="number"){s.go(x);return}let y=oo(x,JSON.parse(f),u,g.relative==="path");a==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:xa([n,y.pathname])),(g.replace?s.replace:s.push)(y,g.state,g)},[n,s,f,u,a])}var ab=c.createContext(null);function nb(a){let n=c.useContext(aa).outlet;return c.useMemo(()=>n&&c.createElement(ab.Provider,{value:a},n),[n,a])}function uo(){let{matches:a}=c.useContext(aa),n=a[a.length-1];return n?n.params:{}}function ri(a,{relative:n}={}){let{matches:s}=c.useContext(aa),{pathname:o}=ya(),u=JSON.stringify(Yu(s));return c.useMemo(()=>oo(a,JSON.parse(u),o,n==="path"),[a,u,o,n])}function lb(a,n){return k8(a,n)}function k8(a,n,s){var E;Be(Yl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=c.useContext(Ft),{matches:u}=c.useContext(aa),f=u[u.length-1],h=f?f.params:{},p=f?f.pathname:"/",x=f?f.pathnameBase:"/",g=f&&f.route;{let C=g&&g.path||"";z8(p,!g||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${C}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
-
|
|
60
|
-
Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let y=ya(),b;if(n){let C=typeof n=="string"?Fl(n):n;Be(x==="/"||((E=C.pathname)==null?void 0:E.startsWith(x)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${x}" but pathname "${C.pathname}" was given in the \`location\` prop.`),b=C}else b=y;let j=b.pathname||"/",S=j;if(x!=="/"){let C=x.replace(/^\//,"").split("/");S="/"+j.replace(/^\//,"").split("/").slice(C.length).join("/")}let w=N8(a,{pathname:S});ua(g||w!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),ua(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let N=cb(w&&w.map(C=>Object.assign({},C,{params:Object.assign({},h,C.params),pathname:xa([x,o.encodeLocation?o.encodeLocation(C.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?x:xa([x,o.encodeLocation?o.encodeLocation(C.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),u,s);return n&&N?c.createElement(si.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...b},navigationType:"POP"}},N):N}function sb(){let a=hb(),n=Yg(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),s=a instanceof Error?a.stack:null,o="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:o},f={padding:"2px 4px",backgroundColor:o},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),h=c.createElement(c.Fragment,null,c.createElement("p",null,"💿 Hey developer 👋"),c.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",c.createElement("code",{style:f},"ErrorBoundary")," or"," ",c.createElement("code",{style:f},"errorElement")," prop on your route.")),c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},n),s?c.createElement("pre",{style:u},s):null,h)}var ib=c.createElement(sb,null),_8=class extends c.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,n){return n.location!==a.location||n.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:n.error,location:n.location,revalidation:a.revalidation||n.revalidation}}componentDidCatch(a,n){this.props.onError?this.props.onError(a,n):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const s=Ig(a.digest);s&&(a=s)}let n=a!==void 0?c.createElement(aa.Provider,{value:this.props.routeContext},c.createElement($u.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?c.createElement(rb,{error:a},n):n}};_8.contextType=Xg;var Y0=new WeakMap;function rb({children:a,error:n}){let{basename:s}=c.useContext(Ft);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let o=Wg(n.digest);if(o){let u=Y0.get(n);if(u)throw u;let f=V8(o.location,s);if(T8&&!Y0.get(n))if(f.isExternal||o.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:o.replace}));throw Y0.set(n,h),h}return c.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function ob({routeContext:a,match:n,children:s}){let o=c.useContext(ql);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),c.createElement(aa.Provider,{value:a},s)}function cb(a,n=[],s){let o=s==null?void 0:s.state;if(a==null){if(!o)return null;if(o.errors)a=o.matches;else if(n.length===0&&!o.initialized&&o.matches.length>0)a=o.matches;else return null}let u=a,f=o==null?void 0:o.errors;if(f!=null){let y=u.findIndex(b=>b.route.id&&(f==null?void 0:f[b.route.id])!==void 0);Be(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,y+1))}let h=!1,p=-1;if(s&&o){h=o.renderFallback;for(let y=0;y<u.length;y++){let b=u[y];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(p=y),b.route.id){let{loaderData:j,errors:S}=o,w=b.route.loader&&!j.hasOwnProperty(b.route.id)&&(!S||S[b.route.id]===void 0);if(b.route.lazy||w){s.isStatic&&(h=!0),p>=0?u=u.slice(0,p+1):u=[u[0]];break}}}}let x=s==null?void 0:s.onError,g=o&&x?(y,b)=>{var j,S;x(y,{location:o.location,params:((S=(j=o.matches)==null?void 0:j[0])==null?void 0:S.params)??{},unstable_pattern:$g(o.matches),errorInfo:b})}:void 0;return u.reduceRight((y,b,j)=>{let S,w=!1,N=null,E=null;o&&(S=f&&b.route.id?f[b.route.id]:void 0,N=b.route.errorElement||ib,h&&(p<0&&j===0?(z8("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,E=null):p===j&&(w=!0,E=b.route.hydrateFallbackElement||null)));let C=n.concat(u.slice(0,j+1)),T=()=>{let D;return S?D=N:w?D=E:b.route.Component?D=c.createElement(b.route.Component,null):b.route.element?D=b.route.element:D=y,c.createElement(ob,{match:b,routeContext:{outlet:y,matches:C,isDataRoute:o!=null},children:D})};return o&&(b.route.ErrorBoundary||b.route.errorElement||j===0)?c.createElement(_8,{location:o.location,revalidation:o.revalidation,component:N,error:S,children:T(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:g}):T()},null)}function Gu(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ub(a){let n=c.useContext(ql);return Be(n,Gu(a)),n}function db(a){let n=c.useContext(co);return Be(n,Gu(a)),n}function fb(a){let n=c.useContext(aa);return Be(n,Gu(a)),n}function Xu(a){let n=fb(a),s=n.matches[n.matches.length-1];return Be(s.route.id,`${a} can only be used on routes that contain a unique "id"`),s.route.id}function mb(){return Xu("useRouteId")}function hb(){var o;let a=c.useContext($u),n=db("useRouteError"),s=Xu("useRouteError");return a!==void 0?a:(o=n.errors)==null?void 0:o[s]}function pb(){let{router:a}=ub("useNavigate"),n=Xu("useNavigate"),s=c.useRef(!1);return R8(()=>{s.current=!0}),c.useCallback(async(u,f={})=>{ua(s.current,D8),s.current&&(typeof u=="number"?await a.navigate(u):await a.navigate(u,{fromRouteId:n,...f}))},[a,n])}var Km={};function z8(a,n,s){!n&&!Km[a]&&(Km[a]=!0,ua(!1,s))}c.memo(xb);function xb({routes:a,future:n,state:s,isStatic:o,onError:u}){return k8(a,void 0,{state:s,isStatic:o,onError:u})}function O8({to:a,replace:n,state:s,relative:o}){Be(Yl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=c.useContext(Ft);ua(!u,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=c.useContext(aa),{pathname:h}=ya(),p=ii(),x=oo(a,Yu(f),h,o==="path"),g=JSON.stringify(x);return c.useEffect(()=>{p(JSON.parse(g),{replace:n,state:s,relative:o})},[p,g,o,n,s]),null}function gb(a){return nb(a.context)}function Ye(a){Be(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function bb({basename:a="/",children:n=null,location:s,navigationType:o="POP",navigator:u,static:f=!1,unstable_useTransitions:h}){Be(!Yl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=a.replace(/^\/*/,"/"),x=c.useMemo(()=>({basename:p,navigator:u,static:f,unstable_useTransitions:h,future:{}}),[p,u,f,h]);typeof s=="string"&&(s=Fl(s));let{pathname:g="/",search:y="",hash:b="",state:j=null,key:S="default",unstable_mask:w}=s,N=c.useMemo(()=>{let E=Oa(g,p);return E==null?null:{location:{pathname:E,search:y,hash:b,state:j,key:S,unstable_mask:w},navigationType:o}},[p,g,y,b,j,S,o,w]);return ua(N!=null,`<Router basename="${p}"> is not able to match the URL "${g}${y}${b}" because it does not start with the basename, so the <Router> won't render anything.`),N==null?null:c.createElement(Ft.Provider,{value:x},c.createElement(si.Provider,{children:n,value:N}))}function yb({children:a,location:n}){return lb(mu(a),n)}function mu(a,n=[]){let s=[];return c.Children.forEach(a,(o,u)=>{if(!c.isValidElement(o))return;let f=[...n,u];if(o.type===c.Fragment){s.push.apply(s,mu(o.props.children,f));return}Be(o.type===Ye,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Be(!o.props.index||!o.props.children,"An index route cannot have child routes.");let h={id:o.props.id||f.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(h.children=mu(o.props.children,f)),s.push(h)}),s}var Ur="get",Fr="application/x-www-form-urlencoded";function fo(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function vb(a){return fo(a)&&a.tagName.toLowerCase()==="button"}function jb(a){return fo(a)&&a.tagName.toLowerCase()==="form"}function Ab(a){return fo(a)&&a.tagName.toLowerCase()==="input"}function Sb(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function Eb(a,n){return a.button===0&&(!n||n==="_self")&&!Sb(a)}var Hr=null;function wb(){if(Hr===null)try{new FormData(document.createElement("form"),0),Hr=!1}catch{Hr=!0}return Hr}var Nb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $0(a){return a!=null&&!Nb.has(a)?(ua(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Fr}"`),null):a}function Mb(a,n){let s,o,u,f,h;if(jb(a)){let p=a.getAttribute("action");o=p?Oa(p,n):null,s=a.getAttribute("method")||Ur,u=$0(a.getAttribute("enctype"))||Fr,f=new FormData(a)}else if(vb(a)||Ab(a)&&(a.type==="submit"||a.type==="image")){let p=a.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let x=a.getAttribute("formaction")||p.getAttribute("action");if(o=x?Oa(x,n):null,s=a.getAttribute("formmethod")||p.getAttribute("method")||Ur,u=$0(a.getAttribute("formenctype"))||$0(p.getAttribute("enctype"))||Fr,f=new FormData(p,a),!wb()){let{name:g,type:y,value:b}=a;if(y==="image"){let j=g?`${g}.`:"";f.append(`${j}x`,"0"),f.append(`${j}y`,"0")}else g&&f.append(g,b)}}else{if(fo(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Ur,o=null,u=Fr,h=a}return f&&u==="text/plain"&&(h=f,f=void 0),{action:o,method:s.toLowerCase(),encType:u,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Pu(a,n){if(a===!1||a===null||typeof a>"u")throw new Error(n)}function Cb(a,n,s,o){let u=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return s?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${o}`:u.pathname=`${u.pathname}.${o}`:u.pathname==="/"?u.pathname=`_root.${o}`:n&&Oa(u.pathname,n)==="/"?u.pathname=`${n.replace(/\/$/,"")}/_root.${o}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${o}`,u}async function Tb(a,n){if(a.id in n)return n[a.id];try{let s=await import(a.module);return n[a.id]=s,s}catch(s){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Vb(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function Hb(a,n,s){let o=await Promise.all(a.map(async u=>{let f=n.routes[u.route.id];if(f){let h=await Tb(f,s);return h.links?h.links():[]}return[]}));return Rb(o.flat(1).filter(Vb).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function Qm(a,n,s,o,u,f){let h=(x,g)=>s[g]?x.route.id!==s[g].route.id:!0,p=(x,g)=>{var y;return s[g].pathname!==x.pathname||((y=s[g].route.path)==null?void 0:y.endsWith("*"))&&s[g].params["*"]!==x.params["*"]};return f==="assets"?n.filter((x,g)=>h(x,g)||p(x,g)):f==="data"?n.filter((x,g)=>{var b;let y=o.routes[x.route.id];if(!y||!y.hasLoader)return!1;if(h(x,g)||p(x,g))return!0;if(x.route.shouldRevalidate){let j=x.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((b=s[0])==null?void 0:b.params)||{},nextUrl:new URL(a,window.origin),nextParams:x.params,defaultShouldRevalidate:!0});if(typeof j=="boolean")return j}return!0}):[]}function Lb(a,n,{includeHydrateFallback:s}={}){return Zb(a.map(o=>{let u=n.routes[o.route.id];if(!u)return[];let f=[u.module];return u.clientActionModule&&(f=f.concat(u.clientActionModule)),u.clientLoaderModule&&(f=f.concat(u.clientLoaderModule)),s&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function Zb(a){return[...new Set(a)]}function Db(a){let n={},s=Object.keys(a).sort();for(let o of s)n[o]=a[o];return n}function Rb(a,n){let s=new Set;return new Set(n),a.reduce((o,u)=>{let f=JSON.stringify(Db(u));return s.has(f)||(s.add(f),o.push({key:f,link:u})),o},[])}function B8(){let a=c.useContext(ql);return Pu(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function kb(){let a=c.useContext(co);return Pu(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var Ku=c.createContext(void 0);Ku.displayName="FrameworkContext";function U8(){let a=c.useContext(Ku);return Pu(a,"You must render this element inside a <HydratedRouter> element"),a}function _b(a,n){let s=c.useContext(Ku),[o,u]=c.useState(!1),[f,h]=c.useState(!1),{onFocus:p,onBlur:x,onMouseEnter:g,onMouseLeave:y,onTouchStart:b}=n,j=c.useRef(null);c.useEffect(()=>{if(a==="render"&&h(!0),a==="viewport"){let N=C=>{C.forEach(T=>{h(T.isIntersecting)})},E=new IntersectionObserver(N,{threshold:.5});return j.current&&E.observe(j.current),()=>{E.disconnect()}}},[a]),c.useEffect(()=>{if(o){let N=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(N)}}},[o]);let S=()=>{u(!0)},w=()=>{u(!1),h(!1)};return s?a!=="intent"?[f,j,{}]:[f,j,{onFocus:$s(p,S),onBlur:$s(x,w),onMouseEnter:$s(g,S),onMouseLeave:$s(y,w),onTouchStart:$s(b,S)}]:[!1,j,{}]}function $s(a,n){return s=>{a&&a(s),s.defaultPrevented||n(s)}}function zb({page:a,...n}){let{router:s}=B8(),o=c.useMemo(()=>N8(s.routes,a,s.basename),[s.routes,a,s.basename]);return o?c.createElement(Bb,{page:a,matches:o,...n}):null}function Ob(a){let{manifest:n,routeModules:s}=U8(),[o,u]=c.useState([]);return c.useEffect(()=>{let f=!1;return Hb(a,n,s).then(h=>{f||u(h)}),()=>{f=!0}},[a,n,s]),o}function Bb({page:a,matches:n,...s}){let o=ya(),{future:u,manifest:f,routeModules:h}=U8(),{basename:p}=B8(),{loaderData:x,matches:g}=kb(),y=c.useMemo(()=>Qm(a,n,g,f,o,"data"),[a,n,g,f,o]),b=c.useMemo(()=>Qm(a,n,g,f,o,"assets"),[a,n,g,f,o]),j=c.useMemo(()=>{if(a===o.pathname+o.search+o.hash)return[];let N=new Set,E=!1;if(n.forEach(T=>{var Y;let D=f.routes[T.route.id];!D||!D.hasLoader||(!y.some(F=>F.route.id===T.route.id)&&T.route.id in x&&((Y=h[T.route.id])!=null&&Y.shouldRevalidate)||D.hasClientLoader?E=!0:N.add(T.route.id))}),N.size===0)return[];let C=Cb(a,p,u.unstable_trailingSlashAwareDataRequests,"data");return E&&N.size>0&&C.searchParams.set("_routes",n.filter(T=>N.has(T.route.id)).map(T=>T.route.id).join(",")),[C.pathname+C.search]},[p,u.unstable_trailingSlashAwareDataRequests,x,o,f,y,n,a,h]),S=c.useMemo(()=>Lb(b,f),[b,f]),w=Ob(b);return c.createElement(c.Fragment,null,j.map(N=>c.createElement("link",{key:N,rel:"prefetch",as:"fetch",href:N,...s})),S.map(N=>c.createElement("link",{key:N,rel:"modulepreload",href:N,...s})),w.map(({key:N,link:E})=>c.createElement("link",{key:N,nonce:s.nonce,...E,crossOrigin:E.crossOrigin??s.crossOrigin})))}function Ub(...a){return n=>{a.forEach(s=>{typeof s=="function"?s(n):s!=null&&(s.current=n)})}}var Fb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Fb&&(window.__reactRouterVersion="7.13.1")}catch{}function qb({basename:a,children:n,unstable_useTransitions:s,window:o}){let u=c.useRef();u.current==null&&(u.current=vg({window:o,v5Compat:!0}));let f=u.current,[h,p]=c.useState({action:f.action,location:f.location}),x=c.useCallback(g=>{s===!1?p(g):c.startTransition(()=>p(g))},[s]);return c.useLayoutEffect(()=>f.listen(x),[f,x]),c.createElement(bb,{basename:a,children:n,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:s})}var F8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ht=c.forwardRef(function({onClick:n,discover:s="render",prefetch:o="none",relative:u,reloadDocument:f,replace:h,unstable_mask:p,state:x,target:g,to:y,preventScrollReset:b,viewTransition:j,unstable_defaultShouldRevalidate:S,...w},N){let{basename:E,navigator:C,unstable_useTransitions:T}=c.useContext(Ft),D=typeof y=="string"&&F8.test(y),Y=V8(y,E);y=Y.to;let F=eb(y,{relative:u}),L=ya(),z=null;if(p){let ne=oo(p,[],L.unstable_mask?L.unstable_mask.pathname:"/",!0);E!=="/"&&(ne.pathname=ne.pathname==="/"?E:xa([E,ne.pathname])),z=C.createHref(ne)}let[q,Q,J]=_b(o,w),ee=Gb(y,{replace:h,unstable_mask:p,state:x,target:g,preventScrollReset:b,relative:u,viewTransition:j,unstable_defaultShouldRevalidate:S,unstable_useTransitions:T});function ue(ne){n&&n(ne),ne.defaultPrevented||ee(ne)}let le=!(Y.isExternal||f),K=c.createElement("a",{...w,...J,href:(le?z:void 0)||Y.absoluteURL||F,onClick:le?ue:n,ref:Ub(N,Q),target:g,"data-discover":!D&&s==="render"?"true":void 0});return q&&!D?c.createElement(c.Fragment,null,K,c.createElement(zb,{page:F})):K});ht.displayName="Link";var Yn=c.forwardRef(function({"aria-current":n="page",caseSensitive:s=!1,className:o="",end:u=!1,style:f,to:h,viewTransition:p,children:x,...g},y){let b=ri(h,{relative:g.relative}),j=ya(),S=c.useContext(co),{navigator:w,basename:N}=c.useContext(Ft),E=S!=null&&Jb(b)&&p===!0,C=w.encodeLocation?w.encodeLocation(b).pathname:b.pathname,T=j.pathname,D=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;s||(T=T.toLowerCase(),D=D?D.toLowerCase():null,C=C.toLowerCase()),D&&N&&(D=Oa(D,N)||D);const Y=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let F=T===C||!u&&T.startsWith(C)&&T.charAt(Y)==="/",L=D!=null&&(D===C||!u&&D.startsWith(C)&&D.charAt(C.length)==="/"),z={isActive:F,isPending:L,isTransitioning:E},q=F?n:void 0,Q;typeof o=="function"?Q=o(z):Q=[o,F?"active":null,L?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let J=typeof f=="function"?f(z):f;return c.createElement(ht,{...g,"aria-current":q,className:Q,ref:y,style:J,to:h,viewTransition:p},typeof x=="function"?x(z):x)});Yn.displayName="NavLink";var Yb=c.forwardRef(({discover:a="render",fetcherKey:n,navigate:s,reloadDocument:o,replace:u,state:f,method:h=Ur,action:p,onSubmit:x,relative:g,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:j,...S},w)=>{let{unstable_useTransitions:N}=c.useContext(Ft),E=Kb(),C=Qb(p,{relative:g}),T=h.toLowerCase()==="get"?"get":"post",D=typeof p=="string"&&F8.test(p),Y=F=>{if(x&&x(F),F.defaultPrevented)return;F.preventDefault();let L=F.nativeEvent.submitter,z=(L==null?void 0:L.getAttribute("formmethod"))||h,q=()=>E(L||F.currentTarget,{fetcherKey:n,method:z,navigate:s,replace:u,state:f,relative:g,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:j});N&&s!==!1?c.startTransition(()=>q()):q()};return c.createElement("form",{ref:w,method:T,action:C,onSubmit:o?x:Y,...S,"data-discover":!D&&a==="render"?"true":void 0})});Yb.displayName="Form";function $b(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function q8(a){let n=c.useContext(ql);return Be(n,$b(a)),n}function Gb(a,{target:n,replace:s,unstable_mask:o,state:u,preventScrollReset:f,relative:h,viewTransition:p,unstable_defaultShouldRevalidate:x,unstable_useTransitions:g}={}){let y=ii(),b=ya(),j=ri(a,{relative:h});return c.useCallback(S=>{if(Eb(S,n)){S.preventDefault();let w=s!==void 0?s:Ws(b)===Ws(j),N=()=>y(a,{replace:w,unstable_mask:o,state:u,preventScrollReset:f,relative:h,viewTransition:p,unstable_defaultShouldRevalidate:x});g?c.startTransition(()=>N()):N()}},[b,y,j,s,o,u,n,a,f,h,p,x,g])}var Xb=0,Pb=()=>`__${String(++Xb)}__`;function Kb(){let{router:a}=q8("useSubmit"),{basename:n}=c.useContext(Ft),s=mb(),o=a.fetch,u=a.navigate;return c.useCallback(async(f,h={})=>{let{action:p,method:x,encType:g,formData:y,body:b}=Mb(f,n);if(h.navigate===!1){let j=h.fetcherKey||Pb();await o(j,s,h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:y,body:b,formMethod:h.method||x,formEncType:h.encType||g,flushSync:h.flushSync})}else await u(h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:y,body:b,formMethod:h.method||x,formEncType:h.encType||g,replace:h.replace,state:h.state,fromRouteId:s,flushSync:h.flushSync,viewTransition:h.viewTransition})},[o,u,n,s])}function Qb(a,{relative:n}={}){let{basename:s}=c.useContext(Ft),o=c.useContext(aa);Be(o,"useFormAction must be used inside a RouteContext");let[u]=o.matches.slice(-1),f={...ri(a||".",{relative:n})},h=ya();if(a==null){f.search=h.search;let p=new URLSearchParams(f.search),x=p.getAll("index");if(x.some(y=>y==="")){p.delete("index"),x.filter(b=>b).forEach(b=>p.append("index",b));let y=p.toString();f.search=y?`?${y}`:""}}return(!a||a===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(f.pathname=f.pathname==="/"?s:xa([s,f.pathname])),Ws(f)}function Jb(a,{relative:n}={}){let s=c.useContext(L8);Be(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=q8("useViewTransitionState"),u=ri(a,{relative:n});if(!s.isTransitioning)return!1;let f=Oa(s.currentLocation.pathname,o)||s.currentLocation.pathname,h=Oa(s.nextLocation.pathname,o)||s.nextLocation.pathname;return Qr(u.pathname,h)!=null||Qr(u.pathname,f)!=null}const Y8="";function Gn(){return localStorage.getItem("ohwow-session-token")}function hu(a){localStorage.setItem("ohwow-session-token",a)}function $8(){localStorage.removeItem("ohwow-session-token")}async function pe(a,n={}){const s=Gn(),o=await fetch(`${Y8}${a}`,{...n,headers:{"Content-Type":"application/json",...s?{Authorization:`Bearer ${s}`}:{},...n.headers}});if(o.status===401)throw $8(),window.location.href="/ui/login",new Error("Unauthorized");if(!o.ok){const u=await o.json().catch(()=>({error:o.statusText}));throw new Error(u.error||`HTTP ${o.status}`)}return o.json()}async function*Wb(a,n,s){const o=Gn(),u=await fetch(`${Y8}/api/chat`,{method:"POST",headers:{"Content-Type":"application/json",...o?{Authorization:`Bearer ${o}`}:{}},body:JSON.stringify({message:a,sessionId:n,model:s})});if(!u.ok||!u.body)throw new Error("Chat request failed");const f=u.body.getReader(),h=new TextDecoder;let p="";for(;;){const{done:x,value:g}=await f.read();if(x)break;p+=h.decode(g,{stream:!0});const y=p.split(`
|
|
61
|
-
`);p=y.pop()||"";for(const b of y)if(b.startsWith("data: ")){const j=b.slice(6).trim();if(j==="[DONE]")return;try{yield JSON.parse(j)}catch{}}}}function $l(){const[a,n]=c.useState("enterprise"),[s,o]=c.useState(!0),[u,f]=c.useState(!0);return c.useEffect(()=>{let h=!1;return fetch("/api/runtime/tier").then(p=>p.json()).then(p=>{h||(n(p.data.tier),o(p.data.modelReady??!0))}).catch(()=>{}).finally(()=>{h||f(!1)}),()=>{h=!0}},[]),{tier:a,modelReady:s,loading:u}}class G8 extends c.Component{constructor(n){super(n),this.state={hasError:!1,error:null}}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,s){console.error("[ErrorBoundary]",n,s.componentStack)}render(){var n;return this.state.hasError?this.props.fallback||r.jsx("div",{className:"flex items-center justify-center h-full p-8",children:r.jsxs("div",{className:"text-center max-w-sm",children:[r.jsx("p",{className:"text-sm font-medium text-critical mb-2",children:"Something went wrong"}),r.jsx("p",{className:"text-xs text-muted mb-4",children:(n=this.state.error)==null?void 0:n.message}),r.jsx("button",{onClick:()=>this.setState({hasError:!1,error:null}),className:"px-4 py-2 text-xs bg-panel border border-border rounded-lg hover:bg-surface transition-colors",children:"Try again"})]})}):this.props.children}}const Qu=c.createContext({});function Ju(a){const n=c.useRef(null);return n.current===null&&(n.current=a()),n.current}const X8=typeof window<"u",P8=X8?c.useLayoutEffect:c.useEffect,mo=c.createContext(null);function Wu(a,n){a.indexOf(n)===-1&&a.push(n)}function Jr(a,n){const s=a.indexOf(n);s>-1&&a.splice(s,1)}const ba=(a,n,s)=>s>n?n:s<a?a:s;let Iu=()=>{};const Ba={},K8=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Q8(a){return typeof a=="object"&&a!==null}const J8=a=>/^0[^.\s]+$/u.test(a);function W8(a){let n;return()=>(n===void 0&&(n=a()),n)}const ta=a=>a,Ib=(a,n)=>s=>n(a(s)),oi=(...a)=>a.reduce(Ib),Is=(a,n,s)=>{const o=n-a;return o===0?1:(s-a)/o};class e1{constructor(){this.subscriptions=[]}add(n){return Wu(this.subscriptions,n),()=>Jr(this.subscriptions,n)}notify(n,s,o){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](n,s,o);else for(let f=0;f<u;f++){const h=this.subscriptions[f];h&&h(n,s,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const oa=a=>a*1e3,ea=a=>a/1e3;function I8(a,n){return n?a*(1e3/n):0}const e4=(a,n,s)=>(((1-3*s+3*n)*a+(3*s-6*n))*a+3*n)*a,ey=1e-7,ty=12;function ay(a,n,s,o,u){let f,h,p=0;do h=n+(s-n)/2,f=e4(h,o,u)-a,f>0?s=h:n=h;while(Math.abs(f)>ey&&++p<ty);return h}function ci(a,n,s,o){if(a===n&&s===o)return ta;const u=f=>ay(f,0,1,a,s);return f=>f===0||f===1?f:e4(u(f),n,o)}const t4=a=>n=>n<=.5?a(2*n)/2:(2-a(2*(1-n)))/2,a4=a=>n=>1-a(1-n),n4=ci(.33,1.53,.69,.99),t1=a4(n4),l4=t4(t1),s4=a=>(a*=2)<1?.5*t1(a):.5*(2-Math.pow(2,-10*(a-1))),a1=a=>1-Math.sin(Math.acos(a)),i4=a4(a1),r4=t4(a1),ny=ci(.42,0,1,1),ly=ci(0,0,.58,1),o4=ci(.42,0,.58,1),sy=a=>Array.isArray(a)&&typeof a[0]!="number",c4=a=>Array.isArray(a)&&typeof a[0]=="number",iy={linear:ta,easeIn:ny,easeInOut:o4,easeOut:ly,circIn:a1,circInOut:r4,circOut:i4,backIn:t1,backInOut:l4,backOut:n4,anticipate:s4},ry=a=>typeof a=="string",Jm=a=>{if(c4(a)){Iu(a.length===4);const[n,s,o,u]=a;return ci(n,s,o,u)}else if(ry(a))return iy[a];return a},Lr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function oy(a,n){let s=new Set,o=new Set,u=!1,f=!1;const h=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function x(y){h.has(y)&&(g.schedule(y),a()),y(p)}const g={schedule:(y,b=!1,j=!1)=>{const w=j&&u?s:o;return b&&h.add(y),w.has(y)||w.add(y),y},cancel:y=>{o.delete(y),h.delete(y)},process:y=>{if(p=y,u){f=!0;return}u=!0,[s,o]=[o,s],s.forEach(x),s.clear(),u=!1,f&&(f=!1,g.process(y))}};return g}const cy=40;function u4(a,n){let s=!1,o=!0;const u={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,h=Lr.reduce((D,Y)=>(D[Y]=oy(f),D),{}),{setup:p,read:x,resolveKeyframes:g,preUpdate:y,update:b,preRender:j,render:S,postRender:w}=h,N=()=>{const D=Ba.useManualTiming?u.timestamp:performance.now();s=!1,Ba.useManualTiming||(u.delta=o?1e3/60:Math.max(Math.min(D-u.timestamp,cy),1)),u.timestamp=D,u.isProcessing=!0,p.process(u),x.process(u),g.process(u),y.process(u),b.process(u),j.process(u),S.process(u),w.process(u),u.isProcessing=!1,s&&n&&(o=!1,a(N))},E=()=>{s=!0,o=!0,u.isProcessing||a(N)};return{schedule:Lr.reduce((D,Y)=>{const F=h[Y];return D[Y]=(L,z=!1,q=!1)=>(s||E(),F.schedule(L,z,q)),D},{}),cancel:D=>{for(let Y=0;Y<Lr.length;Y++)h[Lr[Y]].cancel(D)},state:u,steps:h}}const{schedule:ke,cancel:gn,state:ft,steps:G0}=u4(typeof requestAnimationFrame<"u"?requestAnimationFrame:ta,!0);let qr;function uy(){qr=void 0}const yt={now:()=>(qr===void 0&&yt.set(ft.isProcessing||Ba.useManualTiming?ft.timestamp:performance.now()),qr),set:a=>{qr=a,queueMicrotask(uy)}},d4=a=>n=>typeof n=="string"&&n.startsWith(a),f4=d4("--"),dy=d4("var(--"),n1=a=>dy(a)?fy.test(a.split("/*")[0].trim()):!1,fy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Wm(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const Gl={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},ei={...Gl,transform:a=>ba(0,1,a)},Zr={...Gl,default:1},Ps=a=>Math.round(a*1e5)/1e5,l1=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function my(a){return a==null}const hy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s1=(a,n)=>s=>!!(typeof s=="string"&&hy.test(s)&&s.startsWith(a)||n&&!my(s)&&Object.prototype.hasOwnProperty.call(s,n)),m4=(a,n,s)=>o=>{if(typeof o!="string")return o;const[u,f,h,p]=o.match(l1);return{[a]:parseFloat(u),[n]:parseFloat(f),[s]:parseFloat(h),alpha:p!==void 0?parseFloat(p):1}},py=a=>ba(0,255,a),X0={...Gl,transform:a=>Math.round(py(a))},Un={test:s1("rgb","red"),parse:m4("red","green","blue"),transform:({red:a,green:n,blue:s,alpha:o=1})=>"rgba("+X0.transform(a)+", "+X0.transform(n)+", "+X0.transform(s)+", "+Ps(ei.transform(o))+")"};function xy(a){let n="",s="",o="",u="";return a.length>5?(n=a.substring(1,3),s=a.substring(3,5),o=a.substring(5,7),u=a.substring(7,9)):(n=a.substring(1,2),s=a.substring(2,3),o=a.substring(3,4),u=a.substring(4,5),n+=n,s+=s,o+=o,u+=u),{red:parseInt(n,16),green:parseInt(s,16),blue:parseInt(o,16),alpha:u?parseInt(u,16)/255:1}}const pu={test:s1("#"),parse:xy,transform:Un.transform},ui=a=>({test:n=>typeof n=="string"&&n.endsWith(a)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${a}`}),hn=ui("deg"),ga=ui("%"),ae=ui("px"),gy=ui("vh"),by=ui("vw"),Im={...ga,parse:a=>ga.parse(a)/100,transform:a=>ga.transform(a*100)},Rl={test:s1("hsl","hue"),parse:m4("hue","saturation","lightness"),transform:({hue:a,saturation:n,lightness:s,alpha:o=1})=>"hsla("+Math.round(a)+", "+ga.transform(Ps(n))+", "+ga.transform(Ps(s))+", "+Ps(ei.transform(o))+")"},Ie={test:a=>Un.test(a)||pu.test(a)||Rl.test(a),parse:a=>Un.test(a)?Un.parse(a):Rl.test(a)?Rl.parse(a):pu.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Un.transform(a):Rl.transform(a),getAnimatableNone:a=>{const n=Ie.parse(a);return n.alpha=0,Ie.transform(n)}},yy=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function vy(a){var n,s;return isNaN(a)&&typeof a=="string"&&(((n=a.match(l1))==null?void 0:n.length)||0)+(((s=a.match(yy))==null?void 0:s.length)||0)>0}const h4="number",p4="color",jy="var",Ay="var(",eh="${}",Sy=/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 ti(a){const n=a.toString(),s=[],o={color:[],number:[],var:[]},u=[];let f=0;const p=n.replace(Sy,x=>(Ie.test(x)?(o.color.push(f),u.push(p4),s.push(Ie.parse(x))):x.startsWith(Ay)?(o.var.push(f),u.push(jy),s.push(x)):(o.number.push(f),u.push(h4),s.push(parseFloat(x))),++f,eh)).split(eh);return{values:s,split:p,indexes:o,types:u}}function x4(a){return ti(a).values}function g4(a){const{split:n,types:s}=ti(a),o=n.length;return u=>{let f="";for(let h=0;h<o;h++)if(f+=n[h],u[h]!==void 0){const p=s[h];p===h4?f+=Ps(u[h]):p===p4?f+=Ie.transform(u[h]):f+=u[h]}return f}}const Ey=a=>typeof a=="number"?0:Ie.test(a)?Ie.getAnimatableNone(a):a;function wy(a){const n=x4(a);return g4(a)(n.map(Ey))}const ca={test:vy,parse:x4,createTransformer:g4,getAnimatableNone:wy};function P0(a,n,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?a+(n-a)*6*s:s<1/2?n:s<2/3?a+(n-a)*(2/3-s)*6:a}function Ny({hue:a,saturation:n,lightness:s,alpha:o}){a/=360,n/=100,s/=100;let u=0,f=0,h=0;if(!n)u=f=h=s;else{const p=s<.5?s*(1+n):s+n-s*n,x=2*s-p;u=P0(x,p,a+1/3),f=P0(x,p,a),h=P0(x,p,a-1/3)}return{red:Math.round(u*255),green:Math.round(f*255),blue:Math.round(h*255),alpha:o}}function Wr(a,n){return s=>s>0?n:a}const Ue=(a,n,s)=>a+(n-a)*s,K0=(a,n,s)=>{const o=a*a,u=s*(n*n-o)+o;return u<0?0:Math.sqrt(u)},My=[pu,Un,Rl],Cy=a=>My.find(n=>n.test(a));function th(a){const n=Cy(a);if(!n)return!1;let s=n.parse(a);return n===Rl&&(s=Ny(s)),s}const ah=(a,n)=>{const s=th(a),o=th(n);if(!s||!o)return Wr(a,n);const u={...s};return f=>(u.red=K0(s.red,o.red,f),u.green=K0(s.green,o.green,f),u.blue=K0(s.blue,o.blue,f),u.alpha=Ue(s.alpha,o.alpha,f),Un.transform(u))},xu=new Set(["none","hidden"]);function Ty(a,n){return xu.has(a)?s=>s<=0?a:n:s=>s>=1?n:a}function Vy(a,n){return s=>Ue(a,n,s)}function i1(a){return typeof a=="number"?Vy:typeof a=="string"?n1(a)?Wr:Ie.test(a)?ah:Zy:Array.isArray(a)?b4:typeof a=="object"?Ie.test(a)?ah:Hy:Wr}function b4(a,n){const s=[...a],o=s.length,u=a.map((f,h)=>i1(f)(f,n[h]));return f=>{for(let h=0;h<o;h++)s[h]=u[h](f);return s}}function Hy(a,n){const s={...a,...n},o={};for(const u in s)a[u]!==void 0&&n[u]!==void 0&&(o[u]=i1(a[u])(a[u],n[u]));return u=>{for(const f in o)s[f]=o[f](u);return s}}function Ly(a,n){const s=[],o={color:0,var:0,number:0};for(let u=0;u<n.values.length;u++){const f=n.types[u],h=a.indexes[f][o[f]],p=a.values[h]??0;s[u]=p,o[f]++}return s}const Zy=(a,n)=>{const s=ca.createTransformer(n),o=ti(a),u=ti(n);return o.indexes.var.length===u.indexes.var.length&&o.indexes.color.length===u.indexes.color.length&&o.indexes.number.length>=u.indexes.number.length?xu.has(a)&&!u.values.length||xu.has(n)&&!o.values.length?Ty(a,n):oi(b4(Ly(o,u),u.values),s):Wr(a,n)};function y4(a,n,s){return typeof a=="number"&&typeof n=="number"&&typeof s=="number"?Ue(a,n,s):i1(a)(a,n)}const Dy=a=>{const n=({timestamp:s})=>a(s);return{start:(s=!0)=>ke.update(n,s),stop:()=>gn(n),now:()=>ft.isProcessing?ft.timestamp:yt.now()}},v4=(a,n,s=10)=>{let o="";const u=Math.max(Math.round(n/s),2);for(let f=0;f<u;f++)o+=Math.round(a(f/(u-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Ir=2e4;function r1(a){let n=0;const s=50;let o=a.next(n);for(;!o.done&&n<Ir;)n+=s,o=a.next(n);return n>=Ir?1/0:n}function Ry(a,n=100,s){const o=s({...a,keyframes:[0,n]}),u=Math.min(r1(o),Ir);return{type:"keyframes",ease:f=>o.next(u*f).value/n,duration:ea(u)}}const ky=5;function j4(a,n,s){const o=Math.max(n-ky,0);return I8(s-a(o),n-o)}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},Q0=.001;function _y({duration:a=$e.duration,bounce:n=$e.bounce,velocity:s=$e.velocity,mass:o=$e.mass}){let u,f,h=1-n;h=ba($e.minDamping,$e.maxDamping,h),a=ba($e.minDuration,$e.maxDuration,ea(a)),h<1?(u=g=>{const y=g*h,b=y*a,j=y-s,S=gu(g,h),w=Math.exp(-b);return Q0-j/S*w},f=g=>{const b=g*h*a,j=b*s+s,S=Math.pow(h,2)*Math.pow(g,2)*a,w=Math.exp(-b),N=gu(Math.pow(g,2),h);return(-u(g)+Q0>0?-1:1)*((j-S)*w)/N}):(u=g=>{const y=Math.exp(-g*a),b=(g-s)*a+1;return-Q0+y*b},f=g=>{const y=Math.exp(-g*a),b=(s-g)*(a*a);return y*b});const p=5/a,x=Oy(u,f,p);if(a=oa(a),isNaN(x))return{stiffness:$e.stiffness,damping:$e.damping,duration:a};{const g=Math.pow(x,2)*o;return{stiffness:g,damping:h*2*Math.sqrt(o*g),duration:a}}}const zy=12;function Oy(a,n,s){let o=s;for(let u=1;u<zy;u++)o=o-a(o)/n(o);return o}function gu(a,n){return a*Math.sqrt(1-n*n)}const By=["duration","bounce"],Uy=["stiffness","damping","mass"];function nh(a,n){return n.some(s=>a[s]!==void 0)}function Fy(a){let n={velocity:$e.velocity,stiffness:$e.stiffness,damping:$e.damping,mass:$e.mass,isResolvedFromDuration:!1,...a};if(!nh(a,Uy)&&nh(a,By))if(n.velocity=0,a.visualDuration){const s=a.visualDuration,o=2*Math.PI/(s*1.2),u=o*o,f=2*ba(.05,1,1-(a.bounce||0))*Math.sqrt(u);n={...n,mass:$e.mass,stiffness:u,damping:f}}else{const s=_y({...a,velocity:0});n={...n,...s,mass:$e.mass},n.isResolvedFromDuration=!0}return n}function eo(a=$e.visualDuration,n=$e.bounce){const s=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:n}:a;let{restSpeed:o,restDelta:u}=s;const f=s.keyframes[0],h=s.keyframes[s.keyframes.length-1],p={done:!1,value:f},{stiffness:x,damping:g,mass:y,duration:b,velocity:j,isResolvedFromDuration:S}=Fy({...s,velocity:-ea(s.velocity||0)}),w=j||0,N=g/(2*Math.sqrt(x*y)),E=h-f,C=ea(Math.sqrt(x/y)),T=Math.abs(E)<5;o||(o=T?$e.restSpeed.granular:$e.restSpeed.default),u||(u=T?$e.restDelta.granular:$e.restDelta.default);let D;if(N<1){const F=gu(C,N);D=L=>{const z=Math.exp(-N*C*L);return h-z*((w+N*C*E)/F*Math.sin(F*L)+E*Math.cos(F*L))}}else if(N===1)D=F=>h-Math.exp(-C*F)*(E+(w+C*E)*F);else{const F=C*Math.sqrt(N*N-1);D=L=>{const z=Math.exp(-N*C*L),q=Math.min(F*L,300);return h-z*((w+N*C*E)*Math.sinh(q)+F*E*Math.cosh(q))/F}}const Y={calculatedDuration:S&&b||null,next:F=>{const L=D(F);if(S)p.done=F>=b;else{let z=F===0?w:0;N<1&&(z=F===0?oa(w):j4(D,F,L));const q=Math.abs(z)<=o,Q=Math.abs(h-L)<=u;p.done=q&&Q}return p.value=p.done?h:L,p},toString:()=>{const F=Math.min(r1(Y),Ir),L=v4(z=>Y.next(F*z).value,F,30);return F+"ms "+L},toTransition:()=>{}};return Y}eo.applyToOptions=a=>{const n=Ry(a,100,eo);return a.ease=n.ease,a.duration=oa(n.duration),a.type="keyframes",a};function bu({keyframes:a,velocity:n=0,power:s=.8,timeConstant:o=325,bounceDamping:u=10,bounceStiffness:f=500,modifyTarget:h,min:p,max:x,restDelta:g=.5,restSpeed:y}){const b=a[0],j={done:!1,value:b},S=q=>p!==void 0&&q<p||x!==void 0&&q>x,w=q=>p===void 0?x:x===void 0||Math.abs(p-q)<Math.abs(x-q)?p:x;let N=s*n;const E=b+N,C=h===void 0?E:h(E);C!==E&&(N=C-b);const T=q=>-N*Math.exp(-q/o),D=q=>C+T(q),Y=q=>{const Q=T(q),J=D(q);j.done=Math.abs(Q)<=g,j.value=j.done?C:J};let F,L;const z=q=>{S(j.value)&&(F=q,L=eo({keyframes:[j.value,w(j.value)],velocity:j4(D,q,j.value),damping:u,stiffness:f,restDelta:g,restSpeed:y}))};return z(0),{calculatedDuration:null,next:q=>{let Q=!1;return!L&&F===void 0&&(Q=!0,Y(q),z(q)),F!==void 0&&q>=F?L.next(q-F):(!Q&&Y(q),j)}}}function qy(a,n,s){const o=[],u=s||Ba.mix||y4,f=a.length-1;for(let h=0;h<f;h++){let p=u(a[h],a[h+1]);if(n){const x=Array.isArray(n)?n[h]||ta:n;p=oi(x,p)}o.push(p)}return o}function Yy(a,n,{clamp:s=!0,ease:o,mixer:u}={}){const f=a.length;if(Iu(f===n.length),f===1)return()=>n[0];if(f===2&&n[0]===n[1])return()=>n[1];const h=a[0]===a[1];a[0]>a[f-1]&&(a=[...a].reverse(),n=[...n].reverse());const p=qy(n,o,u),x=p.length,g=y=>{if(h&&y<a[0])return n[0];let b=0;if(x>1)for(;b<a.length-2&&!(y<a[b+1]);b++);const j=Is(a[b],a[b+1],y);return p[b](j)};return s?y=>g(ba(a[0],a[f-1],y)):g}function $y(a,n){const s=a[a.length-1];for(let o=1;o<=n;o++){const u=Is(0,n,o);a.push(Ue(s,1,u))}}function Gy(a){const n=[0];return $y(n,a.length-1),n}function Xy(a,n){return a.map(s=>s*n)}function Py(a,n){return a.map(()=>n||o4).splice(0,a.length-1)}function Ks({duration:a=300,keyframes:n,times:s,ease:o="easeInOut"}){const u=sy(o)?o.map(Jm):Jm(o),f={done:!1,value:n[0]},h=Xy(s&&s.length===n.length?s:Gy(n),a),p=Yy(h,n,{ease:Array.isArray(u)?u:Py(n,u)});return{calculatedDuration:a,next:x=>(f.value=p(x),f.done=x>=a,f)}}const Ky=a=>a!==null;function o1(a,{repeat:n,repeatType:s="loop"},o,u=1){const f=a.filter(Ky),p=u<0||n&&s!=="loop"&&n%2===1?0:f.length-1;return!p||o===void 0?f[p]:o}const Qy={decay:bu,inertia:bu,tween:Ks,keyframes:Ks,spring:eo};function A4(a){typeof a.type=="string"&&(a.type=Qy[a.type])}class c1{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(n=>{this.resolve=n})}notifyFinished(){this.resolve()}then(n,s){return this.finished.then(n,s)}}const Jy=a=>a/100;class u1 extends c1{constructor(n){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var o,u;const{motionValue:s}=this.options;s&&s.updatedAt!==yt.now()&&this.tick(yt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(u=(o=this.options).onStop)==null||u.call(o))},this.options=n,this.initAnimation(),this.play(),n.autoplay===!1&&this.pause()}initAnimation(){const{options:n}=this;A4(n);const{type:s=Ks,repeat:o=0,repeatDelay:u=0,repeatType:f,velocity:h=0}=n;let{keyframes:p}=n;const x=s||Ks;x!==Ks&&typeof p[0]!="number"&&(this.mixKeyframes=oi(Jy,y4(p[0],p[1])),p=[0,100]);const g=x({...n,keyframes:p});f==="mirror"&&(this.mirroredGenerator=x({...n,keyframes:[...p].reverse(),velocity:-h})),g.calculatedDuration===null&&(g.calculatedDuration=r1(g));const{calculatedDuration:y}=g;this.calculatedDuration=y,this.resolvedDuration=y+u,this.totalDuration=this.resolvedDuration*(o+1)-u,this.generator=g}updateTime(n){const s=Math.round(n-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(n,s=!1){const{generator:o,totalDuration:u,mixKeyframes:f,mirroredGenerator:h,resolvedDuration:p,calculatedDuration:x}=this;if(this.startTime===null)return o.next(0);const{delay:g=0,keyframes:y,repeat:b,repeatType:j,repeatDelay:S,type:w,onUpdate:N,finalKeyframe:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-u/this.speed,this.startTime)),s?this.currentTime=n:this.updateTime(n);const C=this.currentTime-g*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?C<0:C>u;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let D=this.currentTime,Y=o;if(b){const q=Math.min(this.currentTime,u)/p;let Q=Math.floor(q),J=q%1;!J&&q>=1&&(J=1),J===1&&Q--,Q=Math.min(Q,b+1),!!(Q%2)&&(j==="reverse"?(J=1-J,S&&(J-=S/p)):j==="mirror"&&(Y=h)),D=ba(0,1,J)*p}const F=T?{done:!1,value:y[0]}:Y.next(D);f&&(F.value=f(F.value));let{done:L}=F;!T&&x!==null&&(L=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return z&&w!==bu&&(F.value=o1(y,this.options,E,this.speed)),N&&N(F.value),z&&this.finish(),F}then(n,s){return this.finished.then(n,s)}get duration(){return ea(this.calculatedDuration)}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+ea(n)}get time(){return ea(this.currentTime)}set time(n){var s;n=oa(n),this.currentTime=n,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.playbackSpeed),(s=this.driver)==null||s.start(!1)}get speed(){return this.playbackSpeed}set speed(n){this.updateTime(yt.now());const s=this.playbackSpeed!==n;this.playbackSpeed=n,s&&(this.time=ea(this.currentTime))}play(){var u,f;if(this.isStopped)return;const{driver:n=Dy,startTime:s}=this.options;this.driver||(this.driver=n(h=>this.tick(h))),(f=(u=this.options).onPlay)==null||f.call(u);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=s??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(yt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var n,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(n=this.options).onComplete)==null||s.call(n)}cancel(){var n,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(n=this.options).onCancel)==null||s.call(n)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(n){return this.startTime=0,this.tick(n,!0)}attachTimeline(n){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),n.observe(this)}}function Wy(a){for(let n=1;n<a.length;n++)a[n]??(a[n]=a[n-1])}const Fn=a=>a*180/Math.PI,yu=a=>{const n=Fn(Math.atan2(a[1],a[0]));return vu(n)},Iy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:yu,rotateZ:yu,skewX:a=>Fn(Math.atan(a[1])),skewY:a=>Fn(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},vu=a=>(a=a%360,a<0&&(a+=360),a),lh=yu,sh=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),ih=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),e5={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:sh,scaleY:ih,scale:a=>(sh(a)+ih(a))/2,rotateX:a=>vu(Fn(Math.atan2(a[6],a[5]))),rotateY:a=>vu(Fn(Math.atan2(-a[2],a[0]))),rotateZ:lh,rotate:lh,skewX:a=>Fn(Math.atan(a[4])),skewY:a=>Fn(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function ju(a){return a.includes("scale")?1:0}function Au(a,n){if(!a||a==="none")return ju(n);const s=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,u;if(s)o=e5,u=s;else{const p=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Iy,u=p}if(!u)return ju(n);const f=o[n],h=u[1].split(",").map(a5);return typeof f=="function"?f(h):h[f]}const t5=(a,n)=>{const{transform:s="none"}=getComputedStyle(a);return Au(s,n)};function a5(a){return parseFloat(a.trim())}const Xl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Pl=new Set(Xl),rh=a=>a===Gl||a===ae,n5=new Set(["x","y","z"]),l5=Xl.filter(a=>!n5.has(a));function s5(a){const n=[];return l5.forEach(s=>{const o=a.getValue(s);o!==void 0&&(n.push([s,o.get()]),o.set(s.startsWith("scale")?1:0))}),n}const xn={width:({x:a},{paddingLeft:n="0",paddingRight:s="0"})=>a.max-a.min-parseFloat(n)-parseFloat(s),height:({y:a},{paddingTop:n="0",paddingBottom:s="0"})=>a.max-a.min-parseFloat(n)-parseFloat(s),top:(a,{top:n})=>parseFloat(n),left:(a,{left:n})=>parseFloat(n),bottom:({y:a},{top:n})=>parseFloat(n)+(a.max-a.min),right:({x:a},{left:n})=>parseFloat(n)+(a.max-a.min),x:(a,{transform:n})=>Au(n,"x"),y:(a,{transform:n})=>Au(n,"y")};xn.translateX=xn.x;xn.translateY=xn.y;const $n=new Set;let Su=!1,Eu=!1,wu=!1;function S4(){if(Eu){const a=Array.from($n).filter(o=>o.needsMeasurement),n=new Set(a.map(o=>o.element)),s=new Map;n.forEach(o=>{const u=s5(o);u.length&&(s.set(o,u),o.render())}),a.forEach(o=>o.measureInitialState()),n.forEach(o=>{o.render();const u=s.get(o);u&&u.forEach(([f,h])=>{var p;(p=o.getValue(f))==null||p.set(h)})}),a.forEach(o=>o.measureEndState()),a.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Eu=!1,Su=!1,$n.forEach(a=>a.complete(wu)),$n.clear()}function E4(){$n.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Eu=!0)})}function i5(){wu=!0,E4(),S4(),wu=!1}class d1{constructor(n,s,o,u,f,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...n],this.onComplete=s,this.name=o,this.motionValue=u,this.element=f,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?($n.add(this),Su||(Su=!0,ke.read(E4),ke.resolveKeyframes(S4))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:s,element:o,motionValue:u}=this;if(n[0]===null){const f=u==null?void 0:u.get(),h=n[n.length-1];if(f!==void 0)n[0]=f;else if(o&&s){const p=o.readValue(s,h);p!=null&&(n[0]=p)}n[0]===void 0&&(n[0]=h),u&&f===void 0&&u.set(n[0])}Wy(n)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(n=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,n),$n.delete(this)}cancel(){this.state==="scheduled"&&($n.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const r5=a=>a.startsWith("--");function o5(a,n,s){r5(n)?a.style.setProperty(n,s):a.style[n]=s}const c5={};function w4(a,n){const s=W8(a);return()=>c5[n]??s()}const u5=w4(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),N4=w4(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Xs=([a,n,s,o])=>`cubic-bezier(${a}, ${n}, ${s}, ${o})`,oh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xs([0,.65,.55,1]),circOut:Xs([.55,0,1,.45]),backIn:Xs([.31,.01,.66,-.59]),backOut:Xs([.33,1.53,.69,.99])};function M4(a,n){if(a)return typeof a=="function"?N4()?v4(a,n):"ease-out":c4(a)?Xs(a):Array.isArray(a)?a.map(s=>M4(s,n)||oh.easeOut):oh[a]}function d5(a,n,s,{delay:o=0,duration:u=300,repeat:f=0,repeatType:h="loop",ease:p="easeOut",times:x}={},g=void 0){const y={[n]:s};x&&(y.offset=x);const b=M4(p,u);Array.isArray(b)&&(y.easing=b);const j={delay:o,duration:u,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:f+1,direction:h==="reverse"?"alternate":"normal"};return g&&(j.pseudoElement=g),a.animate(y,j)}function C4(a){return typeof a=="function"&&"applyToOptions"in a}function f5({type:a,...n}){return C4(a)&&N4()?a.applyToOptions(n):(n.duration??(n.duration=300),n.ease??(n.ease="easeOut"),n)}class T4 extends c1{constructor(n){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!n)return;const{element:s,name:o,keyframes:u,pseudoElement:f,allowFlatten:h=!1,finalKeyframe:p,onComplete:x}=n;this.isPseudoElement=!!f,this.allowFlatten=h,this.options=n,Iu(typeof n.type!="string");const g=f5(n);this.animation=d5(s,o,u,g,f),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const y=o1(u,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(y):o5(s,o,y),this.animation.cancel()}x==null||x(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var n,s;(s=(n=this.animation).finish)==null||s.call(n)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:n}=this;n==="idle"||n==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var s,o,u;const n=(s=this.options)==null?void 0:s.element;!this.isPseudoElement&&(n!=null&&n.isConnected)&&((u=(o=this.animation).commitStyles)==null||u.call(o))}get duration(){var s,o;const n=((o=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:o.call(s).duration)||0;return ea(Number(n))}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+ea(n)}get time(){return ea(Number(this.animation.currentTime)||0)}set time(n){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=oa(n)}get speed(){return this.animation.playbackRate}set speed(n){n<0&&(this.finishedTime=null),this.animation.playbackRate=n}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(n){this.manualStartTime=this.animation.startTime=n}attachTimeline({timeline:n,observe:s}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,n&&u5()?(this.animation.timeline=n,ta):s(this)}}const V4={anticipate:s4,backInOut:l4,circInOut:r4};function m5(a){return a in V4}function h5(a){typeof a.ease=="string"&&m5(a.ease)&&(a.ease=V4[a.ease])}const J0=10;class p5 extends T4{constructor(n){h5(n),A4(n),super(n),n.startTime!==void 0&&(this.startTime=n.startTime),this.options=n}updateMotionValue(n){const{motionValue:s,onUpdate:o,onComplete:u,element:f,...h}=this.options;if(!s)return;if(n!==void 0){s.set(n);return}const p=new u1({...h,autoplay:!1}),x=Math.max(J0,yt.now()-this.startTime),g=ba(0,J0,x-J0);s.setWithVelocity(p.sample(Math.max(0,x-g)).value,p.sample(x).value,g),p.stop()}}const ch=(a,n)=>n==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(ca.test(a)||a==="0")&&!a.startsWith("url("));function x5(a){const n=a[0];if(a.length===1)return!0;for(let s=0;s<a.length;s++)if(a[s]!==n)return!0}function g5(a,n,s,o){const u=a[0];if(u===null)return!1;if(n==="display"||n==="visibility")return!0;const f=a[a.length-1],h=ch(u,n),p=ch(f,n);return!h||!p?!1:x5(a)||(s==="spring"||C4(s))&&o}function Nu(a){a.duration=0,a.type="keyframes"}const b5=new Set(["opacity","clipPath","filter","transform"]),y5=W8(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function v5(a){var y;const{motionValue:n,name:s,repeatDelay:o,repeatType:u,damping:f,type:h}=a;if(!(((y=n==null?void 0:n.owner)==null?void 0:y.current)instanceof HTMLElement))return!1;const{onUpdate:x,transformTemplate:g}=n.owner.getProps();return y5()&&s&&b5.has(s)&&(s!=="transform"||!g)&&!x&&!o&&u!=="mirror"&&f!==0&&h!=="inertia"}const j5=40;class A5 extends c1{constructor({autoplay:n=!0,delay:s=0,type:o="keyframes",repeat:u=0,repeatDelay:f=0,repeatType:h="loop",keyframes:p,name:x,motionValue:g,element:y,...b}){var w;super(),this.stop=()=>{var N,E;this._animation&&(this._animation.stop(),(N=this.stopTimeline)==null||N.call(this)),(E=this.keyframeResolver)==null||E.cancel()},this.createdAt=yt.now();const j={autoplay:n,delay:s,type:o,repeat:u,repeatDelay:f,repeatType:h,name:x,motionValue:g,element:y,...b},S=(y==null?void 0:y.KeyframeResolver)||d1;this.keyframeResolver=new S(p,(N,E,C)=>this.onKeyframesResolved(N,E,j,!C),x,g,y),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(n,s,o,u){var E,C;this.keyframeResolver=void 0;const{name:f,type:h,velocity:p,delay:x,isHandoff:g,onUpdate:y}=o;this.resolvedAt=yt.now(),g5(n,f,h,p)||((Ba.instantAnimations||!x)&&(y==null||y(o1(n,o,s))),n[0]=n[n.length-1],Nu(o),o.repeat=0);const j={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>j5?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...o,keyframes:n},S=!g&&v5(j),w=(C=(E=j.motionValue)==null?void 0:E.owner)==null?void 0:C.current,N=S?new p5({...j,element:w}):new u1(j);N.finished.then(()=>{this.notifyFinished()}).catch(ta),this.pendingTimeline&&(this.stopTimeline=N.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=N}get finished(){return this._animation?this.animation.finished:this._finished}then(n,s){return this.finished.finally(n).then(()=>{})}get animation(){var n;return this._animation||((n=this.keyframeResolver)==null||n.resume(),i5()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(n){this.animation.time=n}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(n){this.animation.speed=n}get startTime(){return this.animation.startTime}attachTimeline(n){return this._animation?this.stopTimeline=this.animation.attachTimeline(n):this.pendingTimeline=n,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var n;this._animation&&this.animation.cancel(),(n=this.keyframeResolver)==null||n.cancel()}}function H4(a,n,s,o=0,u=1){const f=Array.from(a).sort((g,y)=>g.sortNodePosition(y)).indexOf(n),h=a.size,p=(h-1)*o;return typeof s=="function"?s(f,h):u===1?f*o:p-f*o}const S5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function E5(a){const n=S5.exec(a);if(!n)return[,];const[,s,o,u]=n;return[`--${s??o}`,u]}function L4(a,n,s=1){const[o,u]=E5(a);if(!o)return;const f=window.getComputedStyle(n).getPropertyValue(o);if(f){const h=f.trim();return K8(h)?parseFloat(h):h}return n1(u)?L4(u,n,s+1):u}const w5={type:"spring",stiffness:500,damping:25,restSpeed:10},N5=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),M5={type:"keyframes",duration:.8},C5={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},T5=(a,{keyframes:n})=>n.length>2?M5:Pl.has(a)?a.startsWith("scale")?N5(n[1]):w5:C5,V5=a=>a!==null;function H5(a,{repeat:n,repeatType:s="loop"},o){const u=a.filter(V5),f=n&&s!=="loop"&&n%2===1?0:u.length-1;return u[f]}function Z4(a,n){if(a!=null&&a.inherit&&n){const{inherit:s,...o}=a;return{...n,...o}}return a}function f1(a,n){const s=(a==null?void 0:a[n])??(a==null?void 0:a.default)??a;return s!==a?Z4(s,a):s}function L5({when:a,delay:n,delayChildren:s,staggerChildren:o,staggerDirection:u,repeat:f,repeatType:h,repeatDelay:p,from:x,elapsed:g,...y}){return!!Object.keys(y).length}const m1=(a,n,s,o={},u,f)=>h=>{const p=f1(o,a)||{},x=p.delay||o.delay||0;let{elapsed:g=0}=o;g=g-oa(x);const y={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:n.getVelocity(),...p,delay:-g,onUpdate:j=>{n.set(j),p.onUpdate&&p.onUpdate(j)},onComplete:()=>{h(),p.onComplete&&p.onComplete()},name:a,motionValue:n,element:f?void 0:u};L5(p)||Object.assign(y,T5(a,y)),y.duration&&(y.duration=oa(y.duration)),y.repeatDelay&&(y.repeatDelay=oa(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let b=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Nu(y),y.delay===0&&(b=!0)),(Ba.instantAnimations||Ba.skipAnimations||u!=null&&u.shouldSkipAnimations)&&(b=!0,Nu(y),y.delay=0),y.allowFlatten=!p.type&&!p.ease,b&&!f&&n.get()!==void 0){const j=H5(y.keyframes,p);if(j!==void 0){ke.update(()=>{y.onUpdate(j),y.onComplete()});return}}return p.isSync?new u1(y):new A5(y)};function uh(a){const n=[{},{}];return a==null||a.values.forEach((s,o)=>{n[0][o]=s.get(),n[1][o]=s.getVelocity()}),n}function h1(a,n,s,o){if(typeof n=="function"){const[u,f]=uh(o);n=n(s!==void 0?s:a.custom,u,f)}if(typeof n=="string"&&(n=a.variants&&a.variants[n]),typeof n=="function"){const[u,f]=uh(o);n=n(s!==void 0?s:a.custom,u,f)}return n}function Bl(a,n,s){const o=a.getProps();return h1(o,n,s!==void 0?s:o.custom,a)}const D4=new Set(["width","height","top","left","right","bottom",...Xl]),dh=30,Z5=a=>!isNaN(parseFloat(a));class D5{constructor(n,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var f;const u=yt.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((f=this.events.change)==null||f.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(n),this.owner=s.owner}setCurrent(n){this.current=n,this.updatedAt=yt.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=Z5(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,s){this.events[n]||(this.events[n]=new e1);const o=this.events[n].add(s);return n==="change"?()=>{o(),ke.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,s){this.passiveEffect=n,this.stopPassiveEffect=s}set(n){this.passiveEffect?this.passiveEffect(n,this.updateAndNotify):this.updateAndNotify(n)}setWithVelocity(n,s,o){this.set(s),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-o}jump(n,s=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var n;(n=this.events.change)==null||n.notify(this.current)}addDependent(n){this.dependents||(this.dependents=new Set),this.dependents.add(n)}removeDependent(n){this.dependents&&this.dependents.delete(n)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=yt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>dh)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,dh);return I8(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(n){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=n(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var n,s;(n=this.dependents)==null||n.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ul(a,n){return new D5(a,n)}const Mu=a=>Array.isArray(a);function R5(a,n,s){a.hasValue(n)?a.getValue(n).set(s):a.addValue(n,Ul(s))}function k5(a){return Mu(a)?a[a.length-1]||0:a}function _5(a,n){const s=Bl(a,n);let{transitionEnd:o={},transition:u={},...f}=s||{};f={...f,...o};for(const h in f){const p=k5(f[h]);R5(a,h,p)}}const pt=a=>!!(a&&a.getVelocity);function z5(a){return!!(pt(a)&&a.add)}function Cu(a,n){const s=a.getValue("willChange");if(z5(s))return s.add(n);if(!s&&Ba.WillChange){const o=new Ba.WillChange("auto");a.addValue("willChange",o),o.add(n)}}function p1(a){return a.replace(/([A-Z])/g,n=>`-${n.toLowerCase()}`)}const O5="framerAppearId",R4="data-"+p1(O5);function k4(a){return a.props[R4]}function B5({protectedKeys:a,needsAnimating:n},s){const o=a.hasOwnProperty(s)&&n[s]!==!0;return n[s]=!1,o}function _4(a,n,{delay:s=0,transitionOverride:o,type:u}={}){let{transition:f,transitionEnd:h,...p}=n;const x=a.getDefaultTransition();f=f?Z4(f,x):x;const g=f==null?void 0:f.reduceMotion;o&&(f=o);const y=[],b=u&&a.animationState&&a.animationState.getState()[u];for(const j in p){const S=a.getValue(j,a.latestValues[j]??null),w=p[j];if(w===void 0||b&&B5(b,j))continue;const N={delay:s,...f1(f||{},j)},E=S.get();if(E!==void 0&&!S.isAnimating&&!Array.isArray(w)&&w===E&&!N.velocity)continue;let C=!1;if(window.MotionHandoffAnimation){const Y=k4(a);if(Y){const F=window.MotionHandoffAnimation(Y,j,ke);F!==null&&(N.startTime=F,C=!0)}}Cu(a,j);const T=g??a.shouldReduceMotion;S.start(m1(j,S,w,T&&D4.has(j)?{type:!1}:N,a,C));const D=S.animation;D&&y.push(D)}if(h){const j=()=>ke.update(()=>{h&&_5(a,h)});y.length?Promise.all(y).then(j):j()}return y}function Tu(a,n,s={}){var x;const o=Bl(a,n,s.type==="exit"?(x=a.presenceContext)==null?void 0:x.custom:void 0);let{transition:u=a.getDefaultTransition()||{}}=o||{};s.transitionOverride&&(u=s.transitionOverride);const f=o?()=>Promise.all(_4(a,o,s)):()=>Promise.resolve(),h=a.variantChildren&&a.variantChildren.size?(g=0)=>{const{delayChildren:y=0,staggerChildren:b,staggerDirection:j}=u;return U5(a,n,g,y,b,j,s)}:()=>Promise.resolve(),{when:p}=u;if(p){const[g,y]=p==="beforeChildren"?[f,h]:[h,f];return g().then(()=>y())}else return Promise.all([f(),h(s.delay)])}function U5(a,n,s=0,o=0,u=0,f=1,h){const p=[];for(const x of a.variantChildren)x.notify("AnimationStart",n),p.push(Tu(x,n,{...h,delay:s+(typeof o=="function"?0:o)+H4(a.variantChildren,x,o,u,f)}).then(()=>x.notify("AnimationComplete",n)));return Promise.all(p)}function F5(a,n,s={}){a.notify("AnimationStart",n);let o;if(Array.isArray(n)){const u=n.map(f=>Tu(a,f,s));o=Promise.all(u)}else if(typeof n=="string")o=Tu(a,n,s);else{const u=typeof n=="function"?Bl(a,n,s.custom):n;o=Promise.all(_4(a,u,s))}return o.then(()=>{a.notify("AnimationComplete",n)})}const q5={test:a=>a==="auto",parse:a=>a},z4=a=>n=>n.test(a),O4=[Gl,ae,ga,hn,by,gy,q5],fh=a=>O4.find(z4(a));function Y5(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||J8(a):!0}const $5=new Set(["brightness","contrast","saturate","opacity"]);function G5(a){const[n,s]=a.slice(0,-1).split("(");if(n==="drop-shadow")return a;const[o]=s.match(l1)||[];if(!o)return a;const u=s.replace(o,"");let f=$5.has(n)?1:0;return o!==s&&(f*=100),n+"("+f+u+")"}const X5=/\b([a-z-]*)\(.*?\)/gu,Vu={...ca,getAnimatableNone:a=>{const n=a.match(X5);return n?n.map(G5).join(" "):a}},Hu={...ca,getAnimatableNone:a=>{const n=ca.parse(a);return ca.createTransformer(a)(n.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},mh={...Gl,transform:Math.round},P5={rotate:hn,rotateX:hn,rotateY:hn,rotateZ:hn,scale:Zr,scaleX:Zr,scaleY:Zr,scaleZ:Zr,skew:hn,skewX:hn,skewY:hn,distance:ae,translateX:ae,translateY:ae,translateZ:ae,x:ae,y:ae,z:ae,perspective:ae,transformPerspective:ae,opacity:ei,originX:Im,originY:Im,originZ:ae},x1={borderWidth:ae,borderTopWidth:ae,borderRightWidth:ae,borderBottomWidth:ae,borderLeftWidth:ae,borderRadius:ae,borderTopLeftRadius:ae,borderTopRightRadius:ae,borderBottomRightRadius:ae,borderBottomLeftRadius:ae,width:ae,maxWidth:ae,height:ae,maxHeight:ae,top:ae,right:ae,bottom:ae,left:ae,inset:ae,insetBlock:ae,insetBlockStart:ae,insetBlockEnd:ae,insetInline:ae,insetInlineStart:ae,insetInlineEnd:ae,padding:ae,paddingTop:ae,paddingRight:ae,paddingBottom:ae,paddingLeft:ae,paddingBlock:ae,paddingBlockStart:ae,paddingBlockEnd:ae,paddingInline:ae,paddingInlineStart:ae,paddingInlineEnd:ae,margin:ae,marginTop:ae,marginRight:ae,marginBottom:ae,marginLeft:ae,marginBlock:ae,marginBlockStart:ae,marginBlockEnd:ae,marginInline:ae,marginInlineStart:ae,marginInlineEnd:ae,fontSize:ae,backgroundPositionX:ae,backgroundPositionY:ae,...P5,zIndex:mh,fillOpacity:ei,strokeOpacity:ei,numOctaves:mh},K5={...x1,color:Ie,backgroundColor:Ie,outlineColor:Ie,fill:Ie,stroke:Ie,borderColor:Ie,borderTopColor:Ie,borderRightColor:Ie,borderBottomColor:Ie,borderLeftColor:Ie,filter:Vu,WebkitFilter:Vu,mask:Hu,WebkitMask:Hu},B4=a=>K5[a],Q5=new Set([Vu,Hu]);function U4(a,n){let s=B4(a);return Q5.has(s)||(s=ca),s.getAnimatableNone?s.getAnimatableNone(n):void 0}const J5=new Set(["auto","none","0"]);function W5(a,n,s){let o=0,u;for(;o<a.length&&!u;){const f=a[o];typeof f=="string"&&!J5.has(f)&&ti(f).values.length&&(u=a[o]),o++}if(u&&s)for(const f of n)a[f]=U4(s,u)}class I5 extends d1{constructor(n,s,o,u,f){super(n,s,o,u,f,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:s,name:o}=this;if(!s||!s.current)return;super.readKeyframes();for(let y=0;y<n.length;y++){let b=n[y];if(typeof b=="string"&&(b=b.trim(),n1(b))){const j=L4(b,s.current);j!==void 0&&(n[y]=j),y===n.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!D4.has(o)||n.length!==2)return;const[u,f]=n,h=fh(u),p=fh(f),x=Wm(u),g=Wm(f);if(x!==g&&xn[o]){this.needsMeasurement=!0;return}if(h!==p)if(rh(h)&&rh(p))for(let y=0;y<n.length;y++){const b=n[y];typeof b=="string"&&(n[y]=parseFloat(b))}else xn[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:s}=this,o=[];for(let u=0;u<n.length;u++)(n[u]===null||Y5(n[u]))&&o.push(u);o.length&&W5(n,o,s)}measureInitialState(){const{element:n,unresolvedKeyframes:s,name:o}=this;if(!n||!n.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=xn[o](n.measureViewportBox(),window.getComputedStyle(n.current)),s[0]=this.measuredOrigin;const u=s[s.length-1];u!==void 0&&n.getValue(o,u).jump(u,!1)}measureEndState(){var p;const{element:n,name:s,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const u=n.getValue(s);u&&u.jump(this.measuredOrigin,!1);const f=o.length-1,h=o[f];o[f]=xn[s](n.measureViewportBox(),window.getComputedStyle(n.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),(p=this.removedTransforms)!=null&&p.length&&this.removedTransforms.forEach(([x,g])=>{n.getValue(x).set(g)}),this.resolveNoneKeyframes()}}const ev=new Set(["opacity","clipPath","filter","transform"]);function F4(a,n,s){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let o=document;const u=(s==null?void 0:s[a])??o.querySelectorAll(a);return u?Array.from(u):[]}return Array.from(a).filter(o=>o!=null)}const q4=(a,n)=>n&&typeof a=="number"?n.transform(a):a;function Lu(a){return Q8(a)&&"offsetHeight"in a}const{schedule:g1}=u4(queueMicrotask,!1),ra={x:!1,y:!1};function Y4(){return ra.x||ra.y}function tv(a){return a==="x"||a==="y"?ra[a]?null:(ra[a]=!0,()=>{ra[a]=!1}):ra.x||ra.y?null:(ra.x=ra.y=!0,()=>{ra.x=ra.y=!1})}function $4(a,n){const s=F4(a),o=new AbortController,u={passive:!0,...n,signal:o.signal};return[s,u,()=>o.abort()]}function av(a){return!(a.pointerType==="touch"||Y4())}function nv(a,n,s={}){const[o,u,f]=$4(a,s);return o.forEach(h=>{let p=!1,x=!1,g;const y=()=>{h.removeEventListener("pointerleave",w)},b=E=>{g&&(g(E),g=void 0),y()},j=E=>{p=!1,window.removeEventListener("pointerup",j),window.removeEventListener("pointercancel",j),x&&(x=!1,b(E))},S=()=>{p=!0,window.addEventListener("pointerup",j,u),window.addEventListener("pointercancel",j,u)},w=E=>{if(E.pointerType!=="touch"){if(p){x=!0;return}b(E)}},N=E=>{if(!av(E))return;x=!1;const C=n(h,E);typeof C=="function"&&(g=C,h.addEventListener("pointerleave",w,u))};h.addEventListener("pointerenter",N,u),h.addEventListener("pointerdown",S,u)}),f}const G4=(a,n)=>n?a===n?!0:G4(a,n.parentElement):!1,b1=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,lv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function sv(a){return lv.has(a.tagName)||a.isContentEditable===!0}const iv=new Set(["INPUT","SELECT","TEXTAREA"]);function rv(a){return iv.has(a.tagName)||a.isContentEditable===!0}const Yr=new WeakSet;function hh(a){return n=>{n.key==="Enter"&&a(n)}}function W0(a,n){a.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const ov=(a,n)=>{const s=a.currentTarget;if(!s)return;const o=hh(()=>{if(Yr.has(s))return;W0(s,"down");const u=hh(()=>{W0(s,"up")}),f=()=>W0(s,"cancel");s.addEventListener("keyup",u,n),s.addEventListener("blur",f,n)});s.addEventListener("keydown",o,n),s.addEventListener("blur",()=>s.removeEventListener("keydown",o),n)};function ph(a){return b1(a)&&!Y4()}const xh=new WeakSet;function cv(a,n,s={}){const[o,u,f]=$4(a,s),h=p=>{const x=p.currentTarget;if(!ph(p)||xh.has(p))return;Yr.add(x),s.stopPropagation&&xh.add(p);const g=n(x,p),y=(S,w)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",j),Yr.has(x)&&Yr.delete(x),ph(S)&&typeof g=="function"&&g(S,{success:w})},b=S=>{y(S,x===window||x===document||s.useGlobalTarget||G4(x,S.target))},j=S=>{y(S,!1)};window.addEventListener("pointerup",b,u),window.addEventListener("pointercancel",j,u)};return o.forEach(p=>{(s.useGlobalTarget?window:p).addEventListener("pointerdown",h,u),Lu(p)&&(p.addEventListener("focus",g=>ov(g,u)),!sv(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),f}function y1(a){return Q8(a)&&"ownerSVGElement"in a}const $r=new WeakMap;let pn;const X4=(a,n,s)=>(o,u)=>u&&u[0]?u[0][a+"Size"]:y1(o)&&"getBBox"in o?o.getBBox()[n]:o[s],uv=X4("inline","width","offsetWidth"),dv=X4("block","height","offsetHeight");function fv({target:a,borderBoxSize:n}){var s;(s=$r.get(a))==null||s.forEach(o=>{o(a,{get width(){return uv(a,n)},get height(){return dv(a,n)}})})}function mv(a){a.forEach(fv)}function hv(){typeof ResizeObserver>"u"||(pn=new ResizeObserver(mv))}function pv(a,n){pn||hv();const s=F4(a);return s.forEach(o=>{let u=$r.get(o);u||(u=new Set,$r.set(o,u)),u.add(n),pn==null||pn.observe(o)}),()=>{s.forEach(o=>{const u=$r.get(o);u==null||u.delete(n),u!=null&&u.size||pn==null||pn.unobserve(o)})}}const Gr=new Set;let kl;function xv(){kl=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};Gr.forEach(n=>n(a))},window.addEventListener("resize",kl)}function gv(a){return Gr.add(a),kl||xv(),()=>{Gr.delete(a),!Gr.size&&typeof kl=="function"&&(window.removeEventListener("resize",kl),kl=void 0)}}function gh(a,n){return typeof a=="function"?gv(a):pv(a,n)}function bv(a){return y1(a)&&a.tagName==="svg"}const yv=[...O4,Ie,ca],vv=a=>yv.find(z4(a)),bh=()=>({translate:0,scale:1,origin:0,originPoint:0}),_l=()=>({x:bh(),y:bh()}),yh=()=>({min:0,max:0}),tt=()=>({x:yh(),y:yh()}),jv=new WeakMap;function ho(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function ai(a){return typeof a=="string"||Array.isArray(a)}const v1=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],j1=["initial",...v1];function po(a){return ho(a.animate)||j1.some(n=>ai(a[n]))}function P4(a){return!!(po(a)||a.variants)}function Av(a,n,s){for(const o in n){const u=n[o],f=s[o];if(pt(u))a.addValue(o,u);else if(pt(f))a.addValue(o,Ul(u,{owner:a}));else if(f!==u)if(a.hasValue(o)){const h=a.getValue(o);h.liveStyle===!0?h.jump(u):h.hasAnimated||h.set(u)}else{const h=a.getStaticValue(o);a.addValue(o,Ul(h!==void 0?h:u,{owner:a}))}}for(const o in s)n[o]===void 0&&a.removeValue(o);return n}const Zu={current:null},K4={current:!1},Sv=typeof window<"u";function Ev(){if(K4.current=!0,!!Sv)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),n=()=>Zu.current=a.matches;a.addEventListener("change",n),n()}else Zu.current=!1}const vh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let to={};function Q4(a){to=a}function wv(){return to}class Nv{scrapeMotionValuesFromProps(n,s,o){return{}}constructor({parent:n,props:s,presenceContext:o,reducedMotionConfig:u,skipAnimations:f,blockInitialAnimation:h,visualState:p},x={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=d1,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 S=yt.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,ke.render(this.render,!1,!0))};const{latestValues:g,renderState:y}=p;this.latestValues=g,this.baseTarget={...g},this.initialValues=s.initial?{...g}:{},this.renderState=y,this.parent=n,this.props=s,this.presenceContext=o,this.depth=n?n.depth+1:0,this.reducedMotionConfig=u,this.skipAnimationsConfig=f,this.options=x,this.blockInitialAnimation=!!h,this.isControllingVariants=po(s),this.isVariantNode=P4(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:b,...j}=this.scrapeMotionValuesFromProps(s,{},this);for(const S in j){const w=j[S];g[S]!==void 0&&pt(w)&&w.set(g[S])}}mount(n){var s,o;if(this.hasBeenMounted)for(const u in this.initialValues)(s=this.values.get(u))==null||s.jump(this.initialValues[u]),this.latestValues[u]=this.initialValues[u];this.current=n,jv.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((u,f)=>this.bindToMotionValue(f,u)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(K4.current||Ev(),this.shouldReduceMotion=Zu.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(o=this.parent)==null||o.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var n;this.projection&&this.projection.unmount(),gn(this.notifyUpdate),gn(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(n=this.parent)==null||n.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const o=this.features[s];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(n){this.children.add(n),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(n)}removeChild(n){this.children.delete(n),this.enteringChildren&&this.enteringChildren.delete(n)}bindToMotionValue(n,s){if(this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)(),s.accelerate&&ev.has(n)&&this.current instanceof HTMLElement){const{factory:h,keyframes:p,times:x,ease:g,duration:y}=s.accelerate,b=new T4({element:this.current,name:n,keyframes:p,times:x,ease:g,duration:oa(y)}),j=h(b);this.valueSubscriptions.set(n,()=>{j(),b.cancel()});return}const o=Pl.has(n);o&&this.onBindTransform&&this.onBindTransform();const u=s.on("change",h=>{this.latestValues[n]=h,this.props.onUpdate&&ke.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,n,s)),this.valueSubscriptions.set(n,()=>{u(),f&&f(),s.owner&&s.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in to){const s=to[n];if(!s)continue;const{isEnabled:o,Feature:u}=s;if(!this.features[n]&&u&&o(this.props)&&(this.features[n]=new u(this)),this.features[n]){const f=this.features[n];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tt()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,s){this.latestValues[n]=s}update(n,s){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let o=0;o<vh.length;o++){const u=vh[o];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const f="on"+u,h=n[f];h&&(this.propEventSubscriptions[u]=this.on(u,h))}this.prevMotionValues=Av(this,this.scrapeMotionValuesFromProps(n,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]: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(n){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(n),()=>s.variantChildren.delete(n)}addValue(n,s){const o=this.values.get(n);s!==o&&(o&&this.removeValue(n),this.bindToMotionValue(n,s),this.values.set(n,s),this.latestValues[n]=s.get())}removeValue(n){this.values.delete(n);const s=this.valueSubscriptions.get(n);s&&(s(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,s){if(this.props.values&&this.props.values[n])return this.props.values[n];let o=this.values.get(n);return o===void 0&&s!==void 0&&(o=Ul(s===null?void 0:s,{owner:this}),this.addValue(n,o)),o}readValue(n,s){let o=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:this.getBaseTargetFromProps(this.props,n)??this.readValueFromInstance(this.current,n,this.options);return o!=null&&(typeof o=="string"&&(K8(o)||J8(o))?o=parseFloat(o):!vv(o)&&ca.test(s)&&(o=U4(n,s)),this.setBaseTarget(n,pt(o)?o.get():o)),pt(o)?o.get():o}setBaseTarget(n,s){this.baseTarget[n]=s}getBaseTarget(n){var f;const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const h=h1(this.props,s,(f=this.presenceContext)==null?void 0:f.custom);h&&(o=h[n])}if(s&&o!==void 0)return o;const u=this.getBaseTargetFromProps(this.props,n);return u!==void 0&&!pt(u)?u:this.initialValues[n]!==void 0&&o===void 0?void 0:this.baseTarget[n]}on(n,s){return this.events[n]||(this.events[n]=new e1),this.events[n].add(s)}notify(n,...s){this.events[n]&&this.events[n].notify(...s)}scheduleRenderMicrotask(){g1.render(this.render)}}class J4 extends Nv{constructor(){super(...arguments),this.KeyframeResolver=I5}sortInstanceNodePosition(n,s){return n.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(n,s){const o=n.style;return o?o[s]:void 0}removeValueFromRenderState(n,{vars:s,style:o}){delete s[n],delete o[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;pt(n)&&(this.childSubscription=n.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class yn{constructor(n){this.isMounted=!1,this.node=n}update(){}}function W4({top:a,left:n,right:s,bottom:o}){return{x:{min:n,max:s},y:{min:a,max:o}}}function Mv({x:a,y:n}){return{top:n.min,right:a.max,bottom:n.max,left:a.min}}function Cv(a,n){if(!n)return a;const s=n({x:a.left,y:a.top}),o=n({x:a.right,y:a.bottom});return{top:s.y,left:s.x,bottom:o.y,right:o.x}}function I0(a){return a===void 0||a===1}function Du({scale:a,scaleX:n,scaleY:s}){return!I0(a)||!I0(n)||!I0(s)}function Bn(a){return Du(a)||I4(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function I4(a){return jh(a.x)||jh(a.y)}function jh(a){return a&&a!=="0%"}function ao(a,n,s){const o=a-s,u=n*o;return s+u}function Ah(a,n,s,o,u){return u!==void 0&&(a=ao(a,u,o)),ao(a,s,o)+n}function Ru(a,n=0,s=1,o,u){a.min=Ah(a.min,n,s,o,u),a.max=Ah(a.max,n,s,o,u)}function e6(a,{x:n,y:s}){Ru(a.x,n.translate,n.scale,n.originPoint),Ru(a.y,s.translate,s.scale,s.originPoint)}const Sh=.999999999999,Eh=1.0000000000001;function Tv(a,n,s,o=!1){const u=s.length;if(!u)return;n.x=n.y=1;let f,h;for(let p=0;p<u;p++){f=s[p],h=f.projectionDelta;const{visualElement:x}=f.options;x&&x.props.style&&x.props.style.display==="contents"||(o&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Ol(a,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),h&&(n.x*=h.x.scale,n.y*=h.y.scale,e6(a,h)),o&&Bn(f.latestValues)&&Ol(a,f.latestValues))}n.x<Eh&&n.x>Sh&&(n.x=1),n.y<Eh&&n.y>Sh&&(n.y=1)}function zl(a,n){a.min=a.min+n,a.max=a.max+n}function wh(a,n,s,o,u=.5){const f=Ue(a.min,a.max,u);Ru(a,n,s,f,o)}function Ol(a,n){wh(a.x,n.x,n.scaleX,n.scale,n.originX),wh(a.y,n.y,n.scaleY,n.scale,n.originY)}function t6(a,n){return W4(Cv(a.getBoundingClientRect(),n))}function Vv(a,n,s){const o=t6(a,s),{scroll:u}=n;return u&&(zl(o.x,u.offset.x),zl(o.y,u.offset.y)),o}const Hv={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Lv=Xl.length;function Zv(a,n,s){let o="",u=!0;for(let f=0;f<Lv;f++){const h=Xl[f],p=a[h];if(p===void 0)continue;let x=!0;if(typeof p=="number")x=p===(h.startsWith("scale")?1:0);else{const g=parseFloat(p);x=h.startsWith("scale")?g===1:g===0}if(!x||s){const g=q4(p,x1[h]);if(!x){u=!1;const y=Hv[h]||h;o+=`${y}(${g}) `}s&&(n[h]=g)}}return o=o.trim(),s?o=s(n,u?"":o):u&&(o="none"),o}function A1(a,n,s){const{style:o,vars:u,transformOrigin:f}=a;let h=!1,p=!1;for(const x in n){const g=n[x];if(Pl.has(x)){h=!0;continue}else if(f4(x)){u[x]=g;continue}else{const y=q4(g,x1[x]);x.startsWith("origin")?(p=!0,f[x]=y):o[x]=y}}if(n.transform||(h||s?o.transform=Zv(n,a.transform,s):o.transform&&(o.transform="none")),p){const{originX:x="50%",originY:g="50%",originZ:y=0}=f;o.transformOrigin=`${x} ${g} ${y}`}}function a6(a,{style:n,vars:s},o,u){const f=a.style;let h;for(h in n)f[h]=n[h];u==null||u.applyProjectionStyles(f,o);for(h in s)f.setProperty(h,s[h])}function Nh(a,n){return n.max===n.min?0:a/(n.max-n.min)*100}const Gs={correct:(a,n)=>{if(!n.target)return a;if(typeof a=="string")if(ae.test(a))a=parseFloat(a);else return a;const s=Nh(a,n.target.x),o=Nh(a,n.target.y);return`${s}% ${o}%`}},Dv={correct:(a,{treeScale:n,projectionDelta:s})=>{const o=a,u=ca.parse(a);if(u.length>5)return o;const f=ca.createTransformer(a),h=typeof u[0]!="number"?1:0,p=s.x.scale*n.x,x=s.y.scale*n.y;u[0+h]/=p,u[1+h]/=x;const g=Ue(p,x,.5);return typeof u[2+h]=="number"&&(u[2+h]/=g),typeof u[3+h]=="number"&&(u[3+h]/=g),f(u)}},ku={borderRadius:{...Gs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Gs,borderTopRightRadius:Gs,borderBottomLeftRadius:Gs,borderBottomRightRadius:Gs,boxShadow:Dv};function n6(a,{layout:n,layoutId:s}){return Pl.has(a)||a.startsWith("origin")||(n||s!==void 0)&&(!!ku[a]||a==="opacity")}function S1(a,n,s){var h;const o=a.style,u=n==null?void 0:n.style,f={};if(!o)return f;for(const p in o)(pt(o[p])||u&&pt(u[p])||n6(p,a)||((h=s==null?void 0:s.getValue(p))==null?void 0:h.liveStyle)!==void 0)&&(f[p]=o[p]);return f}function Rv(a){return window.getComputedStyle(a)}class kv extends J4{constructor(){super(...arguments),this.type="html",this.renderInstance=a6}readValueFromInstance(n,s){var o;if(Pl.has(s))return(o=this.projection)!=null&&o.isProjecting?ju(s):t5(n,s);{const u=Rv(n),f=(f4(s)?u.getPropertyValue(s):u[s])||0;return typeof f=="string"?f.trim():f}}measureInstanceViewportBox(n,{transformPagePoint:s}){return t6(n,s)}build(n,s,o){A1(n,s,o.transformTemplate)}scrapeMotionValuesFromProps(n,s,o){return S1(n,s,o)}}const _v={offset:"stroke-dashoffset",array:"stroke-dasharray"},zv={offset:"strokeDashoffset",array:"strokeDasharray"};function Ov(a,n,s=1,o=0,u=!0){a.pathLength=1;const f=u?_v:zv;a[f.offset]=`${-o}`,a[f.array]=`${n} ${s}`}const Bv=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function l6(a,{attrX:n,attrY:s,attrScale:o,pathLength:u,pathSpacing:f=1,pathOffset:h=0,...p},x,g,y){if(A1(a,p,g),x){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:b,style:j}=a;b.transform&&(j.transform=b.transform,delete b.transform),(j.transform||b.transformOrigin)&&(j.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),j.transform&&(j.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete b.transformBox);for(const S of Bv)b[S]!==void 0&&(j[S]=b[S],delete b[S]);n!==void 0&&(b.x=n),s!==void 0&&(b.y=s),o!==void 0&&(b.scale=o),u!==void 0&&Ov(b,u,f,h,!1)}const s6=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"]),i6=a=>typeof a=="string"&&a.toLowerCase()==="svg";function Uv(a,n,s,o){a6(a,n,void 0,o);for(const u in n.attrs)a.setAttribute(s6.has(u)?u:p1(u),n.attrs[u])}function r6(a,n,s){const o=S1(a,n,s);for(const u in a)if(pt(a[u])||pt(n[u])){const f=Xl.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;o[f]=a[u]}return o}class Fv extends J4{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tt}getBaseTargetFromProps(n,s){return n[s]}readValueFromInstance(n,s){if(Pl.has(s)){const o=B4(s);return o&&o.default||0}return s=s6.has(s)?s:p1(s),n.getAttribute(s)}scrapeMotionValuesFromProps(n,s,o){return r6(n,s,o)}build(n,s,o){l6(n,s,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(n,s,o,u){Uv(n,s,o,u)}mount(n){this.isSVGTag=i6(n.tagName),super.mount(n)}}const qv=j1.length;function o6(a){if(!a)return;if(!a.isControllingVariants){const s=a.parent?o6(a.parent)||{}:{};return a.props.initial!==void 0&&(s.initial=a.props.initial),s}const n={};for(let s=0;s<qv;s++){const o=j1[s],u=a.props[o];(ai(u)||u===!1)&&(n[o]=u)}return n}function c6(a,n){if(!Array.isArray(n))return!1;const s=n.length;if(s!==a.length)return!1;for(let o=0;o<s;o++)if(n[o]!==a[o])return!1;return!0}const Yv=[...v1].reverse(),$v=v1.length;function Gv(a){return n=>Promise.all(n.map(({animation:s,options:o})=>F5(a,s,o)))}function Xv(a){let n=Gv(a),s=Mh(),o=!0;const u=x=>(g,y)=>{var j;const b=Bl(a,y,x==="exit"?(j=a.presenceContext)==null?void 0:j.custom:void 0);if(b){const{transition:S,transitionEnd:w,...N}=b;g={...g,...N,...w}}return g};function f(x){n=x(a)}function h(x){const{props:g}=a,y=o6(a.parent)||{},b=[],j=new Set;let S={},w=1/0;for(let E=0;E<$v;E++){const C=Yv[E],T=s[C],D=g[C]!==void 0?g[C]:y[C],Y=ai(D),F=C===x?T.isActive:null;F===!1&&(w=E);let L=D===y[C]&&D!==g[C]&&Y;if(L&&o&&a.manuallyAnimateOnMount&&(L=!1),T.protectedKeys={...S},!T.isActive&&F===null||!D&&!T.prevProp||ho(D)||typeof D=="boolean")continue;if(C==="exit"&&T.isActive&&F!==!0){T.prevResolvedValues&&(S={...S,...T.prevResolvedValues});continue}const z=Pv(T.prevProp,D);let q=z||C===x&&T.isActive&&!L&&Y||E>w&&Y,Q=!1;const J=Array.isArray(D)?D:[D];let ee=J.reduce(u(C),{});F===!1&&(ee={});const{prevResolvedValues:ue={}}=T,le={...ue,...ee},K=B=>{q=!0,j.has(B)&&(Q=!0,j.delete(B)),T.needsAnimating[B]=!0;const I=a.getValue(B);I&&(I.liveStyle=!1)};for(const B in le){const I=ee[B],oe=ue[B];if(S.hasOwnProperty(B))continue;let fe=!1;Mu(I)&&Mu(oe)?fe=!c6(I,oe):fe=I!==oe,fe?I!=null?K(B):j.add(B):I!==void 0&&j.has(B)?K(B):T.protectedKeys[B]=!0}T.prevProp=D,T.prevResolvedValues=ee,T.isActive&&(S={...S,...ee}),o&&a.blockInitialAnimation&&(q=!1);const ne=L&&z;q&&(!ne||Q)&&b.push(...J.map(B=>{const I={type:C};if(typeof B=="string"&&o&&!ne&&a.manuallyAnimateOnMount&&a.parent){const{parent:oe}=a,fe=Bl(oe,B);if(oe.enteringChildren&&fe){const{delayChildren:V}=fe.transition||{};I.delay=H4(oe.enteringChildren,a,V)}}return{animation:B,options:I}}))}if(j.size){const E={};if(typeof g.initial!="boolean"){const C=Bl(a,Array.isArray(g.initial)?g.initial[0]:g.initial);C&&C.transition&&(E.transition=C.transition)}j.forEach(C=>{const T=a.getBaseTarget(C),D=a.getValue(C);D&&(D.liveStyle=!0),E[C]=T??null}),b.push({animation:E})}let N=!!b.length;return o&&(g.initial===!1||g.initial===g.animate)&&!a.manuallyAnimateOnMount&&(N=!1),o=!1,N?n(b):Promise.resolve()}function p(x,g){var b;if(s[x].isActive===g)return Promise.resolve();(b=a.variantChildren)==null||b.forEach(j=>{var S;return(S=j.animationState)==null?void 0:S.setActive(x,g)}),s[x].isActive=g;const y=h(x);for(const j in s)s[j].protectedKeys={};return y}return{animateChanges:h,setActive:p,setAnimateFunction:f,getState:()=>s,reset:()=>{s=Mh()}}}function Pv(a,n){return typeof n=="string"?n!==a:Array.isArray(n)?!c6(n,a):!1}function On(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Mh(){return{animate:On(!0),whileInView:On(),whileHover:On(),whileTap:On(),whileDrag:On(),whileFocus:On(),exit:On()}}function Ch(a,n){a.min=n.min,a.max=n.max}function ia(a,n){Ch(a.x,n.x),Ch(a.y,n.y)}function Th(a,n){a.translate=n.translate,a.scale=n.scale,a.originPoint=n.originPoint,a.origin=n.origin}const u6=1e-4,Kv=1-u6,Qv=1+u6,d6=.01,Jv=0-d6,Wv=0+d6;function vt(a){return a.max-a.min}function Iv(a,n,s){return Math.abs(a-n)<=s}function Vh(a,n,s,o=.5){a.origin=o,a.originPoint=Ue(n.min,n.max,a.origin),a.scale=vt(s)/vt(n),a.translate=Ue(s.min,s.max,a.origin)-a.originPoint,(a.scale>=Kv&&a.scale<=Qv||isNaN(a.scale))&&(a.scale=1),(a.translate>=Jv&&a.translate<=Wv||isNaN(a.translate))&&(a.translate=0)}function Qs(a,n,s,o){Vh(a.x,n.x,s.x,o?o.originX:void 0),Vh(a.y,n.y,s.y,o?o.originY:void 0)}function Hh(a,n,s){a.min=s.min+n.min,a.max=a.min+vt(n)}function e7(a,n,s){Hh(a.x,n.x,s.x),Hh(a.y,n.y,s.y)}function Lh(a,n,s){a.min=n.min-s.min,a.max=a.min+vt(n)}function no(a,n,s){Lh(a.x,n.x,s.x),Lh(a.y,n.y,s.y)}function Zh(a,n,s,o,u){return a-=n,a=ao(a,1/s,o),u!==void 0&&(a=ao(a,1/u,o)),a}function t7(a,n=0,s=1,o=.5,u,f=a,h=a){if(ga.test(n)&&(n=parseFloat(n),n=Ue(h.min,h.max,n/100)-h.min),typeof n!="number")return;let p=Ue(f.min,f.max,o);a===f&&(p-=n),a.min=Zh(a.min,n,s,p,u),a.max=Zh(a.max,n,s,p,u)}function Dh(a,n,[s,o,u],f,h){t7(a,n[s],n[o],n[u],n.scale,f,h)}const a7=["x","scaleX","originX"],n7=["y","scaleY","originY"];function Rh(a,n,s,o){Dh(a.x,n,a7,s?s.x:void 0,o?o.x:void 0),Dh(a.y,n,n7,s?s.y:void 0,o?o.y:void 0)}function kh(a){return a.translate===0&&a.scale===1}function f6(a){return kh(a.x)&&kh(a.y)}function _h(a,n){return a.min===n.min&&a.max===n.max}function l7(a,n){return _h(a.x,n.x)&&_h(a.y,n.y)}function zh(a,n){return Math.round(a.min)===Math.round(n.min)&&Math.round(a.max)===Math.round(n.max)}function m6(a,n){return zh(a.x,n.x)&&zh(a.y,n.y)}function Oh(a){return vt(a.x)/vt(a.y)}function Bh(a,n){return a.translate===n.translate&&a.scale===n.scale&&a.originPoint===n.originPoint}function pa(a){return[a("x"),a("y")]}function s7(a,n,s){let o="";const u=a.x.translate/n.x,f=a.y.translate/n.y,h=(s==null?void 0:s.z)||0;if((u||f||h)&&(o=`translate3d(${u}px, ${f}px, ${h}px) `),(n.x!==1||n.y!==1)&&(o+=`scale(${1/n.x}, ${1/n.y}) `),s){const{transformPerspective:g,rotate:y,rotateX:b,rotateY:j,skewX:S,skewY:w}=s;g&&(o=`perspective(${g}px) ${o}`),y&&(o+=`rotate(${y}deg) `),b&&(o+=`rotateX(${b}deg) `),j&&(o+=`rotateY(${j}deg) `),S&&(o+=`skewX(${S}deg) `),w&&(o+=`skewY(${w}deg) `)}const p=a.x.scale*n.x,x=a.y.scale*n.y;return(p!==1||x!==1)&&(o+=`scale(${p}, ${x})`),o||"none"}const h6=["TopLeft","TopRight","BottomLeft","BottomRight"],i7=h6.length,Uh=a=>typeof a=="string"?parseFloat(a):a,Fh=a=>typeof a=="number"||ae.test(a);function r7(a,n,s,o,u,f){u?(a.opacity=Ue(0,s.opacity??1,o7(o)),a.opacityExit=Ue(n.opacity??1,0,c7(o))):f&&(a.opacity=Ue(n.opacity??1,s.opacity??1,o));for(let h=0;h<i7;h++){const p=`border${h6[h]}Radius`;let x=qh(n,p),g=qh(s,p);if(x===void 0&&g===void 0)continue;x||(x=0),g||(g=0),x===0||g===0||Fh(x)===Fh(g)?(a[p]=Math.max(Ue(Uh(x),Uh(g),o),0),(ga.test(g)||ga.test(x))&&(a[p]+="%")):a[p]=g}(n.rotate||s.rotate)&&(a.rotate=Ue(n.rotate||0,s.rotate||0,o))}function qh(a,n){return a[n]!==void 0?a[n]:a.borderRadius}const o7=p6(0,.5,i4),c7=p6(.5,.95,ta);function p6(a,n,s){return o=>o<a?0:o>n?1:s(Is(a,n,o))}function u7(a,n,s){const o=pt(a)?a:Ul(a);return o.start(m1("",o,n,s)),o.animation}function ni(a,n,s,o={passive:!0}){return a.addEventListener(n,s,o),()=>a.removeEventListener(n,s)}const d7=(a,n)=>a.depth-n.depth;class f7{constructor(){this.children=[],this.isDirty=!1}add(n){Wu(this.children,n),this.isDirty=!0}remove(n){Jr(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(d7),this.isDirty=!1,this.children.forEach(n)}}function m7(a,n){const s=yt.now(),o=({timestamp:u})=>{const f=u-s;f>=n&&(gn(o),a(f-n))};return ke.setup(o,!0),()=>gn(o)}function Xr(a){return pt(a)?a.get():a}class h7{constructor(){this.members=[]}add(n){Wu(this.members,n);for(let s=this.members.length-1;s>=0;s--){const o=this.members[s];if(o===n||o===this.lead||o===this.prevLead)continue;const u=o.instance;u&&u.isConnected===!1&&o.isPresent!==!1&&!o.snapshot&&Jr(this.members,o)}n.scheduleRender()}remove(n){if(Jr(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(n){const s=this.members.findIndex(u=>n===u);if(s===0)return!1;let o;for(let u=s;u>=0;u--){const f=this.members[u],h=f.instance;if(f.isPresent!==!1&&(!h||h.isConnected!==!1)){o=f;break}}return o?(this.promote(o),!0):!1}promote(n,s){const o=this.lead;if(n!==o&&(this.prevLead=o,this.lead=n,n.show(),o)){o.instance&&o.scheduleRender(),n.scheduleRender();const u=o.options.layoutDependency,f=n.options.layoutDependency;if(!(u!==void 0&&f!==void 0&&u===f)){const x=o.instance;x&&x.isConnected===!1&&!o.snapshot||(n.resumeFrom=o,s&&(n.resumeFrom.preserveOpacity=!0),o.snapshot&&(n.snapshot=o.snapshot,n.snapshot.latestValues=o.animationValues||o.latestValues),n.root&&n.root.isUpdating&&(n.isLayoutDirty=!0))}const{crossfade:p}=n.options;p===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(n=>{const{options:s,resumingFrom:o}=n;s.onExitComplete&&s.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(n=>{n.instance&&n.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Pr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},eu=["","X","Y","Z"],p7=1e3;let x7=0;function tu(a,n,s,o){const{latestValues:u}=n;u[a]&&(s[a]=u[a],n.setStaticValue(a,0),o&&(o[a]=0))}function x6(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:n}=a.options;if(!n)return;const s=k4(n);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:f}=a.options;window.MotionCancelOptimisedAnimation(s,"transform",ke,!(u||f))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&x6(o)}function g6({attachResizeListener:a,defaultParent:n,measureScroll:s,checkIsScrollRoot:o,resetTransform:u}){return class{constructor(h={},p=n==null?void 0:n()){this.id=x7++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(y7),this.nodes.forEach(S7),this.nodes.forEach(E7),this.nodes.forEach(v7)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let x=0;x<this.path.length;x++)this.path[x].shouldResetTransform=!0;this.root===this&&(this.nodes=new f7)}addEventListener(h,p){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new e1),this.eventHandlers.get(h).add(p)}notifyListeners(h,...p){const x=this.eventHandlers.get(h);x&&x.notify(...p)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=y1(h)&&!bv(h),this.instance=h;const{layoutId:p,layout:x,visualElement:g}=this.options;if(g&&!g.current&&g.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(x||p)&&(this.isLayoutDirty=!0),a){let y,b=0;const j=()=>this.root.updateBlockedByResize=!1;ke.read(()=>{b=window.innerWidth}),a(h,()=>{const S=window.innerWidth;S!==b&&(b=S,this.root.updateBlockedByResize=!0,y&&y(),y=m7(j,250),Pr.hasAnimatedSinceResize&&(Pr.hasAnimatedSinceResize=!1,this.nodes.forEach(Gh)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&g&&(p||x)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:b,hasRelativeLayoutChanged:j,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||g.getDefaultTransition()||T7,{onLayoutAnimationStart:N,onLayoutAnimationComplete:E}=g.getProps(),C=!this.targetLayout||!m6(this.targetLayout,S),T=!b&&j;if(this.options.layoutRoot||this.resumeFrom||T||b&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const D={...f1(w,"layout"),onPlay:N,onComplete:E};(g.shouldReduceMotion||this.options.layoutRoot)&&(D.delay=0,D.type=!1),this.startAnimation(D),this.setAnimationOrigin(y,T)}else b||Gh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const h=this.getStack();h&&h.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),gn(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(w7),this.animationId++)}getTransformTemplate(){const{visualElement:h}=this.options;return h&&h.getProps().transformTemplate}willUpdate(h=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&x6(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const b=this.path[y];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:p,layout:x}=this.options;if(p===void 0&&!x)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Yh);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach($h);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(A7),this.nodes.forEach(g7),this.nodes.forEach(b7)):this.nodes.forEach($h),this.clearAllSnapshots();const p=yt.now();ft.delta=ba(0,1e3/60,p-ft.timestamp),ft.timestamp=p,ft.isProcessing=!0,G0.update.process(ft),G0.preRender.process(ft),G0.render.process(ft),ft.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,g1.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(j7),this.sharedNodes.forEach(N7)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ke.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ke.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vt(this.snapshot.measuredBox.x)&&!vt(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 x=0;x<this.path.length;x++)this.path[x].updateScroll();const h=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=tt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(p=!1),p&&this.instance){const x=o(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:x,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:x}}}resetTransform(){if(!u)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!f6(this.projectionDelta),x=this.getTransformTemplate(),g=x?x(this.latestValues,""):void 0,y=g!==this.prevTransformTemplateValue;h&&this.instance&&(p||Bn(this.latestValues)||y)&&(u(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const p=this.measurePageBox();let x=this.removeElementScroll(p);return h&&(x=this.removeTransform(x)),V7(x),{animationId:this.root.animationId,measuredBox:p,layoutBox:x,latestValues:{},source:this.id}}measurePageBox(){var g;const{visualElement:h}=this.options;if(!h)return tt();const p=h.measureViewportBox();if(!(((g=this.scroll)==null?void 0:g.wasRoot)||this.path.some(H7))){const{scroll:y}=this.root;y&&(zl(p.x,y.offset.x),zl(p.y,y.offset.y))}return p}removeElementScroll(h){var x;const p=tt();if(ia(p,h),(x=this.scroll)!=null&&x.wasRoot)return p;for(let g=0;g<this.path.length;g++){const y=this.path[g],{scroll:b,options:j}=y;y!==this.root&&b&&j.layoutScroll&&(b.wasRoot&&ia(p,h),zl(p.x,b.offset.x),zl(p.y,b.offset.y))}return p}applyTransform(h,p=!1){const x=tt();ia(x,h);for(let g=0;g<this.path.length;g++){const y=this.path[g];!p&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Ol(x,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),Bn(y.latestValues)&&Ol(x,y.latestValues)}return Bn(this.latestValues)&&Ol(x,this.latestValues),x}removeTransform(h){const p=tt();ia(p,h);for(let x=0;x<this.path.length;x++){const g=this.path[x];if(!g.instance||!Bn(g.latestValues))continue;Du(g.latestValues)&&g.updateSnapshot();const y=tt(),b=g.measurePageBox();ia(y,b),Rh(p,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,y)}return Bn(this.latestValues)&&Rh(p,this.latestValues),p}setTargetDelta(h){this.targetDelta=h,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(h){this.options={...this.options,...h,crossfade:h.crossfade!==void 0?h.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!==ft.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){var S;const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const x=!!this.resumingFrom||this!==p;if(!(h||x&&this.isSharedProjectionDirty||this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:b}=this.options;if(!this.layout||!(y||b))return;this.resolvedRelativeTargetAt=ft.timestamp;const j=this.getClosestProjectingParent();j&&this.linkedParentVersion!==j.layoutVersion&&!j.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(j&&j.layout?this.createRelativeTarget(j,this.layout.layoutBox,j.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=tt(),this.targetWithTransforms=tt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),e7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ia(this.target,this.layout.layoutBox),e6(this.target,this.targetDelta)):ia(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,j&&!!j.resumingFrom==!!this.resumingFrom&&!j.options.layoutScroll&&j.target&&this.animationProgress!==1?this.createRelativeTarget(j,this.target,j.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Du(this.parent.latestValues)||I4(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(h,p,x){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tt(),this.relativeTargetOrigin=tt(),no(this.relativeTargetOrigin,p,x),ia(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var w;const h=this.getLead(),p=!!this.resumingFrom||this!==h;let x=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(x=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(x=!1),this.resolvedRelativeTargetAt===ft.timestamp&&(x=!1),x)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;ia(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,j=this.treeScale.y;Tv(this.layoutCorrected,this.treeScale,this.path,p),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=tt());const{target:S}=h;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Th(this.prevProjectionDelta.x,this.projectionDelta.x),Th(this.prevProjectionDelta.y,this.projectionDelta.y)),Qs(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==j||!Bh(this.projectionDelta.x,this.prevProjectionDelta.x)||!Bh(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){var p;if((p=this.options.visualElement)==null||p.scheduleRender(),h){const x=this.getStack();x&&x.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=_l(),this.projectionDelta=_l(),this.projectionDeltaWithTransform=_l()}setAnimationOrigin(h,p=!1){const x=this.snapshot,g=x?x.latestValues:{},y={...this.latestValues},b=_l();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const j=tt(),S=x?x.source:void 0,w=this.layout?this.layout.source:void 0,N=S!==w,E=this.getStack(),C=!E||E.members.length<=1,T=!!(N&&!C&&this.options.crossfade===!0&&!this.path.some(C7));this.animationProgress=0;let D;this.mixTargetDelta=Y=>{const F=Y/1e3;Xh(b.x,h.x,F),Xh(b.y,h.y,F),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(no(j,this.layout.layoutBox,this.relativeParent.layout.layoutBox),M7(this.relativeTarget,this.relativeTargetOrigin,j,F),D&&l7(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=tt()),ia(D,this.relativeTarget)),N&&(this.animationValues=y,r7(y,g,this.latestValues,F,T,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=F},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){var p,x,g;this.notifyListeners("animationStart"),(p=this.currentAnimation)==null||p.stop(),(g=(x=this.resumingFrom)==null?void 0:x.currentAnimation)==null||g.stop(),this.pendingAnimation&&(gn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ke.update(()=>{Pr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ul(0)),this.motionValue.jump(0,!1),this.currentAnimation=u7(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),h.onUpdate&&h.onUpdate(y)},onStop:()=>{},onComplete:()=>{h.onComplete&&h.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 h=this.getStack();h&&h.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(p7),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:p,target:x,layout:g,latestValues:y}=h;if(!(!p||!x||!g)){if(this!==h&&this.layout&&g&&b6(this.options.animationType,this.layout.layoutBox,g.layoutBox)){x=this.target||tt();const b=vt(this.layout.layoutBox.x);x.x.min=h.target.x.min,x.x.max=x.x.min+b;const j=vt(this.layout.layoutBox.y);x.y.min=h.target.y.min,x.y.max=x.y.min+j}ia(p,x),Ol(p,y),Qs(this.projectionDeltaWithTransform,this.layoutCorrected,p,y)}}registerSharedNode(h,p){this.sharedNodes.has(h)||this.sharedNodes.set(h,new h7),this.sharedNodes.get(h).add(p);const g=p.options.initialPromotionConfig;p.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(p):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){var p;const{layoutId:h}=this.options;return h?((p=this.getStack())==null?void 0:p.lead)||this:this}getPrevLead(){var p;const{layoutId:h}=this.options;return h?(p=this.getStack())==null?void 0:p.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:p,preserveFollowOpacity:x}={}){const g=this.getStack();g&&g.promote(this,x),h&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let p=!1;const{latestValues:x}=h;if((x.z||x.rotate||x.rotateX||x.rotateY||x.rotateZ||x.skewX||x.skewY)&&(p=!0),!p)return;const g={};x.z&&tu("z",h,g,this.animationValues);for(let y=0;y<eu.length;y++)tu(`rotate${eu[y]}`,h,g,this.animationValues),tu(`skew${eu[y]}`,h,g,this.animationValues);h.render();for(const y in g)h.setStaticValue(y,g[y]),this.animationValues&&(this.animationValues[y]=g[y]);h.scheduleRender()}applyProjectionStyles(h,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const x=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=Xr(p==null?void 0:p.pointerEvents)||"",h.transform=x?x(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=Xr(p==null?void 0:p.pointerEvents)||""),this.hasProjected&&!Bn(this.latestValues)&&(h.transform=x?x({},""):"none",this.hasProjected=!1);return}h.visibility="";const y=g.animationValues||g.latestValues;this.applyTransformsToTarget();let b=s7(this.projectionDeltaWithTransform,this.treeScale,y);x&&(b=x(y,b)),h.transform=b;const{x:j,y:S}=this.projectionDelta;h.transformOrigin=`${j.origin*100}% ${S.origin*100}% 0`,g.animationValues?h.opacity=g===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:h.opacity=g===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const w in ku){if(y[w]===void 0)continue;const{correct:N,applyTo:E,isCSSVariable:C}=ku[w],T=b==="none"?y[w]:N(y[w],g);if(E){const D=E.length;for(let Y=0;Y<D;Y++)h[E[Y]]=T}else C?this.options.visualElement.renderState.vars[w]=T:h[w]=T}this.options.layoutId&&(h.pointerEvents=g===this?Xr(p==null?void 0:p.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>{var p;return(p=h.currentAnimation)==null?void 0:p.stop()}),this.root.nodes.forEach(Yh),this.root.sharedNodes.clear()}}}function g7(a){a.updateLayout()}function b7(a){var s;const n=((s=a.resumeFrom)==null?void 0:s.snapshot)||a.snapshot;if(a.isLead()&&a.layout&&n&&a.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:u}=a.layout,{animationType:f}=a.options,h=n.source!==a.layout.source;f==="size"?pa(b=>{const j=h?n.measuredBox[b]:n.layoutBox[b],S=vt(j);j.min=o[b].min,j.max=j.min+S}):b6(f,n.layoutBox,o)&&pa(b=>{const j=h?n.measuredBox[b]:n.layoutBox[b],S=vt(o[b]);j.max=j.min+S,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[b].max=a.relativeTarget[b].min+S)});const p=_l();Qs(p,o,n.layoutBox);const x=_l();h?Qs(x,a.applyTransform(u,!0),n.measuredBox):Qs(x,o,n.layoutBox);const g=!f6(p);let y=!1;if(!a.resumeFrom){const b=a.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:j,layout:S}=b;if(j&&S){const w=tt();no(w,n.layoutBox,j.layoutBox);const N=tt();no(N,o,S.layoutBox),m6(w,N)||(y=!0),b.options.layoutRoot&&(a.relativeTarget=N,a.relativeTargetOrigin=w,a.relativeParent=b)}}}a.notifyListeners("didUpdate",{layout:o,snapshot:n,delta:x,layoutDelta:p,hasLayoutChanged:g,hasRelativeLayoutChanged:y})}else if(a.isLead()){const{onExitComplete:o}=a.options;o&&o()}a.options.transition=void 0}function y7(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function v7(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function j7(a){a.clearSnapshot()}function Yh(a){a.clearMeasurements()}function $h(a){a.isLayoutDirty=!1}function A7(a){const{visualElement:n}=a.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),a.resetTransform()}function Gh(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function S7(a){a.resolveTargetDelta()}function E7(a){a.calcProjection()}function w7(a){a.resetSkewAndRotation()}function N7(a){a.removeLeadSnapshot()}function Xh(a,n,s){a.translate=Ue(n.translate,0,s),a.scale=Ue(n.scale,1,s),a.origin=n.origin,a.originPoint=n.originPoint}function Ph(a,n,s,o){a.min=Ue(n.min,s.min,o),a.max=Ue(n.max,s.max,o)}function M7(a,n,s,o){Ph(a.x,n.x,s.x,o),Ph(a.y,n.y,s.y,o)}function C7(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const T7={duration:.45,ease:[.4,0,.1,1]},Kh=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Qh=Kh("applewebkit/")&&!Kh("chrome/")?Math.round:ta;function Jh(a){a.min=Qh(a.min),a.max=Qh(a.max)}function V7(a){Jh(a.x),Jh(a.y)}function b6(a,n,s){return a==="position"||a==="preserve-aspect"&&!Iv(Oh(n),Oh(s),.2)}function H7(a){var n;return a!==a.root&&((n=a.scroll)==null?void 0:n.wasRoot)}const L7=g6({attachResizeListener:(a,n)=>ni(a,"resize",n),measureScroll:()=>{var a,n;return{x:document.documentElement.scrollLeft||((a=document.body)==null?void 0:a.scrollLeft)||0,y:document.documentElement.scrollTop||((n=document.body)==null?void 0:n.scrollTop)||0}},checkIsScrollRoot:()=>!0}),au={current:void 0},y6=g6({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!au.current){const a=new L7({});a.mount(window),a.setOptions({layoutScroll:!0}),au.current=a}return au.current},resetTransform:(a,n)=>{a.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),E1=c.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function Wh(a,n){if(typeof a=="function")return a(n);a!=null&&(a.current=n)}function Z7(...a){return n=>{let s=!1;const o=a.map(u=>{const f=Wh(u,n);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let u=0;u<o.length;u++){const f=o[u];typeof f=="function"?f():Wh(a[u],null)}}}}function D7(...a){return c.useCallback(Z7(...a),a)}class R7 extends c.Component{getSnapshotBeforeUpdate(n){const s=this.props.childRef.current;if(s&&n.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const o=s.offsetParent,u=Lu(o)&&o.offsetWidth||0,f=Lu(o)&&o.offsetHeight||0,h=this.props.sizeRef.current;h.height=s.offsetHeight||0,h.width=s.offsetWidth||0,h.top=s.offsetTop,h.left=s.offsetLeft,h.right=u-h.width-h.left,h.bottom=f-h.height-h.top}return null}componentDidUpdate(){}render(){return this.props.children}}function k7({children:a,isPresent:n,anchorX:s,anchorY:o,root:u,pop:f}){var j;const h=c.useId(),p=c.useRef(null),x=c.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:g}=c.useContext(E1),y=((j=a.props)==null?void 0:j.ref)??(a==null?void 0:a.ref),b=D7(p,y);return c.useInsertionEffect(()=>{const{width:S,height:w,top:N,left:E,right:C,bottom:T}=x.current;if(n||f===!1||!p.current||!S||!w)return;const D=s==="left"?`left: ${E}`:`right: ${C}`,Y=o==="bottom"?`bottom: ${T}`:`top: ${N}`;p.current.dataset.motionPopId=h;const F=document.createElement("style");g&&(F.nonce=g);const L=u??document.head;return L.appendChild(F),F.sheet&&F.sheet.insertRule(`
|
|
62
|
-
[data-motion-pop-id="${h}"] {
|
|
63
|
-
position: absolute !important;
|
|
64
|
-
width: ${S}px !important;
|
|
65
|
-
height: ${w}px !important;
|
|
66
|
-
${D}px !important;
|
|
67
|
-
${Y}px !important;
|
|
68
|
-
}
|
|
69
|
-
`),()=>{L.contains(F)&&L.removeChild(F)}},[n]),r.jsx(R7,{isPresent:n,childRef:p,sizeRef:x,pop:f,children:f===!1?a:c.cloneElement(a,{ref:b})})}const _7=({children:a,initial:n,isPresent:s,onExitComplete:o,custom:u,presenceAffectsLayout:f,mode:h,anchorX:p,anchorY:x,root:g})=>{const y=Ju(z7),b=c.useId();let j=!0,S=c.useMemo(()=>(j=!1,{id:b,initial:n,isPresent:s,custom:u,onExitComplete:w=>{y.set(w,!0);for(const N of y.values())if(!N)return;o&&o()},register:w=>(y.set(w,!1),()=>y.delete(w))}),[s,y,o]);return f&&j&&(S={...S}),c.useMemo(()=>{y.forEach((w,N)=>y.set(N,!1))},[s]),c.useEffect(()=>{!s&&!y.size&&o&&o()},[s]),a=r.jsx(k7,{pop:h==="popLayout",isPresent:s,anchorX:p,anchorY:x,root:g,children:a}),r.jsx(mo.Provider,{value:S,children:a})};function z7(){return new Map}function v6(a=!0){const n=c.useContext(mo);if(n===null)return[!0,null];const{isPresent:s,onExitComplete:o,register:u}=n,f=c.useId();c.useEffect(()=>{if(a)return u(f)},[a]);const h=c.useCallback(()=>a&&o&&o(f),[f,o,a]);return!s&&o?[!1,h]:[!0]}const Dr=a=>a.key||"";function Ih(a){const n=[];return c.Children.forEach(a,s=>{c.isValidElement(s)&&n.push(s)}),n}const O7=({children:a,custom:n,initial:s=!0,onExitComplete:o,presenceAffectsLayout:u=!0,mode:f="sync",propagate:h=!1,anchorX:p="left",anchorY:x="top",root:g})=>{const[y,b]=v6(h),j=c.useMemo(()=>Ih(a),[a]),S=h&&!y?[]:j.map(Dr),w=c.useRef(!0),N=c.useRef(j),E=Ju(()=>new Map),C=c.useRef(new Set),[T,D]=c.useState(j),[Y,F]=c.useState(j);P8(()=>{w.current=!1,N.current=j;for(let q=0;q<Y.length;q++){const Q=Dr(Y[q]);S.includes(Q)?(E.delete(Q),C.current.delete(Q)):E.get(Q)!==!0&&E.set(Q,!1)}},[Y,S.length,S.join("-")]);const L=[];if(j!==T){let q=[...j];for(let Q=0;Q<Y.length;Q++){const J=Y[Q],ee=Dr(J);S.includes(ee)||(q.splice(Q,0,J),L.push(J))}return f==="wait"&&L.length&&(q=L),F(Ih(q)),D(j),null}const{forceRender:z}=c.useContext(Qu);return r.jsx(r.Fragment,{children:Y.map(q=>{const Q=Dr(q),J=h&&!y?!1:j===Y||S.includes(Q),ee=()=>{if(C.current.has(Q))return;if(C.current.add(Q),E.has(Q))E.set(Q,!0);else return;let ue=!0;E.forEach(le=>{le||(ue=!1)}),ue&&(z==null||z(),F(N.current),h&&(b==null||b()),o&&o())};return r.jsx(_7,{isPresent:J,initial:!w.current||s?void 0:!1,custom:n,presenceAffectsLayout:u,mode:f,root:g,onExitComplete:J?void 0:ee,anchorX:p,anchorY:x,children:q},Q)})})},j6=c.createContext({strict:!1}),e8={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let t8=!1;function B7(){if(t8)return;const a={};for(const n in e8)a[n]={isEnabled:s=>e8[n].some(o=>!!s[o])};Q4(a),t8=!0}function A6(){return B7(),wv()}function U7(a){const n=A6();for(const s in a)n[s]={...n[s],...a[s]};Q4(n)}const F7=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","propagate","ignoreStrict","viewport"]);function lo(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||F7.has(a)}let S6=a=>!lo(a);function q7(a){typeof a=="function"&&(S6=n=>n.startsWith("on")?!lo(n):a(n))}try{q7(require("@emotion/is-prop-valid").default)}catch{}function Y7(a,n,s){const o={};for(const u in a)u==="values"&&typeof a.values=="object"||(S6(u)||s===!0&&lo(u)||!n&&!lo(u)||a.draggable&&u.startsWith("onDrag"))&&(o[u]=a[u]);return o}const xo=c.createContext({});function $7(a,n){if(po(a)){const{initial:s,animate:o}=a;return{initial:s===!1||ai(s)?s:void 0,animate:ai(o)?o:void 0}}return a.inherit!==!1?n:{}}function G7(a){const{initial:n,animate:s}=$7(a,c.useContext(xo));return c.useMemo(()=>({initial:n,animate:s}),[a8(n),a8(s)])}function a8(a){return Array.isArray(a)?a.join(" "):a}const w1=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function E6(a,n,s){for(const o in n)!pt(n[o])&&!n6(o,s)&&(a[o]=n[o])}function X7({transformTemplate:a},n){return c.useMemo(()=>{const s=w1();return A1(s,n,a),Object.assign({},s.vars,s.style)},[n])}function P7(a,n){const s=a.style||{},o={};return E6(o,s,a),Object.assign(o,X7(a,n)),o}function K7(a,n){const s={},o=P7(a,n);return a.drag&&a.dragListener!==!1&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(s.tabIndex=0),s.style=o,s}const w6=()=>({...w1(),attrs:{}});function Q7(a,n,s,o){const u=c.useMemo(()=>{const f=w6();return l6(f,n,i6(o),a.transformTemplate,a.style),{...f.attrs,style:{...f.style}}},[n]);if(a.style){const f={};E6(f,a.style,a),u.style={...f,...u.style}}return u}const J7=["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 N1(a){return typeof a!="string"||a.includes("-")?!1:!!(J7.indexOf(a)>-1||/[A-Z]/u.test(a))}function W7(a,n,s,{latestValues:o},u,f=!1,h){const x=(h??N1(a)?Q7:K7)(n,o,u,a),g=Y7(n,typeof a=="string",f),y=a!==c.Fragment?{...g,...x,ref:s}:{},{children:b}=n,j=c.useMemo(()=>pt(b)?b.get():b,[b]);return c.createElement(a,{...y,children:j})}function I7({scrapeMotionValuesFromProps:a,createRenderState:n},s,o,u){return{latestValues:e9(s,o,u,a),renderState:n()}}function e9(a,n,s,o){const u={},f=o(a,{});for(const j in f)u[j]=Xr(f[j]);let{initial:h,animate:p}=a;const x=po(a),g=P4(a);n&&g&&!x&&a.inherit!==!1&&(h===void 0&&(h=n.initial),p===void 0&&(p=n.animate));let y=s?s.initial===!1:!1;y=y||h===!1;const b=y?p:h;if(b&&typeof b!="boolean"&&!ho(b)){const j=Array.isArray(b)?b:[b];for(let S=0;S<j.length;S++){const w=h1(a,j[S]);if(w){const{transitionEnd:N,transition:E,...C}=w;for(const T in C){let D=C[T];if(Array.isArray(D)){const Y=y?D.length-1:0;D=D[Y]}D!==null&&(u[T]=D)}for(const T in N)u[T]=N[T]}}}return u}const N6=a=>(n,s)=>{const o=c.useContext(xo),u=c.useContext(mo),f=()=>I7(a,n,o,u);return s?f():Ju(f)},t9=N6({scrapeMotionValuesFromProps:S1,createRenderState:w1}),a9=N6({scrapeMotionValuesFromProps:r6,createRenderState:w6}),n9=Symbol.for("motionComponentSymbol");function l9(a,n,s){const o=c.useRef(s);c.useInsertionEffect(()=>{o.current=s});const u=c.useRef(null);return c.useCallback(f=>{var p;f&&((p=a.onMount)==null||p.call(a,f)),n&&(f?n.mount(f):n.unmount());const h=o.current;if(typeof h=="function")if(f){const x=h(f);typeof x=="function"&&(u.current=x)}else u.current?(u.current(),u.current=null):h(f);else h&&(h.current=f)},[n])}const M6=c.createContext({});function Zl(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function s9(a,n,s,o,u,f){var D,Y;const{visualElement:h}=c.useContext(xo),p=c.useContext(j6),x=c.useContext(mo),g=c.useContext(E1),y=g.reducedMotion,b=g.skipAnimations,j=c.useRef(null),S=c.useRef(!1);o=o||p.renderer,!j.current&&o&&(j.current=o(a,{visualState:n,parent:h,props:s,presenceContext:x,blockInitialAnimation:x?x.initial===!1:!1,reducedMotionConfig:y,skipAnimations:b,isSVG:f}),S.current&&j.current&&(j.current.manuallyAnimateOnMount=!0));const w=j.current,N=c.useContext(M6);w&&!w.projection&&u&&(w.type==="html"||w.type==="svg")&&i9(j.current,s,u,N);const E=c.useRef(!1);c.useInsertionEffect(()=>{w&&E.current&&w.update(s,x)});const C=s[R4],T=c.useRef(!!C&&!((D=window.MotionHandoffIsComplete)!=null&&D.call(window,C))&&((Y=window.MotionHasOptimisedAnimation)==null?void 0:Y.call(window,C)));return P8(()=>{S.current=!0,w&&(E.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),T.current&&w.animationState&&w.animationState.animateChanges())}),c.useEffect(()=>{w&&(!T.current&&w.animationState&&w.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var F;(F=window.MotionHandoffMarkAsComplete)==null||F.call(window,C)}),T.current=!1),w.enteringChildren=void 0)}),w}function i9(a,n,s,o){const{layoutId:u,layout:f,drag:h,dragConstraints:p,layoutScroll:x,layoutRoot:g,layoutCrossfade:y}=n;a.projection=new s(a.latestValues,n["data-framer-portal-id"]?void 0:C6(a.parent)),a.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!h||p&&Zl(p),visualElement:a,animationType:typeof f=="string"?f:"both",initialPromotionConfig:o,crossfade:y,layoutScroll:x,layoutRoot:g})}function C6(a){if(a)return a.options.allowProjection!==!1?a.projection:C6(a.parent)}function nu(a,{forwardMotionProps:n=!1,type:s}={},o,u){o&&U7(o);const f=s?s==="svg":N1(a),h=f?a9:t9;function p(g,y){let b;const j={...c.useContext(E1),...g,layoutId:r9(g)},{isStatic:S}=j,w=G7(g),N=h(g,S);if(!S&&X8){o9();const E=c9(j);b=E.MeasureLayout,w.visualElement=s9(a,N,j,u,E.ProjectionNode,f)}return r.jsxs(xo.Provider,{value:w,children:[b&&w.visualElement?r.jsx(b,{visualElement:w.visualElement,...j}):null,W7(a,g,l9(N,w.visualElement,y),N,S,n,f)]})}p.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const x=c.forwardRef(p);return x[n9]=a,x}function r9({layoutId:a}){const n=c.useContext(Qu).id;return n&&a!==void 0?n+"-"+a:a}function o9(a,n){c.useContext(j6).strict}function c9(a){const n=A6(),{drag:s,layout:o}=n;if(!s&&!o)return{};const u={...s,...o};return{MeasureLayout:s!=null&&s.isEnabled(a)||o!=null&&o.isEnabled(a)?u.MeasureLayout:void 0,ProjectionNode:u.ProjectionNode}}function u9(a,n){if(typeof Proxy>"u")return nu;const s=new Map,o=(f,h)=>nu(f,h,a,n),u=(f,h)=>o(f,h);return new Proxy(u,{get:(f,h)=>h==="create"?o:(s.has(h)||s.set(h,nu(h,void 0,a,n)),s.get(h))})}const d9=(a,n)=>n.isSVG??N1(a)?new Fv(n):new kv(n,{allowProjection:a!==c.Fragment});class f9 extends yn{constructor(n){super(n),n.animationState||(n.animationState=Xv(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();ho(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:s}=this.node.prevProps||{};n!==s&&this.updateAnimationControlsSubscription()}unmount(){var n;this.node.animationState.reset(),(n=this.unmountControls)==null||n.call(this)}}let m9=0;class h9 extends yn{constructor(){super(...arguments),this.id=m9++}update(){if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:s}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===o)return;const u=this.node.animationState.setActive("exit",!n);s&&!n&&u.then(()=>{s(this.id)})}mount(){const{register:n,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),n&&(this.unmount=n(this.id))}unmount(){}}const p9={animation:{Feature:f9},exit:{Feature:h9}};function di(a){return{point:{x:a.pageX,y:a.pageY}}}const x9=a=>n=>b1(n)&&a(n,di(n));function Js(a,n,s,o){return ni(a,n,x9(s),o)}const T6=({current:a})=>a?a.ownerDocument.defaultView:null,n8=(a,n)=>Math.abs(a-n);function g9(a,n){const s=n8(a.x,n.x),o=n8(a.y,n.y);return Math.sqrt(s**2+o**2)}const l8=new Set(["auto","scroll"]);class V6{constructor(n,s,{transformPagePoint:o,contextWindow:u=window,dragSnapToOrigin:f=!1,distanceThreshold:h=3,element:p}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=S=>{this.handleScroll(S.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=su(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,N=g9(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!N)return;const{point:E}=S,{timestamp:C}=ft;this.history.push({...E,timestamp:C});const{onStart:T,onMove:D}=this.handlers;w||(T&&T(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),D&&D(this.lastMoveEvent,S)},this.handlePointerMove=(S,w)=>{this.lastMoveEvent=S,this.lastMoveEventInfo=lu(w,this.transformPagePoint),ke.update(this.updatePoint,!0)},this.handlePointerUp=(S,w)=>{this.end();const{onEnd:N,onSessionEnd:E,resumeAnimation:C}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=su(S.type==="pointercancel"?this.lastMoveEventInfo:lu(w,this.transformPagePoint),this.history);this.startEvent&&N&&N(S,T),E&&E(S,T)},!b1(n))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=o,this.distanceThreshold=h,this.contextWindow=u||window;const x=di(n),g=lu(x,this.transformPagePoint),{point:y}=g,{timestamp:b}=ft;this.history=[{...y,timestamp:b}];const{onSessionStart:j}=s;j&&j(n,su(g,this.history)),this.removeListeners=oi(Js(this.contextWindow,"pointermove",this.handlePointerMove),Js(this.contextWindow,"pointerup",this.handlePointerUp),Js(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(n){let s=n.parentElement;for(;s;){const o=getComputedStyle(s);(l8.has(o.overflowX)||l8.has(o.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(n){const s=this.scrollPositions.get(n);if(!s)return;const o=n===window,u=o?{x:window.scrollX,y:window.scrollY}:{x:n.scrollLeft,y:n.scrollTop},f={x:u.x-s.x,y:u.y-s.y};f.x===0&&f.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(n,u),ke.update(this.updatePoint,!0))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),gn(this.updatePoint)}}function lu(a,n){return n?{point:n(a.point)}:a}function s8(a,n){return{x:a.x-n.x,y:a.y-n.y}}function su({point:a},n){return{point:a,delta:s8(a,H6(n)),offset:s8(a,b9(n)),velocity:y9(n,.1)}}function b9(a){return a[0]}function H6(a){return a[a.length-1]}function y9(a,n){if(a.length<2)return{x:0,y:0};let s=a.length-1,o=null;const u=H6(a);for(;s>=0&&(o=a[s],!(u.timestamp-o.timestamp>oa(n)));)s--;if(!o)return{x:0,y:0};o===a[0]&&a.length>2&&u.timestamp-o.timestamp>oa(n)*2&&(o=a[1]);const f=ea(u.timestamp-o.timestamp);if(f===0)return{x:0,y:0};const h={x:(u.x-o.x)/f,y:(u.y-o.y)/f};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function v9(a,{min:n,max:s},o){return n!==void 0&&a<n?a=o?Ue(n,a,o.min):Math.max(a,n):s!==void 0&&a>s&&(a=o?Ue(s,a,o.max):Math.min(a,s)),a}function i8(a,n,s){return{min:n!==void 0?a.min+n:void 0,max:s!==void 0?a.max+s-(a.max-a.min):void 0}}function j9(a,{top:n,left:s,bottom:o,right:u}){return{x:i8(a.x,s,u),y:i8(a.y,n,o)}}function r8(a,n){let s=n.min-a.min,o=n.max-a.max;return n.max-n.min<a.max-a.min&&([s,o]=[o,s]),{min:s,max:o}}function A9(a,n){return{x:r8(a.x,n.x),y:r8(a.y,n.y)}}function S9(a,n){let s=.5;const o=vt(a),u=vt(n);return u>o?s=Is(n.min,n.max-o,a.min):o>u&&(s=Is(a.min,a.max-u,n.min)),ba(0,1,s)}function E9(a,n){const s={};return n.min!==void 0&&(s.min=n.min-a.min),n.max!==void 0&&(s.max=n.max-a.min),s}const _u=.35;function w9(a=_u){return a===!1?a=0:a===!0&&(a=_u),{x:o8(a,"left","right"),y:o8(a,"top","bottom")}}function o8(a,n,s){return{min:c8(a,n),max:c8(a,s)}}function c8(a,n){return typeof a=="number"?a:a[n]||0}const N9=new WeakMap;class M9{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=tt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=n}start(n,{snapToCursor:s=!1,distanceThreshold:o}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const f=b=>{s&&this.snapToCursor(di(b).point),this.stopAnimation()},h=(b,j)=>{const{drag:S,dragPropagation:w,onDragStart:N}=this.getProps();if(S&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=tv(S),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=j,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pa(C=>{let T=this.getAxisMotionValue(C).get()||0;if(ga.test(T)){const{projection:D}=this.visualElement;if(D&&D.layout){const Y=D.layout.layoutBox[C];Y&&(T=vt(Y)*(parseFloat(T)/100))}}this.originPoint[C]=T}),N&&ke.update(()=>N(b,j),!1,!0),Cu(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},p=(b,j)=>{this.latestPointerEvent=b,this.latestPanInfo=j;const{dragPropagation:S,dragDirectionLock:w,onDirectionLock:N,onDrag:E}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:C}=j;if(w&&this.currentDirection===null){this.currentDirection=T9(C),this.currentDirection!==null&&N&&N(this.currentDirection);return}this.updateAxis("x",j.point,C),this.updateAxis("y",j.point,C),this.visualElement.render(),E&&ke.update(()=>E(b,j),!1,!0)},x=(b,j)=>{this.latestPointerEvent=b,this.latestPanInfo=j,this.stop(b,j),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new V6(n,{onSessionStart:f,onStart:h,onMove:p,onSessionEnd:x,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:o,contextWindow:T6(this.visualElement),element:this.visualElement.current})}stop(n,s){const o=n||this.latestPointerEvent,u=s||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!u||!o)return;const{velocity:h}=u;this.startAnimation(h);const{onDragEnd:p}=this.getProps();p&&ke.postRender(()=>p(o,u))}cancel(){this.isDragging=!1;const{projection:n,animationState:s}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(n,s,o){const{drag:u}=this.getProps();if(!o||!Rr(n,u,this.currentDirection))return;const f=this.getAxisMotionValue(n);let h=this.originPoint[n]+o[n];this.constraints&&this.constraints[n]&&(h=v9(h,this.constraints[n],this.elastic[n])),f.set(h)}resolveConstraints(){var f;const{dragConstraints:n,dragElastic:s}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(f=this.visualElement.projection)==null?void 0:f.layout,u=this.constraints;n&&Zl(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=j9(o.layoutBox,n):this.constraints=!1,this.elastic=w9(s),u!==this.constraints&&!Zl(n)&&o&&this.constraints&&!this.hasMutatedConstraints&&pa(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=E9(o.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:s}=this.getProps();if(!n||!Zl(n))return!1;const o=n.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const f=Vv(o,u.root,this.visualElement.getTransformPagePoint());let h=A9(u.layout.layoutBox,f);if(s){const p=s(Mv(h));this.hasMutatedConstraints=!!p,p&&(h=W4(p))}return h}startAnimation(n){const{drag:s,dragMomentum:o,dragElastic:u,dragTransition:f,dragSnapToOrigin:h,onDragTransitionEnd:p}=this.getProps(),x=this.constraints||{},g=pa(y=>{if(!Rr(y,s,this.currentDirection))return;let b=x&&x[y]||{};h&&(b={min:0,max:0});const j=u?200:1e6,S=u?40:1e7,w={type:"inertia",velocity:o?n[y]:0,bounceStiffness:j,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...f,...b};return this.startAxisValueAnimation(y,w)});return Promise.all(g).then(p)}startAxisValueAnimation(n,s){const o=this.getAxisMotionValue(n);return Cu(this.visualElement,n),o.start(m1(n,o,0,s,this.visualElement,!1))}stopAnimation(){pa(n=>this.getAxisMotionValue(n).stop())}getAxisMotionValue(n){const s=`_drag${n.toUpperCase()}`,o=this.visualElement.getProps(),u=o[s];return u||this.visualElement.getValue(n,(o.initial?o.initial[n]:void 0)||0)}snapToCursor(n){pa(s=>{const{drag:o}=this.getProps();if(!Rr(s,o,this.currentDirection))return;const{projection:u}=this.visualElement,f=this.getAxisMotionValue(s);if(u&&u.layout){const{min:h,max:p}=u.layout.layoutBox[s],x=f.get()||0;f.set(n[s]-Ue(h,p,.5)+x)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:s}=this.getProps(),{projection:o}=this.visualElement;if(!Zl(s)||!o||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};pa(h=>{const p=this.getAxisMotionValue(h);if(p&&this.constraints!==!1){const x=p.get();u[h]=S9({min:x,max:x},this.constraints[h])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),pa(h=>{if(!Rr(h,n,null))return;const p=this.getAxisMotionValue(h),{min:x,max:g}=this.constraints[h];p.set(Ue(x,g,u[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;N9.set(this.visualElement,this);const n=this.visualElement.current,s=Js(n,"pointerdown",g=>{const{drag:y,dragListener:b=!0}=this.getProps(),j=g.target,S=j!==n&&rv(j);y&&b&&!S&&this.start(g)});let o;const u=()=>{const{dragConstraints:g}=this.getProps();Zl(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),o||(o=C9(n,g.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,h=f.addEventListener("measure",u);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),ke.read(u);const p=ni(window,"resize",()=>this.scalePositionWithinConstraints()),x=f.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:y})=>{this.isDragging&&y&&(pa(b=>{const j=this.getAxisMotionValue(b);j&&(this.originPoint[b]+=g[b].translate,j.set(j.get()+g[b].translate))}),this.visualElement.render())}));return()=>{p(),s(),h(),x&&x(),o&&o()}}getProps(){const n=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:o=!1,dragPropagation:u=!1,dragConstraints:f=!1,dragElastic:h=_u,dragMomentum:p=!0}=n;return{...n,drag:s,dragDirectionLock:o,dragPropagation:u,dragConstraints:f,dragElastic:h,dragMomentum:p}}}function u8(a){let n=!0;return()=>{if(n){n=!1;return}a()}}function C9(a,n,s){const o=gh(a,u8(s)),u=gh(n,u8(s));return()=>{o(),u()}}function Rr(a,n,s){return(n===!0||n===a)&&(s===null||s===a)}function T9(a,n=10){let s=null;return Math.abs(a.y)>n?s="y":Math.abs(a.x)>n&&(s="x"),s}class V9 extends yn{constructor(n){super(n),this.removeGroupControls=ta,this.removeListeners=ta,this.controls=new M9(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ta}update(){const{dragControls:n}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};n!==s&&(this.removeGroupControls(),n&&(this.removeGroupControls=n.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const iu=a=>(n,s)=>{a&&ke.update(()=>a(n,s),!1,!0)};class H9 extends yn{constructor(){super(...arguments),this.removePointerDownListener=ta}onPointerDown(n){this.session=new V6(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:T6(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:s,onPan:o,onPanEnd:u}=this.node.getProps();return{onSessionStart:iu(n),onStart:iu(s),onMove:iu(o),onEnd:(f,h)=>{delete this.session,u&&ke.postRender(()=>u(f,h))}}}mount(){this.removePointerDownListener=Js(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ru=!1;class L9 extends c.Component{componentDidMount(){const{visualElement:n,layoutGroup:s,switchLayoutGroup:o,layoutId:u}=this.props,{projection:f}=n;f&&(s.group&&s.group.add(f),o&&o.register&&u&&o.register(f),ru&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Pr.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:s,visualElement:o,drag:u,isPresent:f}=this.props,{projection:h}=o;return h&&(h.isPresent=f,n.layoutDependency!==s&&h.setOptions({...h.options,layoutDependency:s}),ru=!0,u||n.layoutDependency!==s||s===void 0||n.isPresent!==f?h.willUpdate():this.safeToRemove(),n.isPresent!==f&&(f?h.promote():h.relegate()||ke.postRender(()=>{const p=h.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),g1.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:s,switchLayoutGroup:o}=this.props,{projection:u}=n;ru=!0,u&&(u.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(u),o&&o.deregister&&o.deregister(u))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function L6(a){const[n,s]=v6(),o=c.useContext(Qu);return r.jsx(L9,{...a,layoutGroup:o,switchLayoutGroup:c.useContext(M6),isPresent:n,safeToRemove:s})}const Z9={pan:{Feature:H9},drag:{Feature:V9,ProjectionNode:y6,MeasureLayout:L6}};function d8(a,n,s){const{props:o}=a;a.animationState&&o.whileHover&&a.animationState.setActive("whileHover",s==="Start");const u="onHover"+s,f=o[u];f&&ke.postRender(()=>f(n,di(n)))}class D9 extends yn{mount(){const{current:n}=this.node;n&&(this.unmount=nv(n,(s,o)=>(d8(this.node,o,"Start"),u=>d8(this.node,u,"End"))))}unmount(){}}class R9 extends yn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!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=oi(ni(this.node.current,"focus",()=>this.onFocus()),ni(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function f8(a,n,s){const{props:o}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&o.whileTap&&a.animationState.setActive("whileTap",s==="Start");const u="onTap"+(s==="End"?"":s),f=o[u];f&&ke.postRender(()=>f(n,di(n)))}class k9 extends yn{mount(){const{current:n}=this.node;if(!n)return;const{globalTapTarget:s,propagate:o}=this.node.props;this.unmount=cv(n,(u,f)=>(f8(this.node,f,"Start"),(h,{success:p})=>f8(this.node,h,p?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:(o==null?void 0:o.tap)===!1})}unmount(){}}const zu=new WeakMap,ou=new WeakMap,_9=a=>{const n=zu.get(a.target);n&&n(a)},z9=a=>{a.forEach(_9)};function O9({root:a,...n}){const s=a||document;ou.has(s)||ou.set(s,{});const o=ou.get(s),u=JSON.stringify(n);return o[u]||(o[u]=new IntersectionObserver(z9,{root:a,...n})),o[u]}function B9(a,n,s){const o=O9(n);return zu.set(a,s),o.observe(a),()=>{zu.delete(a),o.unobserve(a)}}const U9={some:0,all:1};class F9 extends yn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:s,margin:o,amount:u="some",once:f}=n,h={root:s?s.current:void 0,rootMargin:o,threshold:typeof u=="number"?u:U9[u]},p=x=>{const{isIntersecting:g}=x;if(this.isInView===g||(this.isInView=g,f&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:y,onViewportLeave:b}=this.node.getProps(),j=g?y:b;j&&j(x)};return B9(this.node.current,h,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:s}=this.node;["amount","margin","root"].some(q9(n,s))&&this.startObserver()}unmount(){}}function q9({viewport:a={}},{viewport:n={}}={}){return s=>a[s]!==n[s]}const Y9={inView:{Feature:F9},tap:{Feature:k9},focus:{Feature:R9},hover:{Feature:D9}},$9={layout:{ProjectionNode:y6,MeasureLayout:L6}},G9={...p9,...Y9,...Z9,...$9},Z6=u9(G9,d9),X9=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,20H64A20,20,0,0,0,44,40V60H32a12,12,0,0,0,0,24H44v32H32a12,12,0,0,0,0,24H44v32H32a12,12,0,0,0,0,24H44v20a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V40A20,20,0,0,0,208,20Zm-4,192H68V44H204ZM100.8,171.37a48,48,0,0,1,70.4,0,12,12,0,0,0,17.6-16.32,72,72,0,0,0-19.21-14.68,44,44,0,1,0-67.19,0,72.12,72.12,0,0,0-19.2,14.68,12,12,0,0,0,17.6,16.32ZM116,112a20,20,0,1,1,20,20A20,20,0,0,1,116,112Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H64a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V40A8,8,0,0,0,208,32ZM136,144a32,32,0,1,1,32-32A32,32,0,0,1,136,144Z",opacity:"0.2"}),c.createElement("path",{d:"M83.19,174.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,163,141.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,81.6,163.2,8,8,0,0,0,83.19,174.4ZM112,112a24,24,0,1,1,24,24A24,24,0,0,1,112,112Zm96-88H64A16,16,0,0,0,48,40V64H32a8,8,0,0,0,0,16H48v40H32a8,8,0,0,0,0,16H48v40H32a8,8,0,0,0,0,16H48v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V40A16,16,0,0,0,208,24Zm0,192H64V40H208Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M160,112a24,24,0,1,1-24-24A24,24,0,0,1,160,112Zm64-72V216a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V192H32a8,8,0,0,1,0-16H48V136H32a8,8,0,0,1,0-16H48V80H32a8,8,0,0,1,0-16H48V40A16,16,0,0,1,64,24H208A16,16,0,0,1,224,40ZM190.4,163.2A67.88,67.88,0,0,0,163,141.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,81.6,163.2a8,8,0,1,0,12.8,9.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M159.11,142.13a38,38,0,1,0-46.22,0A65.75,65.75,0,0,0,83.2,164.4a6,6,0,0,0,9.6,7.2,54,54,0,0,1,86.4,0,6,6,0,0,0,9.6-7.2A65.75,65.75,0,0,0,159.11,142.13ZM110,112a26,26,0,1,1,26,26A26,26,0,0,1,110,112Zm98-86H64A14,14,0,0,0,50,40V66H32a6,6,0,0,0,0,12H50v44H32a6,6,0,0,0,0,12H50v44H32a6,6,0,0,0,0,12H50v26a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V40A14,14,0,0,0,208,26Zm2,190a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M83.19,174.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,163,141.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,81.6,163.2,8,8,0,0,0,83.19,174.4ZM112,112a24,24,0,1,1,24,24A24,24,0,0,1,112,112Zm96-88H64A16,16,0,0,0,48,40V64H32a8,8,0,0,0,0,16H48v40H32a8,8,0,0,0,0,16H48v40H32a8,8,0,0,0,0,16H48v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V40A16,16,0,0,0,208,24Zm0,192H64V40H208Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M154.7,142.75a36,36,0,1,0-37.4,0A63.61,63.61,0,0,0,84.8,165.6a4,4,0,0,0,6.4,4.8,56,56,0,0,1,89.6,0,4,4,0,0,0,6.4-4.8A63.65,63.65,0,0,0,154.7,142.75ZM108,112a28,28,0,1,1,28,28A28,28,0,0,1,108,112ZM208,28H64A12,12,0,0,0,52,40V68H32a4,4,0,0,0,0,8H52v48H32a4,4,0,0,0,0,8H52v48H32a4,4,0,0,0,0,8H52v28a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V40A12,12,0,0,0,208,28Zm4,188a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z"}))]]),P9=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),c.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"}))]]),K9=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),c.createElement("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]),Q9=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M252,124a60.14,60.14,0,0,0-32-53.08,52,52,0,0,0-92-32.11A52,52,0,0,0,36,70.92a60,60,0,0,0,0,106.14,52,52,0,0,0,92,32.13,52,52,0,0,0,92-32.13A60.05,60.05,0,0,0,252,124ZM88,204a28,28,0,0,1-26.85-20.07c1,0,1.89.07,2.85.07h8a12,12,0,0,0,0-24H64A36,36,0,0,1,52,90.05a12,12,0,0,0,8-11.32V72a28,28,0,0,1,56,0v60.18a51.61,51.61,0,0,0-7.2-3.85,12,12,0,1,0-9.6,22A28,28,0,0,1,88,204Zm104-44h-8a12,12,0,0,0,0,24h8c1,0,1.9,0,2.85-.07a28,28,0,1,1-38-33.61,12,12,0,1,0-9.6-22,51.61,51.61,0,0,0-7.2,3.85V72a28,28,0,0,1,56,0v6.73a12,12,0,0,0,8,11.32,36,36,0,0,1-12,70Zm16-44a12,12,0,0,1-12,12,40,40,0,0,1-40-40V84a12,12,0,0,1,24,0v4a16,16,0,0,0,16,16A12,12,0,0,1,208,116ZM100,88a40,40,0,0,1-40,40,12,12,0,0,1,0-24A16,16,0,0,0,76,88V84a12,12,0,0,1,24,0Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240,124a48,48,0,0,1-32,45.27h0V176a40,40,0,0,1-80,0,40,40,0,0,1-80,0v-6.73h0a48,48,0,0,1,0-90.54V72a40,40,0,0,1,80,0,40,40,0,0,1,80,0v6.73A48,48,0,0,1,240,124Z",opacity:"0.2"}),c.createElement("path",{d:"M248,124a56.11,56.11,0,0,0-32-50.61V72a48,48,0,0,0-88-26.49A48,48,0,0,0,40,72v1.39a56,56,0,0,0,0,101.2V176a48,48,0,0,0,88,26.49A48,48,0,0,0,216,176v-1.41A56.09,56.09,0,0,0,248,124ZM88,208a32,32,0,0,1-31.81-28.56A55.87,55.87,0,0,0,64,180h8a8,8,0,0,0,0-16H64A40,40,0,0,1,50.67,86.27,8,8,0,0,0,56,78.73V72a32,32,0,0,1,64,0v68.26A47.8,47.8,0,0,0,88,128a8,8,0,0,0,0,16,32,32,0,0,1,0,64Zm104-44h-8a8,8,0,0,0,0,16h8a55.87,55.87,0,0,0,7.81-.56A32,32,0,1,1,168,144a8,8,0,0,0,0-16,47.8,47.8,0,0,0-32,12.26V72a32,32,0,0,1,64,0v6.73a8,8,0,0,0,5.33,7.54A40,40,0,0,1,192,164Zm16-52a8,8,0,0,1-8,8h-4a36,36,0,0,1-36-36V80a8,8,0,0,1,16,0v4a20,20,0,0,0,20,20h4A8,8,0,0,1,208,112ZM60,120H56a8,8,0,0,1,0-16h4A20,20,0,0,0,80,84V80a8,8,0,0,1,16,0v4A36,36,0,0,1,60,120Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M212,76V72a44,44,0,0,0-74.86-31.31,3.93,3.93,0,0,0-1.14,2.8v88.72a4,4,0,0,0,6.2,3.33A47.67,47.67,0,0,1,167.68,128a8.18,8.18,0,0,1,8.31,7.58,8,8,0,0,1-8,8.42,32,32,0,0,0-32,32v33.88a4,4,0,0,0,1.49,3.12,47.92,47.92,0,0,0,74.21-17.16,4,4,0,0,0-4.49-5.56A68.06,68.06,0,0,1,192,192h-7.73a8.18,8.18,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h8a51.6,51.6,0,0,0,24-5.88v0A52,52,0,0,0,212,76Zm-12,36h-4a36,36,0,0,1-36-36V72a8,8,0,0,1,16,0v4a20,20,0,0,0,20,20h4a8,8,0,0,1,0,16ZM88,28A44.05,44.05,0,0,0,44,72v4a52,52,0,0,0-4,94.12h0A51.6,51.6,0,0,0,64,176h7.73A8.18,8.18,0,0,1,80,183.47,8,8,0,0,1,72,192H64a67.48,67.48,0,0,1-15.21-1.73,4,4,0,0,0-4.5,5.55A47.93,47.93,0,0,0,118.51,213a4,4,0,0,0,1.49-3.12V176a32,32,0,0,0-32-32,8,8,0,0,1-8-8.42A8.18,8.18,0,0,1,88.32,128a47.67,47.67,0,0,1,25.48,7.54,4,4,0,0,0,6.2-3.33V43.49a4,4,0,0,0-1.14-2.81A43.85,43.85,0,0,0,88,28Zm8,48a36,36,0,0,1-36,36H56a8,8,0,0,1,0-16h4A20,20,0,0,0,80,76V72a8,8,0,0,1,16,0Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M246,124a54.13,54.13,0,0,0-32-49.33V72a46,46,0,0,0-86-22.67A46,46,0,0,0,42,72v2.67a54,54,0,0,0,0,98.63V176a46,46,0,0,0,86,22.67A46,46,0,0,0,214,176v-2.7A54.07,54.07,0,0,0,246,124ZM88,210a34,34,0,0,1-34-32.94A53.67,53.67,0,0,0,64,178h8a6,6,0,0,0,0-12H64A42,42,0,0,1,50,84.39a6,6,0,0,0,4-5.66V72a34,34,0,0,1,68,0v73.05A45.89,45.89,0,0,0,88,130a6,6,0,0,0,0,12,34,34,0,0,1,0,68Zm104-44h-8a6,6,0,0,0,0,12h8a53.67,53.67,0,0,0,10-.94A34,34,0,1,1,168,142a6,6,0,0,0,0-12,45.89,45.89,0,0,0-34,15.05V72a34,34,0,0,1,68,0v6.73a6,6,0,0,0,4,5.66A42,42,0,0,1,192,166Zm14-54a6,6,0,0,1-6,6h-4a34,34,0,0,1-34-34V80a6,6,0,0,1,12,0v4a22,22,0,0,0,22,22h4A6,6,0,0,1,206,112ZM60,118H56a6,6,0,0,1,0-12h4A22,22,0,0,0,82,84V80a6,6,0,0,1,12,0v4A34,34,0,0,1,60,118Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M248,124a56.11,56.11,0,0,0-32-50.61V72a48,48,0,0,0-88-26.49A48,48,0,0,0,40,72v1.39a56,56,0,0,0,0,101.2V176a48,48,0,0,0,88,26.49A48,48,0,0,0,216,176v-1.41A56.09,56.09,0,0,0,248,124ZM88,208a32,32,0,0,1-31.81-28.56A55.87,55.87,0,0,0,64,180h8a8,8,0,0,0,0-16H64A40,40,0,0,1,50.67,86.27,8,8,0,0,0,56,78.73V72a32,32,0,0,1,64,0v68.26A47.8,47.8,0,0,0,88,128a8,8,0,0,0,0,16,32,32,0,0,1,0,64Zm104-44h-8a8,8,0,0,0,0,16h8a55.87,55.87,0,0,0,7.81-.56A32,32,0,1,1,168,144a8,8,0,0,0,0-16,47.8,47.8,0,0,0-32,12.26V72a32,32,0,0,1,64,0v6.73a8,8,0,0,0,5.33,7.54A40,40,0,0,1,192,164Zm16-52a8,8,0,0,1-8,8h-4a36,36,0,0,1-36-36V80a8,8,0,0,1,16,0v4a20,20,0,0,0,20,20h4A8,8,0,0,1,208,112ZM60,120H56a8,8,0,0,1,0-16h4A20,20,0,0,0,80,84V80a8,8,0,0,1,16,0v4A36,36,0,0,1,60,120Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M244,124a52.1,52.1,0,0,0-32-48V72a44,44,0,0,0-84-18.3A44,44,0,0,0,44,72v4a52,52,0,0,0,0,96v4a44,44,0,0,0,84,18.3A44,44,0,0,0,212,176v-4A52.07,52.07,0,0,0,244,124ZM88,212a36,36,0,0,1-36-36v-1.41A52.13,52.13,0,0,0,64,176h8a4,4,0,0,0,0-8H64A44,44,0,0,1,49.33,82.5,4,4,0,0,0,52,78.73V72a36,36,0,0,1,72,0v78.75A44,44,0,0,0,88,132a4,4,0,0,0,0,8,36,36,0,0,1,0,72Zm104-44h-8a4,4,0,0,0,0,8h8a52.13,52.13,0,0,0,12-1.41V176a36,36,0,1,1-36-36,4,4,0,0,0,0-8,44,44,0,0,0-36,18.75V72a36,36,0,0,1,72,0v6.73a4,4,0,0,0,2.67,3.77A44,44,0,0,1,192,168Zm12-56a4,4,0,0,1-4,4h-4a32,32,0,0,1-32-32V80a4,4,0,0,1,8,0v4a24,24,0,0,0,24,24h4A4,4,0,0,1,204,112ZM92,84a32,32,0,0,1-32,32H56a4,4,0,0,1,0-8h4A24,24,0,0,0,84,84V80a4,4,0,0,1,8,0Z"}))]]),J9=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Zm60-80v56a12,12,0,0,1-24,0V143.32a12,12,0,0,1-9.37-22l16-8A12,12,0,0,1,112,124Zm61.49,33.88L163.9,168H168a12,12,0,0,1,0,24H136a12,12,0,0,1-8.71-20.25L155.45,142a4,4,0,0,0,.55-2,4,4,0,0,0-7.47-2,12,12,0,0,1-20.78-12A28,28,0,0,1,180,140a27.77,27.77,0,0,1-5.64,16.86A10.63,10.63,0,0,1,173.49,157.88Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),c.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-96-88v64a8,8,0,0,1-16,0V132.94l-4.42,2.22a8,8,0,0,1-7.16-14.32l16-8A8,8,0,0,1,112,120Zm59.16,30.45L152,176h16a8,8,0,0,1,0,16H136a8,8,0,0,1-6.4-12.8l28.78-38.37A8,8,0,1,0,145.07,132a8,8,0,1,1-13.85-8A24,24,0,0,1,176,136,23.76,23.76,0,0,1,171.16,150.45Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM112,184a8,8,0,0,1-16,0V132.94l-4.42,2.22a8,8,0,0,1-7.16-14.32l16-8A8,8,0,0,1,112,120Zm56-8a8,8,0,0,1,0,16H136a8,8,0,0,1-6.4-12.8l28.78-38.37A8,8,0,1,0,145.07,132a8,8,0,1,1-13.85-8A24,24,0,0,1,176,136a23.76,23.76,0,0,1-4.84,14.45L152,176ZM48,80V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Zm-98-90v64a6,6,0,0,1-12,0V129.71l-7.32,3.66a6,6,0,1,1-5.36-10.74l16-8A6,6,0,0,1,110,120Zm59.57,29.25L148,178h20a6,6,0,0,1,0,12H136a6,6,0,0,1-4.8-9.6L160,142a10,10,0,1,0-16.65-11A6,6,0,1,1,133,125a22,22,0,1,1,36.62,24.26Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-96-88v64a8,8,0,0,1-16,0V132.94l-4.42,2.22a8,8,0,0,1-7.16-14.32l16-8A8,8,0,0,1,112,120Zm59.16,30.45L152,176h16a8,8,0,0,1,0,16H136a8,8,0,0,1-6.4-12.8l28.78-38.37A8,8,0,1,0,145.07,132a8,8,0,1,1-13.85-8A24,24,0,0,1,176,136,23.76,23.76,0,0,1,171.16,150.45Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212ZM108,120v64a4,4,0,0,1-8,0V126.47l-10.21,5.11a4,4,0,0,1-3.58-7.16l16-8A4,4,0,0,1,108,120Zm60,28-24,32h24a4,4,0,0,1,0,8H136a4,4,0,0,1-3.2-6.4l28.78-38.37A11.88,11.88,0,0,0,164,136a12,12,0,0,0-22.4-6,4,4,0,0,1-6.92-4A20,20,0,0,1,172,136,19.79,19.79,0,0,1,168,148Z"}))]]),W9=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),c.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),I9=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),c.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),ej=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),c.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),tj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,44H40A20,20,0,0,0,20,64V224A19.82,19.82,0,0,0,31.56,242.1a20.14,20.14,0,0,0,8.49,1.9,19.91,19.91,0,0,0,12.82-4.72l.12-.11L84.47,212H216a20,20,0,0,0,20-20V64A20,20,0,0,0,216,44Zm-4,144H80a11.93,11.93,0,0,0-7.84,2.92L44,215.23V68H212Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,64V192a8,8,0,0,1-8,8H80L45.15,230.11A8,8,0,0,1,32,224V64a8,8,0,0,1,8-8H216A8,8,0,0,1,224,64Z",opacity:"0.2"}),c.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V224a15.84,15.84,0,0,0,9.25,14.5A16.05,16.05,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,224h0ZM216,192H80a8,8,0,0,0-5.23,1.95L40,224V64H216Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232,64V192a16,16,0,0,1-16,16H83l-32.6,28.16-.09.07A15.89,15.89,0,0,1,40,240a16.05,16.05,0,0,1-6.79-1.52A15.84,15.84,0,0,1,24,224V64A16,16,0,0,1,40,48H216A16,16,0,0,1,232,64Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,50H40A14,14,0,0,0,26,64V224a13.88,13.88,0,0,0,8.09,12.69A14.11,14.11,0,0,0,40,238a13.87,13.87,0,0,0,9-3.31l.06-.05L82.23,206H216a14,14,0,0,0,14-14V64A14,14,0,0,0,216,50Zm2,142a2,2,0,0,1-2,2H80a6,6,0,0,0-3.92,1.46L41.26,225.53A2,2,0,0,1,38,224V64a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V224a15.84,15.84,0,0,0,9.25,14.5A16.05,16.05,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,224h0ZM216,192H80a8,8,0,0,0-5.23,1.95L40,224V64H216Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,52H40A12,12,0,0,0,28,64V224a11.89,11.89,0,0,0,6.93,10.88A12.17,12.17,0,0,0,40,236a11.89,11.89,0,0,0,7.69-2.83l0,0L81.49,204H216a12,12,0,0,0,12-12V64A12,12,0,0,0,216,52Zm4,140a4,4,0,0,1-4,4H80a4,4,0,0,0-2.62,1L42.56,227.06A4,4,0,0,1,36,224V64a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4Z"}))]]),aj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),c.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),nj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),c.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),lj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),c.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z"}))]]),sj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M140,80v41.21l34.17,20.5a12,12,0,1,1-12.34,20.58l-40-24A12,12,0,0,1,116,128V80a12,12,0,0,1,24,0ZM128,28A99.38,99.38,0,0,0,57.24,57.34c-4.69,4.74-9,9.37-13.24,14V64a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H72a12,12,0,0,0,0-24H57.77C63,86,68.37,80.22,74.26,74.26a76,76,0,1,1,1.58,109,12,12,0,0,0-16.48,17.46A100,100,0,1,0,128,28Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),c.createElement("path",{d:"M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128A96,96,0,0,1,62.11,197.82a8,8,0,1,1,11-11.64A80,80,0,1,0,71.43,71.43C67.9,75,64.58,78.51,61.35,82L77.66,98.34A8,8,0,0,1,72,112H32a8,8,0,0,1-8-8V64a8,8,0,0,1,13.66-5.66L50,70.7c3.22-3.49,6.54-7,10.06-10.55A96,96,0,0,1,224,128ZM128,72a8,8,0,0,0-8,8v48a8,8,0,0,0,3.88,6.86l40,24a8,8,0,1,0,8.24-13.72L136,123.47V80A8,8,0,0,0,128,72Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M134,80v44.6l37.09,22.25a6,6,0,0,1-6.18,10.3l-40-24A6,6,0,0,1,122,128V80a6,6,0,0,1,12,0Zm-6-46A93.4,93.4,0,0,0,61.51,61.56c-8.58,8.68-16,17-23.51,25.8V64a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H72a6,6,0,0,0,0-12H44.73C52.86,88.29,60.79,79.35,70,70a82,82,0,1,1,1.7,117.62,6,6,0,1,0-8.24,8.72A94,94,0,1,0,128,34Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M132,80v45.74l38.06,22.83a4,4,0,0,1-4.12,6.86l-40-24A4,4,0,0,1,124,128V80a4,4,0,0,1,8,0Zm-4-44A91.42,91.42,0,0,0,62.93,63C53.05,73,44.66,82.47,36,92.86V64a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H72a4,4,0,0,0,0-8H40.47C49.61,89,58.3,79,68.6,68.6a84,84,0,1,1,1.75,120.49,4,4,0,1,0-5.5,5.82A92,92,0,1,0,128,36Z"}))]]),ij=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M71.51,88.49a12,12,0,0,1,17-17L116,99V24a12,12,0,0,1,24,0V99l27.51-27.52a12,12,0,0,1,17,17l-48,48a12,12,0,0,1-17,0ZM224,116H188a12,12,0,0,0,0,24h32v56H36V140H68a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116Zm-20,52a16,16,0,1,0-16,16A16,16,0,0,0,204,168Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232,136v64a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V136a8,8,0,0,1,8-8H224A8,8,0,0,1,232,136Z",opacity:"0.2"}),c.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M74.34,85.66A8,8,0,0,1,85.66,74.34L120,108.69V24a8,8,0,0,1,16,0v84.69l34.34-34.35a8,8,0,0,1,11.32,11.32l-48,48a8,8,0,0,1-11.32,0ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H84.4a4,4,0,0,1,2.83,1.17L111,145A24,24,0,0,0,145,145l23.8-23.8A4,4,0,0,1,171.6,120H224A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H72a6,6,0,0,1,0,12H32a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H224a2,2,0,0,0,2-2V136a2,2,0,0,0-2-2H184a6,6,0,0,1,0-12h40A14,14,0,0,1,238,136Zm-114.24-3.76a6,6,0,0,0,8.48,0l48-48a6,6,0,0,0-8.48-8.48L134,113.51V24a6,6,0,0,0-12,0v89.51L84.24,75.76a6,6,0,0,0-8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H72a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H184a4,4,0,0,1,0-8h40A12,12,0,0,1,236,136Zm-110.83-5.17a4,4,0,0,0,5.66,0l48-48a4,4,0,1,0-5.66-5.66L132,118.34V24a4,4,0,0,0-8,0v94.34L82.83,77.17a4,4,0,0,0-5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z"}))]]),rj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),c.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"}))]]),oj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44Zm-96,83.72L62.85,68h130.3ZM92.79,128,44,172.72V83.28Zm17.76,16.28,9.34,8.57a12,12,0,0,0,16.22,0l9.34-8.57L193.15,188H62.85ZM163.21,128,212,83.28v89.44Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"}),c.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-96,85.15L52.57,64H203.43ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,50H32a6,6,0,0,0-6,6V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A6,6,0,0,0,224,50Zm-96,85.86L47.42,62H208.58ZM101.67,128,38,186.36V69.64Zm8.88,8.14L124,148.42a6,6,0,0,0,8.1,0l13.4-12.28L208.58,194H47.43ZM154.33,128,218,69.64V186.36Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-96,85.15L52.57,64H203.43ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,52H32a4,4,0,0,0-4,4V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A4,4,0,0,0,224,52Zm-96,86.57L42.28,60H213.72ZM104.63,128,36,190.91V65.09Zm5.92,5.43L125.3,147a4,4,0,0,0,5.4,0l14.75-13.52L213.72,196H42.28ZM151.37,128,220,65.09V190.91Z"}))]]),cj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),c.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]]),uj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,164v8h12a12,12,0,0,1,0,24H200v12a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h32a12,12,0,0,1,0,24ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm100,8a40,40,0,0,1-40,40H112a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,168,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,144,180ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,57V80h23Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),c.createElement("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm72,108.53a8.18,8.18,0,0,1-8.25,7.47H192v16h15.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53H192v15.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152.53ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184ZM128,144H112a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,128,144Zm-.49,56H120V160h8a20,20,0,0,1,20,20.77C147.58,191.59,138.34,200,127.51,200Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M220,152a4,4,0,0,1-4,4H188v24h20a4,4,0,0,1,0,8H188v20a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h32A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm80,8a32,32,0,0,1-32,32H112a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h16A32,32,0,0,1,160,180Zm-8,0a24,24,0,0,0-24-24H116v48h12A24,24,0,0,0,152,180ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z"}))]]),dj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M248.49,71.51l-32-32a12,12,0,0,0-17,17L211,68h-3c-52,0-64.8,30.71-75.08,55.38-8.82,21.17-15.45,37.05-42.75,40.09a44,44,0,1,0,.28,24.08c43.34-3.87,55.07-32,64.63-54.93C164.9,109,172,92,208,92h3l-11.52,11.51a12,12,0,0,0,17,17l32-32A12,12,0,0,0,248.49,71.51ZM48,196a20,20,0,1,1,20-20A20,20,0,0,1,48,196Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M80,176a32,32,0,1,1-32-32A32,32,0,0,1,80,176Z",opacity:"0.2"}),c.createElement("path",{d:"M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M245.66,85.66l-32,32a8,8,0,0,1-11.32-11.32L220.69,88H208c-38.67,0-46.59,19-56.62,43.08C141.05,155.88,129.33,184,80,184H79a32,32,0,1,1,0-16h1c38.67,0,46.59-19,56.62-43.08C147,100.12,158.67,72,208,72h12.69L202.34,53.66a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,245.66,85.66Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M244.24,75.76l-32-32a6,6,0,0,0-8.48,8.48L225.51,74H208c-48,0-59.44,27.46-69.54,51.69-9.43,22.64-17.66,42.33-53,44.16a38,38,0,1,0,.06,12c43.34-2.06,54.29-28.29,64-51.55C159.44,106.53,168,86,208,86h17.51l-21.75,21.76a6,6,0,1,0,8.48,8.48l32-32A6,6,0,0,0,244.24,75.76ZM48,202a26,26,0,1,1,26-26A26,26,0,0,1,48,202Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M242.83,77.17l-32-32a4,4,0,0,0-5.66,5.66L230.34,76H208c-46.67,0-57.84,26.81-67.69,50.46-9.46,22.69-18.4,44.16-56.55,45.48a36,36,0,1,0,0,8c43.49-1.42,54.33-27.39,63.91-50.39C157.45,106.12,166.67,84,208,84h22.34l-25.17,25.17a4,4,0,0,0,5.66,5.66l32-32A4,4,0,0,0,242.83,77.17ZM48,204a28,28,0,1,1,28-28A28,28,0,0,1,48,204Z"}))]]),fj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),c.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"}))]]),mj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z",opacity:"0.2"}),c.createElement("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z"}))]]),hj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),c.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),pj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V208a20,20,0,0,0,20,20H88a20,20,0,0,0,20-20V164h40v12a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V56A12,12,0,0,0,216,44Zm-12,64H172V68h32ZM84,68v40H52V68Zm0,136H52V132H84Zm24-64V68h40v72Zm64,32V132h32v40Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,56v64H160V56ZM40,208a8,8,0,0,0,8,8H88a8,8,0,0,0,8-8V120H40Z",opacity:"0.2"}),c.createElement("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48Zm-8,64H168V64h40ZM88,64v48H48V64Zm0,144H48V128H88Zm16-64V64h48v80Zm64,32V128h40v48Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M160,56v96a8,8,0,0,1-8,8H112a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h40A8,8,0,0,1,160,56Zm64-8H184a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V56A8,8,0,0,0,224,48Zm4,80H180a4,4,0,0,0-4,4v44a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V132A4,4,0,0,0,228,128ZM80,48H40a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4H84a4,4,0,0,0,4-4V56A8,8,0,0,0,80,48Zm4,80H36a4,4,0,0,0-4,4v76a16,16,0,0,0,16,16H72a16,16,0,0,0,16-16V132A4,4,0,0,0,84,128Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,50H40a6,6,0,0,0-6,6V208a14,14,0,0,0,14,14H88a14,14,0,0,0,14-14V158h52v18a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V56A6,6,0,0,0,216,50Zm-6,64H166V62h44ZM90,62v52H46V62Zm0,146a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V126H90Zm12-62V62h52v84Zm106,32H168a2,2,0,0,1-2-2V126h44v50A2,2,0,0,1,208,178Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48ZM88,208H48V128H88Zm0-96H48V64H88Zm64,32H104V64h48Zm56,32H168V128h40Zm0-64H168V64h40Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,52H40a4,4,0,0,0-4,4V208a12,12,0,0,0,12,12H88a12,12,0,0,0,12-12V156h56v20a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V56A4,4,0,0,0,216,52ZM92,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V124H92Zm0-92H44V60H92Zm64,32H100V60h56Zm56,28a4,4,0,0,1-4,4H168a4,4,0,0,1-4-4V124h48Zm0-60H164V60h48Z"}))]]),xj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M219.71,117.38a12,12,0,0,0-7.25-8.52L161.28,88.39l10.59-70.61a12,12,0,0,0-20.64-10l-112,120a12,12,0,0,0,4.31,19.33l51.18,20.47L84.13,238.22a12,12,0,0,0,20.64,10l112-120A12,12,0,0,0,219.71,117.38ZM113.6,203.55l6.27-41.77a12,12,0,0,0-7.41-12.92L68.74,131.37,142.4,52.45l-6.27,41.77a12,12,0,0,0,7.41,12.92l43.72,17.49Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),c.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.84,118.63a6,6,0,0,0-3.73-4.25L150.88,92.17l15-75a6,6,0,0,0-10.27-5.27l-112,120a6,6,0,0,0,2.28,9.71l59.23,22.21-15,75a6,6,0,0,0,3.14,6.52A6.07,6.07,0,0,0,96,246a6,6,0,0,0,4.39-1.91l112-120A6,6,0,0,0,213.84,118.63ZM106,220.46l11.85-59.28a6,6,0,0,0-3.77-6.8l-55.6-20.85,91.46-98L138.12,94.82a6,6,0,0,0,3.77,6.8l55.6,20.85Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M211.89,119.09a4,4,0,0,0-2.49-2.84l-60.81-22.8,15.33-76.67a4,4,0,0,0-6.84-3.51l-112,120a4,4,0,0,0-1,3.64,4,4,0,0,0,2.49,2.84l60.81,22.8L92.08,239.22a4,4,0,0,0,6.84,3.51l112-120A4,4,0,0,0,211.89,119.09ZM102.68,227l13.24-66.2a4,4,0,0,0-2.52-4.53L55,134.36,153.32,29l-13.24,66.2a4,4,0,0,0,2.52,4.53L201,121.64Z"}))]]),gj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H128a12,12,0,0,1,0-24h88A12,12,0,0,1,228,128ZM128,76h88a12,12,0,0,0,0-24H128a12,12,0,0,0,0,24Zm88,104H128a12,12,0,0,0,0,24h88a12,12,0,0,0,0-24ZM79.51,39.51,56,63l-7.51-7.52a12,12,0,0,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Zm0,64L56,127l-7.51-7.52a12,12,0,1,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Zm0,64L56,191l-7.51-7.52a12,12,0,1,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,64V192H128V64Z",opacity:"0.2"}),c.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H128a8,8,0,0,1,0-16h88A8,8,0,0,1,224,128ZM128,72h88a8,8,0,0,0,0-16H128a8,8,0,0,0,0,16Zm88,112H128a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16ZM82.34,42.34,56,68.69,45.66,58.34A8,8,0,0,0,34.34,69.66l16,16a8,8,0,0,0,11.32,0l32-32A8,8,0,0,0,82.34,42.34Zm0,64L56,132.69,45.66,122.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Zm0,64L56,196.69,45.66,186.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM117.66,149.66l-32,32a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L80,164.69l26.34-26.35a8,8,0,0,1,11.32,11.32Zm0-64-32,32a8,8,0,0,1-11.32,0l-16-16A8,8,0,0,1,69.66,90.34L80,100.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM192,168H144a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm0-64H144a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H128a6,6,0,0,1,0-12h88A6,6,0,0,1,222,128ZM128,70h88a6,6,0,0,0,0-12H128a6,6,0,0,0,0,12Zm88,116H128a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12ZM83.76,43.76,56,71.51,44.24,59.76a6,6,0,0,0-8.48,8.48l16,16a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0-8.48-8.48Zm0,64L56,135.51,44.24,123.76a6,6,0,1,0-8.48,8.48l16,16a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0-8.48-8.48Zm0,64L56,199.51,44.24,187.76a6,6,0,0,0-8.48,8.48l16,16a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0-8.48-8.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H128a8,8,0,0,1,0-16h88A8,8,0,0,1,224,128ZM128,72h88a8,8,0,0,0,0-16H128a8,8,0,0,0,0,16Zm88,112H128a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16ZM82.34,42.34,56,68.69,45.66,58.34A8,8,0,0,0,34.34,69.66l16,16a8,8,0,0,0,11.32,0l32-32A8,8,0,0,0,82.34,42.34Zm0,64L56,132.69,45.66,122.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Zm0,64L56,196.69,45.66,186.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H128a4,4,0,0,1,0-8h88A4,4,0,0,1,220,128ZM128,68h88a4,4,0,0,0,0-8H128a4,4,0,0,0,0,8Zm88,120H128a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8ZM85.17,45.17,56,74.34,42.83,61.17a4,4,0,0,0-5.66,5.66l16,16a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0-5.66-5.66Zm0,64L56,138.34,42.83,125.17a4,4,0,1,0-5.66,5.66l16,16a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0-5.66-5.66Zm0,64L56,202.34,42.83,189.17a4,4,0,0,0-5.66,5.66l16,16a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0-5.66-5.66Z"}))]]),bj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),c.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),yj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,180a52.06,52.06,0,0,0,52-52V64A52,52,0,0,0,76,64v64A52.06,52.06,0,0,0,128,180ZM100,64a28,28,0,0,1,56,0v64a28,28,0,0,1-56,0Zm40,155.22V240a12,12,0,0,1-24,0V219.22A92.14,92.14,0,0,1,36,128a12,12,0,0,1,24,0,68,68,0,0,0,136,0,12,12,0,0,1,24,0A92.14,92.14,0,0,1,140,219.22Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M168,64v64a40,40,0,0,1-40,40h0a40,40,0,0,1-40-40V64a40,40,0,0,1,40-40h0A40,40,0,0,1,168,64Z",opacity:"0.2"}),c.createElement("path",{d:"M128,176a48.05,48.05,0,0,0,48-48V64a48,48,0,0,0-96,0v64A48.05,48.05,0,0,0,128,176ZM96,64a32,32,0,0,1,64,0v64a32,32,0,0,1-64,0Zm40,143.6V240a8,8,0,0,1-16,0V207.6A80.11,80.11,0,0,1,48,128a8,8,0,0,1,16,0,64,64,0,0,0,128,0,8,8,0,0,1,16,0A80.11,80.11,0,0,1,136,207.6Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M80,128V64a48,48,0,0,1,96,0v64a48,48,0,0,1-96,0Zm128,0a8,8,0,0,0-16,0,64,64,0,0,1-128,0,8,8,0,0,0-16,0,80.11,80.11,0,0,0,72,79.6V240a8,8,0,0,0,16,0V207.6A80.11,80.11,0,0,0,208,128Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,174a46.06,46.06,0,0,0,46-46V64a46,46,0,0,0-92,0v64A46.06,46.06,0,0,0,128,174ZM94,64a34,34,0,0,1,68,0v64a34,34,0,0,1-68,0Zm40,141.75V240a6,6,0,0,1-12,0V205.75A78.09,78.09,0,0,1,50,128a6,6,0,0,1,12,0,66,66,0,0,0,132,0,6,6,0,0,1,12,0A78.09,78.09,0,0,1,134,205.75Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,176a48.05,48.05,0,0,0,48-48V64a48,48,0,0,0-96,0v64A48.05,48.05,0,0,0,128,176ZM96,64a32,32,0,0,1,64,0v64a32,32,0,0,1-64,0Zm40,143.6V240a8,8,0,0,1-16,0V207.6A80.11,80.11,0,0,1,48,128a8,8,0,0,1,16,0,64,64,0,0,0,128,0,8,8,0,0,1,16,0A80.11,80.11,0,0,1,136,207.6Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,172a44.05,44.05,0,0,0,44-44V64a44,44,0,0,0-88,0v64A44.05,44.05,0,0,0,128,172ZM92,64a36,36,0,0,1,72,0v64a36,36,0,0,1-72,0Zm40,139.89V240a4,4,0,0,1-8,0V203.89A76.09,76.09,0,0,1,52,128a4,4,0,0,1,8,0,68,68,0,0,0,136,0,4,4,0,0,1,8,0A76.09,76.09,0,0,1,132,203.89Z"}))]]),vj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M56.88,39.93A12,12,0,1,0,39.12,56.07L76,96.64V128a52,52,0,0,0,72.11,48l11.26,12.39A67.34,67.34,0,0,1,128,196a68.07,68.07,0,0,1-68-68,12,12,0,0,0-24,0,92.14,92.14,0,0,0,80,91.22V240a12,12,0,0,0,24,0V219.23a90.39,90.39,0,0,0,35.92-12.68l23.2,25.52a12,12,0,0,0,17.76-16.14ZM128,156a28,28,0,0,1-28-28v-5l29.9,32.89C129.27,156,128.64,156,128,156Zm63-2.42A67.63,67.63,0,0,0,196,128a12,12,0,0,1,24,0,91.48,91.48,0,0,1-6.74,34.61,12,12,0,0,1-22.23-9ZM85.7,33.75A52,52,0,0,1,180,64v56.54a12,12,0,0,1-24,0V64a28,28,0,0,0-50.79-16.28,12,12,0,0,1-19.51-14Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M168,64v64a40,40,0,0,1-40,40h0a40,40,0,0,1-40-40V64a40,40,0,0,1,40-40h0A40,40,0,0,1,168,64Z",opacity:"0.2"}),c.createElement("path",{d:"M213.92,218.62l-160-176A8,8,0,0,0,42.08,53.38L80,95.09V128a48,48,0,0,0,69.11,43.12l11.1,12.2A63.41,63.41,0,0,1,128,192a64.07,64.07,0,0,1-64-64,8,8,0,0,0-16,0,80.11,80.11,0,0,0,72,79.6V240a8,8,0,0,0,16,0V207.59a78.83,78.83,0,0,0,35.16-12.22l30.92,34a8,8,0,1,0,11.84-10.76ZM128,160a32,32,0,0,1-32-32V112.69l41.66,45.82A32,32,0,0,1,128,160Zm57.52-3.91A63.32,63.32,0,0,0,192,128a8,8,0,0,1,16,0,79.16,79.16,0,0,1-8.11,35.12,8,8,0,0,1-7.19,4.49,7.88,7.88,0,0,1-3.51-.82A8,8,0,0,1,185.52,156.09ZM84,44.87A48,48,0,0,1,176,64v64a49.19,49.19,0,0,1-.26,5,8,8,0,0,1-8,7.17,8.13,8.13,0,0,1-.84,0,8,8,0,0,1-7.12-8.79c.11-1.1.17-2.24.17-3.36V64A32,32,0,0,0,98.64,51.25,8,8,0,1,1,84,44.87Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.38,229.92a8,8,0,0,1-11.3-.54l-30.92-34A78.83,78.83,0,0,1,136,207.59V240a8,8,0,0,1-16,0V207.6A80.11,80.11,0,0,1,48,128a8,8,0,0,1,16,0,64.07,64.07,0,0,0,64,64,63.41,63.41,0,0,0,32.21-8.68l-11.1-12.2A48,48,0,0,1,80,128V95.09L42.08,53.38A8,8,0,0,1,53.92,42.62l160,176A8,8,0,0,1,213.38,229.92Zm-24.19-63.13a7.88,7.88,0,0,0,3.51.82,8,8,0,0,0,7.19-4.49A79.16,79.16,0,0,0,208,128a8,8,0,0,0-16,0,63.32,63.32,0,0,1-6.48,28.09A8,8,0,0,0,189.19,166.79Zm-27.33-29.22A8,8,0,0,0,175.74,133a49.49,49.49,0,0,0,.26-5V64A48,48,0,0,0,84,44.87a8,8,0,0,0,1.41,8.57Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M212.44,220,52.44,44A6,6,0,0,0,43.56,52L82,94.32V128a46,46,0,0,0,67.56,40.64l13.75,15.12A65.26,65.26,0,0,1,128,194a66.08,66.08,0,0,1-66-66,6,6,0,0,0-12,0,78.09,78.09,0,0,0,72,77.75V240a6,6,0,0,0,12,0V205.77a76.93,76.93,0,0,0,37.48-13L203.56,228a6,6,0,0,0,8.88-8.08ZM128,162a34,34,0,0,1-34-34V107.52l47.12,51.84A33.82,33.82,0,0,1,128,162Zm59.32-5A65.38,65.38,0,0,0,194,128a6,6,0,0,1,12,0,77.33,77.33,0,0,1-7.9,34.25A6,6,0,1,1,187.32,157ZM85.8,45.67A46,46,0,0,1,174,64v64a45.17,45.17,0,0,1-.25,4.81,6,6,0,0,1-6,5.38q-.31,0-.63,0a6,6,0,0,1-5.34-6.59A35.41,35.41,0,0,0,162,128V64A34,34,0,0,0,96.8,50.45a6,6,0,0,1-11-4.78Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.92,218.62l-160-176A8,8,0,0,0,42.08,53.38L80,95.09V128a48,48,0,0,0,69.11,43.12l11.1,12.2A63.41,63.41,0,0,1,128,192a64.07,64.07,0,0,1-64-64,8,8,0,0,0-16,0,80.11,80.11,0,0,0,72,79.6V240a8,8,0,0,0,16,0V207.59a78.83,78.83,0,0,0,35.16-12.22l30.92,34a8,8,0,1,0,11.84-10.76ZM128,160a32,32,0,0,1-32-32V112.69l41.66,45.82A32,32,0,0,1,128,160Zm57.52-3.91A63.32,63.32,0,0,0,192,128a8,8,0,0,1,16,0,79.16,79.16,0,0,1-8.11,35.12,8,8,0,0,1-7.19,4.49,7.88,7.88,0,0,1-3.51-.82A8,8,0,0,1,185.52,156.09ZM84,44.87A48,48,0,0,1,176,64v64a49.19,49.19,0,0,1-.26,5,8,8,0,0,1-8,7.17,8.13,8.13,0,0,1-.84,0,8,8,0,0,1-7.12-8.79c.11-1.1.17-2.24.17-3.36V64A32,32,0,0,0,98.64,51.25,8,8,0,1,1,84,44.87Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M211,221.31,51,45.31A4,4,0,0,0,45,50.69L84,93.55V128a44,44,0,0,0,66,38.12l16.38,18A67.21,67.21,0,0,1,128,196a68.07,68.07,0,0,1-68-68,4,4,0,0,0-8,0,76.09,76.09,0,0,0,72,75.89V240a4,4,0,0,0,8,0V203.89a75.1,75.1,0,0,0,39.79-13.77L205,226.69a4,4,0,1,0,5.92-5.38ZM128,164a36,36,0,0,1-36-36V102.35L144.43,160A35.83,35.83,0,0,1,128,164Zm61.12-6.15A67.44,67.44,0,0,0,196,128a4,4,0,0,1,8,0,75.28,75.28,0,0,1-7.7,33.37,4,4,0,0,1-7.18-3.52ZM87.63,46.46A44,44,0,0,1,172,64v64a44.2,44.2,0,0,1-.24,4.61,4,4,0,0,1-4,3.58l-.42,0a4,4,0,0,1-3.57-4.39A36.67,36.67,0,0,0,164,128V64A36,36,0,0,0,95,49.66a4,4,0,0,1-7.34-3.2Z"}))]]),jj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M233.86,110.48,65.8,14.58A20,20,0,0,0,37.15,38.64L67.33,128,37.15,217.36A20,20,0,0,0,56,244a20.1,20.1,0,0,0,9.81-2.58l.09-.06,168-96.07a20,20,0,0,0,0-34.81ZM63.19,215.26,88.61,140H144a12,12,0,0,0,0-24H88.61L63.18,40.72l152.76,87.17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M227.91,134.86,59.93,231a8,8,0,0,1-11.44-9.67L80,128,48.49,34.72a8,8,0,0,1,11.44-9.67l168,95.85A8,8,0,0,1,227.91,134.86Z",opacity:"0.2"}),c.createElement("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240,127.89a16,16,0,0,1-8.18,14L63.9,237.9A16.15,16.15,0,0,1,56,240a16,16,0,0,1-15-21.33l27-79.95A4,4,0,0,1,71.72,136H144a8,8,0,0,0,8-8.53,8.19,8.19,0,0,0-8.26-7.47h-72a4,4,0,0,1-3.79-2.72l-27-79.94A16,16,0,0,1,63.84,18.07l168,95.89A16,16,0,0,1,240,127.89Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M230.88,115.69l-168-95.88a14,14,0,0,0-20,16.87L73.66,128,42.81,219.33A14,14,0,0,0,56,238a14.15,14.15,0,0,0,6.93-1.83L230.84,140.1a14,14,0,0,0,0-24.41Zm-5.95,14L57,225.73a2,2,0,0,1-2.86-2.42.42.42,0,0,0,0-.1L84.3,134H144a6,6,0,0,0,0-12H84.3L54.17,32.8a.3.3,0,0,0,0-.1,1.87,1.87,0,0,1,.6-2.2A1.85,1.85,0,0,1,57,30.25l168,95.89a1.93,1.93,0,0,1,1,1.74A2,2,0,0,1,224.93,129.66Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M229.89,117.43l-168-95.88A12,12,0,0,0,44.7,36l31.08,92L44.71,220A12,12,0,0,0,56,236a12.13,12.13,0,0,0,5.93-1.57l167.94-96.08a12,12,0,0,0,0-20.92Zm-4,14L58,227.47a4,4,0,0,1-5.72-4.83l0-.07L82.87,132H144a4,4,0,0,0,0-8H82.87L52.26,33.37A3.89,3.89,0,0,1,53.44,29,4.13,4.13,0,0,1,56,28a3.88,3.88,0,0,1,1.93.54l168,95.87a4,4,0,0,1,0,7Z"}))]]),Aj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",opacity:"0.2"}),c.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z"}))]]),Sj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"}),c.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM94.1,209.41a2,2,0,0,1-1.41.59H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L133.17,61.17h0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17Zm-129,134.63A4,4,0,0,1,92.69,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.83L136,69.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"}))]]),Ej=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M234.39,87.29c-57.67-57.72-155.11-57.72-212.78,0-21.45,21.47-23.52,53.13-5,77a20,20,0,0,0,22.92,6.37L88.4,153.29l.45-.16A20,20,0,0,0,101,138.47l5.44-27.24a72.48,72.48,0,0,1,42.76-.09L155,138.62a20,20,0,0,0,12.14,14.49l.45.17,48.94,17.37a20,20,0,0,0,22.91-6.37C257.91,140.42,255.84,108.76,234.39,87.29Zm-12.23,59.9L178,131.5,172.24,104a20,20,0,0,0-13-14.8,96.49,96.49,0,0,0-62.94.14A20,20,0,0,0,83.4,104.24L78,131.53,33.84,147.19c-9.16-13.85-7.41-30.77,4.73-42.92C62.81,80,95.41,67.88,128,67.88S193.19,80,217.43,104.27C229.57,116.42,231.32,133.35,222.16,147.19ZM228,200a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,200Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M230,157a8,8,0,0,1-9.26,2.47L171.58,142a8,8,0,0,1-4.86-5.8l-6.21-29.74a7.94,7.94,0,0,0-5.14-5.9,84.39,84.39,0,0,0-55.1.13,7.93,7.93,0,0,0-5.12,6l-5.9,29.51A8,8,0,0,1,84.38,142L35.29,159.42A8,8,0,0,1,26,157c-14.6-18.83-13.26-43.83,4-61.12,53.11-53.11,142.77-53.11,195.88,0C243.23,113.12,244.57,138.12,230,157Z",opacity:"0.2"}),c.createElement("path",{d:"M231.59,90.13h0C175.44,34,80.56,34,24.41,90.13c-20,20-21.92,49.49-4.69,71.71A16,16,0,0,0,32.35,168a15.8,15.8,0,0,0,5.75-1.08l49-17.37.29-.11a16,16,0,0,0,9.75-11.73l5.9-29.52a76.52,76.52,0,0,1,49.68-.11h0l6.21,29.75a16,16,0,0,0,9.72,11.59l.29.11,49,17.39a16,16,0,0,0,18.38-5.06C253.51,139.62,251.58,110.13,231.59,90.13ZM223.67,152l-.3-.12-48.82-17.33-6.21-29.74A16,16,0,0,0,158,93a92.56,92.56,0,0,0-60.34.13,16,16,0,0,0-10.32,12l-5.9,29.51L32.63,151.86c-.1,0-.17.13-.27.17-12.33-15.91-11-36.23,3.36-50.58,25-25,58.65-37.53,92.28-37.53s67.27,12.51,92.28,37.53C234.61,115.8,236,136.12,223.67,152Zm.32,48a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,200Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236.28,161.84a16,16,0,0,1-18.38,5.06l-49-17.39-.29-.11a16,16,0,0,1-9.72-11.59l-6.21-29.75h0a76.52,76.52,0,0,0-49.68.11l-5.9,29.52a16,16,0,0,1-9.75,11.73l-.29.11-49,17.37A15.8,15.8,0,0,1,32.35,168a16,16,0,0,1-12.63-6.14c-17.23-22.22-15.3-51.71,4.69-71.71,56.15-56.17,151-56.17,207.18,0h0C251.58,110.13,253.51,139.62,236.28,161.84ZM216,192H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M230.19,91.55h0c-55.39-55.4-149-55.4-204.38,0C6.56,110.82,4.7,139.22,21.29,160.61A14,14,0,0,0,37.39,165l49-17.38.22-.09a13.93,13.93,0,0,0,8.53-10.25l5.9-29.52a1.93,1.93,0,0,1,1.21-1.47,78.53,78.53,0,0,1,51.18-.11,1.93,1.93,0,0,1,1.22,1.45l6.21,29.75a14,14,0,0,0,8.5,10.14l.23.08,49,17.4a14,14,0,0,0,16.1-4.42C251.3,139.22,249.44,110.82,230.19,91.55Zm-5,61.71a2,2,0,0,1-2.29.58l-.22-.09-49-17.38A2,2,0,0,1,172.6,135l-6.22-29.74a14,14,0,0,0-9.06-10.35,90.53,90.53,0,0,0-59,.13,14,14,0,0,0-9,10.45L83.37,135a2,2,0,0,1-1.15,1.44L33.28,153.75l-.22.09a2,2,0,0,1-2.29-.58c-13-16.74-11.56-38.12,3.53-53.22,25.39-25.4,59.55-38.1,93.7-38.1s68.31,12.7,93.7,38.1C236.79,115.14,238.21,136.52,225.23,153.26ZM222,200a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,200Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M231.59,90.13h0C175.44,34,80.56,34,24.41,90.13c-20,20-21.92,49.49-4.69,71.71A16,16,0,0,0,32.35,168a15.8,15.8,0,0,0,5.75-1.08l49-17.37.29-.11a16,16,0,0,0,9.75-11.73l5.9-29.52a76.52,76.52,0,0,1,49.68-.11h0l6.21,29.75a16,16,0,0,0,9.72,11.59l.29.11,49,17.39a16,16,0,0,0,18.38-5.06C253.51,139.62,251.58,110.13,231.59,90.13ZM223.67,152l-.3-.12-48.82-17.33-6.21-29.74A16,16,0,0,0,158,93a92.56,92.56,0,0,0-60.34.13,16,16,0,0,0-10.32,12l-5.9,29.51L32.63,151.86c-.1,0-.17.13-.27.17-12.33-15.91-11-36.23,3.36-50.58,25-25,58.65-37.53,92.28-37.53s67.27,12.51,92.28,37.53C234.61,115.8,236,136.12,223.67,152Zm.32,48a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,200Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228.79,93C174.15,38.34,81.85,38.34,27.21,93,8.69,111.5,6.9,138.81,22.85,159.39a12,12,0,0,0,13.83,3.77l49-17.39.15-.06a12,12,0,0,0,7.31-8.79l5.9-29.51a3.93,3.93,0,0,1,2.51-3,80.59,80.59,0,0,1,52.5-.12,3.94,3.94,0,0,1,2.52,2.94L162.81,137a12,12,0,0,0,7.29,8.69l.15.06,49.07,17.41a12,12,0,0,0,13.83-3.77C249.1,138.81,247.31,111.5,228.79,93Zm-2,61.51a4,4,0,0,1-4.61,1.21l-.15-.06L173,138.24a4,4,0,0,1-2.37-2.87l-6.21-29.75a12,12,0,0,0-7.75-8.87,88.63,88.63,0,0,0-57.74.14,12,12,0,0,0-7.72,9l-5.9,29.51A4,4,0,0,1,83,138.26l-49,17.38-.15.06a4,4,0,0,1-4.61-1.21c-13.42-17.3-11.9-40.26,3.69-55.85C58.65,72.85,93.33,60,128,60s69.35,12.89,95.13,38.68C238.71,114.23,240.24,137.19,226.82,154.49ZM220,200a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,200Z"}))]]),wj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",opacity:"0.2"}),c.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"}))]]),Nj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240.49,15.51a12,12,0,0,0-17,0L173.94,65.09l-2.54-2.55a36.05,36.05,0,0,0-50.91,0L100,83l-3.51-3.52a12,12,0,0,0-17,17L83,100,62.54,120.49a36,36,0,0,0,0,50.91l2.55,2.54L15.51,223.51a12,12,0,0,0,17,17l49.57-49.58,2.54,2.55a36.06,36.06,0,0,0,50.91,0L156,173l3.51,3.52a12,12,0,0,0,17-17L173,156l20.49-20.49a36,36,0,0,0,0-50.91l-2.55-2.54,49.58-49.57A12,12,0,0,0,240.49,15.51Zm-121.95,161a12,12,0,0,1-17,0L79.51,154.43a12,12,0,0,1,0-17L100,117l39,39Zm58-57.95h0L156,139l-39-39,20.49-20.49a12,12,0,0,1,17,0l22.06,22.06a12,12,0,0,1,0,17ZM85.27,33.37a12,12,0,0,1,21.46-10.74l8,16A12,12,0,1,1,93.27,49.37Zm-68,57.26a12,12,0,0,1,16.1-5.36l16,8a12,12,0,1,1-10.74,21.46l-16-8A12,12,0,0,1,17.27,90.63Zm221.46,74.74a12,12,0,0,1-16.1,5.36l-16-8a12,12,0,0,1,10.74-21.46l16,8A12,12,0,0,1,238.73,165.37Zm-68,57.26a12,12,0,1,1-21.46,10.74l-8-16a12,12,0,0,1,21.46-10.74Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M185,127,127,185a24,24,0,0,1-33.94,0L71,162.91A24,24,0,0,1,71,129L129,71a24,24,0,0,1,33.94,0L185,93.09A24,24,0,0,1,185,127Z",opacity:"0.2"}),c.createElement("path",{d:"M237.66,18.34a8,8,0,0,0-11.32,0l-52.4,52.41-5.37-5.38a32.05,32.05,0,0,0-45.26,0L100,88.69l-6.34-6.35A8,8,0,0,0,82.34,93.66L88.69,100,65.37,123.31a32,32,0,0,0,0,45.26l5.38,5.37-52.41,52.4a8,8,0,0,0,11.32,11.32l52.4-52.41,5.37,5.38a32.06,32.06,0,0,0,45.26,0L156,167.31l6.34,6.35a8,8,0,0,0,11.32-11.32L167.31,156l23.32-23.31a32,32,0,0,0,0-45.26l-5.38-5.37,52.41-52.4A8,8,0,0,0,237.66,18.34Zm-116.29,161a16,16,0,0,1-22.62,0L76.69,157.25a16,16,0,0,1,0-22.62L100,111.31,144.69,156Zm57.94-57.94h0L156,144.69,111.31,100l23.32-23.31a16,16,0,0,1,22.62,0l22.06,22a16,16,0,0,1,0,22.63ZM88.57,35A8,8,0,0,1,103.43,29l8,20A8,8,0,0,1,96.57,55ZM24.57,93A8,8,0,0,1,35,88.57l20,8A8,8,0,0,1,49,111.43l-20-8A8,8,0,0,1,24.57,93ZM231.43,163a8,8,0,0,1-10.4,4.46l-20-8A8,8,0,1,1,207,144.57l20,8A8,8,0,0,1,231.43,163Zm-64,58.06A8,8,0,0,1,152.57,227l-8-20A8,8,0,0,1,159.43,201Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M88.57,35A8,8,0,0,1,103.43,29l8,20A8,8,0,0,1,96.57,55ZM29,103.43l20,8A8,8,0,1,0,55,96.57l-20-8A8,8,0,0,0,29,103.43ZM227,152.57l-20-8A8,8,0,1,0,201,159.43l20,8A8,8,0,0,0,227,152.57ZM159.43,201A8,8,0,0,0,144.57,207l8,20A8,8,0,1,0,167.43,221ZM237.91,18.52a8,8,0,0,0-11.5-.18L174,70.75l-5.38-5.38a32,32,0,0,0-45.28,0L106.14,82.54a4,4,0,0,0,0,5.66l61.7,61.66a4,4,0,0,0,5.66,0l16.74-16.74a32.76,32.76,0,0,0,9.81-22.52,31.82,31.82,0,0,0-9.37-23.17l-5.38-5.37,52.2-52.17A8.22,8.22,0,0,0,237.91,18.52ZM85.64,90.34a8,8,0,0,0-11.49.18,8.22,8.22,0,0,0,.41,11.37L80.67,108,65.34,123.31A31.82,31.82,0,0,0,56,146.47,32.75,32.75,0,0,0,65.77,169l5,4.94L18.49,226.13a8.21,8.21,0,0,0-.61,11.1,8,8,0,0,0,11.72.43L82,185.25l5.37,5.38a32.1,32.1,0,0,0,45.29,0L148,175.31l6.34,6.35a8,8,0,0,0,11.32-11.32Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236.24,19.76a6,6,0,0,0-8.48,0L173.94,73.57l-6.79-6.78a30,30,0,0,0-42.42,0L100,91.51l-7.76-7.75a6,6,0,0,0-8.48,8.48L91.51,100,66.79,124.73a30,30,0,0,0,0,42.42l6.78,6.79L19.76,227.76a6,6,0,1,0,8.48,8.48l53.82-53.81,6.79,6.78a30,30,0,0,0,42.42,0L156,164.49l7.76,7.75a6,6,0,0,0,8.48-8.48L164.49,156l24.72-24.73a30,30,0,0,0,0-42.42l-6.78-6.79,53.81-53.82A6,6,0,0,0,236.24,19.76Zm-113.45,161a18,18,0,0,1-25.46,0L75.27,158.67a18,18,0,0,1,0-25.46L100,108.49,147.51,156Zm57.94-57.94L156,147.51,108.49,100l24.72-24.73a18,18,0,0,1,25.46,0l22.06,22.06a18,18,0,0,1,0,25.46ZM90.43,34.23a6,6,0,0,1,11.14-4.46l8,20a6,6,0,1,1-11.14,4.46Zm-64,59.54a6,6,0,0,1,7.8-3.34l20,8a6,6,0,1,1-4.46,11.14l-20-8A6,6,0,0,1,26.43,93.77Zm203.14,68.46a6,6,0,0,1-7.8,3.34l-20-8a6,6,0,0,1,4.46-11.14l20,8A6,6,0,0,1,229.57,162.23Zm-64,59.54a6,6,0,1,1-11.14,4.46l-8-20a6,6,0,0,1,11.14-4.46Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M237.66,18.34a8,8,0,0,0-11.32,0l-52.4,52.41-5.37-5.38a32.05,32.05,0,0,0-45.26,0L100,88.69l-6.34-6.35A8,8,0,0,0,82.34,93.66L88.69,100,65.37,123.31a32,32,0,0,0,0,45.26l5.38,5.37-52.41,52.4a8,8,0,0,0,11.32,11.32l52.4-52.41,5.37,5.38a32,32,0,0,0,45.26,0L156,167.31l6.34,6.35a8,8,0,0,0,11.32-11.32L167.31,156l23.32-23.31a32,32,0,0,0,0-45.26l-5.38-5.37,52.41-52.4A8,8,0,0,0,237.66,18.34Zm-116.29,161a16,16,0,0,1-22.62,0L76.69,157.25a16,16,0,0,1,0-22.62L100,111.31,144.69,156Zm57.94-57.94L156,144.69,111.31,100l23.32-23.31a16,16,0,0,1,22.62,0l22.06,22A16,16,0,0,1,179.31,121.37ZM88.57,35A8,8,0,0,1,103.43,29l8,20A8,8,0,0,1,96.57,55ZM24.57,93A8,8,0,0,1,35,88.57l20,8A8,8,0,0,1,49,111.43l-20-8A8,8,0,0,1,24.57,93ZM231.43,163a8,8,0,0,1-10.4,4.46l-20-8A8,8,0,1,1,207,144.57l20,8A8,8,0,0,1,231.43,163Zm-64,58.06A8,8,0,0,1,152.57,227l-8-20A8,8,0,0,1,159.43,201Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M234.83,21.17a4,4,0,0,0-5.66,0L173.94,76.4l-8.2-8.2a28,28,0,0,0-39.6,0L100,94.34l-9.17-9.17a4,4,0,0,0-5.66,5.66L94.34,100,68.2,126.14a28,28,0,0,0,0,39.6l8.2,8.2L21.17,229.17a4,4,0,0,0,5.66,5.66L82.06,179.6l8.2,8.2a28,28,0,0,0,39.6,0L156,161.66l9.17,9.17a4,4,0,0,0,5.66-5.66L161.66,156l26.14-26.14a28,28,0,0,0,0-39.6l-8.2-8.2,55.23-55.23A4,4,0,0,0,234.83,21.17Zm-110.63,161a20,20,0,0,1-28.28,0L73.86,160.08a20,20,0,0,1,0-28.28L100,105.66,150.34,156Zm57.94-57.94L156,150.34,105.66,100,131.8,73.86a20,20,0,0,1,28.28,0l22.06,22.06A20,20,0,0,1,182.14,124.2ZM92.29,33.49a4,4,0,1,1,7.42-3l8,20a4,4,0,0,1-2.22,5.2A3.91,3.91,0,0,1,104,56a4,4,0,0,1-3.71-2.51Zm-64,61a4,4,0,0,1,5.2-2.22l20,8A4,4,0,0,1,52,108a3.91,3.91,0,0,1-1.49-.29l-20-8A4,4,0,0,1,28.29,94.51Zm199.42,67A4,4,0,0,1,224,164a3.91,3.91,0,0,1-1.49-.29l-20-8a4,4,0,1,1,3-7.42l20,8A4,4,0,0,1,227.71,161.49Zm-64,61a4,4,0,0,1-2.22,5.2A3.91,3.91,0,0,1,160,228a4,4,0,0,1-3.71-2.51l-8-20a4,4,0,0,1,7.42-3Z"}))]]),Mj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),c.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),Cj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M72,104a16,16,0,1,1,16,16A16,16,0,0,1,72,104Zm96,16a16,16,0,1,0-16-16A16,16,0,0,0,168,120Zm68-40V192a36,36,0,0,1-36,36H56a36,36,0,0,1-36-36V80A36,36,0,0,1,56,44h60V16a12,12,0,0,1,24,0V44h60A36,36,0,0,1,236,80Zm-24,0a12,12,0,0,0-12-12H56A12,12,0,0,0,44,80V192a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12Zm-12,82a30,30,0,0,1-30,30H86a30,30,0,0,1,0-60h84A30,30,0,0,1,200,162Zm-80-6v12h16V156ZM86,168H96V156H86a6,6,0,0,0,0,12Zm90-6a6,6,0,0,0-6-6H160v12h10A6,6,0,0,0,176,162Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,56H56A24,24,0,0,0,32,80V192a24,24,0,0,0,24,24H200a24,24,0,0,0,24-24V80A24,24,0,0,0,200,56ZM164,184H92a20,20,0,0,1,0-40h72a20,20,0,0,1,0,40Z",opacity:"0.2"}),c.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Zm4,28H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48ZM172,96a12,12,0,1,1-12,12A12,12,0,0,1,172,96ZM96,184H80a16,16,0,0,1,0-32H96ZM84,120a12,12,0,1,1,12-12A12,12,0,0,1,84,120Zm60,64H112V152h32Zm32,0H160V152h16a16,16,0,0,1,0,32Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,50H134V16a6,6,0,0,0-12,0V50H56A30,30,0,0,0,26,80V192a30,30,0,0,0,30,30H200a30,30,0,0,0,30-30V80A30,30,0,0,0,200,50Zm18,142a18,18,0,0,1-18,18H56a18,18,0,0,1-18-18V80A18,18,0,0,1,56,62H200a18,18,0,0,1,18,18ZM74,108a10,10,0,1,1,10,10A10,10,0,0,1,74,108Zm88,0a10,10,0,1,1,10,10A10,10,0,0,1,162,108Zm2,30H92a26,26,0,0,0,0,52h72a26,26,0,0,0,0-52Zm-22,12v28H114V150ZM78,164a14,14,0,0,1,14-14h10v28H92A14,14,0,0,1,78,164Zm86,14H154V150h10a14,14,0,0,1,0,28Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16Zm-52-56H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,52H132V16a4,4,0,0,0-8,0V52H56A28,28,0,0,0,28,80V192a28,28,0,0,0,28,28H200a28,28,0,0,0,28-28V80A28,28,0,0,0,200,52Zm20,140a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V80A20,20,0,0,1,56,60H200a20,20,0,0,1,20,20ZM76,108a8,8,0,1,1,8,8A8,8,0,0,1,76,108Zm88,0a8,8,0,1,1,8,8A8,8,0,0,1,164,108Zm0,32H92a24,24,0,0,0,0,48h72a24,24,0,0,0,0-48Zm-20,8v32H112V148ZM76,164a16,16,0,0,1,16-16h12v32H92A16,16,0,0,1,76,164Zm88,16H152V148h12a16,16,0,0,1,0,32Z"}))]]),Tj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,36H48A20,20,0,0,0,28,56v56c0,54.29,26.32,87.22,48.4,105.29,23.71,19.39,47.44,26,48.44,26.29a12.1,12.1,0,0,0,6.32,0c1-.28,24.73-6.9,48.44-26.29,22.08-18.07,48.4-51,48.4-105.29V56A20,20,0,0,0,208,36Zm-4,76c0,35.71-13.09,64.69-38.91,86.15A126.28,126.28,0,0,1,128,219.38a126.14,126.14,0,0,1-37.09-21.23C65.09,176.69,52,147.71,52,112V60H204ZM79.51,144.49a12,12,0,1,1,17-17L112,143l47.51-47.52a12,12,0,0,1,17,17l-56,56a12,12,0,0,1-17,0Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,56v56c0,96-88,120-88,120S40,208,40,112V56a8,8,0,0,1,8-8H208A8,8,0,0,1,216,56Z",opacity:"0.2"}),c.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm-34.32,69.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,42H48A14,14,0,0,0,34,56v56c0,51.94,25.12,83.4,46.2,100.64,22.73,18.6,45.27,24.89,46.22,25.15a6,6,0,0,0,3.16,0c.95-.26,23.49-6.55,46.22-25.15C196.88,195.4,222,163.94,222,112V56A14,14,0,0,0,208,42Zm2,70c0,37.76-13.94,68.39-41.44,91.06A131.17,131.17,0,0,1,128,225.72a130.94,130.94,0,0,1-40.56-22.66C59.94,180.39,46,149.76,46,112V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,44H48A12,12,0,0,0,36,56v56c0,51.16,24.73,82.12,45.47,99.1,22.4,18.32,44.55,24.5,45.48,24.76a4,4,0,0,0,2.1,0c.93-.26,23.08-6.44,45.48-24.76,20.74-17,45.47-47.94,45.47-99.1V56A12,12,0,0,0,208,44Zm4,68c0,38.44-14.23,69.63-42.29,92.71A132.45,132.45,0,0,1,128,227.82a132.23,132.23,0,0,1-41.71-23.11C58.23,181.63,44,150.44,44,112V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-41.17-10.83a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17Z"}))]]),Vj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),c.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),Hj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0ZM96.49,80.49,116,61v83a12,12,0,0,0,24,0V61l19.51,19.52a12,12,0,1,0,17-17l-40-40a12,12,0,0,0-17,0l-40,40a12,12,0,1,0,17,17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),c.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM88,80h32v64a8,8,0,0,0,16,0V80h32a8,8,0,0,0,5.66-13.66l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,88,80Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0ZM92.24,76.24,122,46.49V144a6,6,0,0,0,12,0V46.49l29.76,29.75a6,6,0,0,0,8.48-8.48l-40-40a6,6,0,0,0-8.48,0l-40,40a6,6,0,0,0,8.48,8.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0ZM90.83,74.83,124,41.66V144a4,4,0,0,0,8,0V41.66l33.17,33.17a4,4,0,1,0,5.66-5.66l-40-40a4,4,0,0,0-5.66,0l-40,40a4,4,0,0,0,5.66,5.66Z"}))]]),Lj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),c.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),Zj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),c.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),Dj=c.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),ge=c.forwardRef((a,n)=>{const{alt:s,color:o,size:u,weight:f,mirrored:h,children:p,weights:x,...g}=a,{color:y="currentColor",size:b,weight:j="regular",mirrored:S=!1,...w}=c.useContext(Dj);return c.createElement("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:u??b,height:u??b,fill:o??y,viewBox:"0 0 256 256",transform:h||S?"scale(-1, 1)":void 0,...w,...g},!!s&&c.createElement("title",null,s),p,x.get(f??j))});ge.displayName="IconBase";const D6=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:X9}));D6.displayName="AddressBookIcon";const M1=D6,R6=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:P9}));R6.displayName="ArrowClockwiseIcon";const C1=R6,k6=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:K9}));k6.displayName="ArrowLeftIcon";const fi=k6,_6=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:Q9}));_6.displayName="BrainIcon";const m8=_6,z6=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:J9}));z6.displayName="CalendarIcon";const O6=z6,B6=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:W9}));B6.displayName="CaretDownIcon";const Rj=B6,U6=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:I9}));U6.displayName="CaretLeftIcon";const kj=U6,F6=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:ej}));F6.displayName="CaretRightIcon";const q6=F6,Y6=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:tj}));Y6.displayName="ChatIcon";const _j=Y6,$6=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:aj}));$6.displayName="CheckIcon";const zj=$6,G6=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:nj}));G6.displayName="CheckCircleIcon";const Oj=G6,X6=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:lj}));X6.displayName="CircleNotchIcon";const bn=X6,P6=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:sj}));P6.displayName="ClockCounterClockwiseIcon";const K6=P6,Q6=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:ij}));Q6.displayName="DownloadIcon";const Bj=Q6,J6=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:rj}));J6.displayName="DownloadSimpleIcon";const Uj=J6,W6=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:oj}));W6.displayName="EnvelopeIcon";const Fj=W6,I6=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:cj}));I6.displayName="EyeIcon";const T1=I6,ep=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:uj}));ep.displayName="FilePdfIcon";const V1=ep,tp=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:dj}));tp.displayName="FlowArrowIcon";const ap=tp,np=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:fj}));np.displayName="GearIcon";const Ou=np,lp=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:mj}));lp.displayName="HouseIcon";const qj=lp,sp=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:hj}));sp.displayName="InfoIcon";const Yj=sp,ip=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:pj}));ip.displayName="KanbanIcon";const rp=ip,op=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:xj}));op.displayName="LightningIcon";const so=op,cp=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:gj}));cp.displayName="ListChecksIcon";const li=cp,up=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:bj}));up.displayName="MagnifyingGlassIcon";const Xn=up,dp=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:yj}));dp.displayName="MicrophoneIcon";const fp=dp,mp=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:vj}));mp.displayName="MicrophoneSlashIcon";const hp=mp,pp=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:jj}));pp.displayName="PaperPlaneRightIcon";const h8=pp,xp=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:Aj}));xp.displayName="PauseIcon";const $j=xp,gp=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:Sj}));gp.displayName="PencilSimpleIcon";const bp=gp,yp=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:Ej}));yp.displayName="PhoneDisconnectIcon";const Gj=yp,vp=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:wj}));vp.displayName="PlayIcon";const jp=vp,Ap=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:Nj}));Ap.displayName="PlugsConnectedIcon";const Sp=Ap,Ep=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:Mj}));Ep.displayName="PlusIcon";const Ut=Ep,wp=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:Cj}));wp.displayName="RobotIcon";const Np=wp,Mp=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:Tj}));Mp.displayName="ShieldCheckIcon";const Cp=Mp,Tp=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:Vj}));Tp.displayName="TrashIcon";const Kl=Tp,Vp=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:Hj}));Vp.displayName="UploadSimpleIcon";const Xj=Vp,Hp=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:Lj}));Hp.displayName="XIcon";const io=Hp,Lp=c.forwardRef((a,n)=>c.createElement(ge,{ref:n,...a,weights:Zj}));Lp.displayName="XCircleIcon";const Pj=Lp,Bu=new EventTarget;function we(a,n){Bu.dispatchEvent(new CustomEvent("toast",{detail:{type:a,message:n}}))}const Kj={success:"border-matrix/30 bg-matrix/10 text-matrix",error:"border-critical/30 bg-critical/10 text-critical",info:"border-cyber/30 bg-cyber/10 text-cyber"};function Qj(){const[a,n]=c.useState([]);c.useEffect(()=>{const o=u=>{const{type:f,message:h}=u.detail,p=crypto.randomUUID();n(x=>[...x.slice(-4),{id:p,type:f,message:h}]),setTimeout(()=>{n(x=>x.filter(g=>g.id!==p))},5e3)};return Bu.addEventListener("toast",o),()=>Bu.removeEventListener("toast",o)},[]);const s=o=>{n(u=>u.filter(f=>f.id!==o))};return r.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 max-w-sm",children:r.jsx(O7,{children:a.map(o=>r.jsxs(Z6.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},className:`flex items-center gap-2 px-4 py-3 rounded-lg border text-sm ${Kj[o.type]}`,children:[r.jsx("span",{className:"flex-1",children:o.message}),r.jsx("button",{onClick:()=>s(o.id),className:"opacity-60 hover:opacity-100",children:r.jsx(io,{size:14})})]},o.id))})})}function xe(a,n=[]){const[s,o]=c.useState(null),[u,f]=c.useState(!!a),[h,p]=c.useState(null),[x,g]=c.useState(0),y=c.useCallback(()=>g(b=>b+1),[]);return c.useEffect(()=>{if(!a)return;let b=!1;return f(!0),pe(a).then(j=>{b||(o(j.data),p(null))}).catch(j=>{b||p(j.message)}).finally(()=>{b||f(!1)}),()=>{b=!0}},[a,x,...n]),{data:s,loading:u,error:h,refetch:y}}let Tt=null,cu=null;const Uu=new Set,Jj=3e3;function Wj(){const a=Gn(),n=window.location.protocol==="https:"?"wss:":"ws:",s=window.location.host;return`${n}//${s}/ws?token=${a}`}function H1(){if(!((Tt==null?void 0:Tt.readyState)===WebSocket.OPEN||(Tt==null?void 0:Tt.readyState)===WebSocket.CONNECTING||!Gn()))try{Tt=new WebSocket(Wj()),Tt.onmessage=n=>{try{const s=JSON.parse(n.data);for(const o of Uu)o(s.type,s.data)}catch{}},Tt.onclose=()=>{Tt=null,p8()},Tt.onerror=()=>{Tt==null||Tt.close()}}catch{p8()}}function p8(){cu||(cu=setTimeout(()=>{cu=null,H1()},Jj))}function Zp(a){return Uu.add(a),()=>Uu.delete(a)}function va(a){const[n,s]=c.useState(0);return c.useEffect(()=>(H1(),Zp(o=>{a.includes(o)&&s(u=>u+1)})),[a.join(",")]),n}function Ij(a){const n=c.useRef(a);c.useEffect(()=>{n.current=a}),c.useEffect(()=>(H1(),Zp((s,o)=>{n.current(s,o)})),[])}function eA(){Ij(c.useCallback((a,n)=>{const s=n;switch(a){case"task:completed":we("success",`Task completed${s!=null&&s.taskId?` (${s.taskId.slice(0,8)})`:""}`);break;case"task:failed":we("error",`Task failed: ${(s==null?void 0:s.error)||"Unknown error"}`);break;case"cloud:connected":we("info","Connected to cloud");break;case"cloud:disconnected":we("error",`Disconnected: ${(s==null?void 0:s.reason)||"Unknown"}`);break}},[]))}function tA({children:a}){return r.jsx(Z6.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.15,ease:"easeOut"},className:"h-full",children:a})}const x8=[{path:"/",label:"Dashboard",icon:qj,group:"work"},{path:"/agents",label:"Agents",icon:Np,group:"work"},{path:"/projects",label:"Projects",icon:rp,group:"work"},{path:"/tasks",label:"Tasks",icon:li,group:"work"},{path:"/activity",label:"Activity",icon:K6,group:"work"},{path:"/schedules",label:"Schedules",icon:O6,group:"work",enterpriseOnly:!0},{path:"/contacts",label:"Contacts",icon:M1,group:"work"},{path:"/workflows",label:"Workflows",icon:ap,group:"manage"},{path:"/automations",label:"Automations",icon:so,group:"manage",enterpriseOnly:!0},{path:"/connections",label:"Connections",icon:Sp,group:"manage",enterpriseOnly:!0},{path:"/approvals",label:"Approvals",icon:Cp,group:"manage",enterpriseOnly:!0},{path:"/pdf-tools",label:"PDF Tools",icon:V1,group:"manage"},{path:"/chat",label:"Chat",icon:_j,group:"manage"},{path:"/settings",label:"Settings",icon:Ou,group:"manage"}];function aA(a){const n=Math.floor(a/3600),s=Math.floor(a%3600/60);return n>0?`${n}h ${s}m`:`${s}m`}function nA(){const a=ya(),{data:n}=xe("/health"),{tier:s,modelReady:o,loading:u}=$l();eA();const[f,h]=c.useState(()=>{try{return localStorage.getItem("ohwow-model-banner-dismissed")==="1"}catch{return!1}}),p=!u&&s==="free"&&!o&&!f,x=()=>{h(!0);try{localStorage.setItem("ohwow-model-banner-dismissed","1")}catch{}},g=u?x8:x8.filter(S=>!S.enterpriseOnly||s==="enterprise"),y=g.filter(S=>S.group==="work"),b=g.filter(S=>S.group==="manage"),j=({path:S,label:w,icon:N})=>{const E=S==="/"?a.pathname==="/"||a.pathname==="":a.pathname.startsWith(S);return r.jsxs(Yn,{to:S,"data-testid":`runtime-nav-${w.toLowerCase()}`,className:`flex items-center gap-3 px-4 py-1.5 mx-2 rounded-md text-sm transition-colors ${E?"bg-panel text-cyber font-medium":"text-muted hover:text-white hover:bg-panel/50"}`,children:[r.jsx(N,{size:18,weight:E?"fill":"regular"}),w]},S)};return r.jsxs("div",{className:"flex h-screen bg-void text-white",children:[r.jsxs("aside",{className:"w-56 shrink-0 border-r border-border bg-terminal flex flex-col",children:[r.jsxs("div",{className:"px-4 py-4 border-b border-border",children:[r.jsxs("h1",{className:"text-lg font-bold tracking-tight",children:[r.jsx("span",{className:"text-cyber",children:"ohwow"}),r.jsx("span",{className:"text-muted ml-1 text-sm font-normal",children:"runtime"})]}),n&&r.jsxs("div",{className:"flex items-center gap-2 mt-1.5 text-xs text-muted",children:[r.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full ${n.status==="healthy"?"bg-matrix":"bg-warning"}`}),r.jsxs("span",{children:["v",n.version]}),r.jsx("span",{className:"text-border",children:"|"}),r.jsx("span",{children:aA(n.uptime)})]})]}),r.jsxs("nav",{className:"flex-1 py-2 overflow-y-auto",children:[r.jsx("p",{className:"px-4 pt-2 pb-1 text-[10px] font-semibold uppercase tracking-wider text-muted/60",children:"Work"}),y.map(j),r.jsx("p",{className:"px-4 pt-4 pb-1 text-[10px] font-semibold uppercase tracking-wider text-muted/60",children:"Manage"}),b.map(j)]}),r.jsxs("div",{className:"px-4 py-3 border-t border-border text-xs text-muted flex items-center gap-2",children:[!u&&r.jsx("span",{"data-testid":"runtime-tier-badge",className:`inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-medium ${s==="free"?"bg-warning/15 text-warning":"bg-matrix/15 text-matrix"}`,children:s==="free"?"Free tier":"Enterprise"}),r.jsx("span",{children:"Local runtime"})]})]}),r.jsxs("main",{className:"flex-1 overflow-y-auto",children:[p&&r.jsxs("div",{className:"bg-warning/10 border-b border-warning/20 px-6 py-2.5 flex items-center justify-between",children:[r.jsxs("p",{className:"text-sm text-warning",children:["No AI model set up yet. Head to"," ",r.jsx(Yn,{to:"/settings",className:"underline hover:text-white",children:"Settings"})," ","to download one."]}),r.jsx("button",{onClick:x,className:"text-warning/60 hover:text-warning text-sm ml-4","aria-label":"Dismiss",children:"✕"})]}),r.jsx(G8,{children:r.jsx(tA,{children:r.jsx(gb,{})},a.pathname)})]})]})}function lA(){const[a,n]=c.useState(""),[s,o]=c.useState(""),[u,f]=c.useState(!1),h=ii(),p=async x=>{if(x.preventDefault(),!!a.trim()){f(!0),o("");try{hu(a.trim()),await pe("/api/session"),h("/",{replace:!0})}catch{o("Invalid session token. Check your terminal for the correct token."),hu("")}finally{f(!1)}}};return r.jsx("div",{className:"min-h-screen bg-void flex items-center justify-center p-4",children:r.jsxs("div",{className:"w-full max-w-sm",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsxs("h1",{className:"text-2xl font-bold",children:[r.jsx("span",{className:"text-cyber",children:"ohwow"}),r.jsx("span",{className:"text-muted ml-1",children:"runtime"})]}),r.jsx("p",{className:"text-sm text-muted mt-2",children:"Enter the session token from your terminal to connect."})]}),r.jsxs("form",{onSubmit:p,className:"space-y-4",children:[r.jsx("div",{children:r.jsx("input",{type:"text",value:a,onChange:x=>n(x.target.value),placeholder:"Paste session token here",autoFocus:!0,className:"w-full bg-panel border border-border rounded-lg px-4 py-3 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber transition-colors font-mono"})}),s&&r.jsx("p",{className:"text-xs text-critical",children:s}),r.jsx("button",{type:"submit",disabled:u||!a.trim(),className:"w-full bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-4 py-3 text-sm font-medium hover:bg-cyber/20 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:u?"Connecting...":"Connect"})]})]})})}function Dp(){const[a,n]=c.useState({screen:"splash",status:null,selectedModel:null,loading:!1,downloading:!1,downloadPercent:0,downloadMessage:"",setupMessage:"",error:null,completed:!1,businessName:"",businessType:"",businessDescription:"",founderPath:"",founderFocus:"",modelAvailable:!1,chatMessages:[],chatStreaming:!1,presets:[],selectedAgentIds:new Set}),s=c.useCallback(async()=>{n(L=>({...L,loading:!0,error:null}));try{const L=await fetch("/api/onboarding/status");if(!L.ok)throw new Error("Could not detect hardware");const{data:z}=await L.json();return n(q=>({...q,status:z,selectedModel:z.recommendation,loading:!1})),z}catch(L){return n(z=>({...z,loading:!1,error:L instanceof Error?L.message:"Something went wrong"})),null}},[]),o=c.useCallback(async()=>{n(L=>({...L,screen:"model"})),a.status||await s()},[a.status,s]),u=c.useCallback(L=>{n(z=>({...z,selectedModel:L}))},[]),f=async(L,z)=>{const q=L.body.getReader(),Q=new TextDecoder;let J="";for(;;){const{done:ee,value:ue}=await q.read();if(ee)break;J+=Q.decode(ue,{stream:!0});const le=J.split(`
|
|
70
|
-
`);J=le.pop()||"";for(const K of le)if(K.startsWith("data: ")){const ne=K.slice(6).trim();if(ne==="[DONE]")return;try{z(JSON.parse(ne))}catch{}}}},h=c.useCallback(async()=>{const L=a.selectedModel;if(L){n(z=>({...z,downloading:!0,downloadPercent:0,downloadMessage:"",setupMessage:"Setting things up...",error:null}));try{const z=await fetch("/api/onboarding/ensure-ollama",{method:"POST"});if(!z.ok||!z.body)throw new Error("Could not set up Ollama");await f(z,Q=>{if(n(J=>({...J,setupMessage:Q.message})),Q.error)throw new Error(Q.error)}),n(Q=>({...Q,setupMessage:"",downloadMessage:"Starting download..."}));const q=await fetch("/api/onboarding/download-model",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tag:L.tag})});if(!q.ok||!q.body)throw new Error("Could not start download");await f(q,Q=>{if(n(J=>({...J,downloadMessage:Q.message,downloadPercent:Q.percent??J.downloadPercent})),Q.error)throw new Error(Q.error)}),n(Q=>({...Q,downloading:!1,downloadPercent:100,downloadMessage:"Download complete",modelAvailable:!0,screen:"business_info"}))}catch(z){n(q=>({...q,downloading:!1,setupMessage:"",error:z instanceof Error?z.message:"Something went wrong"}))}}},[a.selectedModel]),p=c.useCallback(()=>{n(L=>({...L,screen:"business_info",selectedModel:null,modelAvailable:!1}))},[]),x=c.useCallback(L=>{n(z=>({...z,businessName:L}))},[]),g=c.useCallback(L=>{n(z=>({...z,businessType:L}))},[]),y=c.useCallback(L=>{n(z=>({...z,businessDescription:L}))},[]),b=c.useCallback(()=>{n(L=>({...L,screen:"business_info"}))},[]),j=c.useCallback(L=>{n(z=>({...z,founderPath:L}))},[]),S=c.useCallback(L=>{n(z=>({...z,founderFocus:L}))},[]),w=c.useCallback(()=>{n(L=>({...L,screen:"founder_stage"}))},[]),N=c.useCallback(async()=>{const L=a.businessType||"saas_startup";try{const z=await fetch(`/api/onboarding/presets?businessType=${L}`);if(z.ok){const{data:q}=await z.json();n(Q=>({...Q,screen:"agent_discovery",presets:q.presets,selectedAgentIds:new Set(q.recommended.map(J=>J.id))}))}else n(q=>({...q,screen:"agent_discovery"}))}catch{n(z=>({...z,screen:"agent_discovery"}))}try{const z=await fetch("/api/onboarding/model-available");if(z.ok){const{data:q}=await z.json();n(Q=>({...Q,modelAvailable:q.available})),q.available&&a.chatMessages.length===0&&E([])}}catch{}},[a.businessType,a.chatMessages.length,E]),E=c.useCallback(async L=>{n(z=>({...z,chatStreaming:!0}));try{const z=await fetch("/api/onboarding/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:L,businessType:a.businessType||"saas_startup",founderPath:a.founderPath||"exploring",founderFocus:a.founderFocus||""})});if(!z.ok||!z.body)throw new Error("Chat unavailable");let q="";const Q=z.body.getReader(),J=new TextDecoder;let ee="";for(;;){const{done:ue,value:le}=await Q.read();if(ue)break;ee+=J.decode(le,{stream:!0});const K=ee.split(`
|
|
71
|
-
`);ee=K.pop()||"";for(const ne of K)if(ne.startsWith("data: ")){const O=ne.slice(6).trim();if(O==="[DONE]")continue;try{const B=JSON.parse(O);B.type==="text"&&B.content&&(q+=B.content)}catch{}}}if(q){n(le=>({...le,chatMessages:[...le.chatMessages,{role:"assistant",content:q}],chatStreaming:!1}));const ue=q.match(/```agents\s*\n?([\s\S]*?)```/);if(ue)try{const le=JSON.parse(ue[1].trim());Array.isArray(le)&&n(K=>({...K,selectedAgentIds:new Set(le.filter(ne=>typeof ne=="string"&&K.presets.some(O=>O.id===ne)))}))}catch{}}else n(ue=>({...ue,chatStreaming:!1}))}catch{n(z=>({...z,chatStreaming:!1,chatMessages:[...z.chatMessages,{role:"assistant",content:"I ran into an issue connecting to the model. You can pick your agents manually on the next screen."}]}))}},[a.businessType,a.founderPath,a.founderFocus]),C=c.useCallback(L=>{const z={role:"user",content:L};n(Q=>({...Q,chatMessages:[...Q.chatMessages,z]}));const q=[...a.chatMessages,z];E(q)},[a.chatMessages,E]),T=c.useCallback(()=>{n(L=>({...L,screen:"agent_selection"}))},[]),D=c.useCallback(L=>{n(z=>{const q=new Set(z.selectedAgentIds);return q.has(L)?q.delete(L):q.add(L),{...z,selectedAgentIds:q}})},[]),Y=c.useCallback(()=>{n(L=>({...L,screen:"ready"}))},[]),F=c.useCallback(async()=>{const L=a.selectedModel,z=(L==null?void 0:L.tag)||"qwen3:4b",q=a.presets.filter(Q=>a.selectedAgentIds.has(Q.id)).map(Q=>({id:Q.id,name:Q.name,role:Q.role,description:Q.description,systemPrompt:"",tools:Q.tools,department:Q.department}));n(Q=>({...Q,loading:!0,error:null}));try{if(!(await fetch("/api/onboarding/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({modelTag:z,businessName:a.businessName,businessType:a.businessType,businessDescription:a.businessDescription,founderPath:a.founderPath,founderFocus:a.founderFocus,agents:q})})).ok)throw new Error("Could not save config");return n(J=>({...J,loading:!1,completed:!0})),null}catch(Q){const J=Q instanceof Error?Q.message:"Something went wrong";return n(ee=>({...ee,loading:!1,error:J})),J}},[a.selectedModel,a.businessName,a.businessType,a.businessDescription,a.founderPath,a.founderFocus,a.presets,a.selectedAgentIds]);return{...a,fetchStatus:s,goToModel:o,selectModel:u,startDownload:h,skipDownload:p,setBusinessName:x,setBusinessType:g,setBusinessDescription:y,goToBusinessInfo:b,setFounderPath:j,setFounderFocus:S,goToFounderStage:w,goToAgentDiscovery:N,sendChatMessage:C,goToAgentSelection:T,toggleAgent:D,goToReady:Y,completeOnboarding:F}}function sA({onGetStarted:a}){return r.jsx("div",{"data-testid":"onboarding-splash",className:"min-h-screen bg-void flex flex-col items-center justify-center p-4",children:r.jsxs("div",{className:"max-w-md w-full text-center space-y-8",children:[r.jsx("div",{children:r.jsx("h1",{className:"text-5xl font-bold tracking-tight",children:r.jsx("span",{className:"text-cyber",children:"ohwow"})})}),r.jsxs("div",{className:"space-y-3",children:[r.jsx("p",{className:"text-xl text-white font-medium",children:"Your AI team, running on your machine."}),r.jsx("p",{className:"text-sm text-muted",children:"No account needed. No cloud required."})]}),r.jsx("button",{"data-testid":"onboarding-get-started",onClick:a,className:"w-full bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-6 py-3.5 text-base font-medium hover:bg-cyber/20 transition-colors",children:"Get Started"}),r.jsx("p",{className:"text-xs text-muted/60",children:"Free forever for local use"})]})})}function iA({status:a,selectedModel:n,loading:s,downloading:o,downloadPercent:u,downloadMessage:f,setupMessage:h,error:p,onSelectModel:x,onDownload:g,onSkip:y}){const[b,j]=c.useState(!1);if(s||!a)return r.jsx("div",{"data-testid":"onboarding-model-loading",className:"min-h-screen bg-void flex items-center justify-center p-4",children:r.jsxs("div",{className:"text-center space-y-4",children:[r.jsx("div",{className:"w-8 h-8 border-2 border-cyber/30 border-t-cyber rounded-full animate-spin mx-auto"}),r.jsx("p",{className:"text-sm text-muted",children:"Detecting your hardware..."})]})});const S=n?Math.ceil(n.sizeGB*1024/50/60*8):null;return r.jsx("div",{"data-testid":"onboarding-model",className:"min-h-screen bg-void flex flex-col items-center justify-center p-4",children:r.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[r.jsx("div",{className:"text-center space-y-2",children:r.jsx("h2",{className:"text-2xl font-bold text-white",children:"Let's download your first AI model"})}),r.jsx("div",{"data-testid":"onboarding-device-summary",className:"bg-panel border border-border rounded-lg px-4 py-3 text-sm text-muted",children:a.deviceSummary}),n&&!o&&r.jsxs("div",{"data-testid":"onboarding-model-hero",className:"bg-panel border border-cyber/20 rounded-lg p-5 space-y-3",children:[r.jsx("div",{className:"flex items-start justify-between",children:r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("h3",{className:"text-lg font-semibold text-white",children:n.label}),n.recommended&&r.jsx("span",{className:"text-[10px] uppercase tracking-wider bg-cyber/10 text-cyber px-2 py-0.5 rounded-full border border-cyber/20",children:"Best for your machine"})]}),r.jsx("p",{className:"text-sm text-muted mt-1",children:n.description})]})}),r.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted",children:[r.jsxs("span",{children:[n.sizeGB," GB download"]}),S&&r.jsxs("span",{children:["~",S," min"]}),r.jsx("span",{children:n.features.join(", ")})]})]}),o&&r.jsxs("div",{"data-testid":"onboarding-download-progress",className:"bg-panel border border-border rounded-lg p-5 space-y-4",children:[h&&r.jsx("p",{className:"text-sm text-muted",children:h}),!h&&r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex items-center justify-between text-sm",children:[r.jsx("span",{className:"text-white",children:n==null?void 0:n.label}),r.jsxs("span",{className:"text-muted",children:[u,"%"]})]}),r.jsx("div",{className:"w-full bg-surface rounded-full h-2 overflow-hidden",children:r.jsx("div",{className:"bg-cyber h-full rounded-full transition-all duration-300",style:{width:`${u}%`}})}),r.jsx("p",{className:"text-xs text-muted truncate",children:f})]})]}),p&&r.jsx("div",{className:"bg-critical/10 border border-critical/20 rounded-lg px-4 py-3 text-sm text-critical",children:p}),!o&&r.jsxs("div",{className:"space-y-3",children:[r.jsx("button",{"data-testid":"onboarding-download-btn",onClick:g,disabled:!n,className:"w-full bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-6 py-3.5 text-base font-medium hover:bg-cyber/20 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Download"}),a.alternatives.length>0&&r.jsxs("div",{children:[r.jsx("button",{"data-testid":"onboarding-alternatives-toggle",onClick:()=>j(!b),className:"text-sm text-muted hover:text-white transition-colors",children:b?"Hide other options":"See other options"}),b&&r.jsx("div",{className:"mt-3 space-y-2",children:a.alternatives.map(w=>r.jsxs("button",{onClick:()=>x(w),className:`w-full text-left bg-panel border rounded-lg px-4 py-3 text-sm transition-colors ${(n==null?void 0:n.tag)===w.tag?"border-cyber/30 text-white":"border-border text-muted hover:border-border hover:text-white"}`,children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"font-medium",children:w.label}),r.jsxs("span",{className:"text-xs",children:[w.sizeGB," GB"]})]}),r.jsx("p",{className:"text-xs text-muted mt-0.5",children:w.description})]},w.tag))})]}),r.jsx("div",{className:"text-center",children:r.jsx("button",{"data-testid":"onboarding-skip-btn",onClick:y,className:"text-xs text-muted/60 hover:text-muted transition-colors",children:"Skip for now"})})]})]})})}const rA=[{id:"saas_startup",label:"SaaS Startup",tagline:"Ship faster with AI on your side"},{id:"ecommerce",label:"Ecommerce",tagline:"Sell more with less effort"},{id:"agency",label:"Agency",tagline:"Win more clients, deliver better work"},{id:"content_creator",label:"Content Creator",tagline:"Create more, manage less"},{id:"service_business",label:"Service Business",tagline:"Book more jobs, impress every client"},{id:"consulting",label:"Consulting",tagline:"Land engagements, deliver excellence"}];function oA({businessName:a,businessType:n,businessDescription:s,onChangeName:o,onChangeType:u,onChangeDescription:f,onContinue:h,onBack:p}){const x=a.trim().length>0&&n;return r.jsx("div",{"data-testid":"onboarding-business-info",className:"min-h-screen bg-void flex flex-col items-center justify-center p-4",children:r.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[r.jsxs("div",{className:"text-center space-y-2",children:[r.jsx("p",{className:"text-xs text-muted uppercase tracking-wider",children:"Step 3 of 7"}),r.jsx("h2",{className:"text-2xl font-bold text-white",children:"Tell us about your business"}),r.jsx("p",{className:"text-sm text-muted",children:"This helps us recommend the right AI agents for you."})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm text-muted mb-1.5",children:"Business name"}),r.jsx("input",{"data-testid":"onboarding-business-name",type:"text",value:a,onChange:g=>o(g.target.value),onFocus:()=>setFocusedField("name"),placeholder:"e.g. Acme Inc",className:"w-full bg-panel border border-border rounded-lg px-4 py-3 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber",autoFocus:!0})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm text-muted mb-1.5",children:"Business type"}),r.jsx("div",{className:"grid grid-cols-2 gap-2",children:rA.map(g=>r.jsxs("button",{"data-testid":`onboarding-btype-${g.id}`,onClick:()=>{u(g.id),setFocusedField("type")},className:`text-left px-3 py-2.5 rounded-lg border text-sm transition-colors ${n===g.id?"border-cyber bg-cyber/10 text-white":"border-border bg-panel text-muted hover:border-cyber/30 hover:text-white"}`,children:[r.jsx("span",{className:"font-medium block",children:g.label}),r.jsx("span",{className:"text-xs text-muted",children:g.tagline})]},g.id))})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm text-muted mb-1.5",children:"What does your business do? (optional)"}),r.jsx("textarea",{"data-testid":"onboarding-business-desc",value:s,onChange:g=>f(g.target.value),onFocus:()=>setFocusedField("description"),placeholder:"e.g. We help small businesses automate their marketing",rows:2,className:"w-full bg-panel border border-border rounded-lg px-4 py-3 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber resize-none"})]}),r.jsxs("div",{className:"flex gap-3",children:[r.jsx("button",{onClick:p,className:"px-4 py-2.5 text-sm text-muted hover:text-white transition-colors",children:"Back"}),r.jsx("button",{"data-testid":"onboarding-business-continue",onClick:h,disabled:!x,className:"flex-1 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-cyber/20 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:"Continue"})]})]})})}const cA=[{id:"exploring",label:"Exploring ideas",description:"Still figuring out what to build",icon:"🔍"},{id:"just_starting",label:"Just starting",description:"Building the first version",icon:"🚀"},{id:"no_revenue",label:"Pre-revenue",description:"Launched but not making money yet",icon:"📈"},{id:"making_money",label:"Making money",description:"Revenue is coming in",icon:"💰"}];function uA({founderPath:a,founderFocus:n,onChangePath:s,onChangeFocus:o,onContinue:u,onBack:f}){const h=a.length>0;return r.jsx("div",{"data-testid":"onboarding-founder-stage",className:"min-h-screen bg-void flex flex-col items-center justify-center p-4",children:r.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[r.jsxs("div",{className:"text-center space-y-2",children:[r.jsx("p",{className:"text-xs text-muted uppercase tracking-wider",children:"Step 4 of 7"}),r.jsx("h2",{className:"text-2xl font-bold text-white",children:"Where are you in your journey?"}),r.jsx("p",{className:"text-sm text-muted",children:"This helps us prioritize which agents to recommend."})]}),r.jsx("div",{className:"space-y-2",children:cA.map(p=>r.jsxs("button",{"data-testid":`onboarding-path-${p.id}`,onClick:()=>s(p.id),className:`w-full text-left px-4 py-3 rounded-lg border transition-colors flex items-center gap-3 ${a===p.id?"border-cyber bg-cyber/10 text-white":"border-border bg-panel text-muted hover:border-cyber/30 hover:text-white"}`,children:[r.jsx("span",{className:"text-lg",children:p.icon}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium block text-sm",children:p.label}),r.jsx("span",{className:"text-xs text-muted",children:p.description})]})]},p.id))}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm text-muted mb-1.5",children:"What are you focused on right now? (optional)"}),r.jsx("input",{"data-testid":"onboarding-founder-focus",type:"text",value:n,onChange:p=>o(p.target.value),placeholder:"e.g. Getting my first 10 customers",className:"w-full bg-panel border border-border rounded-lg px-4 py-3 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),r.jsxs("div",{className:"flex gap-3",children:[r.jsx("button",{onClick:f,className:"px-4 py-2.5 text-sm text-muted hover:text-white transition-colors",children:"Back"}),r.jsx("button",{"data-testid":"onboarding-founder-continue",onClick:u,disabled:!h,className:"flex-1 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-cyber/20 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:"Continue"})]})]})})}function dA({modelAvailable:a,chatMessages:n,presets:s,onSendMessage:o,onContinue:u,onBack:f,streaming:h}){const[p,x]=c.useState(""),g=c.useRef(null);c.useEffect(()=>{var b;(b=g.current)==null||b.scrollTo({top:g.current.scrollHeight,behavior:"smooth"})},[n]);const y=()=>{!p.trim()||h||(o(p.trim()),x(""))};return a?r.jsx("div",{"data-testid":"onboarding-agent-discovery",className:"min-h-screen bg-void flex flex-col items-center justify-center p-4",children:r.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[r.jsxs("div",{className:"text-center space-y-2",children:[r.jsx("p",{className:"text-xs text-muted uppercase tracking-wider",children:"Step 5 of 7"}),r.jsx("h2",{className:"text-2xl font-bold text-white",children:"Meet your AI advisor"}),r.jsx("p",{className:"text-sm text-muted",children:"Chat to get personalized agent recommendations."})]}),r.jsxs("div",{ref:g,className:"bg-panel border border-border rounded-lg p-4 space-y-3 max-h-64 overflow-y-auto",children:[n.map((b,j)=>r.jsx("div",{className:`${b.role==="user"?"text-right":""}`,children:r.jsx("div",{className:`inline-block rounded-lg px-3 py-2 text-sm max-w-[80%] ${b.role==="user"?"bg-cyber/10 border border-cyber/20 text-white":"bg-terminal border border-border text-white"}`,children:r.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:b.content})})},j)),h&&r.jsx("div",{className:"text-muted text-sm animate-pulse",children:"Thinking..."})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx("input",{"data-testid":"onboarding-chat-input",type:"text",value:p,onChange:b=>x(b.target.value),onKeyDown:b=>{b.key==="Enter"&&y()},placeholder:"Tell the AI about your priorities...",disabled:h,className:"flex-1 bg-panel border border-border rounded-lg px-4 py-3 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber disabled:opacity-50"}),r.jsx("button",{onClick:y,disabled:h||!p.trim(),className:"bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-4 text-sm hover:bg-cyber/20 transition-colors disabled:opacity-40",children:"Send"})]}),r.jsxs("div",{className:"flex gap-3",children:[r.jsx("button",{onClick:f,className:"px-4 py-2.5 text-sm text-muted hover:text-white transition-colors",children:"Back"}),r.jsx("button",{"data-testid":"onboarding-discovery-continue",onClick:u,className:"flex-1 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-cyber/20 transition-colors",children:n.length>=4?"Continue to selection":"Skip to selection"})]})]})}):r.jsx("div",{"data-testid":"onboarding-agent-discovery",className:"min-h-screen bg-void flex flex-col items-center justify-center p-4",children:r.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[r.jsxs("div",{className:"text-center space-y-2",children:[r.jsx("p",{className:"text-xs text-muted uppercase tracking-wider",children:"Step 5 of 7"}),r.jsx("h2",{className:"text-2xl font-bold text-white",children:"Your recommended agents"}),r.jsx("p",{className:"text-sm text-muted",children:"Based on your business type. You can adjust on the next screen."})]}),r.jsx("div",{className:"space-y-2",children:s.map(b=>r.jsxs("div",{className:`px-4 py-3 rounded-lg border ${b.recommended?"border-cyber/30 bg-cyber/5":"border-border bg-panel"}`,children:[r.jsxs("div",{className:"flex items-center gap-2",children:[b.recommended&&r.jsx("span",{className:"text-cyber text-xs",children:"★"}),r.jsx("span",{className:"font-medium text-sm text-white",children:b.name}),r.jsx("span",{className:"text-xs text-muted",children:b.role})]}),r.jsx("p",{className:"text-xs text-muted mt-1",children:b.description})]},b.id))}),r.jsxs("div",{className:"flex gap-3",children:[r.jsx("button",{onClick:f,className:"px-4 py-2.5 text-sm text-muted hover:text-white transition-colors",children:"Back"}),r.jsx("button",{"data-testid":"onboarding-discovery-continue",onClick:u,className:"flex-1 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-cyber/20 transition-colors",children:"Continue to selection"})]})]})})}const fA={web_research:"Web Research",deep_research:"Deep Research",ocr:"OCR",local_crm:"CRM"};function mA({presets:a,selectedIds:n,onToggle:s,onContinue:o,onBack:u}){return r.jsx("div",{"data-testid":"onboarding-agent-selection",className:"min-h-screen bg-void flex flex-col items-center justify-center p-4",children:r.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[r.jsxs("div",{className:"text-center space-y-2",children:[r.jsx("p",{className:"text-xs text-muted uppercase tracking-wider",children:"Step 6 of 7"}),r.jsx("h2",{className:"text-2xl font-bold text-white",children:"Choose your agents"}),r.jsx("p",{className:"text-sm text-muted",children:n.size>0?`${n.size} agent${n.size===1?"":"s"} selected`:"Select the agents you want to create"})]}),r.jsx("div",{className:"space-y-2 max-h-[400px] overflow-y-auto",children:a.map(f=>{const h=n.has(f.id);return r.jsx("button",{"data-testid":`onboarding-agent-${f.id}`,onClick:()=>s(f.id),className:`w-full text-left px-4 py-3 rounded-lg border transition-colors ${h?"border-cyber bg-cyber/10":"border-border bg-panel hover:border-cyber/30"}`,children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:`mt-0.5 w-4 h-4 rounded border flex items-center justify-center shrink-0 ${h?"bg-cyber border-cyber":"border-muted/30"}`,children:h&&r.jsx("svg",{className:"w-2.5 h-2.5 text-void",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"font-medium text-sm text-white",children:f.name}),f.recommended&&r.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-cyber/10 text-cyber border border-cyber/20",children:"Recommended"})]}),r.jsx("p",{className:"text-xs text-muted mt-0.5",children:f.role}),r.jsx("p",{className:"text-xs text-muted/70 mt-1",children:f.description}),f.tools.length>0&&r.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:f.tools.map(p=>r.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-panel border border-border text-muted",children:fA[p]||p},p))})]})]})},f.id)})}),r.jsxs("div",{className:"flex gap-3",children:[r.jsx("button",{onClick:u,className:"px-4 py-2.5 text-sm text-muted hover:text-white transition-colors",children:"Back"}),r.jsxs("button",{"data-testid":"onboarding-selection-continue",onClick:o,disabled:n.size===0,className:"flex-1 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-cyber/20 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:["Create ",n.size," agent",n.size===1?"":"s"]})]})]})})}function hA({selectedModel:a,loading:n,error:s,onLaunch:o,businessName:u,agentCount:f}){return r.jsx("div",{"data-testid":"onboarding-ready",className:"min-h-screen bg-void flex flex-col items-center justify-center p-4",children:r.jsxs("div",{className:"max-w-md w-full text-center space-y-8",children:[r.jsx("div",{className:"space-y-2",children:r.jsx("p",{className:"text-xs text-muted uppercase tracking-wider",children:"Step 7 of 7"})}),r.jsxs("div",{className:"space-y-3",children:[r.jsx("div",{className:"w-12 h-12 rounded-full bg-matrix/10 border border-matrix/20 flex items-center justify-center mx-auto",children:r.jsx("svg",{className:"w-6 h-6 text-matrix",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),r.jsx("h2",{className:"text-2xl font-bold text-white",children:"You're all set."})]}),r.jsxs("div",{className:"bg-panel border border-border rounded-lg px-4 py-3 text-left space-y-2",children:[u&&r.jsxs("div",{className:"flex justify-between text-sm",children:[r.jsx("span",{className:"text-muted",children:"Business"}),r.jsx("span",{className:"text-white font-medium",children:u})]}),r.jsxs("div",{className:"flex justify-between text-sm",children:[r.jsx("span",{className:"text-muted",children:"Model"}),r.jsx("span",{className:"text-white",children:a?a.label:"None (add later in Settings)"})]}),f!==void 0&&f>0&&r.jsxs("div",{className:"flex justify-between text-sm",children:[r.jsx("span",{className:"text-muted",children:"Agents"}),r.jsxs("span",{className:"text-white",children:[f," agent",f===1?"":"s"," ready to go"]})]})]}),s&&r.jsx("div",{className:"bg-critical/10 border border-critical/20 rounded-lg px-4 py-3 text-sm text-critical",children:s}),r.jsx("button",{"data-testid":"onboarding-launch-btn",onClick:o,disabled:n,className:"w-full bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-6 py-3.5 text-base font-medium hover:bg-cyber/20 transition-colors disabled:opacity-50",children:n?"Saving...":"Open Dashboard"})]})})}function pA({sessionToken:a}){var o;const n=Dp();c.useEffect(()=>{n.screen==="model"&&!n.status&&n.fetchStatus()},[n.screen]);const s=async()=>{await n.completeOnboarding()||(a&&hu(a),window.location.href="/ui/")};switch(n.screen){case"splash":return r.jsx(sA,{onGetStarted:n.goToModel});case"model":return r.jsx(iA,{status:n.status,selectedModel:n.selectedModel,loading:n.loading,downloading:n.downloading,downloadPercent:n.downloadPercent,downloadMessage:n.downloadMessage,setupMessage:n.setupMessage,error:n.error,estimatedMinutes:((o=n.status)==null?void 0:o.estimatedMinutes)??null,onSelectModel:n.selectModel,onDownload:n.startDownload,onSkip:n.skipDownload});case"business_info":return r.jsx(oA,{businessName:n.businessName,businessType:n.businessType,businessDescription:n.businessDescription,onChangeName:n.setBusinessName,onChangeType:n.setBusinessType,onChangeDescription:n.setBusinessDescription,onContinue:n.goToFounderStage,onBack:n.goToModel});case"founder_stage":return r.jsx(uA,{founderPath:n.founderPath,founderFocus:n.founderFocus,onChangePath:n.setFounderPath,onChangeFocus:n.setFounderFocus,onContinue:n.goToAgentDiscovery,onBack:n.goToBusinessInfo});case"agent_discovery":return r.jsx(dA,{modelAvailable:n.modelAvailable,businessType:n.businessType,founderPath:n.founderPath,founderFocus:n.founderFocus,chatMessages:n.chatMessages,presets:n.presets,onSendMessage:n.sendChatMessage,onContinue:n.goToAgentSelection,onBack:n.goToFounderStage,streaming:n.chatStreaming});case"agent_selection":return r.jsx(mA,{presets:n.presets,selectedIds:n.selectedAgentIds,onToggle:n.toggleAgent,onContinue:n.goToReady,onBack:n.goToAgentDiscovery});case"ready":return r.jsx(hA,{selectedModel:n.selectedModel,loading:n.loading,error:n.error,onLaunch:s,businessName:n.businessName,agentCount:n.selectedAgentIds.size})}}function kr({label:a,value:n,subtitle:s,color:o="text-white"}){return r.jsxs("div",{className:"bg-panel border border-border rounded-lg p-4",children:[r.jsx("p",{className:"text-xs text-muted uppercase tracking-wider",children:a}),r.jsx("p",{className:`text-2xl font-bold mt-1 ${o}`,children:n}),s&&r.jsx("p",{className:"text-xs text-muted mt-0.5",children:s})]})}const xA={idle:"bg-panel text-muted",working:"bg-cyber/15 text-cyber",completed:"bg-matrix/15 text-matrix",approved:"bg-matrix/15 text-matrix",in_progress:"bg-cyber/15 text-cyber",queued:"bg-warning/15 text-warning",needs_approval:"bg-wealth/15 text-wealth",failed:"bg-critical/15 text-critical",rejected:"bg-critical/15 text-critical",active:"bg-matrix/15 text-matrix",paused:"bg-warning/15 text-warning",disabled:"bg-panel text-muted",draft:"bg-warning/15 text-warning",archived:"bg-panel text-muted",executing:"bg-cyber/15 text-cyber",pending:"bg-warning/15 text-warning",error:"bg-critical/15 text-critical",suspended:"bg-warning/15 text-warning",disconnected:"bg-panel text-muted",skipped:"bg-panel text-muted",read_only:"bg-panel text-muted",processed:"bg-matrix/15 text-matrix"};function it({status:a}){const n=xA[a]||"bg-panel text-muted",s=a.replace(/_/g," ");return r.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium capitalize ${n}`,children:s})}function Fu({className:a=""}){return r.jsx("div",{className:`animate-pulse bg-panel rounded ${a}`})}function _r(){return r.jsxs("div",{className:"bg-panel border border-border rounded-lg p-4 space-y-2",children:[r.jsx(Fu,{className:"h-3 w-20"}),r.jsx(Fu,{className:"h-7 w-16"})]})}function at({count:a=5}){return r.jsx("div",{className:"space-y-2",children:Array.from({length:a}).map((n,s)=>r.jsx(Fu,{className:"h-12 w-full"},s))})}function nt({title:a,subtitle:n,action:s}){return r.jsxs("div",{className:"flex items-center justify-between mb-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-xl font-bold",children:a}),n&&r.jsx("p",{className:"text-sm text-muted mt-0.5",children:n})]}),s]})}function gA(a){return a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e3?`${(a/1e3).toFixed(0)}K`:String(a)}function bA(){const a=va(["task:started","task:completed","task:failed"]),{data:n,loading:s}=xe("/api/system/stats",[a]),{data:o}=xe("/api/agents",[a]),{data:u}=xe("/api/tasks?limit=5",[a]);return r.jsxs("div",{className:"p-6 max-w-5xl",children:[r.jsx(nt,{title:"Dashboard",subtitle:"Runtime overview"}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-8",children:s?r.jsxs(r.Fragment,{children:[r.jsx(_r,{}),r.jsx(_r,{}),r.jsx(_r,{}),r.jsx(_r,{})]}):n?r.jsxs(r.Fragment,{children:[r.jsx(kr,{label:"Agents",value:n.totalAgents,color:"text-cyber"}),r.jsx(kr,{label:"Tasks",value:n.totalTasks,subtitle:`${n.activeTasks} active`}),r.jsx(kr,{label:"Approvals",value:n.pendingApprovals,color:n.pendingApprovals>0?"text-wealth":"text-muted"}),r.jsx(kr,{label:"Tokens",value:gA(n.totalTokens),subtitle:`$${(n.totalCostCents/100).toFixed(2)}`})]}):null}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider",children:"Agents"}),r.jsx(ht,{to:"/agents",className:"text-xs text-cyber hover:underline",children:"View all"})]}),r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:o!=null&&o.length?o.slice(0,5).map(f=>r.jsxs(ht,{to:`/agents/${f.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-surface/50 transition-colors",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:f.name}),r.jsx("p",{className:"text-xs text-muted",children:f.role})]}),r.jsx(it,{status:f.status})]},f.id)):r.jsx(at,{count:3})})]}),r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider",children:"Recent Tasks"}),r.jsx(ht,{to:"/tasks",className:"text-xs text-cyber hover:underline",children:"View all"})]}),r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:u!=null&&u.length?u.map(f=>r.jsxs(ht,{to:`/tasks/${f.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-surface/50 transition-colors",children:[r.jsxs("div",{className:"min-w-0 mr-3",children:[r.jsx("p",{className:"text-sm font-medium truncate",children:f.title}),r.jsx("p",{className:"text-xs text-muted",children:new Date(f.created_at).toLocaleString()})]}),r.jsx(it,{status:f.status})]},f.id)):r.jsx(at,{count:3})})]})]})]})}function jt({icon:a,title:n,description:s,action:o}){return r.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[a&&r.jsx("div",{className:"text-muted mb-3",children:a}),r.jsx("p",{className:"text-sm font-medium text-platinum",children:n}),s&&r.jsx("p",{className:"text-xs text-muted mt-1 max-w-xs",children:s}),o&&r.jsx("div",{className:"mt-4",children:o})]})}function yA(a){if(typeof a=="string")try{return JSON.parse(a)}catch{return{}}return a||{}}function vA(){const a=va(["task:started","task:completed"]),{data:n,loading:s,refetch:o}=xe("/api/agents",[a]),{tier:u}=$l(),[f,h]=c.useState(!1),x=u==="free"&&((n==null?void 0:n.length)??0)>=1;return r.jsxs("div",{className:"p-6 max-w-4xl",children:[r.jsx(nt,{title:"Agents",subtitle:"Your AI team",action:!s&&!x?r.jsxs("button",{onClick:()=>h(!0),className:"flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium bg-cyan-600 hover:bg-cyan-500 text-white rounded-md transition-colors",children:[r.jsx(Ut,{size:14,weight:"bold"}),"Create Agent"]}):x?r.jsx("span",{className:"text-xs text-muted",children:"Free tier: 1 agent max"}):null}),s?r.jsx(at,{count:4}):n!=null&&n.length?r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:n.map(g=>{const y=yA(g.stats);return r.jsxs(ht,{to:`/agents/${g.id}`,className:"flex items-center justify-between px-4 py-4 hover:bg-surface/50 transition-colors",children:[r.jsxs("div",{className:"min-w-0 mr-4",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("p",{className:"text-sm font-medium",children:g.name}),r.jsx(it,{status:g.status})]}),r.jsx("p",{className:"text-xs text-muted mt-0.5",children:g.role})]}),r.jsxs("div",{className:"text-right text-xs text-muted shrink-0",children:[r.jsxs("p",{children:[y.total_tasks||0," tasks"]}),y.cost_cents>0&&r.jsxs("p",{children:["$",(y.cost_cents/100).toFixed(2)]})]})]},g.id)})}):r.jsx(jt,{icon:r.jsx(Np,{size:32}),title:"No agents yet",description:"Create your first agent to get started.",action:r.jsxs("button",{onClick:()=>h(!0),className:"flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium bg-cyan-600 hover:bg-cyan-500 text-white rounded-md transition-colors",children:[r.jsx(Ut,{size:14,weight:"bold"}),"Create Agent"]})}),f&&r.jsx(jA,{onClose:()=>h(!1),onCreated:()=>{h(!1),o()}})]})}function jA({onClose:a,onCreated:n}){const[s,o]=c.useState(""),[u,f]=c.useState(""),[h,p]=c.useState(""),[x,g]=c.useState(""),[y,b]=c.useState(!1),[j,S]=c.useState(""),w=async N=>{if(N.preventDefault(),!s.trim()||!u.trim()||!h.trim()){S("Name, role, and system prompt are required.");return}b(!0),S("");try{await pe("/api/agents",{method:"POST",body:JSON.stringify({name:s.trim(),role:u.trim(),system_prompt:h.trim(),description:x.trim()||null})}),n()}catch(E){S(E instanceof Error?E.message:"Something went wrong. Try again?")}finally{b(!1)}};return r.jsx("div",{className:"fixed inset-0 bg-void/80 flex items-center justify-center z-50",onClick:a,children:r.jsxs("div",{className:"bg-panel border border-border rounded-lg w-full max-w-md p-6",onClick:N=>N.stopPropagation(),children:[r.jsx("h2",{className:"text-lg font-bold mb-4",children:"Create Agent"}),r.jsxs("form",{onSubmit:w,className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs text-muted mb-1",children:"Name"}),r.jsx("input",{type:"text",value:s,onChange:N=>o(N.target.value),placeholder:"e.g. Scout",className:"w-full px-3 py-2 text-sm bg-surface border border-border rounded-md focus:outline-none focus:border-cyan-500",autoFocus:!0})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs text-muted mb-1",children:"Role"}),r.jsx("input",{type:"text",value:u,onChange:N=>f(N.target.value),placeholder:"e.g. Sales Development",className:"w-full px-3 py-2 text-sm bg-surface border border-border rounded-md focus:outline-none focus:border-cyan-500"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs text-muted mb-1",children:"System Prompt"}),r.jsx("textarea",{value:h,onChange:N=>p(N.target.value),placeholder:"Describe what this agent does and how it should behave...",rows:4,className:"w-full px-3 py-2 text-sm bg-surface border border-border rounded-md focus:outline-none focus:border-cyan-500 resize-none"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs text-muted mb-1",children:"Description (optional)"}),r.jsx("input",{type:"text",value:x,onChange:N=>g(N.target.value),placeholder:"Short description for the agent list",className:"w-full px-3 py-2 text-sm bg-surface border border-border rounded-md focus:outline-none focus:border-cyan-500"})]}),j&&r.jsx("p",{className:"text-xs text-red-400",children:j}),r.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[r.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-sm text-muted hover:text-platinum transition-colors",children:"Cancel"}),r.jsx("button",{type:"submit",disabled:y,className:"px-4 py-1.5 text-sm font-medium bg-cyan-600 hover:bg-cyan-500 disabled:opacity-50 text-white rounded-md transition-colors",children:y?"Creating...":"Create"})]})]})]})})}function AA(a){const n=Date.now()-new Date(a).getTime(),s=Math.floor(n/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const o=Math.floor(s/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function SA(){var le;const{id:a}=uo(),n=va(["task:started","task:completed","task:failed"]),{data:s,loading:o,refetch:u}=xe(a?`/api/agents/${a}`:null,[n]),{data:f}=xe(a?`/api/agents/${a}/memory`:null),{data:h}=xe(a?`/api/tasks?agentId=${a}&limit=50`:null,[n]),[p,x]=c.useState("info"),[g,y]=c.useState(!1),[b,j]=c.useState([]),[S,w]=c.useState(!1),[N,E]=c.useState(!1),[C,T]=c.useState([]),[D,Y]=c.useState(!1);c.useEffect(()=>{pe("/api/voice/health").then(()=>(y(!0),pe("/api/voice/profiles"))).then(K=>j(K.data||[])).catch(()=>y(!1))},[]);const F=c.useMemo(()=>s?typeof s.config=="string"?JSON.parse(s.config):s.config||{}:{},[s]),L=c.useMemo(()=>s?typeof s.stats=="string"?JSON.parse(s.stats):s.stats||{}:{},[s]),z=c.useMemo(()=>[{key:"model",label:"Model",value:String(F.model||"claude-sonnet-4-5")},{key:"temperature",label:"Temperature",value:String(F.temperature??"0.7")},{key:"max_tokens",label:"Max tokens",value:String(F.max_tokens||"4096")},{key:"requires_approval",label:"Requires approval",value:String(F.requires_approval??"no")},{key:"web_search",label:"Web search",value:String(F.web_search??"no")}],[F]),q=c.useCallback(async K=>{if(a){w(!0);try{await pe(`/api/agents/${a}`,{method:"PATCH",body:JSON.stringify({voice_profile_id:K||null})}),u()}catch{}finally{w(!1)}}},[a,u]),Q=c.useCallback(async()=>{if(!a||!s)return;const K=s.status==="paused"?"idle":"paused";try{await pe(`/api/agents/${a}`,{method:"PATCH",body:JSON.stringify({status:K})}),u()}catch{}},[a,s,u]),J=c.useCallback(()=>{T(z.map(K=>({...K}))),E(!0)},[z]),ee=c.useCallback(async()=>{if(a){Y(!0);try{const K={};for(const ne of C)ne.value==="true"||ne.value==="yes"?K[ne.key]=!0:ne.value==="false"||ne.value==="no"?K[ne.key]=!1:!isNaN(Number(ne.value))&&ne.value!==""?K[ne.key]=Number(ne.value):K[ne.key]=ne.value;await pe(`/api/agents/${a}`,{method:"PATCH",body:JSON.stringify({config:K})}),E(!1),u()}catch{}finally{Y(!1)}}},[a,C,u]);if(o)return r.jsx("div",{className:"p-6",children:r.jsx(at,{count:4})});if(!s)return r.jsx("div",{className:"p-6 text-muted",children:"Agent not found"});const ue=[{key:"info",label:"Info",icon:r.jsx(Yj,{size:14})},{key:"tasks",label:"Tasks",icon:r.jsx(li,{size:14}),count:h==null?void 0:h.length},{key:"prompt",label:"Prompt",icon:r.jsx(m8,{size:14})},{key:"config",label:"Config",icon:r.jsx(Ou,{size:14})}];return r.jsxs("div",{className:"p-6 max-w-4xl",children:[r.jsxs(ht,{to:"/agents",className:"inline-flex items-center gap-1 text-xs text-muted hover:text-white mb-4",children:[r.jsx(fi,{size:14})," Back to agents"]}),r.jsx(nt,{title:s.name,subtitle:s.role,action:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("button",{onClick:Q,className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg border transition-colors ${s.status==="paused"?"bg-matrix/10 border-matrix/30 text-matrix hover:bg-matrix/20":"bg-warning/10 border-warning/30 text-warning hover:bg-warning/20"}`,children:[s.status==="paused"?r.jsx(jp,{size:14}):r.jsx($j,{size:14}),s.status==="paused"?"Resume":"Pause"]}),r.jsx(it,{status:s.status})]})}),s.description&&r.jsx("p",{className:"text-sm text-muted mb-4",children:s.description}),r.jsx("div",{className:"flex gap-1 mb-6 border-b border-border",children:ue.map(K=>r.jsxs("button",{onClick:()=>{x(K.key),E(!1)},className:`flex items-center gap-1.5 px-3 py-2 text-xs font-medium border-b-2 transition-colors ${p===K.key?"border-cyber text-white":"border-transparent text-muted hover:text-white"}`,children:[K.icon,K.label,K.count!==void 0&&r.jsxs("span",{className:"text-muted",children:["(",K.count,")"]})]},K.key))}),p==="info"&&r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[r.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[r.jsx("p",{className:"text-xs text-muted",children:"Tasks"}),r.jsx("p",{className:"text-lg font-bold",children:L.total_tasks||0})]}),r.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[r.jsx("p",{className:"text-xs text-muted",children:"Tokens"}),r.jsx("p",{className:"text-lg font-bold",children:((le=L.tokens_used)==null?void 0:le.toLocaleString())||0})]}),r.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[r.jsx("p",{className:"text-xs text-muted",children:"Cost"}),r.jsxs("p",{className:"text-lg font-bold",children:["$",((L.cost_cents||0)/100).toFixed(2)]})]})]}),g&&r.jsxs(r.Fragment,{children:[r.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Voice"}),r.jsx("div",{className:"bg-panel border border-border rounded-lg px-4 py-3 mb-8",children:r.jsxs("label",{className:"flex items-center justify-between gap-4",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Voice profile"}),r.jsx("p",{className:"text-xs text-muted",children:"Choose which voice this agent uses during calls"})]}),r.jsxs("select",{value:s.voice_profile_id||"",onChange:K=>q(K.target.value),disabled:S,className:"bg-void border border-border rounded-md px-3 py-1.5 text-sm min-w-[180px]",children:[r.jsx("option",{value:"",children:"Default voice"}),b.map(K=>r.jsx("option",{value:K.id,children:K.name},K.id))]})]})})]}),r.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Memory"}),f!=null&&f.length?r.jsx("div",{className:"space-y-2",children:f.map(K=>r.jsxs("div",{className:"bg-panel border border-border rounded-lg px-4 py-3",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[r.jsx("span",{className:"text-xs text-cyber font-medium",children:K.memory_type}),r.jsx("span",{className:"text-xs text-muted",children:new Date(K.created_at).toLocaleDateString()})]}),r.jsx("p",{className:"text-sm",children:K.content})]},K.id))}):r.jsx("p",{className:"text-sm text-muted",children:"No memories yet. This agent will learn from completed tasks."})]}),p==="tasks"&&r.jsx(r.Fragment,{children:h!=null&&h.length?r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:h.map(K=>r.jsxs(ht,{to:`/tasks/${K.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-surface/50 transition-colors",children:[r.jsxs("div",{className:"min-w-0 mr-3",children:[r.jsx("p",{className:"text-sm font-medium truncate",children:K.title}),r.jsx("p",{className:"text-xs text-muted",children:AA(K.created_at)})]}),r.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[K.tokens_used?r.jsxs("span",{className:"text-xs text-muted",children:[K.tokens_used.toLocaleString()," tok"]}):null,K.priority&&r.jsx("span",{className:"text-xs text-warning",children:K.priority}),r.jsx(it,{status:K.status})]})]},K.id))}):r.jsx(jt,{icon:r.jsx(li,{size:32}),title:"No tasks yet",description:"Tasks will appear here as this agent works."})}),p==="prompt"&&r.jsx(r.Fragment,{children:s.system_prompt?r.jsxs("div",{className:"bg-panel border border-border rounded-lg p-4",children:[r.jsx("h3",{className:"text-xs font-medium text-muted uppercase tracking-wider mb-3",children:"System Prompt"}),r.jsx("pre",{className:"text-sm whitespace-pre-wrap break-words text-platinum/80 max-h-[60vh] overflow-y-auto leading-relaxed",children:s.system_prompt})]}):r.jsx(jt,{icon:r.jsx(m8,{size:32}),title:"No system prompt",description:"This agent uses the default system prompt."})}),p==="config"&&!N&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:z.map(K=>r.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[r.jsx("span",{className:"text-sm text-muted",children:K.label}),r.jsx("span",{className:"text-sm font-medium",children:K.value})]},K.key))}),r.jsx("div",{className:"mt-4",children:r.jsxs("button",{onClick:J,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-cyber/10 border border-cyber/30 text-cyber rounded-lg hover:bg-cyber/20 transition-colors",children:[r.jsx(Ou,{size:14})," Edit config"]})})]}),p==="config"&&N&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:C.map((K,ne)=>r.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[r.jsx("label",{className:"text-sm text-muted",htmlFor:`config-${K.key}`,children:K.label}),r.jsx("input",{id:`config-${K.key}`,value:K.value,onChange:O=>{const B=[...C];B[ne]={...K,value:O.target.value},T(B)},className:"bg-surface border border-border rounded px-3 py-1.5 text-sm text-white text-right w-48 focus:outline-none focus:border-cyber"})]},K.key))}),r.jsxs("div",{className:"flex gap-2 mt-4",children:[r.jsx("button",{onClick:()=>E(!1),className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),r.jsx("button",{onClick:ee,disabled:D,className:"px-3 py-1.5 text-xs font-medium bg-cyber/10 border border-cyber/30 text-cyber rounded-lg hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:D?"Saving...":"Save config"})]})]})]})}const EA=["all","queued","in_progress","completed","needs_approval","failed"],g8={urgent:0,high:1,normal:2,low:3},b8={in_progress:0,queued:1,needs_approval:2,completed:3,failed:4};function wA(){const a=va(["task:started","task:completed","task:failed"]),[n,s]=c.useState("all"),[o,u]=c.useState(!1),[f,h]=c.useState(""),[p,x]=c.useState("date"),g=n==="all"?"":`&status=${n}`,{data:y,loading:b,refetch:j}=xe(`/api/tasks?limit=50${g}`,[a,n]),{data:S}=xe("/api/agents"),w=c.useMemo(()=>{const E=new Map;return S==null||S.forEach(C=>E.set(C.id,C.name)),E},[S]),N=c.useMemo(()=>{if(!y)return[];let E=y;if(f.trim()){const C=f.toLowerCase();E=E.filter(T=>T.title.toLowerCase().includes(C)||(w.get(T.agent_id)||"").toLowerCase().includes(C))}return p==="priority"?E=[...E].sort((C,T)=>{const D=g8[C.priority||"normal"]??2,Y=g8[T.priority||"normal"]??2;return D-Y||new Date(T.created_at).getTime()-new Date(C.created_at).getTime()}):p==="status"&&(E=[...E].sort((C,T)=>{const D=b8[C.status]??5,Y=b8[T.status]??5;return D-Y||new Date(T.created_at).getTime()-new Date(C.created_at).getTime()})),E},[y,f,p,w]);return r.jsxs("div",{className:"p-6 max-w-4xl",children:[r.jsx(nt,{title:"Tasks",subtitle:"All agent tasks",action:r.jsxs("button",{onClick:()=>u(!o),className:"flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[r.jsx(Ut,{size:14})," New task"]})}),o&&(S!=null&&S.length)?r.jsx(NA,{agents:S,onClose:()=>u(!1),onSuccess:j}):null,r.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:EA.map(E=>r.jsx("button",{onClick:()=>s(E),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${n===E?"bg-panel text-white":"text-muted hover:text-white"}`,children:E.replace(/_/g," ")},E))}),r.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[r.jsxs("div",{className:"relative flex-1",children:[r.jsx(Xn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted"}),r.jsx("input",{value:f,onChange:E=>h(E.target.value),placeholder:"Search by title or agent...",className:"w-full bg-surface border border-border rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),r.jsxs("select",{value:p,onChange:E=>x(E.target.value),className:"bg-surface border border-border rounded-lg px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[r.jsx("option",{value:"date",children:"Sort by date"}),r.jsx("option",{value:"priority",children:"Sort by priority"}),r.jsx("option",{value:"status",children:"Sort by status"})]})]}),b?r.jsx(at,{count:5}):N.length?r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:N.map(E=>r.jsxs(ht,{to:`/tasks/${E.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-surface/50 transition-colors",children:[r.jsxs("div",{className:"min-w-0 mr-3",children:[r.jsx("p",{className:"text-sm font-medium truncate",children:E.title}),r.jsxs("p",{className:"text-xs text-muted",children:[w.get(E.agent_id)&&r.jsx("span",{className:"text-cyber",children:w.get(E.agent_id)}),w.get(E.agent_id)&&" · ",new Date(E.created_at).toLocaleString()]})]}),r.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[E.priority&&E.priority!=="normal"&&r.jsx("span",{className:"text-xs text-warning",children:E.priority}),E.tokens_used?r.jsxs("span",{className:"text-xs text-muted",children:[E.tokens_used.toLocaleString()," tok"]}):null,r.jsx(it,{status:E.status})]})]},E.id))}):r.jsx(jt,{icon:r.jsx(li,{size:32}),title:"Nothing here yet",description:f?`No tasks matching "${f}".`:n==="all"?"Tasks will appear as agents work.":`No ${n.replace(/_/g," ")} tasks.`})]})}function NA({agents:a,onClose:n,onSuccess:s}){var j;const[o,u]=c.useState(((j=a[0])==null?void 0:j.id)||""),[f,h]=c.useState(""),[p,x]=c.useState(""),[g,y]=c.useState(!1),b=async S=>{if(S.preventDefault(),!(!o||!f.trim())){y(!0);try{await pe("/api/tasks",{method:"POST",body:JSON.stringify({agentId:o,title:f.trim(),description:p.trim()||void 0})}),s(),n()}catch{}finally{y(!1)}}};return r.jsxs("form",{onSubmit:b,className:"bg-panel border border-border rounded-lg p-4 mb-4 space-y-3",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Agent"}),r.jsx("select",{value:o,onChange:S=>u(S.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:a.map(S=>r.jsx("option",{value:S.id,children:S.name},S.id))})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Title"}),r.jsx("input",{value:f,onChange:S=>h(S.target.value),placeholder:"What should this agent do?",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Description (optional)"}),r.jsx("textarea",{value:p,onChange:S=>x(S.target.value),rows:2,className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber resize-none"})]}),r.jsxs("div",{className:"flex gap-2 justify-end",children:[r.jsx("button",{type:"button",onClick:n,className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),r.jsx("button",{type:"submit",disabled:g||!f.trim(),className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:g?"Dispatching...":"Dispatch"})]})]})}function MA(){const{id:a}=uo(),{data:n,loading:s}=xe(a?`/api/tasks/${a}`:null),{data:o}=xe(a?`/api/tasks/${a}/messages`:null);return s?r.jsx("div",{className:"p-6",children:r.jsx(at,{count:6})}):n?r.jsxs("div",{className:"p-6 max-w-4xl",children:[r.jsxs(ht,{to:"/tasks",className:"inline-flex items-center gap-1 text-xs text-muted hover:text-white mb-4",children:[r.jsx(fi,{size:14})," Back to tasks"]}),r.jsx(nt,{title:n.title,action:r.jsx(it,{status:n.status})}),n.description&&r.jsx("p",{className:"text-sm text-muted mb-4",children:n.description}),r.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-6",children:[n.model_used&&r.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[r.jsx("p",{className:"text-xs text-muted",children:"Model"}),r.jsx("p",{className:"text-sm font-medium mt-0.5",children:n.model_used})]}),n.tokens_used!=null&&r.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[r.jsx("p",{className:"text-xs text-muted",children:"Tokens"}),r.jsx("p",{className:"text-sm font-medium mt-0.5",children:n.tokens_used.toLocaleString()})]}),n.cost_cents!=null&&r.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[r.jsx("p",{className:"text-xs text-muted",children:"Cost"}),r.jsxs("p",{className:"text-sm font-medium mt-0.5",children:["$",(n.cost_cents/100).toFixed(4)]})]}),n.duration_seconds!=null&&r.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[r.jsx("p",{className:"text-xs text-muted",children:"Duration"}),r.jsxs("p",{className:"text-sm font-medium mt-0.5",children:[n.duration_seconds,"s"]})]})]}),n.error_message&&r.jsx("div",{className:"bg-critical/10 border border-critical/30 rounded-lg p-4 mb-6",children:r.jsx("p",{className:"text-sm text-critical",children:n.error_message})}),n.output&&r.jsxs("div",{className:"mb-6",children:[r.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-2",children:"Output"}),r.jsx("div",{className:"bg-panel border border-border rounded-lg p-4",children:r.jsx("pre",{className:"text-sm whitespace-pre-wrap break-words",children:typeof n.output=="string"?n.output:JSON.stringify(n.output,null,2)})})]}),o&&o.length>0&&r.jsxs("div",{children:[r.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-2",children:"Conversation"}),r.jsx("div",{className:"space-y-2",children:o.map(u=>r.jsxs("div",{className:`rounded-lg p-3 text-sm ${u.role==="user"?"bg-cyber/5 border border-cyber/20":"bg-panel border border-border"}`,children:[r.jsx("p",{className:"text-xs text-muted mb-1 capitalize",children:u.role}),r.jsx("pre",{className:"whitespace-pre-wrap break-words",children:typeof u.content=="string"?u.content:JSON.stringify(u.content)})]},u.id))})]})]}):r.jsx("div",{className:"p-6 text-muted",children:"Task not found"})}function CA(a){if(!a)return null;if(typeof a=="string")try{return JSON.parse(a)}catch{return null}return a}function TA(){const a=va(["task:completed"]),{data:n,loading:s,refetch:o}=xe("/api/approvals",[a]),[u,f]=c.useState(null),[h,p]=c.useState(!1),[x,g]=c.useState(null),[y,b]=c.useState(""),j=c.useCallback(async E=>{f(E);try{await pe(`/api/approvals/${E}/approve`,{method:"POST"}),o()}catch{}finally{f(null)}},[o]),S=c.useCallback(async()=>{if(x){f(x.id);try{await pe(`/api/approvals/${x.id}/reject`,{method:"POST",body:JSON.stringify({reason:y.trim()||void 0})}),g(null),b(""),o()}catch{}finally{f(null)}}},[x,y,o]),w=c.useCallback(async()=>{if(n!=null&&n.length){p(!0);try{for(const E of n)await pe(`/api/approvals/${E.id}/approve`,{method:"POST"});o()}catch{}finally{p(!1)}}},[n,o]),N=c.useCallback(async()=>{if(n!=null&&n.length){p(!0);try{for(const E of n)await pe(`/api/approvals/${E.id}/reject`,{method:"POST"});o()}catch{}finally{p(!1)}}},[n,o]);return r.jsxs("div",{className:"p-6 max-w-4xl",children:[r.jsx(nt,{title:"Approvals",subtitle:"Tasks waiting for your review",action:n!=null&&n.length?r.jsxs("div",{className:"flex gap-2",children:[r.jsxs("button",{onClick:N,disabled:h,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-critical border border-critical/30 rounded-lg hover:bg-critical/10 disabled:opacity-50 transition-colors",children:[r.jsx(Pj,{size:14})," Reject all"]}),r.jsxs("button",{onClick:w,disabled:h,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-matrix bg-matrix/10 border border-matrix/30 rounded-lg hover:bg-matrix/20 disabled:opacity-50 transition-colors",children:[r.jsx(Oj,{size:14})," Approve all"]})]}):void 0}),s?r.jsx(at,{count:3}):n!=null&&n.length?r.jsx("div",{className:"space-y-3",children:n.map(E=>{const C=CA(E.deferred_action);return r.jsx("div",{className:"bg-panel border border-border rounded-lg p-4",children:r.jsxs("div",{className:"flex items-start justify-between gap-4",children:[r.jsxs("div",{className:"min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("p",{className:"text-sm font-medium",children:E.title}),C&&r.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs bg-warning/15 text-warning",children:[C.provider==="gmail"?r.jsx(Fj,{size:12}):r.jsx(so,{size:12}),C.type,C.params.to?` → ${C.params.to}`:""]})]}),r.jsx("p",{className:"text-xs text-muted mt-0.5",children:new Date(E.created_at).toLocaleString()}),E.output&&r.jsx("pre",{className:"text-xs text-muted mt-2 whitespace-pre-wrap break-words max-h-32 overflow-y-auto",children:typeof E.output=="string"?E.output.slice(0,500):JSON.stringify(E.output).slice(0,500)})]}),r.jsxs("div",{className:"flex gap-2 shrink-0",children:[r.jsx("button",{onClick:()=>{g(E),b("")},disabled:u===E.id||h,className:"px-3 py-1.5 text-xs text-critical border border-critical/30 rounded hover:bg-critical/10 transition-colors disabled:opacity-50",children:"Reject"}),r.jsx("button",{onClick:()=>j(E.id),disabled:u===E.id||h,className:"px-3 py-1.5 text-xs text-matrix bg-matrix/10 border border-matrix/30 rounded hover:bg-matrix/20 transition-colors disabled:opacity-50",children:"Approve"})]})]})},E.id)})}):r.jsx(jt,{icon:r.jsx(Cp,{size:32}),title:"All clear",description:"No tasks waiting for approval right now."}),x&&r.jsx("div",{className:"fixed inset-0 bg-void/80 flex items-center justify-center z-50 p-4",children:r.jsxs("div",{className:"bg-panel border border-border rounded-lg p-5 w-full max-w-md",children:[r.jsx("h3",{className:"text-sm font-semibold mb-1",children:"Reject task"}),r.jsxs("p",{className:"text-xs text-muted mb-4",children:["“",x.title,"”"]}),r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Reason (optional)"}),r.jsx("textarea",{value:y,onChange:E=>b(E.target.value),placeholder:"Why is this being rejected?",rows:3,autoFocus:!0,className:"w-full bg-surface border border-border rounded-lg px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-critical resize-none mb-4"}),r.jsxs("div",{className:"flex gap-2 justify-end",children:[r.jsx("button",{onClick:()=>g(null),className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),r.jsx("button",{onClick:S,disabled:u===x.id,className:"px-3 py-1.5 text-xs text-critical bg-critical/10 border border-critical/30 rounded hover:bg-critical/20 disabled:opacity-50 transition-colors",children:u===x.id?"Rejecting...":"Reject"})]})]})})]})}const VA={task_completed:"text-matrix",task_failed:"text-critical",task_started:"text-cyber",task_needs_approval:"text-wealth",schedule_fired:"text-warning",agent_created:"text-cyber",memory_extracted:"text-wealth"},HA=["all","task_completed","task_failed","task_started","task_needs_approval","schedule_fired","agent_created","memory_extracted"];function LA(a){if(a==="all")return null;const n=new Date;return a==="today"?(n.setHours(0,0,0,0),n):a==="7d"?(n.setDate(n.getDate()-7),n):(n.setDate(n.getDate()-30),n)}function ZA(a){const n=Date.now()-new Date(a).getTime(),s=Math.floor(n/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const o=Math.floor(s/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function DA(){const a=va(["task:started","task:completed","task:failed","memory:extracted"]),{data:n,loading:s}=xe("/api/activity",[a]),[o,u]=c.useState("all"),[f,h]=c.useState("all"),[p,x]=c.useState(""),g=c.useMemo(()=>{if(!n)return[];let y=n;o!=="all"&&(y=y.filter(j=>j.activity_type===o));const b=LA(f);if(b&&(y=y.filter(j=>new Date(j.created_at)>=b)),p.trim()){const j=p.toLowerCase();y=y.filter(S=>S.title.toLowerCase().includes(j)||(S.description||"").toLowerCase().includes(j))}return y},[n,o,f,p]);return r.jsxs("div",{className:"p-6 max-w-4xl",children:[r.jsx(nt,{title:"Activity",subtitle:"Recent events"}),r.jsx("div",{className:"flex gap-1 mb-3 overflow-x-auto",children:HA.map(y=>r.jsx("button",{onClick:()=>u(y),className:`px-3 py-1 rounded text-xs whitespace-nowrap transition-colors ${o===y?"bg-panel text-white":"text-muted hover:text-white"}`,children:y==="all"?"All":y.replace(/_/g," ")},y))}),r.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[r.jsx("div",{className:"flex gap-1",children:["all","today","7d","30d"].map(y=>r.jsx("button",{onClick:()=>h(y),className:`px-2.5 py-1 rounded text-xs transition-colors ${f===y?"bg-cyber/15 text-cyber":"text-muted hover:text-white"}`,children:y==="all"?"All time":y==="today"?"Today":y==="7d"?"7 days":"30 days"},y))}),r.jsxs("div",{className:"relative flex-1",children:[r.jsx(Xn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted"}),r.jsx("input",{value:p,onChange:y=>x(y.target.value),placeholder:"Search activity...",className:"w-full bg-surface border border-border rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]})]}),s?r.jsx(at,{count:8}):g.length?r.jsx("div",{className:"space-y-1",children:g.map(y=>r.jsxs("div",{className:"flex items-start gap-3 px-4 py-3 rounded-lg hover:bg-panel/50 transition-colors",children:[r.jsx("span",{className:`text-xs font-mono mt-0.5 shrink-0 ${VA[y.activity_type]||"text-muted"}`,children:y.activity_type.replace(/_/g," ")}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("p",{className:"text-sm",children:y.title}),y.description&&r.jsx("p",{className:"text-xs text-muted mt-0.5",children:y.description})]}),r.jsx("span",{className:"text-xs text-muted shrink-0",children:ZA(y.created_at)})]},y.id))}):r.jsx(jt,{icon:r.jsx(K6,{size:32}),title:"Quiet so far",description:p||o!=="all"||f!=="all"?"No activity matching your filters.":"Activity will show up here as agents complete tasks."})]})}function go({checked:a,onChange:n,disabled:s=!1,size:o="md"}){const u=o==="sm"?{track:"w-8 h-4",thumb:"w-3 h-3",translate:"translate-x-4"}:{track:"w-10 h-5",thumb:"w-4 h-4",translate:"translate-x-5"};return r.jsx("button",{type:"button",role:"switch","aria-checked":a,onClick:()=>!s&&n(!a),disabled:s,className:`relative ${u.track} rounded-full transition-colors disabled:opacity-50 ${a?"bg-matrix/30":"bg-border"}`,children:r.jsx("span",{className:`absolute top-0.5 left-0.5 ${u.thumb} rounded-full transition-transform ${a?`${u.translate} bg-matrix`:"translate-x-0 bg-muted"}`})})}function Ua({open:a,onClose:n,title:s,children:o,maxWidth:u="max-w-md"}){const f=c.useCallback(h=>{h.key==="Escape"&&n()},[n]);return c.useEffect(()=>{if(a)return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[a,f]),a?r.jsx("div",{className:"fixed inset-0 bg-void/80 flex items-center justify-center z-50 p-4",onClick:n,children:r.jsxs("div",{className:`bg-panel border border-border rounded-lg w-full ${u} max-h-[85vh] overflow-y-auto`,onClick:h=>h.stopPropagation(),children:[s&&r.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border",children:[r.jsx("h3",{className:"text-sm font-semibold",children:s}),r.jsx("button",{onClick:n,className:"text-muted hover:text-white text-xs",children:"Close"})]}),r.jsx("div",{className:"p-6",children:o})]})}):null}function bo({open:a,onClose:n,onConfirm:s,title:o="Confirm",message:u,confirmLabel:f="Confirm",confirmColor:h="critical",loading:p=!1}){const x=h==="critical"?"bg-critical/10 border-critical/30 text-critical hover:bg-critical/20":"bg-cyber/10 border-cyber/30 text-cyber hover:bg-cyber/20";return r.jsxs(Ua,{open:a,onClose:n,title:o,children:[r.jsx("p",{className:"text-sm text-muted mb-6",children:u}),r.jsxs("div",{className:"flex gap-2 justify-end",children:[r.jsx("button",{onClick:n,className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),r.jsx("button",{onClick:s,disabled:p,className:`px-3 py-1.5 border rounded text-xs font-medium transition-colors disabled:opacity-50 ${x}`,children:p?"Working...":f})]})]})}const y8=[{label:"Every 15 minutes",cron:"*/15 * * * *"},{label:"Every hour",cron:"0 * * * *"},{label:"Every 3 hours",cron:"0 */3 * * *"},{label:"Daily at 9am",cron:"0 9 * * *"},{label:"Daily at 6pm",cron:"0 18 * * *"},{label:"Weekdays at 9am",cron:"0 9 * * 1-5"},{label:"Weekly (Monday 9am)",cron:"0 9 * * 1"},{label:"Monthly (1st at 9am)",cron:"0 9 1 * *"}];function RA({value:a,onChange:n}){const[s,o]=c.useState(y8.some(u=>u.cron===a)?"preset":"custom");return r.jsxs("div",{className:"space-y-2",children:[r.jsxs("div",{className:"flex gap-1",children:[r.jsx("button",{type:"button",onClick:()=>o("preset"),className:`px-2 py-1 rounded text-xs transition-colors ${s==="preset"?"bg-panel text-white":"text-muted hover:text-white"}`,children:"Presets"}),r.jsx("button",{type:"button",onClick:()=>o("custom"),className:`px-2 py-1 rounded text-xs transition-colors ${s==="custom"?"bg-panel text-white":"text-muted hover:text-white"}`,children:"Custom"})]}),s==="preset"?r.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:y8.map(u=>r.jsxs("button",{type:"button",onClick:()=>n(u.cron),className:`text-left px-3 py-2 rounded text-xs transition-colors border ${a===u.cron?"border-cyber bg-cyber/10 text-white":"border-border hover:border-muted text-muted hover:text-white"}`,children:[r.jsx("span",{className:"block",children:u.label}),r.jsx("span",{className:"block font-mono text-[10px] text-muted mt-0.5",children:u.cron})]},u.cron))}):r.jsxs("div",{children:[r.jsx("input",{type:"text",value:a,onChange:u=>n(u.target.value),placeholder:"* * * * *",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white font-mono placeholder:text-muted/50 focus:outline-none focus:border-cyber"}),r.jsx("p",{className:"text-[10px] text-muted mt-1",children:"Format: minute hour day month weekday"})]})]})}function kA(a){const n=Date.now()-new Date(a).getTime(),s=Math.floor(n/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const o=Math.floor(s/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function _A(a){const n=new Date(a).getTime()-Date.now();if(n<0)return"overdue";const s=Math.floor(n/6e4);if(s<1)return"now";if(s<60)return`in ${s}m`;const o=Math.floor(s/60);return o<24?`in ${o}h`:`in ${Math.floor(o/24)}d`}function zA(){const{data:a,loading:n,refetch:s}=xe("/api/schedules"),[o,u]=c.useState(null),[f,h]=c.useState(!1),[p,x]=c.useState(null),[g,y]=c.useState(null),[b,j]=c.useState(!1),S=async N=>{u(N);try{await pe(`/api/schedules/${N}/toggle`,{method:"POST"}),s()}catch{we("error","Couldn't toggle schedule. Try again?")}finally{u(null)}},w=async()=>{if(g){j(!0);try{await pe(`/api/schedules/${g.id}`,{method:"DELETE"}),we("success","Schedule deleted"),s()}catch{we("error","Couldn't delete schedule. Try again?")}finally{j(!1),y(null)}}};return r.jsxs("div",{className:"p-6 max-w-4xl",children:[r.jsx(nt,{title:"Schedules",subtitle:"Automated task schedules",action:r.jsxs("button",{onClick:()=>h(!0),className:"flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[r.jsx(Ut,{size:14})," New schedule"]})}),n?r.jsx(at,{count:3}):a!=null&&a.length?r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:a.map(N=>r.jsxs("div",{className:"flex items-center justify-between px-4 py-4",children:[r.jsxs("div",{className:"min-w-0 mr-4 flex-1",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:`w-2 h-2 rounded-full shrink-0 ${N.enabled?"bg-matrix":"bg-border"}`}),r.jsx("p",{className:"text-sm font-medium truncate",children:N.label})]}),r.jsxs("div",{className:"flex gap-3 mt-1 ml-4",children:[r.jsx("span",{className:"text-xs text-muted font-mono",children:N.cron_expression||N.cron}),N.next_run_at&&r.jsxs("span",{className:"text-xs text-muted",children:["Next: ",_A(N.next_run_at)]}),N.last_run_at&&r.jsxs("span",{className:"text-xs text-muted",children:["Last: ",kA(N.last_run_at)]})]}),N.task_prompt&&r.jsx("p",{className:"text-xs text-muted mt-1 ml-4 truncate max-w-md",children:N.task_prompt})]}),r.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[r.jsx("button",{onClick:()=>x(N),className:"text-muted hover:text-cyber transition-colors",title:"Edit",children:r.jsx(bp,{size:14})}),r.jsx("button",{onClick:()=>y(N),className:"text-muted hover:text-critical transition-colors",title:"Delete",children:r.jsx(Kl,{size:14})}),r.jsx(go,{checked:!!N.enabled,onChange:()=>S(N.id),disabled:o===N.id})]})]},N.id))}):r.jsx(jt,{icon:r.jsx(O6,{size:32}),title:"Nothing scheduled yet",description:"Set up recurring tasks to keep your agents busy.",action:r.jsxs("button",{onClick:()=>h(!0),className:"mt-3 flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[r.jsx(Ut,{size:14})," Create your first schedule"]})}),f&&r.jsx(v8,{onClose:()=>h(!1),onSuccess:()=>{s(),h(!1)}}),p&&r.jsx(v8,{schedule:p,onClose:()=>x(null),onSuccess:()=>{s(),x(null)}}),r.jsx(bo,{open:!!g,onClose:()=>y(null),onConfirm:w,title:"Delete schedule",message:`Delete "${g==null?void 0:g.label}"? This can't be undone.`,confirmLabel:"Delete",loading:b})]})}function v8({schedule:a,onClose:n,onSuccess:s}){const o=!!a,{data:u}=xe("/api/agents"),[f,h]=c.useState((a==null?void 0:a.label)||""),[p,x]=c.useState((a==null?void 0:a.cron_expression)||(a==null?void 0:a.cron)||"0 9 * * *"),[g,y]=c.useState((a==null?void 0:a.agent_id)||""),[b,j]=c.useState((a==null?void 0:a.task_prompt)||""),[S,w]=c.useState(!1),N=async E=>{if(E.preventDefault(),!(!f.trim()||!p.trim())){w(!0);try{o?(await pe(`/api/schedules/${a.id}`,{method:"PUT",body:JSON.stringify({label:f.trim(),cron:p.trim(),agent_id:g||null,task_prompt:b})}),we("success","Schedule updated")):(await pe("/api/schedules",{method:"POST",body:JSON.stringify({label:f.trim(),cron:p.trim(),agent_id:g||null,task_prompt:b})}),we("success","Schedule created")),s()}catch{we("error",`Couldn't ${o?"update":"create"} schedule. Try again?`)}finally{w(!1)}}};return r.jsx(Ua,{open:!0,onClose:n,title:o?"Edit schedule":"New schedule",maxWidth:"max-w-lg",children:r.jsxs("form",{onSubmit:N,className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Title"}),r.jsx("input",{value:f,onChange:E=>h(E.target.value),placeholder:"Daily briefing",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber",autoFocus:!0})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Agent"}),r.jsxs("select",{value:g,onChange:E=>y(E.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[r.jsx("option",{value:"",children:"Orchestrator (default)"}),u==null?void 0:u.map(E=>r.jsx("option",{value:E.id,children:E.name},E.id))]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Schedule"}),r.jsx(RA,{value:p,onChange:x})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Task prompt"}),r.jsx("textarea",{value:b,onChange:E=>j(E.target.value),placeholder:"What should the agent do?",rows:3,className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber resize-none"})]}),r.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[r.jsx("button",{type:"button",onClick:n,className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),r.jsx("button",{type:"submit",disabled:S||!f.trim()||!p.trim(),className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:S?"Saving...":o?"Save changes":"Create schedule"})]})]})})}const Rp={SAMPLE_RATE:16e3,BIT_DEPTH:16,CHANNELS:1};function OA(a){const{SAMPLE_RATE:n,BIT_DEPTH:s,CHANNELS:o}=Rp,u=n*o*(s/8),f=o*(s/8),h=a.byteLength,p=new ArrayBuffer(44+h),x=new DataView(p);return zr(x,0,"RIFF"),x.setUint32(4,36+h,!0),zr(x,8,"WAVE"),zr(x,12,"fmt "),x.setUint32(16,16,!0),x.setUint16(20,1,!0),x.setUint16(22,o,!0),x.setUint32(24,n,!0),x.setUint32(28,u,!0),x.setUint16(32,f,!0),x.setUint16(34,s,!0),zr(x,36,"data"),x.setUint32(40,h,!0),new Int16Array(p,44).set(a),p}function BA(a){const n=new Int16Array(a.length);for(let s=0;s<a.length;s++){const o=Math.max(-1,Math.min(1,a[s]));n[s]=o<0?o*32768:o*32767}return n}function UA(a,n,s){if(n===s)return a;const o=n/s,u=Math.round(a.length/o),f=new Float32Array(u);for(let h=0;h<u;h++){const p=Math.round(h*o);f[h]=a[Math.min(p,a.length-1)]}return f}async function FA(a,n){const s=n||new AudioContext,o=await s.decodeAudioData(a.slice(0)),u=s.createBufferSource();return u.buffer=o,u.connect(s.destination),new Promise(f=>{u.onended=()=>f(),u.start(0)})}function qA(a){const n=new AudioContext;let s=[],o=!1;async function u(){if(s.length===0){o=!1;return}o=!0;const f=s.shift();await FA(f,n),await u()}return{enqueue(f){s.push(f),o||u()},clear(){s=[],o=!1},close(){s=[],o=!1,n.close()},get isPlaying(){return o}}}function zr(a,n,s){for(let o=0;o<s.length;o++)a.setUint8(n+o,s.charCodeAt(o))}class YA{constructor(n,s={}){It(this,"threshold");It(this,"minSpeechMs");It(this,"silenceMs");It(this,"onSpeechStart");It(this,"onSpeechEnd");It(this,"isSpeaking",!1);It(this,"speechStartTime",0);It(this,"lastSpeechTime",0);It(this,"audioChunks",[]);It(this,"sampleRate");It(this,"checkInterval",null);this.sampleRate=n,this.threshold=s.threshold??.01,this.minSpeechMs=s.minSpeechMs??300,this.silenceMs=s.silenceMs??800,this.onSpeechStart=s.onSpeechStart,this.onSpeechEnd=s.onSpeechEnd}processFrame(n){var u;const s=$A(n),o=Date.now();s>this.threshold&&(this.isSpeaking||(this.isSpeaking=!0,this.speechStartTime=o,this.audioChunks=[],(u=this.onSpeechStart)==null||u.call(this)),this.lastSpeechTime=o),this.isSpeaking&&(this.audioChunks.push(new Float32Array(n)),s<=this.threshold&&o-this.lastSpeechTime>this.silenceMs&&this.endSpeech())}start(){this.checkInterval=setInterval(()=>{this.isSpeaking&&Date.now()-this.lastSpeechTime>this.silenceMs&&this.endSpeech()},100)}stop(){this.checkInterval&&(clearInterval(this.checkInterval),this.checkInterval=null),this.isSpeaking&&this.endSpeech()}endSpeech(){var x;const n=Date.now()-this.speechStartTime;if(this.isSpeaking=!1,n<this.minSpeechMs||this.audioChunks.length===0){this.audioChunks=[];return}const s=this.audioChunks.reduce((g,y)=>g+y.length,0),o=new Float32Array(s);let u=0;for(const g of this.audioChunks)o.set(g,u),u+=g.length;this.audioChunks=[];const f=UA(o,this.sampleRate,Rp.SAMPLE_RATE),h=BA(f),p=OA(h);(x=this.onSpeechEnd)==null||x.call(this,p)}}function $A(a){let n=0;for(let s=0;s<a.length;s++)n+=a[s]*a[s];return Math.sqrt(n/a.length)}function GA(){const a=Gn(),n=window.location.protocol==="https:"?"wss:":"ws:",s=window.location.host;return`${n}//${s}/ws/voice?token=${a}`}function XA(a){const[n,s]=c.useState("idle"),[o,u]=c.useState(""),[f,h]=c.useState(""),[p,x]=c.useState(null),[g,y]=c.useState(!1),b=c.useRef(null),j=c.useRef(null),S=c.useRef(null),w=c.useRef(null),N=c.useRef(null),E=c.useRef(null),C=c.useCallback(()=>{var F,L,z,q,Q;(F=S.current)==null||F.stop(),S.current=null,(L=w.current)==null||L.disconnect(),w.current=null,(z=j.current)==null||z.getTracks().forEach(J=>J.stop()),j.current=null,(q=N.current)==null||q.close(),N.current=null,(Q=E.current)==null||Q.close(),E.current=null,b.current&&b.current.readyState!==WebSocket.CLOSED&&(b.current.send(JSON.stringify({type:"stop"})),b.current.close()),b.current=null,s("idle"),x(null)},[]);c.useEffect(()=>C,[C]);const T=c.useCallback(async()=>{x(null),u(""),h("");let F;try{F=await navigator.mediaDevices.getUserMedia({audio:{sampleRate:{ideal:16e3},channelCount:1,echoCancellation:!0,noiseSuppression:!0}})}catch{x("Couldn't access microphone. Check your browser permissions.");return}j.current=F;const L=new AudioContext;N.current=L;const z=L.createMediaStreamSource(F),q=new WebSocket(GA());b.current=q;const Q=qA();E.current=Q,q.binaryType="arraybuffer",q.onopen=()=>{q.send(JSON.stringify({type:"start",agentId:a}))},q.onmessage=le=>{if(le.data instanceof ArrayBuffer){Q.enqueue(le.data);return}try{const K=JSON.parse(le.data);switch(K.type){case"state":s(K.state);break;case"transcription":u(K.text);break;case"response":h(K.text);break;case"error":x(K.message);break}}catch{}},q.onerror=()=>{x("Couldn't connect to voice server. Is the runtime running?"),C()},q.onclose=()=>{C()};const ee=L.createScriptProcessor(4096,1,1);w.current=ee;const ue=new YA(L.sampleRate,{threshold:.01,minSpeechMs:300,silenceMs:800,onSpeechStart:()=>{s("listening")},onSpeechEnd:le=>{q.readyState===WebSocket.OPEN&&q.send(le)}});S.current=ue,ue.start(),ee.onaudioprocess=le=>{if(g)return;const K=le.inputBuffer.getChannelData(0);ue.processFrame(K)},z.connect(ee),ee.connect(L.destination)},[a,g,C]),D=c.useCallback(()=>{C()},[C]),Y=c.useCallback(()=>{y(F=>{var z;const L=!F;return(z=j.current)==null||z.getAudioTracks().forEach(q=>{q.enabled=!L}),L})},[]);return{state:n,transcript:o,response:f,error:p,startCall:T,endCall:D,toggleMute:Y,isMuted:g}}const Kr=24,uu=3,du=2,Dl=2,qn=32;function PA({state:a,className:n=""}){const s=c.useRef(null),o=c.useRef(0);return c.useEffect(()=>{const u=s.current;if(!u)return;const f=u.getContext("2d");if(!f)return;const h=Kr*(uu+du)-du;u.width=h*2,u.height=qn*2,u.style.width=`${h}px`,u.style.height=`${qn}px`,f.scale(2,2);const p=new Float32Array(Kr).fill(0);function x(){if(f){f.clearRect(0,0,h,qn);for(let g=0;g<Kr;g++){const y=KA(a,g,Date.now());p[g]+=(y-p[g])*.15;const b=Math.max(Dl,p[g]),j=g*(uu+du),S=(qn-b)/2;f.fillStyle=QA(a),f.beginPath(),f.roundRect(j,S,uu,b,1.5),f.fill()}o.current=requestAnimationFrame(x)}}return x(),()=>cancelAnimationFrame(o.current)},[a]),r.jsx("canvas",{ref:s,className:n})}function KA(a,n,s){switch(a){case"listening":{const o=Math.sin(s/200+n*.5)*.5+.5;return Dl+o*(qn*.6-Dl)}case"processing":{const o=Kr/2,u=Math.abs(n-o)/o,f=Math.sin(s/300)*.5+.5;return Dl+(1-u)*f*qn*.4}case"speaking":{const o=Math.sin(s/150+n*.4)*.5+.5,u=Math.sin(s/250+n*.7)*.3+.3;return Dl+(o+u)*(qn*.45)}default:return Dl}}function QA(a){switch(a){case"listening":return"rgba(59, 130, 246, 0.8)";case"processing":return"rgba(168, 85, 247, 0.6)";case"speaking":return"rgba(34, 197, 94, 0.8)";default:return"rgba(255, 255, 255, 0.2)"}}function JA({isMuted:a,onToggleMute:n,onEndCall:s}){return r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("button",{onClick:n,className:`p-3 rounded-full transition-all duration-150 active:scale-95 ${a?"bg-red-500/20 text-red-400 hover:bg-red-500/30":"bg-white/[0.08] text-gray-300 hover:bg-white/[0.12] hover:text-white"}`,title:a?"Unmute":"Mute",children:a?r.jsx(hp,{size:20,weight:"fill"}):r.jsx(fp,{size:20,weight:"fill"})}),r.jsx("button",{onClick:s,className:"p-3 rounded-full bg-red-500/20 text-red-400 hover:bg-red-500/30 hover:text-red-300 active:scale-95 transition-all duration-150",title:"End call",children:r.jsx(Gj,{size:20,weight:"fill"})})]})}const WA={idle:"Ready",listening:"Listening...",processing:"Thinking...",speaking:"Speaking..."};function IA({state:a,transcript:n,response:s,error:o,isMuted:u,onToggleMute:f,onEndCall:h}){return c.useEffect(()=>{const p=x=>{x.key==="Escape"&&h()};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[h]),r.jsxs("div",{className:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-black/90 backdrop-blur-sm",children:[r.jsx("div",{className:"absolute inset-0",onClick:h}),r.jsxs("div",{className:"relative z-10 flex flex-col items-center gap-8 max-w-md w-full px-6",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:`w-2 h-2 rounded-full ${a==="listening"?"bg-blue-500 animate-pulse":a==="processing"?"bg-purple-500 animate-pulse":a==="speaking"?"bg-green-500 animate-pulse":"bg-gray-600"}`}),r.jsx("span",{className:"text-sm text-gray-400 font-mono",children:WA[a]})]}),r.jsx(PA,{state:a}),n&&r.jsxs("div",{className:"w-full text-center",children:[r.jsx("p",{className:"text-xs text-gray-500 mb-1 font-mono",children:"You said:"}),r.jsx("p",{className:"text-sm text-gray-300",children:n})]}),s&&r.jsxs("div",{className:"w-full text-center",children:[r.jsx("p",{className:"text-xs text-gray-500 mb-1 font-mono",children:"Response:"}),r.jsx("p",{className:"text-sm text-white",children:s})]}),o&&r.jsx("div",{className:"w-full text-center",children:r.jsx("p",{className:"text-sm text-red-400",children:o})}),r.jsx(JA,{isMuted:u,onToggleMute:f,onEndCall:h}),r.jsx("p",{className:"text-xs text-gray-600",children:"Press Esc to end call"})]})]})}function eS(){var O;const[a,n]=c.useState([]),[s,o]=c.useState(""),[u,f]=c.useState(!1),[h,p]=c.useState(()=>crypto.randomUUID()),[x,g]=c.useState(!1),[y,b]=c.useState(!1),j=c.useRef(null),{tier:S,modelReady:w,loading:N}=$l(),[E,C]=c.useState([]),[T,D]=c.useState(""),[Y,F]=c.useState(!1),L=XA("orchestrator");c.useEffect(()=>{pe("/api/system/models").then(B=>{C(B.data.models),B.data.currentModel&&D(B.data.currentModel)}).catch(()=>{})},[]),c.useEffect(()=>{let B=!1,I=!1;const oe=()=>{fetch("/api/voice/providers").then(V=>V.json()).then(V=>{var W;if(B)return;b(!0);const P=!!((W=V==null?void 0:V.data)!=null&&W.anyAvailable);g(P),P&&(I=!0)}).catch(()=>{})};oe();const fe=setInterval(()=>{!B&&!I&&oe()},15e3);return()=>{B=!0,clearInterval(fe)}},[]);const z=c.useRef(""),q=c.useRef("");c.useEffect(()=>{L.transcript&&L.transcript!==z.current&&(z.current=L.transcript,n(B=>[...B,{role:"user",content:L.transcript}]))},[L.transcript]),c.useEffect(()=>{L.response&&L.response!==q.current&&(q.current=L.response,n(B=>[...B,{role:"assistant",content:L.response}]))},[L.response]),c.useEffect(()=>{var B;(B=j.current)==null||B.scrollTo({top:j.current.scrollHeight,behavior:"smooth"})},[a]);const Q=async()=>{const B=s.trim();if(!B||u)return;o(""),n(oe=>[...oe,{role:"user",content:B}]),f(!0);let I="";n(oe=>[...oe,{role:"assistant",content:""}]);try{for await(const oe of Wb(B,h,T||void 0))oe.type==="text"&&(I+=oe.content,n(fe=>{const V=[...fe];return V[V.length-1]={role:"assistant",content:I},V}))}catch{I+=`
|
|
72
|
-
|
|
73
|
-
[Connection lost. Try sending your message again.]`,n(oe=>{const fe=[...oe];return fe[fe.length-1]={role:"assistant",content:I},fe})}finally{f(!1)}},J=B=>{B.key==="Enter"&&!B.shiftKey&&(B.preventDefault(),Q())},ee=()=>{p(crypto.randomUUID()),n([]),z.current="",q.current=""},ue=B=>{D(B),F(!1)},le=((O=E.find(B=>B.id===T))==null?void 0:O.name)||T||"Auto",K=x&&!s.trim()&&!u,ne=y&&!x&&!s.trim()&&!u;return!N&&S==="free"&&!w&&a.length===0?r.jsxs("div",{className:"flex flex-col h-full",children:[r.jsx("div",{className:"px-6 pt-6 pb-0",children:r.jsx(nt,{title:"Chat",subtitle:"Talk to your orchestrator"})}),r.jsx("div",{className:"flex-1 flex items-center justify-center",children:r.jsxs("div",{className:"text-center space-y-3 max-w-sm",children:[r.jsx("p",{className:"text-lg text-white font-medium",children:"Your orchestrator needs a brain"}),r.jsx("p",{className:"text-sm text-muted",children:"Download an AI model to start chatting."}),r.jsx(Yn,{to:"/settings",className:"inline-block bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-4 py-2 text-sm hover:bg-cyber/20 transition-colors",children:"Go to Settings"})]})})]}):r.jsxs("div",{className:"flex flex-col h-full",children:[r.jsx("div",{className:"px-6 pt-6 pb-0",children:r.jsx(nt,{title:"Chat",subtitle:"Talk to your orchestrator",action:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("div",{className:"relative",children:[r.jsxs("button",{onClick:()=>F(!Y),className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted border border-border rounded-lg hover:text-white hover:border-muted transition-colors",children:[r.jsx("span",{className:"max-w-[120px] truncate",children:le}),r.jsx(Rj,{size:12})]}),Y&&E.length>0&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>F(!1)}),r.jsx("div",{className:"absolute right-0 top-full mt-1 z-50 bg-panel border border-border rounded-lg py-1 min-w-[200px] shadow-lg",children:E.map(B=>r.jsxs("button",{onClick:()=>ue(B.id),className:`w-full text-left px-3 py-2 text-xs hover:bg-surface transition-colors ${T===B.id?"text-cyber":"text-white"}`,children:[r.jsx("span",{className:"block",children:B.name}),r.jsx("span",{className:"block text-muted text-[10px]",children:B.provider})]},B.id))})]})]}),r.jsxs("button",{onClick:ee,disabled:u,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-cyber/10 border border-cyber/30 text-cyber rounded-lg hover:bg-cyber/20 transition-colors disabled:opacity-50",title:"New session",children:[r.jsx(Ut,{size:14})," New chat"]})]})})}),r.jsxs("div",{ref:j,className:"flex-1 overflow-y-auto px-6 py-4 space-y-4",children:[a.length===0&&r.jsx("div",{className:"flex items-center justify-center h-full text-muted text-sm",children:"Ask your orchestrator anything about your agents, tasks, or business."}),a.map((B,I)=>r.jsx("div",{className:`max-w-2xl ${B.role==="user"?"ml-auto":""}`,children:r.jsx("div",{className:`rounded-lg px-4 py-3 text-sm ${B.role==="user"?"bg-cyber/10 border border-cyber/20 text-white":"bg-panel border border-border"}`,children:r.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:B.content||(u&&I===a.length-1?"...":"")})})},I))]}),r.jsx("div",{className:"border-t border-border px-6 py-4",children:r.jsxs("div",{className:"flex gap-2 max-w-2xl",children:[r.jsx("textarea",{value:s,onChange:B=>o(B.target.value),onKeyDown:J,placeholder:"Type a message...",rows:1,className:"flex-1 bg-panel border border-border rounded-lg px-4 py-3 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber resize-none"}),K?r.jsx("button",{onClick:()=>L.startCall(),className:"bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-4 hover:bg-cyber/20 transition-colors",title:"Start voice chat",children:r.jsx(fp,{size:18})}):ne?r.jsxs("div",{className:"flex gap-2",children:[r.jsx("button",{disabled:!0,className:"border border-border text-muted/40 rounded-lg px-4 cursor-not-allowed",title:"Voice is available when Voicebox is running. Enable it in Settings.",children:r.jsx(hp,{size:18})}),r.jsx("button",{onClick:Q,disabled:u||!s.trim(),className:"bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-4 hover:bg-cyber/20 transition-colors disabled:opacity-50",children:r.jsx(h8,{size:18})})]}):r.jsx("button",{onClick:Q,disabled:u||!s.trim(),className:"bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-4 hover:bg-cyber/20 transition-colors disabled:opacity-50",children:r.jsx(h8,{size:18})})]})}),L.state!=="idle"&&r.jsx(IA,{state:L.state,transcript:L.transcript,response:L.response,error:L.error,isMuted:L.isMuted,onToggleMute:L.toggleMute,onEndCall:L.endCall})]})}function kp(a){const n=Math.floor(a/86400),s=Math.floor(a%86400/3600),o=Math.floor(a%3600/60),u=[];return n&&u.push(`${n}d`),s&&u.push(`${s}h`),u.push(`${o}m`),u.join(" ")}function tS(){const{data:a}=xe("/health"),{data:n}=xe("/api/system/stats");return r.jsxs(r.Fragment,{children:[a&&r.jsxs("div",{className:"mb-6",children:[r.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Runtime"}),r.jsxs("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:[r.jsx(Bt,{label:"Status",value:a.status,valueColor:a.status==="healthy"?"text-matrix":"text-warning"}),r.jsx(Bt,{label:"Version",value:`v${a.version}`}),r.jsx(Bt,{label:"Uptime",value:kp(a.uptime)}),r.jsx(Bt,{label:"Database",value:a.database}),n&&r.jsx(Bt,{label:"Memory",value:`${n.memoryMb} MB`})]})]}),n&&r.jsxs("div",{className:"mb-6",children:[r.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Stats"}),r.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:[r.jsx(Or,{label:"Agents",value:String(n.totalAgents)}),r.jsx(Or,{label:"Tasks",value:String(n.totalTasks)}),r.jsx(Or,{label:"Tokens",value:n.totalTokens.toLocaleString()}),r.jsx(Or,{label:"Cost",value:`$${(n.totalCostCents/100).toFixed(2)}`})]})]})]})}function Bt({label:a,value:n,valueColor:s}){return r.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[r.jsx("span",{className:"text-sm text-muted",children:a}),r.jsx("span",{className:`text-sm font-medium ${s||""}`,children:n})]})}function Or({label:a,value:n}){return r.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[r.jsx("p",{className:"text-xs text-muted",children:a}),r.jsx("p",{className:"text-lg font-bold",children:n})]})}function aS(){const{tier:a}=$l(),n=a==="free",{data:s}=xe("/api/settings/tunnel_url"),{data:o}=xe("/api/settings/cloud_url"),{data:u,refetch:f}=xe("/api/settings/notification_channels"),h=s==null?void 0:s.value,[p,x]=c.useState(!1),g=(()=>{try{return u!=null&&u.value?JSON.parse(u.value):{email:!1,slack:!1,telegram:!1,whatsapp:!1}}catch{return{email:!1,slack:!1,telegram:!1,whatsapp:!1}}})(),y=c.useCallback(async b=>{x(!0);const j={...g,[b]:!g[b]};try{await pe("/api/settings/notification_channels",{method:"PUT",body:JSON.stringify({value:JSON.stringify(j)})}),f(),we("success",`${b} notifications ${j[b]?"enabled":"disabled"}`)}catch{we("error","Couldn't update notification settings")}finally{x(!1)}},[g,f]);return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"mb-6",children:[r.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Webhooks"}),r.jsxs("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:[r.jsx(Bt,{label:"Tunnel",value:h?"Active":"Not connected",valueColor:h?"text-matrix":"text-muted"}),h&&r.jsxs(r.Fragment,{children:[r.jsx(Bt,{label:"URL",value:h}),r.jsx(Bt,{label:"GHL Hook",value:`${h}/webhooks/ghl`})]}),!h&&(o==null?void 0:o.value)&&r.jsx(Bt,{label:"Cloud proxy",value:o.value,valueColor:"text-matrix"})]})]}),!n&&r.jsxs("div",{className:"mb-6",children:[r.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Notifications"}),r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:["email","slack","telegram","whatsapp"].map(b=>r.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[r.jsx("span",{className:"text-sm capitalize",children:b}),r.jsx(go,{checked:g[b],onChange:()=>y(b),disabled:p,size:"sm"})]},b))})]})]})}function nS(){const{data:a,refetch:n}=xe("/api/settings/ollama_model"),{data:s,refetch:o}=xe("/api/settings/anthropic_api_key"),[u,f]=c.useState(!1),[h,p]=c.useState(!1),[x,g]=c.useState(""),[y,b]=c.useState(!1),j=(w,N=8)=>w?w.slice(0,N)+"•".repeat(Math.max(0,Math.min(w.length-N,20))):"Not set",S=async()=>{if(x.trim()){b(!0);try{await pe("/api/settings/anthropic_api_key",{method:"PUT",body:JSON.stringify({value:x.trim()})}),we("success","API key updated"),p(!1),g(""),o()}catch{we("error","Couldn't save API key")}finally{b(!1)}}};return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"mb-6",children:[r.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Anthropic API"}),r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:h?r.jsxs("div",{className:"px-4 py-3",children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"API Key"}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx("input",{type:"password",value:x,onChange:w=>g(w.target.value),placeholder:"sk-ant-...",className:"flex-1 bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber",autoFocus:!0}),r.jsx("button",{onClick:S,disabled:y||!x.trim(),className:"text-matrix hover:text-matrix/80 transition-colors disabled:opacity-50",children:r.jsx(zj,{size:16})}),r.jsx("button",{onClick:()=>{p(!1),g("")},className:"text-muted hover:text-white transition-colors",children:r.jsx(io,{size:16})})]})]}):r.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[r.jsxs("div",{children:[r.jsx("span",{className:"text-sm text-muted",children:"API Key"}),r.jsx("span",{className:"text-sm font-medium ml-3",children:j(s==null?void 0:s.value,12)})]}),r.jsx("button",{onClick:()=>p(!0),className:"text-muted hover:text-cyber transition-colors",children:r.jsx(bp,{size:14})})]})})]}),r.jsxs("div",{className:"mb-6",children:[r.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Local Models (Ollama)"}),r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:r.jsx(Bt,{label:"Model",value:(a==null?void 0:a.value)||"Not configured"})}),r.jsx("div",{className:"mt-3",children:r.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-cyber/10 border border-cyber/30 text-cyber rounded-lg hover:bg-cyber/20 transition-colors",children:[r.jsx(Bj,{size:14})," Set up local model"]})})]}),u&&r.jsx(lS,{onClose:()=>{f(!1),n()}})]})}function lS({onClose:a}){const{status:n,selectedModel:s,loading:o,downloading:u,downloadPercent:f,downloadMessage:h,setupMessage:p,error:x,fetchStatus:g,selectModel:y,startDownload:b,skipDownload:j,completeOnboarding:S}=Dp(),[w,N]=c.useState(!1);c.useEffect(()=>{g()},[g]);const E=async()=>{await S()||N(!0)},C=n?[n.recommendation,...n.alternatives].filter(Boolean):[];return r.jsx("div",{className:"fixed inset-0 bg-void/80 flex items-center justify-center z-50 p-4",children:r.jsxs("div",{className:"bg-panel border border-border rounded-lg p-6 w-full max-w-lg max-h-[80vh] overflow-y-auto",children:[r.jsxs("div",{className:"flex items-center justify-between mb-4",children:[r.jsx("h3",{className:"text-sm font-semibold",children:"Set up local AI model"}),r.jsx("button",{onClick:a,className:"text-muted hover:text-white text-xs",children:"Close"})]}),o&&!n&&r.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted py-8 justify-center",children:[r.jsx(bn,{size:16,className:"animate-spin"})," Detecting hardware..."]}),x&&r.jsx("div",{className:"bg-critical/10 border border-critical/30 rounded-lg p-3 mb-4",children:r.jsx("p",{className:"text-xs text-critical",children:x})}),w&&r.jsxs("div",{className:"text-center py-8",children:[r.jsx("p",{className:"text-sm text-matrix font-medium mb-2",children:"Model configured"}),r.jsx("p",{className:"text-xs text-muted mb-4",children:s?`${s.label} is ready to use.`:"Configuration saved."}),r.jsx("button",{onClick:a,className:"px-4 py-2 text-xs font-medium bg-cyber/10 border border-cyber/30 text-cyber rounded-lg hover:bg-cyber/20 transition-colors",children:"Done"})]}),n&&!u&&!w&&r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"bg-surface/50 rounded-lg p-3 mb-4",children:[r.jsx("p",{className:"text-xs text-muted mb-1",children:"Your device"}),r.jsx("p",{className:"text-sm",children:n.deviceSummary}),r.jsxs("p",{className:"text-xs text-muted mt-1",children:[n.device.totalMemoryGB," GB RAM · ",n.memoryTier," tier",!n.ollamaRunning&&" · Ollama not running"]})]}),C.length>0&&r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"text-xs text-muted mb-2",children:"Choose a model:"}),r.jsx("div",{className:"space-y-2 mb-4",children:C.map(T=>r.jsxs("button",{onClick:()=>y(T),className:`w-full text-left rounded-lg border p-3 transition-colors ${(s==null?void 0:s.tag)===T.tag?"border-cyber bg-cyber/10":"border-border hover:border-muted"}`,children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm font-medium",children:T.label}),r.jsxs("span",{className:"text-xs text-muted",children:[T.sizeGB," GB"]})]}),r.jsx("p",{className:"text-xs text-muted mt-0.5",children:T.description}),T.recommended&&r.jsx("span",{className:"inline-block mt-1 text-xs text-cyber",children:"Recommended"})]},T.tag))})]}),r.jsxs("div",{className:"flex gap-2 justify-end",children:[r.jsx("button",{onClick:()=>{j(),N(!0)},className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Skip"}),r.jsxs("button",{onClick:b,disabled:!s,className:"px-3 py-1.5 text-xs font-medium bg-cyber/10 border border-cyber/30 text-cyber rounded-lg hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:["Download ",(s==null?void 0:s.label)||"model"]})]})]}),u&&r.jsxs("div",{className:"py-6",children:[p&&r.jsx("p",{className:"text-xs text-muted mb-3",children:p}),h&&r.jsx("p",{className:"text-sm mb-2",children:h}),r.jsx("div",{className:"w-full bg-surface rounded-full h-2 mb-2",children:r.jsx("div",{className:"bg-cyber h-2 rounded-full transition-all duration-300",style:{width:`${f}%`}})}),r.jsxs("p",{className:"text-xs text-muted text-right",children:[f,"%"]})]}),!u&&f===100&&!w&&r.jsxs("div",{className:"text-center py-6",children:[r.jsx("p",{className:"text-sm text-matrix font-medium mb-4",children:"Download complete"}),r.jsx("button",{onClick:E,disabled:o,className:"px-4 py-2 text-xs font-medium bg-cyber/10 border border-cyber/30 text-cyber rounded-lg hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:o?"Saving...":"Save and finish"})]})]})})}function sS(){const[a,n]=c.useState(null),[s,o]=c.useState([]),[u,f]=c.useState(""),[h,p]=c.useState(!1),[x,g]=c.useState(!1),y=c.useCallback(async()=>{var w;try{const N=await pe("/api/voice/providers");if(n(N.data),N.data.voiceboxAvailable){const[E,C]=await Promise.all([pe("/api/voice/profiles"),pe("/api/settings/orchestrator_voice_profile_id")]);o(E.data||[]),f(((w=C.data)==null?void 0:w.value)||"")}}catch{n(null)}},[]),b=c.useRef(!1);c.useEffect(()=>{a!=null&&a.voiceboxAvailable&&(b.current=!0)},[a==null?void 0:a.voiceboxAvailable]),c.useEffect(()=>{let w=!1,N;return(async()=>{await y(),!w&&!b.current&&(N=setInterval(async()=>{if(w||b.current){N&&clearInterval(N);return}await y()},1e4))})(),()=>{w=!0,N&&clearInterval(N)}},[y]);const j=c.useCallback(async()=>{g(!0);try{await pe("/api/voice/enable",{method:"POST"}),await y()}catch{}finally{g(!1)}},[y]),S=c.useCallback(async w=>{p(!0),f(w);try{await pe("/api/settings/orchestrator_voice_profile_id",{method:"PUT",body:JSON.stringify({value:w})})}catch{f("")}finally{p(!1)}},[]);return r.jsxs("div",{className:"mb-6",children:[r.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Voice"}),r.jsxs("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:[a&&r.jsx("div",{className:"px-4 py-3",children:r.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[r.jsx("span",{className:`w-2 h-2 rounded-full ${a.voiceboxAvailable?"bg-matrix":"bg-border"}`}),r.jsx("span",{className:a.voiceboxAvailable?"":"text-muted",children:a.voiceboxAvailable?"Voicebox is running":"Voicebox is not running"})]})}),a&&!a.voiceboxAvailable&&r.jsxs("div",{className:"px-4 py-3",children:[r.jsx("button",{onClick:j,disabled:x,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-cyber/10 border border-cyber/30 text-cyber rounded-lg hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:x?r.jsxs(r.Fragment,{children:[r.jsx(bn,{size:14,className:"animate-spin"})," Starting Voicebox..."]}):"Enable Voicebox"}),r.jsx("p",{className:"text-xs text-muted mt-1.5",children:"Local speech-to-text and text-to-speech using Whisper and Coqui TTS."})]}),(a==null?void 0:a.voiceboxAvailable)&&r.jsx("div",{className:"px-4 py-3",children:r.jsxs("label",{className:"flex items-center justify-between gap-4",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Orchestrator voice"}),r.jsx("p",{className:"text-xs text-muted",children:"Voice used when chatting from the main conversation"})]}),r.jsxs("select",{value:u,onChange:w=>S(w.target.value),disabled:h,className:"bg-void border border-border rounded-md px-3 py-1.5 text-sm min-w-[180px]",children:[r.jsx("option",{value:"",children:"Default voice"}),s.map(w=>r.jsx("option",{value:w.id,children:w.name},w.id))]})]})})]})]})}const iS=["Cloud sync with ohwow.fun dashboard","Scheduling and recurring tasks","Approval workflows","WhatsApp and Telegram integrations","Agent-to-agent communication (A2A)","Browser automation","Multiple agents"];function rS(){const{tier:a,loading:n}=$l(),s=ii(),[o,u]=c.useState("general"),f=a==="free",{data:h}=xe("/health"),{data:p}=xe("/api/settings/license_key"),{data:x}=xe("/api/settings/cloud_url"),g=()=>{$8(),s("/login",{replace:!0})},y=(b,j=8)=>b?b.slice(0,j)+"•".repeat(Math.max(0,Math.min(b.length-j,20))):"Not set";return r.jsxs("div",{className:"p-6 max-w-4xl",children:[r.jsx(nt,{title:"Settings",subtitle:"Runtime configuration"}),!n&&r.jsx("div",{className:"mb-6",children:r.jsx("span",{"data-testid":"runtime-settings-tier-badge",className:`inline-flex items-center px-2.5 py-1 rounded-md text-xs font-semibold ${f?"bg-warning/15 text-warning":"bg-matrix/15 text-matrix"}`,children:f?"Free tier":"Enterprise"})}),h&&r.jsxs("div",{className:"mb-2 text-xs text-muted",children:[r.jsx("span",{className:h.status==="healthy"?"text-matrix":"text-warning",children:"●"})," ","Connected · Running on v",h.version," · Up ",kp(h.uptime)]}),r.jsx("div",{className:"flex gap-1 mb-6 border-b border-border",children:[{key:"general",label:"General"},{key:"integrations",label:"Integrations"},{key:"models",label:"Models"}].map(b=>r.jsx("button",{onClick:()=>u(b.key),className:`px-3 py-2 text-xs font-medium border-b-2 transition-colors ${o===b.key?"border-cyber text-white":"border-transparent text-muted hover:text-white"}`,children:b.label},b.key))}),o==="general"&&r.jsxs(r.Fragment,{children:[!f&&!n&&r.jsxs("div",{className:"mb-6",children:[r.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Connection"}),r.jsxs("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:[r.jsx(Bt,{label:"Cloud URL",value:(x==null?void 0:x.value)||"Not configured"}),r.jsx(Bt,{label:"Status",value:"Connected",valueColor:"text-matrix"}),r.jsx(Bt,{label:"License key",value:y(p==null?void 0:p.value)})]})]}),r.jsx(tS,{}),!f&&r.jsxs("div",{className:"mb-6",children:[r.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Quick links"}),r.jsxs("div",{className:"flex gap-2 flex-wrap",children:[r.jsx(Yn,{to:"/connections",className:"px-3 py-1.5 text-xs font-medium bg-panel border border-border rounded-lg hover:border-muted transition-colors",children:"A2A Connections"}),r.jsx(Yn,{to:"/schedules",className:"px-3 py-1.5 text-xs font-medium bg-panel border border-border rounded-lg hover:border-muted transition-colors",children:"Schedules"}),r.jsx(Yn,{to:"/automations",className:"px-3 py-1.5 text-xs font-medium bg-panel border border-border rounded-lg hover:border-muted transition-colors",children:"Automations"})]})]}),f&&!n&&r.jsxs("div",{"data-testid":"runtime-settings-upgrade-cta",className:"mb-6 bg-panel border border-cyber/20 rounded-lg p-5",children:[r.jsx("h3",{className:"text-sm font-semibold text-cyber mb-2",children:"Unlock the full runtime"}),r.jsx("p",{className:"text-xs text-muted mb-4",children:"Get a license key from ohwow.fun to access enterprise features:"}),r.jsx("ul",{className:"space-y-1.5 mb-4",children:iS.map(b=>r.jsxs("li",{className:"flex items-center gap-2 text-xs text-muted",children:[r.jsx("span",{className:"text-cyber",children:"+"}),b]},b))}),r.jsx("a",{"data-testid":"runtime-settings-upgrade-link",href:"https://ohwow.fun",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center px-3 py-1.5 text-xs font-medium bg-cyber text-void rounded-md hover:bg-cyber/90 transition-colors",children:"Get a license key"})]}),r.jsx("div",{className:"mb-6",children:r.jsx("button",{onClick:g,className:"px-4 py-2 text-sm text-critical border border-critical/30 rounded-lg hover:bg-critical/10 transition-colors",children:"Disconnect"})})]}),o==="integrations"&&r.jsx(aS,{}),o==="models"&&r.jsx(nS,{}),o==="integrations"&&r.jsx(sS,{})]})}const oS=["all","lead","client","partner","vendor"];function cS(){const a=va(["contact:upserted","contact:removed"]),[n,s]=c.useState("all"),[o,u]=c.useState(""),[f,h]=c.useState(!1),{data:p,loading:x,refetch:g}=xe("/api/contacts",[a]),y=c.useMemo(()=>{if(!p)return[];let b=p;if(n!=="all"&&(b=b.filter(j=>j.contact_type===n)),o.trim()){const j=o.toLowerCase();b=b.filter(S=>S.name.toLowerCase().includes(j)||(S.email||"").toLowerCase().includes(j)||(S.company||"").toLowerCase().includes(j))}return b},[p,n,o]);return r.jsxs("div",{className:"p-6 max-w-4xl",children:[r.jsx(nt,{title:"Contacts",subtitle:"People and companies your agents interact with",action:r.jsxs("button",{onClick:()=>h(!f),className:"flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[r.jsx(Ut,{size:14})," New contact"]})}),f&&r.jsx(uS,{onClose:()=>h(!1),onSuccess:g}),r.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:oS.map(b=>r.jsx("button",{onClick:()=>s(b),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${n===b?"bg-panel text-white":"text-muted hover:text-white"}`,children:b},b))}),r.jsxs("div",{className:"relative mb-4",children:[r.jsx(Xn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted"}),r.jsx("input",{value:o,onChange:b=>u(b.target.value),placeholder:"Search by name, email, or company...",className:"w-full bg-surface border border-border rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),x?r.jsx(at,{count:5}):y.length?r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:y.map(b=>r.jsxs(ht,{to:`/contacts/${b.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-surface/50 transition-colors",children:[r.jsxs("div",{className:"min-w-0 mr-3",children:[r.jsx("p",{className:"text-sm font-medium truncate",children:b.name}),r.jsxs("p",{className:"text-xs text-muted",children:[b.email&&r.jsx("span",{children:b.email}),b.email&&b.company&&" · ",b.company&&r.jsx("span",{className:"text-cyber",children:b.company})]})]}),r.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[r.jsx("span",{className:"text-xs text-muted capitalize",children:b.contact_type}),r.jsx(it,{status:b.status})]})]},b.id))}):r.jsx(jt,{icon:r.jsx(M1,{size:32}),title:"No contacts yet",description:o?`No contacts matching "${o}".`:"Add your first contact to get started."})]})}function uS({onClose:a,onSuccess:n}){const[s,o]=c.useState(""),[u,f]=c.useState(""),[h,p]=c.useState(""),[x,g]=c.useState("lead"),[y,b]=c.useState(!1),j=async S=>{if(S.preventDefault(),!!s.trim()){b(!0);try{await pe("/api/contacts",{method:"POST",body:JSON.stringify({name:s.trim(),email:u.trim()||void 0,company:h.trim()||void 0,contact_type:x})}),n(),a()}catch{}finally{b(!1)}}};return r.jsxs("form",{onSubmit:j,className:"bg-panel border border-border rounded-lg p-4 mb-4 space-y-3",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Name"}),r.jsx("input",{value:s,onChange:S=>o(S.target.value),placeholder:"Contact name",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Email"}),r.jsx("input",{value:u,onChange:S=>f(S.target.value),placeholder:"email@example.com",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Company"}),r.jsx("input",{value:h,onChange:S=>p(S.target.value),placeholder:"Company name",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Type"}),r.jsxs("select",{value:x,onChange:S=>g(S.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[r.jsx("option",{value:"lead",children:"Lead"}),r.jsx("option",{value:"client",children:"Client"}),r.jsx("option",{value:"partner",children:"Partner"}),r.jsx("option",{value:"vendor",children:"Vendor"})]})]})]}),r.jsxs("div",{className:"flex gap-2 justify-end",children:[r.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),r.jsx("button",{type:"submit",disabled:y||!s.trim(),className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:y?"Creating...":"Create contact"})]})]})}function dS(){const{id:a}=uo(),n=ii(),s=va(["contact:upserted"]),{data:o,loading:u,refetch:f}=xe(a?`/api/contacts/${a}`:null,[s]),{data:h}=xe(a?`/api/contacts/${a}/timeline`:null,[s]),[p,x]=c.useState(!1),[g,y]=c.useState(""),[b,j]=c.useState(""),[S,w]=c.useState(""),[N,E]=c.useState(""),[C,T]=c.useState(""),[D,Y]=c.useState(!1),[F,L]=c.useState(!1),z=c.useCallback(()=>{o&&(y(o.name),j(o.email||""),w(o.phone||""),E(o.company||""),T(o.notes||""),x(!0))},[o]),q=c.useCallback(async()=>{if(!(!a||!g.trim())){Y(!0);try{await pe(`/api/contacts/${a}`,{method:"PUT",body:JSON.stringify({name:g.trim(),email:b.trim()||null,phone:S.trim()||null,company:N.trim()||null,notes:C.trim()||null})}),x(!1),f()}catch{}finally{Y(!1)}}},[a,g,b,S,N,C,f]),Q=c.useCallback(async()=>{if(!(!a||!confirm("Delete this contact? This cannot be undone."))){L(!0);try{await pe(`/api/contacts/${a}`,{method:"DELETE"}),n("/contacts")}catch{L(!1)}}},[a,n]);return u?r.jsx("div",{className:"p-6",children:r.jsx(at,{count:4})}):o?r.jsxs("div",{className:"p-6 max-w-4xl",children:[r.jsxs(ht,{to:"/contacts",className:"inline-flex items-center gap-1 text-xs text-muted hover:text-white mb-4",children:[r.jsx(fi,{size:14})," Back to contacts"]}),r.jsx(nt,{title:o.name,subtitle:`${o.contact_type} · Added ${new Date(o.created_at).toLocaleDateString()}`,action:r.jsxs("div",{className:"flex items-center gap-2",children:[!p&&r.jsx("button",{onClick:z,className:"px-3 py-1.5 text-xs font-medium bg-cyber/10 border border-cyber/30 text-cyber rounded-lg hover:bg-cyber/20 transition-colors",children:"Edit"}),r.jsxs("button",{onClick:Q,disabled:F,className:"flex items-center gap-1 px-3 py-1.5 text-xs font-medium bg-critical/10 border border-critical/30 text-critical rounded-lg hover:bg-critical/20 disabled:opacity-50 transition-colors",children:[r.jsx(Kl,{size:14})," ",F?"Deleting...":"Delete"]}),r.jsx(it,{status:o.status})]})}),p?r.jsxs("div",{className:"bg-panel border border-border rounded-lg p-4 mb-6 space-y-3",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Name"}),r.jsx("input",{value:g,onChange:J=>y(J.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Email"}),r.jsx("input",{value:b,onChange:J=>j(J.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber"})]})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Phone"}),r.jsx("input",{value:S,onChange:J=>w(J.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Company"}),r.jsx("input",{value:N,onChange:J=>E(J.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber"})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Notes"}),r.jsx("textarea",{value:C,onChange:J=>T(J.target.value),rows:3,className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white resize-none focus:outline-none focus:border-cyber"})]}),r.jsxs("div",{className:"flex gap-2 justify-end",children:[r.jsx("button",{onClick:()=>x(!1),className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),r.jsx("button",{onClick:q,disabled:D||!g.trim(),className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:D?"Saving...":"Save"})]})]}):r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border mb-6",children:[{label:"Email",value:o.email},{label:"Phone",value:o.phone},{label:"Company",value:o.company},{label:"Notes",value:o.notes}].map(J=>J.value?r.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[r.jsx("span",{className:"text-sm text-muted",children:J.label}),r.jsx("span",{className:"text-sm font-medium",children:J.value})]},J.label):null)}),r.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Timeline"}),h!=null&&h.length?r.jsx("div",{className:"space-y-2",children:h.map(J=>r.jsxs("div",{className:"bg-panel border border-border rounded-lg px-4 py-3",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[r.jsx("span",{className:"text-xs text-cyber font-medium",children:J.event_type.replace(/_/g," ")}),r.jsx("span",{className:"text-xs text-muted",children:new Date(J.created_at).toLocaleString()})]}),J.description&&r.jsx("p",{className:"text-sm",children:J.description})]},J.id))}):r.jsx(jt,{icon:r.jsx(M1,{size:32}),title:"No activity yet",description:"Events will appear here as agents interact with this contact."})]}):r.jsx("div",{className:"p-6 text-muted",children:"Contact not found"})}const fS=["all","active","completed","archived"],j8={blue:"bg-cyber/20 border-cyber/40",green:"bg-matrix/20 border-matrix/40",red:"bg-critical/20 border-critical/40",yellow:"bg-warning/20 border-warning/40",purple:"bg-wealth/20 border-wealth/40"};function mS(){const a=va(["project:created","project:updated"]),[n,s]=c.useState("all"),[o,u]=c.useState(""),[f,h]=c.useState(!1),{data:p,loading:x,refetch:g}=xe("/api/projects",[a]),y=c.useMemo(()=>{if(!p)return[];let b=p;if(n!=="all"&&(b=b.filter(j=>j.status===n)),o.trim()){const j=o.toLowerCase();b=b.filter(S=>S.name.toLowerCase().includes(j)||(S.description||"").toLowerCase().includes(j))}return b},[p,n,o]);return r.jsxs("div",{className:"p-6 max-w-4xl",children:[r.jsx(nt,{title:"Projects",subtitle:"Organize work into projects",action:r.jsxs("button",{onClick:()=>h(!f),className:"flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[r.jsx(Ut,{size:14})," New project"]})}),f&&r.jsx(hS,{onClose:()=>h(!1),onSuccess:g}),r.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:fS.map(b=>r.jsx("button",{onClick:()=>s(b),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${n===b?"bg-panel text-white":"text-muted hover:text-white"}`,children:b},b))}),r.jsxs("div",{className:"relative mb-4",children:[r.jsx(Xn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted"}),r.jsx("input",{value:o,onChange:b=>u(b.target.value),placeholder:"Search projects...",className:"w-full bg-surface border border-border rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),x?r.jsx(at,{count:4}):y.length?r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:y.map(b=>r.jsxs(ht,{to:`/projects/${b.id}`,className:`bg-panel border rounded-lg p-4 hover:bg-surface/50 transition-colors ${b.color&&j8[b.color]?j8[b.color]:"border-border"}`,children:[r.jsxs("div",{className:"flex items-start justify-between mb-2",children:[r.jsx("h3",{className:"text-sm font-medium truncate",children:b.name}),r.jsx(it,{status:b.status})]}),b.description&&r.jsx("p",{className:"text-xs text-muted line-clamp-2",children:b.description}),r.jsx("p",{className:"text-xs text-muted mt-2",children:new Date(b.created_at).toLocaleDateString()})]},b.id))}):r.jsx(jt,{icon:r.jsx(rp,{size:32}),title:"No projects yet",description:o?`No projects matching "${o}".`:"Create your first project to organize work."})]})}function hS({onClose:a,onSuccess:n}){const[s,o]=c.useState(""),[u,f]=c.useState(""),[h,p]=c.useState(""),[x,g]=c.useState(!1),y=async b=>{if(b.preventDefault(),!!s.trim()){g(!0);try{await pe("/api/projects",{method:"POST",body:JSON.stringify({name:s.trim(),description:u.trim()||void 0,color:h||void 0})}),n(),a()}catch{}finally{g(!1)}}};return r.jsxs("form",{onSubmit:y,className:"bg-panel border border-border rounded-lg p-4 mb-4 space-y-3",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Name"}),r.jsx("input",{value:s,onChange:b=>o(b.target.value),placeholder:"Project name",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Color"}),r.jsxs("select",{value:h,onChange:b=>p(b.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[r.jsx("option",{value:"",children:"None"}),r.jsx("option",{value:"blue",children:"Blue"}),r.jsx("option",{value:"green",children:"Green"}),r.jsx("option",{value:"red",children:"Red"}),r.jsx("option",{value:"yellow",children:"Yellow"}),r.jsx("option",{value:"purple",children:"Purple"})]})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Description (optional)"}),r.jsx("textarea",{value:u,onChange:b=>f(b.target.value),rows:2,className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber resize-none"})]}),r.jsxs("div",{className:"flex gap-2 justify-end",children:[r.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),r.jsx("button",{type:"submit",disabled:x||!s.trim(),className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:x?"Creating...":"Create project"})]})]})}function pS(){const{id:a}=uo(),n=va(["task:started","task:completed","task:failed"]),{data:s,loading:o}=xe(a?`/api/projects/${a}`:null),{data:u}=xe(a?`/api/projects/${a}/tasks`:null,[n]);return o?r.jsx("div",{className:"p-6",children:r.jsx(at,{count:4})}):s?r.jsxs("div",{className:"p-6 max-w-4xl",children:[r.jsxs(ht,{to:"/projects",className:"inline-flex items-center gap-1 text-xs text-muted hover:text-white mb-4",children:[r.jsx(fi,{size:14})," Back to projects"]}),r.jsx(nt,{title:s.name,subtitle:s.description||`Created ${new Date(s.created_at).toLocaleDateString()}`,action:r.jsx(it,{status:s.status})}),u&&r.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[r.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[r.jsx("p",{className:"text-xs text-muted",children:"Total tasks"}),r.jsx("p",{className:"text-lg font-bold",children:u.length})]}),r.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[r.jsx("p",{className:"text-xs text-muted",children:"Completed"}),r.jsx("p",{className:"text-lg font-bold",children:u.filter(f=>f.status==="completed").length})]}),r.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[r.jsx("p",{className:"text-xs text-muted",children:"In progress"}),r.jsx("p",{className:"text-lg font-bold",children:u.filter(f=>f.status==="in_progress").length})]})]}),r.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Tasks"}),u!=null&&u.length?r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:u.map(f=>r.jsxs(ht,{to:`/tasks/${f.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-surface/50 transition-colors",children:[r.jsxs("div",{className:"min-w-0 mr-3",children:[r.jsx("p",{className:"text-sm font-medium truncate",children:f.title}),r.jsx("p",{className:"text-xs text-muted",children:new Date(f.created_at).toLocaleString()})]}),r.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[f.priority&&f.priority!=="normal"&&r.jsx("span",{className:"text-xs text-warning",children:f.priority}),r.jsx(it,{status:f.status})]})]},f.id))}):r.jsx(jt,{icon:r.jsx(li,{size:32}),title:"No tasks in this project",description:"Tasks assigned to this project will appear here."})]}):r.jsx("div",{className:"p-6 text-muted",children:"Project not found"})}function xS({steps:a,currentStep:n,children:s}){return r.jsxs("div",{children:[r.jsx("div",{className:"flex items-center gap-2 mb-6",children:a.map((o,u)=>r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx("div",{className:`w-2 h-2 rounded-full transition-colors ${u<n?"bg-matrix":u===n?"bg-cyber":"bg-border"}`}),r.jsx("span",{className:`text-xs transition-colors ${u===n?"text-white font-medium":"text-muted"}`,children:o})]}),u<a.length-1&&r.jsx("div",{className:`w-6 h-px ${u<n?"bg-matrix/50":"bg-border"}`})]},o))}),s]})}function ro(a){const n=Date.now()-new Date(a).getTime(),s=Math.floor(n/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const o=Math.floor(s/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function gS(){const[a,n]=c.useState("triggers"),[s,o]=c.useState(""),[u,f]=c.useState(!1),[h,p]=c.useState(null),[x,g]=c.useState(null),[y,b]=c.useState(null),[j,S]=c.useState(!1),{data:w,loading:N,refetch:E}=xe("/api/triggers"),{data:C,loading:T}=xe(a==="events"?"/api/webhook-events":null),D=c.useMemo(()=>{if(!w)return[];if(!s.trim())return w;const L=s.toLowerCase();return w.filter(z=>z.name.toLowerCase().includes(L)||z.event_type.toLowerCase().includes(L))},[w,s]),Y=async L=>{try{await pe(`/api/triggers/${L.id}`,{method:"PUT",body:JSON.stringify({enabled:!L.enabled})}),E()}catch{we("error","Couldn't toggle trigger. Try again?")}},F=async()=>{if(y){S(!0);try{await pe(`/api/triggers/${y.id}`,{method:"DELETE"}),we("success","Trigger deleted"),E()}catch{we("error","Couldn't delete trigger. Try again?")}finally{S(!1),b(null)}}};return r.jsxs("div",{className:"p-6 max-w-4xl",children:[r.jsx(nt,{title:"Automations",subtitle:"Triggers and webhook events",action:r.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[r.jsx(Ut,{size:14})," New trigger"]})}),r.jsx("div",{className:"flex gap-1 mb-4 border-b border-border",children:["triggers","events"].map(L=>r.jsx("button",{onClick:()=>n(L),className:`px-3 py-2 text-xs font-medium border-b-2 transition-colors capitalize ${a===L?"border-cyber text-white":"border-transparent text-muted hover:text-white"}`,children:L},L))}),a==="triggers"&&r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"relative mb-4",children:[r.jsx(Xn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted"}),r.jsx("input",{value:s,onChange:L=>o(L.target.value),placeholder:"Search triggers...",className:"w-full bg-surface border border-border rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),N?r.jsx(at,{count:4}):D.length?r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:D.map(L=>r.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[r.jsxs("button",{className:"min-w-0 mr-3 text-left flex-1",onClick:()=>p(L.id),children:[r.jsx("p",{className:"text-sm font-medium truncate hover:text-cyber transition-colors",children:L.name}),r.jsxs("p",{className:"text-xs text-muted",children:[r.jsx("span",{className:"text-cyber",children:L.event_type==="custom"?"Custom Webhook":L.event_type})," → ",r.jsx("span",{children:_p(L.action_type)}),L.fire_count>0&&r.jsxs("span",{className:"ml-2",children:["· ",L.fire_count," ",L.fire_count===1?"run":"runs"]}),L.last_fired_at&&r.jsxs("span",{className:"ml-2",children:["· ",ro(L.last_fired_at)]})]})]}),r.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[r.jsx("button",{onClick:()=>p(L.id),className:"text-muted hover:text-cyber transition-colors",title:"View details",children:r.jsx(T1,{size:14})}),r.jsx("button",{onClick:()=>b(L),className:"text-muted hover:text-critical transition-colors",title:"Delete",children:r.jsx(Kl,{size:14})}),r.jsx(go,{checked:L.enabled,onChange:()=>Y(L)})]})]},L.id))}):r.jsx(jt,{icon:r.jsx(so,{size:32}),title:"No triggers yet",description:s?`No triggers matching "${s}".`:"Create a trigger to automate agent actions."})]}),a==="events"&&r.jsx(r.Fragment,{children:T?r.jsx(at,{count:5}):C!=null&&C.length?r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:C.map(L=>r.jsxs("button",{onClick:()=>g(L.id),className:"flex items-center justify-between px-4 py-3 w-full text-left hover:bg-surface/50 transition-colors",children:[r.jsxs("div",{className:"min-w-0 mr-3",children:[r.jsx("p",{className:"text-sm font-medium truncate",children:L.event_type}),r.jsxs("p",{className:"text-xs text-muted",children:[L.source&&r.jsx("span",{className:"text-cyber",children:L.source}),L.source&&" · ",ro(L.created_at)]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(it,{status:L.status}),r.jsx(q6,{size:12,className:"text-muted"})]})]},L.id))}):r.jsx(jt,{icon:r.jsx(so,{size:32}),title:"No webhook events yet",description:"Incoming webhooks will be logged here."})}),u&&r.jsx(bS,{onClose:()=>f(!1),onSuccess:()=>{E(),f(!1)}}),h&&r.jsx(vS,{triggerId:h,onClose:()=>p(null),onUpdate:E}),x&&r.jsx(jS,{eventId:x,onClose:()=>g(null)}),r.jsx(bo,{open:!!y,onClose:()=>b(null),onConfirm:F,title:"Delete trigger",message:`Delete "${y==null?void 0:y.name}"? This can't be undone.`,confirmLabel:"Delete",loading:j})]})}function _p(a){return{run_agent:"Run Agent",save_contact:"Save Contact",update_contact:"Update Contact",log_contact_event:"Log Event",webhook_forward:"Forward Webhook"}[a]||a}const A8=["Name","Event","Action","Config","Cooldown","Confirm"];function bS({onClose:a,onSuccess:n}){var Q,J;const[s,o]=c.useState(0),[u,f]=c.useState(!1),[h,p]=c.useState(""),[x,g]=c.useState(""),[y,b]=c.useState(""),[j,S]=c.useState(""),[w,N]=c.useState({}),[E,C]=c.useState(0),{data:T}=xe("/api/triggers/action-types"),{data:D}=xe("/api/triggers/ghl-events"),{data:Y}=xe("/api/agents"),F=()=>{switch(s){case 0:return!!h.trim();case 1:return!!y;case 2:return!!j;case 3:return L();case 4:return!0;default:return!0}},L=()=>{var ee;switch(j){case"run_agent":return!!(w.agent_id||w.prompt);case"webhook_forward":return!!((ee=w.url)!=null&&ee.trim());default:return!0}},z=async()=>{f(!0);try{await pe("/api/triggers",{method:"POST",body:JSON.stringify({name:h.trim(),description:x.trim()||null,event_type:y,action_type:j,action_config:w,cooldown_seconds:E})}),we("success","Trigger created"),n()}catch{we("error","Couldn't create trigger. Try again?")}finally{f(!1)}},q=c.useMemo(()=>{if(!D)return{};const ee={};for(const ue of D)ee[ue.category]||(ee[ue.category]=[]),ee[ue.category].push(ue);return ee},[D]);return r.jsx(Ua,{open:!0,onClose:a,title:"New trigger",maxWidth:"max-w-lg",children:r.jsxs(xS,{steps:A8,currentStep:s,children:[s===0&&r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Trigger name"}),r.jsx("input",{value:h,onChange:ee=>p(ee.target.value),placeholder:"New lead notification",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber",autoFocus:!0})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Description (optional)"}),r.jsx("textarea",{value:x,onChange:ee=>g(ee.target.value),placeholder:"What does this trigger do?",rows:2,className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber resize-none"})]})]}),s===1&&r.jsx("div",{className:"space-y-3 max-h-[50vh] overflow-y-auto",children:Object.entries(q).map(([ee,ue])=>r.jsxs("div",{children:[r.jsx("p",{className:"text-xs text-muted uppercase tracking-wider mb-1.5",children:ee}),r.jsx("div",{className:"space-y-1",children:ue.map(le=>r.jsx("button",{onClick:()=>b(le.value),className:`w-full text-left px-3 py-2 rounded text-sm transition-colors border ${y===le.value?"border-cyber bg-cyber/10 text-white":"border-border hover:border-muted text-muted hover:text-white"}`,children:le.label},le.value))})]},ee))}),s===2&&r.jsx("div",{className:"space-y-2",children:T==null?void 0:T.map(ee=>r.jsxs("button",{onClick:()=>{S(ee.value),N({})},className:`w-full text-left px-3 py-3 rounded-lg text-sm transition-colors border ${j===ee.value?"border-cyber bg-cyber/10":"border-border hover:border-muted"}`,children:[r.jsx("span",{className:"block font-medium",children:ee.label}),r.jsx("span",{className:"block text-xs text-muted mt-0.5",children:ee.description})]},ee.value))}),s===3&&r.jsx(yS,{actionType:j,config:w,onChange:N,agents:Y||[]}),s===4&&r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Minimum seconds between fires"}),r.jsx("input",{type:"number",value:E,onChange:ee=>C(Math.max(0,parseInt(ee.target.value)||0)),min:0,className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber"}),r.jsx("p",{className:"text-xs text-muted mt-1",children:"Set to 0 for no cooldown. Prevents duplicate processing of rapid events."})]}),s===5&&r.jsx("div",{className:"space-y-3",children:r.jsxs("div",{className:"bg-surface/50 rounded-lg p-3 space-y-2",children:[r.jsx(bt,{label:"Name",value:h}),r.jsx(bt,{label:"Event",value:((Q=D==null?void 0:D.find(ee=>ee.value===y))==null?void 0:Q.label)||y}),r.jsx(bt,{label:"Action",value:((J=T==null?void 0:T.find(ee=>ee.value===j))==null?void 0:J.label)||j}),E>0&&r.jsx(bt,{label:"Cooldown",value:`${E}s`}),x&&r.jsx(bt,{label:"Description",value:x})]})}),r.jsxs("div",{className:"flex justify-between mt-6",children:[r.jsx("button",{onClick:()=>s>0?o(s-1):a(),className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:s===0?"Cancel":"Back"}),s<A8.length-1?r.jsx("button",{onClick:()=>o(s+1),disabled:!F(),className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:"Next"}):r.jsx("button",{onClick:z,disabled:u,className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:u?"Creating...":"Create trigger"})]})]})})}function bt({label:a,value:n}){return r.jsxs("div",{className:"flex justify-between text-sm",children:[r.jsx("span",{className:"text-muted",children:a}),r.jsx("span",{className:"font-medium",children:n})]})}function yS({actionType:a,config:n,onChange:s,agents:o}){const u=(f,h)=>s({...n,[f]:h});switch(a){case"run_agent":return r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Agent"}),r.jsxs("select",{value:n.agent_id||"",onChange:f=>u("agent_id",f.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[r.jsx("option",{value:"",children:"Orchestrator (default)"}),o.map(f=>r.jsx("option",{value:f.id,children:f.name},f.id))]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Prompt template"}),r.jsx("textarea",{value:n.prompt||"",onChange:f=>u("prompt",f.target.value),placeholder:"Process this webhook: {{payload}}",rows:3,className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber resize-none"}),r.jsxs("p",{className:"text-xs text-muted mt-1",children:["Use ","{{payload}}"," to include webhook data"]})]})]});case"save_contact":return r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Contact type"}),r.jsxs("select",{value:n.contact_type||"lead",onChange:f=>u("contact_type",f.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[r.jsx("option",{value:"lead",children:"Lead"}),r.jsx("option",{value:"customer",children:"Customer"}),r.jsx("option",{value:"vendor",children:"Vendor"}),r.jsx("option",{value:"partner",children:"Partner"}),r.jsx("option",{value:"other",children:"Other"})]})]}),r.jsx(S8,{config:n,onChange:s})]});case"update_contact":return r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Match field"}),r.jsxs("select",{value:n.match_field||"email",onChange:f=>u("match_field",f.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[r.jsx("option",{value:"email",children:"Email"}),r.jsx("option",{value:"phone",children:"Phone"}),r.jsx("option",{value:"name",children:"Name"})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Match value path (in payload)"}),r.jsx("input",{value:n.value_path||"",onChange:f=>u("value_path",f.target.value),placeholder:"contact.email",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),r.jsx(S8,{config:n,onChange:s})]});case"log_contact_event":return r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Match field"}),r.jsxs("select",{value:n.match_field||"email",onChange:f=>u("match_field",f.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[r.jsx("option",{value:"email",children:"Email"}),r.jsx("option",{value:"phone",children:"Phone"})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Match value path"}),r.jsx("input",{value:n.value_path||"",onChange:f=>u("value_path",f.target.value),placeholder:"contact.email",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Event type"}),r.jsx("input",{value:n.event_type||"",onChange:f=>u("event_type",f.target.value),placeholder:"form_submission",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Title template"}),r.jsx("input",{value:n.title_template||"",onChange:f=>u("title_template",f.target.value),placeholder:"Submitted form: {{form_name}}",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]})]});case"webhook_forward":return r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Forward URL"}),r.jsx("input",{value:n.url||"",onChange:f=>u("url",f.target.value),placeholder:"https://example.com/webhook",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"HTTP Method"}),r.jsxs("select",{value:n.method||"POST",onChange:f=>u("method",f.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[r.jsx("option",{value:"POST",children:"POST"}),r.jsx("option",{value:"PUT",children:"PUT"})]})]})]});default:return r.jsx("p",{className:"text-sm text-muted",children:"No configuration needed for this action type."})}}function S8({config:a,onChange:n}){const{data:s}=xe("/api/triggers/action-types"),o=(s==null?void 0:s.contactFields)||[],u=a.field_mappings||{},f=(h,p)=>{const x={...u};p?x[h]=p:delete x[h],n({...a,field_mappings:x})};return r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-2",children:"Field mappings (payload path → contact field)"}),r.jsx("div",{className:"space-y-2",children:o.map(h=>r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-xs text-muted w-20 shrink-0",children:h.label}),r.jsx("input",{value:u[h.value]||"",onChange:p=>f(h.value,p.target.value),placeholder:`payload.${h.value}`,className:"flex-1 bg-surface border border-border rounded px-2 py-1.5 text-xs text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]},h.value))})]})}function vS({triggerId:a,onClose:n,onUpdate:s}){const{data:o,loading:u}=xe(`/api/triggers/${a}`),[f,h]=c.useState(null);c.useEffect(()=>{(o==null?void 0:o.event_type)==="custom"&&o.webhook_token&&pe(`/api/triggers/${a}/webhook-url`).then(x=>h(x.data.webhookUrl)).catch(()=>{})},[o,a]);const p=async()=>{if(o)try{await pe(`/api/triggers/${a}`,{method:"PUT",body:JSON.stringify({enabled:!o.enabled})}),s()}catch{we("error","Couldn't toggle trigger")}};return r.jsx(Ua,{open:!0,onClose:n,title:"Trigger details",maxWidth:"max-w-lg",children:u?r.jsx(at,{count:3}):o?r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h4",{className:"text-sm font-semibold",children:o.name}),o.description&&r.jsx("p",{className:"text-xs text-muted mt-0.5",children:o.description})]}),r.jsx(go,{checked:o.enabled,onChange:p})]}),r.jsxs("div",{className:"bg-surface/50 rounded-lg p-3 space-y-2 text-sm",children:[r.jsx(bt,{label:"Event",value:o.event_type==="custom"?"Custom Webhook":o.event_type}),r.jsx(bt,{label:"Action",value:_p(o.action_type)}),r.jsx(bt,{label:"Fires",value:String(o.fire_count)}),o.cooldown_seconds>0&&r.jsx(bt,{label:"Cooldown",value:`${o.cooldown_seconds}s`}),o.last_fired_at&&r.jsx(bt,{label:"Last fired",value:ro(o.last_fired_at)}),r.jsx(bt,{label:"Created",value:new Date(o.created_at).toLocaleDateString()})]}),f&&r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Webhook URL"}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx("input",{readOnly:!0,value:f,className:"flex-1 bg-surface border border-border rounded px-3 py-2 text-xs text-white font-mono"}),r.jsx("button",{onClick:()=>{navigator.clipboard.writeText(f),we("info","Copied to clipboard")},className:"px-3 py-2 text-xs bg-cyber/10 border border-cyber/30 text-cyber rounded hover:bg-cyber/20 transition-colors shrink-0",children:"Copy"})]})]}),o.action_config&&Object.keys(o.action_config).length>0&&r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Action config"}),r.jsx("pre",{className:"bg-surface border border-border rounded p-3 text-xs text-muted overflow-x-auto max-h-32",children:JSON.stringify(o.action_config,null,2)})]}),o.executions.length>0&&r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-2",children:"Recent executions"}),r.jsx("div",{className:"bg-surface/50 rounded-lg divide-y divide-border",children:o.executions.map(x=>r.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[r.jsx("span",{className:"text-xs text-muted",children:ro(x.created_at)}),r.jsx(it,{status:x.status})]},x.id))})]})]}):r.jsx("p",{className:"text-sm text-muted",children:"Trigger not found."})})}function jS({eventId:a,onClose:n}){const{data:s,loading:o}=xe(`/api/webhook-events/${a}`),u=s!=null&&s.payload?typeof s.payload=="string"?s.payload:JSON.stringify(s.payload,null,2):"";return r.jsx(Ua,{open:!0,onClose:n,title:"Webhook event",maxWidth:"max-w-lg",children:o?r.jsx(at,{count:3}):s?r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"bg-surface/50 rounded-lg p-3 space-y-2 text-sm",children:[r.jsx(bt,{label:"Event type",value:s.event_type}),r.jsx(bt,{label:"Source",value:s.source||"Unknown"}),r.jsx(bt,{label:"Status",value:s.status}),r.jsx(bt,{label:"Received",value:new Date(s.created_at).toLocaleString()})]}),u&&r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Payload"}),r.jsx("pre",{className:"bg-surface border border-border rounded p-3 text-xs text-muted overflow-x-auto max-h-64 whitespace-pre-wrap",children:u})]})]}):r.jsx("p",{className:"text-sm text-muted",children:"Event not found."})})}const AS=["all","draft","active","paused","archived"],SS={draft:[{value:"active",label:"Activate"}],active:[{value:"paused",label:"Pause"},{value:"archived",label:"Archive"}],paused:[{value:"active",label:"Resume"},{value:"archived",label:"Archive"}],archived:[{value:"draft",label:"Restore to draft"}]};function ES(){const[a,n]=c.useState("all"),[s,o]=c.useState(""),[u,f]=c.useState(!1),[h,p]=c.useState(null),[x,g]=c.useState(null),[y,b]=c.useState(!1),{data:j,loading:S,refetch:w}=xe("/api/workflows"),N=c.useMemo(()=>{if(!j)return[];let T=j;if(a!=="all"&&(T=T.filter(D=>D.status===a)),s.trim()){const D=s.toLowerCase();T=T.filter(Y=>Y.name.toLowerCase().includes(D)||(Y.description||"").toLowerCase().includes(D))}return T},[j,a,s]),E=async()=>{if(x){b(!0);try{await pe(`/api/workflows/${x.id}`,{method:"DELETE"}),we("success","Workflow deleted"),w()}catch{we("error","Couldn't delete workflow")}finally{b(!1),g(null)}}},C=async(T,D)=>{try{await pe(`/api/workflows/${T}`,{method:"PATCH",body:JSON.stringify({status:D})}),we("success",`Workflow ${D}`),w(),(h==null?void 0:h.id)===T&&p(null)}catch{we("error","Couldn't update workflow status")}};return r.jsxs("div",{className:"p-6 max-w-4xl",children:[r.jsx(nt,{title:"Workflows",subtitle:"Multi-step agent workflows",action:r.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[r.jsx(Ut,{size:14})," New workflow"]})}),r.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:AS.map(T=>r.jsx("button",{onClick:()=>n(T),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${a===T?"bg-panel text-white":"text-muted hover:text-white"}`,children:T},T))}),r.jsxs("div",{className:"relative mb-4",children:[r.jsx(Xn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted"}),r.jsx("input",{value:s,onChange:T=>o(T.target.value),placeholder:"Search workflows...",className:"w-full bg-surface border border-border rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),S?r.jsx(at,{count:4}):N.length?r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:N.map(T=>r.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[r.jsxs("button",{className:"min-w-0 mr-3 text-left flex-1",onClick:()=>p(T),children:[r.jsx("p",{className:"text-sm font-medium truncate hover:text-cyber transition-colors",children:T.name}),r.jsxs("p",{className:"text-xs text-muted",children:[T.description||"No description",r.jsxs("span",{className:"ml-2",children:["· ",new Date(T.updated_at).toLocaleDateString()]})]})]}),r.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[r.jsx(it,{status:T.status}),r.jsx("button",{onClick:()=>p(T),className:"text-muted hover:text-cyber transition-colors",title:"Details",children:r.jsx(T1,{size:14})}),T.status==="active"&&r.jsx("button",{onClick:()=>C(T.id,"paused"),className:"text-muted hover:text-warning transition-colors",title:"Pause",children:r.jsx(jp,{size:14})}),r.jsx("button",{onClick:()=>g(T),className:"text-muted hover:text-critical transition-colors",title:"Delete",children:r.jsx(Kl,{size:14})})]})]},T.id))}):r.jsx(jt,{icon:r.jsx(ap,{size:32}),title:"No workflows yet",description:s?`No workflows matching "${s}".`:"Create a workflow to orchestrate multi-step agent tasks.",action:r.jsxs("button",{onClick:()=>f(!0),className:"mt-3 flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[r.jsx(Ut,{size:14})," Create your first workflow"]})}),u&&r.jsx(wS,{onClose:()=>f(!1),onSuccess:()=>{w(),f(!1)}}),h&&r.jsx(NS,{workflow:h,onClose:()=>p(null),onStatusChange:C}),r.jsx(bo,{open:!!x,onClose:()=>g(null),onConfirm:E,title:"Delete workflow",message:`Delete "${x==null?void 0:x.name}"? This can't be undone.`,confirmLabel:"Delete",loading:y})]})}function wS({onClose:a,onSuccess:n}){const[s,o]=c.useState(""),[u,f]=c.useState(""),[h,p]=c.useState(`{
|
|
74
|
-
"steps": []
|
|
75
|
-
}`),[x,g]=c.useState(!1),[y,b]=c.useState(null),j=async S=>{if(S.preventDefault(),!s.trim())return;let w;try{w=JSON.parse(h),b(null)}catch{b("Invalid JSON");return}g(!0);try{await pe("/api/workflows",{method:"POST",body:JSON.stringify({name:s.trim(),description:u.trim()||null,definition:w})}),we("success","Workflow created"),n()}catch{we("error","Couldn't create workflow")}finally{g(!1)}};return r.jsx(Ua,{open:!0,onClose:a,title:"New workflow",maxWidth:"max-w-lg",children:r.jsxs("form",{onSubmit:j,className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Name"}),r.jsx("input",{value:s,onChange:S=>o(S.target.value),placeholder:"Onboarding flow",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber",autoFocus:!0})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Description"}),r.jsx("input",{value:u,onChange:S=>f(S.target.value),placeholder:"What does this workflow do?",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Definition (JSON)"}),r.jsx("textarea",{value:h,onChange:S=>{p(S.target.value),b(null)},rows:8,className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white font-mono placeholder:text-muted/50 focus:outline-none focus:border-cyber resize-none"}),y&&r.jsx("p",{className:"text-xs text-critical mt-1",children:y})]}),r.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[r.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),r.jsx("button",{type:"submit",disabled:x||!s.trim(),className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:x?"Creating...":"Create workflow"})]})]})})}function NS({workflow:a,onClose:n,onStatusChange:s}){let o;try{const f=typeof a.definition=="string"?JSON.parse(a.definition):a.definition;o=JSON.stringify(f,null,2)}catch{o=String(a.definition)}const u=SS[a.status]||[];return r.jsx(Ua,{open:!0,onClose:n,title:"Workflow details",maxWidth:"max-w-lg",children:r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h4",{className:"text-sm font-semibold",children:a.name}),a.description&&r.jsx("p",{className:"text-xs text-muted mt-0.5",children:a.description})]}),r.jsx(it,{status:a.status})]}),r.jsxs("div",{className:"bg-surface/50 rounded-lg p-3 space-y-2 text-sm",children:[r.jsxs("div",{className:"flex justify-between",children:[r.jsx("span",{className:"text-muted",children:"Status"}),r.jsx("span",{className:"font-medium capitalize",children:a.status})]}),r.jsxs("div",{className:"flex justify-between",children:[r.jsx("span",{className:"text-muted",children:"Created"}),r.jsx("span",{className:"font-medium",children:new Date(a.created_at).toLocaleDateString()})]}),r.jsxs("div",{className:"flex justify-between",children:[r.jsx("span",{className:"text-muted",children:"Updated"}),r.jsx("span",{className:"font-medium",children:new Date(a.updated_at).toLocaleString()})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Definition"}),r.jsx("pre",{className:"bg-surface border border-border rounded p-3 text-xs text-muted overflow-x-auto max-h-48 whitespace-pre-wrap",children:o})]}),u.length>0&&r.jsx("div",{className:"flex gap-2 justify-end pt-2",children:u.map(f=>r.jsx("button",{onClick:()=>s(a.id,f.value),className:`px-3 py-1.5 text-xs font-medium rounded transition-colors border ${f.value==="active"?"bg-matrix/10 border-matrix/30 text-matrix hover:bg-matrix/20":f.value==="archived"?"bg-muted/10 border-border text-muted hover:text-white":"bg-warning/10 border-warning/30 text-warning hover:bg-warning/20"}`,children:f.label},f.value))})]})})}function zp(a){const n=Date.now()-new Date(a).getTime(),s=Math.floor(n/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const o=Math.floor(s/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function MS(){const[a,n]=c.useState(""),[s,o]=c.useState(!1),[u,f]=c.useState(null),[h,p]=c.useState(null),[x,g]=c.useState(null),[y,b]=c.useState(!1),{data:j,loading:S,refetch:w}=xe("/api/a2a/connections"),N=c.useMemo(()=>{if(!j)return[];if(!a.trim())return j;const T=a.toLowerCase();return j.filter(D=>D.name.toLowerCase().includes(T)||D.endpoint_url.toLowerCase().includes(T))},[j,a]),E=async T=>{f(T);try{await pe(`/api/a2a/connections/${T}/test`,{method:"POST"}),we("success","Connection is healthy"),w()}catch{we("error","Connection test failed"),w()}finally{f(null)}},C=async()=>{if(x){b(!0);try{await pe(`/api/a2a/connections/${x.id}`,{method:"DELETE"}),we("success","Connection deleted"),w()}catch{we("error","Couldn't delete connection")}finally{b(!1),g(null)}}};return r.jsxs("div",{className:"p-6 max-w-4xl",children:[r.jsx(nt,{title:"Connections",subtitle:"A2A agent connections",action:r.jsxs("button",{onClick:()=>o(!s),className:"flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[r.jsx(Ut,{size:14})," New connection"]})}),r.jsxs("div",{className:"relative mb-4",children:[r.jsx(Xn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted"}),r.jsx("input",{value:a,onChange:T=>n(T.target.value),placeholder:"Search connections...",className:"w-full bg-surface border border-border rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),S?r.jsx(at,{count:4}):N.length?r.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:N.map(T=>r.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[r.jsxs("button",{className:"min-w-0 mr-3 text-left flex-1",onClick:()=>p(T),children:[r.jsx("p",{className:"text-sm font-medium truncate hover:text-cyber transition-colors",children:T.name}),r.jsxs("p",{className:"text-xs text-muted truncate",children:[r.jsx("span",{className:"text-cyber",children:T.endpoint_url}),r.jsxs("span",{className:"ml-2",children:["· ",T.trust_level.replace(/_/g," ")]}),T.auth_type!=="none"&&r.jsxs("span",{className:"ml-2",children:["· ",T.auth_type.replace(/_/g," ")]}),T.last_health_check_at&&r.jsxs("span",{className:"ml-2",children:["· checked ",zp(T.last_health_check_at)]})]}),T.skills&&T.skills.length>0&&r.jsxs("div",{className:"flex gap-1 mt-1",children:[T.skills.slice(0,3).map(D=>r.jsx("span",{className:"text-[10px] bg-surface px-1.5 py-0.5 rounded text-muted",children:D},D)),T.skills.length>3&&r.jsxs("span",{className:"text-[10px] text-muted",children:["+",T.skills.length-3]})]})]}),r.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[r.jsx(it,{status:T.status}),r.jsx("button",{onClick:()=>p(T),className:"text-muted hover:text-cyber transition-colors",title:"Details",children:r.jsx(T1,{size:14})}),r.jsx("button",{onClick:()=>E(T.id),disabled:u===T.id,className:"text-muted hover:text-cyber transition-colors disabled:opacity-50",title:"Test connection",children:r.jsx(C1,{size:14,className:u===T.id?"animate-spin":""})}),r.jsx("button",{onClick:()=>g(T),className:"text-muted hover:text-critical transition-colors",title:"Delete",children:r.jsx(Kl,{size:14})})]})]},T.id))}):r.jsx(jt,{icon:r.jsx(Sp,{size:32}),title:"No connections yet",description:a?`No connections matching "${a}".`:"Connect to external A2A agents."}),s&&r.jsx(CS,{onClose:()=>o(!1),onSuccess:()=>{w(),o(!1)}}),h&&r.jsx(TS,{connection:h,onClose:()=>p(null),onTest:()=>E(h.id),testing:u===h.id}),r.jsx(bo,{open:!!x,onClose:()=>g(null),onConfirm:C,title:"Delete connection",message:`Delete "${x==null?void 0:x.name}"? This can't be undone.`,confirmLabel:"Delete",loading:y})]})}function CS({onClose:a,onSuccess:n}){const[s,o]=c.useState(""),[u,f]=c.useState(""),[h,p]=c.useState(""),[x,g]=c.useState("read_only"),[y,b]=c.useState("none"),[j,S]=c.useState(""),[w,N]=c.useState(!1),[E,C]=c.useState(!1),T=async()=>{if(u.trim()){C(!0);try{const Y=await fetch(u.trim());if(Y.ok){const F=await Y.json();F.name&&!s&&o(F.name),F.url&&!h&&p(F.url),we("success","Agent card loaded")}}catch{we("error","Couldn't fetch agent card")}finally{C(!1)}}},D=async Y=>{if(Y.preventDefault(),!(!s.trim()||!u.trim()||!h.trim())){N(!0);try{await pe("/api/a2a/connections",{method:"POST",body:JSON.stringify({name:s.trim(),agent_card_url:u.trim(),endpoint_url:h.trim(),trust_level:x,auth_type:y,...y!=="none"&&j.trim()?{credential:j.trim()}:{}})}),we("success","Connection created"),n()}catch{we("error","Couldn't create connection")}finally{N(!1)}}};return r.jsx(Ua,{open:!0,onClose:a,title:"New connection",maxWidth:"max-w-lg",children:r.jsxs("form",{onSubmit:D,className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Agent card URL"}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx("input",{value:u,onChange:Y=>f(Y.target.value),placeholder:"https://agent.example.com/.well-known/agent-card.json",className:"flex-1 bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"}),r.jsx("button",{type:"button",onClick:T,disabled:E||!u.trim(),className:"px-3 py-2 text-xs bg-cyber/10 border border-cyber/30 text-cyber rounded hover:bg-cyber/20 transition-colors disabled:opacity-50 shrink-0",children:E?r.jsx(bn,{size:14,className:"animate-spin"}):"Discover"})]})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Name"}),r.jsx("input",{value:s,onChange:Y=>o(Y.target.value),placeholder:"Connection name",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Trust level"}),r.jsxs("select",{value:x,onChange:Y=>g(Y.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[r.jsx("option",{value:"read_only",children:"Read only"}),r.jsx("option",{value:"execute",children:"Execute"}),r.jsx("option",{value:"autonomous",children:"Autonomous"})]})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Endpoint URL"}),r.jsx("input",{value:h,onChange:Y=>p(Y.target.value),placeholder:"https://agent.example.com/a2a",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:"Auth type"}),r.jsxs("select",{value:y,onChange:Y=>b(Y.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[r.jsx("option",{value:"none",children:"None"}),r.jsx("option",{value:"bearer_token",children:"Bearer token"}),r.jsx("option",{value:"api_key",children:"API key"})]})]}),y!=="none"&&r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1",children:y==="bearer_token"?"Token":"API Key"}),r.jsx("input",{type:"password",value:j,onChange:Y=>S(Y.target.value),placeholder:y==="bearer_token"?"Bearer token":"API key value",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]})]}),r.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[r.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),r.jsx("button",{type:"submit",disabled:w||!s.trim()||!u.trim()||!h.trim(),className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:w?"Creating...":"Create connection"})]})]})})}function TS({connection:a,onClose:n,onTest:s,testing:o}){return r.jsx(Ua,{open:!0,onClose:n,title:"Connection details",maxWidth:"max-w-lg",children:r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h4",{className:"text-sm font-semibold",children:a.name}),a.description&&r.jsx("p",{className:"text-xs text-muted mt-0.5",children:a.description})]}),r.jsx(it,{status:a.status})]}),r.jsxs("div",{className:"bg-surface/50 rounded-lg p-3 space-y-2 text-sm",children:[r.jsx(Ll,{label:"Endpoint",value:a.endpoint_url}),r.jsx(Ll,{label:"Agent card",value:a.agent_card_url}),r.jsx(Ll,{label:"Trust level",value:a.trust_level.replace(/_/g," ")}),r.jsx(Ll,{label:"Auth type",value:a.auth_type==="none"?"None":a.auth_type.replace(/_/g," ")}),a.last_health_check_at&&r.jsx(Ll,{label:"Last health check",value:`${zp(a.last_health_check_at)} (${a.last_health_status||"unknown"})`}),r.jsx(Ll,{label:"Created",value:new Date(a.created_at).toLocaleDateString()})]}),a.skills&&a.skills.length>0&&r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted block mb-1.5",children:"Skills"}),r.jsx("div",{className:"flex gap-1.5 flex-wrap",children:a.skills.map(u=>r.jsx("span",{className:"text-xs bg-surface border border-border px-2 py-1 rounded",children:u},u))})]}),r.jsx("div",{className:"flex gap-2 justify-end pt-2",children:r.jsx("button",{onClick:s,disabled:o,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-cyber/10 border border-cyber/30 text-cyber rounded hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:o?r.jsxs(r.Fragment,{children:[r.jsx(bn,{size:14,className:"animate-spin"})," Testing..."]}):r.jsxs(r.Fragment,{children:[r.jsx(C1,{size:14})," Test connection"]})})})]})})}function Ll({label:a,value:n}){return r.jsxs("div",{className:"flex justify-between gap-4",children:[r.jsx("span",{className:"text-muted shrink-0",children:a}),r.jsx("span",{className:"font-medium text-right break-all",children:n})]})}const VS=[{value:"text",label:"Text"},{value:"checkbox",label:"Checkbox"},{value:"dropdown",label:"Dropdown"},{value:"date",label:"Date"},{value:"signature",label:"Signature"}],E8={text:"border-blue-400 bg-blue-400/10",checkbox:"border-green-400 bg-green-400/10",dropdown:"border-purple-400 bg-purple-400/10",date:"border-amber-400 bg-amber-400/10",signature:"border-pink-400 bg-pink-400/10"},w8={text:"bg-blue-400/80 text-blue-950",checkbox:"bg-green-400/80 text-green-950",dropdown:"bg-purple-400/80 text-purple-950",date:"bg-amber-400/80 text-amber-950",signature:"bg-pink-400/80 text-pink-950"};function HS(){const[a,n]=c.useState("upload"),[s,o]=c.useState(null),[u,f]=c.useState(null),[h,p]=c.useState([]),[x,g]=c.useState([]),[y,b]=c.useState([]),[j,S]=c.useState(null),[w,N]=c.useState(0),[E,C]=c.useState(!1),[T,D]=c.useState(null),[Y,F]=c.useState(null),L=c.useCallback(()=>{Y&&URL.revokeObjectURL(Y),n("upload"),o(null),f(null),p([]),g([]),b([]),S(null),N(0),C(!1),D(null),F(null)},[Y]),z=c.useCallback(async le=>{C(!0),D(null);try{const K=await le.arrayBuffer(),ne=new Uint8Array(K);let O="";for(let oe=0;oe<ne.length;oe++)O+=String.fromCharCode(ne[oe]);const B=btoa(O),I=await pe("/api/pdf-tools/convert",{method:"POST",body:JSON.stringify({pdfBase64:B})});o(B),f(le.name),p(I.data.pages),g(I.data.pageDimensions),n("detecting")}catch(K){D(K instanceof Error?K.message:"Upload failed")}finally{C(!1)}},[]),q=c.useCallback(async(le,K)=>{C(!0),D(null);try{const ne=await pe("/api/pdf-tools/detect",{method:"POST",body:JSON.stringify({pages:h,ollamaUrl:le,model:K})});b(ne.data.fields),n("editor")}catch(ne){D(ne instanceof Error?ne.message:"Detection failed")}finally{C(!1)}},[h]),Q=c.useCallback(async()=>{if(s){C(!0),D(null),n("generating");try{const le=Gn(),K=await fetch("/api/pdf-tools/generate",{method:"POST",headers:{"Content-Type":"application/json",...le?{Authorization:`Bearer ${le}`}:{}},body:JSON.stringify({originalPdfBase64:s,fields:y,pageDimensions:x})});if(!K.ok){const O=await K.json().catch(()=>({error:"Generation failed"}));throw new Error(O.error||"Generation failed")}const ne=await K.blob();F(URL.createObjectURL(ne)),n("done")}catch(le){D(le instanceof Error?le.message:"Generation failed"),n("editor")}finally{C(!1)}}},[s,y,x]),J=c.useCallback((le,K)=>{b(ne=>ne.map(O=>O.id===le?{...O,...K}:O))},[]),ee=c.useCallback(le=>{b(K=>K.filter(ne=>ne.id!==le)),S(K=>K===le?null:K)},[]),ue=c.useCallback(le=>{b(K=>[...K,le]),S(le.id)},[]);return r.jsxs("div",{className:"p-6 space-y-6",children:[r.jsx(nt,{title:"PDF Tools",subtitle:"Convert flat PDFs into fillable AcroForm documents"}),T&&r.jsx("div",{className:"bg-red-500/10 border border-red-500/30 rounded-lg px-4 py-3 text-red-400 text-sm",children:T}),a==="upload"&&r.jsx(LS,{onUpload:z,loading:E}),a==="detecting"&&r.jsx(ZS,{pages:h,onDetect:q,loading:E}),a==="editor"&&r.jsx(DS,{pages:h,fields:y,currentPage:w,selectedFieldId:j,onSetCurrentPage:N,onSelectField:S,onUpdateField:J,onDeleteField:ee,onAddField:ue,onGenerate:Q,onReset:L}),a==="generating"&&r.jsxs("div",{className:"flex flex-col items-center py-16 gap-4",children:[r.jsx(bn,{className:"w-12 h-12 text-accent animate-spin"}),r.jsx("p",{className:"text-muted",children:"Generating your fillable PDF..."})]}),a==="done"&&r.jsxs("div",{className:"flex flex-col items-center py-16 gap-6",children:[r.jsx("div",{className:"w-20 h-20 rounded-full bg-green-500/10 flex items-center justify-center",children:r.jsx(V1,{className:"w-10 h-10 text-green-400"})}),r.jsxs("div",{className:"text-center",children:[r.jsx("h2",{className:"text-xl font-bold",children:"Your fillable PDF is ready"}),r.jsx("p",{className:"text-muted text-sm mt-1",children:"Open it in any PDF viewer to fill in the form fields."})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[Y&&r.jsxs("a",{href:Y,download:(u==null?void 0:u.replace(/\.pdf$/i,"-fillable.pdf"))||"form-fillable.pdf",className:"btn btn-primary flex items-center gap-2",children:[r.jsx(Uj,{className:"w-4 h-4"}),"Download PDF"]}),r.jsxs("button",{onClick:L,className:"btn btn-secondary flex items-center gap-2",children:[r.jsx(C1,{className:"w-4 h-4"}),"Convert Another"]})]})]})]})}function LS({onUpload:a,loading:n}){const s=c.useRef(null),[o,u]=c.useState(!1);return r.jsxs("div",{className:`border-2 border-dashed rounded-xl p-12 text-center cursor-pointer transition-colors ${o?"border-accent bg-accent/5":"border-border hover:border-muted"}`,onClick:()=>{var f;return(f=s.current)==null?void 0:f.click()},onDragOver:f=>{f.preventDefault(),u(!0)},onDragLeave:()=>u(!1),onDrop:f=>{f.preventDefault(),u(!1);const h=f.dataTransfer.files[0];h&&a(h)},children:[r.jsx("input",{ref:s,type:"file",accept:".pdf",className:"hidden",onChange:f=>{var p;const h=(p=f.target.files)==null?void 0:p[0];h&&a(h)}}),n?r.jsxs("div",{className:"flex flex-col items-center gap-3",children:[r.jsx(bn,{className:"w-10 h-10 text-accent animate-spin"}),r.jsx("p",{className:"text-muted",children:"Converting PDF pages to images..."})]}):r.jsxs("div",{className:"flex flex-col items-center gap-3",children:[r.jsx("div",{className:"w-16 h-16 rounded-full bg-surface flex items-center justify-center",children:r.jsx(Xj,{className:"w-8 h-8 text-muted"})}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Drop a PDF here or click to browse"}),r.jsx("p",{className:"text-muted text-sm mt-1",children:"Max 20MB. The AI will detect fillable fields."})]})]})]})}function ZS({pages:a,onDetect:n,loading:s}){const[o,u]=c.useState("http://localhost:11434"),[f,h]=c.useState("llama3.2-vision");return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"bg-surface border border-border rounded-lg p-4 space-y-3",children:[r.jsx("h3",{className:"text-sm font-medium",children:"AI Field Detection"}),r.jsxs("p",{className:"text-xs text-muted",children:[a.length," ",a.length===1?"page":"pages"," ready. Configure your Ollama vision model, then detect fields."]}),r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted mb-1 block",children:"Ollama URL"}),r.jsx("input",{type:"text",value:o,onChange:p=>u(p.target.value),className:"input w-full",disabled:s})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted mb-1 block",children:"Vision Model"}),r.jsx("input",{type:"text",value:f,onChange:p=>h(p.target.value),className:"input w-full",disabled:s})]})]}),r.jsx("button",{onClick:()=>n(o,f),disabled:s,className:"btn btn-primary",children:s?r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(bn,{className:"w-4 h-4 animate-spin"}),"Detecting fields..."]}):"Detect Fields"})]}),r.jsx("div",{className:"grid grid-cols-3 gap-3",children:a.slice(0,6).map(p=>r.jsxs("div",{className:"relative bg-surface border border-border rounded-lg overflow-hidden",children:[r.jsx("img",{src:`data:image/png;base64,${p.imageBase64}`,alt:`Page ${p.page+1}`,className:"w-full"}),r.jsxs("div",{className:"absolute bottom-0 left-0 right-0 bg-black/60 px-2 py-1 text-xs text-gray-300",children:["Page ",p.page+1]}),s&&r.jsx("div",{className:"absolute inset-0 bg-black/40 flex items-center justify-center",children:r.jsx(bn,{className:"w-8 h-8 text-accent animate-spin"})})]},p.page))})]})}function DS({pages:a,fields:n,currentPage:s,selectedFieldId:o,onSetCurrentPage:u,onSelectField:f,onUpdateField:h,onDeleteField:p,onAddField:x,onGenerate:g,onReset:y}){const b=a[s],j=n.filter(E=>E.page===s),S=n.find(E=>E.id===o),w=c.useRef(null),N=c.useCallback(E=>{if(!w.current||!E.target.classList.contains("pdf-page-img"))return;const T=w.current.getBoundingClientRect(),D=(E.clientX-T.left)/T.width*100,Y=(E.clientY-T.top)/T.height*100;x({id:crypto.randomUUID(),label:`Field ${n.length+1}`,type:"text",page:s,x:Math.max(0,D-10),y:Math.max(0,Y-1.5),width:20,height:3,required:!1})},[x,s,n.length]);return b?r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsxs("button",{onClick:y,className:"flex items-center gap-1 text-muted hover:text-white text-sm",children:[r.jsx(fi,{className:"w-4 h-4"})," Start Over"]}),r.jsx("span",{className:"text-muted",children:"|"}),r.jsxs("span",{className:"text-sm text-muted",children:[n.length," ",n.length===1?"field":"fields"," detected"]})]}),r.jsxs("button",{onClick:g,disabled:n.length===0,className:"btn btn-primary flex items-center gap-2",children:[r.jsx(V1,{className:"w-4 h-4"})," Generate AcroForm PDF"]})]}),r.jsxs("div",{className:"grid grid-cols-[1fr_280px] gap-4",children:[r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{ref:w,className:"relative bg-surface rounded-lg overflow-hidden cursor-crosshair",onClick:N,children:[r.jsx("img",{src:`data:image/png;base64,${b.imageBase64}`,alt:`Page ${b.page+1}`,className:"pdf-page-img w-full block",draggable:!1}),j.map(E=>r.jsx(RS,{field:E,isSelected:E.id===o,containerRef:w,onSelect:()=>f(E.id),onUpdate:h},E.id))]}),a.length>1&&r.jsxs("div",{className:"flex items-center justify-center gap-3",children:[r.jsx("button",{onClick:()=>u(Math.max(0,s-1)),disabled:s===0,className:"p-1 rounded hover:bg-surface disabled:opacity-30 text-muted",children:r.jsx(kj,{className:"w-5 h-5"})}),r.jsxs("span",{className:"text-sm text-muted",children:["Page ",s+1," of ",a.length]}),r.jsx("button",{onClick:()=>u(Math.min(a.length-1,s+1)),disabled:s===a.length-1,className:"p-1 rounded hover:bg-surface disabled:opacity-30 text-muted",children:r.jsx(q6,{className:"w-5 h-5"})})]})]}),r.jsx("div",{className:"bg-surface border border-border rounded-lg overflow-y-auto max-h-[80vh] p-4",children:S?r.jsx(kS,{field:S,onUpdate:h,onDelete:p,onDeselect:()=>f(null)}):r.jsxs("div",{className:"text-center text-muted text-sm mt-8",children:[r.jsx("p",{children:"Click a field on the PDF to edit its properties."}),r.jsx("p",{className:"mt-2 text-xs",children:"Or click anywhere on the page to add a new field."})]})})]})]}):null}function RS({field:a,isSelected:n,containerRef:s,onSelect:o,onUpdate:u}){const[f,h]=c.useState(!1),p=c.useRef(null),x=E8[a.type]||E8.text,g=w8[a.type]||w8.text,y=c.useCallback(b=>{b.stopPropagation(),b.preventDefault(),o(),h(!0),p.current={startX:b.clientX,startY:b.clientY,origX:a.x,origY:a.y};const j=w=>{if(!p.current||!s.current)return;const N=s.current.getBoundingClientRect(),E=(w.clientX-p.current.startX)/N.width*100,C=(w.clientY-p.current.startY)/N.height*100;u(a.id,{x:Math.max(0,Math.min(100-a.width,p.current.origX+E)),y:Math.max(0,Math.min(100-a.height,p.current.origY+C))})},S=()=>{h(!1),p.current=null,document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",S)};document.addEventListener("mousemove",j),document.addEventListener("mouseup",S)},[a,s,o,u]);return r.jsx("div",{className:`absolute border-2 rounded ${x} ${n?"ring-2 ring-accent/50":""} cursor-grab`,style:{left:`${a.x}%`,top:`${a.y}%`,width:`${a.width}%`,height:`${a.height}%`,zIndex:n?20:10},onMouseDown:y,children:r.jsx("div",{className:`absolute -top-5 left-0 px-1.5 py-0.5 rounded text-[9px] font-medium whitespace-nowrap ${g}`,children:a.label})})}function kS({field:a,onUpdate:n,onDelete:s,onDeselect:o}){return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("h3",{className:"text-sm font-medium",children:"Field Properties"}),r.jsx("button",{onClick:o,className:"text-muted hover:text-white",children:r.jsx(io,{className:"w-4 h-4"})})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted mb-1 block",children:"Label"}),r.jsx("input",{type:"text",value:a.label,onChange:u=>n(a.id,{label:u.target.value}),className:"input w-full"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted mb-1 block",children:"Type"}),r.jsx("select",{value:a.type,onChange:u=>n(a.id,{type:u.target.value}),className:"input w-full",children:VS.map(u=>r.jsx("option",{value:u.value,children:u.label},u.value))})]}),r.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted",children:[r.jsx("input",{type:"checkbox",checked:a.required,onChange:u=>n(a.id,{required:u.target.checked})}),"Required field"]}),a.type==="dropdown"&&r.jsxs("div",{children:[r.jsx("label",{className:"text-xs text-muted mb-1 block",children:"Options"}),r.jsxs("div",{className:"space-y-1.5",children:[(a.options||[]).map((u,f)=>r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx("input",{type:"text",value:u,onChange:h=>{const p=[...a.options||[]];p[f]=h.target.value,n(a.id,{options:p})},className:"input flex-1 text-xs"}),r.jsx("button",{onClick:()=>n(a.id,{options:(a.options||[]).filter((h,p)=>p!==f)}),className:"text-muted hover:text-red-400",children:r.jsx(io,{className:"w-3 h-3"})})]},f)),r.jsxs("button",{onClick:()=>n(a.id,{options:[...a.options||[],""]}),className:"flex items-center gap-1 text-xs text-accent hover:text-accent/80",children:[r.jsx(Ut,{className:"w-3 h-3"})," Add option"]})]})]})]}),r.jsx("div",{className:"pt-2 border-t border-border",children:r.jsxs("button",{onClick:()=>s(a.id),className:"flex items-center gap-2 text-red-400 hover:text-red-300 text-sm",children:[r.jsx(Kl,{className:"w-4 h-4"})," Delete field"]})})]})}function _S({children:a}){return Gn()?r.jsx(r.Fragment,{children:a}):r.jsx(O8,{to:"/login",replace:!0})}function Br({children:a}){const{tier:n,loading:s}=$l();return s?null:n==="free"?r.jsx(O8,{to:"/settings",replace:!0}):r.jsx(r.Fragment,{children:a})}function zS(){return r.jsxs(G8,{children:[r.jsxs(yb,{children:[r.jsx(Ye,{path:"/login",element:r.jsx(lA,{})}),r.jsx(Ye,{path:"/onboarding",element:r.jsx(pA,{})}),r.jsxs(Ye,{path:"/*",element:r.jsx(_S,{children:r.jsx(nA,{})}),children:[r.jsx(Ye,{index:!0,element:r.jsx(bA,{})}),r.jsx(Ye,{path:"agents",element:r.jsx(vA,{})}),r.jsx(Ye,{path:"agents/:id",element:r.jsx(SA,{})}),r.jsx(Ye,{path:"tasks",element:r.jsx(wA,{})}),r.jsx(Ye,{path:"tasks/:id",element:r.jsx(MA,{})}),r.jsx(Ye,{path:"contacts",element:r.jsx(cS,{})}),r.jsx(Ye,{path:"contacts/:id",element:r.jsx(dS,{})}),r.jsx(Ye,{path:"projects",element:r.jsx(mS,{})}),r.jsx(Ye,{path:"projects/:id",element:r.jsx(pS,{})}),r.jsx(Ye,{path:"workflows",element:r.jsx(ES,{})}),r.jsx(Ye,{path:"automations",element:r.jsx(Br,{children:r.jsx(gS,{})})}),r.jsx(Ye,{path:"connections",element:r.jsx(Br,{children:r.jsx(MS,{})})}),r.jsx(Ye,{path:"approvals",element:r.jsx(Br,{children:r.jsx(TA,{})})}),r.jsx(Ye,{path:"activity",element:r.jsx(DA,{})}),r.jsx(Ye,{path:"schedules",element:r.jsx(Br,{children:r.jsx(zA,{})})}),r.jsx(Ye,{path:"pdf-tools",element:r.jsx(HS,{})}),r.jsx(Ye,{path:"chat",element:r.jsx(eS,{})}),r.jsx(Ye,{path:"settings",element:r.jsx(rS,{})})]})]}),r.jsx(Qj,{})]})}yg.createRoot(document.getElementById("root")).render(r.jsx(c.StrictMode,{children:r.jsx(qb,{basename:"/ui",children:r.jsx(zS,{})})}));
|