ohwow 0.10.0 → 0.11.0

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.
@@ -0,0 +1,109 @@
1
+ var XV=Object.defineProperty;var QV=(e,t,s)=>t in e?XV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var Ha=(e,t,s)=>QV(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function s(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(o){if(o.ep)return;o.ep=!0;const c=s(o);fetch(o.href,c)}})();var y1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var W2={exports:{}},ml={};/**
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 jg;function JV(){if(jg)return ml;jg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function s(l,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var h in o)h!=="key"&&(c[h]=o[h])}else c=o;return o=c.ref,{$$typeof:e,type:l,key:d,ref:o!==void 0?o:null,props:c}}return ml.Fragment=t,ml.jsx=s,ml.jsxs=s,ml}var Ng;function WV(){return Ng||(Ng=1,W2.exports=JV()),W2.exports}var a=WV(),eu={exports:{}},Me={};/**
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 Eg;function eT(){if(Eg)return Me;Eg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function w(k){return k===null||typeof k!="object"?null:(k=b&&k[b]||k["@@iterator"],typeof k=="function"?k:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,E={};function A(k,Y,K){this.props=k,this.context=Y,this.refs=E,this.updater=K||j}A.prototype.isReactComponent={},A.prototype.setState=function(k,Y){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,Y,"setState")},A.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function C(){}C.prototype=A.prototype;function M(k,Y,K){this.props=k,this.context=Y,this.refs=E,this.updater=K||j}var S=M.prototype=new C;S.constructor=M,N(S,A.prototype),S.isPureReactComponent=!0;var L=Array.isArray;function V(){}var _={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function T(k,Y,K){var q=K.ref;return{$$typeof:e,type:k,key:Y,ref:q!==void 0?q:null,props:K}}function D(k,Y){return T(k.type,Y,k.props)}function F(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function P(k){var Y={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(K){return Y[K]})}var U=/\/+/g;function W(k,Y){return typeof k=="object"&&k!==null&&k.key!=null?P(""+k.key):Y.toString(36)}function se(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(V,V):(k.status="pending",k.then(function(Y){k.status==="pending"&&(k.status="fulfilled",k.value=Y)},function(Y){k.status==="pending"&&(k.status="rejected",k.reason=Y)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function O(k,Y,K,q,z){var I=typeof k;(I==="undefined"||I==="boolean")&&(k=null);var te=!1;if(k===null)te=!0;else switch(I){case"bigint":case"string":case"number":te=!0;break;case"object":switch(k.$$typeof){case e:case t:te=!0;break;case x:return te=k._init,O(te(k._payload),Y,K,q,z)}}if(te)return z=z(k),te=q===""?"."+W(k,0):q,L(z)?(K="",te!=null&&(K=te.replace(U,"$&/")+"/"),O(z,Y,K,"",function(Ee){return Ee})):z!=null&&(F(z)&&(z=D(z,K+(z.key==null||k&&k.key===z.key?"":(""+z.key).replace(U,"$&/")+"/")+te)),Y.push(z)),1;te=0;var fe=q===""?".":q+":";if(L(k))for(var pe=0;pe<k.length;pe++)q=k[pe],I=fe+W(q,pe),te+=O(q,Y,K,I,z);else if(pe=w(k),typeof pe=="function")for(k=pe.call(k),pe=0;!(q=k.next()).done;)q=q.value,I=fe+W(q,pe++),te+=O(q,Y,K,I,z);else if(I==="object"){if(typeof k.then=="function")return O(se(k),Y,K,q,z);throw Y=String(k),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return te}function $(k,Y,K){if(k==null)return k;var q=[],z=0;return O(k,q,"","",function(I){return Y.call(K,I,z++)}),q}function B(k){if(k._status===-1){var Y=k._result;Y=Y(),Y.then(function(K){(k._status===0||k._status===-1)&&(k._status=1,k._result=K)},function(K){(k._status===0||k._status===-1)&&(k._status=2,k._result=K)}),k._status===-1&&(k._status=0,k._result=Y)}if(k._status===1)return k._result.default;throw k._result}var Q=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},J={map:$,forEach:function(k,Y,K){$(k,function(){Y.apply(this,arguments)},K)},count:function(k){var Y=0;return $(k,function(){Y++}),Y},toArray:function(k){return $(k,function(Y){return Y})||[]},only:function(k){if(!F(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Me.Activity=g,Me.Children=J,Me.Component=A,Me.Fragment=s,Me.Profiler=o,Me.PureComponent=M,Me.StrictMode=l,Me.Suspense=m,Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,Me.__COMPILER_RUNTIME={__proto__:null,c:function(k){return _.H.useMemoCache(k)}},Me.cache=function(k){return function(){return k.apply(null,arguments)}},Me.cacheSignal=function(){return null},Me.cloneElement=function(k,Y,K){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var q=N({},k.props),z=k.key;if(Y!=null)for(I in Y.key!==void 0&&(z=""+Y.key),Y)!H.call(Y,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&Y.ref===void 0||(q[I]=Y[I]);var I=arguments.length-2;if(I===1)q.children=K;else if(1<I){for(var te=Array(I),fe=0;fe<I;fe++)te[fe]=arguments[fe+2];q.children=te}return T(k.type,z,q)},Me.createContext=function(k){return k={$$typeof:d,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:c,_context:k},k},Me.createElement=function(k,Y,K){var q,z={},I=null;if(Y!=null)for(q in Y.key!==void 0&&(I=""+Y.key),Y)H.call(Y,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(z[q]=Y[q]);var te=arguments.length-2;if(te===1)z.children=K;else if(1<te){for(var fe=Array(te),pe=0;pe<te;pe++)fe[pe]=arguments[pe+2];z.children=fe}if(k&&k.defaultProps)for(q in te=k.defaultProps,te)z[q]===void 0&&(z[q]=te[q]);return T(k,I,z)},Me.createRef=function(){return{current:null}},Me.forwardRef=function(k){return{$$typeof:h,render:k}},Me.isValidElement=F,Me.lazy=function(k){return{$$typeof:x,_payload:{_status:-1,_result:k},_init:B}},Me.memo=function(k,Y){return{$$typeof:p,type:k,compare:Y===void 0?null:Y}},Me.startTransition=function(k){var Y=_.T,K={};_.T=K;try{var q=k(),z=_.S;z!==null&&z(K,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(V,Q)}catch(I){Q(I)}finally{Y!==null&&K.types!==null&&(Y.types=K.types),_.T=Y}},Me.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},Me.use=function(k){return _.H.use(k)},Me.useActionState=function(k,Y,K){return _.H.useActionState(k,Y,K)},Me.useCallback=function(k,Y){return _.H.useCallback(k,Y)},Me.useContext=function(k){return _.H.useContext(k)},Me.useDebugValue=function(){},Me.useDeferredValue=function(k,Y){return _.H.useDeferredValue(k,Y)},Me.useEffect=function(k,Y){return _.H.useEffect(k,Y)},Me.useEffectEvent=function(k){return _.H.useEffectEvent(k)},Me.useId=function(){return _.H.useId()},Me.useImperativeHandle=function(k,Y,K){return _.H.useImperativeHandle(k,Y,K)},Me.useInsertionEffect=function(k,Y){return _.H.useInsertionEffect(k,Y)},Me.useLayoutEffect=function(k,Y){return _.H.useLayoutEffect(k,Y)},Me.useMemo=function(k,Y){return _.H.useMemo(k,Y)},Me.useOptimistic=function(k,Y){return _.H.useOptimistic(k,Y)},Me.useReducer=function(k,Y,K){return _.H.useReducer(k,Y,K)},Me.useRef=function(k){return _.H.useRef(k)},Me.useState=function(k){return _.H.useState(k)},Me.useSyncExternalStore=function(k,Y,K){return _.H.useSyncExternalStore(k,Y,K)},Me.useTransition=function(){return _.H.useTransition()},Me.version="19.2.4",Me}var Mg;function ff(){return Mg||(Mg=1,eu.exports=eT()),eu.exports}var r=ff(),tu={exports:{}},fl={},au={exports:{}},nu={};/**
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 Sg;function tT(){return Sg||(Sg=1,(function(e){function t(O,$){var B=O.length;O.push($);e:for(;0<B;){var Q=B-1>>>1,J=O[Q];if(0<o(J,$))O[Q]=$,O[B]=J,B=Q;else break e}}function s(O){return O.length===0?null:O[0]}function l(O){if(O.length===0)return null;var $=O[0],B=O.pop();if(B!==$){O[0]=B;e:for(var Q=0,J=O.length,k=J>>>1;Q<k;){var Y=2*(Q+1)-1,K=O[Y],q=Y+1,z=O[q];if(0>o(K,B))q<J&&0>o(z,K)?(O[Q]=z,O[q]=B,Q=q):(O[Q]=K,O[Y]=B,Q=Y);else if(q<J&&0>o(z,B))O[Q]=z,O[q]=B,Q=q;else break e}}return $}function o(O,$){var B=O.sortIndex-$.sortIndex;return B!==0?B:O.id-$.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();e.unstable_now=function(){return d.now()-h}}var m=[],p=[],x=1,g=null,b=3,w=!1,j=!1,N=!1,E=!1,A=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function S(O){for(var $=s(p);$!==null;){if($.callback===null)l(p);else if($.startTime<=O)l(p),$.sortIndex=$.expirationTime,t(m,$);else break;$=s(p)}}function L(O){if(N=!1,S(O),!j)if(s(m)!==null)j=!0,V||(V=!0,P());else{var $=s(p);$!==null&&se(L,$.startTime-O)}}var V=!1,_=-1,H=5,T=-1;function D(){return E?!0:!(e.unstable_now()-T<H)}function F(){if(E=!1,V){var O=e.unstable_now();T=O;var $=!0;try{e:{j=!1,N&&(N=!1,C(_),_=-1),w=!0;var B=b;try{t:{for(S(O),g=s(m);g!==null&&!(g.expirationTime>O&&D());){var Q=g.callback;if(typeof Q=="function"){g.callback=null,b=g.priorityLevel;var J=Q(g.expirationTime<=O);if(O=e.unstable_now(),typeof J=="function"){g.callback=J,S(O),$=!0;break t}g===s(m)&&l(m),S(O)}else l(m);g=s(m)}if(g!==null)$=!0;else{var k=s(p);k!==null&&se(L,k.startTime-O),$=!1}}break e}finally{g=null,b=B,w=!1}$=void 0}}finally{$?P():V=!1}}}var P;if(typeof M=="function")P=function(){M(F)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,W=U.port2;U.port1.onmessage=F,P=function(){W.postMessage(null)}}else P=function(){A(F,0)};function se(O,$){_=A(function(){O(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.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"):H=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(O){switch(b){case 1:case 2:case 3:var $=3;break;default:$=b}var B=b;b=$;try{return O()}finally{b=B}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(O,$){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var B=b;b=O;try{return $()}finally{b=B}},e.unstable_scheduleCallback=function(O,$,B){var Q=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?Q+B:Q):B=Q,O){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=B+J,O={id:x++,callback:$,priorityLevel:O,startTime:B,expirationTime:J,sortIndex:-1},B>Q?(O.sortIndex=B,t(p,O),s(m)===null&&O===s(p)&&(N?(C(_),_=-1):N=!0,se(L,B-Q))):(O.sortIndex=J,t(m,O),j||w||(j=!0,V||(V=!0,P()))),O},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(O){var $=b;return function(){var B=b;b=$;try{return O.apply(this,arguments)}finally{b=B}}}})(nu)),nu}var Cg;function aT(){return Cg||(Cg=1,au.exports=tT()),au.exports}var ru={exports:{}},It={};/**
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 Zg;function nT(){if(Zg)return It;Zg=1;var e=ff();function t(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var l={d:{f:s,r:function(){throw Error(t(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(m,p,x){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:m,containerInfo:p,implementation:x}}var d=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return It.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,It.createPortal=function(m,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return c(m,p,null,x)},It.flushSync=function(m){var p=d.T,x=l.p;try{if(d.T=null,l.p=2,m)return m()}finally{d.T=p,l.p=x,l.d.f()}},It.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,l.d.C(m,p))},It.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},It.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var x=p.as,g=h(x,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,w=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?l.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:w}):x==="script"&&l.d.X(m,{crossOrigin:g,integrity:b,fetchPriority:w,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},It.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=h(p.as,p.crossOrigin);l.d.M(m,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&l.d.M(m)},It.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,g=h(x,p.crossOrigin);l.d.L(m,x,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},It.preloadModule=function(m,p){if(typeof m=="string")if(p){var x=h(p.as,p.crossOrigin);l.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else l.d.m(m)},It.requestFormReset=function(m){l.d.r(m)},It.unstable_batchedUpdates=function(m,p){return m(p)},It.useFormState=function(m,p,x){return d.H.useFormState(m,p,x)},It.useFormStatus=function(){return d.H.useHostTransitionStatus()},It.version="19.2.4",It}var Hg;function rT(){if(Hg)return ru.exports;Hg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ru.exports=nT(),ru.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 _g;function sT(){if(_g)return fl;_g=1;var e=aT(),t=ff(),s=rT();function l(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)i+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var i=n,u=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(u=i.return),n=i.return;while(n)}return i.tag===3?u:null}function d(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function h(n){if(n.tag===31){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function m(n){if(c(n)!==n)throw Error(l(188))}function p(n){var i=n.alternate;if(!i){if(i=c(n),i===null)throw Error(l(188));return i!==n?null:n}for(var u=n,f=i;;){var v=u.return;if(v===null)break;var y=v.alternate;if(y===null){if(f=v.return,f!==null){u=f;continue}break}if(v.child===y.child){for(y=v.child;y;){if(y===u)return m(v),n;if(y===f)return m(v),i;y=y.sibling}throw Error(l(188))}if(u.return!==f.return)u=v,f=y;else{for(var Z=!1,R=v.child;R;){if(R===u){Z=!0,u=v,f=y;break}if(R===f){Z=!0,f=v,u=y;break}R=R.sibling}if(!Z){for(R=y.child;R;){if(R===u){Z=!0,u=y,f=v;break}if(R===f){Z=!0,f=y,u=v;break}R=R.sibling}if(!Z)throw Error(l(189))}}if(u.alternate!==f)throw Error(l(190))}if(u.tag!==3)throw Error(l(188));return u.stateNode.current===u?n:i}function x(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=x(n),i!==null)return i;n=n.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),M=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),T=Symbol.for("react.activity"),D=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function P(n){return n===null||typeof n!="object"?null:(n=F&&n[F]||n["@@iterator"],typeof n=="function"?n:null)}var U=Symbol.for("react.client.reference");function W(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===U?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case N:return"Fragment";case A:return"Profiler";case E:return"StrictMode";case L:return"Suspense";case V:return"SuspenseList";case T:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case j:return"Portal";case M:return n.displayName||"Context";case C:return(n._context.displayName||"Context")+".Consumer";case S:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case _:return i=n.displayName||null,i!==null?i:W(n.type)||"Memo";case H:i=n._payload,n=n._init;try{return W(n(i))}catch{}}return null}var se=Array.isArray,O=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},Q=[],J=-1;function k(n){return{current:n}}function Y(n){0>J||(n.current=Q[J],Q[J]=null,J--)}function K(n,i){J++,Q[J]=n.current,n.current=i}var q=k(null),z=k(null),I=k(null),te=k(null);function fe(n,i){switch(K(I,i),K(z,n),K(q,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?Ux(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=Ux(i),n=Gx(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}Y(q),K(q,n)}function pe(){Y(q),Y(z),Y(I)}function Ee(n){n.memoizedState!==null&&K(te,n);var i=q.current,u=Gx(i,n.type);i!==u&&(K(z,n),K(q,u))}function Se(n){z.current===n&&(Y(q),Y(z)),te.current===n&&(Y(te),cl._currentValue=B)}var Ve,Pe;function Te(n){if(Ve===void 0)try{throw Error()}catch(u){var i=u.stack.trim().match(/\n( *(at )?)/);Ve=i&&i[1]||"",Pe=-1<u.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ve+n+Pe}var Ae=!1;function qt(n,i){if(!n||Ae)return"";Ae=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(i){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(le){var re=le}Reflect.construct(n,[],he)}else{try{he.call()}catch(le){re=le}n.call(he.prototype)}}else{try{throw Error()}catch(le){re=le}(he=n())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(le){if(le&&re&&typeof le.stack=="string")return[le.stack,re.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=f.DetermineComponentFrameRoot(),Z=y[0],R=y[1];if(Z&&R){var G=Z.split(`
44
+ `),ne=R.split(`
45
+ `);for(v=f=0;f<G.length&&!G[f].includes("DetermineComponentFrameRoot");)f++;for(;v<ne.length&&!ne[v].includes("DetermineComponentFrameRoot");)v++;if(f===G.length||v===ne.length)for(f=G.length-1,v=ne.length-1;1<=f&&0<=v&&G[f]!==ne[v];)v--;for(;1<=f&&0<=v;f--,v--)if(G[f]!==ne[v]){if(f!==1||v!==1)do if(f--,v--,0>v||G[f]!==ne[v]){var oe=`
46
+ `+G[f].replace(" at new "," at ");return n.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",n.displayName)),oe}while(1<=f&&0<=v);break}}}finally{Ae=!1,Error.prepareStackTrace=u}return(u=n?n.displayName||n.name:"")?Te(u):""}function Ce(n,i){switch(n.tag){case 26:case 27:case 5:return Te(n.type);case 16:return Te("Lazy");case 13:return n.child!==i&&i!==null?Te("Suspense Fallback"):Te("Suspense");case 19:return Te("SuspenseList");case 0:case 15:return qt(n.type,!1);case 11:return qt(n.type.render,!1);case 1:return qt(n.type,!0);case 31:return Te("Activity");default:return""}}function Tt(n){try{var i="",u=null;do i+=Ce(n,u),u=n,n=n.return;while(n);return i}catch(f){return`
47
+ Error generating stack: `+f.message+`
48
+ `+f.stack}}var ie=Object.prototype.hasOwnProperty,pt=e.unstable_scheduleCallback,Fe=e.unstable_cancelCallback,ut=e.unstable_shouldYield,yt=e.unstable_requestPaint,rt=e.unstable_now,je=e.unstable_getCurrentPriorityLevel,et=e.unstable_ImmediatePriority,Ue=e.unstable_UserBlockingPriority,Lt=e.unstable_NormalPriority,ai=e.unstable_LowPriority,ws=e.unstable_IdlePriority,zo=e.log,ni=e.unstable_setDisableYieldValue,Xt=null,xt=null;function On(n){if(typeof zo=="function"&&ni(n),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(Xt,n)}catch{}}var ia=Math.clz32?Math.clz32:RH,LH=Math.log,kH=Math.LN2;function RH(n){return n>>>=0,n===0?32:31-(LH(n)/kH|0)|0}var ri=256,si=262144,li=4194304;function j0(n){var i=n&42;if(i!==0)return i;switch(n&-n){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 n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function ii(n,i,u){var f=n.pendingLanes;if(f===0)return 0;var v=0,y=n.suspendedLanes,Z=n.pingedLanes;n=n.warmLanes;var R=f&134217727;return R!==0?(f=R&~y,f!==0?v=j0(f):(Z&=R,Z!==0?v=j0(Z):u||(u=R&~n,u!==0&&(v=j0(u))))):(R=f&~y,R!==0?v=j0(R):Z!==0?v=j0(Z):u||(u=f&~n,u!==0&&(v=j0(u)))),v===0?0:i!==0&&i!==v&&(i&y)===0&&(y=v&-v,u=i&-i,y>=u||y===32&&(u&4194048)!==0)?i:v}function As(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function DH(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 S3(){var n=li;return li<<=1,(li&62914560)===0&&(li=4194304),n}function qo(n){for(var i=[],u=0;31>u;u++)i.push(n);return i}function js(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function FH(n,i,u,f,v,y){var Z=n.pendingLanes;n.pendingLanes=u,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=u,n.entangledLanes&=u,n.errorRecoveryDisabledLanes&=u,n.shellSuspendCounter=0;var R=n.entanglements,G=n.expirationTimes,ne=n.hiddenUpdates;for(u=Z&~u;0<u;){var oe=31-ia(u),he=1<<oe;R[oe]=0,G[oe]=-1;var re=ne[oe];if(re!==null)for(ne[oe]=null,oe=0;oe<re.length;oe++){var le=re[oe];le!==null&&(le.lane&=-536870913)}u&=~he}f!==0&&C3(n,f,0),y!==0&&v===0&&n.tag!==0&&(n.suspendedLanes|=y&~(Z&~i))}function C3(n,i,u){n.pendingLanes|=i,n.suspendedLanes&=~i;var f=31-ia(i);n.entangledLanes|=i,n.entanglements[f]=n.entanglements[f]|1073741824|u&261930}function Z3(n,i){var u=n.entangledLanes|=i;for(n=n.entanglements;u;){var f=31-ia(u),v=1<<f;v&i|n[f]&i&&(n[f]|=i),u&=~v}}function H3(n,i){var u=i&-i;return u=(u&42)!==0?1:Io(u),(u&(n.suspendedLanes|i))!==0?0:u}function Io(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function $o(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function _3(){var n=$.p;return n!==0?n:(n=window.event,n===void 0?32:xg(n.type))}function V3(n,i){var u=$.p;try{return $.p=n,i()}finally{$.p=u}}var zn=Math.random().toString(36).slice(2),kt="__reactFiber$"+zn,Qt="__reactProps$"+zn,sr="__reactContainer$"+zn,Bo="__reactEvents$"+zn,OH="__reactListeners$"+zn,zH="__reactHandles$"+zn,T3="__reactResources$"+zn,Ns="__reactMarker$"+zn;function Po(n){delete n[kt],delete n[Qt],delete n[Bo],delete n[OH],delete n[zH]}function lr(n){var i=n[kt];if(i)return i;for(var u=n.parentNode;u;){if(i=u[sr]||u[kt]){if(u=i.alternate,i.child!==null||u!==null&&u.child!==null)for(n=eg(n);n!==null;){if(u=n[kt])return u;n=eg(n)}return i}n=u,u=n.parentNode}return null}function ir(n){if(n=n[kt]||n[sr]){var i=n.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return n}return null}function Es(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(l(33))}function or(n){var i=n[T3];return i||(i=n[T3]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Ht(n){n[Ns]=!0}var L3=new Set,k3={};function N0(n,i){cr(n,i),cr(n+"Capture",i)}function cr(n,i){for(k3[n]=i,n=0;n<i.length;n++)L3.add(i[n])}var qH=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]*$"),R3={},D3={};function IH(n){return ie.call(D3,n)?!0:ie.call(R3,n)?!1:qH.test(n)?D3[n]=!0:(R3[n]=!0,!1)}function oi(n,i,u){if(IH(i))if(u===null)n.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var f=i.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+u)}}function ci(n,i,u){if(u===null)n.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+u)}}function hn(n,i,u,f){if(f===null)n.removeAttribute(u);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(u);return}n.setAttributeNS(i,u,""+f)}}function ya(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function F3(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function $H(n,i,u){var f=Object.getOwnPropertyDescriptor(n.constructor.prototype,i);if(!n.hasOwnProperty(i)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var v=f.get,y=f.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return v.call(this)},set:function(Z){u=""+Z,y.call(this,Z)}}),Object.defineProperty(n,i,{enumerable:f.enumerable}),{getValue:function(){return u},setValue:function(Z){u=""+Z},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Uo(n){if(!n._valueTracker){var i=F3(n)?"checked":"value";n._valueTracker=$H(n,i,""+n[i])}}function O3(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var u=i.getValue(),f="";return n&&(f=F3(n)?n.checked?"true":"false":n.value),n=f,n!==u?(i.setValue(n),!0):!1}function ui(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var BH=/[\n"\\]/g;function wa(n){return n.replace(BH,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Go(n,i,u,f,v,y,Z,R){n.name="",Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"?n.type=Z:n.removeAttribute("type"),i!=null?Z==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+ya(i)):n.value!==""+ya(i)&&(n.value=""+ya(i)):Z!=="submit"&&Z!=="reset"||n.removeAttribute("value"),i!=null?Yo(n,Z,ya(i)):u!=null?Yo(n,Z,ya(u)):f!=null&&n.removeAttribute("value"),v==null&&y!=null&&(n.defaultChecked=!!y),v!=null&&(n.checked=v&&typeof v!="function"&&typeof v!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?n.name=""+ya(R):n.removeAttribute("name")}function z3(n,i,u,f,v,y,Z,R){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.type=y),i!=null||u!=null){if(!(y!=="submit"&&y!=="reset"||i!=null)){Uo(n);return}u=u!=null?""+ya(u):"",i=i!=null?""+ya(i):u,R||i===n.value||(n.value=i),n.defaultValue=i}f=f??v,f=typeof f!="function"&&typeof f!="symbol"&&!!f,n.checked=R?n.checked:!!f,n.defaultChecked=!!f,Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"&&(n.name=Z),Uo(n)}function Yo(n,i,u){i==="number"&&ui(n.ownerDocument)===n||n.defaultValue===""+u||(n.defaultValue=""+u)}function ur(n,i,u,f){if(n=n.options,i){i={};for(var v=0;v<u.length;v++)i["$"+u[v]]=!0;for(u=0;u<n.length;u++)v=i.hasOwnProperty("$"+n[u].value),n[u].selected!==v&&(n[u].selected=v),v&&f&&(n[u].defaultSelected=!0)}else{for(u=""+ya(u),i=null,v=0;v<n.length;v++){if(n[v].value===u){n[v].selected=!0,f&&(n[v].defaultSelected=!0);return}i!==null||n[v].disabled||(i=n[v])}i!==null&&(i.selected=!0)}}function q3(n,i,u){if(i!=null&&(i=""+ya(i),i!==n.value&&(n.value=i),u==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=u!=null?""+ya(u):""}function I3(n,i,u,f){if(i==null){if(f!=null){if(u!=null)throw Error(l(92));if(se(f)){if(1<f.length)throw Error(l(93));f=f[0]}u=f}u==null&&(u=""),i=u}u=ya(i),n.defaultValue=u,f=n.textContent,f===u&&f!==""&&f!==null&&(n.value=f),Uo(n)}function dr(n,i){if(i){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===3){u.nodeValue=i;return}}n.textContent=i}var PH=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 $3(n,i,u){var f=i.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?f?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":f?n.setProperty(i,u):typeof u!="number"||u===0||PH.has(i)?i==="float"?n.cssFloat=u:n[i]=(""+u).trim():n[i]=u+"px"}function B3(n,i,u){if(i!=null&&typeof i!="object")throw Error(l(62));if(n=n.style,u!=null){for(var f in u)!u.hasOwnProperty(f)||i!=null&&i.hasOwnProperty(f)||(f.indexOf("--")===0?n.setProperty(f,""):f==="float"?n.cssFloat="":n[f]="");for(var v in i)f=i[v],i.hasOwnProperty(v)&&u[v]!==f&&$3(n,v,f)}else for(var y in i)i.hasOwnProperty(y)&&$3(n,y,i[y])}function Ko(n){if(n.indexOf("-")===-1)return!1;switch(n){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 UH=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"]]),GH=/^[\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 di(n){return GH.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function mn(){}var Xo=null;function Qo(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var hr=null,mr=null;function P3(n){var i=ir(n);if(i&&(n=i.stateNode)){var u=n[Qt]||null;e:switch(n=i.stateNode,i.type){case"input":if(Go(n,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),i=u.name,u.type==="radio"&&i!=null){for(u=n;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+wa(""+i)+'"][type="radio"]'),i=0;i<u.length;i++){var f=u[i];if(f!==n&&f.form===n.form){var v=f[Qt]||null;if(!v)throw Error(l(90));Go(f,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(i=0;i<u.length;i++)f=u[i],f.form===n.form&&O3(f)}break e;case"textarea":q3(n,u.value,u.defaultValue);break e;case"select":i=u.value,i!=null&&ur(n,!!u.multiple,i,!1)}}}var Jo=!1;function U3(n,i,u){if(Jo)return n(i,u);Jo=!0;try{var f=n(i);return f}finally{if(Jo=!1,(hr!==null||mr!==null)&&(Ji(),hr&&(i=hr,n=mr,mr=hr=null,P3(i),n)))for(i=0;i<n.length;i++)P3(n[i])}}function Ms(n,i){var u=n.stateNode;if(u===null)return null;var f=u[Qt]||null;if(f===null)return null;u=f[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(n=n.type,f=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!f;break e;default:n=!1}if(n)return null;if(u&&typeof u!="function")throw Error(l(231,i,typeof u));return u}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wo=!1;if(fn)try{var Ss={};Object.defineProperty(Ss,"passive",{get:function(){Wo=!0}}),window.addEventListener("test",Ss,Ss),window.removeEventListener("test",Ss,Ss)}catch{Wo=!1}var qn=null,ec=null,hi=null;function G3(){if(hi)return hi;var n,i=ec,u=i.length,f,v="value"in qn?qn.value:qn.textContent,y=v.length;for(n=0;n<u&&i[n]===v[n];n++);var Z=u-n;for(f=1;f<=Z&&i[u-f]===v[y-f];f++);return hi=v.slice(n,1<f?1-f:void 0)}function mi(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function fi(){return!0}function Y3(){return!1}function Jt(n){function i(u,f,v,y,Z){this._reactName=u,this._targetInst=v,this.type=f,this.nativeEvent=y,this.target=Z,this.currentTarget=null;for(var R in n)n.hasOwnProperty(R)&&(u=n[R],this[R]=u?u(y):y[R]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?fi:Y3,this.isPropagationStopped=Y3,this}return g(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=fi)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=fi)},persist:function(){},isPersistent:fi}),i}var E0={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pi=Jt(E0),Cs=g({},E0,{view:0,detail:0}),YH=Jt(Cs),tc,ac,Zs,xi=g({},Cs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rc,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Zs&&(Zs&&n.type==="mousemove"?(tc=n.screenX-Zs.screenX,ac=n.screenY-Zs.screenY):ac=tc=0,Zs=n),tc)},movementY:function(n){return"movementY"in n?n.movementY:ac}}),K3=Jt(xi),KH=g({},xi,{dataTransfer:0}),XH=Jt(KH),QH=g({},Cs,{relatedTarget:0}),nc=Jt(QH),JH=g({},E0,{animationName:0,elapsedTime:0,pseudoElement:0}),WH=Jt(JH),e_=g({},E0,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),t_=Jt(e_),a_=g({},E0,{data:0}),X3=Jt(a_),n_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r_={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"},s_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function l_(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=s_[n])?!!i[n]:!1}function rc(){return l_}var i_=g({},Cs,{key:function(n){if(n.key){var i=n_[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=mi(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?r_[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rc,charCode:function(n){return n.type==="keypress"?mi(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?mi(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),o_=Jt(i_),c_=g({},xi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Q3=Jt(c_),u_=g({},Cs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rc}),d_=Jt(u_),h_=g({},E0,{propertyName:0,elapsedTime:0,pseudoElement:0}),m_=Jt(h_),f_=g({},xi,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),p_=Jt(f_),x_=g({},E0,{newState:0,oldState:0}),g_=Jt(x_),v_=[9,13,27,32],sc=fn&&"CompositionEvent"in window,Hs=null;fn&&"documentMode"in document&&(Hs=document.documentMode);var b_=fn&&"TextEvent"in window&&!Hs,J3=fn&&(!sc||Hs&&8<Hs&&11>=Hs),W3=" ",ep=!1;function tp(n,i){switch(n){case"keyup":return v_.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ap(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var fr=!1;function y_(n,i){switch(n){case"compositionend":return ap(i);case"keypress":return i.which!==32?null:(ep=!0,W3);case"textInput":return n=i.data,n===W3&&ep?null:n;default:return null}}function w_(n,i){if(fr)return n==="compositionend"||!sc&&tp(n,i)?(n=G3(),hi=ec=qn=null,fr=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return J3&&i.locale!=="ko"?null:i.data;default:return null}}var A_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function np(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!A_[n.type]:i==="textarea"}function rp(n,i,u,f){hr?mr?mr.push(f):mr=[f]:hr=f,i=s1(i,"onChange"),0<i.length&&(u=new pi("onChange","change",null,u,f),n.push({event:u,listeners:i}))}var _s=null,Vs=null;function j_(n){zx(n,0)}function gi(n){var i=Es(n);if(O3(i))return n}function sp(n,i){if(n==="change")return i}var lp=!1;if(fn){var lc;if(fn){var ic="oninput"in document;if(!ic){var ip=document.createElement("div");ip.setAttribute("oninput","return;"),ic=typeof ip.oninput=="function"}lc=ic}else lc=!1;lp=lc&&(!document.documentMode||9<document.documentMode)}function op(){_s&&(_s.detachEvent("onpropertychange",cp),Vs=_s=null)}function cp(n){if(n.propertyName==="value"&&gi(Vs)){var i=[];rp(i,Vs,n,Qo(n)),U3(j_,i)}}function N_(n,i,u){n==="focusin"?(op(),_s=i,Vs=u,_s.attachEvent("onpropertychange",cp)):n==="focusout"&&op()}function E_(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return gi(Vs)}function M_(n,i){if(n==="click")return gi(i)}function S_(n,i){if(n==="input"||n==="change")return gi(i)}function C_(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var oa=typeof Object.is=="function"?Object.is:C_;function Ts(n,i){if(oa(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var u=Object.keys(n),f=Object.keys(i);if(u.length!==f.length)return!1;for(f=0;f<u.length;f++){var v=u[f];if(!ie.call(i,v)||!oa(n[v],i[v]))return!1}return!0}function up(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function dp(n,i){var u=up(n);n=0;for(var f;u;){if(u.nodeType===3){if(f=n+u.textContent.length,n<=i&&f>=i)return{node:u,offset:i-n};n=f}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=up(u)}}function hp(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?hp(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function mp(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=ui(n.document);i instanceof n.HTMLIFrameElement;){try{var u=typeof i.contentWindow.location.href=="string"}catch{u=!1}if(u)n=i.contentWindow;else break;i=ui(n.document)}return i}function oc(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var Z_=fn&&"documentMode"in document&&11>=document.documentMode,pr=null,cc=null,Ls=null,uc=!1;function fp(n,i,u){var f=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;uc||pr==null||pr!==ui(f)||(f=pr,"selectionStart"in f&&oc(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),Ls&&Ts(Ls,f)||(Ls=f,f=s1(cc,"onSelect"),0<f.length&&(i=new pi("onSelect","select",null,i,u),n.push({event:i,listeners:f}),i.target=pr)))}function M0(n,i){var u={};return u[n.toLowerCase()]=i.toLowerCase(),u["Webkit"+n]="webkit"+i,u["Moz"+n]="moz"+i,u}var xr={animationend:M0("Animation","AnimationEnd"),animationiteration:M0("Animation","AnimationIteration"),animationstart:M0("Animation","AnimationStart"),transitionrun:M0("Transition","TransitionRun"),transitionstart:M0("Transition","TransitionStart"),transitioncancel:M0("Transition","TransitionCancel"),transitionend:M0("Transition","TransitionEnd")},dc={},pp={};fn&&(pp=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);function S0(n){if(dc[n])return dc[n];if(!xr[n])return n;var i=xr[n],u;for(u in i)if(i.hasOwnProperty(u)&&u in pp)return dc[n]=i[u];return n}var xp=S0("animationend"),gp=S0("animationiteration"),vp=S0("animationstart"),H_=S0("transitionrun"),__=S0("transitionstart"),V_=S0("transitioncancel"),bp=S0("transitionend"),yp=new Map,hc="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(" ");hc.push("scrollEnd");function Oa(n,i){yp.set(n,i),N0(i,[n])}var vi=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Aa=[],gr=0,mc=0;function bi(){for(var n=gr,i=mc=gr=0;i<n;){var u=Aa[i];Aa[i++]=null;var f=Aa[i];Aa[i++]=null;var v=Aa[i];Aa[i++]=null;var y=Aa[i];if(Aa[i++]=null,f!==null&&v!==null){var Z=f.pending;Z===null?v.next=v:(v.next=Z.next,Z.next=v),f.pending=v}y!==0&&wp(u,v,y)}}function yi(n,i,u,f){Aa[gr++]=n,Aa[gr++]=i,Aa[gr++]=u,Aa[gr++]=f,mc|=f,n.lanes|=f,n=n.alternate,n!==null&&(n.lanes|=f)}function fc(n,i,u,f){return yi(n,i,u,f),wi(n)}function C0(n,i){return yi(n,null,null,i),wi(n)}function wp(n,i,u){n.lanes|=u;var f=n.alternate;f!==null&&(f.lanes|=u);for(var v=!1,y=n.return;y!==null;)y.childLanes|=u,f=y.alternate,f!==null&&(f.childLanes|=u),y.tag===22&&(n=y.stateNode,n===null||n._visibility&1||(v=!0)),n=y,y=y.return;return n.tag===3?(y=n.stateNode,v&&i!==null&&(v=31-ia(u),n=y.hiddenUpdates,f=n[v],f===null?n[v]=[i]:f.push(i),i.lane=u|536870912),y):null}function wi(n){if(50<al)throw al=0,j2=null,Error(l(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var vr={};function T_(n,i,u,f){this.tag=n,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ca(n,i,u,f){return new T_(n,i,u,f)}function pc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function pn(n,i){var u=n.alternate;return u===null?(u=ca(n.tag,i,n.key,n.mode),u.elementType=n.elementType,u.type=n.type,u.stateNode=n.stateNode,u.alternate=n,n.alternate=u):(u.pendingProps=i,u.type=n.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=n.flags&65011712,u.childLanes=n.childLanes,u.lanes=n.lanes,u.child=n.child,u.memoizedProps=n.memoizedProps,u.memoizedState=n.memoizedState,u.updateQueue=n.updateQueue,i=n.dependencies,u.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},u.sibling=n.sibling,u.index=n.index,u.ref=n.ref,u.refCleanup=n.refCleanup,u}function Ap(n,i){n.flags&=65011714;var u=n.alternate;return u===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=u.childLanes,n.lanes=u.lanes,n.child=u.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=u.memoizedProps,n.memoizedState=u.memoizedState,n.updateQueue=u.updateQueue,n.type=u.type,i=u.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function Ai(n,i,u,f,v,y){var Z=0;if(f=n,typeof n=="function")pc(n)&&(Z=1);else if(typeof n=="string")Z=FV(n,u,q.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case T:return n=ca(31,u,i,v),n.elementType=T,n.lanes=y,n;case N:return Z0(u.children,v,y,i);case E:Z=8,v|=24;break;case A:return n=ca(12,u,i,v|2),n.elementType=A,n.lanes=y,n;case L:return n=ca(13,u,i,v),n.elementType=L,n.lanes=y,n;case V:return n=ca(19,u,i,v),n.elementType=V,n.lanes=y,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case M:Z=10;break e;case C:Z=9;break e;case S:Z=11;break e;case _:Z=14;break e;case H:Z=16,f=null;break e}Z=29,u=Error(l(130,n===null?"null":typeof n,"")),f=null}return i=ca(Z,u,i,v),i.elementType=n,i.type=f,i.lanes=y,i}function Z0(n,i,u,f){return n=ca(7,n,f,i),n.lanes=u,n}function xc(n,i,u){return n=ca(6,n,null,i),n.lanes=u,n}function jp(n){var i=ca(18,null,null,0);return i.stateNode=n,i}function gc(n,i,u){return i=ca(4,n.children!==null?n.children:[],n.key,i),i.lanes=u,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var Np=new WeakMap;function ja(n,i){if(typeof n=="object"&&n!==null){var u=Np.get(n);return u!==void 0?u:(i={value:n,source:i,stack:Tt(i)},Np.set(n,i),i)}return{value:n,source:i,stack:Tt(i)}}var br=[],yr=0,ji=null,ks=0,Na=[],Ea=0,In=null,Qa=1,Ja="";function xn(n,i){br[yr++]=ks,br[yr++]=ji,ji=n,ks=i}function Ep(n,i,u){Na[Ea++]=Qa,Na[Ea++]=Ja,Na[Ea++]=In,In=n;var f=Qa;n=Ja;var v=32-ia(f)-1;f&=~(1<<v),u+=1;var y=32-ia(i)+v;if(30<y){var Z=v-v%5;y=(f&(1<<Z)-1).toString(32),f>>=Z,v-=Z,Qa=1<<32-ia(i)+v|u<<v|f,Ja=y+n}else Qa=1<<y|u<<v|f,Ja=n}function vc(n){n.return!==null&&(xn(n,1),Ep(n,1,0))}function bc(n){for(;n===ji;)ji=br[--yr],br[yr]=null,ks=br[--yr],br[yr]=null;for(;n===In;)In=Na[--Ea],Na[Ea]=null,Ja=Na[--Ea],Na[Ea]=null,Qa=Na[--Ea],Na[Ea]=null}function Mp(n,i){Na[Ea++]=Qa,Na[Ea++]=Ja,Na[Ea++]=In,Qa=i.id,Ja=i.overflow,In=n}var Rt=null,at=null,Oe=!1,$n=null,Ma=!1,yc=Error(l(519));function Bn(n){var i=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rs(ja(i,n)),yc}function Sp(n){var i=n.stateNode,u=n.type,f=n.memoizedProps;switch(i[kt]=n,i[Qt]=f,u){case"dialog":ke("cancel",i),ke("close",i);break;case"iframe":case"object":case"embed":ke("load",i);break;case"video":case"audio":for(u=0;u<rl.length;u++)ke(rl[u],i);break;case"source":ke("error",i);break;case"img":case"image":case"link":ke("error",i),ke("load",i);break;case"details":ke("toggle",i);break;case"input":ke("invalid",i),z3(i,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0);break;case"select":ke("invalid",i);break;case"textarea":ke("invalid",i),I3(i,f.value,f.defaultValue,f.children)}u=f.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||i.textContent===""+u||f.suppressHydrationWarning===!0||Bx(i.textContent,u)?(f.popover!=null&&(ke("beforetoggle",i),ke("toggle",i)),f.onScroll!=null&&ke("scroll",i),f.onScrollEnd!=null&&ke("scrollend",i),f.onClick!=null&&(i.onclick=mn),i=!0):i=!1,i||Bn(n,!0)}function Cp(n){for(Rt=n.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:Ma=!1;return;case 27:case 3:Ma=!0;return;default:Rt=Rt.return}}function wr(n){if(n!==Rt)return!1;if(!Oe)return Cp(n),Oe=!0,!1;var i=n.tag,u;if((u=i!==3&&i!==27)&&((u=i===5)&&(u=n.type,u=!(u!=="form"&&u!=="button")||F2(n.type,n.memoizedProps)),u=!u),u&&at&&Bn(n),Cp(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(l(317));at=Wx(n)}else if(i===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(l(317));at=Wx(n)}else i===27?(i=at,r0(n.type)?(n=$2,$2=null,at=n):at=i):at=Rt?Ca(n.stateNode.nextSibling):null;return!0}function H0(){at=Rt=null,Oe=!1}function wc(){var n=$n;return n!==null&&(aa===null?aa=n:aa.push.apply(aa,n),$n=null),n}function Rs(n){$n===null?$n=[n]:$n.push(n)}var Ac=k(null),_0=null,gn=null;function Pn(n,i,u){K(Ac,i._currentValue),i._currentValue=u}function vn(n){n._currentValue=Ac.current,Y(Ac)}function jc(n,i,u){for(;n!==null;){var f=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,f!==null&&(f.childLanes|=i)):f!==null&&(f.childLanes&i)!==i&&(f.childLanes|=i),n===u)break;n=n.return}}function Nc(n,i,u,f){var v=n.child;for(v!==null&&(v.return=n);v!==null;){var y=v.dependencies;if(y!==null){var Z=v.child;y=y.firstContext;e:for(;y!==null;){var R=y;y=v;for(var G=0;G<i.length;G++)if(R.context===i[G]){y.lanes|=u,R=y.alternate,R!==null&&(R.lanes|=u),jc(y.return,u,n),f||(Z=null);break e}y=R.next}}else if(v.tag===18){if(Z=v.return,Z===null)throw Error(l(341));Z.lanes|=u,y=Z.alternate,y!==null&&(y.lanes|=u),jc(Z,u,n),Z=null}else Z=v.child;if(Z!==null)Z.return=v;else for(Z=v;Z!==null;){if(Z===n){Z=null;break}if(v=Z.sibling,v!==null){v.return=Z.return,Z=v;break}Z=Z.return}v=Z}}function Ar(n,i,u,f){n=null;for(var v=i,y=!1;v!==null;){if(!y){if((v.flags&524288)!==0)y=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var Z=v.alternate;if(Z===null)throw Error(l(387));if(Z=Z.memoizedProps,Z!==null){var R=v.type;oa(v.pendingProps.value,Z.value)||(n!==null?n.push(R):n=[R])}}else if(v===te.current){if(Z=v.alternate,Z===null)throw Error(l(387));Z.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(n!==null?n.push(cl):n=[cl])}v=v.return}n!==null&&Nc(i,n,u,f),i.flags|=262144}function Ni(n){for(n=n.firstContext;n!==null;){if(!oa(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function V0(n){_0=n,gn=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Dt(n){return Zp(_0,n)}function Ei(n,i){return _0===null&&V0(n),Zp(n,i)}function Zp(n,i){var u=i._currentValue;if(i={context:i,memoizedValue:u,next:null},gn===null){if(n===null)throw Error(l(308));gn=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else gn=gn.next=i;return u}var L_=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(u,f){n.push(f)}};this.abort=function(){i.aborted=!0,n.forEach(function(u){return u()})}},k_=e.unstable_scheduleCallback,R_=e.unstable_NormalPriority,wt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ec(){return{controller:new L_,data:new Map,refCount:0}}function Ds(n){n.refCount--,n.refCount===0&&k_(R_,function(){n.controller.abort()})}var Fs=null,Mc=0,jr=0,Nr=null;function D_(n,i){if(Fs===null){var u=Fs=[];Mc=0,jr=Z2(),Nr={status:"pending",value:void 0,then:function(f){u.push(f)}}}return Mc++,i.then(Hp,Hp),i}function Hp(){if(--Mc===0&&Fs!==null){Nr!==null&&(Nr.status="fulfilled");var n=Fs;Fs=null,jr=0,Nr=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function F_(n,i){var u=[],f={status:"pending",value:null,reason:null,then:function(v){u.push(v)}};return n.then(function(){f.status="fulfilled",f.value=i;for(var v=0;v<u.length;v++)(0,u[v])(i)},function(v){for(f.status="rejected",f.reason=v,v=0;v<u.length;v++)(0,u[v])(void 0)}),f}var _p=O.S;O.S=function(n,i){fx=rt(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&D_(n,i),_p!==null&&_p(n,i)};var T0=k(null);function Sc(){var n=T0.current;return n!==null?n:Je.pooledCache}function Mi(n,i){i===null?K(T0,T0.current):K(T0,i.pool)}function Vp(){var n=Sc();return n===null?null:{parent:wt._currentValue,pool:n}}var Er=Error(l(460)),Cc=Error(l(474)),Si=Error(l(542)),Ci={then:function(){}};function Tp(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Lp(n,i,u){switch(u=n[u],u===void 0?n.push(i):u!==i&&(i.then(mn,mn),i=u),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,Rp(n),n;default:if(typeof i.status=="string")i.then(mn,mn);else{if(n=Je,n!==null&&100<n.shellSuspendCounter)throw Error(l(482));n=i,n.status="pending",n.then(function(f){if(i.status==="pending"){var v=i;v.status="fulfilled",v.value=f}},function(f){if(i.status==="pending"){var v=i;v.status="rejected",v.reason=f}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,Rp(n),n}throw k0=i,Er}}function L0(n){try{var i=n._init;return i(n._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(k0=u,Er):u}}var k0=null;function kp(){if(k0===null)throw Error(l(459));var n=k0;return k0=null,n}function Rp(n){if(n===Er||n===Si)throw Error(l(483))}var Mr=null,Os=0;function Zi(n){var i=Os;return Os+=1,Mr===null&&(Mr=[]),Lp(Mr,n,i)}function zs(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function Hi(n,i){throw i.$$typeof===b?Error(l(525)):(n=Object.prototype.toString.call(i),Error(l(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function Dp(n){function i(ee,X){if(n){var ae=ee.deletions;ae===null?(ee.deletions=[X],ee.flags|=16):ae.push(X)}}function u(ee,X){if(!n)return null;for(;X!==null;)i(ee,X),X=X.sibling;return null}function f(ee){for(var X=new Map;ee!==null;)ee.key!==null?X.set(ee.key,ee):X.set(ee.index,ee),ee=ee.sibling;return X}function v(ee,X){return ee=pn(ee,X),ee.index=0,ee.sibling=null,ee}function y(ee,X,ae){return ee.index=ae,n?(ae=ee.alternate,ae!==null?(ae=ae.index,ae<X?(ee.flags|=67108866,X):ae):(ee.flags|=67108866,X)):(ee.flags|=1048576,X)}function Z(ee){return n&&ee.alternate===null&&(ee.flags|=67108866),ee}function R(ee,X,ae,de){return X===null||X.tag!==6?(X=xc(ae,ee.mode,de),X.return=ee,X):(X=v(X,ae),X.return=ee,X)}function G(ee,X,ae,de){var be=ae.type;return be===N?oe(ee,X,ae.props.children,de,ae.key):X!==null&&(X.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===H&&L0(be)===X.type)?(X=v(X,ae.props),zs(X,ae),X.return=ee,X):(X=Ai(ae.type,ae.key,ae.props,null,ee.mode,de),zs(X,ae),X.return=ee,X)}function ne(ee,X,ae,de){return X===null||X.tag!==4||X.stateNode.containerInfo!==ae.containerInfo||X.stateNode.implementation!==ae.implementation?(X=gc(ae,ee.mode,de),X.return=ee,X):(X=v(X,ae.children||[]),X.return=ee,X)}function oe(ee,X,ae,de,be){return X===null||X.tag!==7?(X=Z0(ae,ee.mode,de,be),X.return=ee,X):(X=v(X,ae),X.return=ee,X)}function he(ee,X,ae){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return X=xc(""+X,ee.mode,ae),X.return=ee,X;if(typeof X=="object"&&X!==null){switch(X.$$typeof){case w:return ae=Ai(X.type,X.key,X.props,null,ee.mode,ae),zs(ae,X),ae.return=ee,ae;case j:return X=gc(X,ee.mode,ae),X.return=ee,X;case H:return X=L0(X),he(ee,X,ae)}if(se(X)||P(X))return X=Z0(X,ee.mode,ae,null),X.return=ee,X;if(typeof X.then=="function")return he(ee,Zi(X),ae);if(X.$$typeof===M)return he(ee,Ei(ee,X),ae);Hi(ee,X)}return null}function re(ee,X,ae,de){var be=X!==null?X.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return be!==null?null:R(ee,X,""+ae,de);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case w:return ae.key===be?G(ee,X,ae,de):null;case j:return ae.key===be?ne(ee,X,ae,de):null;case H:return ae=L0(ae),re(ee,X,ae,de)}if(se(ae)||P(ae))return be!==null?null:oe(ee,X,ae,de,null);if(typeof ae.then=="function")return re(ee,X,Zi(ae),de);if(ae.$$typeof===M)return re(ee,X,Ei(ee,ae),de);Hi(ee,ae)}return null}function le(ee,X,ae,de,be){if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return ee=ee.get(ae)||null,R(X,ee,""+de,be);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case w:return ee=ee.get(de.key===null?ae:de.key)||null,G(X,ee,de,be);case j:return ee=ee.get(de.key===null?ae:de.key)||null,ne(X,ee,de,be);case H:return de=L0(de),le(ee,X,ae,de,be)}if(se(de)||P(de))return ee=ee.get(ae)||null,oe(X,ee,de,be,null);if(typeof de.then=="function")return le(ee,X,ae,Zi(de),be);if(de.$$typeof===M)return le(ee,X,ae,Ei(X,de),be);Hi(X,de)}return null}function xe(ee,X,ae,de){for(var be=null,qe=null,ve=X,_e=X=0,De=null;ve!==null&&_e<ae.length;_e++){ve.index>_e?(De=ve,ve=null):De=ve.sibling;var Ie=re(ee,ve,ae[_e],de);if(Ie===null){ve===null&&(ve=De);break}n&&ve&&Ie.alternate===null&&i(ee,ve),X=y(Ie,X,_e),qe===null?be=Ie:qe.sibling=Ie,qe=Ie,ve=De}if(_e===ae.length)return u(ee,ve),Oe&&xn(ee,_e),be;if(ve===null){for(;_e<ae.length;_e++)ve=he(ee,ae[_e],de),ve!==null&&(X=y(ve,X,_e),qe===null?be=ve:qe.sibling=ve,qe=ve);return Oe&&xn(ee,_e),be}for(ve=f(ve);_e<ae.length;_e++)De=le(ve,ee,_e,ae[_e],de),De!==null&&(n&&De.alternate!==null&&ve.delete(De.key===null?_e:De.key),X=y(De,X,_e),qe===null?be=De:qe.sibling=De,qe=De);return n&&ve.forEach(function(c0){return i(ee,c0)}),Oe&&xn(ee,_e),be}function we(ee,X,ae,de){if(ae==null)throw Error(l(151));for(var be=null,qe=null,ve=X,_e=X=0,De=null,Ie=ae.next();ve!==null&&!Ie.done;_e++,Ie=ae.next()){ve.index>_e?(De=ve,ve=null):De=ve.sibling;var c0=re(ee,ve,Ie.value,de);if(c0===null){ve===null&&(ve=De);break}n&&ve&&c0.alternate===null&&i(ee,ve),X=y(c0,X,_e),qe===null?be=c0:qe.sibling=c0,qe=c0,ve=De}if(Ie.done)return u(ee,ve),Oe&&xn(ee,_e),be;if(ve===null){for(;!Ie.done;_e++,Ie=ae.next())Ie=he(ee,Ie.value,de),Ie!==null&&(X=y(Ie,X,_e),qe===null?be=Ie:qe.sibling=Ie,qe=Ie);return Oe&&xn(ee,_e),be}for(ve=f(ve);!Ie.done;_e++,Ie=ae.next())Ie=le(ve,ee,_e,Ie.value,de),Ie!==null&&(n&&Ie.alternate!==null&&ve.delete(Ie.key===null?_e:Ie.key),X=y(Ie,X,_e),qe===null?be=Ie:qe.sibling=Ie,qe=Ie);return n&&ve.forEach(function(KV){return i(ee,KV)}),Oe&&xn(ee,_e),be}function Qe(ee,X,ae,de){if(typeof ae=="object"&&ae!==null&&ae.type===N&&ae.key===null&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case w:e:{for(var be=ae.key;X!==null;){if(X.key===be){if(be=ae.type,be===N){if(X.tag===7){u(ee,X.sibling),de=v(X,ae.props.children),de.return=ee,ee=de;break e}}else if(X.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===H&&L0(be)===X.type){u(ee,X.sibling),de=v(X,ae.props),zs(de,ae),de.return=ee,ee=de;break e}u(ee,X);break}else i(ee,X);X=X.sibling}ae.type===N?(de=Z0(ae.props.children,ee.mode,de,ae.key),de.return=ee,ee=de):(de=Ai(ae.type,ae.key,ae.props,null,ee.mode,de),zs(de,ae),de.return=ee,ee=de)}return Z(ee);case j:e:{for(be=ae.key;X!==null;){if(X.key===be)if(X.tag===4&&X.stateNode.containerInfo===ae.containerInfo&&X.stateNode.implementation===ae.implementation){u(ee,X.sibling),de=v(X,ae.children||[]),de.return=ee,ee=de;break e}else{u(ee,X);break}else i(ee,X);X=X.sibling}de=gc(ae,ee.mode,de),de.return=ee,ee=de}return Z(ee);case H:return ae=L0(ae),Qe(ee,X,ae,de)}if(se(ae))return xe(ee,X,ae,de);if(P(ae)){if(be=P(ae),typeof be!="function")throw Error(l(150));return ae=be.call(ae),we(ee,X,ae,de)}if(typeof ae.then=="function")return Qe(ee,X,Zi(ae),de);if(ae.$$typeof===M)return Qe(ee,X,Ei(ee,ae),de);Hi(ee,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint"?(ae=""+ae,X!==null&&X.tag===6?(u(ee,X.sibling),de=v(X,ae),de.return=ee,ee=de):(u(ee,X),de=xc(ae,ee.mode,de),de.return=ee,ee=de),Z(ee)):u(ee,X)}return function(ee,X,ae,de){try{Os=0;var be=Qe(ee,X,ae,de);return Mr=null,be}catch(ve){if(ve===Er||ve===Si)throw ve;var qe=ca(29,ve,null,ee.mode);return qe.lanes=de,qe.return=ee,qe}finally{}}}var R0=Dp(!0),Fp=Dp(!1),Un=!1;function Zc(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hc(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Gn(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Yn(n,i,u){var f=n.updateQueue;if(f===null)return null;if(f=f.shared,($e&2)!==0){var v=f.pending;return v===null?i.next=i:(i.next=v.next,v.next=i),f.pending=i,i=wi(n),wp(n,null,u),i}return yi(n,f,i,u),wi(n)}function qs(n,i,u){if(i=i.updateQueue,i!==null&&(i=i.shared,(u&4194048)!==0)){var f=i.lanes;f&=n.pendingLanes,u|=f,i.lanes=u,Z3(n,u)}}function _c(n,i){var u=n.updateQueue,f=n.alternate;if(f!==null&&(f=f.updateQueue,u===f)){var v=null,y=null;if(u=u.firstBaseUpdate,u!==null){do{var Z={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};y===null?v=y=Z:y=y.next=Z,u=u.next}while(u!==null);y===null?v=y=i:y=y.next=i}else v=y=i;u={baseState:f.baseState,firstBaseUpdate:v,lastBaseUpdate:y,shared:f.shared,callbacks:f.callbacks},n.updateQueue=u;return}n=u.lastBaseUpdate,n===null?u.firstBaseUpdate=i:n.next=i,u.lastBaseUpdate=i}var Vc=!1;function Is(){if(Vc){var n=Nr;if(n!==null)throw n}}function $s(n,i,u,f){Vc=!1;var v=n.updateQueue;Un=!1;var y=v.firstBaseUpdate,Z=v.lastBaseUpdate,R=v.shared.pending;if(R!==null){v.shared.pending=null;var G=R,ne=G.next;G.next=null,Z===null?y=ne:Z.next=ne,Z=G;var oe=n.alternate;oe!==null&&(oe=oe.updateQueue,R=oe.lastBaseUpdate,R!==Z&&(R===null?oe.firstBaseUpdate=ne:R.next=ne,oe.lastBaseUpdate=G))}if(y!==null){var he=v.baseState;Z=0,oe=ne=G=null,R=y;do{var re=R.lane&-536870913,le=re!==R.lane;if(le?(Re&re)===re:(f&re)===re){re!==0&&re===jr&&(Vc=!0),oe!==null&&(oe=oe.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var xe=n,we=R;re=i;var Qe=u;switch(we.tag){case 1:if(xe=we.payload,typeof xe=="function"){he=xe.call(Qe,he,re);break e}he=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=we.payload,re=typeof xe=="function"?xe.call(Qe,he,re):xe,re==null)break e;he=g({},he,re);break e;case 2:Un=!0}}re=R.callback,re!==null&&(n.flags|=64,le&&(n.flags|=8192),le=v.callbacks,le===null?v.callbacks=[re]:le.push(re))}else le={lane:re,tag:R.tag,payload:R.payload,callback:R.callback,next:null},oe===null?(ne=oe=le,G=he):oe=oe.next=le,Z|=re;if(R=R.next,R===null){if(R=v.shared.pending,R===null)break;le=R,R=le.next,le.next=null,v.lastBaseUpdate=le,v.shared.pending=null}}while(!0);oe===null&&(G=he),v.baseState=G,v.firstBaseUpdate=ne,v.lastBaseUpdate=oe,y===null&&(v.shared.lanes=0),Wn|=Z,n.lanes=Z,n.memoizedState=he}}function Op(n,i){if(typeof n!="function")throw Error(l(191,n));n.call(i)}function zp(n,i){var u=n.callbacks;if(u!==null)for(n.callbacks=null,n=0;n<u.length;n++)Op(u[n],i)}var Sr=k(null),_i=k(0);function qp(n,i){n=Sn,K(_i,n),K(Sr,i),Sn=n|i.baseLanes}function Tc(){K(_i,Sn),K(Sr,Sr.current)}function Lc(){Sn=_i.current,Y(Sr),Y(_i)}var ua=k(null),Sa=null;function Kn(n){var i=n.alternate;K(gt,gt.current&1),K(ua,n),Sa===null&&(i===null||Sr.current!==null||i.memoizedState!==null)&&(Sa=n)}function kc(n){K(gt,gt.current),K(ua,n),Sa===null&&(Sa=n)}function Ip(n){n.tag===22?(K(gt,gt.current),K(ua,n),Sa===null&&(Sa=n)):Xn()}function Xn(){K(gt,gt.current),K(ua,ua.current)}function da(n){Y(ua),Sa===n&&(Sa=null),Y(gt)}var gt=k(0);function Vi(n){for(var i=n;i!==null;){if(i.tag===13){var u=i.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||q2(u)||I2(u)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var bn=0,Ze=null,Ke=null,At=null,Ti=!1,Cr=!1,D0=!1,Li=0,Bs=0,Zr=null,O_=0;function dt(){throw Error(l(321))}function Rc(n,i){if(i===null)return!1;for(var u=0;u<i.length&&u<n.length;u++)if(!oa(n[u],i[u]))return!1;return!0}function Dc(n,i,u,f,v,y){return bn=y,Ze=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,O.H=n===null||n.memoizedState===null?E5:Jc,D0=!1,y=u(f,v),D0=!1,Cr&&(y=Bp(i,u,f,v)),$p(n),y}function $p(n){O.H=Gs;var i=Ke!==null&&Ke.next!==null;if(bn=0,At=Ke=Ze=null,Ti=!1,Bs=0,Zr=null,i)throw Error(l(300));n===null||jt||(n=n.dependencies,n!==null&&Ni(n)&&(jt=!0))}function Bp(n,i,u,f){Ze=n;var v=0;do{if(Cr&&(Zr=null),Bs=0,Cr=!1,25<=v)throw Error(l(301));if(v+=1,At=Ke=null,n.updateQueue!=null){var y=n.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}O.H=M5,y=i(u,f)}while(Cr);return y}function z_(){var n=O.H,i=n.useState()[0];return i=typeof i.then=="function"?Ps(i):i,n=n.useState()[0],(Ke!==null?Ke.memoizedState:null)!==n&&(Ze.flags|=1024),i}function Fc(){var n=Li!==0;return Li=0,n}function Oc(n,i,u){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~u}function zc(n){if(Ti){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Ti=!1}bn=0,At=Ke=Ze=null,Cr=!1,Bs=Li=0,Zr=null}function Bt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?Ze.memoizedState=At=n:At=At.next=n,At}function vt(){if(Ke===null){var n=Ze.alternate;n=n!==null?n.memoizedState:null}else n=Ke.next;var i=At===null?Ze.memoizedState:At.next;if(i!==null)At=i,Ke=n;else{if(n===null)throw Ze.alternate===null?Error(l(467)):Error(l(310));Ke=n,n={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},At===null?Ze.memoizedState=At=n:At=At.next=n}return At}function ki(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ps(n){var i=Bs;return Bs+=1,Zr===null&&(Zr=[]),n=Lp(Zr,n,i),i=Ze,(At===null?i.memoizedState:At.next)===null&&(i=i.alternate,O.H=i===null||i.memoizedState===null?E5:Jc),n}function Ri(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Ps(n);if(n.$$typeof===M)return Dt(n)}throw Error(l(438,String(n)))}function qc(n){var i=null,u=Ze.updateQueue;if(u!==null&&(i=u.memoCache),i==null){var f=Ze.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(i={data:f.data.map(function(v){return v.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),u===null&&(u=ki(),Ze.updateQueue=u),u.memoCache=i,u=i.data[i.index],u===void 0)for(u=i.data[i.index]=Array(n),f=0;f<n;f++)u[f]=D;return i.index++,u}function yn(n,i){return typeof i=="function"?i(n):i}function Di(n){var i=vt();return Ic(i,Ke,n)}function Ic(n,i,u){var f=n.queue;if(f===null)throw Error(l(311));f.lastRenderedReducer=u;var v=n.baseQueue,y=f.pending;if(y!==null){if(v!==null){var Z=v.next;v.next=y.next,y.next=Z}i.baseQueue=v=y,f.pending=null}if(y=n.baseState,v===null)n.memoizedState=y;else{i=v.next;var R=Z=null,G=null,ne=i,oe=!1;do{var he=ne.lane&-536870913;if(he!==ne.lane?(Re&he)===he:(bn&he)===he){var re=ne.revertLane;if(re===0)G!==null&&(G=G.next={lane:0,revertLane:0,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null}),he===jr&&(oe=!0);else if((bn&re)===re){ne=ne.next,re===jr&&(oe=!0);continue}else he={lane:0,revertLane:ne.revertLane,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},G===null?(R=G=he,Z=y):G=G.next=he,Ze.lanes|=re,Wn|=re;he=ne.action,D0&&u(y,he),y=ne.hasEagerState?ne.eagerState:u(y,he)}else re={lane:he,revertLane:ne.revertLane,gesture:ne.gesture,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},G===null?(R=G=re,Z=y):G=G.next=re,Ze.lanes|=he,Wn|=he;ne=ne.next}while(ne!==null&&ne!==i);if(G===null?Z=y:G.next=R,!oa(y,n.memoizedState)&&(jt=!0,oe&&(u=Nr,u!==null)))throw u;n.memoizedState=y,n.baseState=Z,n.baseQueue=G,f.lastRenderedState=y}return v===null&&(f.lanes=0),[n.memoizedState,f.dispatch]}function $c(n){var i=vt(),u=i.queue;if(u===null)throw Error(l(311));u.lastRenderedReducer=n;var f=u.dispatch,v=u.pending,y=i.memoizedState;if(v!==null){u.pending=null;var Z=v=v.next;do y=n(y,Z.action),Z=Z.next;while(Z!==v);oa(y,i.memoizedState)||(jt=!0),i.memoizedState=y,i.baseQueue===null&&(i.baseState=y),u.lastRenderedState=y}return[y,f]}function Pp(n,i,u){var f=Ze,v=vt(),y=Oe;if(y){if(u===void 0)throw Error(l(407));u=u()}else u=i();var Z=!oa((Ke||v).memoizedState,u);if(Z&&(v.memoizedState=u,jt=!0),v=v.queue,Uc(Yp.bind(null,f,v,n),[n]),v.getSnapshot!==i||Z||At!==null&&At.memoizedState.tag&1){if(f.flags|=2048,Hr(9,{destroy:void 0},Gp.bind(null,f,v,u,i),null),Je===null)throw Error(l(349));y||(bn&127)!==0||Up(f,i,u)}return u}function Up(n,i,u){n.flags|=16384,n={getSnapshot:i,value:u},i=Ze.updateQueue,i===null?(i=ki(),Ze.updateQueue=i,i.stores=[n]):(u=i.stores,u===null?i.stores=[n]:u.push(n))}function Gp(n,i,u,f){i.value=u,i.getSnapshot=f,Kp(i)&&Xp(n)}function Yp(n,i,u){return u(function(){Kp(i)&&Xp(n)})}function Kp(n){var i=n.getSnapshot;n=n.value;try{var u=i();return!oa(n,u)}catch{return!0}}function Xp(n){var i=C0(n,2);i!==null&&na(i,n,2)}function Bc(n){var i=Bt();if(typeof n=="function"){var u=n;if(n=u(),D0){On(!0);try{u()}finally{On(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:n},i}function Qp(n,i,u,f){return n.baseState=u,Ic(n,Ke,typeof f=="function"?f:yn)}function q_(n,i,u,f,v){if(zi(n))throw Error(l(485));if(n=i.action,n!==null){var y={payload:v,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Z){y.listeners.push(Z)}};O.T!==null?u(!0):y.isTransition=!1,f(y),u=i.pending,u===null?(y.next=i.pending=y,Jp(i,y)):(y.next=u.next,i.pending=u.next=y)}}function Jp(n,i){var u=i.action,f=i.payload,v=n.state;if(i.isTransition){var y=O.T,Z={};O.T=Z;try{var R=u(v,f),G=O.S;G!==null&&G(Z,R),Wp(n,i,R)}catch(ne){Pc(n,i,ne)}finally{y!==null&&Z.types!==null&&(y.types=Z.types),O.T=y}}else try{y=u(v,f),Wp(n,i,y)}catch(ne){Pc(n,i,ne)}}function Wp(n,i,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(f){e5(n,i,f)},function(f){return Pc(n,i,f)}):e5(n,i,u)}function e5(n,i,u){i.status="fulfilled",i.value=u,t5(i),n.state=u,i=n.pending,i!==null&&(u=i.next,u===i?n.pending=null:(u=u.next,i.next=u,Jp(n,u)))}function Pc(n,i,u){var f=n.pending;if(n.pending=null,f!==null){f=f.next;do i.status="rejected",i.reason=u,t5(i),i=i.next;while(i!==f)}n.action=null}function t5(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function a5(n,i){return i}function n5(n,i){if(Oe){var u=Je.formState;if(u!==null){e:{var f=Ze;if(Oe){if(at){t:{for(var v=at,y=Ma;v.nodeType!==8;){if(!y){v=null;break t}if(v=Ca(v.nextSibling),v===null){v=null;break t}}y=v.data,v=y==="F!"||y==="F"?v:null}if(v){at=Ca(v.nextSibling),f=v.data==="F!";break e}}Bn(f)}f=!1}f&&(i=u[0])}}return u=Bt(),u.memoizedState=u.baseState=i,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a5,lastRenderedState:i},u.queue=f,u=A5.bind(null,Ze,f),f.dispatch=u,f=Bc(!1),y=Qc.bind(null,Ze,!1,f.queue),f=Bt(),v={state:i,dispatch:null,action:n,pending:null},f.queue=v,u=q_.bind(null,Ze,v,y,u),v.dispatch=u,f.memoizedState=n,[i,u,!1]}function r5(n){var i=vt();return s5(i,Ke,n)}function s5(n,i,u){if(i=Ic(n,i,a5)[0],n=Di(yn)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var f=Ps(i)}catch(Z){throw Z===Er?Si:Z}else f=i;i=vt();var v=i.queue,y=v.dispatch;return u!==i.memoizedState&&(Ze.flags|=2048,Hr(9,{destroy:void 0},I_.bind(null,v,u),null)),[f,y,n]}function I_(n,i){n.action=i}function l5(n){var i=vt(),u=Ke;if(u!==null)return s5(i,u,n);vt(),i=i.memoizedState,u=vt();var f=u.queue.dispatch;return u.memoizedState=n,[i,f,!1]}function Hr(n,i,u,f){return n={tag:n,create:u,deps:f,inst:i,next:null},i=Ze.updateQueue,i===null&&(i=ki(),Ze.updateQueue=i),u=i.lastEffect,u===null?i.lastEffect=n.next=n:(f=u.next,u.next=n,n.next=f,i.lastEffect=n),n}function i5(){return vt().memoizedState}function Fi(n,i,u,f){var v=Bt();Ze.flags|=n,v.memoizedState=Hr(1|i,{destroy:void 0},u,f===void 0?null:f)}function Oi(n,i,u,f){var v=vt();f=f===void 0?null:f;var y=v.memoizedState.inst;Ke!==null&&f!==null&&Rc(f,Ke.memoizedState.deps)?v.memoizedState=Hr(i,y,u,f):(Ze.flags|=n,v.memoizedState=Hr(1|i,y,u,f))}function o5(n,i){Fi(8390656,8,n,i)}function Uc(n,i){Oi(2048,8,n,i)}function $_(n){Ze.flags|=4;var i=Ze.updateQueue;if(i===null)i=ki(),Ze.updateQueue=i,i.events=[n];else{var u=i.events;u===null?i.events=[n]:u.push(n)}}function c5(n){var i=vt().memoizedState;return $_({ref:i,nextImpl:n}),function(){if(($e&2)!==0)throw Error(l(440));return i.impl.apply(void 0,arguments)}}function u5(n,i){return Oi(4,2,n,i)}function d5(n,i){return Oi(4,4,n,i)}function h5(n,i){if(typeof i=="function"){n=n();var u=i(n);return function(){typeof u=="function"?u():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function m5(n,i,u){u=u!=null?u.concat([n]):null,Oi(4,4,h5.bind(null,i,n),u)}function Gc(){}function f5(n,i){var u=vt();i=i===void 0?null:i;var f=u.memoizedState;return i!==null&&Rc(i,f[1])?f[0]:(u.memoizedState=[n,i],n)}function p5(n,i){var u=vt();i=i===void 0?null:i;var f=u.memoizedState;if(i!==null&&Rc(i,f[1]))return f[0];if(f=n(),D0){On(!0);try{n()}finally{On(!1)}}return u.memoizedState=[f,i],f}function Yc(n,i,u){return u===void 0||(bn&1073741824)!==0&&(Re&261930)===0?n.memoizedState=i:(n.memoizedState=u,n=xx(),Ze.lanes|=n,Wn|=n,u)}function x5(n,i,u,f){return oa(u,i)?u:Sr.current!==null?(n=Yc(n,u,f),oa(n,i)||(jt=!0),n):(bn&42)===0||(bn&1073741824)!==0&&(Re&261930)===0?(jt=!0,n.memoizedState=u):(n=xx(),Ze.lanes|=n,Wn|=n,i)}function g5(n,i,u,f,v){var y=$.p;$.p=y!==0&&8>y?y:8;var Z=O.T,R={};O.T=R,Qc(n,!1,i,u);try{var G=v(),ne=O.S;if(ne!==null&&ne(R,G),G!==null&&typeof G=="object"&&typeof G.then=="function"){var oe=F_(G,f);Us(n,i,oe,fa(n))}else Us(n,i,f,fa(n))}catch(he){Us(n,i,{then:function(){},status:"rejected",reason:he},fa())}finally{$.p=y,Z!==null&&R.types!==null&&(Z.types=R.types),O.T=Z}}function B_(){}function Kc(n,i,u,f){if(n.tag!==5)throw Error(l(476));var v=v5(n).queue;g5(n,v,i,B,u===null?B_:function(){return b5(n),u(f)})}function v5(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:B},next:null};var u={};return i.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:u},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function b5(n){var i=v5(n);i.next===null&&(i=n.alternate.memoizedState),Us(n,i.next.queue,{},fa())}function Xc(){return Dt(cl)}function y5(){return vt().memoizedState}function w5(){return vt().memoizedState}function P_(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var u=fa();n=Gn(u);var f=Yn(i,n,u);f!==null&&(na(f,i,u),qs(f,i,u)),i={cache:Ec()},n.payload=i;return}i=i.return}}function U_(n,i,u){var f=fa();u={lane:f,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},zi(n)?j5(i,u):(u=fc(n,i,u,f),u!==null&&(na(u,n,f),N5(u,i,f)))}function A5(n,i,u){var f=fa();Us(n,i,u,f)}function Us(n,i,u,f){var v={lane:f,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(zi(n))j5(i,v);else{var y=n.alternate;if(n.lanes===0&&(y===null||y.lanes===0)&&(y=i.lastRenderedReducer,y!==null))try{var Z=i.lastRenderedState,R=y(Z,u);if(v.hasEagerState=!0,v.eagerState=R,oa(R,Z))return yi(n,i,v,0),Je===null&&bi(),!1}catch{}finally{}if(u=fc(n,i,v,f),u!==null)return na(u,n,f),N5(u,i,f),!0}return!1}function Qc(n,i,u,f){if(f={lane:2,revertLane:Z2(),gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},zi(n)){if(i)throw Error(l(479))}else i=fc(n,u,f,2),i!==null&&na(i,n,2)}function zi(n){var i=n.alternate;return n===Ze||i!==null&&i===Ze}function j5(n,i){Cr=Ti=!0;var u=n.pending;u===null?i.next=i:(i.next=u.next,u.next=i),n.pending=i}function N5(n,i,u){if((u&4194048)!==0){var f=i.lanes;f&=n.pendingLanes,u|=f,i.lanes=u,Z3(n,u)}}var Gs={readContext:Dt,use:Ri,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useLayoutEffect:dt,useInsertionEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useSyncExternalStore:dt,useId:dt,useHostTransitionStatus:dt,useFormState:dt,useActionState:dt,useOptimistic:dt,useMemoCache:dt,useCacheRefresh:dt};Gs.useEffectEvent=dt;var E5={readContext:Dt,use:Ri,useCallback:function(n,i){return Bt().memoizedState=[n,i===void 0?null:i],n},useContext:Dt,useEffect:o5,useImperativeHandle:function(n,i,u){u=u!=null?u.concat([n]):null,Fi(4194308,4,h5.bind(null,i,n),u)},useLayoutEffect:function(n,i){return Fi(4194308,4,n,i)},useInsertionEffect:function(n,i){Fi(4,2,n,i)},useMemo:function(n,i){var u=Bt();i=i===void 0?null:i;var f=n();if(D0){On(!0);try{n()}finally{On(!1)}}return u.memoizedState=[f,i],f},useReducer:function(n,i,u){var f=Bt();if(u!==void 0){var v=u(i);if(D0){On(!0);try{u(i)}finally{On(!1)}}}else v=i;return f.memoizedState=f.baseState=v,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:v},f.queue=n,n=n.dispatch=U_.bind(null,Ze,n),[f.memoizedState,n]},useRef:function(n){var i=Bt();return n={current:n},i.memoizedState=n},useState:function(n){n=Bc(n);var i=n.queue,u=A5.bind(null,Ze,i);return i.dispatch=u,[n.memoizedState,u]},useDebugValue:Gc,useDeferredValue:function(n,i){var u=Bt();return Yc(u,n,i)},useTransition:function(){var n=Bc(!1);return n=g5.bind(null,Ze,n.queue,!0,!1),Bt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,u){var f=Ze,v=Bt();if(Oe){if(u===void 0)throw Error(l(407));u=u()}else{if(u=i(),Je===null)throw Error(l(349));(Re&127)!==0||Up(f,i,u)}v.memoizedState=u;var y={value:u,getSnapshot:i};return v.queue=y,o5(Yp.bind(null,f,y,n),[n]),f.flags|=2048,Hr(9,{destroy:void 0},Gp.bind(null,f,y,u,i),null),u},useId:function(){var n=Bt(),i=Je.identifierPrefix;if(Oe){var u=Ja,f=Qa;u=(f&~(1<<32-ia(f)-1)).toString(32)+u,i="_"+i+"R_"+u,u=Li++,0<u&&(i+="H"+u.toString(32)),i+="_"}else u=O_++,i="_"+i+"r_"+u.toString(32)+"_";return n.memoizedState=i},useHostTransitionStatus:Xc,useFormState:n5,useActionState:n5,useOptimistic:function(n){var i=Bt();i.memoizedState=i.baseState=n;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=u,i=Qc.bind(null,Ze,!0,u),u.dispatch=i,[n,i]},useMemoCache:qc,useCacheRefresh:function(){return Bt().memoizedState=P_.bind(null,Ze)},useEffectEvent:function(n){var i=Bt(),u={impl:n};return i.memoizedState=u,function(){if(($e&2)!==0)throw Error(l(440));return u.impl.apply(void 0,arguments)}}},Jc={readContext:Dt,use:Ri,useCallback:f5,useContext:Dt,useEffect:Uc,useImperativeHandle:m5,useInsertionEffect:u5,useLayoutEffect:d5,useMemo:p5,useReducer:Di,useRef:i5,useState:function(){return Di(yn)},useDebugValue:Gc,useDeferredValue:function(n,i){var u=vt();return x5(u,Ke.memoizedState,n,i)},useTransition:function(){var n=Di(yn)[0],i=vt().memoizedState;return[typeof n=="boolean"?n:Ps(n),i]},useSyncExternalStore:Pp,useId:y5,useHostTransitionStatus:Xc,useFormState:r5,useActionState:r5,useOptimistic:function(n,i){var u=vt();return Qp(u,Ke,n,i)},useMemoCache:qc,useCacheRefresh:w5};Jc.useEffectEvent=c5;var M5={readContext:Dt,use:Ri,useCallback:f5,useContext:Dt,useEffect:Uc,useImperativeHandle:m5,useInsertionEffect:u5,useLayoutEffect:d5,useMemo:p5,useReducer:$c,useRef:i5,useState:function(){return $c(yn)},useDebugValue:Gc,useDeferredValue:function(n,i){var u=vt();return Ke===null?Yc(u,n,i):x5(u,Ke.memoizedState,n,i)},useTransition:function(){var n=$c(yn)[0],i=vt().memoizedState;return[typeof n=="boolean"?n:Ps(n),i]},useSyncExternalStore:Pp,useId:y5,useHostTransitionStatus:Xc,useFormState:l5,useActionState:l5,useOptimistic:function(n,i){var u=vt();return Ke!==null?Qp(u,Ke,n,i):(u.baseState=n,[n,u.queue.dispatch])},useMemoCache:qc,useCacheRefresh:w5};M5.useEffectEvent=c5;function Wc(n,i,u,f){i=n.memoizedState,u=u(f,i),u=u==null?i:g({},i,u),n.memoizedState=u,n.lanes===0&&(n.updateQueue.baseState=u)}var e2={enqueueSetState:function(n,i,u){n=n._reactInternals;var f=fa(),v=Gn(f);v.payload=i,u!=null&&(v.callback=u),i=Yn(n,v,f),i!==null&&(na(i,n,f),qs(i,n,f))},enqueueReplaceState:function(n,i,u){n=n._reactInternals;var f=fa(),v=Gn(f);v.tag=1,v.payload=i,u!=null&&(v.callback=u),i=Yn(n,v,f),i!==null&&(na(i,n,f),qs(i,n,f))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var u=fa(),f=Gn(u);f.tag=2,i!=null&&(f.callback=i),i=Yn(n,f,u),i!==null&&(na(i,n,u),qs(i,n,u))}};function S5(n,i,u,f,v,y,Z){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(f,y,Z):i.prototype&&i.prototype.isPureReactComponent?!Ts(u,f)||!Ts(v,y):!0}function C5(n,i,u,f){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(u,f),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(u,f),i.state!==n&&e2.enqueueReplaceState(i,i.state,null)}function F0(n,i){var u=i;if("ref"in i){u={};for(var f in i)f!=="ref"&&(u[f]=i[f])}if(n=n.defaultProps){u===i&&(u=g({},u));for(var v in n)u[v]===void 0&&(u[v]=n[v])}return u}function Z5(n){vi(n)}function H5(n){console.error(n)}function _5(n){vi(n)}function qi(n,i){try{var u=n.onUncaughtError;u(i.value,{componentStack:i.stack})}catch(f){setTimeout(function(){throw f})}}function V5(n,i,u){try{var f=n.onCaughtError;f(u.value,{componentStack:u.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function t2(n,i,u){return u=Gn(u),u.tag=3,u.payload={element:null},u.callback=function(){qi(n,i)},u}function T5(n){return n=Gn(n),n.tag=3,n}function L5(n,i,u,f){var v=u.type.getDerivedStateFromError;if(typeof v=="function"){var y=f.value;n.payload=function(){return v(y)},n.callback=function(){V5(i,u,f)}}var Z=u.stateNode;Z!==null&&typeof Z.componentDidCatch=="function"&&(n.callback=function(){V5(i,u,f),typeof v!="function"&&(e0===null?e0=new Set([this]):e0.add(this));var R=f.stack;this.componentDidCatch(f.value,{componentStack:R!==null?R:""})})}function G_(n,i,u,f,v){if(u.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(i=u.alternate,i!==null&&Ar(i,u,v,!0),u=ua.current,u!==null){switch(u.tag){case 31:case 13:return Sa===null?Wi():u.alternate===null&&ht===0&&(ht=3),u.flags&=-257,u.flags|=65536,u.lanes=v,f===Ci?u.flags|=16384:(i=u.updateQueue,i===null?u.updateQueue=new Set([f]):i.add(f),M2(n,f,v)),!1;case 22:return u.flags|=65536,f===Ci?u.flags|=16384:(i=u.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([f])},u.updateQueue=i):(u=i.retryQueue,u===null?i.retryQueue=new Set([f]):u.add(f)),M2(n,f,v)),!1}throw Error(l(435,u.tag))}return M2(n,f,v),Wi(),!1}if(Oe)return i=ua.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=v,f!==yc&&(n=Error(l(422),{cause:f}),Rs(ja(n,u)))):(f!==yc&&(i=Error(l(423),{cause:f}),Rs(ja(i,u))),n=n.current.alternate,n.flags|=65536,v&=-v,n.lanes|=v,f=ja(f,u),v=t2(n.stateNode,f,v),_c(n,v),ht!==4&&(ht=2)),!1;var y=Error(l(520),{cause:f});if(y=ja(y,u),tl===null?tl=[y]:tl.push(y),ht!==4&&(ht=2),i===null)return!0;f=ja(f,u),u=i;do{switch(u.tag){case 3:return u.flags|=65536,n=v&-v,u.lanes|=n,n=t2(u.stateNode,f,n),_c(u,n),!1;case 1:if(i=u.type,y=u.stateNode,(u.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(e0===null||!e0.has(y))))return u.flags|=65536,v&=-v,u.lanes|=v,v=T5(v),L5(v,n,u,f),_c(u,v),!1}u=u.return}while(u!==null);return!1}var a2=Error(l(461)),jt=!1;function Ft(n,i,u,f){i.child=n===null?Fp(i,null,u,f):R0(i,n.child,u,f)}function k5(n,i,u,f,v){u=u.render;var y=i.ref;if("ref"in f){var Z={};for(var R in f)R!=="ref"&&(Z[R]=f[R])}else Z=f;return V0(i),f=Dc(n,i,u,Z,y,v),R=Fc(),n!==null&&!jt?(Oc(n,i,v),wn(n,i,v)):(Oe&&R&&vc(i),i.flags|=1,Ft(n,i,f,v),i.child)}function R5(n,i,u,f,v){if(n===null){var y=u.type;return typeof y=="function"&&!pc(y)&&y.defaultProps===void 0&&u.compare===null?(i.tag=15,i.type=y,D5(n,i,y,f,v)):(n=Ai(u.type,null,f,i,i.mode,v),n.ref=i.ref,n.return=i,i.child=n)}if(y=n.child,!u2(n,v)){var Z=y.memoizedProps;if(u=u.compare,u=u!==null?u:Ts,u(Z,f)&&n.ref===i.ref)return wn(n,i,v)}return i.flags|=1,n=pn(y,f),n.ref=i.ref,n.return=i,i.child=n}function D5(n,i,u,f,v){if(n!==null){var y=n.memoizedProps;if(Ts(y,f)&&n.ref===i.ref)if(jt=!1,i.pendingProps=f=y,u2(n,v))(n.flags&131072)!==0&&(jt=!0);else return i.lanes=n.lanes,wn(n,i,v)}return n2(n,i,u,f,v)}function F5(n,i,u,f){var v=f.children,y=n!==null?n.memoizedState:null;if(n===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.mode==="hidden"){if((i.flags&128)!==0){if(y=y!==null?y.baseLanes|u:u,n!==null){for(f=i.child=n.child,v=0;f!==null;)v=v|f.lanes|f.childLanes,f=f.sibling;f=v&~y}else f=0,i.child=null;return O5(n,i,y,u,f)}if((u&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&Mi(i,y!==null?y.cachePool:null),y!==null?qp(i,y):Tc(),Ip(i);else return f=i.lanes=536870912,O5(n,i,y!==null?y.baseLanes|u:u,u,f)}else y!==null?(Mi(i,y.cachePool),qp(i,y),Xn(),i.memoizedState=null):(n!==null&&Mi(i,null),Tc(),Xn());return Ft(n,i,v,u),i.child}function Ys(n,i){return n!==null&&n.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function O5(n,i,u,f,v){var y=Sc();return y=y===null?null:{parent:wt._currentValue,pool:y},i.memoizedState={baseLanes:u,cachePool:y},n!==null&&Mi(i,null),Tc(),Ip(i),n!==null&&Ar(n,i,f,!0),i.childLanes=v,null}function Ii(n,i){return i=Bi({mode:i.mode,children:i.children},n.mode),i.ref=n.ref,n.child=i,i.return=n,i}function z5(n,i,u){return R0(i,n.child,null,u),n=Ii(i,i.pendingProps),n.flags|=2,da(i),i.memoizedState=null,n}function Y_(n,i,u){var f=i.pendingProps,v=(i.flags&128)!==0;if(i.flags&=-129,n===null){if(Oe){if(f.mode==="hidden")return n=Ii(i,f),i.lanes=536870912,Ys(null,n);if(kc(i),(n=at)?(n=Jx(n,Ma),n=n!==null&&n.data==="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:In!==null?{id:Qa,overflow:Ja}:null,retryLane:536870912,hydrationErrors:null},u=jp(n),u.return=i,i.child=u,Rt=i,at=null)):n=null,n===null)throw Bn(i);return i.lanes=536870912,null}return Ii(i,f)}var y=n.memoizedState;if(y!==null){var Z=y.dehydrated;if(kc(i),v)if(i.flags&256)i.flags&=-257,i=z5(n,i,u);else if(i.memoizedState!==null)i.child=n.child,i.flags|=128,i=null;else throw Error(l(558));else if(jt||Ar(n,i,u,!1),v=(u&n.childLanes)!==0,jt||v){if(f=Je,f!==null&&(Z=H3(f,u),Z!==0&&Z!==y.retryLane))throw y.retryLane=Z,C0(n,Z),na(f,n,Z),a2;Wi(),i=z5(n,i,u)}else n=y.treeContext,at=Ca(Z.nextSibling),Rt=i,Oe=!0,$n=null,Ma=!1,n!==null&&Mp(i,n),i=Ii(i,f),i.flags|=4096;return i}return n=pn(n.child,{mode:f.mode,children:f.children}),n.ref=i.ref,i.child=n,n.return=i,n}function $i(n,i){var u=i.ref;if(u===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(l(284));(n===null||n.ref!==u)&&(i.flags|=4194816)}}function n2(n,i,u,f,v){return V0(i),u=Dc(n,i,u,f,void 0,v),f=Fc(),n!==null&&!jt?(Oc(n,i,v),wn(n,i,v)):(Oe&&f&&vc(i),i.flags|=1,Ft(n,i,u,v),i.child)}function q5(n,i,u,f,v,y){return V0(i),i.updateQueue=null,u=Bp(i,f,u,v),$p(n),f=Fc(),n!==null&&!jt?(Oc(n,i,y),wn(n,i,y)):(Oe&&f&&vc(i),i.flags|=1,Ft(n,i,u,y),i.child)}function I5(n,i,u,f,v){if(V0(i),i.stateNode===null){var y=vr,Z=u.contextType;typeof Z=="object"&&Z!==null&&(y=Dt(Z)),y=new u(f,y),i.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=e2,i.stateNode=y,y._reactInternals=i,y=i.stateNode,y.props=f,y.state=i.memoizedState,y.refs={},Zc(i),Z=u.contextType,y.context=typeof Z=="object"&&Z!==null?Dt(Z):vr,y.state=i.memoizedState,Z=u.getDerivedStateFromProps,typeof Z=="function"&&(Wc(i,u,Z,f),y.state=i.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(Z=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),Z!==y.state&&e2.enqueueReplaceState(y,y.state,null),$s(i,f,y,v),Is(),y.state=i.memoizedState),typeof y.componentDidMount=="function"&&(i.flags|=4194308),f=!0}else if(n===null){y=i.stateNode;var R=i.memoizedProps,G=F0(u,R);y.props=G;var ne=y.context,oe=u.contextType;Z=vr,typeof oe=="object"&&oe!==null&&(Z=Dt(oe));var he=u.getDerivedStateFromProps;oe=typeof he=="function"||typeof y.getSnapshotBeforeUpdate=="function",R=i.pendingProps!==R,oe||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(R||ne!==Z)&&C5(i,y,f,Z),Un=!1;var re=i.memoizedState;y.state=re,$s(i,f,y,v),Is(),ne=i.memoizedState,R||re!==ne||Un?(typeof he=="function"&&(Wc(i,u,he,f),ne=i.memoizedState),(G=Un||S5(i,u,G,f,re,ne,Z))?(oe||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(i.flags|=4194308)):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=f,i.memoizedState=ne),y.props=f,y.state=ne,y.context=Z,f=G):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),f=!1)}else{y=i.stateNode,Hc(n,i),Z=i.memoizedProps,oe=F0(u,Z),y.props=oe,he=i.pendingProps,re=y.context,ne=u.contextType,G=vr,typeof ne=="object"&&ne!==null&&(G=Dt(ne)),R=u.getDerivedStateFromProps,(ne=typeof R=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(Z!==he||re!==G)&&C5(i,y,f,G),Un=!1,re=i.memoizedState,y.state=re,$s(i,f,y,v),Is();var le=i.memoizedState;Z!==he||re!==le||Un||n!==null&&n.dependencies!==null&&Ni(n.dependencies)?(typeof R=="function"&&(Wc(i,u,R,f),le=i.memoizedState),(oe=Un||S5(i,u,oe,f,re,le,G)||n!==null&&n.dependencies!==null&&Ni(n.dependencies))?(ne||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(f,le,G),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(f,le,G)),typeof y.componentDidUpdate=="function"&&(i.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof y.componentDidUpdate!="function"||Z===n.memoizedProps&&re===n.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||Z===n.memoizedProps&&re===n.memoizedState||(i.flags|=1024),i.memoizedProps=f,i.memoizedState=le),y.props=f,y.state=le,y.context=G,f=oe):(typeof y.componentDidUpdate!="function"||Z===n.memoizedProps&&re===n.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||Z===n.memoizedProps&&re===n.memoizedState||(i.flags|=1024),f=!1)}return y=f,$i(n,i),f=(i.flags&128)!==0,y||f?(y=i.stateNode,u=f&&typeof u.getDerivedStateFromError!="function"?null:y.render(),i.flags|=1,n!==null&&f?(i.child=R0(i,n.child,null,v),i.child=R0(i,null,u,v)):Ft(n,i,u,v),i.memoizedState=y.state,n=i.child):n=wn(n,i,v),n}function $5(n,i,u,f){return H0(),i.flags|=256,Ft(n,i,u,f),i.child}var r2={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function s2(n){return{baseLanes:n,cachePool:Vp()}}function l2(n,i,u){return n=n!==null?n.childLanes&~u:0,i&&(n|=ma),n}function B5(n,i,u){var f=i.pendingProps,v=!1,y=(i.flags&128)!==0,Z;if((Z=y)||(Z=n!==null&&n.memoizedState===null?!1:(gt.current&2)!==0),Z&&(v=!0,i.flags&=-129),Z=(i.flags&32)!==0,i.flags&=-33,n===null){if(Oe){if(v?Kn(i):Xn(),(n=at)?(n=Jx(n,Ma),n=n!==null&&n.data!=="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:In!==null?{id:Qa,overflow:Ja}:null,retryLane:536870912,hydrationErrors:null},u=jp(n),u.return=i,i.child=u,Rt=i,at=null)):n=null,n===null)throw Bn(i);return I2(n)?i.lanes=32:i.lanes=536870912,null}var R=f.children;return f=f.fallback,v?(Xn(),v=i.mode,R=Bi({mode:"hidden",children:R},v),f=Z0(f,v,u,null),R.return=i,f.return=i,R.sibling=f,i.child=R,f=i.child,f.memoizedState=s2(u),f.childLanes=l2(n,Z,u),i.memoizedState=r2,Ys(null,f)):(Kn(i),i2(i,R))}var G=n.memoizedState;if(G!==null&&(R=G.dehydrated,R!==null)){if(y)i.flags&256?(Kn(i),i.flags&=-257,i=o2(n,i,u)):i.memoizedState!==null?(Xn(),i.child=n.child,i.flags|=128,i=null):(Xn(),R=f.fallback,v=i.mode,f=Bi({mode:"visible",children:f.children},v),R=Z0(R,v,u,null),R.flags|=2,f.return=i,R.return=i,f.sibling=R,i.child=f,R0(i,n.child,null,u),f=i.child,f.memoizedState=s2(u),f.childLanes=l2(n,Z,u),i.memoizedState=r2,i=Ys(null,f));else if(Kn(i),I2(R)){if(Z=R.nextSibling&&R.nextSibling.dataset,Z)var ne=Z.dgst;Z=ne,f=Error(l(419)),f.stack="",f.digest=Z,Rs({value:f,source:null,stack:null}),i=o2(n,i,u)}else if(jt||Ar(n,i,u,!1),Z=(u&n.childLanes)!==0,jt||Z){if(Z=Je,Z!==null&&(f=H3(Z,u),f!==0&&f!==G.retryLane))throw G.retryLane=f,C0(n,f),na(Z,n,f),a2;q2(R)||Wi(),i=o2(n,i,u)}else q2(R)?(i.flags|=192,i.child=n.child,i=null):(n=G.treeContext,at=Ca(R.nextSibling),Rt=i,Oe=!0,$n=null,Ma=!1,n!==null&&Mp(i,n),i=i2(i,f.children),i.flags|=4096);return i}return v?(Xn(),R=f.fallback,v=i.mode,G=n.child,ne=G.sibling,f=pn(G,{mode:"hidden",children:f.children}),f.subtreeFlags=G.subtreeFlags&65011712,ne!==null?R=pn(ne,R):(R=Z0(R,v,u,null),R.flags|=2),R.return=i,f.return=i,f.sibling=R,i.child=f,Ys(null,f),f=i.child,R=n.child.memoizedState,R===null?R=s2(u):(v=R.cachePool,v!==null?(G=wt._currentValue,v=v.parent!==G?{parent:G,pool:G}:v):v=Vp(),R={baseLanes:R.baseLanes|u,cachePool:v}),f.memoizedState=R,f.childLanes=l2(n,Z,u),i.memoizedState=r2,Ys(n.child,f)):(Kn(i),u=n.child,n=u.sibling,u=pn(u,{mode:"visible",children:f.children}),u.return=i,u.sibling=null,n!==null&&(Z=i.deletions,Z===null?(i.deletions=[n],i.flags|=16):Z.push(n)),i.child=u,i.memoizedState=null,u)}function i2(n,i){return i=Bi({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function Bi(n,i){return n=ca(22,n,null,i),n.lanes=0,n}function o2(n,i,u){return R0(i,n.child,null,u),n=i2(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function P5(n,i,u){n.lanes|=i;var f=n.alternate;f!==null&&(f.lanes|=i),jc(n.return,i,u)}function c2(n,i,u,f,v,y){var Z=n.memoizedState;Z===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:f,tail:u,tailMode:v,treeForkCount:y}:(Z.isBackwards=i,Z.rendering=null,Z.renderingStartTime=0,Z.last=f,Z.tail=u,Z.tailMode=v,Z.treeForkCount=y)}function U5(n,i,u){var f=i.pendingProps,v=f.revealOrder,y=f.tail;f=f.children;var Z=gt.current,R=(Z&2)!==0;if(R?(Z=Z&1|2,i.flags|=128):Z&=1,K(gt,Z),Ft(n,i,f,u),f=Oe?ks:0,!R&&n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&P5(n,u,i);else if(n.tag===19)P5(n,u,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(v){case"forwards":for(u=i.child,v=null;u!==null;)n=u.alternate,n!==null&&Vi(n)===null&&(v=u),u=u.sibling;u=v,u===null?(v=i.child,i.child=null):(v=u.sibling,u.sibling=null),c2(i,!1,v,u,y,f);break;case"backwards":case"unstable_legacy-backwards":for(u=null,v=i.child,i.child=null;v!==null;){if(n=v.alternate,n!==null&&Vi(n)===null){i.child=v;break}n=v.sibling,v.sibling=u,u=v,v=n}c2(i,!0,u,null,y,f);break;case"together":c2(i,!1,null,null,void 0,f);break;default:i.memoizedState=null}return i.child}function wn(n,i,u){if(n!==null&&(i.dependencies=n.dependencies),Wn|=i.lanes,(u&i.childLanes)===0)if(n!==null){if(Ar(n,i,u,!1),(u&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(l(153));if(i.child!==null){for(n=i.child,u=pn(n,n.pendingProps),i.child=u,u.return=i;n.sibling!==null;)n=n.sibling,u=u.sibling=pn(n,n.pendingProps),u.return=i;u.sibling=null}return i.child}function u2(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&Ni(n)))}function K_(n,i,u){switch(i.tag){case 3:fe(i,i.stateNode.containerInfo),Pn(i,wt,n.memoizedState.cache),H0();break;case 27:case 5:Ee(i);break;case 4:fe(i,i.stateNode.containerInfo);break;case 10:Pn(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,kc(i),null;break;case 13:var f=i.memoizedState;if(f!==null)return f.dehydrated!==null?(Kn(i),i.flags|=128,null):(u&i.child.childLanes)!==0?B5(n,i,u):(Kn(i),n=wn(n,i,u),n!==null?n.sibling:null);Kn(i);break;case 19:var v=(n.flags&128)!==0;if(f=(u&i.childLanes)!==0,f||(Ar(n,i,u,!1),f=(u&i.childLanes)!==0),v){if(f)return U5(n,i,u);i.flags|=128}if(v=i.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),K(gt,gt.current),f)break;return null;case 22:return i.lanes=0,F5(n,i,u,i.pendingProps);case 24:Pn(i,wt,n.memoizedState.cache)}return wn(n,i,u)}function G5(n,i,u){if(n!==null)if(n.memoizedProps!==i.pendingProps)jt=!0;else{if(!u2(n,u)&&(i.flags&128)===0)return jt=!1,K_(n,i,u);jt=(n.flags&131072)!==0}else jt=!1,Oe&&(i.flags&1048576)!==0&&Ep(i,ks,i.index);switch(i.lanes=0,i.tag){case 16:e:{var f=i.pendingProps;if(n=L0(i.elementType),i.type=n,typeof n=="function")pc(n)?(f=F0(n,f),i.tag=1,i=I5(null,i,n,f,u)):(i.tag=0,i=n2(null,i,n,f,u));else{if(n!=null){var v=n.$$typeof;if(v===S){i.tag=11,i=k5(null,i,n,f,u);break e}else if(v===_){i.tag=14,i=R5(null,i,n,f,u);break e}}throw i=W(n)||n,Error(l(306,i,""))}}return i;case 0:return n2(n,i,i.type,i.pendingProps,u);case 1:return f=i.type,v=F0(f,i.pendingProps),I5(n,i,f,v,u);case 3:e:{if(fe(i,i.stateNode.containerInfo),n===null)throw Error(l(387));f=i.pendingProps;var y=i.memoizedState;v=y.element,Hc(n,i),$s(i,f,null,u);var Z=i.memoizedState;if(f=Z.cache,Pn(i,wt,f),f!==y.cache&&Nc(i,[wt],u,!0),Is(),f=Z.element,y.isDehydrated)if(y={element:f,isDehydrated:!1,cache:Z.cache},i.updateQueue.baseState=y,i.memoizedState=y,i.flags&256){i=$5(n,i,f,u);break e}else if(f!==v){v=ja(Error(l(424)),i),Rs(v),i=$5(n,i,f,u);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(at=Ca(n.firstChild),Rt=i,Oe=!0,$n=null,Ma=!0,u=Fp(i,null,f,u),i.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(H0(),f===v){i=wn(n,i,u);break e}Ft(n,i,f,u)}i=i.child}return i;case 26:return $i(n,i),n===null?(u=rg(i.type,null,i.pendingProps,null))?i.memoizedState=u:Oe||(u=i.type,n=i.pendingProps,f=l1(I.current).createElement(u),f[kt]=i,f[Qt]=n,Ot(f,u,n),Ht(f),i.stateNode=f):i.memoizedState=rg(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return Ee(i),n===null&&Oe&&(f=i.stateNode=tg(i.type,i.pendingProps,I.current),Rt=i,Ma=!0,v=at,r0(i.type)?($2=v,at=Ca(f.firstChild)):at=v),Ft(n,i,i.pendingProps.children,u),$i(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&Oe&&((v=f=at)&&(f=EV(f,i.type,i.pendingProps,Ma),f!==null?(i.stateNode=f,Rt=i,at=Ca(f.firstChild),Ma=!1,v=!0):v=!1),v||Bn(i)),Ee(i),v=i.type,y=i.pendingProps,Z=n!==null?n.memoizedProps:null,f=y.children,F2(v,y)?f=null:Z!==null&&F2(v,Z)&&(i.flags|=32),i.memoizedState!==null&&(v=Dc(n,i,z_,null,null,u),cl._currentValue=v),$i(n,i),Ft(n,i,f,u),i.child;case 6:return n===null&&Oe&&((n=u=at)&&(u=MV(u,i.pendingProps,Ma),u!==null?(i.stateNode=u,Rt=i,at=null,n=!0):n=!1),n||Bn(i)),null;case 13:return B5(n,i,u);case 4:return fe(i,i.stateNode.containerInfo),f=i.pendingProps,n===null?i.child=R0(i,null,f,u):Ft(n,i,f,u),i.child;case 11:return k5(n,i,i.type,i.pendingProps,u);case 7:return Ft(n,i,i.pendingProps,u),i.child;case 8:return Ft(n,i,i.pendingProps.children,u),i.child;case 12:return Ft(n,i,i.pendingProps.children,u),i.child;case 10:return f=i.pendingProps,Pn(i,i.type,f.value),Ft(n,i,f.children,u),i.child;case 9:return v=i.type._context,f=i.pendingProps.children,V0(i),v=Dt(v),f=f(v),i.flags|=1,Ft(n,i,f,u),i.child;case 14:return R5(n,i,i.type,i.pendingProps,u);case 15:return D5(n,i,i.type,i.pendingProps,u);case 19:return U5(n,i,u);case 31:return Y_(n,i,u);case 22:return F5(n,i,u,i.pendingProps);case 24:return V0(i),f=Dt(wt),n===null?(v=Sc(),v===null&&(v=Je,y=Ec(),v.pooledCache=y,y.refCount++,y!==null&&(v.pooledCacheLanes|=u),v=y),i.memoizedState={parent:f,cache:v},Zc(i),Pn(i,wt,v)):((n.lanes&u)!==0&&(Hc(n,i),$s(i,null,null,u),Is()),v=n.memoizedState,y=i.memoizedState,v.parent!==f?(v={parent:f,cache:f},i.memoizedState=v,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=v),Pn(i,wt,f)):(f=y.cache,Pn(i,wt,f),f!==v.cache&&Nc(i,[wt],u,!0))),Ft(n,i,i.pendingProps.children,u),i.child;case 29:throw i.pendingProps}throw Error(l(156,i.tag))}function An(n){n.flags|=4}function d2(n,i,u,f,v){if((i=(n.mode&32)!==0)&&(i=!1),i){if(n.flags|=16777216,(v&335544128)===v)if(n.stateNode.complete)n.flags|=8192;else if(yx())n.flags|=8192;else throw k0=Ci,Cc}else n.flags&=-16777217}function Y5(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!cg(i))if(yx())n.flags|=8192;else throw k0=Ci,Cc}function Pi(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?S3():536870912,n.lanes|=i,Lr|=i)}function Ks(n,i){if(!Oe)switch(n.tailMode){case"hidden":i=n.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?n.tail=null:u.sibling=null;break;case"collapsed":u=n.tail;for(var f=null;u!==null;)u.alternate!==null&&(f=u),u=u.sibling;f===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:f.sibling=null}}function nt(n){var i=n.alternate!==null&&n.alternate.child===n.child,u=0,f=0;if(i)for(var v=n.child;v!==null;)u|=v.lanes|v.childLanes,f|=v.subtreeFlags&65011712,f|=v.flags&65011712,v.return=n,v=v.sibling;else for(v=n.child;v!==null;)u|=v.lanes|v.childLanes,f|=v.subtreeFlags,f|=v.flags,v.return=n,v=v.sibling;return n.subtreeFlags|=f,n.childLanes=u,i}function X_(n,i,u){var f=i.pendingProps;switch(bc(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(i),null;case 1:return nt(i),null;case 3:return u=i.stateNode,f=null,n!==null&&(f=n.memoizedState.cache),i.memoizedState.cache!==f&&(i.flags|=2048),vn(wt),pe(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(wr(i)?An(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,wc())),nt(i),null;case 26:var v=i.type,y=i.memoizedState;return n===null?(An(i),y!==null?(nt(i),Y5(i,y)):(nt(i),d2(i,v,null,f,u))):y?y!==n.memoizedState?(An(i),nt(i),Y5(i,y)):(nt(i),i.flags&=-16777217):(n=n.memoizedProps,n!==f&&An(i),nt(i),d2(i,v,n,f,u)),null;case 27:if(Se(i),u=I.current,v=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==f&&An(i);else{if(!f){if(i.stateNode===null)throw Error(l(166));return nt(i),null}n=q.current,wr(i)?Sp(i):(n=tg(v,f,u),i.stateNode=n,An(i))}return nt(i),null;case 5:if(Se(i),v=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==f&&An(i);else{if(!f){if(i.stateNode===null)throw Error(l(166));return nt(i),null}if(y=q.current,wr(i))Sp(i);else{var Z=l1(I.current);switch(y){case 1:y=Z.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:y=Z.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":y=Z.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":y=Z.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":y=Z.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof f.is=="string"?Z.createElement("select",{is:f.is}):Z.createElement("select"),f.multiple?y.multiple=!0:f.size&&(y.size=f.size);break;default:y=typeof f.is=="string"?Z.createElement(v,{is:f.is}):Z.createElement(v)}}y[kt]=i,y[Qt]=f;e:for(Z=i.child;Z!==null;){if(Z.tag===5||Z.tag===6)y.appendChild(Z.stateNode);else if(Z.tag!==4&&Z.tag!==27&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===i)break e;for(;Z.sibling===null;){if(Z.return===null||Z.return===i)break e;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}i.stateNode=y;e:switch(Ot(y,v,f),v){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}f&&An(i)}}return nt(i),d2(i,i.type,n===null?null:n.memoizedProps,i.pendingProps,u),null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==f&&An(i);else{if(typeof f!="string"&&i.stateNode===null)throw Error(l(166));if(n=I.current,wr(i)){if(n=i.stateNode,u=i.memoizedProps,f=null,v=Rt,v!==null)switch(v.tag){case 27:case 5:f=v.memoizedProps}n[kt]=i,n=!!(n.nodeValue===u||f!==null&&f.suppressHydrationWarning===!0||Bx(n.nodeValue,u)),n||Bn(i,!0)}else n=l1(n).createTextNode(f),n[kt]=i,i.stateNode=n}return nt(i),null;case 31:if(u=i.memoizedState,n===null||n.memoizedState!==null){if(f=wr(i),u!==null){if(n===null){if(!f)throw Error(l(318));if(n=i.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(l(557));n[kt]=i}else H0(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;nt(i),n=!1}else u=wc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=u),n=!0;if(!n)return i.flags&256?(da(i),i):(da(i),null);if((i.flags&128)!==0)throw Error(l(558))}return nt(i),null;case 13:if(f=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(v=wr(i),f!==null&&f.dehydrated!==null){if(n===null){if(!v)throw Error(l(318));if(v=i.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(l(317));v[kt]=i}else H0(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;nt(i),v=!1}else v=wc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=v),v=!0;if(!v)return i.flags&256?(da(i),i):(da(i),null)}return da(i),(i.flags&128)!==0?(i.lanes=u,i):(u=f!==null,n=n!==null&&n.memoizedState!==null,u&&(f=i.child,v=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(v=f.alternate.memoizedState.cachePool.pool),y=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(y=f.memoizedState.cachePool.pool),y!==v&&(f.flags|=2048)),u!==n&&u&&(i.child.flags|=8192),Pi(i,i.updateQueue),nt(i),null);case 4:return pe(),n===null&&T2(i.stateNode.containerInfo),nt(i),null;case 10:return vn(i.type),nt(i),null;case 19:if(Y(gt),f=i.memoizedState,f===null)return nt(i),null;if(v=(i.flags&128)!==0,y=f.rendering,y===null)if(v)Ks(f,!1);else{if(ht!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(y=Vi(n),y!==null){for(i.flags|=128,Ks(f,!1),n=y.updateQueue,i.updateQueue=n,Pi(i,n),i.subtreeFlags=0,n=u,u=i.child;u!==null;)Ap(u,n),u=u.sibling;return K(gt,gt.current&1|2),Oe&&xn(i,f.treeForkCount),i.child}n=n.sibling}f.tail!==null&&rt()>Xi&&(i.flags|=128,v=!0,Ks(f,!1),i.lanes=4194304)}else{if(!v)if(n=Vi(y),n!==null){if(i.flags|=128,v=!0,n=n.updateQueue,i.updateQueue=n,Pi(i,n),Ks(f,!0),f.tail===null&&f.tailMode==="hidden"&&!y.alternate&&!Oe)return nt(i),null}else 2*rt()-f.renderingStartTime>Xi&&u!==536870912&&(i.flags|=128,v=!0,Ks(f,!1),i.lanes=4194304);f.isBackwards?(y.sibling=i.child,i.child=y):(n=f.last,n!==null?n.sibling=y:i.child=y,f.last=y)}return f.tail!==null?(n=f.tail,f.rendering=n,f.tail=n.sibling,f.renderingStartTime=rt(),n.sibling=null,u=gt.current,K(gt,v?u&1|2:u&1),Oe&&xn(i,f.treeForkCount),n):(nt(i),null);case 22:case 23:return da(i),Lc(),f=i.memoizedState!==null,n!==null?n.memoizedState!==null!==f&&(i.flags|=8192):f&&(i.flags|=8192),f?(u&536870912)!==0&&(i.flags&128)===0&&(nt(i),i.subtreeFlags&6&&(i.flags|=8192)):nt(i),u=i.updateQueue,u!==null&&Pi(i,u.retryQueue),u=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),f=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==u&&(i.flags|=2048),n!==null&&Y(T0),null;case 24:return u=null,n!==null&&(u=n.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),vn(wt),nt(i),null;case 25:return null;case 30:return null}throw Error(l(156,i.tag))}function Q_(n,i){switch(bc(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return vn(wt),pe(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return Se(i),null;case 31:if(i.memoizedState!==null){if(da(i),i.alternate===null)throw Error(l(340));H0()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 13:if(da(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(l(340));H0()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return Y(gt),null;case 4:return pe(),null;case 10:return vn(i.type),null;case 22:case 23:return da(i),Lc(),n!==null&&Y(T0),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return vn(wt),null;case 25:return null;default:return null}}function K5(n,i){switch(bc(i),i.tag){case 3:vn(wt),pe();break;case 26:case 27:case 5:Se(i);break;case 4:pe();break;case 31:i.memoizedState!==null&&da(i);break;case 13:da(i);break;case 19:Y(gt);break;case 10:vn(i.type);break;case 22:case 23:da(i),Lc(),n!==null&&Y(T0);break;case 24:vn(wt)}}function Xs(n,i){try{var u=i.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var v=f.next;u=v;do{if((u.tag&n)===n){f=void 0;var y=u.create,Z=u.inst;f=y(),Z.destroy=f}u=u.next}while(u!==v)}}catch(R){Ye(i,i.return,R)}}function Qn(n,i,u){try{var f=i.updateQueue,v=f!==null?f.lastEffect:null;if(v!==null){var y=v.next;f=y;do{if((f.tag&n)===n){var Z=f.inst,R=Z.destroy;if(R!==void 0){Z.destroy=void 0,v=i;var G=u,ne=R;try{ne()}catch(oe){Ye(v,G,oe)}}}f=f.next}while(f!==y)}}catch(oe){Ye(i,i.return,oe)}}function X5(n){var i=n.updateQueue;if(i!==null){var u=n.stateNode;try{zp(i,u)}catch(f){Ye(n,n.return,f)}}}function Q5(n,i,u){u.props=F0(n.type,n.memoizedProps),u.state=n.memoizedState;try{u.componentWillUnmount()}catch(f){Ye(n,i,f)}}function Qs(n,i){try{var u=n.ref;if(u!==null){switch(n.tag){case 26:case 27:case 5:var f=n.stateNode;break;case 30:f=n.stateNode;break;default:f=n.stateNode}typeof u=="function"?n.refCleanup=u(f):u.current=f}}catch(v){Ye(n,i,v)}}function Wa(n,i){var u=n.ref,f=n.refCleanup;if(u!==null)if(typeof f=="function")try{f()}catch(v){Ye(n,i,v)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){Ye(n,i,v)}else u.current=null}function J5(n){var i=n.type,u=n.memoizedProps,f=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":u.autoFocus&&f.focus();break e;case"img":u.src?f.src=u.src:u.srcSet&&(f.srcset=u.srcSet)}}catch(v){Ye(n,n.return,v)}}function h2(n,i,u){try{var f=n.stateNode;bV(f,n.type,u,i),f[Qt]=i}catch(v){Ye(n,n.return,v)}}function W5(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&r0(n.type)||n.tag===4}function m2(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||W5(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&r0(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function f2(n,i,u){var f=n.tag;if(f===5||f===6)n=n.stateNode,i?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(n,i):(i=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,i.appendChild(n),u=u._reactRootContainer,u!=null||i.onclick!==null||(i.onclick=mn));else if(f!==4&&(f===27&&r0(n.type)&&(u=n.stateNode,i=null),n=n.child,n!==null))for(f2(n,i,u),n=n.sibling;n!==null;)f2(n,i,u),n=n.sibling}function Ui(n,i,u){var f=n.tag;if(f===5||f===6)n=n.stateNode,i?u.insertBefore(n,i):u.appendChild(n);else if(f!==4&&(f===27&&r0(n.type)&&(u=n.stateNode),n=n.child,n!==null))for(Ui(n,i,u),n=n.sibling;n!==null;)Ui(n,i,u),n=n.sibling}function ex(n){var i=n.stateNode,u=n.memoizedProps;try{for(var f=n.type,v=i.attributes;v.length;)i.removeAttributeNode(v[0]);Ot(i,f,u),i[kt]=n,i[Qt]=u}catch(y){Ye(n,n.return,y)}}var jn=!1,Nt=!1,p2=!1,tx=typeof WeakSet=="function"?WeakSet:Set,_t=null;function J_(n,i){if(n=n.containerInfo,R2=m1,n=mp(n),oc(n)){if("selectionStart"in n)var u={start:n.selectionStart,end:n.selectionEnd};else e:{u=(u=n.ownerDocument)&&u.defaultView||window;var f=u.getSelection&&u.getSelection();if(f&&f.rangeCount!==0){u=f.anchorNode;var v=f.anchorOffset,y=f.focusNode;f=f.focusOffset;try{u.nodeType,y.nodeType}catch{u=null;break e}var Z=0,R=-1,G=-1,ne=0,oe=0,he=n,re=null;t:for(;;){for(var le;he!==u||v!==0&&he.nodeType!==3||(R=Z+v),he!==y||f!==0&&he.nodeType!==3||(G=Z+f),he.nodeType===3&&(Z+=he.nodeValue.length),(le=he.firstChild)!==null;)re=he,he=le;for(;;){if(he===n)break t;if(re===u&&++ne===v&&(R=Z),re===y&&++oe===f&&(G=Z),(le=he.nextSibling)!==null)break;he=re,re=he.parentNode}he=le}u=R===-1||G===-1?null:{start:R,end:G}}else u=null}u=u||{start:0,end:0}}else u=null;for(D2={focusedElem:n,selectionRange:u},m1=!1,_t=i;_t!==null;)if(i=_t,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,_t=n;else for(;_t!==null;){switch(i=_t,y=i.alternate,n=i.flags,i.tag){case 0:if((n&4)!==0&&(n=i.updateQueue,n=n!==null?n.events:null,n!==null))for(u=0;u<n.length;u++)v=n[u],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&y!==null){n=void 0,u=i,v=y.memoizedProps,y=y.memoizedState,f=u.stateNode;try{var xe=F0(u.type,v);n=f.getSnapshotBeforeUpdate(xe,y),f.__reactInternalSnapshotBeforeUpdate=n}catch(we){Ye(u,u.return,we)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,u=n.nodeType,u===9)z2(n);else if(u===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":z2(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(l(163))}if(n=i.sibling,n!==null){n.return=i.return,_t=n;break}_t=i.return}}function ax(n,i,u){var f=u.flags;switch(u.tag){case 0:case 11:case 15:En(n,u),f&4&&Xs(5,u);break;case 1:if(En(n,u),f&4)if(n=u.stateNode,i===null)try{n.componentDidMount()}catch(Z){Ye(u,u.return,Z)}else{var v=F0(u.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(v,i,n.__reactInternalSnapshotBeforeUpdate)}catch(Z){Ye(u,u.return,Z)}}f&64&&X5(u),f&512&&Qs(u,u.return);break;case 3:if(En(n,u),f&64&&(n=u.updateQueue,n!==null)){if(i=null,u.child!==null)switch(u.child.tag){case 27:case 5:i=u.child.stateNode;break;case 1:i=u.child.stateNode}try{zp(n,i)}catch(Z){Ye(u,u.return,Z)}}break;case 27:i===null&&f&4&&ex(u);case 26:case 5:En(n,u),i===null&&f&4&&J5(u),f&512&&Qs(u,u.return);break;case 12:En(n,u);break;case 31:En(n,u),f&4&&sx(n,u);break;case 13:En(n,u),f&4&&lx(n,u),f&64&&(n=u.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(u=iV.bind(null,u),SV(n,u))));break;case 22:if(f=u.memoizedState!==null||jn,!f){i=i!==null&&i.memoizedState!==null||Nt,v=jn;var y=Nt;jn=f,(Nt=i)&&!y?Mn(n,u,(u.subtreeFlags&8772)!==0):En(n,u),jn=v,Nt=y}break;case 30:break;default:En(n,u)}}function nx(n){var i=n.alternate;i!==null&&(n.alternate=null,nx(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&Po(i)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var st=null,Wt=!1;function Nn(n,i,u){for(u=u.child;u!==null;)rx(n,i,u),u=u.sibling}function rx(n,i,u){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Xt,u)}catch{}switch(u.tag){case 26:Nt||Wa(u,i),Nn(n,i,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Nt||Wa(u,i);var f=st,v=Wt;r0(u.type)&&(st=u.stateNode,Wt=!1),Nn(n,i,u),ll(u.stateNode),st=f,Wt=v;break;case 5:Nt||Wa(u,i);case 6:if(f=st,v=Wt,st=null,Nn(n,i,u),st=f,Wt=v,st!==null)if(Wt)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(u.stateNode)}catch(y){Ye(u,i,y)}else try{st.removeChild(u.stateNode)}catch(y){Ye(u,i,y)}break;case 18:st!==null&&(Wt?(n=st,Xx(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,u.stateNode),Ir(n)):Xx(st,u.stateNode));break;case 4:f=st,v=Wt,st=u.stateNode.containerInfo,Wt=!0,Nn(n,i,u),st=f,Wt=v;break;case 0:case 11:case 14:case 15:Qn(2,u,i),Nt||Qn(4,u,i),Nn(n,i,u);break;case 1:Nt||(Wa(u,i),f=u.stateNode,typeof f.componentWillUnmount=="function"&&Q5(u,i,f)),Nn(n,i,u);break;case 21:Nn(n,i,u);break;case 22:Nt=(f=Nt)||u.memoizedState!==null,Nn(n,i,u),Nt=f;break;default:Nn(n,i,u)}}function sx(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Ir(n)}catch(u){Ye(i,i.return,u)}}}function lx(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Ir(n)}catch(u){Ye(i,i.return,u)}}function W_(n){switch(n.tag){case 31:case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new tx),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new tx),i;default:throw Error(l(435,n.tag))}}function Gi(n,i){var u=W_(n);i.forEach(function(f){if(!u.has(f)){u.add(f);var v=oV.bind(null,n,f);f.then(v,v)}})}function ea(n,i){var u=i.deletions;if(u!==null)for(var f=0;f<u.length;f++){var v=u[f],y=n,Z=i,R=Z;e:for(;R!==null;){switch(R.tag){case 27:if(r0(R.type)){st=R.stateNode,Wt=!1;break e}break;case 5:st=R.stateNode,Wt=!1;break e;case 3:case 4:st=R.stateNode.containerInfo,Wt=!0;break e}R=R.return}if(st===null)throw Error(l(160));rx(y,Z,v),st=null,Wt=!1,y=v.alternate,y!==null&&(y.return=null),v.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)ix(i,n),i=i.sibling}var za=null;function ix(n,i){var u=n.alternate,f=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:ea(i,n),ta(n),f&4&&(Qn(3,n,n.return),Xs(3,n),Qn(5,n,n.return));break;case 1:ea(i,n),ta(n),f&512&&(Nt||u===null||Wa(u,u.return)),f&64&&jn&&(n=n.updateQueue,n!==null&&(f=n.callbacks,f!==null&&(u=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=u===null?f:u.concat(f))));break;case 26:var v=za;if(ea(i,n),ta(n),f&512&&(Nt||u===null||Wa(u,u.return)),f&4){var y=u!==null?u.memoizedState:null;if(f=n.memoizedState,u===null)if(f===null)if(n.stateNode===null){e:{f=n.type,u=n.memoizedProps,v=v.ownerDocument||v;t:switch(f){case"title":y=v.getElementsByTagName("title")[0],(!y||y[Ns]||y[kt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=v.createElement(f),v.head.insertBefore(y,v.querySelector("head > title"))),Ot(y,f,u),y[kt]=n,Ht(y),f=y;break e;case"link":var Z=ig("link","href",v).get(f+(u.href||""));if(Z){for(var R=0;R<Z.length;R++)if(y=Z[R],y.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&y.getAttribute("rel")===(u.rel==null?null:u.rel)&&y.getAttribute("title")===(u.title==null?null:u.title)&&y.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){Z.splice(R,1);break t}}y=v.createElement(f),Ot(y,f,u),v.head.appendChild(y);break;case"meta":if(Z=ig("meta","content",v).get(f+(u.content||""))){for(R=0;R<Z.length;R++)if(y=Z[R],y.getAttribute("content")===(u.content==null?null:""+u.content)&&y.getAttribute("name")===(u.name==null?null:u.name)&&y.getAttribute("property")===(u.property==null?null:u.property)&&y.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&y.getAttribute("charset")===(u.charSet==null?null:u.charSet)){Z.splice(R,1);break t}}y=v.createElement(f),Ot(y,f,u),v.head.appendChild(y);break;default:throw Error(l(468,f))}y[kt]=n,Ht(y),f=y}n.stateNode=f}else og(v,n.type,n.stateNode);else n.stateNode=lg(v,f,n.memoizedProps);else y!==f?(y===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):y.count--,f===null?og(v,n.type,n.stateNode):lg(v,f,n.memoizedProps)):f===null&&n.stateNode!==null&&h2(n,n.memoizedProps,u.memoizedProps)}break;case 27:ea(i,n),ta(n),f&512&&(Nt||u===null||Wa(u,u.return)),u!==null&&f&4&&h2(n,n.memoizedProps,u.memoizedProps);break;case 5:if(ea(i,n),ta(n),f&512&&(Nt||u===null||Wa(u,u.return)),n.flags&32){v=n.stateNode;try{dr(v,"")}catch(xe){Ye(n,n.return,xe)}}f&4&&n.stateNode!=null&&(v=n.memoizedProps,h2(n,v,u!==null?u.memoizedProps:v)),f&1024&&(p2=!0);break;case 6:if(ea(i,n),ta(n),f&4){if(n.stateNode===null)throw Error(l(162));f=n.memoizedProps,u=n.stateNode;try{u.nodeValue=f}catch(xe){Ye(n,n.return,xe)}}break;case 3:if(c1=null,v=za,za=i1(i.containerInfo),ea(i,n),za=v,ta(n),f&4&&u!==null&&u.memoizedState.isDehydrated)try{Ir(i.containerInfo)}catch(xe){Ye(n,n.return,xe)}p2&&(p2=!1,ox(n));break;case 4:f=za,za=i1(n.stateNode.containerInfo),ea(i,n),ta(n),za=f;break;case 12:ea(i,n),ta(n);break;case 31:ea(i,n),ta(n),f&4&&(f=n.updateQueue,f!==null&&(n.updateQueue=null,Gi(n,f)));break;case 13:ea(i,n),ta(n),n.child.flags&8192&&n.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Ki=rt()),f&4&&(f=n.updateQueue,f!==null&&(n.updateQueue=null,Gi(n,f)));break;case 22:v=n.memoizedState!==null;var G=u!==null&&u.memoizedState!==null,ne=jn,oe=Nt;if(jn=ne||v,Nt=oe||G,ea(i,n),Nt=oe,jn=ne,ta(n),f&8192)e:for(i=n.stateNode,i._visibility=v?i._visibility&-2:i._visibility|1,v&&(u===null||G||jn||Nt||O0(n)),u=null,i=n;;){if(i.tag===5||i.tag===26){if(u===null){G=u=i;try{if(y=G.stateNode,v)Z=y.style,typeof Z.setProperty=="function"?Z.setProperty("display","none","important"):Z.display="none";else{R=G.stateNode;var he=G.memoizedProps.style,re=he!=null&&he.hasOwnProperty("display")?he.display:null;R.style.display=re==null||typeof re=="boolean"?"":(""+re).trim()}}catch(xe){Ye(G,G.return,xe)}}}else if(i.tag===6){if(u===null){G=i;try{G.stateNode.nodeValue=v?"":G.memoizedProps}catch(xe){Ye(G,G.return,xe)}}}else if(i.tag===18){if(u===null){G=i;try{var le=G.stateNode;v?Qx(le,!0):Qx(G.stateNode,!1)}catch(xe){Ye(G,G.return,xe)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;u===i&&(u=null),i=i.return}u===i&&(u=null),i.sibling.return=i.return,i=i.sibling}f&4&&(f=n.updateQueue,f!==null&&(u=f.retryQueue,u!==null&&(f.retryQueue=null,Gi(n,u))));break;case 19:ea(i,n),ta(n),f&4&&(f=n.updateQueue,f!==null&&(n.updateQueue=null,Gi(n,f)));break;case 30:break;case 21:break;default:ea(i,n),ta(n)}}function ta(n){var i=n.flags;if(i&2){try{for(var u,f=n.return;f!==null;){if(W5(f)){u=f;break}f=f.return}if(u==null)throw Error(l(160));switch(u.tag){case 27:var v=u.stateNode,y=m2(n);Ui(n,y,v);break;case 5:var Z=u.stateNode;u.flags&32&&(dr(Z,""),u.flags&=-33);var R=m2(n);Ui(n,R,Z);break;case 3:case 4:var G=u.stateNode.containerInfo,ne=m2(n);f2(n,ne,G);break;default:throw Error(l(161))}}catch(oe){Ye(n,n.return,oe)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function ox(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;ox(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function En(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)ax(n,i.alternate,i),i=i.sibling}function O0(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:Qn(4,i,i.return),O0(i);break;case 1:Wa(i,i.return);var u=i.stateNode;typeof u.componentWillUnmount=="function"&&Q5(i,i.return,u),O0(i);break;case 27:ll(i.stateNode);case 26:case 5:Wa(i,i.return),O0(i);break;case 22:i.memoizedState===null&&O0(i);break;case 30:O0(i);break;default:O0(i)}n=n.sibling}}function Mn(n,i,u){for(u=u&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var f=i.alternate,v=n,y=i,Z=y.flags;switch(y.tag){case 0:case 11:case 15:Mn(v,y,u),Xs(4,y);break;case 1:if(Mn(v,y,u),f=y,v=f.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(ne){Ye(f,f.return,ne)}if(f=y,v=f.updateQueue,v!==null){var R=f.stateNode;try{var G=v.shared.hiddenCallbacks;if(G!==null)for(v.shared.hiddenCallbacks=null,v=0;v<G.length;v++)Op(G[v],R)}catch(ne){Ye(f,f.return,ne)}}u&&Z&64&&X5(y),Qs(y,y.return);break;case 27:ex(y);case 26:case 5:Mn(v,y,u),u&&f===null&&Z&4&&J5(y),Qs(y,y.return);break;case 12:Mn(v,y,u);break;case 31:Mn(v,y,u),u&&Z&4&&sx(v,y);break;case 13:Mn(v,y,u),u&&Z&4&&lx(v,y);break;case 22:y.memoizedState===null&&Mn(v,y,u),Qs(y,y.return);break;case 30:break;default:Mn(v,y,u)}i=i.sibling}}function x2(n,i){var u=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==u&&(n!=null&&n.refCount++,u!=null&&Ds(u))}function g2(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Ds(n))}function qa(n,i,u,f){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)cx(n,i,u,f),i=i.sibling}function cx(n,i,u,f){var v=i.flags;switch(i.tag){case 0:case 11:case 15:qa(n,i,u,f),v&2048&&Xs(9,i);break;case 1:qa(n,i,u,f);break;case 3:qa(n,i,u,f),v&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Ds(n)));break;case 12:if(v&2048){qa(n,i,u,f),n=i.stateNode;try{var y=i.memoizedProps,Z=y.id,R=y.onPostCommit;typeof R=="function"&&R(Z,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(G){Ye(i,i.return,G)}}else qa(n,i,u,f);break;case 31:qa(n,i,u,f);break;case 13:qa(n,i,u,f);break;case 23:break;case 22:y=i.stateNode,Z=i.alternate,i.memoizedState!==null?y._visibility&2?qa(n,i,u,f):Js(n,i):y._visibility&2?qa(n,i,u,f):(y._visibility|=2,_r(n,i,u,f,(i.subtreeFlags&10256)!==0||!1)),v&2048&&x2(Z,i);break;case 24:qa(n,i,u,f),v&2048&&g2(i.alternate,i);break;default:qa(n,i,u,f)}}function _r(n,i,u,f,v){for(v=v&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var y=n,Z=i,R=u,G=f,ne=Z.flags;switch(Z.tag){case 0:case 11:case 15:_r(y,Z,R,G,v),Xs(8,Z);break;case 23:break;case 22:var oe=Z.stateNode;Z.memoizedState!==null?oe._visibility&2?_r(y,Z,R,G,v):Js(y,Z):(oe._visibility|=2,_r(y,Z,R,G,v)),v&&ne&2048&&x2(Z.alternate,Z);break;case 24:_r(y,Z,R,G,v),v&&ne&2048&&g2(Z.alternate,Z);break;default:_r(y,Z,R,G,v)}i=i.sibling}}function Js(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var u=n,f=i,v=f.flags;switch(f.tag){case 22:Js(u,f),v&2048&&x2(f.alternate,f);break;case 24:Js(u,f),v&2048&&g2(f.alternate,f);break;default:Js(u,f)}i=i.sibling}}var Ws=8192;function Vr(n,i,u){if(n.subtreeFlags&Ws)for(n=n.child;n!==null;)ux(n,i,u),n=n.sibling}function ux(n,i,u){switch(n.tag){case 26:Vr(n,i,u),n.flags&Ws&&n.memoizedState!==null&&OV(u,za,n.memoizedState,n.memoizedProps);break;case 5:Vr(n,i,u);break;case 3:case 4:var f=za;za=i1(n.stateNode.containerInfo),Vr(n,i,u),za=f;break;case 22:n.memoizedState===null&&(f=n.alternate,f!==null&&f.memoizedState!==null?(f=Ws,Ws=16777216,Vr(n,i,u),Ws=f):Vr(n,i,u));break;default:Vr(n,i,u)}}function dx(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function el(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var f=i[u];_t=f,mx(f,n)}dx(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)hx(n),n=n.sibling}function hx(n){switch(n.tag){case 0:case 11:case 15:el(n),n.flags&2048&&Qn(9,n,n.return);break;case 3:el(n);break;case 12:el(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,Yi(n)):el(n);break;default:el(n)}}function Yi(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var f=i[u];_t=f,mx(f,n)}dx(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:Qn(8,i,i.return),Yi(i);break;case 22:u=i.stateNode,u._visibility&2&&(u._visibility&=-3,Yi(i));break;default:Yi(i)}n=n.sibling}}function mx(n,i){for(;_t!==null;){var u=_t;switch(u.tag){case 0:case 11:case 15:Qn(8,u,i);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var f=u.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:Ds(u.memoizedState.cache)}if(f=u.child,f!==null)f.return=u,_t=f;else e:for(u=n;_t!==null;){f=_t;var v=f.sibling,y=f.return;if(nx(f),f===u){_t=null;break e}if(v!==null){v.return=y,_t=v;break e}_t=y}}}var eV={getCacheForType:function(n){var i=Dt(wt),u=i.data.get(n);return u===void 0&&(u=n(),i.data.set(n,u)),u},cacheSignal:function(){return Dt(wt).controller.signal}},tV=typeof WeakMap=="function"?WeakMap:Map,$e=0,Je=null,Le=null,Re=0,Ge=0,ha=null,Jn=!1,Tr=!1,v2=!1,Sn=0,ht=0,Wn=0,z0=0,b2=0,ma=0,Lr=0,tl=null,aa=null,y2=!1,Ki=0,fx=0,Xi=1/0,Qi=null,e0=null,St=0,t0=null,kr=null,Cn=0,w2=0,A2=null,px=null,al=0,j2=null;function fa(){return($e&2)!==0&&Re!==0?Re&-Re:O.T!==null?Z2():_3()}function xx(){if(ma===0)if((Re&536870912)===0||Oe){var n=si;si<<=1,(si&3932160)===0&&(si=262144),ma=n}else ma=536870912;return n=ua.current,n!==null&&(n.flags|=32),ma}function na(n,i,u){(n===Je&&(Ge===2||Ge===9)||n.cancelPendingCommit!==null)&&(Rr(n,0),a0(n,Re,ma,!1)),js(n,u),(($e&2)===0||n!==Je)&&(n===Je&&(($e&2)===0&&(z0|=u),ht===4&&a0(n,Re,ma,!1)),en(n))}function gx(n,i,u){if(($e&6)!==0)throw Error(l(327));var f=!u&&(i&127)===0&&(i&n.expiredLanes)===0||As(n,i),v=f?rV(n,i):E2(n,i,!0),y=f;do{if(v===0){Tr&&!f&&a0(n,i,0,!1);break}else{if(u=n.current.alternate,y&&!aV(u)){v=E2(n,i,!1),y=!1;continue}if(v===2){if(y=i,n.errorRecoveryDisabledLanes&y)var Z=0;else Z=n.pendingLanes&-536870913,Z=Z!==0?Z:Z&536870912?536870912:0;if(Z!==0){i=Z;e:{var R=n;v=tl;var G=R.current.memoizedState.isDehydrated;if(G&&(Rr(R,Z).flags|=256),Z=E2(R,Z,!1),Z!==2){if(v2&&!G){R.errorRecoveryDisabledLanes|=y,z0|=y,v=4;break e}y=aa,aa=v,y!==null&&(aa===null?aa=y:aa.push.apply(aa,y))}v=Z}if(y=!1,v!==2)continue}}if(v===1){Rr(n,0),a0(n,i,0,!0);break}e:{switch(f=n,y=v,y){case 0:case 1:throw Error(l(345));case 4:if((i&4194048)!==i)break;case 6:a0(f,i,ma,!Jn);break e;case 2:aa=null;break;case 3:case 5:break;default:throw Error(l(329))}if((i&62914560)===i&&(v=Ki+300-rt(),10<v)){if(a0(f,i,ma,!Jn),ii(f,0,!0)!==0)break e;Cn=i,f.timeoutHandle=Yx(vx.bind(null,f,u,aa,Qi,y2,i,ma,z0,Lr,Jn,y,"Throttled",-0,0),v);break e}vx(f,u,aa,Qi,y2,i,ma,z0,Lr,Jn,y,null,-0,0)}}break}while(!0);en(n)}function vx(n,i,u,f,v,y,Z,R,G,ne,oe,he,re,le){if(n.timeoutHandle=-1,he=i.subtreeFlags,he&8192||(he&16785408)===16785408){he={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mn},ux(i,y,he);var xe=(y&62914560)===y?Ki-rt():(y&4194048)===y?fx-rt():0;if(xe=zV(he,xe),xe!==null){Cn=y,n.cancelPendingCommit=xe(Mx.bind(null,n,i,y,u,f,v,Z,R,G,oe,he,null,re,le)),a0(n,y,Z,!ne);return}}Mx(n,i,y,u,f,v,Z,R,G)}function aV(n){for(var i=n;;){var u=i.tag;if((u===0||u===11||u===15)&&i.flags&16384&&(u=i.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var f=0;f<u.length;f++){var v=u[f],y=v.getSnapshot;v=v.value;try{if(!oa(y(),v))return!1}catch{return!1}}if(u=i.child,i.subtreeFlags&16384&&u!==null)u.return=i,i=u;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function a0(n,i,u,f){i&=~b2,i&=~z0,n.suspendedLanes|=i,n.pingedLanes&=~i,f&&(n.warmLanes|=i),f=n.expirationTimes;for(var v=i;0<v;){var y=31-ia(v),Z=1<<y;f[y]=-1,v&=~Z}u!==0&&C3(n,u,i)}function Ji(){return($e&6)===0?(nl(0),!1):!0}function N2(){if(Le!==null){if(Ge===0)var n=Le.return;else n=Le,gn=_0=null,zc(n),Mr=null,Os=0,n=Le;for(;n!==null;)K5(n.alternate,n),n=n.return;Le=null}}function Rr(n,i){var u=n.timeoutHandle;u!==-1&&(n.timeoutHandle=-1,AV(u)),u=n.cancelPendingCommit,u!==null&&(n.cancelPendingCommit=null,u()),Cn=0,N2(),Je=n,Le=u=pn(n.current,null),Re=i,Ge=0,ha=null,Jn=!1,Tr=As(n,i),v2=!1,Lr=ma=b2=z0=Wn=ht=0,aa=tl=null,y2=!1,(i&8)!==0&&(i|=i&32);var f=n.entangledLanes;if(f!==0)for(n=n.entanglements,f&=i;0<f;){var v=31-ia(f),y=1<<v;i|=n[v],f&=~y}return Sn=i,bi(),u}function bx(n,i){Ze=null,O.H=Gs,i===Er||i===Si?(i=kp(),Ge=3):i===Cc?(i=kp(),Ge=4):Ge=i===a2?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,ha=i,Le===null&&(ht=1,qi(n,ja(i,n.current)))}function yx(){var n=ua.current;return n===null?!0:(Re&4194048)===Re?Sa===null:(Re&62914560)===Re||(Re&536870912)!==0?n===Sa:!1}function wx(){var n=O.H;return O.H=Gs,n===null?Gs:n}function Ax(){var n=O.A;return O.A=eV,n}function Wi(){ht=4,Jn||(Re&4194048)!==Re&&ua.current!==null||(Tr=!0),(Wn&134217727)===0&&(z0&134217727)===0||Je===null||a0(Je,Re,ma,!1)}function E2(n,i,u){var f=$e;$e|=2;var v=wx(),y=Ax();(Je!==n||Re!==i)&&(Qi=null,Rr(n,i)),i=!1;var Z=ht;e:do try{if(Ge!==0&&Le!==null){var R=Le,G=ha;switch(Ge){case 8:N2(),Z=6;break e;case 3:case 2:case 9:case 6:ua.current===null&&(i=!0);var ne=Ge;if(Ge=0,ha=null,Dr(n,R,G,ne),u&&Tr){Z=0;break e}break;default:ne=Ge,Ge=0,ha=null,Dr(n,R,G,ne)}}nV(),Z=ht;break}catch(oe){bx(n,oe)}while(!0);return i&&n.shellSuspendCounter++,gn=_0=null,$e=f,O.H=v,O.A=y,Le===null&&(Je=null,Re=0,bi()),Z}function nV(){for(;Le!==null;)jx(Le)}function rV(n,i){var u=$e;$e|=2;var f=wx(),v=Ax();Je!==n||Re!==i?(Qi=null,Xi=rt()+500,Rr(n,i)):Tr=As(n,i);e:do try{if(Ge!==0&&Le!==null){i=Le;var y=ha;t:switch(Ge){case 1:Ge=0,ha=null,Dr(n,i,y,1);break;case 2:case 9:if(Tp(y)){Ge=0,ha=null,Nx(i);break}i=function(){Ge!==2&&Ge!==9||Je!==n||(Ge=7),en(n)},y.then(i,i);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:Tp(y)?(Ge=0,ha=null,Nx(i)):(Ge=0,ha=null,Dr(n,i,y,7));break;case 5:var Z=null;switch(Le.tag){case 26:Z=Le.memoizedState;case 5:case 27:var R=Le;if(Z?cg(Z):R.stateNode.complete){Ge=0,ha=null;var G=R.sibling;if(G!==null)Le=G;else{var ne=R.return;ne!==null?(Le=ne,e1(ne)):Le=null}break t}}Ge=0,ha=null,Dr(n,i,y,5);break;case 6:Ge=0,ha=null,Dr(n,i,y,6);break;case 8:N2(),ht=6;break e;default:throw Error(l(462))}}sV();break}catch(oe){bx(n,oe)}while(!0);return gn=_0=null,O.H=f,O.A=v,$e=u,Le!==null?0:(Je=null,Re=0,bi(),ht)}function sV(){for(;Le!==null&&!ut();)jx(Le)}function jx(n){var i=G5(n.alternate,n,Sn);n.memoizedProps=n.pendingProps,i===null?e1(n):Le=i}function Nx(n){var i=n,u=i.alternate;switch(i.tag){case 15:case 0:i=q5(u,i,i.pendingProps,i.type,void 0,Re);break;case 11:i=q5(u,i,i.pendingProps,i.type.render,i.ref,Re);break;case 5:zc(i);default:K5(u,i),i=Le=Ap(i,Sn),i=G5(u,i,Sn)}n.memoizedProps=n.pendingProps,i===null?e1(n):Le=i}function Dr(n,i,u,f){gn=_0=null,zc(i),Mr=null,Os=0;var v=i.return;try{if(G_(n,v,i,u,Re)){ht=1,qi(n,ja(u,n.current)),Le=null;return}}catch(y){if(v!==null)throw Le=v,y;ht=1,qi(n,ja(u,n.current)),Le=null;return}i.flags&32768?(Oe||f===1?n=!0:Tr||(Re&536870912)!==0?n=!1:(Jn=n=!0,(f===2||f===9||f===3||f===6)&&(f=ua.current,f!==null&&f.tag===13&&(f.flags|=16384))),Ex(i,n)):e1(i)}function e1(n){var i=n;do{if((i.flags&32768)!==0){Ex(i,Jn);return}n=i.return;var u=X_(i.alternate,i,Sn);if(u!==null){Le=u;return}if(i=i.sibling,i!==null){Le=i;return}Le=i=n}while(i!==null);ht===0&&(ht=5)}function Ex(n,i){do{var u=Q_(n.alternate,n);if(u!==null){u.flags&=32767,Le=u;return}if(u=n.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!i&&(n=n.sibling,n!==null)){Le=n;return}Le=n=u}while(n!==null);ht=6,Le=null}function Mx(n,i,u,f,v,y,Z,R,G){n.cancelPendingCommit=null;do t1();while(St!==0);if(($e&6)!==0)throw Error(l(327));if(i!==null){if(i===n.current)throw Error(l(177));if(y=i.lanes|i.childLanes,y|=mc,FH(n,u,y,Z,R,G),n===Je&&(Le=Je=null,Re=0),kr=i,t0=n,Cn=u,w2=y,A2=v,px=f,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,cV(Lt,function(){return _x(),null})):(n.callbackNode=null,n.callbackPriority=0),f=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||f){f=O.T,O.T=null,v=$.p,$.p=2,Z=$e,$e|=4;try{J_(n,i,u)}finally{$e=Z,$.p=v,O.T=f}}St=1,Sx(),Cx(),Zx()}}function Sx(){if(St===1){St=0;var n=t0,i=kr,u=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||u){u=O.T,O.T=null;var f=$.p;$.p=2;var v=$e;$e|=4;try{ix(i,n);var y=D2,Z=mp(n.containerInfo),R=y.focusedElem,G=y.selectionRange;if(Z!==R&&R&&R.ownerDocument&&hp(R.ownerDocument.documentElement,R)){if(G!==null&&oc(R)){var ne=G.start,oe=G.end;if(oe===void 0&&(oe=ne),"selectionStart"in R)R.selectionStart=ne,R.selectionEnd=Math.min(oe,R.value.length);else{var he=R.ownerDocument||document,re=he&&he.defaultView||window;if(re.getSelection){var le=re.getSelection(),xe=R.textContent.length,we=Math.min(G.start,xe),Qe=G.end===void 0?we:Math.min(G.end,xe);!le.extend&&we>Qe&&(Z=Qe,Qe=we,we=Z);var ee=dp(R,we),X=dp(R,Qe);if(ee&&X&&(le.rangeCount!==1||le.anchorNode!==ee.node||le.anchorOffset!==ee.offset||le.focusNode!==X.node||le.focusOffset!==X.offset)){var ae=he.createRange();ae.setStart(ee.node,ee.offset),le.removeAllRanges(),we>Qe?(le.addRange(ae),le.extend(X.node,X.offset)):(ae.setEnd(X.node,X.offset),le.addRange(ae))}}}}for(he=[],le=R;le=le.parentNode;)le.nodeType===1&&he.push({element:le,left:le.scrollLeft,top:le.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<he.length;R++){var de=he[R];de.element.scrollLeft=de.left,de.element.scrollTop=de.top}}m1=!!R2,D2=R2=null}finally{$e=v,$.p=f,O.T=u}}n.current=i,St=2}}function Cx(){if(St===2){St=0;var n=t0,i=kr,u=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||u){u=O.T,O.T=null;var f=$.p;$.p=2;var v=$e;$e|=4;try{ax(n,i.alternate,i)}finally{$e=v,$.p=f,O.T=u}}St=3}}function Zx(){if(St===4||St===3){St=0,yt();var n=t0,i=kr,u=Cn,f=px;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?St=5:(St=0,kr=t0=null,Hx(n,n.pendingLanes));var v=n.pendingLanes;if(v===0&&(e0=null),$o(u),i=i.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(Xt,i,void 0,(i.current.flags&128)===128)}catch{}if(f!==null){i=O.T,v=$.p,$.p=2,O.T=null;try{for(var y=n.onRecoverableError,Z=0;Z<f.length;Z++){var R=f[Z];y(R.value,{componentStack:R.stack})}}finally{O.T=i,$.p=v}}(Cn&3)!==0&&t1(),en(n),v=n.pendingLanes,(u&261930)!==0&&(v&42)!==0?n===j2?al++:(al=0,j2=n):al=0,nl(0)}}function Hx(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,Ds(i)))}function t1(){return Sx(),Cx(),Zx(),_x()}function _x(){if(St!==5)return!1;var n=t0,i=w2;w2=0;var u=$o(Cn),f=O.T,v=$.p;try{$.p=32>u?32:u,O.T=null,u=A2,A2=null;var y=t0,Z=Cn;if(St=0,kr=t0=null,Cn=0,($e&6)!==0)throw Error(l(331));var R=$e;if($e|=4,hx(y.current),cx(y,y.current,Z,u),$e=R,nl(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(Xt,y)}catch{}return!0}finally{$.p=v,O.T=f,Hx(n,i)}}function Vx(n,i,u){i=ja(u,i),i=t2(n.stateNode,i,2),n=Yn(n,i,2),n!==null&&(js(n,2),en(n))}function Ye(n,i,u){if(n.tag===3)Vx(n,n,u);else for(;i!==null;){if(i.tag===3){Vx(i,n,u);break}else if(i.tag===1){var f=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(e0===null||!e0.has(f))){n=ja(u,n),u=T5(2),f=Yn(i,u,2),f!==null&&(L5(u,f,i,n),js(f,2),en(f));break}}i=i.return}}function M2(n,i,u){var f=n.pingCache;if(f===null){f=n.pingCache=new tV;var v=new Set;f.set(i,v)}else v=f.get(i),v===void 0&&(v=new Set,f.set(i,v));v.has(u)||(v2=!0,v.add(u),n=lV.bind(null,n,i,u),i.then(n,n))}function lV(n,i,u){var f=n.pingCache;f!==null&&f.delete(i),n.pingedLanes|=n.suspendedLanes&u,n.warmLanes&=~u,Je===n&&(Re&u)===u&&(ht===4||ht===3&&(Re&62914560)===Re&&300>rt()-Ki?($e&2)===0&&Rr(n,0):b2|=u,Lr===Re&&(Lr=0)),en(n)}function Tx(n,i){i===0&&(i=S3()),n=C0(n,i),n!==null&&(js(n,i),en(n))}function iV(n){var i=n.memoizedState,u=0;i!==null&&(u=i.retryLane),Tx(n,u)}function oV(n,i){var u=0;switch(n.tag){case 31:case 13:var f=n.stateNode,v=n.memoizedState;v!==null&&(u=v.retryLane);break;case 19:f=n.stateNode;break;case 22:f=n.stateNode._retryCache;break;default:throw Error(l(314))}f!==null&&f.delete(i),Tx(n,u)}function cV(n,i){return pt(n,i)}var a1=null,Fr=null,S2=!1,n1=!1,C2=!1,n0=0;function en(n){n!==Fr&&n.next===null&&(Fr===null?a1=Fr=n:Fr=Fr.next=n),n1=!0,S2||(S2=!0,dV())}function nl(n,i){if(!C2&&n1){C2=!0;do for(var u=!1,f=a1;f!==null;){if(n!==0){var v=f.pendingLanes;if(v===0)var y=0;else{var Z=f.suspendedLanes,R=f.pingedLanes;y=(1<<31-ia(42|n)+1)-1,y&=v&~(Z&~R),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(u=!0,Dx(f,y))}else y=Re,y=ii(f,f===Je?y:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(y&3)===0||As(f,y)||(u=!0,Dx(f,y));f=f.next}while(u);C2=!1}}function uV(){Lx()}function Lx(){n1=S2=!1;var n=0;n0!==0&&wV()&&(n=n0);for(var i=rt(),u=null,f=a1;f!==null;){var v=f.next,y=kx(f,i);y===0?(f.next=null,u===null?a1=v:u.next=v,v===null&&(Fr=u)):(u=f,(n!==0||(y&3)!==0)&&(n1=!0)),f=v}St!==0&&St!==5||nl(n),n0!==0&&(n0=0)}function kx(n,i){for(var u=n.suspendedLanes,f=n.pingedLanes,v=n.expirationTimes,y=n.pendingLanes&-62914561;0<y;){var Z=31-ia(y),R=1<<Z,G=v[Z];G===-1?((R&u)===0||(R&f)!==0)&&(v[Z]=DH(R,i)):G<=i&&(n.expiredLanes|=R),y&=~R}if(i=Je,u=Re,u=ii(n,n===i?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),f=n.callbackNode,u===0||n===i&&(Ge===2||Ge===9)||n.cancelPendingCommit!==null)return f!==null&&f!==null&&Fe(f),n.callbackNode=null,n.callbackPriority=0;if((u&3)===0||As(n,u)){if(i=u&-u,i===n.callbackPriority)return i;switch(f!==null&&Fe(f),$o(u)){case 2:case 8:u=Ue;break;case 32:u=Lt;break;case 268435456:u=ws;break;default:u=Lt}return f=Rx.bind(null,n),u=pt(u,f),n.callbackPriority=i,n.callbackNode=u,i}return f!==null&&f!==null&&Fe(f),n.callbackPriority=2,n.callbackNode=null,2}function Rx(n,i){if(St!==0&&St!==5)return n.callbackNode=null,n.callbackPriority=0,null;var u=n.callbackNode;if(t1()&&n.callbackNode!==u)return null;var f=Re;return f=ii(n,n===Je?f:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),f===0?null:(gx(n,f,i),kx(n,rt()),n.callbackNode!=null&&n.callbackNode===u?Rx.bind(null,n):null)}function Dx(n,i){if(t1())return null;gx(n,i,!0)}function dV(){jV(function(){($e&6)!==0?pt(et,uV):Lx()})}function Z2(){if(n0===0){var n=jr;n===0&&(n=ri,ri<<=1,(ri&261888)===0&&(ri=256)),n0=n}return n0}function Fx(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:di(""+n)}function Ox(n,i){var u=i.ownerDocument.createElement("input");return u.name=i.name,u.value=i.value,n.id&&u.setAttribute("form",n.id),i.parentNode.insertBefore(u,i),n=new FormData(n),u.parentNode.removeChild(u),n}function hV(n,i,u,f,v){if(i==="submit"&&u&&u.stateNode===v){var y=Fx((v[Qt]||null).action),Z=f.submitter;Z&&(i=(i=Z[Qt]||null)?Fx(i.formAction):Z.getAttribute("formAction"),i!==null&&(y=i,Z=null));var R=new pi("action","action",null,f,v);n.push({event:R,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(n0!==0){var G=Z?Ox(v,Z):new FormData(v);Kc(u,{pending:!0,data:G,method:v.method,action:y},null,G)}}else typeof y=="function"&&(R.preventDefault(),G=Z?Ox(v,Z):new FormData(v),Kc(u,{pending:!0,data:G,method:v.method,action:y},y,G))},currentTarget:v}]})}}for(var H2=0;H2<hc.length;H2++){var _2=hc[H2],mV=_2.toLowerCase(),fV=_2[0].toUpperCase()+_2.slice(1);Oa(mV,"on"+fV)}Oa(xp,"onAnimationEnd"),Oa(gp,"onAnimationIteration"),Oa(vp,"onAnimationStart"),Oa("dblclick","onDoubleClick"),Oa("focusin","onFocus"),Oa("focusout","onBlur"),Oa(H_,"onTransitionRun"),Oa(__,"onTransitionStart"),Oa(V_,"onTransitionCancel"),Oa(bp,"onTransitionEnd"),cr("onMouseEnter",["mouseout","mouseover"]),cr("onMouseLeave",["mouseout","mouseover"]),cr("onPointerEnter",["pointerout","pointerover"]),cr("onPointerLeave",["pointerout","pointerover"]),N0("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),N0("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),N0("onBeforeInput",["compositionend","keypress","textInput","paste"]),N0("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),N0("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),N0("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rl="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(" "),pV=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(rl));function zx(n,i){i=(i&4)!==0;for(var u=0;u<n.length;u++){var f=n[u],v=f.event;f=f.listeners;e:{var y=void 0;if(i)for(var Z=f.length-1;0<=Z;Z--){var R=f[Z],G=R.instance,ne=R.currentTarget;if(R=R.listener,G!==y&&v.isPropagationStopped())break e;y=R,v.currentTarget=ne;try{y(v)}catch(oe){vi(oe)}v.currentTarget=null,y=G}else for(Z=0;Z<f.length;Z++){if(R=f[Z],G=R.instance,ne=R.currentTarget,R=R.listener,G!==y&&v.isPropagationStopped())break e;y=R,v.currentTarget=ne;try{y(v)}catch(oe){vi(oe)}v.currentTarget=null,y=G}}}}function ke(n,i){var u=i[Bo];u===void 0&&(u=i[Bo]=new Set);var f=n+"__bubble";u.has(f)||(qx(i,n,2,!1),u.add(f))}function V2(n,i,u){var f=0;i&&(f|=4),qx(u,n,f,i)}var r1="_reactListening"+Math.random().toString(36).slice(2);function T2(n){if(!n[r1]){n[r1]=!0,L3.forEach(function(u){u!=="selectionchange"&&(pV.has(u)||V2(u,!1,n),V2(u,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[r1]||(i[r1]=!0,V2("selectionchange",!1,i))}}function qx(n,i,u,f){switch(xg(i)){case 2:var v=$V;break;case 8:v=BV;break;default:v=Y2}u=v.bind(null,i,u,n),v=void 0,!Wo||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(v=!0),f?v!==void 0?n.addEventListener(i,u,{capture:!0,passive:v}):n.addEventListener(i,u,!0):v!==void 0?n.addEventListener(i,u,{passive:v}):n.addEventListener(i,u,!1)}function L2(n,i,u,f,v){var y=f;if((i&1)===0&&(i&2)===0&&f!==null)e:for(;;){if(f===null)return;var Z=f.tag;if(Z===3||Z===4){var R=f.stateNode.containerInfo;if(R===v)break;if(Z===4)for(Z=f.return;Z!==null;){var G=Z.tag;if((G===3||G===4)&&Z.stateNode.containerInfo===v)return;Z=Z.return}for(;R!==null;){if(Z=lr(R),Z===null)return;if(G=Z.tag,G===5||G===6||G===26||G===27){f=y=Z;continue e}R=R.parentNode}}f=f.return}U3(function(){var ne=y,oe=Qo(u),he=[];e:{var re=yp.get(n);if(re!==void 0){var le=pi,xe=n;switch(n){case"keypress":if(mi(u)===0)break e;case"keydown":case"keyup":le=o_;break;case"focusin":xe="focus",le=nc;break;case"focusout":xe="blur",le=nc;break;case"beforeblur":case"afterblur":le=nc;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=K3;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=XH;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=d_;break;case xp:case gp:case vp:le=WH;break;case bp:le=m_;break;case"scroll":case"scrollend":le=YH;break;case"wheel":le=p_;break;case"copy":case"cut":case"paste":le=t_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=Q3;break;case"toggle":case"beforetoggle":le=g_}var we=(i&4)!==0,Qe=!we&&(n==="scroll"||n==="scrollend"),ee=we?re!==null?re+"Capture":null:re;we=[];for(var X=ne,ae;X!==null;){var de=X;if(ae=de.stateNode,de=de.tag,de!==5&&de!==26&&de!==27||ae===null||ee===null||(de=Ms(X,ee),de!=null&&we.push(sl(X,de,ae))),Qe)break;X=X.return}0<we.length&&(re=new le(re,xe,null,u,oe),he.push({event:re,listeners:we}))}}if((i&7)===0){e:{if(re=n==="mouseover"||n==="pointerover",le=n==="mouseout"||n==="pointerout",re&&u!==Xo&&(xe=u.relatedTarget||u.fromElement)&&(lr(xe)||xe[sr]))break e;if((le||re)&&(re=oe.window===oe?oe:(re=oe.ownerDocument)?re.defaultView||re.parentWindow:window,le?(xe=u.relatedTarget||u.toElement,le=ne,xe=xe?lr(xe):null,xe!==null&&(Qe=c(xe),we=xe.tag,xe!==Qe||we!==5&&we!==27&&we!==6)&&(xe=null)):(le=null,xe=ne),le!==xe)){if(we=K3,de="onMouseLeave",ee="onMouseEnter",X="mouse",(n==="pointerout"||n==="pointerover")&&(we=Q3,de="onPointerLeave",ee="onPointerEnter",X="pointer"),Qe=le==null?re:Es(le),ae=xe==null?re:Es(xe),re=new we(de,X+"leave",le,u,oe),re.target=Qe,re.relatedTarget=ae,de=null,lr(oe)===ne&&(we=new we(ee,X+"enter",xe,u,oe),we.target=ae,we.relatedTarget=Qe,de=we),Qe=de,le&&xe)t:{for(we=xV,ee=le,X=xe,ae=0,de=ee;de;de=we(de))ae++;de=0;for(var be=X;be;be=we(be))de++;for(;0<ae-de;)ee=we(ee),ae--;for(;0<de-ae;)X=we(X),de--;for(;ae--;){if(ee===X||X!==null&&ee===X.alternate){we=ee;break t}ee=we(ee),X=we(X)}we=null}else we=null;le!==null&&Ix(he,re,le,we,!1),xe!==null&&Qe!==null&&Ix(he,Qe,xe,we,!0)}}e:{if(re=ne?Es(ne):window,le=re.nodeName&&re.nodeName.toLowerCase(),le==="select"||le==="input"&&re.type==="file")var qe=sp;else if(np(re))if(lp)qe=S_;else{qe=E_;var ve=N_}else le=re.nodeName,!le||le.toLowerCase()!=="input"||re.type!=="checkbox"&&re.type!=="radio"?ne&&Ko(ne.elementType)&&(qe=sp):qe=M_;if(qe&&(qe=qe(n,ne))){rp(he,qe,u,oe);break e}ve&&ve(n,re,ne),n==="focusout"&&ne&&re.type==="number"&&ne.memoizedProps.value!=null&&Yo(re,"number",re.value)}switch(ve=ne?Es(ne):window,n){case"focusin":(np(ve)||ve.contentEditable==="true")&&(pr=ve,cc=ne,Ls=null);break;case"focusout":Ls=cc=pr=null;break;case"mousedown":uc=!0;break;case"contextmenu":case"mouseup":case"dragend":uc=!1,fp(he,u,oe);break;case"selectionchange":if(Z_)break;case"keydown":case"keyup":fp(he,u,oe)}var _e;if(sc)e:{switch(n){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else fr?tp(n,u)&&(De="onCompositionEnd"):n==="keydown"&&u.keyCode===229&&(De="onCompositionStart");De&&(J3&&u.locale!=="ko"&&(fr||De!=="onCompositionStart"?De==="onCompositionEnd"&&fr&&(_e=G3()):(qn=oe,ec="value"in qn?qn.value:qn.textContent,fr=!0)),ve=s1(ne,De),0<ve.length&&(De=new X3(De,n,null,u,oe),he.push({event:De,listeners:ve}),_e?De.data=_e:(_e=ap(u),_e!==null&&(De.data=_e)))),(_e=b_?y_(n,u):w_(n,u))&&(De=s1(ne,"onBeforeInput"),0<De.length&&(ve=new X3("onBeforeInput","beforeinput",null,u,oe),he.push({event:ve,listeners:De}),ve.data=_e)),hV(he,n,ne,u,oe)}zx(he,i)})}function sl(n,i,u){return{instance:n,listener:i,currentTarget:u}}function s1(n,i){for(var u=i+"Capture",f=[];n!==null;){var v=n,y=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||y===null||(v=Ms(n,u),v!=null&&f.unshift(sl(n,v,y)),v=Ms(n,i),v!=null&&f.push(sl(n,v,y))),n.tag===3)return f;n=n.return}return[]}function xV(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Ix(n,i,u,f,v){for(var y=i._reactName,Z=[];u!==null&&u!==f;){var R=u,G=R.alternate,ne=R.stateNode;if(R=R.tag,G!==null&&G===f)break;R!==5&&R!==26&&R!==27||ne===null||(G=ne,v?(ne=Ms(u,y),ne!=null&&Z.unshift(sl(u,ne,G))):v||(ne=Ms(u,y),ne!=null&&Z.push(sl(u,ne,G)))),u=u.return}Z.length!==0&&n.push({event:i,listeners:Z})}var gV=/\r\n?/g,vV=/\u0000|\uFFFD/g;function $x(n){return(typeof n=="string"?n:""+n).replace(gV,`
49
+ `).replace(vV,"")}function Bx(n,i){return i=$x(i),$x(n)===i}function Xe(n,i,u,f,v,y){switch(u){case"children":typeof f=="string"?i==="body"||i==="textarea"&&f===""||dr(n,f):(typeof f=="number"||typeof f=="bigint")&&i!=="body"&&dr(n,""+f);break;case"className":ci(n,"class",f);break;case"tabIndex":ci(n,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":ci(n,u,f);break;case"style":B3(n,f,y);break;case"data":if(i!=="object"){ci(n,"data",f);break}case"src":case"href":if(f===""&&(i!=="a"||u!=="href")){n.removeAttribute(u);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){n.removeAttribute(u);break}f=di(""+f),n.setAttribute(u,f);break;case"action":case"formAction":if(typeof f=="function"){n.setAttribute(u,"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 y=="function"&&(u==="formAction"?(i!=="input"&&Xe(n,i,"name",v.name,v,null),Xe(n,i,"formEncType",v.formEncType,v,null),Xe(n,i,"formMethod",v.formMethod,v,null),Xe(n,i,"formTarget",v.formTarget,v,null)):(Xe(n,i,"encType",v.encType,v,null),Xe(n,i,"method",v.method,v,null),Xe(n,i,"target",v.target,v,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){n.removeAttribute(u);break}f=di(""+f),n.setAttribute(u,f);break;case"onClick":f!=null&&(n.onclick=mn);break;case"onScroll":f!=null&&ke("scroll",n);break;case"onScrollEnd":f!=null&&ke("scrollend",n);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(l(61));if(u=f.__html,u!=null){if(v.children!=null)throw Error(l(60));n.innerHTML=u}}break;case"multiple":n.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":n.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){n.removeAttribute("xlink:href");break}u=di(""+f),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?n.setAttribute(u,""+f):n.removeAttribute(u);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":f&&typeof f!="function"&&typeof f!="symbol"?n.setAttribute(u,""):n.removeAttribute(u);break;case"capture":case"download":f===!0?n.setAttribute(u,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?n.setAttribute(u,f):n.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?n.setAttribute(u,f):n.removeAttribute(u);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?n.removeAttribute(u):n.setAttribute(u,f);break;case"popover":ke("beforetoggle",n),ke("toggle",n),oi(n,"popover",f);break;case"xlinkActuate":hn(n,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":hn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":hn(n,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":hn(n,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":hn(n,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":hn(n,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":hn(n,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":hn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":hn(n,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":oi(n,"is",f);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=UH.get(u)||u,oi(n,u,f))}}function k2(n,i,u,f,v,y){switch(u){case"style":B3(n,f,y);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(l(61));if(u=f.__html,u!=null){if(v.children!=null)throw Error(l(60));n.innerHTML=u}}break;case"children":typeof f=="string"?dr(n,f):(typeof f=="number"||typeof f=="bigint")&&dr(n,""+f);break;case"onScroll":f!=null&&ke("scroll",n);break;case"onScrollEnd":f!=null&&ke("scrollend",n);break;case"onClick":f!=null&&(n.onclick=mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!k3.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(v=u.endsWith("Capture"),i=u.slice(2,v?u.length-7:void 0),y=n[Qt]||null,y=y!=null?y[u]:null,typeof y=="function"&&n.removeEventListener(i,y,v),typeof f=="function")){typeof y!="function"&&y!==null&&(u in n?n[u]=null:n.hasAttribute(u)&&n.removeAttribute(u)),n.addEventListener(i,f,v);break e}u in n?n[u]=f:f===!0?n.setAttribute(u,""):oi(n,u,f)}}}function Ot(n,i,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",n),ke("load",n);var f=!1,v=!1,y;for(y in u)if(u.hasOwnProperty(y)){var Z=u[y];if(Z!=null)switch(y){case"src":f=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,i));default:Xe(n,i,y,Z,u,null)}}v&&Xe(n,i,"srcSet",u.srcSet,u,null),f&&Xe(n,i,"src",u.src,u,null);return;case"input":ke("invalid",n);var R=y=Z=v=null,G=null,ne=null;for(f in u)if(u.hasOwnProperty(f)){var oe=u[f];if(oe!=null)switch(f){case"name":v=oe;break;case"type":Z=oe;break;case"checked":G=oe;break;case"defaultChecked":ne=oe;break;case"value":y=oe;break;case"defaultValue":R=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(l(137,i));break;default:Xe(n,i,f,oe,u,null)}}z3(n,y,R,G,ne,Z,v,!1);return;case"select":ke("invalid",n),f=Z=y=null;for(v in u)if(u.hasOwnProperty(v)&&(R=u[v],R!=null))switch(v){case"value":y=R;break;case"defaultValue":Z=R;break;case"multiple":f=R;default:Xe(n,i,v,R,u,null)}i=y,u=Z,n.multiple=!!f,i!=null?ur(n,!!f,i,!1):u!=null&&ur(n,!!f,u,!0);return;case"textarea":ke("invalid",n),y=v=f=null;for(Z in u)if(u.hasOwnProperty(Z)&&(R=u[Z],R!=null))switch(Z){case"value":f=R;break;case"defaultValue":v=R;break;case"children":y=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(l(91));break;default:Xe(n,i,Z,R,u,null)}I3(n,f,v,y);return;case"option":for(G in u)if(u.hasOwnProperty(G)&&(f=u[G],f!=null))switch(G){case"selected":n.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Xe(n,i,G,f,u,null)}return;case"dialog":ke("beforetoggle",n),ke("toggle",n),ke("cancel",n),ke("close",n);break;case"iframe":case"object":ke("load",n);break;case"video":case"audio":for(f=0;f<rl.length;f++)ke(rl[f],n);break;case"image":ke("error",n),ke("load",n);break;case"details":ke("toggle",n);break;case"embed":case"source":case"link":ke("error",n),ke("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ne in u)if(u.hasOwnProperty(ne)&&(f=u[ne],f!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,i));default:Xe(n,i,ne,f,u,null)}return;default:if(Ko(i)){for(oe in u)u.hasOwnProperty(oe)&&(f=u[oe],f!==void 0&&k2(n,i,oe,f,u,void 0));return}}for(R in u)u.hasOwnProperty(R)&&(f=u[R],f!=null&&Xe(n,i,R,f,u,null))}function bV(n,i,u,f){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,y=null,Z=null,R=null,G=null,ne=null,oe=null;for(le in u){var he=u[le];if(u.hasOwnProperty(le)&&he!=null)switch(le){case"checked":break;case"value":break;case"defaultValue":G=he;default:f.hasOwnProperty(le)||Xe(n,i,le,null,f,he)}}for(var re in f){var le=f[re];if(he=u[re],f.hasOwnProperty(re)&&(le!=null||he!=null))switch(re){case"type":y=le;break;case"name":v=le;break;case"checked":ne=le;break;case"defaultChecked":oe=le;break;case"value":Z=le;break;case"defaultValue":R=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(l(137,i));break;default:le!==he&&Xe(n,i,re,le,f,he)}}Go(n,Z,R,G,ne,oe,y,v);return;case"select":le=Z=R=re=null;for(y in u)if(G=u[y],u.hasOwnProperty(y)&&G!=null)switch(y){case"value":break;case"multiple":le=G;default:f.hasOwnProperty(y)||Xe(n,i,y,null,f,G)}for(v in f)if(y=f[v],G=u[v],f.hasOwnProperty(v)&&(y!=null||G!=null))switch(v){case"value":re=y;break;case"defaultValue":R=y;break;case"multiple":Z=y;default:y!==G&&Xe(n,i,v,y,f,G)}i=R,u=Z,f=le,re!=null?ur(n,!!u,re,!1):!!f!=!!u&&(i!=null?ur(n,!!u,i,!0):ur(n,!!u,u?[]:"",!1));return;case"textarea":le=re=null;for(R in u)if(v=u[R],u.hasOwnProperty(R)&&v!=null&&!f.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Xe(n,i,R,null,f,v)}for(Z in f)if(v=f[Z],y=u[Z],f.hasOwnProperty(Z)&&(v!=null||y!=null))switch(Z){case"value":re=v;break;case"defaultValue":le=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(l(91));break;default:v!==y&&Xe(n,i,Z,v,f,y)}q3(n,re,le);return;case"option":for(var xe in u)if(re=u[xe],u.hasOwnProperty(xe)&&re!=null&&!f.hasOwnProperty(xe))switch(xe){case"selected":n.selected=!1;break;default:Xe(n,i,xe,null,f,re)}for(G in f)if(re=f[G],le=u[G],f.hasOwnProperty(G)&&re!==le&&(re!=null||le!=null))switch(G){case"selected":n.selected=re&&typeof re!="function"&&typeof re!="symbol";break;default:Xe(n,i,G,re,f,le)}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 we in u)re=u[we],u.hasOwnProperty(we)&&re!=null&&!f.hasOwnProperty(we)&&Xe(n,i,we,null,f,re);for(ne in f)if(re=f[ne],le=u[ne],f.hasOwnProperty(ne)&&re!==le&&(re!=null||le!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(l(137,i));break;default:Xe(n,i,ne,re,f,le)}return;default:if(Ko(i)){for(var Qe in u)re=u[Qe],u.hasOwnProperty(Qe)&&re!==void 0&&!f.hasOwnProperty(Qe)&&k2(n,i,Qe,void 0,f,re);for(oe in f)re=f[oe],le=u[oe],!f.hasOwnProperty(oe)||re===le||re===void 0&&le===void 0||k2(n,i,oe,re,f,le);return}}for(var ee in u)re=u[ee],u.hasOwnProperty(ee)&&re!=null&&!f.hasOwnProperty(ee)&&Xe(n,i,ee,null,f,re);for(he in f)re=f[he],le=u[he],!f.hasOwnProperty(he)||re===le||re==null&&le==null||Xe(n,i,he,re,f,le)}function Px(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function yV(){if(typeof performance.getEntriesByType=="function"){for(var n=0,i=0,u=performance.getEntriesByType("resource"),f=0;f<u.length;f++){var v=u[f],y=v.transferSize,Z=v.initiatorType,R=v.duration;if(y&&R&&Px(Z)){for(Z=0,R=v.responseEnd,f+=1;f<u.length;f++){var G=u[f],ne=G.startTime;if(ne>R)break;var oe=G.transferSize,he=G.initiatorType;oe&&Px(he)&&(G=G.responseEnd,Z+=oe*(G<R?1:(R-ne)/(G-ne)))}if(--f,i+=8*(y+Z)/(v.duration/1e3),n++,10<n)break}}if(0<n)return i/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var R2=null,D2=null;function l1(n){return n.nodeType===9?n:n.ownerDocument}function Ux(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gx(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function F2(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var O2=null;function wV(){var n=window.event;return n&&n.type==="popstate"?n===O2?!1:(O2=n,!0):(O2=null,!1)}var Yx=typeof setTimeout=="function"?setTimeout:void 0,AV=typeof clearTimeout=="function"?clearTimeout:void 0,Kx=typeof Promise=="function"?Promise:void 0,jV=typeof queueMicrotask=="function"?queueMicrotask:typeof Kx<"u"?function(n){return Kx.resolve(null).then(n).catch(NV)}:Yx;function NV(n){setTimeout(function(){throw n})}function r0(n){return n==="head"}function Xx(n,i){var u=i,f=0;do{var v=u.nextSibling;if(n.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"||u==="/&"){if(f===0){n.removeChild(v),Ir(i);return}f--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")f++;else if(u==="html")ll(n.ownerDocument.documentElement);else if(u==="head"){u=n.ownerDocument.head,ll(u);for(var y=u.firstChild;y;){var Z=y.nextSibling,R=y.nodeName;y[Ns]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&y.rel.toLowerCase()==="stylesheet"||u.removeChild(y),y=Z}}else u==="body"&&ll(n.ownerDocument.body);u=v}while(u);Ir(i)}function Qx(n,i){var u=n;n=0;do{var f=u.nextSibling;if(u.nodeType===1?i?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(i?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),f&&f.nodeType===8)if(u=f.data,u==="/$"){if(n===0)break;n--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||n++;u=f}while(u)}function z2(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var u=i;switch(i=i.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":z2(u),Po(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}n.removeChild(u)}}function EV(n,i,u,f){for(;n.nodeType===1;){var v=u;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!f&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(f){if(!n[Ns])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(y=n.getAttribute("rel"),y==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(y!==v.rel||n.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||n.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||n.getAttribute("title")!==(v.title==null?null:v.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(y=n.getAttribute("src"),(y!==(v.src==null?null:v.src)||n.getAttribute("type")!==(v.type==null?null:v.type)||n.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&y&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var y=v.name==null?null:""+v.name;if(v.type==="hidden"&&n.getAttribute("name")===y)return n}else return n;if(n=Ca(n.nextSibling),n===null)break}return null}function MV(n,i,u){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!u||(n=Ca(n.nextSibling),n===null))return null;return n}function Jx(n,i){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=Ca(n.nextSibling),n===null))return null;return n}function q2(n){return n.data==="$?"||n.data==="$~"}function I2(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function SV(n,i){var u=n.ownerDocument;if(n.data==="$~")n._reactRetry=i;else if(n.data!=="$?"||u.readyState!=="loading")i();else{var f=function(){i(),u.removeEventListener("DOMContentLoaded",f)};u.addEventListener("DOMContentLoaded",f),n._reactRetry=f}}function Ca(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return n}var $2=null;function Wx(n){n=n.nextSibling;for(var i=0;n;){if(n.nodeType===8){var u=n.data;if(u==="/$"||u==="/&"){if(i===0)return Ca(n.nextSibling);i--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||i++}n=n.nextSibling}return null}function eg(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var u=n.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(i===0)return n;i--}else u!=="/$"&&u!=="/&"||i++}n=n.previousSibling}return null}function tg(n,i,u){switch(i=l1(u),n){case"html":if(n=i.documentElement,!n)throw Error(l(452));return n;case"head":if(n=i.head,!n)throw Error(l(453));return n;case"body":if(n=i.body,!n)throw Error(l(454));return n;default:throw Error(l(451))}}function ll(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);Po(n)}var Za=new Map,ag=new Set;function i1(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Zn=$.d;$.d={f:CV,r:ZV,D:HV,C:_V,L:VV,m:TV,X:kV,S:LV,M:RV};function CV(){var n=Zn.f(),i=Ji();return n||i}function ZV(n){var i=ir(n);i!==null&&i.tag===5&&i.type==="form"?b5(i):Zn.r(n)}var Or=typeof document>"u"?null:document;function ng(n,i,u){var f=Or;if(f&&typeof i=="string"&&i){var v=wa(i);v='link[rel="'+n+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),ag.has(v)||(ag.add(v),n={rel:n,crossOrigin:u,href:i},f.querySelector(v)===null&&(i=f.createElement("link"),Ot(i,"link",n),Ht(i),f.head.appendChild(i)))}}function HV(n){Zn.D(n),ng("dns-prefetch",n,null)}function _V(n,i){Zn.C(n,i),ng("preconnect",n,i)}function VV(n,i,u){Zn.L(n,i,u);var f=Or;if(f&&n&&i){var v='link[rel="preload"][as="'+wa(i)+'"]';i==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+wa(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+wa(u.imageSizes)+'"]')):v+='[href="'+wa(n)+'"]';var y=v;switch(i){case"style":y=zr(n);break;case"script":y=qr(n)}Za.has(y)||(n=g({rel:"preload",href:i==="image"&&u&&u.imageSrcSet?void 0:n,as:i},u),Za.set(y,n),f.querySelector(v)!==null||i==="style"&&f.querySelector(il(y))||i==="script"&&f.querySelector(ol(y))||(i=f.createElement("link"),Ot(i,"link",n),Ht(i),f.head.appendChild(i)))}}function TV(n,i){Zn.m(n,i);var u=Or;if(u&&n){var f=i&&typeof i.as=="string"?i.as:"script",v='link[rel="modulepreload"][as="'+wa(f)+'"][href="'+wa(n)+'"]',y=v;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=qr(n)}if(!Za.has(y)&&(n=g({rel:"modulepreload",href:n},i),Za.set(y,n),u.querySelector(v)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(ol(y)))return}f=u.createElement("link"),Ot(f,"link",n),Ht(f),u.head.appendChild(f)}}}function LV(n,i,u){Zn.S(n,i,u);var f=Or;if(f&&n){var v=or(f).hoistableStyles,y=zr(n);i=i||"default";var Z=v.get(y);if(!Z){var R={loading:0,preload:null};if(Z=f.querySelector(il(y)))R.loading=5;else{n=g({rel:"stylesheet",href:n,"data-precedence":i},u),(u=Za.get(y))&&B2(n,u);var G=Z=f.createElement("link");Ht(G),Ot(G,"link",n),G._p=new Promise(function(ne,oe){G.onload=ne,G.onerror=oe}),G.addEventListener("load",function(){R.loading|=1}),G.addEventListener("error",function(){R.loading|=2}),R.loading|=4,o1(Z,i,f)}Z={type:"stylesheet",instance:Z,count:1,state:R},v.set(y,Z)}}}function kV(n,i){Zn.X(n,i);var u=Or;if(u&&n){var f=or(u).hoistableScripts,v=qr(n),y=f.get(v);y||(y=u.querySelector(ol(v)),y||(n=g({src:n,async:!0},i),(i=Za.get(v))&&P2(n,i),y=u.createElement("script"),Ht(y),Ot(y,"link",n),u.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},f.set(v,y))}}function RV(n,i){Zn.M(n,i);var u=Or;if(u&&n){var f=or(u).hoistableScripts,v=qr(n),y=f.get(v);y||(y=u.querySelector(ol(v)),y||(n=g({src:n,async:!0,type:"module"},i),(i=Za.get(v))&&P2(n,i),y=u.createElement("script"),Ht(y),Ot(y,"link",n),u.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},f.set(v,y))}}function rg(n,i,u,f){var v=(v=I.current)?i1(v):null;if(!v)throw Error(l(446));switch(n){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(i=zr(u.href),u=or(v).hoistableStyles,f=u.get(i),f||(f={type:"style",instance:null,count:0,state:null},u.set(i,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){n=zr(u.href);var y=or(v).hoistableStyles,Z=y.get(n);if(Z||(v=v.ownerDocument||v,Z={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(n,Z),(y=v.querySelector(il(n)))&&!y._p&&(Z.instance=y,Z.state.loading=5),Za.has(n)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Za.set(n,u),y||DV(v,n,u,Z.state))),i&&f===null)throw Error(l(528,""));return Z}if(i&&f!==null)throw Error(l(529,""));return null;case"script":return i=u.async,u=u.src,typeof u=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=qr(u),u=or(v).hoistableScripts,f=u.get(i),f||(f={type:"script",instance:null,count:0,state:null},u.set(i,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,n))}}function zr(n){return'href="'+wa(n)+'"'}function il(n){return'link[rel="stylesheet"]['+n+"]"}function sg(n){return g({},n,{"data-precedence":n.precedence,precedence:null})}function DV(n,i,u,f){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?f.loading=1:(i=n.createElement("link"),f.preload=i,i.addEventListener("load",function(){return f.loading|=1}),i.addEventListener("error",function(){return f.loading|=2}),Ot(i,"link",u),Ht(i),n.head.appendChild(i))}function qr(n){return'[src="'+wa(n)+'"]'}function ol(n){return"script[async]"+n}function lg(n,i,u){if(i.count++,i.instance===null)switch(i.type){case"style":var f=n.querySelector('style[data-href~="'+wa(u.href)+'"]');if(f)return i.instance=f,Ht(f),f;var v=g({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return f=(n.ownerDocument||n).createElement("style"),Ht(f),Ot(f,"style",v),o1(f,u.precedence,n),i.instance=f;case"stylesheet":v=zr(u.href);var y=n.querySelector(il(v));if(y)return i.state.loading|=4,i.instance=y,Ht(y),y;f=sg(u),(v=Za.get(v))&&B2(f,v),y=(n.ownerDocument||n).createElement("link"),Ht(y);var Z=y;return Z._p=new Promise(function(R,G){Z.onload=R,Z.onerror=G}),Ot(y,"link",f),i.state.loading|=4,o1(y,u.precedence,n),i.instance=y;case"script":return y=qr(u.src),(v=n.querySelector(ol(y)))?(i.instance=v,Ht(v),v):(f=u,(v=Za.get(y))&&(f=g({},u),P2(f,v)),n=n.ownerDocument||n,v=n.createElement("script"),Ht(v),Ot(v,"link",f),n.head.appendChild(v),i.instance=v);case"void":return null;default:throw Error(l(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(f=i.instance,i.state.loading|=4,o1(f,u.precedence,n));return i.instance}function o1(n,i,u){for(var f=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=f.length?f[f.length-1]:null,y=v,Z=0;Z<f.length;Z++){var R=f[Z];if(R.dataset.precedence===i)y=R;else if(y!==v)break}y?y.parentNode.insertBefore(n,y.nextSibling):(i=u.nodeType===9?u.head:u,i.insertBefore(n,i.firstChild))}function B2(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function P2(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var c1=null;function ig(n,i,u){if(c1===null){var f=new Map,v=c1=new Map;v.set(u,f)}else v=c1,f=v.get(u),f||(f=new Map,v.set(u,f));if(f.has(n))return f;for(f.set(n,null),u=u.getElementsByTagName(n),v=0;v<u.length;v++){var y=u[v];if(!(y[Ns]||y[kt]||n==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var Z=y.getAttribute(i)||"";Z=n+Z;var R=f.get(Z);R?R.push(y):f.set(Z,[y])}}return f}function og(n,i,u){n=n.ownerDocument||n,n.head.insertBefore(u,i==="title"?n.querySelector("head > title"):null)}function FV(n,i,u){if(u===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function cg(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function OV(n,i,u,f){if(u.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var v=zr(f.href),y=i.querySelector(il(v));if(y){i=y._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(n.count++,n=u1.bind(n),i.then(n,n)),u.state.loading|=4,u.instance=y,Ht(y);return}y=i.ownerDocument||i,f=sg(f),(v=Za.get(v))&&B2(f,v),y=y.createElement("link"),Ht(y);var Z=y;Z._p=new Promise(function(R,G){Z.onload=R,Z.onerror=G}),Ot(y,"link",f),u.instance=y}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(u,i),(i=u.state.preload)&&(u.state.loading&3)===0&&(n.count++,u=u1.bind(n),i.addEventListener("load",u),i.addEventListener("error",u))}}var U2=0;function zV(n,i){return n.stylesheets&&n.count===0&&h1(n,n.stylesheets),0<n.count||0<n.imgCount?function(u){var f=setTimeout(function(){if(n.stylesheets&&h1(n,n.stylesheets),n.unsuspend){var y=n.unsuspend;n.unsuspend=null,y()}},6e4+i);0<n.imgBytes&&U2===0&&(U2=62500*yV());var v=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&h1(n,n.stylesheets),n.unsuspend)){var y=n.unsuspend;n.unsuspend=null,y()}},(n.imgBytes>U2?50:800)+i);return n.unsuspend=u,function(){n.unsuspend=null,clearTimeout(f),clearTimeout(v)}}:null}function u1(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)h1(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var d1=null;function h1(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,d1=new Map,i.forEach(qV,n),d1=null,u1.call(n))}function qV(n,i){if(!(i.state.loading&4)){var u=d1.get(n);if(u)var f=u.get(null);else{u=new Map,d1.set(n,u);for(var v=n.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<v.length;y++){var Z=v[y];(Z.nodeName==="LINK"||Z.getAttribute("media")!=="not all")&&(u.set(Z.dataset.precedence,Z),f=Z)}f&&u.set(null,f)}v=i.instance,Z=v.getAttribute("data-precedence"),y=u.get(Z)||f,y===f&&u.set(null,v),u.set(Z,v),this.count++,f=u1.bind(this),v.addEventListener("load",f),v.addEventListener("error",f),y?y.parentNode.insertBefore(v,y.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(v,n.firstChild)),i.state.loading|=4}}var cl={$$typeof:M,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function IV(n,i,u,f,v,y,Z,R,G){this.tag=1,this.containerInfo=n,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=qo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qo(0),this.hiddenUpdates=qo(null),this.identifierPrefix=f,this.onUncaughtError=v,this.onCaughtError=y,this.onRecoverableError=Z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=G,this.incompleteTransitions=new Map}function ug(n,i,u,f,v,y,Z,R,G,ne,oe,he){return n=new IV(n,i,u,Z,G,ne,oe,he,R),i=1,y===!0&&(i|=24),y=ca(3,null,null,i),n.current=y,y.stateNode=n,i=Ec(),i.refCount++,n.pooledCache=i,i.refCount++,y.memoizedState={element:f,isDehydrated:u,cache:i},Zc(y),n}function dg(n){return n?(n=vr,n):vr}function hg(n,i,u,f,v,y){v=dg(v),f.context===null?f.context=v:f.pendingContext=v,f=Gn(i),f.payload={element:u},y=y===void 0?null:y,y!==null&&(f.callback=y),u=Yn(n,f,i),u!==null&&(na(u,n,i),qs(u,n,i))}function mg(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var u=n.retryLane;n.retryLane=u!==0&&u<i?u:i}}function G2(n,i){mg(n,i),(n=n.alternate)&&mg(n,i)}function fg(n){if(n.tag===13||n.tag===31){var i=C0(n,67108864);i!==null&&na(i,n,67108864),G2(n,67108864)}}function pg(n){if(n.tag===13||n.tag===31){var i=fa();i=Io(i);var u=C0(n,i);u!==null&&na(u,n,i),G2(n,i)}}var m1=!0;function $V(n,i,u,f){var v=O.T;O.T=null;var y=$.p;try{$.p=2,Y2(n,i,u,f)}finally{$.p=y,O.T=v}}function BV(n,i,u,f){var v=O.T;O.T=null;var y=$.p;try{$.p=8,Y2(n,i,u,f)}finally{$.p=y,O.T=v}}function Y2(n,i,u,f){if(m1){var v=K2(f);if(v===null)L2(n,i,f,f1,u),gg(n,f);else if(UV(v,n,i,u,f))f.stopPropagation();else if(gg(n,f),i&4&&-1<PV.indexOf(n)){for(;v!==null;){var y=ir(v);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var Z=j0(y.pendingLanes);if(Z!==0){var R=y;for(R.pendingLanes|=2,R.entangledLanes|=2;Z;){var G=1<<31-ia(Z);R.entanglements[1]|=G,Z&=~G}en(y),($e&6)===0&&(Xi=rt()+500,nl(0))}}break;case 31:case 13:R=C0(y,2),R!==null&&na(R,y,2),Ji(),G2(y,2)}if(y=K2(f),y===null&&L2(n,i,f,f1,u),y===v)break;v=y}v!==null&&f.stopPropagation()}else L2(n,i,f,null,u)}}function K2(n){return n=Qo(n),X2(n)}var f1=null;function X2(n){if(f1=null,n=lr(n),n!==null){var i=c(n);if(i===null)n=null;else{var u=i.tag;if(u===13){if(n=d(i),n!==null)return n;n=null}else if(u===31){if(n=h(i),n!==null)return n;n=null}else if(u===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return f1=n,null}function xg(n){switch(n){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(je()){case et:return 2;case Ue:return 8;case Lt:case ai:return 32;case ws:return 268435456;default:return 32}default:return 32}}var Q2=!1,s0=null,l0=null,i0=null,ul=new Map,dl=new Map,o0=[],PV="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 gg(n,i){switch(n){case"focusin":case"focusout":s0=null;break;case"dragenter":case"dragleave":l0=null;break;case"mouseover":case"mouseout":i0=null;break;case"pointerover":case"pointerout":ul.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":dl.delete(i.pointerId)}}function hl(n,i,u,f,v,y){return n===null||n.nativeEvent!==y?(n={blockedOn:i,domEventName:u,eventSystemFlags:f,nativeEvent:y,targetContainers:[v]},i!==null&&(i=ir(i),i!==null&&fg(i)),n):(n.eventSystemFlags|=f,i=n.targetContainers,v!==null&&i.indexOf(v)===-1&&i.push(v),n)}function UV(n,i,u,f,v){switch(i){case"focusin":return s0=hl(s0,n,i,u,f,v),!0;case"dragenter":return l0=hl(l0,n,i,u,f,v),!0;case"mouseover":return i0=hl(i0,n,i,u,f,v),!0;case"pointerover":var y=v.pointerId;return ul.set(y,hl(ul.get(y)||null,n,i,u,f,v)),!0;case"gotpointercapture":return y=v.pointerId,dl.set(y,hl(dl.get(y)||null,n,i,u,f,v)),!0}return!1}function vg(n){var i=lr(n.target);if(i!==null){var u=c(i);if(u!==null){if(i=u.tag,i===13){if(i=d(u),i!==null){n.blockedOn=i,V3(n.priority,function(){pg(u)});return}}else if(i===31){if(i=h(u),i!==null){n.blockedOn=i,V3(n.priority,function(){pg(u)});return}}else if(i===3&&u.stateNode.current.memoizedState.isDehydrated){n.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}n.blockedOn=null}function p1(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var u=K2(n.nativeEvent);if(u===null){u=n.nativeEvent;var f=new u.constructor(u.type,u);Xo=f,u.target.dispatchEvent(f),Xo=null}else return i=ir(u),i!==null&&fg(i),n.blockedOn=u,!1;i.shift()}return!0}function bg(n,i,u){p1(n)&&u.delete(i)}function GV(){Q2=!1,s0!==null&&p1(s0)&&(s0=null),l0!==null&&p1(l0)&&(l0=null),i0!==null&&p1(i0)&&(i0=null),ul.forEach(bg),dl.forEach(bg)}function x1(n,i){n.blockedOn===i&&(n.blockedOn=null,Q2||(Q2=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,GV)))}var g1=null;function yg(n){g1!==n&&(g1=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){g1===n&&(g1=null);for(var i=0;i<n.length;i+=3){var u=n[i],f=n[i+1],v=n[i+2];if(typeof f!="function"){if(X2(f||u)===null)continue;break}var y=ir(u);y!==null&&(n.splice(i,3),i-=3,Kc(y,{pending:!0,data:v,method:u.method,action:f},f,v))}}))}function Ir(n){function i(G){return x1(G,n)}s0!==null&&x1(s0,n),l0!==null&&x1(l0,n),i0!==null&&x1(i0,n),ul.forEach(i),dl.forEach(i);for(var u=0;u<o0.length;u++){var f=o0[u];f.blockedOn===n&&(f.blockedOn=null)}for(;0<o0.length&&(u=o0[0],u.blockedOn===null);)vg(u),u.blockedOn===null&&o0.shift();if(u=(n.ownerDocument||n).$$reactFormReplay,u!=null)for(f=0;f<u.length;f+=3){var v=u[f],y=u[f+1],Z=v[Qt]||null;if(typeof y=="function")Z||yg(u);else if(Z){var R=null;if(y&&y.hasAttribute("formAction")){if(v=y,Z=y[Qt]||null)R=Z.formAction;else if(X2(v)!==null)continue}else R=Z.action;typeof R=="function"?u[f+1]=R:(u.splice(f,3),f-=3),yg(u)}}}function wg(){function n(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(Z){return v=Z})},focusReset:"manual",scroll:"manual"})}function i(){v!==null&&(v(),v=null),f||setTimeout(u,20)}function u(){if(!f&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var f=!1,v=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(u,100),function(){f=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),v!==null&&(v(),v=null)}}}function J2(n){this._internalRoot=n}v1.prototype.render=J2.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(l(409));var u=i.current,f=fa();hg(u,f,n,i,null,null)},v1.prototype.unmount=J2.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;hg(n.current,2,null,n,null,null),Ji(),i[sr]=null}};function v1(n){this._internalRoot=n}v1.prototype.unstable_scheduleHydration=function(n){if(n){var i=_3();n={blockedOn:null,target:n,priority:i};for(var u=0;u<o0.length&&i!==0&&i<o0[u].priority;u++);o0.splice(u,0,n),u===0&&vg(n)}};var Ag=t.version;if(Ag!=="19.2.4")throw Error(l(527,Ag,"19.2.4"));$.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(l(188)):(n=Object.keys(n).join(","),Error(l(268,n)));return n=p(i),n=n!==null?x(n):null,n=n===null?null:n.stateNode,n};var YV={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var b1=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!b1.isDisabled&&b1.supportsFiber)try{Xt=b1.inject(YV),xt=b1}catch{}}return fl.createRoot=function(n,i){if(!o(n))throw Error(l(299));var u=!1,f="",v=Z5,y=H5,Z=_5;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(v=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(Z=i.onRecoverableError)),i=ug(n,1,!1,null,null,u,f,null,v,y,Z,wg),n[sr]=i.current,T2(n),new J2(i)},fl.hydrateRoot=function(n,i,u){if(!o(n))throw Error(l(299));var f=!1,v="",y=Z5,Z=H5,R=_5,G=null;return u!=null&&(u.unstable_strictMode===!0&&(f=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(y=u.onUncaughtError),u.onCaughtError!==void 0&&(Z=u.onCaughtError),u.onRecoverableError!==void 0&&(R=u.onRecoverableError),u.formState!==void 0&&(G=u.formState)),i=ug(n,1,!0,i,u??null,f,v,G,y,Z,R,wg),i.context=dg(null),u=i.current,f=fa(),f=Io(f),v=Gn(f),v.callback=null,Yn(u,v,f),u=f,i.current.lanes=u,js(i,u),en(i),n[sr]=i.current,T2(n),new v1(i)},fl.version="19.2.4",fl}var Vg;function lT(){if(Vg)return tu.exports;Vg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),tu.exports=sT(),tu.exports}var iT=lT();/**
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 Tg="popstate";function Lg(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function oT(e={}){function t(l,o){var p;let c=(p=o.state)==null?void 0:p.masked,{pathname:d,search:h,hash:m}=c||l.location;return Cm("",{pathname:d,search:h,hash:m},o.state&&o.state.usr||null,o.state&&o.state.key||"default",c?{pathname:l.location.pathname,search:l.location.search,hash:l.location.hash}:void 0)}function s(l,o){return typeof o=="string"?o:Vl(o)}return uT(t,s,null,e)}function lt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function La(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function cT(){return Math.random().toString(36).substring(2,10)}function kg(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Cm(e,t,s=null,l,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?rs(t):t,state:s,key:t&&t.key||l||cT(),unstable_mask:o}}function Vl({pathname:e="/",search:t="",hash:s=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),s&&s!=="#"&&(e+=s.charAt(0)==="#"?s:"#"+s),e}function rs(e){let t={};if(e){let s=e.indexOf("#");s>=0&&(t.hash=e.substring(s),e=e.substring(0,s));let l=e.indexOf("?");l>=0&&(t.search=e.substring(l),e=e.substring(0,l)),e&&(t.pathname=e)}return t}function uT(e,t,s,l={}){let{window:o=document.defaultView,v5Compat:c=!1}=l,d=o.history,h="POP",m=null,p=x();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function x(){return(d.state||{idx:null}).idx}function g(){h="POP";let E=x(),A=E==null?null:E-p;p=E,m&&m({action:h,location:N.location,delta:A})}function b(E,A){h="PUSH";let C=Lg(E)?E:Cm(N.location,E,A);p=x()+1;let M=kg(C,p),S=N.createHref(C.unstable_mask||C);try{d.pushState(M,"",S)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;o.location.assign(S)}c&&m&&m({action:h,location:N.location,delta:1})}function w(E,A){h="REPLACE";let C=Lg(E)?E:Cm(N.location,E,A);p=x();let M=kg(C,p),S=N.createHref(C.unstable_mask||C);d.replaceState(M,"",S),c&&m&&m({action:h,location:N.location,delta:0})}function j(E){return dT(E)}let N={get action(){return h},get location(){return e(o,d)},listen(E){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(Tg,g),m=E,()=>{o.removeEventListener(Tg,g),m=null}},createHref(E){return t(o,E)},createURL:j,encodeLocation(E){let A=j(E);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:b,replace:w,go(E){return d.go(E)}};return N}function dT(e,t=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),lt(s,"No window.location.(origin|href) available to create URL");let l=typeof e=="string"?e:Vl(e);return l=l.replace(/ $/,"%20"),!t&&l.startsWith("//")&&(l=s+l),new URL(l,s)}function Wj(e,t,s="/"){return hT(e,t,s,!1)}function hT(e,t,s,l){let o=typeof t=="string"?rs(t):t,c=Tn(o.pathname||"/",s);if(c==null)return null;let d=eN(e);mT(d);let h=null;for(let m=0;h==null&&m<d.length;++m){let p=NT(c);h=AT(d[m],p,l)}return h}function eN(e,t=[],s=[],l="",o=!1){let c=(d,h,m=o,p)=>{let x={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(l)&&m)return;lt(x.relativePath.startsWith(l),`Absolute route path "${x.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(l.length)}let g=sn([l,x.relativePath]),b=s.concat(x);d.children&&d.children.length>0&&(lt(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),eN(d.children,t,b,g,m)),!(d.path==null&&!d.index)&&t.push({path:g,score:yT(g,d.index),routesMeta:b})};return e.forEach((d,h)=>{var m;if(d.path===""||!((m=d.path)!=null&&m.includes("?")))c(d,h);else for(let p of tN(d.path))c(d,h,!0,p)}),t}function tN(e){let t=e.split("/");if(t.length===0)return[];let[s,...l]=t,o=s.endsWith("?"),c=s.replace(/\?$/,"");if(l.length===0)return o?[c,""]:[c];let d=tN(l.join("/")),h=[];return h.push(...d.map(m=>m===""?c:[c,m].join("/"))),o&&h.push(...d),h.map(m=>e.startsWith("/")&&m===""?"/":m)}function mT(e){e.sort((t,s)=>t.score!==s.score?s.score-t.score:wT(t.routesMeta.map(l=>l.childrenIndex),s.routesMeta.map(l=>l.childrenIndex)))}var fT=/^:[\w-]+$/,pT=3,xT=2,gT=1,vT=10,bT=-2,Rg=e=>e==="*";function yT(e,t){let s=e.split("/"),l=s.length;return s.some(Rg)&&(l+=bT),t&&(l+=xT),s.filter(o=>!Rg(o)).reduce((o,c)=>o+(fT.test(c)?pT:c===""?gT:vT),l)}function wT(e,t){return e.length===t.length&&e.slice(0,-1).every((l,o)=>l===t[o])?e[e.length-1]-t[t.length-1]:0}function AT(e,t,s=!1){let{routesMeta:l}=e,o={},c="/",d=[];for(let h=0;h<l.length;++h){let m=l[h],p=h===l.length-1,x=c==="/"?t:t.slice(c.length)||"/",g=Y1({path:m.relativePath,caseSensitive:m.caseSensitive,end:p},x),b=m.route;if(!g&&p&&s&&!l[l.length-1].route.index&&(g=Y1({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},x)),!g)return null;Object.assign(o,g.params),d.push({params:o,pathname:sn([c,g.pathname]),pathnameBase:CT(sn([c,g.pathnameBase])),route:b}),g.pathnameBase!=="/"&&(c=sn([c,g.pathnameBase]))}return d}function Y1(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[s,l]=jT(e.path,e.caseSensitive,e.end),o=t.match(s);if(!o)return null;let c=o[0],d=c.replace(/(.)\/+$/,"$1"),h=o.slice(1);return{params:l.reduce((p,{paramName:x,isOptional:g},b)=>{if(x==="*"){let j=h[b]||"";d=c.slice(0,c.length-j.length).replace(/(.)\/+$/,"$1")}const w=h[b];return g&&!w?p[x]=void 0:p[x]=(w||"").replace(/%2F/g,"/"),p},{}),pathname:c,pathnameBase:d,pattern:e}}function jT(e,t=!1,s=!0){La(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let l=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,m,p,x)=>{if(l.push({paramName:h,isOptional:m!=null}),m){let g=x.charAt(p+d.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(l.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),l]}function NT(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return La(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Tn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let s=t.endsWith("/")?t.length-1:t.length,l=e.charAt(s);return l&&l!=="/"?null:e.slice(s)||"/"}var ET=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function MT(e,t="/"){let{pathname:s,search:l="",hash:o=""}=typeof e=="string"?rs(e):e,c;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?c=Dg(s.substring(1),"/"):c=Dg(s,t)):c=t,{pathname:c,search:ZT(l),hash:HT(o)}}function Dg(e,t){let s=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?s.length>1&&s.pop():o!=="."&&s.push(o)}),s.length>1?s.join("/"):"/"}function su(e,t,s,l){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(l)}]. 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 ST(e){return e.filter((t,s)=>s===0||t.route.path&&t.route.path.length>0)}function pf(e){let t=ST(e);return t.map((s,l)=>l===t.length-1?s.pathname:s.pathnameBase)}function co(e,t,s,l=!1){let o;typeof e=="string"?o=rs(e):(o={...e},lt(!o.pathname||!o.pathname.includes("?"),su("?","pathname","search",o)),lt(!o.pathname||!o.pathname.includes("#"),su("#","pathname","hash",o)),lt(!o.search||!o.search.includes("#"),su("#","search","hash",o)));let c=e===""||o.pathname==="",d=c?"/":o.pathname,h;if(d==null)h=s;else{let g=t.length-1;if(!l&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),g-=1;o.pathname=b.join("/")}h=g>=0?t[g]:"/"}let m=MT(o,h),p=d&&d!=="/"&&d.endsWith("/"),x=(c||d===".")&&s.endsWith("/");return!m.pathname.endsWith("/")&&(p||x)&&(m.pathname+="/"),m}var sn=e=>e.join("/").replace(/\/\/+/g,"/"),CT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ZT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,HT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,_T=class{constructor(e,t,s,l=!1){this.status=e,this.statusText=t||"",this.internal=l,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function VT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function TT(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var aN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function nN(e,t){let s=e;if(typeof s!="string"||!ET.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let l=s,o=!1;if(aN)try{let c=new URL(window.location.href),d=s.startsWith("//")?new URL(c.protocol+s):new URL(s),h=Tn(d.pathname,t);d.origin===c.origin&&h!=null?s=h+d.search+d.hash:o=!0}catch{La(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:o,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var rN=["POST","PUT","PATCH","DELETE"];new Set(rN);var LT=["GET",...rN];new Set(LT);var ss=r.createContext(null);ss.displayName="DataRouter";var uo=r.createContext(null);uo.displayName="DataRouterState";var kT=r.createContext(!1),sN=r.createContext({isTransitioning:!1});sN.displayName="ViewTransition";var RT=r.createContext(new Map);RT.displayName="Fetchers";var DT=r.createContext(null);DT.displayName="Await";var pa=r.createContext(null);pa.displayName="Navigation";var ql=r.createContext(null);ql.displayName="Location";var Ra=r.createContext({outlet:null,matches:[],isDataRoute:!1});Ra.displayName="Route";var xf=r.createContext(null);xf.displayName="RouteError";var lN="REACT_ROUTER_ERROR",FT="REDIRECT",OT="ROUTE_ERROR_RESPONSE";function zT(e){if(e.startsWith(`${lN}:${FT}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function qT(e){if(e.startsWith(`${lN}:${OT}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new _T(t.status,t.statusText,t.data)}catch{}}function IT(e,{relative:t}={}){lt(ls(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:l}=r.useContext(pa),{hash:o,pathname:c,search:d}=$l(e,{relative:t}),h=c;return s!=="/"&&(h=c==="/"?s:sn([s,c])),l.createHref({pathname:h,search:d,hash:o})}function ls(){return r.useContext(ql)!=null}function Ya(){return lt(ls(),"useLocation() may be used only in the context of a <Router> component."),r.useContext(ql).location}var iN="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function oN(e){r.useContext(pa).static||r.useLayoutEffect(e)}function Ka(){let{isDataRoute:e}=r.useContext(Ra);return e?nL():$T()}function $T(){lt(ls(),"useNavigate() may be used only in the context of a <Router> component.");let e=r.useContext(ss),{basename:t,navigator:s}=r.useContext(pa),{matches:l}=r.useContext(Ra),{pathname:o}=Ya(),c=JSON.stringify(pf(l)),d=r.useRef(!1);return oN(()=>{d.current=!0}),r.useCallback((m,p={})=>{if(La(d.current,iN),!d.current)return;if(typeof m=="number"){s.go(m);return}let x=co(m,JSON.parse(c),o,p.relative==="path");e==null&&t!=="/"&&(x.pathname=x.pathname==="/"?t:sn([t,x.pathname])),(p.replace?s.replace:s.push)(x,p.state,p)},[t,s,c,o,e])}var BT=r.createContext(null);function PT(e){let t=r.useContext(Ra).outlet;return r.useMemo(()=>t&&r.createElement(BT.Provider,{value:e},t),[t,e])}function Il(){let{matches:e}=r.useContext(Ra),t=e[e.length-1];return t?t.params:{}}function $l(e,{relative:t}={}){let{matches:s}=r.useContext(Ra),{pathname:l}=Ya(),o=JSON.stringify(pf(s));return r.useMemo(()=>co(e,JSON.parse(o),l,t==="path"),[e,o,l,t])}function UT(e,t){return cN(e,t)}function cN(e,t,s){var E;lt(ls(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=r.useContext(pa),{matches:o}=r.useContext(Ra),c=o[o.length-1],d=c?c.params:{},h=c?c.pathname:"/",m=c?c.pathnameBase:"/",p=c&&c.route;{let A=p&&p.path||"";dN(h,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${A}">) 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="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let x=Ya(),g;if(t){let A=typeof t=="string"?rs(t):t;lt(m==="/"||((E=A.pathname)==null?void 0:E.startsWith(m)),`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 "${m}" but pathname "${A.pathname}" was given in the \`location\` prop.`),g=A}else g=x;let b=g.pathname||"/",w=b;if(m!=="/"){let A=m.replace(/^\//,"").split("/");w="/"+b.replace(/^\//,"").split("/").slice(A.length).join("/")}let j=Wj(e,{pathname:w});La(p||j!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),La(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.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=QT(j&&j.map(A=>Object.assign({},A,{params:Object.assign({},d,A.params),pathname:sn([m,l.encodeLocation?l.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?m:sn([m,l.encodeLocation?l.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),o,s);return t&&N?r.createElement(ql.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},N):N}function GT(){let e=aL(),t=VT(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),s=e instanceof Error?e.stack:null,l="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:l},c={padding:"2px 4px",backgroundColor:l},d=null;return console.error("Error handled by React Router default ErrorBoundary:",e),d=r.createElement(r.Fragment,null,r.createElement("p",null,"💿 Hey developer 👋"),r.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",r.createElement("code",{style:c},"ErrorBoundary")," or"," ",r.createElement("code",{style:c},"errorElement")," prop on your route.")),r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),s?r.createElement("pre",{style:o},s):null,d)}var YT=r.createElement(GT,null),uN=class extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const s=qT(e.digest);s&&(e=s)}let t=e!==void 0?r.createElement(Ra.Provider,{value:this.props.routeContext},r.createElement(xf.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?r.createElement(KT,{error:e},t):t}};uN.contextType=kT;var lu=new WeakMap;function KT({children:e,error:t}){let{basename:s}=r.useContext(pa);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let l=zT(t.digest);if(l){let o=lu.get(t);if(o)throw o;let c=nN(l.location,s);if(aN&&!lu.get(t))if(c.isExternal||l.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:l.replace}));throw lu.set(t,d),d}return r.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return e}function XT({routeContext:e,match:t,children:s}){let l=r.useContext(ss);return l&&l.static&&l.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=t.route.id),r.createElement(Ra.Provider,{value:e},s)}function QT(e,t=[],s){let l=s==null?void 0:s.state;if(e==null){if(!l)return null;if(l.errors)e=l.matches;else if(t.length===0&&!l.initialized&&l.matches.length>0)e=l.matches;else return null}let o=e,c=l==null?void 0:l.errors;if(c!=null){let x=o.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);lt(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,x+1))}let d=!1,h=-1;if(s&&l){d=l.renderFallback;for(let x=0;x<o.length;x++){let g=o[x];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=x),g.route.id){let{loaderData:b,errors:w}=l,j=g.route.loader&&!b.hasOwnProperty(g.route.id)&&(!w||w[g.route.id]===void 0);if(g.route.lazy||j){s.isStatic&&(d=!0),h>=0?o=o.slice(0,h+1):o=[o[0]];break}}}}let m=s==null?void 0:s.onError,p=l&&m?(x,g)=>{var b,w;m(x,{location:l.location,params:((w=(b=l.matches)==null?void 0:b[0])==null?void 0:w.params)??{},unstable_pattern:TT(l.matches),errorInfo:g})}:void 0;return o.reduceRight((x,g,b)=>{let w,j=!1,N=null,E=null;l&&(w=c&&g.route.id?c[g.route.id]:void 0,N=g.route.errorElement||YT,d&&(h<0&&b===0?(dN("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,E=null):h===b&&(j=!0,E=g.route.hydrateFallbackElement||null)));let A=t.concat(o.slice(0,b+1)),C=()=>{let M;return w?M=N:j?M=E:g.route.Component?M=r.createElement(g.route.Component,null):g.route.element?M=g.route.element:M=x,r.createElement(XT,{match:g,routeContext:{outlet:x,matches:A,isDataRoute:l!=null},children:M})};return l&&(g.route.ErrorBoundary||g.route.errorElement||b===0)?r.createElement(uN,{location:l.location,revalidation:l.revalidation,component:N,error:w,children:C(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:p}):C()},null)}function gf(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function JT(e){let t=r.useContext(ss);return lt(t,gf(e)),t}function WT(e){let t=r.useContext(uo);return lt(t,gf(e)),t}function eL(e){let t=r.useContext(Ra);return lt(t,gf(e)),t}function vf(e){let t=eL(e),s=t.matches[t.matches.length-1];return lt(s.route.id,`${e} can only be used on routes that contain a unique "id"`),s.route.id}function tL(){return vf("useRouteId")}function aL(){var l;let e=r.useContext(xf),t=WT("useRouteError"),s=vf("useRouteError");return e!==void 0?e:(l=t.errors)==null?void 0:l[s]}function nL(){let{router:e}=JT("useNavigate"),t=vf("useNavigate"),s=r.useRef(!1);return oN(()=>{s.current=!0}),r.useCallback(async(o,c={})=>{La(s.current,iN),s.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...c}))},[e,t])}var Fg={};function dN(e,t,s){!t&&!Fg[e]&&(Fg[e]=!0,La(!1,s))}r.memo(rL);function rL({routes:e,future:t,state:s,isStatic:l,onError:o}){return cN(e,void 0,{state:s,isStatic:l,onError:o})}function Zm({to:e,replace:t,state:s,relative:l}){lt(ls(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=r.useContext(pa);La(!o,"<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:c}=r.useContext(Ra),{pathname:d}=Ya(),h=Ka(),m=co(e,pf(c),d,l==="path"),p=JSON.stringify(m);return r.useEffect(()=>{h(JSON.parse(p),{replace:t,state:s,relative:l})},[h,p,l,t,s]),null}function sL(e){return PT(e.context)}function Ne(e){lt(!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 lL({basename:e="/",children:t=null,location:s,navigationType:l="POP",navigator:o,static:c=!1,unstable_useTransitions:d}){lt(!ls(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=e.replace(/^\/*/,"/"),m=r.useMemo(()=>({basename:h,navigator:o,static:c,unstable_useTransitions:d,future:{}}),[h,o,c,d]);typeof s=="string"&&(s=rs(s));let{pathname:p="/",search:x="",hash:g="",state:b=null,key:w="default",unstable_mask:j}=s,N=r.useMemo(()=>{let E=Tn(p,h);return E==null?null:{location:{pathname:E,search:x,hash:g,state:b,key:w,unstable_mask:j},navigationType:l}},[h,p,x,g,b,w,l,j]);return La(N!=null,`<Router basename="${h}"> is not able to match the URL "${p}${x}${g}" because it does not start with the basename, so the <Router> won't render anything.`),N==null?null:r.createElement(pa.Provider,{value:m},r.createElement(ql.Provider,{children:t,value:N}))}function iL({children:e,location:t}){return UT(Hm(e),t)}function Hm(e,t=[]){let s=[];return r.Children.forEach(e,(l,o)=>{if(!r.isValidElement(l))return;let c=[...t,o];if(l.type===r.Fragment){s.push.apply(s,Hm(l.props.children,c));return}lt(l.type===Ne,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),lt(!l.props.index||!l.props.children,"An index route cannot have child routes.");let d={id:l.props.id||c.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(d.children=Hm(l.props.children,c)),s.push(d)}),s}var D1="get",F1="application/x-www-form-urlencoded";function ho(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function oL(e){return ho(e)&&e.tagName.toLowerCase()==="button"}function cL(e){return ho(e)&&e.tagName.toLowerCase()==="form"}function uL(e){return ho(e)&&e.tagName.toLowerCase()==="input"}function dL(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hL(e,t){return e.button===0&&(!t||t==="_self")&&!dL(e)}function _m(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,s)=>{let l=e[s];return t.concat(Array.isArray(l)?l.map(o=>[s,o]):[[s,l]])},[]))}function mL(e,t){let s=_m(e);return t&&t.forEach((l,o)=>{s.has(o)||t.getAll(o).forEach(c=>{s.append(o,c)})}),s}var w1=null;function fL(){if(w1===null)try{new FormData(document.createElement("form"),0),w1=!1}catch{w1=!0}return w1}var pL=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function iu(e){return e!=null&&!pL.has(e)?(La(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${F1}"`),null):e}function xL(e,t){let s,l,o,c,d;if(cL(e)){let h=e.getAttribute("action");l=h?Tn(h,t):null,s=e.getAttribute("method")||D1,o=iu(e.getAttribute("enctype"))||F1,c=new FormData(e)}else if(oL(e)||uL(e)&&(e.type==="submit"||e.type==="image")){let h=e.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=e.getAttribute("formaction")||h.getAttribute("action");if(l=m?Tn(m,t):null,s=e.getAttribute("formmethod")||h.getAttribute("method")||D1,o=iu(e.getAttribute("formenctype"))||iu(h.getAttribute("enctype"))||F1,c=new FormData(h,e),!fL()){let{name:p,type:x,value:g}=e;if(x==="image"){let b=p?`${p}.`:"";c.append(`${b}x`,"0"),c.append(`${b}y`,"0")}else p&&c.append(p,g)}}else{if(ho(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=D1,l=null,o=F1,d=e}return c&&o==="text/plain"&&(d=c,c=void 0),{action:l,method:s.toLowerCase(),encType:o,formData:c,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function bf(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function gL(e,t,s,l){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return s?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${l}`:o.pathname=`${o.pathname}.${l}`:o.pathname==="/"?o.pathname=`_root.${l}`:t&&Tn(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${l}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${l}`,o}async function vL(e,t){if(e.id in t)return t[e.id];try{let s=await import(e.module);return t[e.id]=s,s}catch(s){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function bL(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function yL(e,t,s){let l=await Promise.all(e.map(async o=>{let c=t.routes[o.route.id];if(c){let d=await vL(c,s);return d.links?d.links():[]}return[]}));return NL(l.flat(1).filter(bL).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Og(e,t,s,l,o,c){let d=(m,p)=>s[p]?m.route.id!==s[p].route.id:!0,h=(m,p)=>{var x;return s[p].pathname!==m.pathname||((x=s[p].route.path)==null?void 0:x.endsWith("*"))&&s[p].params["*"]!==m.params["*"]};return c==="assets"?t.filter((m,p)=>d(m,p)||h(m,p)):c==="data"?t.filter((m,p)=>{var g;let x=l.routes[m.route.id];if(!x||!x.hasLoader)return!1;if(d(m,p)||h(m,p))return!0;if(m.route.shouldRevalidate){let b=m.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((g=s[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function wL(e,t,{includeHydrateFallback:s}={}){return AL(e.map(l=>{let o=t.routes[l.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),s&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function AL(e){return[...new Set(e)]}function jL(e){let t={},s=Object.keys(e).sort();for(let l of s)t[l]=e[l];return t}function NL(e,t){let s=new Set;return new Set(t),e.reduce((l,o)=>{let c=JSON.stringify(jL(o));return s.has(c)||(s.add(c),l.push({key:c,link:o})),l},[])}function hN(){let e=r.useContext(ss);return bf(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function EL(){let e=r.useContext(uo);return bf(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var yf=r.createContext(void 0);yf.displayName="FrameworkContext";function mN(){let e=r.useContext(yf);return bf(e,"You must render this element inside a <HydratedRouter> element"),e}function ML(e,t){let s=r.useContext(yf),[l,o]=r.useState(!1),[c,d]=r.useState(!1),{onFocus:h,onBlur:m,onMouseEnter:p,onMouseLeave:x,onTouchStart:g}=t,b=r.useRef(null);r.useEffect(()=>{if(e==="render"&&d(!0),e==="viewport"){let N=A=>{A.forEach(C=>{d(C.isIntersecting)})},E=new IntersectionObserver(N,{threshold:.5});return b.current&&E.observe(b.current),()=>{E.disconnect()}}},[e]),r.useEffect(()=>{if(l){let N=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(N)}}},[l]);let w=()=>{o(!0)},j=()=>{o(!1),d(!1)};return s?e!=="intent"?[c,b,{}]:[c,b,{onFocus:pl(h,w),onBlur:pl(m,j),onMouseEnter:pl(p,w),onMouseLeave:pl(x,j),onTouchStart:pl(g,w)}]:[!1,b,{}]}function pl(e,t){return s=>{e&&e(s),s.defaultPrevented||t(s)}}function SL({page:e,...t}){let{router:s}=hN(),l=r.useMemo(()=>Wj(s.routes,e,s.basename),[s.routes,e,s.basename]);return l?r.createElement(ZL,{page:e,matches:l,...t}):null}function CL(e){let{manifest:t,routeModules:s}=mN(),[l,o]=r.useState([]);return r.useEffect(()=>{let c=!1;return yL(e,t,s).then(d=>{c||o(d)}),()=>{c=!0}},[e,t,s]),l}function ZL({page:e,matches:t,...s}){let l=Ya(),{future:o,manifest:c,routeModules:d}=mN(),{basename:h}=hN(),{loaderData:m,matches:p}=EL(),x=r.useMemo(()=>Og(e,t,p,c,l,"data"),[e,t,p,c,l]),g=r.useMemo(()=>Og(e,t,p,c,l,"assets"),[e,t,p,c,l]),b=r.useMemo(()=>{if(e===l.pathname+l.search+l.hash)return[];let N=new Set,E=!1;if(t.forEach(C=>{var S;let M=c.routes[C.route.id];!M||!M.hasLoader||(!x.some(L=>L.route.id===C.route.id)&&C.route.id in m&&((S=d[C.route.id])!=null&&S.shouldRevalidate)||M.hasClientLoader?E=!0:N.add(C.route.id))}),N.size===0)return[];let A=gL(e,h,o.unstable_trailingSlashAwareDataRequests,"data");return E&&N.size>0&&A.searchParams.set("_routes",t.filter(C=>N.has(C.route.id)).map(C=>C.route.id).join(",")),[A.pathname+A.search]},[h,o.unstable_trailingSlashAwareDataRequests,m,l,c,x,t,e,d]),w=r.useMemo(()=>wL(g,c),[g,c]),j=CL(g);return r.createElement(r.Fragment,null,b.map(N=>r.createElement("link",{key:N,rel:"prefetch",as:"fetch",href:N,...s})),w.map(N=>r.createElement("link",{key:N,rel:"modulepreload",href:N,...s})),j.map(({key:N,link:E})=>r.createElement("link",{key:N,nonce:s.nonce,...E,crossOrigin:E.crossOrigin??s.crossOrigin})))}function HL(...e){return t=>{e.forEach(s=>{typeof s=="function"?s(t):s!=null&&(s.current=t)})}}var _L=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{_L&&(window.__reactRouterVersion="7.13.1")}catch{}function VL({basename:e,children:t,unstable_useTransitions:s,window:l}){let o=r.useRef();o.current==null&&(o.current=oT({window:l,v5Compat:!0}));let c=o.current,[d,h]=r.useState({action:c.action,location:c.location}),m=r.useCallback(p=>{s===!1?h(p):r.startTransition(()=>h(p))},[s]);return r.useLayoutEffect(()=>c.listen(m),[c,m]),r.createElement(lL,{basename:e,children:t,location:d.location,navigationType:d.action,navigator:c,unstable_useTransitions:s})}var fN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Be=r.forwardRef(function({onClick:t,discover:s="render",prefetch:l="none",relative:o,reloadDocument:c,replace:d,unstable_mask:h,state:m,target:p,to:x,preventScrollReset:g,viewTransition:b,unstable_defaultShouldRevalidate:w,...j},N){let{basename:E,navigator:A,unstable_useTransitions:C}=r.useContext(pa),M=typeof x=="string"&&fN.test(x),S=nN(x,E);x=S.to;let L=IT(x,{relative:o}),V=Ya(),_=null;if(h){let se=co(h,[],V.unstable_mask?V.unstable_mask.pathname:"/",!0);E!=="/"&&(se.pathname=se.pathname==="/"?E:sn([E,se.pathname])),_=A.createHref(se)}let[H,T,D]=ML(l,j),F=kL(x,{replace:d,unstable_mask:h,state:m,target:p,preventScrollReset:g,relative:o,viewTransition:b,unstable_defaultShouldRevalidate:w,unstable_useTransitions:C});function P(se){t&&t(se),se.defaultPrevented||F(se)}let U=!(S.isExternal||c),W=r.createElement("a",{...j,...D,href:(U?_:void 0)||S.absoluteURL||L,onClick:U?P:t,ref:HL(N,T),target:p,"data-discover":!M&&s==="render"?"true":void 0});return H&&!M?r.createElement(r.Fragment,null,W,r.createElement(SL,{page:L})):W});Be.displayName="Link";var G0=r.forwardRef(function({"aria-current":t="page",caseSensitive:s=!1,className:l="",end:o=!1,style:c,to:d,viewTransition:h,children:m,...p},x){let g=$l(d,{relative:p.relative}),b=Ya(),w=r.useContext(uo),{navigator:j,basename:N}=r.useContext(pa),E=w!=null&&zL(g)&&h===!0,A=j.encodeLocation?j.encodeLocation(g).pathname:g.pathname,C=b.pathname,M=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;s||(C=C.toLowerCase(),M=M?M.toLowerCase():null,A=A.toLowerCase()),M&&N&&(M=Tn(M,N)||M);const S=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let L=C===A||!o&&C.startsWith(A)&&C.charAt(S)==="/",V=M!=null&&(M===A||!o&&M.startsWith(A)&&M.charAt(A.length)==="/"),_={isActive:L,isPending:V,isTransitioning:E},H=L?t:void 0,T;typeof l=="function"?T=l(_):T=[l,L?"active":null,V?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let D=typeof c=="function"?c(_):c;return r.createElement(Be,{...p,"aria-current":H,className:T,ref:x,style:D,to:d,viewTransition:h},typeof m=="function"?m(_):m)});G0.displayName="NavLink";var TL=r.forwardRef(({discover:e="render",fetcherKey:t,navigate:s,reloadDocument:l,replace:o,state:c,method:d=D1,action:h,onSubmit:m,relative:p,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:b,...w},j)=>{let{unstable_useTransitions:N}=r.useContext(pa),E=FL(),A=OL(h,{relative:p}),C=d.toLowerCase()==="get"?"get":"post",M=typeof h=="string"&&fN.test(h),S=L=>{if(m&&m(L),L.defaultPrevented)return;L.preventDefault();let V=L.nativeEvent.submitter,_=(V==null?void 0:V.getAttribute("formmethod"))||d,H=()=>E(V||L.currentTarget,{fetcherKey:t,method:_,navigate:s,replace:o,state:c,relative:p,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:b});N&&s!==!1?r.startTransition(()=>H()):H()};return r.createElement("form",{ref:j,method:C,action:A,onSubmit:l?m:S,...w,"data-discover":!M&&e==="render"?"true":void 0})});TL.displayName="Form";function LL(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function pN(e){let t=r.useContext(ss);return lt(t,LL(e)),t}function kL(e,{target:t,replace:s,unstable_mask:l,state:o,preventScrollReset:c,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:m,unstable_useTransitions:p}={}){let x=Ka(),g=Ya(),b=$l(e,{relative:d});return r.useCallback(w=>{if(hL(w,t)){w.preventDefault();let j=s!==void 0?s:Vl(g)===Vl(b),N=()=>x(e,{replace:j,unstable_mask:l,state:o,preventScrollReset:c,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:m});p?r.startTransition(()=>N()):N()}},[g,x,b,s,l,o,t,e,c,d,h,m,p])}function xN(e){La(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=r.useRef(_m(e)),s=r.useRef(!1),l=Ya(),o=r.useMemo(()=>mL(l.search,s.current?null:t.current),[l.search]),c=Ka(),d=r.useCallback((h,m)=>{const p=_m(typeof h=="function"?h(new URLSearchParams(o)):h);s.current=!0,c("?"+p,m)},[c,o]);return[o,d]}var RL=0,DL=()=>`__${String(++RL)}__`;function FL(){let{router:e}=pN("useSubmit"),{basename:t}=r.useContext(pa),s=tL(),l=e.fetch,o=e.navigate;return r.useCallback(async(c,d={})=>{let{action:h,method:m,encType:p,formData:x,body:g}=xL(c,t);if(d.navigate===!1){let b=d.fetcherKey||DL();await l(b,s,d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:g,formMethod:d.method||m,formEncType:d.encType||p,flushSync:d.flushSync})}else await o(d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:g,formMethod:d.method||m,formEncType:d.encType||p,replace:d.replace,state:d.state,fromRouteId:s,flushSync:d.flushSync,viewTransition:d.viewTransition})},[l,o,t,s])}function OL(e,{relative:t}={}){let{basename:s}=r.useContext(pa),l=r.useContext(Ra);lt(l,"useFormAction must be used inside a RouteContext");let[o]=l.matches.slice(-1),c={...$l(e||".",{relative:t})},d=Ya();if(e==null){c.search=d.search;let h=new URLSearchParams(c.search),m=h.getAll("index");if(m.some(x=>x==="")){h.delete("index"),m.filter(g=>g).forEach(g=>h.append("index",g));let x=h.toString();c.search=x?`?${x}`:""}}return(!e||e===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(c.pathname=c.pathname==="/"?s:sn([s,c.pathname])),Vl(c)}function zL(e,{relative:t}={}){let s=r.useContext(sN);lt(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=pN("useViewTransitionState"),o=$l(e,{relative:t});if(!s.isTransitioning)return!1;let c=Tn(s.currentLocation.pathname,l)||s.currentLocation.pathname,d=Tn(s.nextLocation.pathname,l)||s.nextLocation.pathname;return Y1(o.pathname,d)!=null||Y1(o.pathname,c)!=null}const gN="";function cn(){return localStorage.getItem("ohwow-session-token")}function Vm(e){localStorage.setItem("ohwow-session-token",e)}function vN(){localStorage.removeItem("ohwow-session-token")}async function me(e,t={}){const s=cn(),l=await fetch(`${gN}${e}`,{...t,headers:{"Content-Type":"application/json",...s?{Authorization:`Bearer ${s}`}:{},...t.headers}});if(l.status===401)throw vN(),window.location.href="/ui/login",new Error("Unauthorized");if(!l.ok){const o=await l.json().catch(()=>({error:l.statusText}));throw new Error(o.error||`HTTP ${l.status}`)}return l.json()}async function*bN(e,t,s){const l=cn(),o=await fetch(`${gN}/api/chat`,{method:"POST",headers:{"Content-Type":"application/json",...l?{Authorization:`Bearer ${l}`}:{}},body:JSON.stringify({message:e,sessionId:t,model:s})});if(!o.ok||!o.body)throw new Error("Chat request failed");const c=o.body.getReader(),d=new TextDecoder;let h="";for(;;){const{done:m,value:p}=await c.read();if(m)break;h+=d.decode(p,{stream:!0});const x=h.split(`
61
+ `);h=x.pop()||"";for(const g of x)if(g.startsWith("data: ")){const b=g.slice(6).trim();if(b==="[DONE]")return;try{yield JSON.parse(b)}catch{}}}}class yN extends r.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,s){console.error("[ErrorBoundary]",t,s.componentStack)}render(){var t;return this.state.hasError?this.props.fallback||a.jsx("div",{className:"flex items-center justify-center h-full p-8",children:a.jsxs("div",{className:"text-center max-w-sm",children:[a.jsx("p",{className:"text-sm font-medium text-critical mb-2",children:"Something broke on this page"}),a.jsx("p",{className:"text-xs text-neutral-400 mb-4",children:(t=this.state.error)==null?void 0:t.message}),a.jsx("button",{onClick:()=>this.setState({hasError:!1,error:null}),className:"px-4 py-2 text-xs bg-white/5 border border-white/[0.08] rounded-lg hover:bg-white/[0.06] transition-colors",children:"Try again"})]})}):this.props.children}}const wf=r.createContext({});function Af(e){const t=r.useRef(null);return t.current===null&&(t.current=e()),t.current}const wN=typeof window<"u",AN=wN?r.useLayoutEffect:r.useEffect,mo=r.createContext(null);function jf(e,t){e.indexOf(t)===-1&&e.push(t)}function K1(e,t){const s=e.indexOf(t);s>-1&&e.splice(s,1)}const on=(e,t,s)=>s>t?t:s<e?e:s;let Nf=()=>{};const Ln={},jN=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function NN(e){return typeof e=="object"&&e!==null}const EN=e=>/^0[^.\s]+$/u.test(e);function MN(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ta=e=>e,qL=(e,t)=>s=>t(e(s)),Bl=(...e)=>e.reduce(qL),Tl=(e,t,s)=>{const l=t-e;return l===0?1:(s-e)/l};class Ef{constructor(){this.subscriptions=[]}add(t){return jf(this.subscriptions,t),()=>K1(this.subscriptions,t)}notify(t,s,l){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,s,l);else for(let c=0;c<o;c++){const d=this.subscriptions[c];d&&d(t,s,l)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ba=e=>e*1e3,Va=e=>e/1e3;function SN(e,t){return t?e*(1e3/t):0}const CN=(e,t,s)=>(((1-3*s+3*t)*e+(3*s-6*t))*e+3*t)*e,IL=1e-7,$L=12;function BL(e,t,s,l,o){let c,d,h=0;do d=t+(s-t)/2,c=CN(d,l,o)-e,c>0?s=d:t=d;while(Math.abs(c)>IL&&++h<$L);return d}function Pl(e,t,s,l){if(e===t&&s===l)return Ta;const o=c=>BL(c,0,1,e,s);return c=>c===0||c===1?c:CN(o(c),t,l)}const ZN=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,HN=e=>t=>1-e(1-t),_N=Pl(.33,1.53,.69,.99),Mf=HN(_N),VN=ZN(Mf),TN=e=>(e*=2)<1?.5*Mf(e):.5*(2-Math.pow(2,-10*(e-1))),Sf=e=>1-Math.sin(Math.acos(e)),LN=HN(Sf),kN=ZN(Sf),PL=Pl(.42,0,1,1),UL=Pl(0,0,.58,1),RN=Pl(.42,0,.58,1),GL=e=>Array.isArray(e)&&typeof e[0]!="number",DN=e=>Array.isArray(e)&&typeof e[0]=="number",YL={linear:Ta,easeIn:PL,easeInOut:RN,easeOut:UL,circIn:Sf,circInOut:kN,circOut:LN,backIn:Mf,backInOut:VN,backOut:_N,anticipate:TN},KL=e=>typeof e=="string",zg=e=>{if(DN(e)){Nf(e.length===4);const[t,s,l,o]=e;return Pl(t,s,l,o)}else if(KL(e))return YL[e];return e},A1=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function XL(e,t){let s=new Set,l=new Set,o=!1,c=!1;const d=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function m(x){d.has(x)&&(p.schedule(x),e()),x(h)}const p={schedule:(x,g=!1,b=!1)=>{const j=b&&o?s:l;return g&&d.add(x),j.has(x)||j.add(x),x},cancel:x=>{l.delete(x),d.delete(x)},process:x=>{if(h=x,o){c=!0;return}o=!0,[s,l]=[l,s],s.forEach(m),s.clear(),o=!1,c&&(c=!1,p.process(x))}};return p}const QL=40;function FN(e,t){let s=!1,l=!0;const o={delta:0,timestamp:0,isProcessing:!1},c=()=>s=!0,d=A1.reduce((M,S)=>(M[S]=XL(c),M),{}),{setup:h,read:m,resolveKeyframes:p,preUpdate:x,update:g,preRender:b,render:w,postRender:j}=d,N=()=>{const M=Ln.useManualTiming?o.timestamp:performance.now();s=!1,Ln.useManualTiming||(o.delta=l?1e3/60:Math.max(Math.min(M-o.timestamp,QL),1)),o.timestamp=M,o.isProcessing=!0,h.process(o),m.process(o),p.process(o),x.process(o),g.process(o),b.process(o),w.process(o),j.process(o),o.isProcessing=!1,s&&t&&(l=!1,e(N))},E=()=>{s=!0,l=!0,o.isProcessing||e(N)};return{schedule:A1.reduce((M,S)=>{const L=d[S];return M[S]=(V,_=!1,H=!1)=>(s||E(),L.schedule(V,_,H)),M},{}),cancel:M=>{for(let S=0;S<A1.length;S++)d[A1[S]].cancel(M)},state:o,steps:d}}const{schedule:tt,cancel:g0,state:zt,steps:ou}=FN(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ta,!0);let O1;function JL(){O1=void 0}const Ut={now:()=>(O1===void 0&&Ut.set(zt.isProcessing||Ln.useManualTiming?zt.timestamp:performance.now()),O1),set:e=>{O1=e,queueMicrotask(JL)}},ON=e=>t=>typeof t=="string"&&t.startsWith(e),zN=ON("--"),WL=ON("var(--"),Cf=e=>WL(e)?ek.test(e.split("/*")[0].trim()):!1,ek=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function qg(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const is={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ll={...is,transform:e=>on(0,1,e)},j1={...is,default:1},Sl=e=>Math.round(e*1e5)/1e5,Zf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function tk(e){return e==null}const ak=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Hf=(e,t)=>s=>!!(typeof s=="string"&&ak.test(s)&&s.startsWith(e)||t&&!tk(s)&&Object.prototype.hasOwnProperty.call(s,t)),qN=(e,t,s)=>l=>{if(typeof l!="string")return l;const[o,c,d,h]=l.match(Zf);return{[e]:parseFloat(o),[t]:parseFloat(c),[s]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},nk=e=>on(0,255,e),cu={...is,transform:e=>Math.round(nk(e))},$0={test:Hf("rgb","red"),parse:qN("red","green","blue"),transform:({red:e,green:t,blue:s,alpha:l=1})=>"rgba("+cu.transform(e)+", "+cu.transform(t)+", "+cu.transform(s)+", "+Sl(Ll.transform(l))+")"};function rk(e){let t="",s="",l="",o="";return e.length>5?(t=e.substring(1,3),s=e.substring(3,5),l=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),s=e.substring(2,3),l=e.substring(3,4),o=e.substring(4,5),t+=t,s+=s,l+=l,o+=o),{red:parseInt(t,16),green:parseInt(s,16),blue:parseInt(l,16),alpha:o?parseInt(o,16)/255:1}}const Tm={test:Hf("#"),parse:rk,transform:$0.transform},Ul=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),m0=Ul("deg"),ln=Ul("%"),ge=Ul("px"),sk=Ul("vh"),lk=Ul("vw"),Ig={...ln,parse:e=>ln.parse(e)/100,transform:e=>ln.transform(e*100)},Yr={test:Hf("hsl","hue"),parse:qN("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:s,alpha:l=1})=>"hsla("+Math.round(e)+", "+ln.transform(Sl(t))+", "+ln.transform(Sl(s))+", "+Sl(Ll.transform(l))+")"},Et={test:e=>$0.test(e)||Tm.test(e)||Yr.test(e),parse:e=>$0.test(e)?$0.parse(e):Yr.test(e)?Yr.parse(e):Tm.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?$0.transform(e):Yr.transform(e),getAnimatableNone:e=>{const t=Et.parse(e);return t.alpha=0,Et.transform(t)}},ik=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ok(e){var t,s;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Zf))==null?void 0:t.length)||0)+(((s=e.match(ik))==null?void 0:s.length)||0)>0}const IN="number",$N="color",ck="var",uk="var(",$g="${}",dk=/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 kl(e){const t=e.toString(),s=[],l={color:[],number:[],var:[]},o=[];let c=0;const h=t.replace(dk,m=>(Et.test(m)?(l.color.push(c),o.push($N),s.push(Et.parse(m))):m.startsWith(uk)?(l.var.push(c),o.push(ck),s.push(m)):(l.number.push(c),o.push(IN),s.push(parseFloat(m))),++c,$g)).split($g);return{values:s,split:h,indexes:l,types:o}}function BN(e){return kl(e).values}function PN(e){const{split:t,types:s}=kl(e),l=t.length;return o=>{let c="";for(let d=0;d<l;d++)if(c+=t[d],o[d]!==void 0){const h=s[d];h===IN?c+=Sl(o[d]):h===$N?c+=Et.transform(o[d]):c+=o[d]}return c}}const hk=e=>typeof e=="number"?0:Et.test(e)?Et.getAnimatableNone(e):e;function mk(e){const t=BN(e);return PN(e)(t.map(hk))}const Pa={test:ok,parse:BN,createTransformer:PN,getAnimatableNone:mk};function uu(e,t,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(t-e)*6*s:s<1/2?t:s<2/3?e+(t-e)*(2/3-s)*6:e}function fk({hue:e,saturation:t,lightness:s,alpha:l}){e/=360,t/=100,s/=100;let o=0,c=0,d=0;if(!t)o=c=d=s;else{const h=s<.5?s*(1+t):s+t-s*t,m=2*s-h;o=uu(m,h,e+1/3),c=uu(m,h,e),d=uu(m,h,e-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(d*255),alpha:l}}function X1(e,t){return s=>s>0?t:e}const ct=(e,t,s)=>e+(t-e)*s,du=(e,t,s)=>{const l=e*e,o=s*(t*t-l)+l;return o<0?0:Math.sqrt(o)},pk=[Tm,$0,Yr],xk=e=>pk.find(t=>t.test(e));function Bg(e){const t=xk(e);if(!t)return!1;let s=t.parse(e);return t===Yr&&(s=fk(s)),s}const Pg=(e,t)=>{const s=Bg(e),l=Bg(t);if(!s||!l)return X1(e,t);const o={...s};return c=>(o.red=du(s.red,l.red,c),o.green=du(s.green,l.green,c),o.blue=du(s.blue,l.blue,c),o.alpha=ct(s.alpha,l.alpha,c),$0.transform(o))},Lm=new Set(["none","hidden"]);function gk(e,t){return Lm.has(e)?s=>s<=0?e:t:s=>s>=1?t:e}function vk(e,t){return s=>ct(e,t,s)}function _f(e){return typeof e=="number"?vk:typeof e=="string"?Cf(e)?X1:Et.test(e)?Pg:wk:Array.isArray(e)?UN:typeof e=="object"?Et.test(e)?Pg:bk:X1}function UN(e,t){const s=[...e],l=s.length,o=e.map((c,d)=>_f(c)(c,t[d]));return c=>{for(let d=0;d<l;d++)s[d]=o[d](c);return s}}function bk(e,t){const s={...e,...t},l={};for(const o in s)e[o]!==void 0&&t[o]!==void 0&&(l[o]=_f(e[o])(e[o],t[o]));return o=>{for(const c in l)s[c]=l[c](o);return s}}function yk(e,t){const s=[],l={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const c=t.types[o],d=e.indexes[c][l[c]],h=e.values[d]??0;s[o]=h,l[c]++}return s}const wk=(e,t)=>{const s=Pa.createTransformer(t),l=kl(e),o=kl(t);return l.indexes.var.length===o.indexes.var.length&&l.indexes.color.length===o.indexes.color.length&&l.indexes.number.length>=o.indexes.number.length?Lm.has(e)&&!o.values.length||Lm.has(t)&&!l.values.length?gk(e,t):Bl(UN(yk(l,o),o.values),s):X1(e,t)};function GN(e,t,s){return typeof e=="number"&&typeof t=="number"&&typeof s=="number"?ct(e,t,s):_f(e)(e,t)}const Ak=e=>{const t=({timestamp:s})=>e(s);return{start:(s=!0)=>tt.update(t,s),stop:()=>g0(t),now:()=>zt.isProcessing?zt.timestamp:Ut.now()}},YN=(e,t,s=10)=>{let l="";const o=Math.max(Math.round(t/s),2);for(let c=0;c<o;c++)l+=Math.round(e(c/(o-1))*1e4)/1e4+", ";return`linear(${l.substring(0,l.length-2)})`},Q1=2e4;function Vf(e){let t=0;const s=50;let l=e.next(t);for(;!l.done&&t<Q1;)t+=s,l=e.next(t);return t>=Q1?1/0:t}function jk(e,t=100,s){const l=s({...e,keyframes:[0,t]}),o=Math.min(Vf(l),Q1);return{type:"keyframes",ease:c=>l.next(o*c).value/t,duration:Va(o)}}const Nk=5;function KN(e,t,s){const l=Math.max(t-Nk,0);return SN(s-e(l),t-l)}const mt={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},hu=.001;function Ek({duration:e=mt.duration,bounce:t=mt.bounce,velocity:s=mt.velocity,mass:l=mt.mass}){let o,c,d=1-t;d=on(mt.minDamping,mt.maxDamping,d),e=on(mt.minDuration,mt.maxDuration,Va(e)),d<1?(o=p=>{const x=p*d,g=x*e,b=x-s,w=km(p,d),j=Math.exp(-g);return hu-b/w*j},c=p=>{const g=p*d*e,b=g*s+s,w=Math.pow(d,2)*Math.pow(p,2)*e,j=Math.exp(-g),N=km(Math.pow(p,2),d);return(-o(p)+hu>0?-1:1)*((b-w)*j)/N}):(o=p=>{const x=Math.exp(-p*e),g=(p-s)*e+1;return-hu+x*g},c=p=>{const x=Math.exp(-p*e),g=(s-p)*(e*e);return x*g});const h=5/e,m=Sk(o,c,h);if(e=Ba(e),isNaN(m))return{stiffness:mt.stiffness,damping:mt.damping,duration:e};{const p=Math.pow(m,2)*l;return{stiffness:p,damping:d*2*Math.sqrt(l*p),duration:e}}}const Mk=12;function Sk(e,t,s){let l=s;for(let o=1;o<Mk;o++)l=l-e(l)/t(l);return l}function km(e,t){return e*Math.sqrt(1-t*t)}const Ck=["duration","bounce"],Zk=["stiffness","damping","mass"];function Ug(e,t){return t.some(s=>e[s]!==void 0)}function Hk(e){let t={velocity:mt.velocity,stiffness:mt.stiffness,damping:mt.damping,mass:mt.mass,isResolvedFromDuration:!1,...e};if(!Ug(e,Zk)&&Ug(e,Ck))if(t.velocity=0,e.visualDuration){const s=e.visualDuration,l=2*Math.PI/(s*1.2),o=l*l,c=2*on(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:mt.mass,stiffness:o,damping:c}}else{const s=Ek({...e,velocity:0});t={...t,...s,mass:mt.mass},t.isResolvedFromDuration=!0}return t}function J1(e=mt.visualDuration,t=mt.bounce){const s=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:l,restDelta:o}=s;const c=s.keyframes[0],d=s.keyframes[s.keyframes.length-1],h={done:!1,value:c},{stiffness:m,damping:p,mass:x,duration:g,velocity:b,isResolvedFromDuration:w}=Hk({...s,velocity:-Va(s.velocity||0)}),j=b||0,N=p/(2*Math.sqrt(m*x)),E=d-c,A=Va(Math.sqrt(m/x)),C=Math.abs(E)<5;l||(l=C?mt.restSpeed.granular:mt.restSpeed.default),o||(o=C?mt.restDelta.granular:mt.restDelta.default);let M;if(N<1){const L=km(A,N);M=V=>{const _=Math.exp(-N*A*V);return d-_*((j+N*A*E)/L*Math.sin(L*V)+E*Math.cos(L*V))}}else if(N===1)M=L=>d-Math.exp(-A*L)*(E+(j+A*E)*L);else{const L=A*Math.sqrt(N*N-1);M=V=>{const _=Math.exp(-N*A*V),H=Math.min(L*V,300);return d-_*((j+N*A*E)*Math.sinh(H)+L*E*Math.cosh(H))/L}}const S={calculatedDuration:w&&g||null,next:L=>{const V=M(L);if(w)h.done=L>=g;else{let _=L===0?j:0;N<1&&(_=L===0?Ba(j):KN(M,L,V));const H=Math.abs(_)<=l,T=Math.abs(d-V)<=o;h.done=H&&T}return h.value=h.done?d:V,h},toString:()=>{const L=Math.min(Vf(S),Q1),V=YN(_=>S.next(L*_).value,L,30);return L+"ms "+V},toTransition:()=>{}};return S}J1.applyToOptions=e=>{const t=jk(e,100,J1);return e.ease=t.ease,e.duration=Ba(t.duration),e.type="keyframes",e};function Rm({keyframes:e,velocity:t=0,power:s=.8,timeConstant:l=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:d,min:h,max:m,restDelta:p=.5,restSpeed:x}){const g=e[0],b={done:!1,value:g},w=H=>h!==void 0&&H<h||m!==void 0&&H>m,j=H=>h===void 0?m:m===void 0||Math.abs(h-H)<Math.abs(m-H)?h:m;let N=s*t;const E=g+N,A=d===void 0?E:d(E);A!==E&&(N=A-g);const C=H=>-N*Math.exp(-H/l),M=H=>A+C(H),S=H=>{const T=C(H),D=M(H);b.done=Math.abs(T)<=p,b.value=b.done?A:D};let L,V;const _=H=>{w(b.value)&&(L=H,V=J1({keyframes:[b.value,j(b.value)],velocity:KN(M,H,b.value),damping:o,stiffness:c,restDelta:p,restSpeed:x}))};return _(0),{calculatedDuration:null,next:H=>{let T=!1;return!V&&L===void 0&&(T=!0,S(H),_(H)),L!==void 0&&H>=L?V.next(H-L):(!T&&S(H),b)}}}function _k(e,t,s){const l=[],o=s||Ln.mix||GN,c=e.length-1;for(let d=0;d<c;d++){let h=o(e[d],e[d+1]);if(t){const m=Array.isArray(t)?t[d]||Ta:t;h=Bl(m,h)}l.push(h)}return l}function Vk(e,t,{clamp:s=!0,ease:l,mixer:o}={}){const c=e.length;if(Nf(c===t.length),c===1)return()=>t[0];if(c===2&&t[0]===t[1])return()=>t[1];const d=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),t=[...t].reverse());const h=_k(t,l,o),m=h.length,p=x=>{if(d&&x<e[0])return t[0];let g=0;if(m>1)for(;g<e.length-2&&!(x<e[g+1]);g++);const b=Tl(e[g],e[g+1],x);return h[g](b)};return s?x=>p(on(e[0],e[c-1],x)):p}function Tk(e,t){const s=e[e.length-1];for(let l=1;l<=t;l++){const o=Tl(0,t,l);e.push(ct(s,1,o))}}function Lk(e){const t=[0];return Tk(t,e.length-1),t}function kk(e,t){return e.map(s=>s*t)}function Rk(e,t){return e.map(()=>t||RN).splice(0,e.length-1)}function Cl({duration:e=300,keyframes:t,times:s,ease:l="easeInOut"}){const o=GL(l)?l.map(zg):zg(l),c={done:!1,value:t[0]},d=kk(s&&s.length===t.length?s:Lk(t),e),h=Vk(d,t,{ease:Array.isArray(o)?o:Rk(t,o)});return{calculatedDuration:e,next:m=>(c.value=h(m),c.done=m>=e,c)}}const Dk=e=>e!==null;function Tf(e,{repeat:t,repeatType:s="loop"},l,o=1){const c=e.filter(Dk),h=o<0||t&&s!=="loop"&&t%2===1?0:c.length-1;return!h||l===void 0?c[h]:l}const Fk={decay:Rm,inertia:Rm,tween:Cl,keyframes:Cl,spring:J1};function XN(e){typeof e.type=="string"&&(e.type=Fk[e.type])}class Lf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,s){return this.finished.then(t,s)}}const Ok=e=>e/100;class kf extends Lf{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var l,o;const{motionValue:s}=this.options;s&&s.updatedAt!==Ut.now()&&this.tick(Ut.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(l=this.options).onStop)==null||o.call(l))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;XN(t);const{type:s=Cl,repeat:l=0,repeatDelay:o=0,repeatType:c,velocity:d=0}=t;let{keyframes:h}=t;const m=s||Cl;m!==Cl&&typeof h[0]!="number"&&(this.mixKeyframes=Bl(Ok,GN(h[0],h[1])),h=[0,100]);const p=m({...t,keyframes:h});c==="mirror"&&(this.mirroredGenerator=m({...t,keyframes:[...h].reverse(),velocity:-d})),p.calculatedDuration===null&&(p.calculatedDuration=Vf(p));const{calculatedDuration:x}=p;this.calculatedDuration=x,this.resolvedDuration=x+o,this.totalDuration=this.resolvedDuration*(l+1)-o,this.generator=p}updateTime(t){const s=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(t,s=!1){const{generator:l,totalDuration:o,mixKeyframes:c,mirroredGenerator:d,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return l.next(0);const{delay:p=0,keyframes:x,repeat:g,repeatType:b,repeatDelay:w,type:j,onUpdate:N,finalKeyframe:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),s?this.currentTime=t:this.updateTime(t);const A=this.currentTime-p*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?A<0:A>o;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let M=this.currentTime,S=l;if(g){const H=Math.min(this.currentTime,o)/h;let T=Math.floor(H),D=H%1;!D&&H>=1&&(D=1),D===1&&T--,T=Math.min(T,g+1),!!(T%2)&&(b==="reverse"?(D=1-D,w&&(D-=w/h)):b==="mirror"&&(S=d)),M=on(0,1,D)*h}const L=C?{done:!1,value:x[0]}:S.next(M);c&&(L.value=c(L.value));let{done:V}=L;!C&&m!==null&&(V=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return _&&j!==Rm&&(L.value=Tf(x,this.options,E,this.speed)),N&&N(L.value),_&&this.finish(),L}then(t,s){return this.finished.then(t,s)}get duration(){return Va(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Va(t)}get time(){return Va(this.currentTime)}set time(t){var s;t=Ba(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(s=this.driver)==null||s.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ut.now());const s=this.playbackSpeed!==t;this.playbackSpeed=t,s&&(this.time=Va(this.currentTime))}play(){var o,c;if(this.isStopped)return;const{driver:t=Ak,startTime:s}=this.options;this.driver||(this.driver=t(d=>this.tick(d))),(c=(o=this.options).onPlay)==null||c.call(o);const l=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=l):this.holdTime!==null?this.startTime=l-this.holdTime:this.startTime||(this.startTime=s??l),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(Ut.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(t=this.options).onComplete)==null||s.call(t)}cancel(){var t,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(t=this.options).onCancel)==null||s.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),t.observe(this)}}function zk(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const B0=e=>e*180/Math.PI,Dm=e=>{const t=B0(Math.atan2(e[1],e[0]));return Fm(t)},qk={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Dm,rotateZ:Dm,skewX:e=>B0(Math.atan(e[1])),skewY:e=>B0(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Fm=e=>(e=e%360,e<0&&(e+=360),e),Gg=Dm,Yg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Kg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ik={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Yg,scaleY:Kg,scale:e=>(Yg(e)+Kg(e))/2,rotateX:e=>Fm(B0(Math.atan2(e[6],e[5]))),rotateY:e=>Fm(B0(Math.atan2(-e[2],e[0]))),rotateZ:Gg,rotate:Gg,skewX:e=>B0(Math.atan(e[4])),skewY:e=>B0(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Om(e){return e.includes("scale")?1:0}function zm(e,t){if(!e||e==="none")return Om(t);const s=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let l,o;if(s)l=Ik,o=s;else{const h=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);l=qk,o=h}if(!o)return Om(t);const c=l[t],d=o[1].split(",").map(Bk);return typeof c=="function"?c(d):d[c]}const $k=(e,t)=>{const{transform:s="none"}=getComputedStyle(e);return zm(s,t)};function Bk(e){return parseFloat(e.trim())}const os=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],cs=new Set(os),Xg=e=>e===is||e===ge,Pk=new Set(["x","y","z"]),Uk=os.filter(e=>!Pk.has(e));function Gk(e){const t=[];return Uk.forEach(s=>{const l=e.getValue(s);l!==void 0&&(t.push([s,l.get()]),l.set(s.startsWith("scale")?1:0))}),t}const p0={width:({x:e},{paddingLeft:t="0",paddingRight:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),height:({y:e},{paddingTop:t="0",paddingBottom:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>zm(t,"x"),y:(e,{transform:t})=>zm(t,"y")};p0.translateX=p0.x;p0.translateY=p0.y;const Y0=new Set;let qm=!1,Im=!1,$m=!1;function QN(){if(Im){const e=Array.from(Y0).filter(l=>l.needsMeasurement),t=new Set(e.map(l=>l.element)),s=new Map;t.forEach(l=>{const o=Gk(l);o.length&&(s.set(l,o),l.render())}),e.forEach(l=>l.measureInitialState()),t.forEach(l=>{l.render();const o=s.get(l);o&&o.forEach(([c,d])=>{var h;(h=l.getValue(c))==null||h.set(d)})}),e.forEach(l=>l.measureEndState()),e.forEach(l=>{l.suspendedScrollY!==void 0&&window.scrollTo(0,l.suspendedScrollY)})}Im=!1,qm=!1,Y0.forEach(e=>e.complete($m)),Y0.clear()}function JN(){Y0.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Im=!0)})}function Yk(){$m=!0,JN(),QN(),$m=!1}class Rf{constructor(t,s,l,o,c,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=s,this.name=l,this.motionValue=o,this.element=c,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Y0.add(this),qm||(qm=!0,tt.read(JN),tt.resolveKeyframes(QN))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:s,element:l,motionValue:o}=this;if(t[0]===null){const c=o==null?void 0:o.get(),d=t[t.length-1];if(c!==void 0)t[0]=c;else if(l&&s){const h=l.readValue(s,d);h!=null&&(t[0]=h)}t[0]===void 0&&(t[0]=d),o&&c===void 0&&o.set(t[0])}zk(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Y0.delete(this)}cancel(){this.state==="scheduled"&&(Y0.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Kk=e=>e.startsWith("--");function Xk(e,t,s){Kk(t)?e.style.setProperty(t,s):e.style[t]=s}const Qk={};function WN(e,t){const s=MN(e);return()=>Qk[t]??s()}const Jk=WN(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),eE=WN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),yl=([e,t,s,l])=>`cubic-bezier(${e}, ${t}, ${s}, ${l})`,Qg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yl([0,.65,.55,1]),circOut:yl([.55,0,1,.45]),backIn:yl([.31,.01,.66,-.59]),backOut:yl([.33,1.53,.69,.99])};function tE(e,t){if(e)return typeof e=="function"?eE()?YN(e,t):"ease-out":DN(e)?yl(e):Array.isArray(e)?e.map(s=>tE(s,t)||Qg.easeOut):Qg[e]}function Wk(e,t,s,{delay:l=0,duration:o=300,repeat:c=0,repeatType:d="loop",ease:h="easeOut",times:m}={},p=void 0){const x={[t]:s};m&&(x.offset=m);const g=tE(h,o);Array.isArray(g)&&(x.easing=g);const b={delay:l,duration:o,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:c+1,direction:d==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),e.animate(x,b)}function aE(e){return typeof e=="function"&&"applyToOptions"in e}function eR({type:e,...t}){return aE(e)&&eE()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class nE extends Lf{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:s,name:l,keyframes:o,pseudoElement:c,allowFlatten:d=!1,finalKeyframe:h,onComplete:m}=t;this.isPseudoElement=!!c,this.allowFlatten=d,this.options=t,Nf(typeof t.type!="string");const p=eR(t);this.animation=Wk(s,l,o,p,c),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const x=Tf(o,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(x):Xk(s,l,x),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,s;(s=(t=this.animation).finish)==null||s.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var s,l,o;const t=(s=this.options)==null?void 0:s.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((o=(l=this.animation).commitStyles)==null||o.call(l))}get duration(){var s,l;const t=((l=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:l.call(s).duration)||0;return Va(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Va(t)}get time(){return Va(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ba(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:s}){var l;return this.allowFlatten&&((l=this.animation.effect)==null||l.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Jk()?(this.animation.timeline=t,Ta):s(this)}}const rE={anticipate:TN,backInOut:VN,circInOut:kN};function tR(e){return e in rE}function aR(e){typeof e.ease=="string"&&tR(e.ease)&&(e.ease=rE[e.ease])}const mu=10;class nR extends nE{constructor(t){aR(t),XN(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:s,onUpdate:l,onComplete:o,element:c,...d}=this.options;if(!s)return;if(t!==void 0){s.set(t);return}const h=new kf({...d,autoplay:!1}),m=Math.max(mu,Ut.now()-this.startTime),p=on(0,mu,m-mu);s.setWithVelocity(h.sample(Math.max(0,m-p)).value,h.sample(m).value,p),h.stop()}}const Jg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Pa.test(e)||e==="0")&&!e.startsWith("url("));function rR(e){const t=e[0];if(e.length===1)return!0;for(let s=0;s<e.length;s++)if(e[s]!==t)return!0}function sR(e,t,s,l){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const c=e[e.length-1],d=Jg(o,t),h=Jg(c,t);return!d||!h?!1:rR(e)||(s==="spring"||aE(s))&&l}function Bm(e){e.duration=0,e.type="keyframes"}const lR=new Set(["opacity","clipPath","filter","transform"]),iR=MN(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function oR(e){var x;const{motionValue:t,name:s,repeatDelay:l,repeatType:o,damping:c,type:d}=e;if(!(((x=t==null?void 0:t.owner)==null?void 0:x.current)instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:p}=t.owner.getProps();return iR()&&s&&lR.has(s)&&(s!=="transform"||!p)&&!m&&!l&&o!=="mirror"&&c!==0&&d!=="inertia"}const cR=40;class uR extends Lf{constructor({autoplay:t=!0,delay:s=0,type:l="keyframes",repeat:o=0,repeatDelay:c=0,repeatType:d="loop",keyframes:h,name:m,motionValue:p,element:x,...g}){var j;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=Ut.now();const b={autoplay:t,delay:s,type:l,repeat:o,repeatDelay:c,repeatType:d,name:m,motionValue:p,element:x,...g},w=(x==null?void 0:x.KeyframeResolver)||Rf;this.keyframeResolver=new w(h,(N,E,A)=>this.onKeyframesResolved(N,E,b,!A),m,p,x),(j=this.keyframeResolver)==null||j.scheduleResolve()}onKeyframesResolved(t,s,l,o){var E,A;this.keyframeResolver=void 0;const{name:c,type:d,velocity:h,delay:m,isHandoff:p,onUpdate:x}=l;this.resolvedAt=Ut.now(),sR(t,c,d,h)||((Ln.instantAnimations||!m)&&(x==null||x(Tf(t,l,s))),t[0]=t[t.length-1],Bm(l),l.repeat=0);const b={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>cR?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...l,keyframes:t},w=!p&&oR(b),j=(A=(E=b.motionValue)==null?void 0:E.owner)==null?void 0:A.current,N=w?new nR({...b,element:j}):new kf(b);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(t,s){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Yk()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function sE(e,t,s,l=0,o=1){const c=Array.from(e).sort((p,x)=>p.sortNodePosition(x)).indexOf(t),d=e.size,h=(d-1)*l;return typeof s=="function"?s(c,d):o===1?c*l:h-c*l}const dR=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function hR(e){const t=dR.exec(e);if(!t)return[,];const[,s,l,o]=t;return[`--${s??l}`,o]}function lE(e,t,s=1){const[l,o]=hR(e);if(!l)return;const c=window.getComputedStyle(t).getPropertyValue(l);if(c){const d=c.trim();return jN(d)?parseFloat(d):d}return Cf(o)?lE(o,t,s+1):o}const mR={type:"spring",stiffness:500,damping:25,restSpeed:10},fR=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),pR={type:"keyframes",duration:.8},xR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},gR=(e,{keyframes:t})=>t.length>2?pR:cs.has(e)?e.startsWith("scale")?fR(t[1]):mR:xR,vR=e=>e!==null;function bR(e,{repeat:t,repeatType:s="loop"},l){const o=e.filter(vR),c=t&&s!=="loop"&&t%2===1?0:o.length-1;return o[c]}function iE(e,t){if(e!=null&&e.inherit&&t){const{inherit:s,...l}=e;return{...t,...l}}return e}function Df(e,t){const s=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return s!==e?iE(s,e):s}function yR({when:e,delay:t,delayChildren:s,staggerChildren:l,staggerDirection:o,repeat:c,repeatType:d,repeatDelay:h,from:m,elapsed:p,...x}){return!!Object.keys(x).length}const Ff=(e,t,s,l={},o,c)=>d=>{const h=Df(l,e)||{},m=h.delay||l.delay||0;let{elapsed:p=0}=l;p=p-Ba(m);const x={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:t.getVelocity(),...h,delay:-p,onUpdate:b=>{t.set(b),h.onUpdate&&h.onUpdate(b)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:e,motionValue:t,element:c?void 0:o};yR(h)||Object.assign(x,gR(e,x)),x.duration&&(x.duration=Ba(x.duration)),x.repeatDelay&&(x.repeatDelay=Ba(x.repeatDelay)),x.from!==void 0&&(x.keyframes[0]=x.from);let g=!1;if((x.type===!1||x.duration===0&&!x.repeatDelay)&&(Bm(x),x.delay===0&&(g=!0)),(Ln.instantAnimations||Ln.skipAnimations||o!=null&&o.shouldSkipAnimations)&&(g=!0,Bm(x),x.delay=0),x.allowFlatten=!h.type&&!h.ease,g&&!c&&t.get()!==void 0){const b=bR(x.keyframes,h);if(b!==void 0){tt.update(()=>{x.onUpdate(b),x.onComplete()});return}}return h.isSync?new kf(x):new uR(x)};function Wg(e){const t=[{},{}];return e==null||e.values.forEach((s,l)=>{t[0][l]=s.get(),t[1][l]=s.getVelocity()}),t}function Of(e,t,s,l){if(typeof t=="function"){const[o,c]=Wg(l);t=t(s!==void 0?s:e.custom,o,c)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,c]=Wg(l);t=t(s!==void 0?s:e.custom,o,c)}return t}function es(e,t,s){const l=e.getProps();return Of(l,t,s!==void 0?s:l.custom,e)}const oE=new Set(["width","height","top","left","right","bottom",...os]),e7=30,wR=e=>!isNaN(parseFloat(e));class AR{constructor(t,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=l=>{var c;const o=Ut.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(l),this.current!==this.prev&&((c=this.events.change)==null||c.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=s.owner}setCurrent(t){this.current=t,this.updatedAt=Ut.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=wR(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,s){this.events[t]||(this.events[t]=new Ef);const l=this.events[t].add(s);return t==="change"?()=>{l(),tt.read(()=>{this.events.change.getSize()||this.stop()})}:l}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,s){this.passiveEffect=t,this.stopPassiveEffect=s}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,s,l){this.set(s),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-l}jump(t,s=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ut.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>e7)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,e7);return SN(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(t){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=t(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 t,s;(t=this.dependents)==null||t.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function as(e,t){return new AR(e,t)}const Pm=e=>Array.isArray(e);function jR(e,t,s){e.hasValue(t)?e.getValue(t).set(s):e.addValue(t,as(s))}function NR(e){return Pm(e)?e[e.length-1]||0:e}function ER(e,t){const s=es(e,t);let{transitionEnd:l={},transition:o={},...c}=s||{};c={...c,...l};for(const d in c){const h=NR(c[d]);jR(e,d,h)}}const $t=e=>!!(e&&e.getVelocity);function MR(e){return!!($t(e)&&e.add)}function Um(e,t){const s=e.getValue("willChange");if(MR(s))return s.add(t);if(!s&&Ln.WillChange){const l=new Ln.WillChange("auto");e.addValue("willChange",l),l.add(t)}}function zf(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const SR="framerAppearId",cE="data-"+zf(SR);function uE(e){return e.props[cE]}function CR({protectedKeys:e,needsAnimating:t},s){const l=e.hasOwnProperty(s)&&t[s]!==!0;return t[s]=!1,l}function dE(e,t,{delay:s=0,transitionOverride:l,type:o}={}){let{transition:c,transitionEnd:d,...h}=t;const m=e.getDefaultTransition();c=c?iE(c,m):m;const p=c==null?void 0:c.reduceMotion;l&&(c=l);const x=[],g=o&&e.animationState&&e.animationState.getState()[o];for(const b in h){const w=e.getValue(b,e.latestValues[b]??null),j=h[b];if(j===void 0||g&&CR(g,b))continue;const N={delay:s,...Df(c||{},b)},E=w.get();if(E!==void 0&&!w.isAnimating&&!Array.isArray(j)&&j===E&&!N.velocity)continue;let A=!1;if(window.MotionHandoffAnimation){const S=uE(e);if(S){const L=window.MotionHandoffAnimation(S,b,tt);L!==null&&(N.startTime=L,A=!0)}}Um(e,b);const C=p??e.shouldReduceMotion;w.start(Ff(b,w,j,C&&oE.has(b)?{type:!1}:N,e,A));const M=w.animation;M&&x.push(M)}if(d){const b=()=>tt.update(()=>{d&&ER(e,d)});x.length?Promise.all(x).then(b):b()}return x}function Gm(e,t,s={}){var m;const l=es(e,t,s.type==="exit"?(m=e.presenceContext)==null?void 0:m.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=l||{};s.transitionOverride&&(o=s.transitionOverride);const c=l?()=>Promise.all(dE(e,l,s)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:x=0,staggerChildren:g,staggerDirection:b}=o;return ZR(e,t,p,x,g,b,s)}:()=>Promise.resolve(),{when:h}=o;if(h){const[p,x]=h==="beforeChildren"?[c,d]:[d,c];return p().then(()=>x())}else return Promise.all([c(),d(s.delay)])}function ZR(e,t,s=0,l=0,o=0,c=1,d){const h=[];for(const m of e.variantChildren)m.notify("AnimationStart",t),h.push(Gm(m,t,{...d,delay:s+(typeof l=="function"?0:l)+sE(e.variantChildren,m,l,o,c)}).then(()=>m.notify("AnimationComplete",t)));return Promise.all(h)}function HR(e,t,s={}){e.notify("AnimationStart",t);let l;if(Array.isArray(t)){const o=t.map(c=>Gm(e,c,s));l=Promise.all(o)}else if(typeof t=="string")l=Gm(e,t,s);else{const o=typeof t=="function"?es(e,t,s.custom):t;l=Promise.all(dE(e,o,s))}return l.then(()=>{e.notify("AnimationComplete",t)})}const _R={test:e=>e==="auto",parse:e=>e},hE=e=>t=>t.test(e),mE=[is,ge,ln,m0,lk,sk,_R],t7=e=>mE.find(hE(e));function VR(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||EN(e):!0}const TR=new Set(["brightness","contrast","saturate","opacity"]);function LR(e){const[t,s]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[l]=s.match(Zf)||[];if(!l)return e;const o=s.replace(l,"");let c=TR.has(t)?1:0;return l!==s&&(c*=100),t+"("+c+o+")"}const kR=/\b([a-z-]*)\(.*?\)/gu,Ym={...Pa,getAnimatableNone:e=>{const t=e.match(kR);return t?t.map(LR).join(" "):e}},Km={...Pa,getAnimatableNone:e=>{const t=Pa.parse(e);return Pa.createTransformer(e)(t.map(l=>typeof l=="number"?0:typeof l=="object"?{...l,alpha:1}:l))}},a7={...is,transform:Math.round},RR={rotate:m0,rotateX:m0,rotateY:m0,rotateZ:m0,scale:j1,scaleX:j1,scaleY:j1,scaleZ:j1,skew:m0,skewX:m0,skewY:m0,distance:ge,translateX:ge,translateY:ge,translateZ:ge,x:ge,y:ge,z:ge,perspective:ge,transformPerspective:ge,opacity:Ll,originX:Ig,originY:Ig,originZ:ge},qf={borderWidth:ge,borderTopWidth:ge,borderRightWidth:ge,borderBottomWidth:ge,borderLeftWidth:ge,borderRadius:ge,borderTopLeftRadius:ge,borderTopRightRadius:ge,borderBottomRightRadius:ge,borderBottomLeftRadius:ge,width:ge,maxWidth:ge,height:ge,maxHeight:ge,top:ge,right:ge,bottom:ge,left:ge,inset:ge,insetBlock:ge,insetBlockStart:ge,insetBlockEnd:ge,insetInline:ge,insetInlineStart:ge,insetInlineEnd:ge,padding:ge,paddingTop:ge,paddingRight:ge,paddingBottom:ge,paddingLeft:ge,paddingBlock:ge,paddingBlockStart:ge,paddingBlockEnd:ge,paddingInline:ge,paddingInlineStart:ge,paddingInlineEnd:ge,margin:ge,marginTop:ge,marginRight:ge,marginBottom:ge,marginLeft:ge,marginBlock:ge,marginBlockStart:ge,marginBlockEnd:ge,marginInline:ge,marginInlineStart:ge,marginInlineEnd:ge,fontSize:ge,backgroundPositionX:ge,backgroundPositionY:ge,...RR,zIndex:a7,fillOpacity:Ll,strokeOpacity:Ll,numOctaves:a7},DR={...qf,color:Et,backgroundColor:Et,outlineColor:Et,fill:Et,stroke:Et,borderColor:Et,borderTopColor:Et,borderRightColor:Et,borderBottomColor:Et,borderLeftColor:Et,filter:Ym,WebkitFilter:Ym,mask:Km,WebkitMask:Km},fE=e=>DR[e],FR=new Set([Ym,Km]);function pE(e,t){let s=fE(e);return FR.has(s)||(s=Pa),s.getAnimatableNone?s.getAnimatableNone(t):void 0}const OR=new Set(["auto","none","0"]);function zR(e,t,s){let l=0,o;for(;l<e.length&&!o;){const c=e[l];typeof c=="string"&&!OR.has(c)&&kl(c).values.length&&(o=e[l]),l++}if(o&&s)for(const c of t)e[c]=pE(s,o)}class qR extends Rf{constructor(t,s,l,o,c){super(t,s,l,o,c,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:s,name:l}=this;if(!s||!s.current)return;super.readKeyframes();for(let x=0;x<t.length;x++){let g=t[x];if(typeof g=="string"&&(g=g.trim(),Cf(g))){const b=lE(g,s.current);b!==void 0&&(t[x]=b),x===t.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!oE.has(l)||t.length!==2)return;const[o,c]=t,d=t7(o),h=t7(c),m=qg(o),p=qg(c);if(m!==p&&p0[l]){this.needsMeasurement=!0;return}if(d!==h)if(Xg(d)&&Xg(h))for(let x=0;x<t.length;x++){const g=t[x];typeof g=="string"&&(t[x]=parseFloat(g))}else p0[l]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:s}=this,l=[];for(let o=0;o<t.length;o++)(t[o]===null||VR(t[o]))&&l.push(o);l.length&&zR(t,l,s)}measureInitialState(){const{element:t,unresolvedKeyframes:s,name:l}=this;if(!t||!t.current)return;l==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=p0[l](t.measureViewportBox(),window.getComputedStyle(t.current)),s[0]=this.measuredOrigin;const o=s[s.length-1];o!==void 0&&t.getValue(l,o).jump(o,!1)}measureEndState(){var h;const{element:t,name:s,unresolvedKeyframes:l}=this;if(!t||!t.current)return;const o=t.getValue(s);o&&o.jump(this.measuredOrigin,!1);const c=l.length-1,d=l[c];l[c]=p0[s](t.measureViewportBox(),window.getComputedStyle(t.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([m,p])=>{t.getValue(m).set(p)}),this.resolveNoneKeyframes()}}const IR=new Set(["opacity","clipPath","filter","transform"]);function xE(e,t,s){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let l=document;const o=(s==null?void 0:s[e])??l.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(l=>l!=null)}const gE=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Xm(e){return NN(e)&&"offsetHeight"in e}const{schedule:If}=FN(queueMicrotask,!1),$a={x:!1,y:!1};function vE(){return $a.x||$a.y}function $R(e){return e==="x"||e==="y"?$a[e]?null:($a[e]=!0,()=>{$a[e]=!1}):$a.x||$a.y?null:($a.x=$a.y=!0,()=>{$a.x=$a.y=!1})}function bE(e,t){const s=xE(e),l=new AbortController,o={passive:!0,...t,signal:l.signal};return[s,o,()=>l.abort()]}function BR(e){return!(e.pointerType==="touch"||vE())}function PR(e,t,s={}){const[l,o,c]=bE(e,s);return l.forEach(d=>{let h=!1,m=!1,p;const x=()=>{d.removeEventListener("pointerleave",j)},g=E=>{p&&(p(E),p=void 0),x()},b=E=>{h=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),m&&(m=!1,g(E))},w=()=>{h=!0,window.addEventListener("pointerup",b,o),window.addEventListener("pointercancel",b,o)},j=E=>{if(E.pointerType!=="touch"){if(h){m=!0;return}g(E)}},N=E=>{if(!BR(E))return;m=!1;const A=t(d,E);typeof A=="function"&&(p=A,d.addEventListener("pointerleave",j,o))};d.addEventListener("pointerenter",N,o),d.addEventListener("pointerdown",w,o)}),c}const yE=(e,t)=>t?e===t?!0:yE(e,t.parentElement):!1,$f=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,UR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function GR(e){return UR.has(e.tagName)||e.isContentEditable===!0}const YR=new Set(["INPUT","SELECT","TEXTAREA"]);function KR(e){return YR.has(e.tagName)||e.isContentEditable===!0}const z1=new WeakSet;function n7(e){return t=>{t.key==="Enter"&&e(t)}}function fu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const XR=(e,t)=>{const s=e.currentTarget;if(!s)return;const l=n7(()=>{if(z1.has(s))return;fu(s,"down");const o=n7(()=>{fu(s,"up")}),c=()=>fu(s,"cancel");s.addEventListener("keyup",o,t),s.addEventListener("blur",c,t)});s.addEventListener("keydown",l,t),s.addEventListener("blur",()=>s.removeEventListener("keydown",l),t)};function r7(e){return $f(e)&&!vE()}const s7=new WeakSet;function QR(e,t,s={}){const[l,o,c]=bE(e,s),d=h=>{const m=h.currentTarget;if(!r7(h)||s7.has(h))return;z1.add(m),s.stopPropagation&&s7.add(h);const p=t(m,h),x=(w,j)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",b),z1.has(m)&&z1.delete(m),r7(w)&&typeof p=="function"&&p(w,{success:j})},g=w=>{x(w,m===window||m===document||s.useGlobalTarget||yE(m,w.target))},b=w=>{x(w,!1)};window.addEventListener("pointerup",g,o),window.addEventListener("pointercancel",b,o)};return l.forEach(h=>{(s.useGlobalTarget?window:h).addEventListener("pointerdown",d,o),Xm(h)&&(h.addEventListener("focus",p=>XR(p,o)),!GR(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),c}function Bf(e){return NN(e)&&"ownerSVGElement"in e}const q1=new WeakMap;let f0;const wE=(e,t,s)=>(l,o)=>o&&o[0]?o[0][e+"Size"]:Bf(l)&&"getBBox"in l?l.getBBox()[t]:l[s],JR=wE("inline","width","offsetWidth"),WR=wE("block","height","offsetHeight");function eD({target:e,borderBoxSize:t}){var s;(s=q1.get(e))==null||s.forEach(l=>{l(e,{get width(){return JR(e,t)},get height(){return WR(e,t)}})})}function tD(e){e.forEach(eD)}function aD(){typeof ResizeObserver>"u"||(f0=new ResizeObserver(tD))}function nD(e,t){f0||aD();const s=xE(e);return s.forEach(l=>{let o=q1.get(l);o||(o=new Set,q1.set(l,o)),o.add(t),f0==null||f0.observe(l)}),()=>{s.forEach(l=>{const o=q1.get(l);o==null||o.delete(t),o!=null&&o.size||f0==null||f0.unobserve(l)})}}const I1=new Set;let Kr;function rD(){Kr=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};I1.forEach(t=>t(e))},window.addEventListener("resize",Kr)}function sD(e){return I1.add(e),Kr||rD(),()=>{I1.delete(e),!I1.size&&typeof Kr=="function"&&(window.removeEventListener("resize",Kr),Kr=void 0)}}function l7(e,t){return typeof e=="function"?sD(e):nD(e,t)}function lD(e){return Bf(e)&&e.tagName==="svg"}const iD=[...mE,Et,Pa],oD=e=>iD.find(hE(e)),i7=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xr=()=>({x:i7(),y:i7()}),o7=()=>({min:0,max:0}),Ct=()=>({x:o7(),y:o7()}),cD=new WeakMap;function fo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Rl(e){return typeof e=="string"||Array.isArray(e)}const Pf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Uf=["initial",...Pf];function po(e){return fo(e.animate)||Uf.some(t=>Rl(e[t]))}function AE(e){return!!(po(e)||e.variants)}function uD(e,t,s){for(const l in t){const o=t[l],c=s[l];if($t(o))e.addValue(l,o);else if($t(c))e.addValue(l,as(o,{owner:e}));else if(c!==o)if(e.hasValue(l)){const d=e.getValue(l);d.liveStyle===!0?d.jump(o):d.hasAnimated||d.set(o)}else{const d=e.getStaticValue(l);e.addValue(l,as(d!==void 0?d:o,{owner:e}))}}for(const l in s)t[l]===void 0&&e.removeValue(l);return t}const Qm={current:null},jE={current:!1},dD=typeof window<"u";function hD(){if(jE.current=!0,!!dD)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Qm.current=e.matches;e.addEventListener("change",t),t()}else Qm.current=!1}const c7=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let W1={};function NE(e){W1=e}function mD(){return W1}class fD{scrapeMotionValuesFromProps(t,s,l){return{}}constructor({parent:t,props:s,presenceContext:l,reducedMotionConfig:o,skipAnimations:c,blockInitialAnimation:d,visualState:h},m={}){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=Rf,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 w=Ut.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,tt.render(this.render,!1,!0))};const{latestValues:p,renderState:x}=h;this.latestValues=p,this.baseTarget={...p},this.initialValues=s.initial?{...p}:{},this.renderState=x,this.parent=t,this.props=s,this.presenceContext=l,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=c,this.options=m,this.blockInitialAnimation=!!d,this.isControllingVariants=po(s),this.isVariantNode=AE(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:g,...b}=this.scrapeMotionValuesFromProps(s,{},this);for(const w in b){const j=b[w];p[w]!==void 0&&$t(j)&&j.set(p[w])}}mount(t){var s,l;if(this.hasBeenMounted)for(const o in this.initialValues)(s=this.values.get(o))==null||s.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=t,cD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,c)=>this.bindToMotionValue(c,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(jE.current||hD(),this.shouldReduceMotion=Qm.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(l=this.parent)==null||l.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),g0(this.notifyUpdate),g0(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const l=this.features[s];l&&(l.unmount(),l.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,s){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),s.accelerate&&IR.has(t)&&this.current instanceof HTMLElement){const{factory:d,keyframes:h,times:m,ease:p,duration:x}=s.accelerate,g=new nE({element:this.current,name:t,keyframes:h,times:m,ease:p,duration:Ba(x)}),b=d(g);this.valueSubscriptions.set(t,()=>{b(),g.cancel()});return}const l=cs.has(t);l&&this.onBindTransform&&this.onBindTransform();const o=s.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&tt.preRender(this.notifyUpdate),l&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;typeof window<"u"&&window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,s)),this.valueSubscriptions.set(t,()=>{o(),c&&c(),s.owner&&s.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in W1){const s=W1[t];if(!s)continue;const{isEnabled:l,Feature:o}=s;if(!this.features[t]&&o&&l(this.props)&&(this.features[t]=new o(this)),this.features[t]){const c=this.features[t];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ct()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,s){this.latestValues[t]=s}update(t,s){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let l=0;l<c7.length;l++){const o=c7[l];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const c="on"+o,d=t[c];d&&(this.propEventSubscriptions[o]=this.on(o,d))}this.prevMotionValues=uD(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(t),()=>s.variantChildren.delete(t)}addValue(t,s){const l=this.values.get(t);s!==l&&(l&&this.removeValue(t),this.bindToMotionValue(t,s),this.values.set(t,s),this.latestValues[t]=s.get())}removeValue(t){this.values.delete(t);const s=this.valueSubscriptions.get(t);s&&(s(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,s){if(this.props.values&&this.props.values[t])return this.props.values[t];let l=this.values.get(t);return l===void 0&&s!==void 0&&(l=as(s===null?void 0:s,{owner:this}),this.addValue(t,l)),l}readValue(t,s){let l=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return l!=null&&(typeof l=="string"&&(jN(l)||EN(l))?l=parseFloat(l):!oD(l)&&Pa.test(s)&&(l=pE(t,s)),this.setBaseTarget(t,$t(l)?l.get():l)),$t(l)?l.get():l}setBaseTarget(t,s){this.baseTarget[t]=s}getBaseTarget(t){var c;const{initial:s}=this.props;let l;if(typeof s=="string"||typeof s=="object"){const d=Of(this.props,s,(c=this.presenceContext)==null?void 0:c.custom);d&&(l=d[t])}if(s&&l!==void 0)return l;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!$t(o)?o:this.initialValues[t]!==void 0&&l===void 0?void 0:this.baseTarget[t]}on(t,s){return this.events[t]||(this.events[t]=new Ef),this.events[t].add(s)}notify(t,...s){this.events[t]&&this.events[t].notify(...s)}scheduleRenderMicrotask(){If.render(this.render)}}class EE extends fD{constructor(){super(...arguments),this.KeyframeResolver=qR}sortInstanceNodePosition(t,s){return t.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(t,s){const l=t.style;return l?l[s]:void 0}removeValueFromRenderState(t,{vars:s,style:l}){delete s[t],delete l[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;$t(t)&&(this.childSubscription=t.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class b0{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ME({top:e,left:t,right:s,bottom:l}){return{x:{min:t,max:s},y:{min:e,max:l}}}function pD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function xD(e,t){if(!t)return e;const s=t({x:e.left,y:e.top}),l=t({x:e.right,y:e.bottom});return{top:s.y,left:s.x,bottom:l.y,right:l.x}}function pu(e){return e===void 0||e===1}function Jm({scale:e,scaleX:t,scaleY:s}){return!pu(e)||!pu(t)||!pu(s)}function I0(e){return Jm(e)||SE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function SE(e){return u7(e.x)||u7(e.y)}function u7(e){return e&&e!=="0%"}function eo(e,t,s){const l=e-s,o=t*l;return s+o}function d7(e,t,s,l,o){return o!==void 0&&(e=eo(e,o,l)),eo(e,s,l)+t}function Wm(e,t=0,s=1,l,o){e.min=d7(e.min,t,s,l,o),e.max=d7(e.max,t,s,l,o)}function CE(e,{x:t,y:s}){Wm(e.x,t.translate,t.scale,t.originPoint),Wm(e.y,s.translate,s.scale,s.originPoint)}const h7=.999999999999,m7=1.0000000000001;function gD(e,t,s,l=!1){const o=s.length;if(!o)return;t.x=t.y=1;let c,d;for(let h=0;h<o;h++){c=s[h],d=c.projectionDelta;const{visualElement:m}=c.options;m&&m.props.style&&m.props.style.display==="contents"||(l&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Jr(e,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),d&&(t.x*=d.x.scale,t.y*=d.y.scale,CE(e,d)),l&&I0(c.latestValues)&&Jr(e,c.latestValues))}t.x<m7&&t.x>h7&&(t.x=1),t.y<m7&&t.y>h7&&(t.y=1)}function Qr(e,t){e.min=e.min+t,e.max=e.max+t}function f7(e,t,s,l,o=.5){const c=ct(e.min,e.max,o);Wm(e,t,s,c,l)}function Jr(e,t){f7(e.x,t.x,t.scaleX,t.scale,t.originX),f7(e.y,t.y,t.scaleY,t.scale,t.originY)}function ZE(e,t){return ME(xD(e.getBoundingClientRect(),t))}function vD(e,t,s){const l=ZE(e,s),{scroll:o}=t;return o&&(Qr(l.x,o.offset.x),Qr(l.y,o.offset.y)),l}const bD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yD=os.length;function wD(e,t,s){let l="",o=!0;for(let c=0;c<yD;c++){const d=os[c],h=e[d];if(h===void 0)continue;let m=!0;if(typeof h=="number")m=h===(d.startsWith("scale")?1:0);else{const p=parseFloat(h);m=d.startsWith("scale")?p===1:p===0}if(!m||s){const p=gE(h,qf[d]);if(!m){o=!1;const x=bD[d]||d;l+=`${x}(${p}) `}s&&(t[d]=p)}}return l=l.trim(),s?l=s(t,o?"":l):o&&(l="none"),l}function Gf(e,t,s){const{style:l,vars:o,transformOrigin:c}=e;let d=!1,h=!1;for(const m in t){const p=t[m];if(cs.has(m)){d=!0;continue}else if(zN(m)){o[m]=p;continue}else{const x=gE(p,qf[m]);m.startsWith("origin")?(h=!0,c[m]=x):l[m]=x}}if(t.transform||(d||s?l.transform=wD(t,e.transform,s):l.transform&&(l.transform="none")),h){const{originX:m="50%",originY:p="50%",originZ:x=0}=c;l.transformOrigin=`${m} ${p} ${x}`}}function HE(e,{style:t,vars:s},l,o){const c=e.style;let d;for(d in t)c[d]=t[d];o==null||o.applyProjectionStyles(c,l);for(d in s)c.setProperty(d,s[d])}function p7(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ge.test(e))e=parseFloat(e);else return e;const s=p7(e,t.target.x),l=p7(e,t.target.y);return`${s}% ${l}%`}},AD={correct:(e,{treeScale:t,projectionDelta:s})=>{const l=e,o=Pa.parse(e);if(o.length>5)return l;const c=Pa.createTransformer(e),d=typeof o[0]!="number"?1:0,h=s.x.scale*t.x,m=s.y.scale*t.y;o[0+d]/=h,o[1+d]/=m;const p=ct(h,m,.5);return typeof o[2+d]=="number"&&(o[2+d]/=p),typeof o[3+d]=="number"&&(o[3+d]/=p),c(o)}},ef={borderRadius:{...xl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xl,borderTopRightRadius:xl,borderBottomLeftRadius:xl,borderBottomRightRadius:xl,boxShadow:AD};function _E(e,{layout:t,layoutId:s}){return cs.has(e)||e.startsWith("origin")||(t||s!==void 0)&&(!!ef[e]||e==="opacity")}function Yf(e,t,s){var d;const l=e.style,o=t==null?void 0:t.style,c={};if(!l)return c;for(const h in l)($t(l[h])||o&&$t(o[h])||_E(h,e)||((d=s==null?void 0:s.getValue(h))==null?void 0:d.liveStyle)!==void 0)&&(c[h]=l[h]);return c}function jD(e){return window.getComputedStyle(e)}class ND extends EE{constructor(){super(...arguments),this.type="html",this.renderInstance=HE}readValueFromInstance(t,s){var l;if(cs.has(s))return(l=this.projection)!=null&&l.isProjecting?Om(s):$k(t,s);{const o=jD(t),c=(zN(s)?o.getPropertyValue(s):o[s])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(t,{transformPagePoint:s}){return ZE(t,s)}build(t,s,l){Gf(t,s,l.transformTemplate)}scrapeMotionValuesFromProps(t,s,l){return Yf(t,s,l)}}const ED={offset:"stroke-dashoffset",array:"stroke-dasharray"},MD={offset:"strokeDashoffset",array:"strokeDasharray"};function SD(e,t,s=1,l=0,o=!0){e.pathLength=1;const c=o?ED:MD;e[c.offset]=`${-l}`,e[c.array]=`${t} ${s}`}const CD=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function VE(e,{attrX:t,attrY:s,attrScale:l,pathLength:o,pathSpacing:c=1,pathOffset:d=0,...h},m,p,x){if(Gf(e,h,p),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b}=e;g.transform&&(b.transform=g.transform,delete g.transform),(b.transform||g.transformOrigin)&&(b.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),b.transform&&(b.transformBox=(x==null?void 0:x.transformBox)??"fill-box",delete g.transformBox);for(const w of CD)g[w]!==void 0&&(b[w]=g[w],delete g[w]);t!==void 0&&(g.x=t),s!==void 0&&(g.y=s),l!==void 0&&(g.scale=l),o!==void 0&&SD(g,o,c,d,!1)}const TE=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"]),LE=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ZD(e,t,s,l){HE(e,t,void 0,l);for(const o in t.attrs)e.setAttribute(TE.has(o)?o:zf(o),t.attrs[o])}function kE(e,t,s){const l=Yf(e,t,s);for(const o in e)if($t(e[o])||$t(t[o])){const c=os.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;l[c]=e[o]}return l}class HD extends EE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ct}getBaseTargetFromProps(t,s){return t[s]}readValueFromInstance(t,s){if(cs.has(s)){const l=fE(s);return l&&l.default||0}return s=TE.has(s)?s:zf(s),t.getAttribute(s)}scrapeMotionValuesFromProps(t,s,l){return kE(t,s,l)}build(t,s,l){VE(t,s,this.isSVGTag,l.transformTemplate,l.style)}renderInstance(t,s,l,o){ZD(t,s,l,o)}mount(t){this.isSVGTag=LE(t.tagName),super.mount(t)}}const _D=Uf.length;function RE(e){if(!e)return;if(!e.isControllingVariants){const s=e.parent?RE(e.parent)||{}:{};return e.props.initial!==void 0&&(s.initial=e.props.initial),s}const t={};for(let s=0;s<_D;s++){const l=Uf[s],o=e.props[l];(Rl(o)||o===!1)&&(t[l]=o)}return t}function DE(e,t){if(!Array.isArray(t))return!1;const s=t.length;if(s!==e.length)return!1;for(let l=0;l<s;l++)if(t[l]!==e[l])return!1;return!0}const VD=[...Pf].reverse(),TD=Pf.length;function LD(e){return t=>Promise.all(t.map(({animation:s,options:l})=>HR(e,s,l)))}function kD(e){let t=LD(e),s=x7(),l=!0;const o=m=>(p,x)=>{var b;const g=es(e,x,m==="exit"?(b=e.presenceContext)==null?void 0:b.custom:void 0);if(g){const{transition:w,transitionEnd:j,...N}=g;p={...p,...N,...j}}return p};function c(m){t=m(e)}function d(m){const{props:p}=e,x=RE(e.parent)||{},g=[],b=new Set;let w={},j=1/0;for(let E=0;E<TD;E++){const A=VD[E],C=s[A],M=p[A]!==void 0?p[A]:x[A],S=Rl(M),L=A===m?C.isActive:null;L===!1&&(j=E);let V=M===x[A]&&M!==p[A]&&S;if(V&&l&&e.manuallyAnimateOnMount&&(V=!1),C.protectedKeys={...w},!C.isActive&&L===null||!M&&!C.prevProp||fo(M)||typeof M=="boolean")continue;if(A==="exit"&&C.isActive&&L!==!0){C.prevResolvedValues&&(w={...w,...C.prevResolvedValues});continue}const _=RD(C.prevProp,M);let H=_||A===m&&C.isActive&&!V&&S||E>j&&S,T=!1;const D=Array.isArray(M)?M:[M];let F=D.reduce(o(A),{});L===!1&&(F={});const{prevResolvedValues:P={}}=C,U={...P,...F},W=$=>{H=!0,b.has($)&&(T=!0,b.delete($)),C.needsAnimating[$]=!0;const B=e.getValue($);B&&(B.liveStyle=!1)};for(const $ in U){const B=F[$],Q=P[$];if(w.hasOwnProperty($))continue;let J=!1;Pm(B)&&Pm(Q)?J=!DE(B,Q):J=B!==Q,J?B!=null?W($):b.add($):B!==void 0&&b.has($)?W($):C.protectedKeys[$]=!0}C.prevProp=M,C.prevResolvedValues=F,C.isActive&&(w={...w,...F}),l&&e.blockInitialAnimation&&(H=!1);const se=V&&_;H&&(!se||T)&&g.push(...D.map($=>{const B={type:A};if(typeof $=="string"&&l&&!se&&e.manuallyAnimateOnMount&&e.parent){const{parent:Q}=e,J=es(Q,$);if(Q.enteringChildren&&J){const{delayChildren:k}=J.transition||{};B.delay=sE(Q.enteringChildren,e,k)}}return{animation:$,options:B}}))}if(b.size){const E={};if(typeof p.initial!="boolean"){const A=es(e,Array.isArray(p.initial)?p.initial[0]:p.initial);A&&A.transition&&(E.transition=A.transition)}b.forEach(A=>{const C=e.getBaseTarget(A),M=e.getValue(A);M&&(M.liveStyle=!0),E[A]=C??null}),g.push({animation:E})}let N=!!g.length;return l&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(N=!1),l=!1,N?t(g):Promise.resolve()}function h(m,p){var g;if(s[m].isActive===p)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(b=>{var w;return(w=b.animationState)==null?void 0:w.setActive(m,p)}),s[m].isActive=p;const x=d(m);for(const b in s)s[b].protectedKeys={};return x}return{animateChanges:d,setActive:h,setAnimateFunction:c,getState:()=>s,reset:()=>{s=x7()}}}function RD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!DE(t,e):!1}function q0(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function x7(){return{animate:q0(!0),whileInView:q0(),whileHover:q0(),whileTap:q0(),whileDrag:q0(),whileFocus:q0(),exit:q0()}}function g7(e,t){e.min=t.min,e.max=t.max}function Ia(e,t){g7(e.x,t.x),g7(e.y,t.y)}function v7(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const FE=1e-4,DD=1-FE,FD=1+FE,OE=.01,OD=0-OE,zD=0+OE;function Gt(e){return e.max-e.min}function qD(e,t,s){return Math.abs(e-t)<=s}function b7(e,t,s,l=.5){e.origin=l,e.originPoint=ct(t.min,t.max,e.origin),e.scale=Gt(s)/Gt(t),e.translate=ct(s.min,s.max,e.origin)-e.originPoint,(e.scale>=DD&&e.scale<=FD||isNaN(e.scale))&&(e.scale=1),(e.translate>=OD&&e.translate<=zD||isNaN(e.translate))&&(e.translate=0)}function Zl(e,t,s,l){b7(e.x,t.x,s.x,l?l.originX:void 0),b7(e.y,t.y,s.y,l?l.originY:void 0)}function y7(e,t,s){e.min=s.min+t.min,e.max=e.min+Gt(t)}function ID(e,t,s){y7(e.x,t.x,s.x),y7(e.y,t.y,s.y)}function w7(e,t,s){e.min=t.min-s.min,e.max=e.min+Gt(t)}function to(e,t,s){w7(e.x,t.x,s.x),w7(e.y,t.y,s.y)}function A7(e,t,s,l,o){return e-=t,e=eo(e,1/s,l),o!==void 0&&(e=eo(e,1/o,l)),e}function $D(e,t=0,s=1,l=.5,o,c=e,d=e){if(ln.test(t)&&(t=parseFloat(t),t=ct(d.min,d.max,t/100)-d.min),typeof t!="number")return;let h=ct(c.min,c.max,l);e===c&&(h-=t),e.min=A7(e.min,t,s,h,o),e.max=A7(e.max,t,s,h,o)}function j7(e,t,[s,l,o],c,d){$D(e,t[s],t[l],t[o],t.scale,c,d)}const BD=["x","scaleX","originX"],PD=["y","scaleY","originY"];function N7(e,t,s,l){j7(e.x,t,BD,s?s.x:void 0,l?l.x:void 0),j7(e.y,t,PD,s?s.y:void 0,l?l.y:void 0)}function E7(e){return e.translate===0&&e.scale===1}function zE(e){return E7(e.x)&&E7(e.y)}function M7(e,t){return e.min===t.min&&e.max===t.max}function UD(e,t){return M7(e.x,t.x)&&M7(e.y,t.y)}function S7(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function qE(e,t){return S7(e.x,t.x)&&S7(e.y,t.y)}function C7(e){return Gt(e.x)/Gt(e.y)}function Z7(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function an(e){return[e("x"),e("y")]}function GD(e,t,s){let l="";const o=e.x.translate/t.x,c=e.y.translate/t.y,d=(s==null?void 0:s.z)||0;if((o||c||d)&&(l=`translate3d(${o}px, ${c}px, ${d}px) `),(t.x!==1||t.y!==1)&&(l+=`scale(${1/t.x}, ${1/t.y}) `),s){const{transformPerspective:p,rotate:x,rotateX:g,rotateY:b,skewX:w,skewY:j}=s;p&&(l=`perspective(${p}px) ${l}`),x&&(l+=`rotate(${x}deg) `),g&&(l+=`rotateX(${g}deg) `),b&&(l+=`rotateY(${b}deg) `),w&&(l+=`skewX(${w}deg) `),j&&(l+=`skewY(${j}deg) `)}const h=e.x.scale*t.x,m=e.y.scale*t.y;return(h!==1||m!==1)&&(l+=`scale(${h}, ${m})`),l||"none"}const IE=["TopLeft","TopRight","BottomLeft","BottomRight"],YD=IE.length,H7=e=>typeof e=="string"?parseFloat(e):e,_7=e=>typeof e=="number"||ge.test(e);function KD(e,t,s,l,o,c){o?(e.opacity=ct(0,s.opacity??1,XD(l)),e.opacityExit=ct(t.opacity??1,0,QD(l))):c&&(e.opacity=ct(t.opacity??1,s.opacity??1,l));for(let d=0;d<YD;d++){const h=`border${IE[d]}Radius`;let m=V7(t,h),p=V7(s,h);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||_7(m)===_7(p)?(e[h]=Math.max(ct(H7(m),H7(p),l),0),(ln.test(p)||ln.test(m))&&(e[h]+="%")):e[h]=p}(t.rotate||s.rotate)&&(e.rotate=ct(t.rotate||0,s.rotate||0,l))}function V7(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const XD=$E(0,.5,LN),QD=$E(.5,.95,Ta);function $E(e,t,s){return l=>l<e?0:l>t?1:s(Tl(e,t,l))}function JD(e,t,s){const l=$t(e)?e:as(e);return l.start(Ff("",l,t,s)),l.animation}function Dl(e,t,s,l={passive:!0}){return e.addEventListener(t,s,l),()=>e.removeEventListener(t,s)}const WD=(e,t)=>e.depth-t.depth;class eF{constructor(){this.children=[],this.isDirty=!1}add(t){jf(this.children,t),this.isDirty=!0}remove(t){K1(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(WD),this.isDirty=!1,this.children.forEach(t)}}function tF(e,t){const s=Ut.now(),l=({timestamp:o})=>{const c=o-s;c>=t&&(g0(l),e(c-t))};return tt.setup(l,!0),()=>g0(l)}function $1(e){return $t(e)?e.get():e}class aF{constructor(){this.members=[]}add(t){jf(this.members,t);for(let s=this.members.length-1;s>=0;s--){const l=this.members[s];if(l===t||l===this.lead||l===this.prevLead)continue;const o=l.instance;o&&o.isConnected===!1&&l.isPresent!==!1&&!l.snapshot&&K1(this.members,l)}t.scheduleRender()}remove(t){if(K1(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(t){const s=this.members.findIndex(o=>t===o);if(s===0)return!1;let l;for(let o=s;o>=0;o--){const c=this.members[o],d=c.instance;if(c.isPresent!==!1&&(!d||d.isConnected!==!1)){l=c;break}}return l?(this.promote(l),!0):!1}promote(t,s){const l=this.lead;if(t!==l&&(this.prevLead=l,this.lead=t,t.show(),l)){l.instance&&l.scheduleRender(),t.scheduleRender();const o=l.options.layoutDependency,c=t.options.layoutDependency;if(!(o!==void 0&&c!==void 0&&o===c)){const m=l.instance;m&&m.isConnected===!1&&!l.snapshot||(t.resumeFrom=l,s&&(t.resumeFrom.preserveOpacity=!0),l.snapshot&&(t.snapshot=l.snapshot,t.snapshot.latestValues=l.animationValues||l.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:h}=t.options;h===!1&&l.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:s,resumingFrom:l}=t;s.onExitComplete&&s.onExitComplete(),l&&l.options.onExitComplete&&l.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const B1={hasAnimatedSinceResize:!0,hasEverUpdated:!1},xu=["","X","Y","Z"],nF=1e3;let rF=0;function gu(e,t,s,l){const{latestValues:o}=t;o[e]&&(s[e]=o[e],t.setStaticValue(e,0),l&&(l[e]=0))}function BE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const s=uE(t);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:o,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",tt,!(o||c))}const{parent:l}=e;l&&!l.hasCheckedOptimisedAppear&&BE(l)}function PE({attachResizeListener:e,defaultParent:t,measureScroll:s,checkIsScrollRoot:l,resetTransform:o}){return class{constructor(d={},h=t==null?void 0:t()){this.id=rF++,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(iF),this.nodes.forEach(dF),this.nodes.forEach(hF),this.nodes.forEach(oF)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new eF)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new Ef),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const m=this.eventHandlers.get(d);m&&m.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Bf(d)&&!lD(d),this.instance=d;const{layoutId:h,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||h)&&(this.isLayoutDirty=!0),e){let x,g=0;const b=()=>this.root.updateBlockedByResize=!1;tt.read(()=>{g=window.innerWidth}),e(d,()=>{const w=window.innerWidth;w!==g&&(g=w,this.root.updateBlockedByResize=!0,x&&x(),x=tF(b,250),B1.hasAnimatedSinceResize&&(B1.hasAnimatedSinceResize=!1,this.nodes.forEach(k7)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||m)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:g,hasRelativeLayoutChanged:b,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||p.getDefaultTransition()||gF,{onLayoutAnimationStart:N,onLayoutAnimationComplete:E}=p.getProps(),A=!this.targetLayout||!qE(this.targetLayout,w),C=!g&&b;if(this.options.layoutRoot||this.resumeFrom||C||g&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const M={...Df(j,"layout"),onPlay:N,onComplete:E};(p.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M),this.setAnimationOrigin(x,C)}else g||k7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),g0(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(mF),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&BE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let x=0;x<this.path.length;x++){const g=this.path[x];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(T7);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(L7);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(uF),this.nodes.forEach(sF),this.nodes.forEach(lF)):this.nodes.forEach(L7),this.clearAllSnapshots();const h=Ut.now();zt.delta=on(0,1e3/60,h-zt.timestamp),zt.timestamp=h,zt.isProcessing=!0,ou.update.process(zt),ou.preRender.process(zt),ou.render.process(zt),zt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,If.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(cF),this.sharedNodes.forEach(fF)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Gt(this.snapshot.measuredBox.x)&&!Gt(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 m=0;m<this.path.length;m++)this.path[m].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Ct(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(h=!1),h&&this.instance){const m=l(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:m,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!o)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!zE(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,x=p!==this.prevTransformTemplateValue;d&&this.instance&&(h||I0(this.latestValues)||x)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return d&&(m=this.removeTransform(m)),vF(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:d}=this.options;if(!d)return Ct();const h=d.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(bF))){const{scroll:x}=this.root;x&&(Qr(h.x,x.offset.x),Qr(h.y,x.offset.y))}return h}removeElementScroll(d){var m;const h=Ct();if(Ia(h,d),(m=this.scroll)!=null&&m.wasRoot)return h;for(let p=0;p<this.path.length;p++){const x=this.path[p],{scroll:g,options:b}=x;x!==this.root&&g&&b.layoutScroll&&(g.wasRoot&&Ia(h,d),Qr(h.x,g.offset.x),Qr(h.y,g.offset.y))}return h}applyTransform(d,h=!1){const m=Ct();Ia(m,d);for(let p=0;p<this.path.length;p++){const x=this.path[p];!h&&x.options.layoutScroll&&x.scroll&&x!==x.root&&Jr(m,{x:-x.scroll.offset.x,y:-x.scroll.offset.y}),I0(x.latestValues)&&Jr(m,x.latestValues)}return I0(this.latestValues)&&Jr(m,this.latestValues),m}removeTransform(d){const h=Ct();Ia(h,d);for(let m=0;m<this.path.length;m++){const p=this.path[m];if(!p.instance||!I0(p.latestValues))continue;Jm(p.latestValues)&&p.updateSnapshot();const x=Ct(),g=p.measurePageBox();Ia(x,g),N7(h,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,x)}return I0(this.latestValues)&&N7(h,this.latestValues),h}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.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!==zt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var w;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(d||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:x,layoutId:g}=this.options;if(!this.layout||!(x||g))return;this.resolvedRelativeTargetAt=zt.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ct(),this.targetWithTransforms=Ct()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ID(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ia(this.target,this.layout.layoutBox),CE(this.target,this.targetDelta)):Ia(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Jm(this.parent.latestValues)||SE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,h,m){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ct(),this.relativeTargetOrigin=Ct(),to(this.relativeTargetOrigin,h,m),Ia(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var j;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let m=!0;if((this.isProjectionDirty||(j=this.parent)!=null&&j.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===zt.timestamp&&(m=!1),m)return;const{layout:p,layoutId:x}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||x))return;Ia(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,b=this.treeScale.y;gD(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Ct());const{target:w}=d;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(v7(this.prevProjectionDelta.x,this.projectionDelta.x),v7(this.prevProjectionDelta.y,this.projectionDelta.y)),Zl(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==b||!Z7(this.projectionDelta.x,this.prevProjectionDelta.x)||!Z7(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),d){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Xr(),this.projectionDelta=Xr(),this.projectionDeltaWithTransform=Xr()}setAnimationOrigin(d,h=!1){const m=this.snapshot,p=m?m.latestValues:{},x={...this.latestValues},g=Xr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const b=Ct(),w=m?m.source:void 0,j=this.layout?this.layout.source:void 0,N=w!==j,E=this.getStack(),A=!E||E.members.length<=1,C=!!(N&&!A&&this.options.crossfade===!0&&!this.path.some(xF));this.animationProgress=0;let M;this.mixTargetDelta=S=>{const L=S/1e3;R7(g.x,d.x,L),R7(g.y,d.y,L),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(to(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),pF(this.relativeTarget,this.relativeTargetOrigin,b,L),M&&UD(this.relativeTarget,M)&&(this.isProjectionDirty=!1),M||(M=Ct()),Ia(M,this.relativeTarget)),N&&(this.animationValues=x,KD(x,p,this.latestValues,L,C,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){var h,m,p;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(p=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||p.stop(),this.pendingAnimation&&(g0(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tt.update(()=>{B1.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=as(0)),this.motionValue.jump(0,!1),this.currentAnimation=JD(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:x=>{this.mixTargetDelta(x),d.onUpdate&&d.onUpdate(x)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nF),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:m,layout:p,latestValues:x}=d;if(!(!h||!m||!p)){if(this!==d&&this.layout&&p&&UE(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||Ct();const g=Gt(this.layout.layoutBox.x);m.x.min=d.target.x.min,m.x.max=m.x.min+g;const b=Gt(this.layout.layoutBox.y);m.y.min=d.target.y.min,m.y.max=m.y.min+b}Ia(h,m),Jr(h,x),Zl(this.projectionDeltaWithTransform,this.layoutCorrected,h,x)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new aF),this.sharedNodes.get(d).add(h);const p=h.options.initialPromotionConfig;h.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(h):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){var h;const{layoutId:d}=this.options;return d?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:d}=this.options;return d?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),d&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let h=!1;const{latestValues:m}=d;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const p={};m.z&&gu("z",d,p,this.animationValues);for(let x=0;x<xu.length;x++)gu(`rotate${xu[x]}`,d,p,this.animationValues),gu(`skew${xu[x]}`,d,p,this.animationValues);d.render();for(const x in p)d.setStaticValue(x,p[x]),this.animationValues&&(this.animationValues[x]=p[x]);d.scheduleRender()}applyProjectionStyles(d,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=$1(h==null?void 0:h.pointerEvents)||"",d.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=$1(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!I0(this.latestValues)&&(d.transform=m?m({},""):"none",this.hasProjected=!1);return}d.visibility="";const x=p.animationValues||p.latestValues;this.applyTransformsToTarget();let g=GD(this.projectionDeltaWithTransform,this.treeScale,x);m&&(g=m(x,g)),d.transform=g;const{x:b,y:w}=this.projectionDelta;d.transformOrigin=`${b.origin*100}% ${w.origin*100}% 0`,p.animationValues?d.opacity=p===this?x.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:d.opacity=p===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const j in ef){if(x[j]===void 0)continue;const{correct:N,applyTo:E,isCSSVariable:A}=ef[j],C=g==="none"?x[j]:N(x[j],p);if(E){const M=E.length;for(let S=0;S<M;S++)d[E[S]]=C}else A?this.options.visualElement.renderState.vars[j]=C:d[j]=C}this.options.layoutId&&(d.pointerEvents=p===this?$1(h==null?void 0:h.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>{var h;return(h=d.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(T7),this.root.sharedNodes.clear()}}}function sF(e){e.updateLayout()}function lF(e){var s;const t=((s=e.resumeFrom)==null?void 0:s.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:o}=e.layout,{animationType:c}=e.options,d=t.source!==e.layout.source;c==="size"?an(g=>{const b=d?t.measuredBox[g]:t.layoutBox[g],w=Gt(b);b.min=l[g].min,b.max=b.min+w}):UE(c,t.layoutBox,l)&&an(g=>{const b=d?t.measuredBox[g]:t.layoutBox[g],w=Gt(l[g]);b.max=b.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+w)});const h=Xr();Zl(h,l,t.layoutBox);const m=Xr();d?Zl(m,e.applyTransform(o,!0),t.measuredBox):Zl(m,l,t.layoutBox);const p=!zE(h);let x=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:b,layout:w}=g;if(b&&w){const j=Ct();to(j,t.layoutBox,b.layoutBox);const N=Ct();to(N,l,w.layoutBox),qE(j,N)||(x=!0),g.options.layoutRoot&&(e.relativeTarget=N,e.relativeTargetOrigin=j,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:l,snapshot:t,delta:m,layoutDelta:h,hasLayoutChanged:p,hasRelativeLayoutChanged:x})}else if(e.isLead()){const{onExitComplete:l}=e.options;l&&l()}e.options.transition=void 0}function iF(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function oF(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function cF(e){e.clearSnapshot()}function T7(e){e.clearMeasurements()}function L7(e){e.isLayoutDirty=!1}function uF(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function k7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function dF(e){e.resolveTargetDelta()}function hF(e){e.calcProjection()}function mF(e){e.resetSkewAndRotation()}function fF(e){e.removeLeadSnapshot()}function R7(e,t,s){e.translate=ct(t.translate,0,s),e.scale=ct(t.scale,1,s),e.origin=t.origin,e.originPoint=t.originPoint}function D7(e,t,s,l){e.min=ct(t.min,s.min,l),e.max=ct(t.max,s.max,l)}function pF(e,t,s,l){D7(e.x,t.x,s.x,l),D7(e.y,t.y,s.y,l)}function xF(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const gF={duration:.45,ease:[.4,0,.1,1]},F7=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),O7=F7("applewebkit/")&&!F7("chrome/")?Math.round:Ta;function z7(e){e.min=O7(e.min),e.max=O7(e.max)}function vF(e){z7(e.x),z7(e.y)}function UE(e,t,s){return e==="position"||e==="preserve-aspect"&&!qD(C7(t),C7(s),.2)}function bF(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const yF=PE({attachResizeListener:(e,t)=>Dl(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),vu={current:void 0},GE=PE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!vu.current){const e=new yF({});e.mount(window),e.setOptions({layoutScroll:!0}),vu.current=e}return vu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Kf=r.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function q7(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function wF(...e){return t=>{let s=!1;const l=e.map(o=>{const c=q7(o,t);return!s&&typeof c=="function"&&(s=!0),c});if(s)return()=>{for(let o=0;o<l.length;o++){const c=l[o];typeof c=="function"?c():q7(e[o],null)}}}}function AF(...e){return r.useCallback(wF(...e),e)}class jF extends r.Component{getSnapshotBeforeUpdate(t){const s=this.props.childRef.current;if(s&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const l=s.offsetParent,o=Xm(l)&&l.offsetWidth||0,c=Xm(l)&&l.offsetHeight||0,d=this.props.sizeRef.current;d.height=s.offsetHeight||0,d.width=s.offsetWidth||0,d.top=s.offsetTop,d.left=s.offsetLeft,d.right=o-d.width-d.left,d.bottom=c-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function NF({children:e,isPresent:t,anchorX:s,anchorY:l,root:o,pop:c}){var b;const d=r.useId(),h=r.useRef(null),m=r.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=r.useContext(Kf),x=((b=e.props)==null?void 0:b.ref)??(e==null?void 0:e.ref),g=AF(h,x);return r.useInsertionEffect(()=>{const{width:w,height:j,top:N,left:E,right:A,bottom:C}=m.current;if(t||c===!1||!h.current||!w||!j)return;const M=s==="left"?`left: ${E}`:`right: ${A}`,S=l==="bottom"?`bottom: ${C}`:`top: ${N}`;h.current.dataset.motionPopId=d;const L=document.createElement("style");p&&(L.nonce=p);const V=o??document.head;return V.appendChild(L),L.sheet&&L.sheet.insertRule(`
62
+ [data-motion-pop-id="${d}"] {
63
+ position: absolute !important;
64
+ width: ${w}px !important;
65
+ height: ${j}px !important;
66
+ ${M}px !important;
67
+ ${S}px !important;
68
+ }
69
+ `),()=>{V.contains(L)&&V.removeChild(L)}},[t]),a.jsx(jF,{isPresent:t,childRef:h,sizeRef:m,pop:c,children:c===!1?e:r.cloneElement(e,{ref:g})})}const EF=({children:e,initial:t,isPresent:s,onExitComplete:l,custom:o,presenceAffectsLayout:c,mode:d,anchorX:h,anchorY:m,root:p})=>{const x=Af(MF),g=r.useId();let b=!0,w=r.useMemo(()=>(b=!1,{id:g,initial:t,isPresent:s,custom:o,onExitComplete:j=>{x.set(j,!0);for(const N of x.values())if(!N)return;l&&l()},register:j=>(x.set(j,!1),()=>x.delete(j))}),[s,x,l]);return c&&b&&(w={...w}),r.useMemo(()=>{x.forEach((j,N)=>x.set(N,!1))},[s]),r.useEffect(()=>{!s&&!x.size&&l&&l()},[s]),e=a.jsx(NF,{pop:d==="popLayout",isPresent:s,anchorX:h,anchorY:m,root:p,children:e}),a.jsx(mo.Provider,{value:w,children:e})};function MF(){return new Map}function YE(e=!0){const t=r.useContext(mo);if(t===null)return[!0,null];const{isPresent:s,onExitComplete:l,register:o}=t,c=r.useId();r.useEffect(()=>{if(e)return o(c)},[e]);const d=r.useCallback(()=>e&&l&&l(c),[c,l,e]);return!s&&l?[!1,d]:[!0]}const N1=e=>e.key||"";function I7(e){const t=[];return r.Children.forEach(e,s=>{r.isValidElement(s)&&t.push(s)}),t}const la=({children:e,custom:t,initial:s=!0,onExitComplete:l,presenceAffectsLayout:o=!0,mode:c="sync",propagate:d=!1,anchorX:h="left",anchorY:m="top",root:p})=>{const[x,g]=YE(d),b=r.useMemo(()=>I7(e),[e]),w=d&&!x?[]:b.map(N1),j=r.useRef(!0),N=r.useRef(b),E=Af(()=>new Map),A=r.useRef(new Set),[C,M]=r.useState(b),[S,L]=r.useState(b);AN(()=>{j.current=!1,N.current=b;for(let H=0;H<S.length;H++){const T=N1(S[H]);w.includes(T)?(E.delete(T),A.current.delete(T)):E.get(T)!==!0&&E.set(T,!1)}},[S,w.length,w.join("-")]);const V=[];if(b!==C){let H=[...b];for(let T=0;T<S.length;T++){const D=S[T],F=N1(D);w.includes(F)||(H.splice(T,0,D),V.push(D))}return c==="wait"&&V.length&&(H=V),L(I7(H)),M(b),null}const{forceRender:_}=r.useContext(wf);return a.jsx(a.Fragment,{children:S.map(H=>{const T=N1(H),D=d&&!x?!1:b===S||w.includes(T),F=()=>{if(A.current.has(T))return;if(A.current.add(T),E.has(T))E.set(T,!0);else return;let P=!0;E.forEach(U=>{U||(P=!1)}),P&&(_==null||_(),L(N.current),d&&(g==null||g()),l&&l())};return a.jsx(EF,{isPresent:D,initial:!j.current||s?void 0:!1,custom:t,presenceAffectsLayout:o,mode:c,root:p,onExitComplete:D?void 0:F,anchorX:h,anchorY:m,children:H},T)})})},KE=r.createContext({strict:!1}),$7={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 B7=!1;function SF(){if(B7)return;const e={};for(const t in $7)e[t]={isEnabled:s=>$7[t].some(l=>!!s[l])};NE(e),B7=!0}function XE(){return SF(),mD()}function CF(e){const t=XE();for(const s in e)t[s]={...t[s],...e[s]};NE(t)}const ZF=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 ao(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ZF.has(e)}let QE=e=>!ao(e);function HF(e){typeof e=="function"&&(QE=t=>t.startsWith("on")?!ao(t):e(t))}try{HF(require("@emotion/is-prop-valid").default)}catch{}function _F(e,t,s){const l={};for(const o in e)o==="values"&&typeof e.values=="object"||(QE(o)||s===!0&&ao(o)||!t&&!ao(o)||e.draggable&&o.startsWith("onDrag"))&&(l[o]=e[o]);return l}const xo=r.createContext({});function VF(e,t){if(po(e)){const{initial:s,animate:l}=e;return{initial:s===!1||Rl(s)?s:void 0,animate:Rl(l)?l:void 0}}return e.inherit!==!1?t:{}}function TF(e){const{initial:t,animate:s}=VF(e,r.useContext(xo));return r.useMemo(()=>({initial:t,animate:s}),[P7(t),P7(s)])}function P7(e){return Array.isArray(e)?e.join(" "):e}const Xf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function JE(e,t,s){for(const l in t)!$t(t[l])&&!_E(l,s)&&(e[l]=t[l])}function LF({transformTemplate:e},t){return r.useMemo(()=>{const s=Xf();return Gf(s,t,e),Object.assign({},s.vars,s.style)},[t])}function kF(e,t){const s=e.style||{},l={};return JE(l,s,e),Object.assign(l,LF(e,t)),l}function RF(e,t){const s={},l=kF(e,t);return e.drag&&e.dragListener!==!1&&(s.draggable=!1,l.userSelect=l.WebkitUserSelect=l.WebkitTouchCallout="none",l.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=l,s}const WE=()=>({...Xf(),attrs:{}});function DF(e,t,s,l){const o=r.useMemo(()=>{const c=WE();return VE(c,t,LE(l),e.transformTemplate,e.style),{...c.attrs,style:{...c.style}}},[t]);if(e.style){const c={};JE(c,e.style,e),o.style={...c,...o.style}}return o}const FF=["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 Qf(e){return typeof e!="string"||e.includes("-")?!1:!!(FF.indexOf(e)>-1||/[A-Z]/u.test(e))}function OF(e,t,s,{latestValues:l},o,c=!1,d){const m=(d??Qf(e)?DF:RF)(t,l,o,e),p=_F(t,typeof e=="string",c),x=e!==r.Fragment?{...p,...m,ref:s}:{},{children:g}=t,b=r.useMemo(()=>$t(g)?g.get():g,[g]);return r.createElement(e,{...x,children:b})}function zF({scrapeMotionValuesFromProps:e,createRenderState:t},s,l,o){return{latestValues:qF(s,l,o,e),renderState:t()}}function qF(e,t,s,l){const o={},c=l(e,{});for(const b in c)o[b]=$1(c[b]);let{initial:d,animate:h}=e;const m=po(e),p=AE(e);t&&p&&!m&&e.inherit!==!1&&(d===void 0&&(d=t.initial),h===void 0&&(h=t.animate));let x=s?s.initial===!1:!1;x=x||d===!1;const g=x?h:d;if(g&&typeof g!="boolean"&&!fo(g)){const b=Array.isArray(g)?g:[g];for(let w=0;w<b.length;w++){const j=Of(e,b[w]);if(j){const{transitionEnd:N,transition:E,...A}=j;for(const C in A){let M=A[C];if(Array.isArray(M)){const S=x?M.length-1:0;M=M[S]}M!==null&&(o[C]=M)}for(const C in N)o[C]=N[C]}}}return o}const eM=e=>(t,s)=>{const l=r.useContext(xo),o=r.useContext(mo),c=()=>zF(e,t,l,o);return s?c():Af(c)},IF=eM({scrapeMotionValuesFromProps:Yf,createRenderState:Xf}),$F=eM({scrapeMotionValuesFromProps:kE,createRenderState:WE}),BF=Symbol.for("motionComponentSymbol");function PF(e,t,s){const l=r.useRef(s);r.useInsertionEffect(()=>{l.current=s});const o=r.useRef(null);return r.useCallback(c=>{var h;c&&((h=e.onMount)==null||h.call(e,c)),t&&(c?t.mount(c):t.unmount());const d=l.current;if(typeof d=="function")if(c){const m=d(c);typeof m=="function"&&(o.current=m)}else o.current?(o.current(),o.current=null):d(c);else d&&(d.current=c)},[t])}const tM=r.createContext({});function Ur(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function UF(e,t,s,l,o,c){var M,S;const{visualElement:d}=r.useContext(xo),h=r.useContext(KE),m=r.useContext(mo),p=r.useContext(Kf),x=p.reducedMotion,g=p.skipAnimations,b=r.useRef(null),w=r.useRef(!1);l=l||h.renderer,!b.current&&l&&(b.current=l(e,{visualState:t,parent:d,props:s,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:x,skipAnimations:g,isSVG:c}),w.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const j=b.current,N=r.useContext(tM);j&&!j.projection&&o&&(j.type==="html"||j.type==="svg")&&GF(b.current,s,o,N);const E=r.useRef(!1);r.useInsertionEffect(()=>{j&&E.current&&j.update(s,m)});const A=s[cE],C=r.useRef(!!A&&!((M=window.MotionHandoffIsComplete)!=null&&M.call(window,A))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,A)));return AN(()=>{w.current=!0,j&&(E.current=!0,window.MotionIsMounted=!0,j.updateFeatures(),j.scheduleRenderMicrotask(),C.current&&j.animationState&&j.animationState.animateChanges())}),r.useEffect(()=>{j&&(!C.current&&j.animationState&&j.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var L;(L=window.MotionHandoffMarkAsComplete)==null||L.call(window,A)}),C.current=!1),j.enteringChildren=void 0)}),j}function GF(e,t,s,l){const{layoutId:o,layout:c,drag:d,dragConstraints:h,layoutScroll:m,layoutRoot:p,layoutCrossfade:x}=t;e.projection=new s(e.latestValues,t["data-framer-portal-id"]?void 0:aM(e.parent)),e.projection.setOptions({layoutId:o,layout:c,alwaysMeasureLayout:!!d||h&&Ur(h),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:l,crossfade:x,layoutScroll:m,layoutRoot:p})}function aM(e){if(e)return e.options.allowProjection!==!1?e.projection:aM(e.parent)}function bu(e,{forwardMotionProps:t=!1,type:s}={},l,o){l&&CF(l);const c=s?s==="svg":Qf(e),d=c?$F:IF;function h(p,x){let g;const b={...r.useContext(Kf),...p,layoutId:YF(p)},{isStatic:w}=b,j=TF(p),N=d(p,w);if(!w&&wN){KF();const E=XF(b);g=E.MeasureLayout,j.visualElement=UF(e,N,b,o,E.ProjectionNode,c)}return a.jsxs(xo.Provider,{value:j,children:[g&&j.visualElement?a.jsx(g,{visualElement:j.visualElement,...b}):null,OF(e,p,PF(N,j.visualElement,x),N,w,t,c)]})}h.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const m=r.forwardRef(h);return m[BF]=e,m}function YF({layoutId:e}){const t=r.useContext(wf).id;return t&&e!==void 0?t+"-"+e:e}function KF(e,t){r.useContext(KE).strict}function XF(e){const t=XE(),{drag:s,layout:l}=t;if(!s&&!l)return{};const o={...s,...l};return{MeasureLayout:s!=null&&s.isEnabled(e)||l!=null&&l.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function QF(e,t){if(typeof Proxy>"u")return bu;const s=new Map,l=(c,d)=>bu(c,d,e,t),o=(c,d)=>l(c,d);return new Proxy(o,{get:(c,d)=>d==="create"?l:(s.has(d)||s.set(d,bu(d,void 0,e,t)),s.get(d))})}const JF=(e,t)=>t.isSVG??Qf(e)?new HD(t):new ND(t,{allowProjection:e!==r.Fragment});class WF extends b0{constructor(t){super(t),t.animationState||(t.animationState=kD(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();fo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:s}=this.node.prevProps||{};t!==s&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let eO=0;class tO extends b0{constructor(){super(...arguments),this.id=eO++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:s}=this.node.presenceContext,{isPresent:l}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===l)return;const o=this.node.animationState.setActive("exit",!t);s&&!t&&o.then(()=>{s(this.id)})}mount(){const{register:t,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const aO={animation:{Feature:WF},exit:{Feature:tO}};function Gl(e){return{point:{x:e.pageX,y:e.pageY}}}const nO=e=>t=>$f(t)&&e(t,Gl(t));function Hl(e,t,s,l){return Dl(e,t,nO(s),l)}const nM=({current:e})=>e?e.ownerDocument.defaultView:null,U7=(e,t)=>Math.abs(e-t);function rO(e,t){const s=U7(e.x,t.x),l=U7(e.y,t.y);return Math.sqrt(s**2+l**2)}const G7=new Set(["auto","scroll"]);class rM{constructor(t,s,{transformPagePoint:l,contextWindow:o=window,dragSnapToOrigin:c=!1,distanceThreshold:d=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=w=>{this.handleScroll(w.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=wu(this.lastMoveEventInfo,this.history),j=this.startEvent!==null,N=rO(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!j&&!N)return;const{point:E}=w,{timestamp:A}=zt;this.history.push({...E,timestamp:A});const{onStart:C,onMove:M}=this.handlers;j||(C&&C(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),M&&M(this.lastMoveEvent,w)},this.handlePointerMove=(w,j)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=yu(j,this.transformPagePoint),tt.update(this.updatePoint,!0)},this.handlePointerUp=(w,j)=>{this.end();const{onEnd:N,onSessionEnd:E,resumeAnimation:A}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=wu(w.type==="pointercancel"?this.lastMoveEventInfo:yu(j,this.transformPagePoint),this.history);this.startEvent&&N&&N(w,C),E&&E(w,C)},!$f(t))return;this.dragSnapToOrigin=c,this.handlers=s,this.transformPagePoint=l,this.distanceThreshold=d,this.contextWindow=o||window;const m=Gl(t),p=yu(m,this.transformPagePoint),{point:x}=p,{timestamp:g}=zt;this.history=[{...x,timestamp:g}];const{onSessionStart:b}=s;b&&b(t,wu(p,this.history)),this.removeListeners=Bl(Hl(this.contextWindow,"pointermove",this.handlePointerMove),Hl(this.contextWindow,"pointerup",this.handlePointerUp),Hl(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(t){let s=t.parentElement;for(;s;){const l=getComputedStyle(s);(G7.has(l.overflowX)||G7.has(l.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(t){const s=this.scrollPositions.get(t);if(!s)return;const l=t===window,o=l?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},c={x:o.x-s.x,y:o.y-s.y};c.x===0&&c.y===0||(l?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=c.x,this.lastMoveEventInfo.point.y+=c.y):this.history.length>0&&(this.history[0].x-=c.x,this.history[0].y-=c.y),this.scrollPositions.set(t,o),tt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),g0(this.updatePoint)}}function yu(e,t){return t?{point:t(e.point)}:e}function Y7(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wu({point:e},t){return{point:e,delta:Y7(e,sM(t)),offset:Y7(e,sO(t)),velocity:lO(t,.1)}}function sO(e){return e[0]}function sM(e){return e[e.length-1]}function lO(e,t){if(e.length<2)return{x:0,y:0};let s=e.length-1,l=null;const o=sM(e);for(;s>=0&&(l=e[s],!(o.timestamp-l.timestamp>Ba(t)));)s--;if(!l)return{x:0,y:0};l===e[0]&&e.length>2&&o.timestamp-l.timestamp>Ba(t)*2&&(l=e[1]);const c=Va(o.timestamp-l.timestamp);if(c===0)return{x:0,y:0};const d={x:(o.x-l.x)/c,y:(o.y-l.y)/c};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function iO(e,{min:t,max:s},l){return t!==void 0&&e<t?e=l?ct(t,e,l.min):Math.max(e,t):s!==void 0&&e>s&&(e=l?ct(s,e,l.max):Math.min(e,s)),e}function K7(e,t,s){return{min:t!==void 0?e.min+t:void 0,max:s!==void 0?e.max+s-(e.max-e.min):void 0}}function oO(e,{top:t,left:s,bottom:l,right:o}){return{x:K7(e.x,s,o),y:K7(e.y,t,l)}}function X7(e,t){let s=t.min-e.min,l=t.max-e.max;return t.max-t.min<e.max-e.min&&([s,l]=[l,s]),{min:s,max:l}}function cO(e,t){return{x:X7(e.x,t.x),y:X7(e.y,t.y)}}function uO(e,t){let s=.5;const l=Gt(e),o=Gt(t);return o>l?s=Tl(t.min,t.max-l,e.min):l>o&&(s=Tl(e.min,e.max-o,t.min)),on(0,1,s)}function dO(e,t){const s={};return t.min!==void 0&&(s.min=t.min-e.min),t.max!==void 0&&(s.max=t.max-e.min),s}const tf=.35;function hO(e=tf){return e===!1?e=0:e===!0&&(e=tf),{x:Q7(e,"left","right"),y:Q7(e,"top","bottom")}}function Q7(e,t,s){return{min:J7(e,t),max:J7(e,s)}}function J7(e,t){return typeof e=="number"?e:e[t]||0}const mO=new WeakMap;class fO{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ct(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:s=!1,distanceThreshold:l}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const c=g=>{s&&this.snapToCursor(Gl(g).point),this.stopAnimation()},d=(g,b)=>{const{drag:w,dragPropagation:j,onDragStart:N}=this.getProps();if(w&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$R(w),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),an(A=>{let C=this.getAxisMotionValue(A).get()||0;if(ln.test(C)){const{projection:M}=this.visualElement;if(M&&M.layout){const S=M.layout.layoutBox[A];S&&(C=Gt(S)*(parseFloat(C)/100))}}this.originPoint[A]=C}),N&&tt.update(()=>N(g,b),!1,!0),Um(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},h=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b;const{dragPropagation:w,dragDirectionLock:j,onDirectionLock:N,onDrag:E}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:A}=b;if(j&&this.currentDirection===null){this.currentDirection=xO(A),this.currentDirection!==null&&N&&N(this.currentDirection);return}this.updateAxis("x",b.point,A),this.updateAxis("y",b.point,A),this.visualElement.render(),E&&tt.update(()=>E(g,b),!1,!0)},m=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b,this.stop(g,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:g}=this.getProps();(g||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:x}=this.getProps();this.panSession=new rM(t,{onSessionStart:c,onStart:d,onMove:h,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:x,distanceThreshold:l,contextWindow:nM(this.visualElement),element:this.visualElement.current})}stop(t,s){const l=t||this.latestPointerEvent,o=s||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!o||!l)return;const{velocity:d}=o;this.startAnimation(d);const{onDragEnd:h}=this.getProps();h&&tt.postRender(()=>h(l,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:s}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:l}=this.getProps();!l&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,s,l){const{drag:o}=this.getProps();if(!l||!E1(t,o,this.currentDirection))return;const c=this.getAxisMotionValue(t);let d=this.originPoint[t]+l[t];this.constraints&&this.constraints[t]&&(d=iO(d,this.constraints[t],this.elastic[t])),c.set(d)}resolveConstraints(){var c;const{dragConstraints:t,dragElastic:s}=this.getProps(),l=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(c=this.visualElement.projection)==null?void 0:c.layout,o=this.constraints;t&&Ur(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&l?this.constraints=oO(l.layoutBox,t):this.constraints=!1,this.elastic=hO(s),o!==this.constraints&&!Ur(t)&&l&&this.constraints&&!this.hasMutatedConstraints&&an(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=dO(l.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:s}=this.getProps();if(!t||!Ur(t))return!1;const l=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=vD(l,o.root,this.visualElement.getTransformPagePoint());let d=cO(o.layout.layoutBox,c);if(s){const h=s(pD(d));this.hasMutatedConstraints=!!h,h&&(d=ME(h))}return d}startAnimation(t){const{drag:s,dragMomentum:l,dragElastic:o,dragTransition:c,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},p=an(x=>{if(!E1(x,s,this.currentDirection))return;let g=m&&m[x]||{};d&&(g={min:0,max:0});const b=o?200:1e6,w=o?40:1e7,j={type:"inertia",velocity:l?t[x]:0,bounceStiffness:b,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...c,...g};return this.startAxisValueAnimation(x,j)});return Promise.all(p).then(h)}startAxisValueAnimation(t,s){const l=this.getAxisMotionValue(t);return Um(this.visualElement,t),l.start(Ff(t,l,0,s,this.visualElement,!1))}stopAnimation(){an(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const s=`_drag${t.toUpperCase()}`,l=this.visualElement.getProps(),o=l[s];return o||this.visualElement.getValue(t,(l.initial?l.initial[t]:void 0)||0)}snapToCursor(t){an(s=>{const{drag:l}=this.getProps();if(!E1(s,l,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(s);if(o&&o.layout){const{min:d,max:h}=o.layout.layoutBox[s],m=c.get()||0;c.set(t[s]-ct(d,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:s}=this.getProps(),{projection:l}=this.visualElement;if(!Ur(s)||!l||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};an(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const m=h.get();o[d]=uO({min:m,max:m},this.constraints[d])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",l.root&&l.root.updateScroll(),l.updateLayout(),this.constraints=!1,this.resolveConstraints(),an(d=>{if(!E1(d,t,null))return;const h=this.getAxisMotionValue(d),{min:m,max:p}=this.constraints[d];h.set(ct(m,p,o[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;mO.set(this.visualElement,this);const t=this.visualElement.current,s=Hl(t,"pointerdown",p=>{const{drag:x,dragListener:g=!0}=this.getProps(),b=p.target,w=b!==t&&KR(b);x&&g&&!w&&this.start(p)});let l;const o=()=>{const{dragConstraints:p}=this.getProps();Ur(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),l||(l=pO(t,p.current,()=>this.scalePositionWithinConstraints())))},{projection:c}=this.visualElement,d=c.addEventListener("measure",o);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),tt.read(o);const h=Dl(window,"resize",()=>this.scalePositionWithinConstraints()),m=c.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:x})=>{this.isDragging&&x&&(an(g=>{const b=this.getAxisMotionValue(g);b&&(this.originPoint[g]+=p[g].translate,b.set(b.get()+p[g].translate))}),this.visualElement.render())}));return()=>{h(),s(),d(),m&&m(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:l=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:d=tf,dragMomentum:h=!0}=t;return{...t,drag:s,dragDirectionLock:l,dragPropagation:o,dragConstraints:c,dragElastic:d,dragMomentum:h}}}function W7(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function pO(e,t,s){const l=l7(e,W7(s)),o=l7(t,W7(s));return()=>{l(),o()}}function E1(e,t,s){return(t===!0||t===e)&&(s===null||s===e)}function xO(e,t=10){let s=null;return Math.abs(e.y)>t?s="y":Math.abs(e.x)>t&&(s="x"),s}class gO extends b0{constructor(t){super(t),this.removeGroupControls=Ta,this.removeListeners=Ta,this.controls=new fO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ta}update(){const{dragControls:t}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};t!==s&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Au=e=>(t,s)=>{e&&tt.update(()=>e(t,s),!1,!0)};class vO extends b0{constructor(){super(...arguments),this.removePointerDownListener=Ta}onPointerDown(t){this.session=new rM(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nM(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:s,onPan:l,onPanEnd:o}=this.node.getProps();return{onSessionStart:Au(t),onStart:Au(s),onMove:Au(l),onEnd:(c,d)=>{delete this.session,o&&tt.postRender(()=>o(c,d))}}}mount(){this.removePointerDownListener=Hl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ju=!1;class bO extends r.Component{componentDidMount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:l,layoutId:o}=this.props,{projection:c}=t;c&&(s.group&&s.group.add(c),l&&l.register&&o&&l.register(c),ju&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),B1.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:s,visualElement:l,drag:o,isPresent:c}=this.props,{projection:d}=l;return d&&(d.isPresent=c,t.layoutDependency!==s&&d.setOptions({...d.options,layoutDependency:s}),ju=!0,o||t.layoutDependency!==s||s===void 0||t.isPresent!==c?d.willUpdate():this.safeToRemove(),t.isPresent!==c&&(c?d.promote():d.relegate()||tt.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),If.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:l}=this.props,{projection:o}=t;ju=!0,o&&(o.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(o),l&&l.deregister&&l.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function lM(e){const[t,s]=YE(),l=r.useContext(wf);return a.jsx(bO,{...e,layoutGroup:l,switchLayoutGroup:r.useContext(tM),isPresent:t,safeToRemove:s})}const yO={pan:{Feature:vO},drag:{Feature:gO,ProjectionNode:GE,MeasureLayout:lM}};function e9(e,t,s){const{props:l}=e;e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",s==="Start");const o="onHover"+s,c=l[o];c&&tt.postRender(()=>c(t,Gl(t)))}class wO extends b0{mount(){const{current:t}=this.node;t&&(this.unmount=PR(t,(s,l)=>(e9(this.node,l,"Start"),o=>e9(this.node,o,"End"))))}unmount(){}}class AO extends b0{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Bl(Dl(this.node.current,"focus",()=>this.onFocus()),Dl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function t9(e,t,s){const{props:l}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&l.whileTap&&e.animationState.setActive("whileTap",s==="Start");const o="onTap"+(s==="End"?"":s),c=l[o];c&&tt.postRender(()=>c(t,Gl(t)))}class jO extends b0{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:s,propagate:l}=this.node.props;this.unmount=QR(t,(o,c)=>(t9(this.node,c,"Start"),(d,{success:h})=>t9(this.node,d,h?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:(l==null?void 0:l.tap)===!1})}unmount(){}}const af=new WeakMap,Nu=new WeakMap,NO=e=>{const t=af.get(e.target);t&&t(e)},EO=e=>{e.forEach(NO)};function MO({root:e,...t}){const s=e||document;Nu.has(s)||Nu.set(s,{});const l=Nu.get(s),o=JSON.stringify(t);return l[o]||(l[o]=new IntersectionObserver(EO,{root:e,...t})),l[o]}function SO(e,t,s){const l=MO(t);return af.set(e,s),l.observe(e),()=>{af.delete(e),l.unobserve(e)}}const CO={some:0,all:1};class ZO extends b0{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:s,margin:l,amount:o="some",once:c}=t,d={root:s?s.current:void 0,rootMargin:l,threshold:typeof o=="number"?o:CO[o]},h=m=>{const{isIntersecting:p}=m;if(this.isInView===p||(this.isInView=p,c&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:x,onViewportLeave:g}=this.node.getProps(),b=p?x:g;b&&b(m)};return SO(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:s}=this.node;["amount","margin","root"].some(HO(t,s))&&this.startObserver()}unmount(){}}function HO({viewport:e={}},{viewport:t={}}={}){return s=>e[s]!==t[s]}const _O={inView:{Feature:ZO},tap:{Feature:jO},focus:{Feature:AO},hover:{Feature:wO}},VO={layout:{ProjectionNode:GE,MeasureLayout:lM}},TO={...aO,..._O,...yO,...VO},He=QF(TO,JF),LO=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),kO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232.49,160.49l-48,48a12,12,0,0,1-17-17L195,164H128A108.12,108.12,0,0,1,20,56a12,12,0,0,1,24,0,84.09,84.09,0,0,0,84,84h67l-27.52-27.51a12,12,0,0,1,17-17l48,48A12,12,0,0,1,232.49,160.49Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,152l-48,48V104Z",opacity:"0.2"}),r.createElement("path",{d:"M229.66,146.34l-48-48A8,8,0,0,0,168,104v40H128A88.1,88.1,0,0,1,40,56a8,8,0,0,0-16,0A104.11,104.11,0,0,0,128,160h40v40a8,8,0,0,0,13.66,5.66l48-48A8,8,0,0,0,229.66,146.34ZM184,180.69V123.31L212.69,152Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.66,157.66l-48,48A8,8,0,0,1,168,200V160H128A104.11,104.11,0,0,1,24,56a8,8,0,0,1,16,0,88.1,88.1,0,0,0,88,88h40V104a8,8,0,0,1,13.66-5.66l48,48A8,8,0,0,1,229.66,157.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228.24,156.24l-48,48a6,6,0,0,1-8.48-8.48L209.51,158H128A102.12,102.12,0,0,1,26,56a6,6,0,0,1,12,0,90.1,90.1,0,0,0,90,90h81.51l-37.75-37.76a6,6,0,0,1,8.48-8.48l48,48A6,6,0,0,1,228.24,156.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.66,157.66l-48,48a8,8,0,0,1-11.32-11.32L204.69,160H128A104.11,104.11,0,0,1,24,56a8,8,0,0,1,16,0,88.1,88.1,0,0,0,88,88h76.69l-34.35-34.34a8,8,0,0,1,11.32-11.32l48,48A8,8,0,0,1,229.66,157.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M226.83,154.83l-48,48a4,4,0,0,1-5.66-5.66L214.34,156H128A100.11,100.11,0,0,1,28,56a4,4,0,0,1,8,0,92.1,92.1,0,0,0,92,92h86.34l-41.17-41.17a4,4,0,0,1,5.66-5.66l48,48A4,4,0,0,1,226.83,154.83Z"}))]]),RO=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),DO=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),FO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128l-72,72V56Z",opacity:"0.2"}),r.createElement("path",{d:"M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z"}))]]),OO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,64V168L88,64Z",opacity:"0.2"}),r.createElement("path",{d:"M192,56H88a8,8,0,0,0-5.66,13.66L128.69,116,58.34,186.34a8,8,0,0,0,11.32,11.32L140,127.31l46.34,46.35A8,8,0,0,0,200,168V64A8,8,0,0,0,192,56Zm-8,92.69-38.34-38.34h0L107.31,72H184Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,64V168a8,8,0,0,1-13.66,5.66L140,127.31,69.66,197.66a8,8,0,0,1-11.32-11.32L128.69,116,82.34,69.66A8,8,0,0,1,88,56H192A8,8,0,0,1,200,64Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M196,64V168a4,4,0,0,1-8,0V73.66L66.83,194.83a4,4,0,0,1-5.66-5.66L182.34,68H88a4,4,0,0,1,0-8H192A4,4,0,0,1,196,64Z"}))]]),zO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),r.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z"}))]]),qO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.49,184.49l-32,32a12,12,0,0,1-17-17L179,188H48a12,12,0,0,1,0-24H179l-11.52-11.51a12,12,0,0,1,17-17l32,32A12,12,0,0,1,216.49,184.49Zm-145-64a12,12,0,0,0,17-17L77,92H208a12,12,0,0,0,0-24H77L88.49,56.49a12,12,0,0,0-17-17l-32,32a12,12,0,0,0,0,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,80v96H48V80Z",opacity:"0.2"}),r.createElement("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M42.34,85.66a8,8,0,0,1,0-11.32l32-32A8,8,0,0,1,88,48V72H208a8,8,0,0,1,0,16H88v24a8,8,0,0,1-13.66,5.66Zm171.32,84.68-32-32A8,8,0,0,0,168,144v24H48a8,8,0,0,0,0,16H168v24a8,8,0,0,0,13.66,5.66l32-32A8,8,0,0,0,213.66,170.34Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48-8.48L193.51,182H48a6,6,0,0,1,0-12H193.51l-21.75-21.76a6,6,0,0,1,8.48-8.48ZM75.76,116.24a6,6,0,0,0,8.48-8.48L62.49,86H208a6,6,0,0,0,0-12H62.49L84.24,52.24a6,6,0,0,0-8.48-8.48l-32,32a6,6,0,0,0,0,8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M210.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66-5.66L198.34,180H48a4,4,0,0,1,0-8H198.34l-25.17-25.17a4,4,0,0,1,5.66-5.66ZM77.17,114.83a4,4,0,0,0,5.66-5.66L57.66,84H208a4,4,0,0,0,0-8H57.66L82.83,50.83a4,4,0,0,0-5.66-5.66l-32,32a4,4,0,0,0,0,5.66Z"}))]]),IO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M225.81,74.65A11.86,11.86,0,0,1,220.3,76a12,12,0,0,1-10.67-6.47,90.1,90.1,0,0,0-32-35.38,12,12,0,1,1,12.8-20.29,115.25,115.25,0,0,1,40.54,44.62A12,12,0,0,1,225.81,74.65ZM46.37,69.53a90.1,90.1,0,0,1,32-35.38A12,12,0,1,0,65.6,13.86,115.25,115.25,0,0,0,25.06,58.48a12,12,0,0,0,5.13,16.17A11.86,11.86,0,0,0,35.7,76,12,12,0,0,0,46.37,69.53Zm173.51,98.35A20,20,0,0,1,204,200H171.81a44,44,0,0,1-87.62,0H52a20,20,0,0,1-15.91-32.12c7.17-9.33,15.73-26.62,15.88-55.94A76,76,0,0,1,204,112C204.15,141.26,212.71,158.55,219.88,167.88ZM147.6,200H108.4a20,20,0,0,0,39.2,0Zm48.74-24c-8.16-13-16.19-33.57-16.34-63.94A52,52,0,1,0,76,112c-.15,30.42-8.18,51-16.34,64Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,192H48a8,8,0,0,1-6.88-12C47.71,168.6,56,147.81,56,112a72,72,0,0,1,144,0c0,35.82,8.3,56.6,14.9,68A8,8,0,0,1,208,192Z",opacity:"0.2"}),r.createElement("path",{d:"M224,71.1a8,8,0,0,1-10.78-3.42,94.13,94.13,0,0,0-33.46-36.91,8,8,0,1,1,8.54-13.54,111.46,111.46,0,0,1,39.12,43.09A8,8,0,0,1,224,71.1ZM35.71,72a8,8,0,0,0,7.1-4.32A94.13,94.13,0,0,1,76.27,30.77a8,8,0,1,0-8.54-13.54A111.46,111.46,0,0,0,28.61,60.32,8,8,0,0,0,35.71,72Zm186.1,103.94A16,16,0,0,1,208,200H167.2a40,40,0,0,1-78.4,0H48a16,16,0,0,1-13.79-24.06C43.22,160.39,48,138.28,48,112a80,80,0,0,1,160,0C208,138.27,212.78,160.38,221.81,175.94ZM150.62,200H105.38a24,24,0,0,0,45.24,0ZM208,184c-10.64-18.27-16-42.49-16-72a64,64,0,0,0-128,0c0,29.52-5.38,53.74-16,72Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,71.1a8,8,0,0,1-10.78-3.42,94.13,94.13,0,0,0-33.46-36.91,8,8,0,1,1,8.54-13.54,111.46,111.46,0,0,1,39.12,43.09A8,8,0,0,1,224,71.1ZM35.71,72a8,8,0,0,0,7.1-4.32A94.13,94.13,0,0,1,76.27,30.77a8,8,0,1,0-8.54-13.54A111.46,111.46,0,0,0,28.61,60.32,8,8,0,0,0,35.71,72Zm186.1,103.94A16,16,0,0,1,208,200H167.2a40,40,0,0,1-78.4,0H48a16,16,0,0,1-13.79-24.06C43.22,160.39,48,138.28,48,112a80,80,0,0,1,160,0C208,138.27,212.78,160.38,221.81,175.94ZM150.62,200H105.38a24,24,0,0,0,45.24,0Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M223.05,69.33A6,6,0,0,1,215,66.76,96,96,0,0,0,180.8,29.08a6,6,0,0,1,6.4-10.15,109.26,109.26,0,0,1,38.41,42.31A6,6,0,0,1,223.05,69.33ZM41,66.76A96,96,0,0,1,75.2,29.08a6,6,0,0,0-6.4-10.15A109.26,109.26,0,0,0,30.39,61.24,6,6,0,1,0,41,66.76Zm179,110.18A14,14,0,0,1,208,198h-42.5a38,38,0,0,1-75,0H48a14,14,0,0,1-12.06-21.06C45.13,161.09,50,138.63,50,112a78,78,0,0,1,156,0C206,139,210.74,160.86,220.08,176.94ZM153.29,198H102.71a26,26,0,0,0,50.58,0Zm56.42-15C199.29,165,194,141.15,194,112a66,66,0,0,0-132,0c0,29.16-5.29,53-15.71,71a2,2,0,0,0,0,2,1.9,1.9,0,0,0,1.7,1H208a1.9,1.9,0,0,0,1.7-1A2,2,0,0,0,209.71,183Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,71.1a8,8,0,0,1-10.78-3.42,94.13,94.13,0,0,0-33.46-36.91,8,8,0,1,1,8.54-13.54,111.46,111.46,0,0,1,39.12,43.09A8,8,0,0,1,224,71.1ZM35.71,72a8,8,0,0,0,7.1-4.32A94.13,94.13,0,0,1,76.27,30.77a8,8,0,1,0-8.54-13.54A111.46,111.46,0,0,0,28.61,60.32,8,8,0,0,0,35.71,72Zm186.1,103.94A16,16,0,0,1,208,200H167.2a40,40,0,0,1-78.4,0H48a16,16,0,0,1-13.79-24.06C43.22,160.39,48,138.28,48,112a80,80,0,0,1,160,0C208,138.27,212.78,160.38,221.81,175.94ZM150.62,200H105.38a24,24,0,0,0,45.24,0ZM208,184c-10.64-18.27-16-42.49-16-72a64,64,0,0,0-128,0c0,29.52-5.38,53.74-16,72Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222.13,67.55a3.94,3.94,0,0,1-1.84.45,4,4,0,0,1-3.55-2.16,99.41,99.41,0,0,0-34.87-38.46,4,4,0,1,1,4.26-6.76,107.34,107.34,0,0,1,37.71,41.54A4,4,0,0,1,222.13,67.55ZM39.26,65.84A99.41,99.41,0,0,1,74.13,27.38a4,4,0,0,0-4.26-6.76A107.34,107.34,0,0,0,32.16,62.16a4,4,0,0,0,1.71,5.39,3.94,3.94,0,0,0,1.84.45A4,4,0,0,0,39.26,65.84ZM218.36,178A12,12,0,0,1,208,196H163.77a36,36,0,0,1-71.54,0H48A12,12,0,0,1,37.64,178C47.17,161.56,52,139.37,52,112a76,76,0,0,1,152,0C204,139.36,208.83,161.55,218.36,178ZM155.71,196H100.29a28,28,0,0,0,55.42,0Zm55.73-14C201.19,164.34,196,140.79,196,112a68,68,0,0,0-136,0c0,28.8-5.19,52.34-15.44,70a4,4,0,0,0,0,4A3.89,3.89,0,0,0,48,188H208a3.89,3.89,0,0,0,3.43-2A4,4,0,0,0,211.44,182Z"}))]]),$O=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,44H160a43.86,43.86,0,0,0-32,13.85A43.86,43.86,0,0,0,96,44H24A12,12,0,0,0,12,56V200a12,12,0,0,0,12,12H96a20,20,0,0,1,20,20,12,12,0,0,0,24,0,20,20,0,0,1,20-20h72a12,12,0,0,0,12-12V56A12,12,0,0,0,232,44ZM96,188H36V68H96a20,20,0,0,1,20,20V192.81A43.79,43.79,0,0,0,96,188Zm124,0H160a43.71,43.71,0,0,0-20,4.83V88a20,20,0,0,1,20-20h60Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,56V200H160a32,32,0,0,0-32,32,32,32,0,0,0-32-32H24V56H96a32,32,0,0,1,32,32,32,32,0,0,1,32-32Z",opacity:"0.2"}),r.createElement("path",{d:"M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,56V200a8,8,0,0,1-8,8H160a24,24,0,0,0-24,23.94,7.9,7.9,0,0,1-5.12,7.55A8,8,0,0,1,120,232a24,24,0,0,0-24-24H24a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H88a32,32,0,0,1,32,32v87.73a8.17,8.17,0,0,0,7.47,8.25,8,8,0,0,0,8.53-8V80a32,32,0,0,1,32-32h64A8,8,0,0,1,240,56Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,50H160a38,38,0,0,0-32,17.55A38,38,0,0,0,96,50H24a6,6,0,0,0-6,6V200a6,6,0,0,0,6,6H96a26,26,0,0,1,26,26,6,6,0,0,0,12,0,26,26,0,0,1,26-26h72a6,6,0,0,0,6-6V56A6,6,0,0,0,232,50ZM96,194H30V62H96a26,26,0,0,1,26,26V204.31A37.86,37.86,0,0,0,96,194Zm130,0H160a37.87,37.87,0,0,0-26,10.32V88a26,26,0,0,1,26-26h66Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,52H160a36,36,0,0,0-32,19.54A36,36,0,0,0,96,52H24a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H96a28,28,0,0,1,28,28,4,4,0,0,0,8,0,28,28,0,0,1,28-28h72a4,4,0,0,0,4-4V56A4,4,0,0,0,232,52ZM96,196H28V60H96a28,28,0,0,1,28,28V209.4A35.93,35.93,0,0,0,96,196Zm132,0H160a35.94,35.94,0,0,0-28,13.41V88a28,28,0,0,1,28-28h68Z"}))]]),BO=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),PO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,24V84H44V60ZM44,196V108H212v88Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,56V96H32V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"}),r.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,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"}))],["fill",r.createElement(r.Fragment,null,r.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,40Zm0,16V88H40V56Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V90H38V56A2,2,0,0,1,40,54ZM216,202H40a2,2,0,0,1-2-2V102H218v98A2,2,0,0,1,216,202Z"}))],["regular",r.createElement(r.Fragment,null,r.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,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V92H36V56A4,4,0,0,1,40,52ZM216,204H40a4,4,0,0,1-4-4V100H220V200A4,4,0,0,1,216,204Z"}))]]),UO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,204H228V96a20,20,0,0,0-20-20H172V32a20,20,0,0,0-28.45-18.12l-104,48.54A20.06,20.06,0,0,0,28,80.55V204H16a12,12,0,0,0,0,24H240a12,12,0,0,0,0-24ZM204,100V204H172V100ZM52,83.09,148,38.3V204H52ZM132,112v12a12,12,0,0,1-24,0V112a12,12,0,0,1,24,0Zm-40,0v12a12,12,0,0,1-24,0V112a12,12,0,0,1,24,0Zm0,52v12a12,12,0,0,1-24,0V164a12,12,0,0,1,24,0Zm40,0v12a12,12,0,0,1-24,0V164a12,12,0,0,1,24,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M136,32V216H40V85.35a8,8,0,0,1,3.56-6.66l80-53.33A8,8,0,0,1,136,32Z",opacity:"0.2"}),r.createElement("path",{d:"M240,208H224V96a16,16,0,0,0-16-16H144V32a16,16,0,0,0-24.88-13.32L39.12,72A16,16,0,0,0,32,85.34V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM208,96V208H144V96ZM48,85.34,128,32V208H48ZM112,112v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm-32,0v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm0,56v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Zm32,0v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M239.73,208H224V96a16,16,0,0,0-16-16H164a4,4,0,0,0-4,4V208H144V32.41a16.43,16.43,0,0,0-6.16-13,16,16,0,0,0-18.72-.69L39.12,72A16,16,0,0,0,32,85.34V208H16.27A8.18,8.18,0,0,0,8,215.47,8,8,0,0,0,16,224H240a8,8,0,0,0,8-8.53A8.18,8.18,0,0,0,239.73,208ZM76,184a8,8,0,0,1-8.53,8A8.18,8.18,0,0,1,60,183.72V168.27A8.19,8.19,0,0,1,67.47,160,8,8,0,0,1,76,168Zm0-56a8,8,0,0,1-8.53,8A8.19,8.19,0,0,1,60,127.72V112.27A8.19,8.19,0,0,1,67.47,104,8,8,0,0,1,76,112Zm40,56a8,8,0,0,1-8.53,8,8.18,8.18,0,0,1-7.47-8.26V168.27a8.19,8.19,0,0,1,7.47-8.26,8,8,0,0,1,8.53,8Zm0-56a8,8,0,0,1-8.53,8,8.19,8.19,0,0,1-7.47-8.26V112.27a8.19,8.19,0,0,1,7.47-8.26,8,8,0,0,1,8.53,8Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,210H222V96a14,14,0,0,0-14-14H142V32a14,14,0,0,0-21.77-11.64l-80,53.33A14,14,0,0,0,34,85.34V210H16a6,6,0,0,0,0,12H240a6,6,0,0,0,0-12ZM208,94a2,2,0,0,1,2,2V210H142V94ZM46,85.34a2,2,0,0,1,.89-1.66l80-53.34A2,2,0,0,1,130,32V210H46ZM110,112v16a6,6,0,0,1-12,0V112a6,6,0,0,1,12,0Zm-32,0v16a6,6,0,0,1-12,0V112a6,6,0,0,1,12,0Zm0,56v16a6,6,0,0,1-12,0V168a6,6,0,0,1,12,0Zm32,0v16a6,6,0,0,1-12,0V168a6,6,0,0,1,12,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,208H224V96a16,16,0,0,0-16-16H144V32a16,16,0,0,0-24.88-13.32L39.12,72A16,16,0,0,0,32,85.34V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM208,96V208H144V96ZM48,85.34,128,32V208H48ZM112,112v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm-32,0v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm0,56v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Zm32,0v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,212H220V96a12,12,0,0,0-12-12H140V32a12,12,0,0,0-18.66-10l-80,53.33a12,12,0,0,0-5.34,10V212H16a4,4,0,0,0,0,8H240a4,4,0,0,0,0-8ZM208,92a4,4,0,0,1,4,4V212H140V92ZM44,85.34A4,4,0,0,1,45.78,82l80-53.33A4,4,0,0,1,132,32V212H44ZM108,112v16a4,4,0,0,1-8,0V112a4,4,0,0,1,8,0Zm-32,0v16a4,4,0,0,1-8,0V112a4,4,0,0,1,8,0Zm0,56v16a4,4,0,0,1-8,0V168a4,4,0,0,1,8,0Zm32,0v16a4,4,0,0,1-8,0V168a4,4,0,0,1,8,0Z"}))]]),GO=new Map([["bold",r.createElement(r.Fragment,null,r.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,204V100H204V204Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),r.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,208H48V96H208V208Z"}))],["fill",r.createElement(r.Fragment,null,r.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,32Zm0,48H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z"}))],["light",r.createElement(r.Fragment,null,r.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,210Z"}))],["regular",r.createElement(r.Fragment,null,r.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,208H48V96H208V208Z"}))],["thin",r.createElement(r.Fragment,null,r.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,212Z"}))]]),YO=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),KO=new Map([["bold",r.createElement(r.Fragment,null,r.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,204V100H204V204Zm120.49-84.49a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-24-24a12,12,0,0,1,17-17L116,159l39.51-39.52A12,12,0,0,1,172.49,119.51Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),r.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-38.34-85.66a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L116,164.69l42.34-42.35A8,8,0,0,1,169.66,122.34Z"}))],["fill",r.createElement(r.Fragment,null,r.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,32ZM169.66,133.66l-48,48a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L116,164.69l42.34-42.35a8,8,0,0,1,11.32,11.32ZM48,80V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80Z"}))],["light",r.createElement(r.Fragment,null,r.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-39.76-86.24a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L116,167.51l43.76-43.75A6,6,0,0,1,168.24,123.76Z"}))],["regular",r.createElement(r.Fragment,null,r.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-38.34-85.66a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L116,164.69l42.34-42.35A8,8,0,0,1,169.66,122.34Z"}))],["thin",r.createElement(r.Fragment,null,r.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,212Zm-41.17-86.83a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L116,170.34l45.17-45.17A4,4,0,0,1,166.83,125.17Z"}))]]),XO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,52H182.42L170,33.34A12,12,0,0,0,160,28H96a12,12,0,0,0-10,5.34L73.57,52H48A28,28,0,0,0,20,80V192a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V80A28,28,0,0,0,208,52Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H80a12,12,0,0,0,10-5.34L102.42,52h51.15L166,70.66A12,12,0,0,0,176,76h32a4,4,0,0,1,4,4ZM128,84a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,84Zm0,72a24,24,0,1,1,24-24A24,24,0,0,1,128,156Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,64H176L160,40H96L80,64H48A16,16,0,0,0,32,80V192a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V80A16,16,0,0,0,208,64ZM128,168a36,36,0,1,1,36-36A36,36,0,0,1,128,168Z",opacity:"0.2"}),r.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm-44,76a36,36,0,1,1-36-36A36,36,0,0,1,164,132Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,58H179.21L165,36.67A6,6,0,0,0,160,34H96a6,6,0,0,0-5,2.67L76.78,58H48A22,22,0,0,0,26,80V192a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V80A22,22,0,0,0,208,58Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V80A10,10,0,0,1,48,70H80a6,6,0,0,0,5-2.67L99.21,46h57.57L171,67.33A6,6,0,0,0,176,70h32a10,10,0,0,1,10,10ZM128,90a42,42,0,1,0,42,42A42,42,0,0,0,128,90Zm0,72a30,30,0,1,1,30-30A30,30,0,0,1,128,162Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,60H178.13L163.32,37.78A4,4,0,0,0,160,36H96a4,4,0,0,0-3.32,1.78L77.85,60H48A20,20,0,0,0,28,80V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V80A20,20,0,0,0,208,60Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V80A12,12,0,0,1,48,68H80a4,4,0,0,0,3.33-1.78L98.13,44h59.72l14.82,22.22A4,4,0,0,0,176,68h32a12,12,0,0,1,12,12ZM128,92a40,40,0,1,0,40,40A40,40,0,0,0,128,92Zm0,72a32,32,0,1,1,32-32A32,32,0,0,1,128,164Z"}))]]),QO=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),JO=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),WO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,160H48l80-80Z",opacity:"0.2"}),r.createElement("path",{d:"M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z"}))]]),ez=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,196h-4V40a12,12,0,0,0-12-12H152a12,12,0,0,0-12,12V76H96A12,12,0,0,0,84,88v36H48a12,12,0,0,0-12,12v60H32a12,12,0,0,0,0,24H224a12,12,0,0,0,0-24ZM164,52h32V196H164Zm-56,48h32v96H108ZM60,148H84v48H60Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,40V208H152V40Z",opacity:"0.2"}),r.createElement("path",{d:"M224,200h-8V40a8,8,0,0,0-8-8H152a8,8,0,0,0-8,8V80H96a8,8,0,0,0-8,8v40H48a8,8,0,0,0-8,8v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16ZM160,48h40V200H160ZM104,96h40V200H104ZM56,144H88v56H56Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1,0-16h8V136a8,8,0,0,1,8-8H72a8,8,0,0,1,8,8v64H96V88a8,8,0,0,1,8-8h32a8,8,0,0,1,8,8V200h16V40a8,8,0,0,1,8-8h40a8,8,0,0,1,8,8V200h8A8,8,0,0,1,232,208Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,202H214V40a6,6,0,0,0-6-6H152a6,6,0,0,0-6,6V82H96a6,6,0,0,0-6,6v42H48a6,6,0,0,0-6,6v66H32a6,6,0,0,0,0,12H224a6,6,0,0,0,0-12ZM158,46h44V202H158ZM102,94h44V202H102ZM54,142H90v60H54Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,200h-8V40a8,8,0,0,0-8-8H152a8,8,0,0,0-8,8V80H96a8,8,0,0,0-8,8v40H48a8,8,0,0,0-8,8v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16ZM160,48h40V200H160ZM104,96h40V200H104ZM56,144H88v56H56Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,204H212V40a4,4,0,0,0-4-4H152a4,4,0,0,0-4,4V84H96a4,4,0,0,0-4,4v44H48a4,4,0,0,0-4,4v68H32a4,4,0,0,0,0,8H224a4,4,0,0,0,0-8ZM156,44h48V204H156ZM100,92h48V204H100ZM52,140H92v64H52Z"}))]]),tz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,208a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V48a12,12,0,0,1,24,0v85.55L88.1,95a12,12,0,0,1,15.1-.57l56.22,42.16L216.1,87A12,12,0,1,1,231.9,105l-64,56a12,12,0,0,1-15.1.57L96.58,119.44,44,165.45V196H224A12,12,0,0,1,236,208Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,64V208H32V48H208A16,16,0,0,1,224,64Z",opacity:"0.2"}),r.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0v94.37L90.73,98a8,8,0,0,1,10.07-.38l58.81,44.11L218.73,90a8,8,0,1,1,10.54,12l-64,56a8,8,0,0,1-10.07.38L96.39,114.29,40,163.63V200H224A8,8,0,0,1,232,208Z"}))],["fill",r.createElement(r.Fragment,null,r.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,40ZM200,176a8,8,0,0,1,0,16H56a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v62.92l34.88-29.07a8,8,0,0,1,9.56-.51l43,28.69,43.41-36.18a8,8,0,0,1,10.24,12.3l-48,40a8,8,0,0,1-9.56.51l-43-28.69L64,155.75V176Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230,208a6,6,0,0,1-6,6H32a6,6,0,0,1-6-6V48a6,6,0,0,1,12,0v98.78l54.05-47.3a6,6,0,0,1,7.55-.28l60.11,45.08,60.34-52.8a6,6,0,0,1,7.9,9l-64,56a6,6,0,0,1-7.55.28L96.29,111.72,38,162.72V202H224A6,6,0,0,1,230,208Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0v94.37L90.73,98a8,8,0,0,1,10.07-.38l58.81,44.11L218.73,90a8,8,0,1,1,10.54,12l-64,56a8,8,0,0,1-10.07.38L96.39,114.29,40,163.63V200H224A8,8,0,0,1,232,208Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,208a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V48a4,4,0,0,1,8,0V151.19L93.37,101a4,4,0,0,1,5-.19l61.41,46.05L221.37,93a4,4,0,0,1,5.26,6l-64,56a4,4,0,0,1-5,.19l-61.41-46L36,161.81V204H224A4,4,0,0,1,228,208Z"}))]]),az=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,208a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V48a12,12,0,0,1,24,0v99l43.51-43.52a12,12,0,0,1,17,0L128,127l43-43H160a12,12,0,0,1,0-24h40a12,12,0,0,1,12,12v40a12,12,0,0,1-24,0V101l-51.51,51.52a12,12,0,0,1-17,0L96,129,44,181v15H224A12,12,0,0,1,236,208Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,64V208H32V48H208A16,16,0,0,1,224,64Z",opacity:"0.2"}),r.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0V156.69l50.34-50.35a8,8,0,0,1,11.32,0L128,132.69,180.69,80H160a8,8,0,0,1,0-16h40a8,8,0,0,1,8,8v40a8,8,0,0,1-16,0V91.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31l-56,56V200H224A8,8,0,0,1,232,208Z"}))],["fill",r.createElement(r.Fragment,null,r.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,40ZM200,192H56a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v76.69l34.34-34.35a8,8,0,0,1,11.32,0L128,132.69,172.69,88H144a8,8,0,0,1,0-16h48a8,8,0,0,1,8,8v48a8,8,0,0,1-16,0V99.31l-50.34,50.35a8,8,0,0,1-11.32,0L104,131.31l-40,40V176H200a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230,208a6,6,0,0,1-6,6H32a6,6,0,0,1-6-6V48a6,6,0,0,1,12,0V161.52l53.76-53.76a6,6,0,0,1,8.48,0L128,135.51,185.52,78H160a6,6,0,0,1,0-12h40a6,6,0,0,1,6,6v40a6,6,0,0,1-12,0V86.48l-61.76,61.76a6,6,0,0,1-8.48,0L96,120.49l-58,58V202H224A6,6,0,0,1,230,208Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0V156.69l50.34-50.35a8,8,0,0,1,11.32,0L128,132.69,180.69,80H160a8,8,0,0,1,0-16h40a8,8,0,0,1,8,8v40a8,8,0,0,1-16,0V91.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31l-56,56V200H224A8,8,0,0,1,232,208Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,208a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V48a4,4,0,0,1,8,0V166.34l57.17-57.17a4,4,0,0,1,5.66,0L128,138.34,190.34,76H160a4,4,0,0,1,0-8h40a4,4,0,0,1,4,4v40a4,4,0,0,1-8,0V81.66l-65.17,65.17a4,4,0,0,1-5.66,0L96,117.66l-60,60V204H224A4,4,0,0,1,228,208Z"}))]]),nz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,20A108,108,0,0,0,31.85,177.23L21,209.66A20,20,0,0,0,46.34,235l32.43-10.81A108,108,0,1,0,128,20Zm0,192a84,84,0,0,1-42.06-11.27,12,12,0,0,0-6-1.62,12.1,12.1,0,0,0-3.8.62l-29.79,9.93,9.93-29.79a12,12,0,0,0-1-9.81A84,84,0,1,1,128,212Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26A102,102,0,0,0,38.35,176.69L26.73,211.56a14,14,0,0,0,17.71,17.71l34.87-11.62A102,102,0,1,0,128,26Zm0,192a90,90,0,0,1-45.06-12.08,6.09,6.09,0,0,0-3-.81,6.2,6.2,0,0,0-1.9.31L40.65,217.88a2,2,0,0,1-2.53-2.53L50.58,178a6,6,0,0,0-.5-4.91A90,90,0,1,1,128,218Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,28A100,100,0,0,0,40.53,176.5l-11.9,35.69a12,12,0,0,0,15.18,15.18l35.69-11.9A100,100,0,1,0,128,28Zm0,192a92,92,0,0,1-46.07-12.35,4.05,4.05,0,0,0-2-.54,3.93,3.93,0,0,0-1.27.21L41.28,219.78a4,4,0,0,1-5.06-5.06l12.46-37.38a4,4,0,0,0-.33-3.27A92,92,0,1,1,128,220Z"}))]]),rz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M120,128a16,16,0,1,1-16-16A16,16,0,0,1,120,128Zm32-16a16,16,0,1,0,16,16A16,16,0,0,0,152,112Zm84,16A108,108,0,0,1,78.77,224.15L46.34,235A20,20,0,0,1,21,209.66l10.81-32.43A108,108,0,1,1,236,128Zm-24,0A84,84,0,1,0,55.27,170.06a12,12,0,0,1,1,9.81l-9.93,29.79,29.79-9.93a12.1,12.1,0,0,1,3.8-.62,12,12,0,0,1,6,1.62A84,84,0,0,0,212,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-4-1.08,7.85,7.85,0,0,0-2.53.42L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Zm88,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM84,118a10,10,0,1,0,10,10A10,10,0,0,0,84,118Zm88,0a10,10,0,1,0,10,10A10,10,0,0,0,172,118Zm58,10A102,102,0,0,1,79.31,217.65L44.44,229.27a14,14,0,0,1-17.71-17.71l11.62-34.87A102,102,0,1,1,230,128Zm-12,0A90,90,0,1,0,50.08,173.06a6,6,0,0,1,.5,4.91L38.12,215.35a2,2,0,0,0,2.53,2.53L78,205.42a6.2,6.2,0,0,1,1.9-.31,6.09,6.09,0,0,1,3,.81A90,90,0,0,0,218,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM84,116a12,12,0,1,0,12,12A12,12,0,0,0,84,116Zm88,0a12,12,0,1,0,12,12A12,12,0,0,0,172,116Zm60,12A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-16,0A88,88,0,1,0,51.81,172.06a8,8,0,0,1,.66,6.54L40,216,77.4,203.53a7.85,7.85,0,0,1,2.53-.42,8,8,0,0,1,4,1.08A88,88,0,0,0,216,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-52-8a8,8,0,1,0,8,8A8,8,0,0,0,84,120Zm88,0a8,8,0,1,0,8,8A8,8,0,0,0,172,120Zm56,8A100,100,0,0,1,79.5,215.47l-35.69,11.9a12,12,0,0,1-15.18-15.18l11.9-35.69A100,100,0,1,1,228,128Zm-8,0A92,92,0,1,0,48.35,174.07a4,4,0,0,1,.33,3.27L36.22,214.72a4,4,0,0,0,5.06,5.06l37.38-12.46a3.93,3.93,0,0,1,1.27-.21,4.05,4.05,0,0,1,2,.54A92,92,0,0,0,220,128Z"}))]]),sz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.34,187.09A84,84,0,0,0,172.29,68.9,84,84,0,0,0,19.66,139.09l-6.84,23.26a20,20,0,0,0,24.83,24.83l23.26-6.84a83.94,83.94,0,0,0,22.76,6.74,84.06,84.06,0,0,0,111.42,41.26l23.26,6.84a20,20,0,0,0,24.83-24.83ZM62,155.5a11.88,11.88,0,0,0-3.39.49l-20.72,6.09L44,141.35a12,12,0,0,0-.93-9A60,60,0,1,1,67.7,156.92,12,12,0,0,0,62,155.5Zm150.89,24.8a12,12,0,0,0-.93,9l6.09,20.73L197.36,204a12,12,0,0,0-9.06.93A60,60,0,0,1,111,186.63a83.93,83.93,0,0,0,68.55-91.37,60,60,0,0,1,33.38,85Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M231.66,213.73a8,8,0,0,1-9.93,9.93L194,215.5A72.05,72.05,0,0,1,92.06,175.89h0c1.31.07,2.62.11,3.94.11a72,72,0,0,0,67.93-95.88h0A72,72,0,0,1,223.5,186Z",opacity:"0.2"}),r.createElement("path",{d:"M232.07,186.76a80,80,0,0,0-62.5-114.17A80,80,0,1,0,23.93,138.76l-7.27,24.71a16,16,0,0,0,19.87,19.87l24.71-7.27a80.39,80.39,0,0,0,25.18,7.35,80,80,0,0,0,108.34,40.65l24.71,7.27a16,16,0,0,0,19.87-19.86ZM62,159.5a8.28,8.28,0,0,0-2.26.32L32,168l8.17-27.76a8,8,0,0,0-.63-6,64,64,0,1,1,26.26,26.26A8,8,0,0,0,62,159.5Zm153.79,28.73L224,216l-27.76-8.17a8,8,0,0,0-6,.63,64.05,64.05,0,0,1-85.87-24.88A79.93,79.93,0,0,0,174.7,89.71a64,64,0,0,1,41.75,92.48A8,8,0,0,0,215.82,188.23Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232.07,186.76a80,80,0,0,0-62.5-114.17A80,80,0,1,0,23.93,138.76l-7.27,24.71a16,16,0,0,0,19.87,19.87l24.71-7.27a80.39,80.39,0,0,0,25.18,7.35,80,80,0,0,0,108.34,40.65l24.71,7.27a16,16,0,0,0,19.87-19.86Zm-16.25,1.47L224,216l-27.76-8.17a8,8,0,0,0-6,.63,64.05,64.05,0,0,1-85.87-24.88A79.93,79.93,0,0,0,174.7,89.71a64,64,0,0,1,41.75,92.48A8,8,0,0,0,215.82,188.23Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.93,186.58A78,78,0,0,0,168.16,74.42,78,78,0,1,0,26.07,138.58L18.58,164A14,14,0,0,0,36,181.42l25.46-7.49a78,78,0,0,0,26.39,7.63,78,78,0,0,0,106.77,40.37L220,229.42A14,14,0,0,0,237.42,212ZM62,161.5a6.05,6.05,0,0,0-1.69.24l-27.77,8.17a2,2,0,0,1-2.48-2.48l8.17-27.77a6.05,6.05,0,0,0-.47-4.53,66,66,0,1,1,27.08,27.08A6,6,0,0,0,62,161.5Zm155.71,26.16,8.17,27.77a2,2,0,0,1-2.48,2.48l-27.77-8.17a6.06,6.06,0,0,0-4.53.47,66,66,0,0,1-90-28.4,77.92,77.92,0,0,0,71-94.68,66,66,0,0,1,46.07,96A6.05,6.05,0,0,0,217.74,187.66Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232.07,186.76a80,80,0,0,0-62.5-114.17A80,80,0,1,0,23.93,138.76l-7.27,24.71a16,16,0,0,0,19.87,19.87l24.71-7.27a80.39,80.39,0,0,0,25.18,7.35,80,80,0,0,0,108.34,40.65l24.71,7.27a16,16,0,0,0,19.87-19.86ZM62,159.5a8.28,8.28,0,0,0-2.26.32L32,168l8.17-27.76a8,8,0,0,0-.63-6,64,64,0,1,1,26.26,26.26A8,8,0,0,0,62,159.5Zm153.79,28.73L224,216l-27.76-8.17a8,8,0,0,0-6,.63,64.05,64.05,0,0,1-85.87-24.88A79.93,79.93,0,0,0,174.7,89.71a64,64,0,0,1,41.75,92.48A8,8,0,0,0,215.82,188.23Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.79,186.39a76,76,0,0,0-61-110.07A76,76,0,1,0,28.21,138.39L20.5,164.6a12,12,0,0,0,14.9,14.9l26.21-7.71a75.93,75.93,0,0,0,27.6,7.9,76,76,0,0,0,105.18,40.1l26.21,7.71a12,12,0,0,0,14.9-14.9ZM60.9,163.66l-27.76,8.17a4,4,0,0,1-5-5l8.17-27.76a4.07,4.07,0,0,0-.31-3A68,68,0,1,1,63.92,164,4.06,4.06,0,0,0,60.9,163.66Zm165.92,55.16a4,4,0,0,1-4,1l-27.76-8.17a4.07,4.07,0,0,0-3,.31A68,68,0,0,1,98,180a76,76,0,0,0,71.5-95.28A68,68,0,0,1,220,184.08a4.07,4.07,0,0,0-.31,3l8.17,27.76A4,4,0,0,1,226.82,218.82Z"}))]]),lz=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),iz=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),oz=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),cz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M172,164a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,164Zm-12-52H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Zm60-64V216a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V48A20,20,0,0,1,56,28H90.53a51.88,51.88,0,0,1,74.94,0H200A20,20,0,0,1,220,48ZM100.29,60h55.42a28,28,0,0,0-55.42,0ZM196,52H178.59A52.13,52.13,0,0,1,180,64v8a12,12,0,0,1-12,12H88A12,12,0,0,1,76,72V64a52.13,52.13,0,0,1,1.41-12H60V212H196Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,48V216a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H96a39.83,39.83,0,0,0-8,24v8h80V64a39.83,39.83,0,0,0-8-24h40A8,8,0,0,1,208,48Z",opacity:"0.2"}),r.createElement("path",{d:"M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,32H163.74a47.92,47.92,0,0,0-71.48,0H56A16,16,0,0,0,40,48V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm-72,0a32,32,0,0,1,32,32H96A32,32,0,0,1,128,32Zm32,128H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M166,152a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,152Zm-6-38H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm54-66V216a14,14,0,0,1-14,14H56a14,14,0,0,1-14-14V48A14,14,0,0,1,56,34H93.17a45.91,45.91,0,0,1,69.66,0H200A14,14,0,0,1,214,48ZM94,64v2h68V64a34,34,0,0,0-68,0ZM202,48a2,2,0,0,0-2-2H170.33A45.77,45.77,0,0,1,174,64v8a6,6,0,0,1-6,6H88a6,6,0,0,1-6-6V64a45.77,45.77,0,0,1,3.67-18H56a2,2,0,0,0-2,2V216a2,2,0,0,0,2,2H200a2,2,0,0,0,2-2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164,152a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,152Zm-4-36H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm52-68V216a12,12,0,0,1-12,12H56a12,12,0,0,1-12-12V48A12,12,0,0,1,56,36H94.08a44,44,0,0,1,67.84,0H200A12,12,0,0,1,212,48ZM92,64v4h72V64a36,36,0,0,0-72,0ZM204,48a4,4,0,0,0-4-4H167.17A43.71,43.71,0,0,1,172,64v8a4,4,0,0,1-4,4H88a4,4,0,0,1-4-4V64a43.71,43.71,0,0,1,4.83-20H56a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H200a4,4,0,0,0,4-4Z"}))]]),uz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.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,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"}))],["regular",r.createElement(r.Fragment,null,r.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,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"}))]]),dz=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),hz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M156,88H100a12,12,0,0,0-12,12v56a12,12,0,0,0,12,12h56a12,12,0,0,0,12-12V100A12,12,0,0,0,156,88Zm-12,56H112V112h32Zm88-4H220V116h12a12,12,0,0,0,0-24H220V56a20,20,0,0,0-20-20H164V24a12,12,0,0,0-24,0V36H116V24a12,12,0,0,0-24,0V36H56A20,20,0,0,0,36,56V92H24a12,12,0,0,0,0,24H36v24H24a12,12,0,0,0,0,24H36v36a20,20,0,0,0,20,20H92v12a12,12,0,0,0,24,0V220h24v12a12,12,0,0,0,24,0V220h36a20,20,0,0,0,20-20V164h12a12,12,0,0,0,0-24Zm-36,56H60V60H196Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,48H56a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H200a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48ZM152,152H104V104h48Z",opacity:"0.2"}),r.createElement("path",{d:"M152,96H104a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V104A8,8,0,0,0,152,96Zm-8,48H112V112h32Zm88,0H216V112h16a8,8,0,0,0,0-16H216V56a16,16,0,0,0-16-16H160V24a8,8,0,0,0-16,0V40H112V24a8,8,0,0,0-16,0V40H56A16,16,0,0,0,40,56V96H24a8,8,0,0,0,0,16H40v32H24a8,8,0,0,0,0,16H40v40a16,16,0,0,0,16,16H96v16a8,8,0,0,0,16,0V216h32v16a8,8,0,0,0,16,0V216h40a16,16,0,0,0,16-16V160h16a8,8,0,0,0,0-16Zm-32,56H56V56H200v95.87s0,.09,0,.13,0,.09,0,.13V200Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M104,104h48v48H104Zm136,48a8,8,0,0,1-8,8H216v40a16,16,0,0,1-16,16H160v16a8,8,0,0,1-16,0V216H112v16a8,8,0,0,1-16,0V216H56a16,16,0,0,1-16-16V160H24a8,8,0,0,1,0-16H40V112H24a8,8,0,0,1,0-16H40V56A16,16,0,0,1,56,40H96V24a8,8,0,0,1,16,0V40h32V24a8,8,0,0,1,16,0V40h40a16,16,0,0,1,16,16V96h16a8,8,0,0,1,0,16H216v32h16A8,8,0,0,1,240,152ZM168,96a8,8,0,0,0-8-8H96a8,8,0,0,0-8,8v64a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M152,98H104a6,6,0,0,0-6,6v48a6,6,0,0,0,6,6h48a6,6,0,0,0,6-6V104A6,6,0,0,0,152,98Zm-6,48H110V110h36Zm86,0H214V110h18a6,6,0,0,0,0-12H214V56a14,14,0,0,0-14-14H158V24a6,6,0,0,0-12,0V42H110V24a6,6,0,0,0-12,0V42H56A14,14,0,0,0,42,56V98H24a6,6,0,0,0,0,12H42v36H24a6,6,0,0,0,0,12H42v42a14,14,0,0,0,14,14H98v18a6,6,0,0,0,12,0V214h36v18a6,6,0,0,0,12,0V214h42a14,14,0,0,0,14-14V158h18a6,6,0,0,0,0-12Zm-30,54a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M152,96H104a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V104A8,8,0,0,0,152,96Zm-8,48H112V112h32Zm88,0H216V112h16a8,8,0,0,0,0-16H216V56a16,16,0,0,0-16-16H160V24a8,8,0,0,0-16,0V40H112V24a8,8,0,0,0-16,0V40H56A16,16,0,0,0,40,56V96H24a8,8,0,0,0,0,16H40v32H24a8,8,0,0,0,0,16H40v40a16,16,0,0,0,16,16H96v16a8,8,0,0,0,16,0V216h32v16a8,8,0,0,0,16,0V216h40a16,16,0,0,0,16-16V160h16a8,8,0,0,0,0-16Zm-32,56H56V56H200v95.87s0,.09,0,.13,0,.09,0,.13V200Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M152,100H104a4,4,0,0,0-4,4v48a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V104A4,4,0,0,0,152,100Zm-4,48H108V108h40Zm84,0H212V108h20a4,4,0,0,0,0-8H212V56a12,12,0,0,0-12-12H156V24a4,4,0,0,0-8,0V44H108V24a4,4,0,0,0-8,0V44H56A12,12,0,0,0,44,56v44H24a4,4,0,0,0,0,8H44v40H24a4,4,0,0,0,0,8H44v44a12,12,0,0,0,12,12h44v20a4,4,0,0,0,8,0V212h40v20a4,4,0,0,0,8,0V212h44a12,12,0,0,0,12-12V156h20a4,4,0,0,0,0-8Zm-28,52a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4Z"}))]]),mz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,116h-4.72A100.21,100.21,0,0,0,140,28.72V24a12,12,0,0,0-24,0v4.72A100.21,100.21,0,0,0,28.72,116H24a12,12,0,0,0,0,24h4.72A100.21,100.21,0,0,0,116,227.28V232a12,12,0,0,0,24,0v-4.72A100.21,100.21,0,0,0,227.28,140H232a12,12,0,0,0,0-24Zm-92,87v-3a12,12,0,0,0-24,0v3a76.15,76.15,0,0,1-63-63h3a12,12,0,0,0,0-24H53a76.15,76.15,0,0,1,63-63v3a12,12,0,0,0,24,0V53a76.15,76.15,0,0,1,63,63h-3a12,12,0,0,0,0,24h3A76.15,76.15,0,0,1,140,203ZM128,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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,128a32,32,0,1,1-32-32A32,32,0,0,1,160,128Z",opacity:"0.2"}),r.createElement("path",{d:"M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-96,87.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16h7.6A80.15,80.15,0,0,1,136,207.6ZM128,88a40,40,0,1,0,40,40A40,40,0,0,0,128,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,152Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-32,16h7.6A80.15,80.15,0,0,1,136,207.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16Zm-32-8a40,40,0,1,1-40-40A40,40,0,0,1,168,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,122H221.8A94.13,94.13,0,0,0,134,34.2V24a6,6,0,0,0-12,0V34.2A94.13,94.13,0,0,0,34.2,122H24a6,6,0,0,0,0,12H34.2A94.13,94.13,0,0,0,122,221.8V232a6,6,0,0,0,12,0V221.8A94.13,94.13,0,0,0,221.8,134H232a6,6,0,0,0,0-12Zm-98,87.76V200a6,6,0,0,0-12,0v9.76A82.09,82.09,0,0,1,46.24,134H56a6,6,0,0,0,0-12H46.24A82.09,82.09,0,0,1,122,46.24V56a6,6,0,0,0,12,0V46.24A82.09,82.09,0,0,1,209.76,122H200a6,6,0,0,0,0,12h9.76A82.09,82.09,0,0,1,134,209.76ZM128,90a38,38,0,1,0,38,38A38,38,0,0,0,128,90Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,128,154Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-96,87.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16h7.6A80.15,80.15,0,0,1,136,207.6ZM128,88a40,40,0,1,0,40,40A40,40,0,0,0,128,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,152Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,124H219.91A92.13,92.13,0,0,0,132,36.09V24a4,4,0,0,0-8,0V36.09A92.13,92.13,0,0,0,36.09,124H24a4,4,0,0,0,0,8H36.09A92.13,92.13,0,0,0,124,219.91V232a4,4,0,0,0,8,0V219.91A92.13,92.13,0,0,0,219.91,132H232a4,4,0,0,0,0-8ZM132,211.9V200a4,4,0,0,0-8,0v11.9A84.11,84.11,0,0,1,44.1,132H56a4,4,0,0,0,0-8H44.1A84.11,84.11,0,0,1,124,44.1V56a4,4,0,0,0,8,0V44.1A84.11,84.11,0,0,1,211.9,124H200a4,4,0,0,0,0,8h11.9A84.11,84.11,0,0,1,132,211.9ZM128,92a36,36,0,1,0,36,36A36,36,0,0,0,128,92Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,128,156Z"}))]]),fz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M225.6,62.64l-88-48.17a19.91,19.91,0,0,0-19.2,0l-88,48.17A20,20,0,0,0,20,80.19v95.62a20,20,0,0,0,10.4,17.55l88,48.17a19.89,19.89,0,0,0,19.2,0l88-48.17A20,20,0,0,0,236,175.81V80.19A20,20,0,0,0,225.6,62.64ZM128,36.57,200,76,128,115.4,56,76ZM44,96.79l72,39.4v76.67L44,173.44Zm96,116.07V136.19l72-39.4v76.65Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,129.09V232a8,8,0,0,1-3.84-1l-88-48.16a8,8,0,0,1-4.16-7V80.2a8,8,0,0,1,.7-3.27Z",opacity:"0.2"}),r.createElement("path",{d:"M223.68,66.15,135.68,18h0a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32h0l80.34,44L128,120,47.66,76ZM40,90l80,43.78v85.79L40,175.82Zm96,129.57V133.82L216,90v85.78Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,120,47.65,76,128,32l80.35,44Zm8,99.64V133.83l80-43.78v85.76Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222.72,67.9l-88-48.17a13.9,13.9,0,0,0-13.44,0l-88,48.18A14,14,0,0,0,26,80.18v95.64a14,14,0,0,0,7.28,12.27l88,48.18a13.92,13.92,0,0,0,13.44,0l88-48.18A14,14,0,0,0,230,175.82V80.18A14,14,0,0,0,222.72,67.9ZM127,30.25a2,2,0,0,1,1.92,0L212.51,76,128,122.24,43.49,76ZM39,177.57a2,2,0,0,1-1-1.75V86.66l84,46V223Zm177.92,0L134,223V132.64l84-46v89.16A2,2,0,0,1,217,177.57Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M223.68,66.15,135.68,18h0a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32h0l80.34,44L128,120,47.66,76ZM40,90l80,43.78v85.79L40,175.82Zm96,129.57V133.82L216,90v85.78Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.76,69.66l-88-48.18a12,12,0,0,0-11.52,0l-88,48.18A12,12,0,0,0,28,80.18v95.64a12,12,0,0,0,6.24,10.52l88,48.18a11.95,11.95,0,0,0,11.52,0l88-48.18A12,12,0,0,0,228,175.82V80.18A12,12,0,0,0,221.76,69.66ZM126.08,28.5a3.94,3.94,0,0,1,3.84,0L216.67,76,128,124.52,39.33,76Zm-88,150.83A4,4,0,0,1,36,175.82V83.29l88,48.16v94.91Zm179.84,0-85.92,47V131.45l88-48.16v92.53A4,4,0,0,1,217.92,179.32Z"}))]]),pz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M152,116H140V60h4a28,28,0,0,1,28,28,12,12,0,0,0,24,0,52.06,52.06,0,0,0-52-52h-4V24a12,12,0,0,0-24,0V36h-4a52,52,0,0,0,0,104h4v56H104a28,28,0,0,1-28-28,12,12,0,0,0-24,0,52.06,52.06,0,0,0,52,52h12v12a12,12,0,0,0,24,0V220h12a52,52,0,0,0,0-104Zm-40,0a28,28,0,0,1,0-56h4v56Zm40,80H140V140h12a28,28,0,0,1,0,56Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,168a40,40,0,0,1-40,40H128V128h24A40,40,0,0,1,192,168ZM112,48a40,40,0,0,0,0,80h16V48Z",opacity:"0.2"}),r.createElement("path",{d:"M152,120H136V56h8a32,32,0,0,1,32,32,8,8,0,0,0,16,0,48.05,48.05,0,0,0-48-48h-8V24a8,8,0,0,0-16,0V40h-8a48,48,0,0,0,0,96h8v64H104a32,32,0,0,1-32-32,8,8,0,0,0-16,0,48.05,48.05,0,0,0,48,48h16v16a8,8,0,0,0,16,0V216h16a48,48,0,0,0,0-96Zm-40,0a32,32,0,0,1,0-64h8v64Zm40,80H136V136h16a32,32,0,0,1,0,64Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,152a16,16,0,0,1-16,16h-8V136h8A16,16,0,0,1,160,152Zm72-24A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-56,24a32,32,0,0,0-32-32h-8V88h4a16,16,0,0,1,16,16,8,8,0,0,0,16,0,32,32,0,0,0-32-32h-4V64a8,8,0,0,0-16,0v8h-4a32,32,0,0,0,0,64h4v32h-8a16,16,0,0,1-16-16,8,8,0,0,0-16,0,32,32,0,0,0,32,32h8v8a8,8,0,0,0,16,0v-8h8A32,32,0,0,0,176,152Zm-76-48a16,16,0,0,0,16,16h4V88h-4A16,16,0,0,0,100,104Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M152,122H134V54h10a34,34,0,0,1,34,34,6,6,0,0,0,12,0,46.06,46.06,0,0,0-46-46H134V24a6,6,0,0,0-12,0V42H112a46,46,0,0,0,0,92h10v68H104a34,34,0,0,1-34-34,6,6,0,0,0-12,0,46.06,46.06,0,0,0,46,46h18v18a6,6,0,0,0,12,0V214h18a46,46,0,0,0,0-92Zm-40,0a34,34,0,0,1,0-68h10v68Zm40,80H134V134h18a34,34,0,0,1,0,68Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M152,120H136V56h8a32,32,0,0,1,32,32,8,8,0,0,0,16,0,48.05,48.05,0,0,0-48-48h-8V24a8,8,0,0,0-16,0V40h-8a48,48,0,0,0,0,96h8v64H104a32,32,0,0,1-32-32,8,8,0,0,0-16,0,48.05,48.05,0,0,0,48,48h16v16a8,8,0,0,0,16,0V216h16a48,48,0,0,0,0-96Zm-40,0a32,32,0,0,1,0-64h8v64Zm40,80H136V136h16a32,32,0,0,1,0,64Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M152,124H132V52h12a36,36,0,0,1,36,36,4,4,0,0,0,8,0,44.05,44.05,0,0,0-44-44H132V24a4,4,0,0,0-8,0V44H112a44,44,0,0,0,0,88h12v72H104a36,36,0,0,1-36-36,4,4,0,0,0-8,0,44.05,44.05,0,0,0,44,44h20v20a4,4,0,0,0,8,0V212h20a44,44,0,0,0,0-88Zm-40,0a36,36,0,0,1,0-72h12v72Zm40,80H132V132h20a36,36,0,0,1,0,72Z"}))]]),xz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M108,60A16,16,0,1,1,92,44,16,16,0,0,1,108,60Zm56,16a16,16,0,1,0-16-16A16,16,0,0,0,164,76ZM92,112a16,16,0,1,0,16,16A16,16,0,0,0,92,112Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,112ZM92,180a16,16,0,1,0,16,16A16,16,0,0,0,92,180Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,180Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32V224a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V32A16,16,0,0,1,64,16H192A16,16,0,0,1,208,32Z",opacity:"0.2"}),r.createElement("path",{d:"M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,16H64A16,16,0,0,0,48,32V224a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V32A16,16,0,0,0,192,16ZM100,200a12,12,0,1,1,12-12A12,12,0,0,1,100,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,80Zm56,120a12,12,0,1,1,12-12A12,12,0,0,1,156,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,80Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M102,60A10,10,0,1,1,92,50,10,10,0,0,1,102,60Zm62,10a10,10,0,1,0-10-10A10,10,0,0,0,164,70ZM92,118a10,10,0,1,0,10,10A10,10,0,0,0,92,118Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,118ZM92,186a10,10,0,1,0,10,10A10,10,0,0,0,92,186Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,186Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M100,60a8,8,0,1,1-8-8A8,8,0,0,1,100,60Zm64,8a8,8,0,1,0-8-8A8,8,0,0,0,164,68ZM92,120a8,8,0,1,0,8,8A8,8,0,0,0,92,120Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,120ZM92,188a8,8,0,1,0,8,8A8,8,0,0,0,92,188Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,188Z"}))]]),gz=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),vz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,152H48a20,20,0,0,0-20,20v20a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V172A20,20,0,0,0,208,152Zm-4,36H52V176H204ZM48.27,136H207.73a20.27,20.27,0,0,0,14.61-34.3L148.58,24.78a28.51,28.51,0,0,0-41.16,0L33.66,101.7A20.27,20.27,0,0,0,48.27,136Zm76.48-94.61a4.49,4.49,0,0,1,6.5,0L199,112H57Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,168v24a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V168a8,8,0,0,1,8-8H208A8,8,0,0,1,216,168ZM48.23,128H207.77c7.16,0,10.89-8.27,6-13.37l-73.74-77.5a16.76,16.76,0,0,0-24.14,0l-73.74,77.5C37.34,119.73,41.07,128,48.23,128Z",opacity:"0.2"}),r.createElement("path",{d:"M208,152H48a16,16,0,0,0-16,16v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V168A16,16,0,0,0,208,152Zm0,40H48V168H208ZM48.24,136H207.76a16.18,16.18,0,0,0,14.93-9.76,15.59,15.59,0,0,0-3.1-17.12L145.86,31.61a24.76,24.76,0,0,0-35.72,0L36.41,109.12h0a15.59,15.59,0,0,0-3.1,17.12A16.18,16.18,0,0,0,48.24,136Zm73.49-93.36a8.77,8.77,0,0,1,12.54,0L207.85,120H48.14Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M33.31,126.24a15.59,15.59,0,0,1,3.1-17.12h0l73.73-77.51a24.76,24.76,0,0,1,35.72,0l73.73,77.51a15.59,15.59,0,0,1,3.1,17.12A16.18,16.18,0,0,1,207.76,136H48.24A16.18,16.18,0,0,1,33.31,126.24ZM208,152H48a16,16,0,0,0-16,16v16a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V168A16,16,0,0,0,208,152Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,154H48a14,14,0,0,0-14,14v24a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V168A14,14,0,0,0,208,154Zm2,38a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V168a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM48.24,134H207.76a14.19,14.19,0,0,0,13.1-8.55,13.61,13.61,0,0,0-2.72-15L144.41,33a22.76,22.76,0,0,0-32.82,0L37.86,110.5a13.61,13.61,0,0,0-2.72,15A14.19,14.19,0,0,0,48.24,134Zm-1.69-15.23,73.73-77.51a10.77,10.77,0,0,1,15.44,0l73.73,77.51a1.67,1.67,0,0,1,.38,2,2.11,2.11,0,0,1-2.07,1.27H48.24a2.11,2.11,0,0,1-2.07-1.27A1.67,1.67,0,0,1,46.55,118.77Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,152H48a16,16,0,0,0-16,16v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V168A16,16,0,0,0,208,152Zm0,40H48V168H208ZM48.24,136H207.76a16.18,16.18,0,0,0,14.93-9.76,15.59,15.59,0,0,0-3.1-17.12L145.86,31.61a24.76,24.76,0,0,0-35.72,0L36.41,109.12h0a15.59,15.59,0,0,0-3.1,17.12A16.18,16.18,0,0,0,48.24,136Zm73.49-93.36a8.77,8.77,0,0,1,12.54,0L207.85,120H48.14Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,156H48a12,12,0,0,0-12,12v24a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V168A12,12,0,0,0,208,156Zm4,36a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V168a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM48.23,132H207.77A12,12,0,0,0,219,124.67a11.68,11.68,0,0,0-2.33-12.8L143,34.37a20.75,20.75,0,0,0-29.92,0L39.3,111.87A11.68,11.68,0,0,0,37,124.67,12,12,0,0,0,48.23,132ZM45.1,117.39l73.73-77.51a12.78,12.78,0,0,1,18.34,0l73.73,77.51a3.66,3.66,0,0,1,.77,4.12,4.1,4.1,0,0,1-3.9,2.49H48.23a4.1,4.1,0,0,1-3.9-2.49A3.66,3.66,0,0,1,45.1,117.39Z"}))]]),bz=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),yz=new Map([["bold",r.createElement(r.Fragment,null,r.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,44ZM193.15,68,128,127.72,62.85,68ZM44,188V83.28l75.89,69.57a12,12,0,0,0,16.22,0L212,83.28V188Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"}),r.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,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["fill",r.createElement(r.Fragment,null,r.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-8,144H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["light",r.createElement(r.Fragment,null,r.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,50ZM208.58,62,128,135.86,47.42,62ZM216,194H40a2,2,0,0,1-2-2V69.64l86,78.78a6,6,0,0,0,8.1,0L218,69.64V192A2,2,0,0,1,216,194Z"}))],["regular",r.createElement(r.Fragment,null,r.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,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["thin",r.createElement(r.Fragment,null,r.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-10.28,8L128,138.57,42.28,60ZM216,196H40a4,4,0,0,1-4-4V65.09L125.3,147a4,4,0,0,0,5.4,0L220,65.09V192A4,4,0,0,1,216,196Z"}))]]),wz=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),Az=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.42,162A12,12,0,1,1,213.58,174l-16.86-29.5a127.19,127.19,0,0,1-30.17,13.86L171.84,190a12,12,0,0,1-9.87,13.8,11.22,11.22,0,0,1-2,.17,12,12,0,0,1-11.82-10L143,163.17a136.5,136.5,0,0,1-30.06,0L107.84,194A12,12,0,0,1,96,204a11.22,11.22,0,0,1-2-.17A12,12,0,0,1,84.16,190l5.29-31.72a127.19,127.19,0,0,1-30.17-13.86L42.42,174A12,12,0,1,1,21.58,162L40,129.85a159.73,159.73,0,0,1-17.31-18.31A12,12,0,0,1,41.34,96.46C57.38,116.32,85.44,140,128,140s70.62-23.68,86.66-43.54a12,12,0,0,1,18.67,15.08A159.73,159.73,0,0,1,216,129.85Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,104c-16.81,20.81-47.63,48-96,48s-79.19-27.19-96-48c16.81-20.81,47.63-48,96-48S207.19,83.19,224,104Z",opacity:"0.2"}),r.createElement("path",{d:"M228,175a8,8,0,0,1-10.92-3l-19-33.2A123.23,123.23,0,0,1,162,155.46l5.87,35.22a8,8,0,0,1-6.58,9.21A8.4,8.4,0,0,1,160,200a8,8,0,0,1-7.88-6.69l-5.77-34.58a133.06,133.06,0,0,1-36.68,0l-5.77,34.58A8,8,0,0,1,96,200a8.4,8.4,0,0,1-1.32-.11,8,8,0,0,1-6.58-9.21L94,155.46a123.23,123.23,0,0,1-36.06-16.69L39,172A8,8,0,1,1,25.06,164l20-35a153.47,153.47,0,0,1-19.3-20A8,8,0,1,1,38.22,99c16.6,20.54,45.64,45,89.78,45s73.18-24.49,89.78-45A8,8,0,1,1,230.22,109a153.47,153.47,0,0,1-19.3,20l20,35A8,8,0,0,1,228,175Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.94,164A8,8,0,1,1,217.05,172l-19-33.2A123.23,123.23,0,0,1,162,155.46l5.87,35.22a8,8,0,0,1-6.58,9.21A8.4,8.4,0,0,1,160,200a8,8,0,0,1-7.88-6.69l-5.77-34.58a133.06,133.06,0,0,1-36.68,0l-5.77,34.58A8,8,0,0,1,96,200a8.4,8.4,0,0,1-1.32-.11,8,8,0,0,1-6.58-9.21L94,155.46a123.23,123.23,0,0,1-36.06-16.69L39,172A8,8,0,1,1,25.06,164l20-35a152.8,152.8,0,0,1-19.3-20,8,8,0,0,1,0-10.06C44.56,75.72,77.55,48,128,48s83.44,27.72,102.22,51a8,8,0,0,1,0,10.06,152.8,152.8,0,0,1-19.3,20Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.21,165a6,6,0,0,1-10.42,6l-20-35.08a122,122,0,0,1-39,18.09l6.17,37a6,6,0,0,1-4.93,6.91,6.85,6.85,0,0,1-1,.08,6,6,0,0,1-5.91-5L148,156.44a128.86,128.86,0,0,1-40,0L101.92,193A6,6,0,0,1,96,198a6.85,6.85,0,0,1-1-.08A6,6,0,0,1,90.08,191l6.17-37a122,122,0,0,1-39-18.09L37.21,171a6,6,0,1,1-10.42-6l20.85-36.48a152,152,0,0,1-20.31-20.77,6,6,0,0,1,9.34-7.54C53.54,121.11,83.07,146,128,146s74.46-24.89,91.33-45.77a6,6,0,0,1,9.34,7.54,152,152,0,0,1-20.31,20.77Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,175a8,8,0,0,1-10.92-3l-19-33.2A123.23,123.23,0,0,1,162,155.46l5.87,35.22a8,8,0,0,1-6.58,9.21A8.4,8.4,0,0,1,160,200a8,8,0,0,1-7.88-6.69l-5.77-34.58a133.06,133.06,0,0,1-36.68,0l-5.77,34.58A8,8,0,0,1,96,200a8.4,8.4,0,0,1-1.32-.11,8,8,0,0,1-6.58-9.21L94,155.46a123.23,123.23,0,0,1-36.06-16.69L39,172A8,8,0,1,1,25.06,164l20-35a153.47,153.47,0,0,1-19.3-20A8,8,0,1,1,38.22,99c16.6,20.54,45.64,45,89.78,45s73.18-24.49,89.78-45A8,8,0,1,1,230.22,109a153.47,153.47,0,0,1-19.3,20l20,35A8,8,0,0,1,228,175Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M226,171.47a3.92,3.92,0,0,1-2,.53,4,4,0,0,1-3.47-2l-21.15-37a120,120,0,0,1-41.91,19.53L164,191.34a4,4,0,0,1-3.29,4.6,3.79,3.79,0,0,1-.67.06,4,4,0,0,1-3.94-3.34l-6.41-38.5a128.17,128.17,0,0,1-43.28,0L100,192.66A4,4,0,0,1,96,196a3.88,3.88,0,0,1-.67-.06,4,4,0,0,1-3.29-4.6l6.48-38.83A120,120,0,0,1,56.62,133L35.47,170A4,4,0,0,1,32,172a3.92,3.92,0,0,1-2-.53A4,4,0,0,1,28.53,166l21.68-37.94a148.24,148.24,0,0,1-21.32-21.56,4,4,0,1,1,6.22-5C52.25,122.71,82.29,148,128,148s75.75-25.29,92.89-46.51a4,4,0,1,1,6.22,5,148.24,148.24,0,0,1-21.32,21.56L227.47,166A4,4,0,0,1,226,171.47Z"}))]]),jz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),r.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z"}))]]),Nz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M40.14,46.88A12,12,0,0,0,36,56V224a12,12,0,0,0,24,0V181.72c22.84-17.12,42.1-9.12,70.68,5,16.23,8,34.74,17.2,54.8,17.2,14.72,0,30.28-4.94,46.38-18.88A12,12,0,0,0,236,176V56a12,12,0,0,0-19.86-9.07c-24.71,21.41-44.53,13.31-74.82-1.68C113.19,31.27,78.17,13.94,40.14,46.88ZM212,170.26c-22.84,17.13-42.1,9.11-70.68-5C118.16,153.76,90.33,140,60,153.87V61.69c22.84-17.12,42.1-9.12,70.68,5,16.23,8,34.74,17.2,54.8,17.2A63,63,0,0,0,212,78.08Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,56V176c-64,55.43-112-55.43-176,0V56C112,.57,160,111.43,224,56Z",opacity:"0.2"}),r.createElement("path",{d:"M42.76,50A8,8,0,0,0,40,56V224a8,8,0,0,0,16,0V179.77c26.79-21.16,49.87-9.75,76.45,3.41,16.4,8.11,34.06,16.85,53,16.85,13.93,0,28.54-4.75,43.82-18a8,8,0,0,0,2.76-6V56A8,8,0,0,0,218.76,50c-28,24.23-51.72,12.49-79.21-1.12C111.07,34.76,78.78,18.79,42.76,50ZM216,172.25c-26.79,21.16-49.87,9.74-76.45-3.41-25-12.35-52.81-26.13-83.55-8.4V59.79c26.79-21.16,49.87-9.75,76.45,3.4,25,12.35,52.82,26.13,83.55,8.4Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,56V176a8,8,0,0,1-2.76,6c-15.28,13.23-29.89,18-43.82,18-18.91,0-36.57-8.74-53-16.85C105.87,170,82.79,158.61,56,179.77V224a8,8,0,0,1-16,0V56a8,8,0,0,1,2.77-6h0c36-31.18,68.31-15.21,96.79-1.12C167,62.46,190.79,74.2,218.76,50A8,8,0,0,1,232,56Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M44.08,51.37A6,6,0,0,0,42,55.9V224a6,6,0,0,0,12,0V178.78c28.08-22.79,51.88-11,79.34,2.57,16.12,8,33.49,16.58,52,16.58,13.57,0,27.76-4.6,42.56-17.42A6,6,0,0,0,230,176V55.9a6,6,0,0,0-9.93-4.54c-29,25.12-53.28,13.09-81.41-.84C110.77,36.71,79,21.16,44.08,51.37ZM218,173.17c-28.08,22.8-51.88,11-79.34-2.58C113.4,158.08,85.09,144.07,54,164V58.72c28.08-22.8,51.88-11,79.34,2.56C158.6,73.79,186.91,87.8,218,67.91Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M42.76,50A8,8,0,0,0,40,56V224a8,8,0,0,0,16,0V179.77c26.79-21.16,49.87-9.75,76.45,3.41,16.4,8.11,34.06,16.85,53,16.85,13.93,0,28.54-4.75,43.82-18a8,8,0,0,0,2.76-6V56A8,8,0,0,0,218.76,50c-28,24.23-51.72,12.49-79.21-1.12C111.07,34.76,78.78,18.79,42.76,50ZM216,172.25c-26.79,21.16-49.87,9.74-76.45-3.41-25-12.35-52.81-26.13-83.55-8.4V59.79c26.79-21.16,49.87-9.75,76.45,3.4,25,12.35,52.82,26.13,83.55,8.4Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M45.39,53.06a4,4,0,0,0-1.39,3V224a4,4,0,0,0,8,0V177.87c29.41-24.39,55.08-11.69,82.23,1.73,16.5,8.17,33.33,16.5,51.13,16.5,13.14,0,26.81-4.55,41.26-17.06a4,4,0,0,0,1.38-3v-120a4,4,0,0,0-6.62-3c-30,26-56,13.07-83.61-.57C109.07,38.28,79.4,23.62,45.39,53.06ZM220,174.17c-29.41,24.4-55.08,11.7-82.23-1.73-26.82-13.27-54.5-27-85.77-4.66V57.92c29.41-24.4,55.08-11.7,82.23,1.73,26.82,13.27,54.5,27,85.77,4.66Z"}))]]),Ez=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222.14,69.17,186.83,33.86A19.86,19.86,0,0,0,172.69,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V83.31A19.86,19.86,0,0,0,222.14,69.17ZM164,204H92V160h72Zm40,0H188V156a20,20,0,0,0-20-20H88a20,20,0,0,0-20,20v48H52V52H171l33,33ZM164,84a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h56A12,12,0,0,1,164,84Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,83.31V208a8,8,0,0,1-8,8H176V152a8,8,0,0,0-8-8H88a8,8,0,0,0-8,8v64H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H172.69a8,8,0,0,1,5.65,2.34l35.32,35.32A8,8,0,0,1,216,83.31Z",opacity:"0.2"}),r.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM208,208H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M217.9,73.42,182.58,38.1a13.9,13.9,0,0,0-9.89-4.1H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V83.31A13.9,13.9,0,0,0,217.9,73.42ZM170,210H86V152a2,2,0,0,1,2-2h80a2,2,0,0,1,2,2Zm40-2a2,2,0,0,1-2,2H182V152a14,14,0,0,0-14-14H88a14,14,0,0,0-14,14v58H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H172.69a2,2,0,0,1,1.41.58L209.42,81.9a2,2,0,0,1,.58,1.41ZM158,72a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h56A6,6,0,0,1,158,72Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.49,74.83,181.17,39.51A11.93,11.93,0,0,0,172.69,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V83.31A11.93,11.93,0,0,0,216.49,74.83ZM172,212H84V152a4,4,0,0,1,4-4h80a4,4,0,0,1,4,4Zm40-4a4,4,0,0,1-4,4H180V152a12,12,0,0,0-12-12H88a12,12,0,0,0-12,12v60H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H172.69a4,4,0,0,1,2.82,1.17l35.32,35.32A4,4,0,0,1,212,83.31ZM156,72a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h56A4,4,0,0,1,156,72Z"}))]]),Mz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.29,47.91A20,20,0,0,0,216,36H40A20,20,0,0,0,25.2,69.45l.12.14L92,140.75V216a20,20,0,0,0,31.1,16.64l32-21.33A20,20,0,0,0,164,194.66V140.75l66.67-71.16.12-.14A20,20,0,0,0,234.29,47.91Zm-91,79.89A12,12,0,0,0,140,136v56.52l-24,16V136a12,12,0,0,0-3.25-8.2L49.23,60H206.77Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.9,61.38,152,136v58.65a8,8,0,0,1-3.56,6.66l-32,21.33A8,8,0,0,1,104,216V136L34.1,61.38A8,8,0,0,1,40,48H216A8,8,0,0,1,221.9,61.38Z",opacity:"0.2"}),r.createElement("path",{d:"M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.81,66.76l-.08.09L160,139.17v55.49A16,16,0,0,1,152.87,208l-32,21.34A16,16,0,0,1,96,216V139.17L28.27,66.85l-.08-.09A16,16,0,0,1,40,40H216a16,16,0,0,1,11.84,26.76Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228.77,50.34A13.8,13.8,0,0,0,216,42H40A14,14,0,0,0,29.67,65.42l.06.07L98,138.38V216a14,14,0,0,0,21.77,11.64l32-21.33A14,14,0,0,0,158,194.66V138.38l68.33-73A13.82,13.82,0,0,0,228.77,50.34Zm-11.26,6.94L147.62,131.9A6,6,0,0,0,146,136v58.66a2,2,0,0,1-.89,1.67l-32,21.33A2,2,0,0,1,110,216V136a6,6,0,0,0-1.62-4.1L38.53,57.32A2,2,0,0,1,40,54H216a1.9,1.9,0,0,1,1.83,1.19A1.86,1.86,0,0,1,217.51,57.28Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227,51.15A11.85,11.85,0,0,0,216,44H40a12,12,0,0,0-8.88,20.07l.05.05L100,137.59V216a12,12,0,0,0,18.66,10l32-21.33a12,12,0,0,0,5.35-10V137.59l68.86-73.52A11.85,11.85,0,0,0,227,51.15Zm-8,7.5-69.9,74.62A4,4,0,0,0,148,136v58.65a4,4,0,0,1-1.78,3.33l-32,21.33A4,4,0,0,1,108,216V136a4,4,0,0,0-1.08-2.74L37.05,58.67A4,4,0,0,1,40,52H216a4,4,0,0,1,3,6.65Z"}))]]),Sz=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),Cz=new Map([["bold",r.createElement(r.Fragment,null,r.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,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),r.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,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",r.createElement(r.Fragment,null,r.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,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,6,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z"}))],["regular",r.createElement(r.Fragment,null,r.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,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["thin",r.createElement(r.Fragment,null,r.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,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z"}))]]),Zz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,64a36,36,0,1,0-48,33.94V112a4,4,0,0,1-4,4H96a27.8,27.8,0,0,0-4,.29V97.94a36,36,0,1,0-24,0v60.12a36,36,0,1,0,24,0V144a4,4,0,0,1,4-4h88a28,28,0,0,0,28-28V97.94A36.07,36.07,0,0,0,236,64ZM80,52A12,12,0,1,1,68,64,12,12,0,0,1,80,52Zm0,152a12,12,0,1,1,12-12A12,12,0,0,1,80,204ZM200,76a12,12,0,1,1,12-12A12,12,0,0,1,200,76Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,64a24,24,0,1,1-24-24A24,24,0,0,1,224,64Z",opacity:"0.2"}),r.createElement("path",{d:"M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192ZM200,80a16,16,0,1,1,16-16A16,16,0,0,1,200,80Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230,64a30,30,0,1,0-36,29.4V112a10,10,0,0,1-10,10H96a21.84,21.84,0,0,0-10,2.42v-31a30,30,0,1,0-12,0v69.2a30,30,0,1,0,12,0V144a10,10,0,0,1,10-10h88a22,22,0,0,0,22-22V93.4A30.05,30.05,0,0,0,230,64ZM62,64A18,18,0,1,1,80,82,18,18,0,0,1,62,64ZM98,192a18,18,0,1,1-18-18A18,18,0,0,1,98,192ZM200,82a18,18,0,1,1,18-18A18,18,0,0,1,200,82Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192ZM200,80a16,16,0,1,1,16-16A16,16,0,0,1,200,80Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,64a28,28,0,1,0-32,27.71V112a12,12,0,0,1-12,12H96a19.91,19.91,0,0,0-12,4V91.71a28,28,0,1,0-8,0v72.58a28,28,0,1,0,8,0V144a12,12,0,0,1,12-12h88a20,20,0,0,0,20-20V91.71A28,28,0,0,0,228,64ZM60,64A20,20,0,1,1,80,84,20,20,0,0,1,60,64Zm40,128a20,20,0,1,1-20-20A20,20,0,0,1,100,192ZM200,84a20,20,0,1,1,20-20A20,20,0,0,1,200,84Z"}))]]),Hz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,187a113.4,113.4,0,0,1-20.39-35h40.82a116.94,116.94,0,0,1-10,20.77A108.61,108.61,0,0,1,128,207Zm-26.49-59a135.42,135.42,0,0,1,0-40h53a135.42,135.42,0,0,1,0,40ZM44,128a83.49,83.49,0,0,1,2.43-20H77.25a160.63,160.63,0,0,0,0,40H46.43A83.49,83.49,0,0,1,44,128Zm84-79a113.4,113.4,0,0,1,20.39,35H107.59a116.94,116.94,0,0,1,10-20.77A108.61,108.61,0,0,1,128,49Zm50.73,59h30.82a83.52,83.52,0,0,1,0,40H178.75a160.63,160.63,0,0,0,0-40Zm20.77-24H173.71a140.82,140.82,0,0,0-15.5-34.36A84.51,84.51,0,0,1,199.52,84ZM97.79,49.64A140.82,140.82,0,0,0,82.29,84H56.48A84.51,84.51,0,0,1,97.79,49.64ZM56.48,172H82.29a140.82,140.82,0,0,0,15.5,34.36A84.51,84.51,0,0,1,56.48,172Zm101.73,34.36A140.82,140.82,0,0,0,173.71,172h25.81A84.51,84.51,0,0,1,158.21,206.36Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm78.36,64H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM216,128a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM128,43a115.27,115.27,0,0,1,26,45H102A115.11,115.11,0,0,1,128,43ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48Zm50.35,61.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,190.61c-6.33-6.09-23-24.41-31.27-54.61h62.54C151,194.2,134.33,212.52,128,218.61ZM94.82,156a140.42,140.42,0,0,1,0-56h66.36a140.42,140.42,0,0,1,0,56ZM128,37.39c6.33,6.09,23,24.41,31.27,54.61H96.73C105,61.8,121.67,43.48,128,37.39ZM169.41,100h46.23a92.09,92.09,0,0,1,0,56H169.41a152.65,152.65,0,0,0,0-56Zm43.25-8h-45a129.39,129.39,0,0,0-29.19-55.4A92.25,92.25,0,0,1,212.66,92ZM117.54,36.6A129.39,129.39,0,0,0,88.35,92h-45A92.25,92.25,0,0,1,117.54,36.6ZM40.36,100H86.59a152.65,152.65,0,0,0,0,56H40.36a92.09,92.09,0,0,1,0-56Zm3,64h45a129.39,129.39,0,0,0,29.19,55.4A92.25,92.25,0,0,1,43.34,164Zm95.12,55.4A129.39,129.39,0,0,0,167.65,164h45A92.25,92.25,0,0,1,138.46,219.4Z"}))]]),_z=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,44a32,32,0,0,0-8,1V44a32,32,0,0,0-60.79-14A32,32,0,0,0,76,60v50.83a32,32,0,0,0-52,36.7C55.82,214.6,75.35,244,128,244a92.1,92.1,0,0,0,92-92V76A32,32,0,0,0,188,44Zm8,108a68.08,68.08,0,0,1-68,68c-35.83,0-49.71-14-82.48-83.14-.14-.29-.29-.58-.45-.86a8,8,0,0,1,13.85-8l.21.35,18.68,30A12,12,0,0,0,100,152V60a8,8,0,0,1,16,0v60a12,12,0,0,0,24,0V44a8,8,0,0,1,16,0v76a12,12,0,0,0,24,0V76a8,8,0,0,1,16,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,76v76a80,80,0,0,1-80,80c-44.18,0-60.75-21.28-93.32-90a20,20,0,0,1,34.64-20L88,152V60a20,20,0,0,1,40,0V44a20,20,0,0,1,40,0V76a20,20,0,0,1,40,0Z",opacity:"0.2"}),r.createElement("path",{d:"M188,48a27.75,27.75,0,0,0-12,2.71V44a28,28,0,0,0-54.65-8.6A28,28,0,0,0,80,60v64l-3.82-6.13a28,28,0,0,0-48.6,27.82c16,33.77,28.93,57.72,43.72,72.69C86.24,233.54,103.2,240,128,240a88.1,88.1,0,0,0,88-88V76A28,28,0,0,0,188,48Zm12,104a72.08,72.08,0,0,1-72,72c-20.38,0-33.51-4.88-45.33-16.85C69.44,193.74,57.26,171,41.9,138.58a6.36,6.36,0,0,0-.3-.58,12,12,0,0,1,20.79-12,1.76,1.76,0,0,0,.14.23l18.67,30A8,8,0,0,0,96,152V60a12,12,0,0,1,24,0v60a8,8,0,0,0,16,0V44a12,12,0,0,1,24,0v76a8,8,0,0,0,16,0V76a12,12,0,0,1,24,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,64v90.93c0,46.2-36.85,84.55-83,85.06A83.71,83.71,0,0,1,72.6,215.4C50.79,192.33,26.15,136,26.15,136a16,16,0,0,1,6.53-22.23c7.66-4,17.1-.84,21.4,6.62l21,36.44a6.09,6.09,0,0,0,6,3.09l.12,0A8.19,8.19,0,0,0,88,151.74V48a16,16,0,0,1,16.77-16c8.61.4,15.23,7.82,15.23,16.43V112a8,8,0,0,0,8.53,8,8.17,8.17,0,0,0,7.47-8.25V32a16,16,0,0,1,16.77-16c8.61.4,15.23,7.82,15.23,16.43V120a8,8,0,0,0,8.53,8,8.17,8.17,0,0,0,7.47-8.25V64.45c0-8.61,6.62-16,15.23-16.43A16,16,0,0,1,216,64Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,50a25.8,25.8,0,0,0-14,4.11V44a26,26,0,0,0-51.41-5.51A26,26,0,0,0,82,60v71l-7.53-12.1a26,26,0,0,0-45.11,25.87C60.76,211,78.51,238,128,238a86.1,86.1,0,0,0,86-86V76A26,26,0,0,0,188,50Zm14,102a74.09,74.09,0,0,1-74,74c-21,0-34.51-5.05-46.75-17.45C67.81,195,55.54,172,40.1,139.43l-.23-.43a14,14,0,0,1,24.25-14l.1.17,18.68,30A6,6,0,0,0,94,152V60a14,14,0,0,1,28,0v60a6,6,0,0,0,12,0V44a14,14,0,0,1,28,0v76a6,6,0,0,0,12,0V76a14,14,0,0,1,28,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,48a27.75,27.75,0,0,0-12,2.71V44a28,28,0,0,0-54.65-8.6A28,28,0,0,0,80,60v64l-3.82-6.13a28,28,0,0,0-48.6,27.82c16,33.77,28.93,57.72,43.72,72.69C86.24,233.54,103.2,240,128,240a88.1,88.1,0,0,0,88-88V76A28,28,0,0,0,188,48Zm12,104a72.08,72.08,0,0,1-72,72c-20.38,0-33.51-4.88-45.33-16.85C69.44,193.74,57.26,171,41.9,138.58a6.36,6.36,0,0,0-.3-.58,12,12,0,0,1,20.79-12,1.76,1.76,0,0,0,.14.23l18.67,30A8,8,0,0,0,96,152V60a12,12,0,0,1,24,0v60a8,8,0,0,0,16,0V44a12,12,0,0,1,24,0v76a8,8,0,0,0,16,0V76a12,12,0,0,1,24,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,52a23.9,23.9,0,0,0-16,6.13V44a24,24,0,0,0-47.93-1.8A24,24,0,0,0,84,60v78L72.75,119.94a24,24,0,0,0-41.62,23.92C64.44,214.12,82.17,236,128,236a84.09,84.09,0,0,0,84-84V76A24,24,0,0,0,188,52Zm16,100a76.09,76.09,0,0,1-76,76c-37.29,0-53.59-11.51-89.71-87.71l-.15-.29a16,16,0,0,1,27.71-16,.75.75,0,0,1,.07.12l18.68,30A4,4,0,0,0,92,152V60a16,16,0,0,1,32,0v60a4,4,0,0,0,8,0V44a16,16,0,0,1,32,0v76a4,4,0,0,0,8,0V76a16,16,0,0,1,32,0Z"}))]]),Vz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,76H188V64a36,36,0,0,0-60-26.8A36,36,0,0,0,69.27,54.54,36,36,0,0,0,20,88v40a108,108,0,0,0,216,0V112A36,36,0,0,0,200,76ZM140,64a12,12,0,0,1,24,0V76H140ZM92,64a12,12,0,0,1,24,0v40a12,12,0,0,1-24,0ZM44,88a12,12,0,0,1,24,0v16a12,12,0,0,1-24,0Zm168,40A84,84,0,0,1,44.61,138.15,35.93,35.93,0,0,0,80,130.8a35.89,35.89,0,0,0,43.65,3.34A36.23,36.23,0,0,0,130,140.5,51.82,51.82,0,0,0,116,176a12,12,0,0,0,24,0,28,28,0,0,1,28-28,12,12,0,0,0,0-24H152a12,12,0,0,1-12-12V100h60a12,12,0,0,1,12,12Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,112v16a96,96,0,0,1-192,0V88a24,24,0,0,1,48,0V64a24,24,0,0,1,48,0,24,24,0,0,1,48,0V88h24A24,24,0,0,1,224,112Z",opacity:"0.2"}),r.createElement("path",{d:"M200,80H184V64a32,32,0,0,0-56-21.13A32,32,0,0,0,72.21,60.42,32,32,0,0,0,24,88v40a104,104,0,0,0,208,0V112A32,32,0,0,0,200,80ZM152,48a16,16,0,0,1,16,16V80H136V64A16,16,0,0,1,152,48ZM88,64a16,16,0,0,1,32,0v40a16,16,0,0,1-32,0ZM40,88a16,16,0,0,1,32,0v16a16,16,0,0,1-32,0Zm176,40a88,88,0,0,1-175.92,3.75A31.93,31.93,0,0,0,80,125.13a31.93,31.93,0,0,0,44.58,3.35,32.21,32.21,0,0,0,11.8,11.44A47.88,47.88,0,0,0,120,176a8,8,0,0,0,16,0,32,32,0,0,1,32-32,8,8,0,0,0,0-16H152a16,16,0,0,1-16-16V96h64a16,16,0,0,1,16,16Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,120v8A104,104,0,0,1,127.63,232c-54-.19-98-42.06-103.12-94.78a4,4,0,0,1,5.56-4A35.94,35.94,0,0,0,72,122.59a35.92,35.92,0,0,0,53.94,2.33,40.36,40.36,0,0,0,12.87,13A47.94,47.94,0,0,0,120,176a8,8,0,0,0,8.67,8,8.21,8.21,0,0,0,7.33-8.26A32,32,0,0,1,168,144a8,8,0,0,0,8-8.53,8.18,8.18,0,0,0-8.25-7.47H160a24,24,0,0,1-24-24V88h64A32,32,0,0,1,232,120ZM44.73,120C55.57,119.6,64,110.37,64,99.52v-23C64,65.63,55.57,56.4,44.73,56A20,20,0,0,0,24,76v24A20,20,0,0,0,44.73,120Zm56,0c10.84-.39,19.27-9.62,19.27-20.47v-47c0-10.85-8.43-20.08-19.27-20.47A20,20,0,0,0,80,52v48A20,20,0,0,0,100.73,120ZM176,52a20,20,0,0,0-20.73-20C144.43,32.4,136,41.63,136,52.48V72h36a4,4,0,0,0,4-4Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,82H182V64a30,30,0,0,0-54-18A30,30,0,0,0,74,64v0A30,30,0,0,0,26,88v40a102,102,0,0,0,204,0V112A30,30,0,0,0,200,82ZM152,46a18,18,0,0,1,18,18V82H136a14.71,14.71,0,0,0-2,.16V64A18,18,0,0,1,152,46ZM86,64a18,18,0,0,1,36,0v40a18,18,0,0,1-36,0ZM38,88a18,18,0,0,1,36,0v16a18,18,0,0,1-36,0Zm180,40a90,90,0,0,1-180,0h0a30,30,0,0,0,42-6,30,30,0,0,0,45.12,3.3A30.18,30.18,0,0,0,140,139.51,45.92,45.92,0,0,0,122,176a6,6,0,0,0,12,0,34,34,0,0,1,34-34,6,6,0,0,0,0-12H152a18,18,0,0,1-18-18V96a2,2,0,0,1,2-2h64a18,18,0,0,1,18,18Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,80H184V64a32,32,0,0,0-56-21.13A32,32,0,0,0,72.21,60.42,32,32,0,0,0,24,88v40a104,104,0,0,0,208,0V112A32,32,0,0,0,200,80ZM152,48a16,16,0,0,1,16,16V80H136V64A16,16,0,0,1,152,48ZM88,64a16,16,0,0,1,32,0v40a16,16,0,0,1-32,0ZM40,88a16,16,0,0,1,32,0v16a16,16,0,0,1-32,0Zm176,40a88,88,0,0,1-175.92,3.75A31.93,31.93,0,0,0,80,125.13a31.93,31.93,0,0,0,44.58,3.35,32.21,32.21,0,0,0,11.8,11.44A47.88,47.88,0,0,0,120,176a8,8,0,0,0,16,0,32,32,0,0,1,32-32,8,8,0,0,0,0-16H152a16,16,0,0,1-16-16V96h64a16,16,0,0,1,16,16Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,84H180V64a28,28,0,0,0-52-14.41A28,28,0,0,0,76,64v4.43A28,28,0,0,0,28,88v40a100,100,0,0,0,200,0V112A28,28,0,0,0,200,84ZM152,44a20,20,0,0,1,20,20V84H136a11.8,11.8,0,0,0-4,.7V64A20,20,0,0,1,152,44ZM84,64a20,20,0,0,1,40,0v40a20,20,0,0,1-40,0ZM36,88a20,20,0,0,1,40,0v16a20,20,0,0,1-40,0Zm184,40a92,92,0,0,1-184,0v-4.42a28,28,0,0,0,44-5.17,28,28,0,0,0,45.73,3.23,28.11,28.11,0,0,0,18.59,17.29A44,44,0,0,0,124,176a4,4,0,0,0,8,0,36,36,0,0,1,36-36,4,4,0,0,0,0-8H152a20,20,0,0,1-20-20V96a4,4,0,0,1,4-4h64a20,20,0,0,1,20,20Z"}))]]),Tz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,84a32,32,0,0,0-8,1V60a32,32,0,0,0-43.21-30A32,32,0,0,0,76,44v1A32,32,0,0,0,36,76v76a92,92,0,0,0,184,0V116A32,32,0,0,0,188,84Zm8,68a68,68,0,0,1-136,0V76a8,8,0,0,1,16,0v40a12,12,0,0,0,24,0V44a8,8,0,0,1,16,0v64a12,12,0,0,0,24,0V60a8,8,0,0,1,16,0v65.4A52.09,52.09,0,0,0,116,176a12,12,0,0,0,24,0,28,28,0,0,1,28-28,12,12,0,0,0,12-12V116a8,8,0,0,1,16,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,116v36a80,80,0,0,1-160,0V76a20,20,0,0,1,40,0V44a20,20,0,0,1,40,0V60a20,20,0,0,1,40,0v56a20,20,0,0,1,40,0Z",opacity:"0.2"}),r.createElement("path",{d:"M188,88a27.75,27.75,0,0,0-12,2.71V60a28,28,0,0,0-41.36-24.6A28,28,0,0,0,80,44v6.71A27.75,27.75,0,0,0,68,48,28,28,0,0,0,40,76v76a88,88,0,0,0,176,0V116A28,28,0,0,0,188,88Zm12,64a72,72,0,0,1-144,0V76a12,12,0,0,1,24,0v44a8,8,0,0,0,16,0V44a12,12,0,0,1,24,0v68a8,8,0,0,0,16,0V60a12,12,0,0,1,24,0v68.67A48.08,48.08,0,0,0,120,176a8,8,0,0,0,16,0,32,32,0,0,1,32-32,8,8,0,0,0,8-8V116a12,12,0,0,1,24,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,104v48a88,88,0,0,1-176,0V64a16,16,0,0,1,32,0v56a8,8,0,0,0,16,0V32a16,16,0,0,1,32,0v80a8,8,0,0,0,16,0V48a16,16,0,0,1,32,0v80.67A48.08,48.08,0,0,0,128,176a8,8,0,0,0,16,0,32,32,0,0,1,32-32,8,8,0,0,0,8-8V104a16,16,0,0,1,32,0Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,90a25.8,25.8,0,0,0-14,4.11V60a26,26,0,0,0-40.59-21.51A26,26,0,0,0,82,44V54.11A26,26,0,0,0,42,76v76a86,86,0,0,0,172,0V116A26,26,0,0,0,188,90Zm14,62a74,74,0,0,1-148,0V76a14,14,0,0,1,28,0v44a6,6,0,0,0,12,0V44a14,14,0,0,1,28,0v68a6,6,0,0,0,12,0V60a14,14,0,0,1,28,0v70.39A46.07,46.07,0,0,0,122,176a6,6,0,0,0,12,0,34,34,0,0,1,34-34,6,6,0,0,0,6-6V116a14,14,0,0,1,28,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,88a27.75,27.75,0,0,0-12,2.71V60a28,28,0,0,0-41.36-24.6A28,28,0,0,0,80,44v6.71A27.75,27.75,0,0,0,68,48,28,28,0,0,0,40,76v76a88,88,0,0,0,176,0V116A28,28,0,0,0,188,88Zm12,64a72,72,0,0,1-144,0V76a12,12,0,0,1,24,0v44a8,8,0,0,0,16,0V44a12,12,0,0,1,24,0v68a8,8,0,0,0,16,0V60a12,12,0,0,1,24,0v68.67A48.08,48.08,0,0,0,120,176a8,8,0,0,0,16,0,32,32,0,0,1,32-32,8,8,0,0,0,8-8V116a12,12,0,0,1,24,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,92a23.9,23.9,0,0,0-16,6.13V60a24,24,0,0,0-40.07-17.8A24,24,0,0,0,84,44V58.13A24,24,0,0,0,44,76v76a84,84,0,0,0,168,0V116A24,24,0,0,0,188,92Zm16,60a76,76,0,0,1-152,0V76a16,16,0,0,1,32,0v44a4,4,0,0,0,8,0V44a16,16,0,0,1,32,0v68a4,4,0,0,0,8,0V60a16,16,0,0,1,32,0v72.18A44.06,44.06,0,0,0,124,176a4,4,0,0,0,8,0,36,36,0,0,1,36-36,4,4,0,0,0,4-4V116a16,16,0,0,1,32,0Z"}))]]),Lz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M253.88,108.11l-25.53-51a20,20,0,0,0-26.83-9L178.34,59.7,131.7,44.58a12.14,12.14,0,0,0-7.4,0L77.66,59.7,54.48,48.11a20,20,0,0,0-26.83,9L2.12,108.11a20,20,0,0,0,9,26.83l26.67,13.34,51.18,37.41A12.15,12.15,0,0,0,93,187.62l62,16a12.27,12.27,0,0,0,3,.38,12,12,0,0,0,8.48-3.52l52.62-52.62,25.83-12.92a20,20,0,0,0,8.95-26.83Zm-58.12,29.15-27.52-26a12,12,0,0,0-16.76.26c-9.66,9.74-25.06,16.81-40.81,9.55l38.19-37h22.72l25.81,51.63ZM47.32,71.37,60.59,78l-22,43.9-13.27-6.63Zm107,107.3L101.23,165l-42-30.66L85.17,82.5,128,68.61l1.69.55L90,107.68l-.13.12a20,20,0,0,0,3.4,31c20.95,13.39,46,12.07,66.33-2.73l19.2,18.15Zm63-56.77-22-43.9,13.27-6.63,21.95,43.9ZM118.55,219a12,12,0,0,1-14.62,8.62l-26.6-6.87a12,12,0,0,1-4.08-1.93L48.92,201a12,12,0,0,1,14.16-19.37l22.47,16.42,24.38,6.29A12,12,0,0,1,118.55,219Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,152l-40,40L96,176,40,136,72.68,70.63,128,56l55.32,14.63L183.6,72H144L98.34,116.29a8,8,0,0,0,1.38,12.42C117.23,139.9,141,139.13,160,120Z",opacity:"0.2"}),r.createElement("path",{d:"M254.3,107.91,228.78,56.85a16,16,0,0,0-21.47-7.15L182.44,62.13,130.05,48.27a8.14,8.14,0,0,0-4.1,0L73.56,62.13,48.69,49.7a16,16,0,0,0-21.47,7.15L1.7,107.9a16,16,0,0,0,7.15,21.47l27,13.51,55.49,39.63a8.06,8.06,0,0,0,2.71,1.25l64,16a8,8,0,0,0,7.6-2.1l55.07-55.08,26.42-13.21a16,16,0,0,0,7.15-21.46Zm-54.89,33.37L165,113.72a8,8,0,0,0-10.68.61C136.51,132.27,116.66,130,104,122L147.24,80h31.81l27.21,54.41ZM41.53,64,62,74.22,36.43,125.27,16,115.06Zm116,119.13L99.42,168.61l-49.2-35.14,28-56L128,64.28l9.8,2.59-45,43.68-.08.09a16,16,0,0,0,2.72,24.81c20.56,13.13,45.37,11,64.91-5L188,152.66Zm62-57.87-25.52-51L214.47,64,240,115.06Zm-87.75,92.67a8,8,0,0,1-7.75,6.06,8.13,8.13,0,0,1-1.95-.24L80.41,213.33a7.89,7.89,0,0,1-2.71-1.25L51.35,193.26a8,8,0,0,1,9.3-13l25.11,17.94L126,208.24A8,8,0,0,1,131.82,217.94Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M254.3,107.91,228.78,56.85a16,16,0,0,0-21.47-7.15L182.44,62.13,130.05,48.27a8.14,8.14,0,0,0-4.1,0L73.56,62.13,48.69,49.7a16,16,0,0,0-21.47,7.15L1.7,107.9a16,16,0,0,0,7.15,21.47l27,13.51,55.49,39.63a8.06,8.06,0,0,0,2.71,1.25l64,16a8,8,0,0,0,7.6-2.1l40-40,15.08-15.08,26.42-13.21a16,16,0,0,0,7.15-21.46Zm-54.89,33.37L165,113.72a8,8,0,0,0-10.68.61C136.51,132.27,116.66,130,104,122L147.24,80h31.81l27.21,54.41Zm-41.87,41.86L99.42,168.61l-49.2-35.14,28-56L128,64.28l9.8,2.59-45,43.68-.08.09a16,16,0,0,0,2.72,24.81c20.56,13.13,45.37,11,64.91-5L188,152.66Zm-25.72,34.8a8,8,0,0,1-7.75,6.06,8.13,8.13,0,0,1-1.95-.24L80.41,213.33a7.89,7.89,0,0,1-2.71-1.25L51.35,193.26a8,8,0,0,1,9.3-13l25.11,17.94L126,208.24A8,8,0,0,1,131.82,217.94Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M252.51,108.8,227,57.75a14,14,0,0,0-18.78-6.27L182.66,64.26,129.53,50.2a6.1,6.1,0,0,0-3.06,0L73.34,64.26,47.79,51.48A14,14,0,0,0,29,57.75L3.49,108.8a14,14,0,0,0,6.26,18.78L36.9,141.16l55.61,39.72a6,6,0,0,0,2,.94l64,16A6.08,6.08,0,0,0,160,198a6,6,0,0,0,4.24-1.76l55.31-55.31,26.7-13.35a14,14,0,0,0,6.26-18.78Zm-53,35.16-35.8-28.68a6,6,0,0,0-8,.45c-18.65,18.79-39.5,16.42-52.79,7.92a2,2,0,0,1-.94-1.5,1.9,1.9,0,0,1,.51-1.55L146.43,78h33.86l28.41,56.82ZM14.11,115.69a2,2,0,0,1,.11-1.52L39.74,63.11a2,2,0,0,1,1.8-1.1,2,2,0,0,1,.89.21l22.21,11.1L37.32,128l-22.21-11.1A2,2,0,0,1,14.11,115.69Zm144.05,69.67-59.6-14.9L47.66,134.1,76.84,75.75,128,62.21l14.8,3.92a5.92,5.92,0,0,0-3,1.57L94.1,112.05a14,14,0,0,0,2.39,21.72c20.22,12.92,44.75,10.49,63.8-5.89L191,152.5Zm83.73-69.67a2,2,0,0,1-1,1.16L218.68,128,191.36,73.32l22.21-11.1a2,2,0,0,1,1.53-.11,2,2,0,0,1,1.16,1l25.52,51.06A2,2,0,0,1,241.89,115.69Zm-112,101.76a6,6,0,0,1-7.27,4.37L80.89,211.39a5.88,5.88,0,0,1-2-.94L52.52,191.64a6,6,0,1,1,7-9.77L84.91,200l40.61,10.15A6,6,0,0,1,129.88,217.45Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M254.3,107.91,228.78,56.85a16,16,0,0,0-21.47-7.15L182.44,62.13,130.05,48.27a8.14,8.14,0,0,0-4.1,0L73.56,62.13,48.69,49.7a16,16,0,0,0-21.47,7.15L1.7,107.9a16,16,0,0,0,7.15,21.47l27,13.51,55.49,39.63a8.06,8.06,0,0,0,2.71,1.25l64,16a8,8,0,0,0,7.6-2.1l55.07-55.08,26.42-13.21a16,16,0,0,0,7.15-21.46Zm-54.89,33.37L165,113.72a8,8,0,0,0-10.68.61C136.51,132.27,116.66,130,104,122L147.24,80h31.81l27.21,54.41ZM41.53,64,62,74.22,36.43,125.27,16,115.06Zm116,119.13L99.42,168.61l-49.2-35.14,28-56L128,64.28l9.8,2.59-45,43.68-.08.09a16,16,0,0,0,2.72,24.81c20.56,13.13,45.37,11,64.91-5L188,152.66Zm62-57.87-25.52-51L214.47,64,240,115.06Zm-87.75,92.67a8,8,0,0,1-7.75,6.06,8.13,8.13,0,0,1-1.95-.24L80.41,213.33a7.89,7.89,0,0,1-2.71-1.25L51.35,193.26a8,8,0,0,1,9.3-13l25.11,17.94L126,208.24A8,8,0,0,1,131.82,217.94Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M250.73,109.69l-25.53-51a12,12,0,0,0-16.1-5.37L182.88,66.38,129,52.14a3.92,3.92,0,0,0-2,0L73.12,66.38,46.9,53.27a12,12,0,0,0-16.1,5.37L5.27,109.69a12,12,0,0,0,5.37,16.1l27.29,13.65,55.75,39.82a3.87,3.87,0,0,0,1.35.62l64,16a4,4,0,0,0,3.8-1l55.54-55.54,27-13.5a12,12,0,0,0,5.37-16.1Zm-51,36.95-37.2-29.8a4,4,0,0,0-5.34.3c-19.49,19.64-41.34,17.11-55.29,8.2a4.07,4.07,0,0,1-1.85-3,3.91,3.91,0,0,1,1.11-3.21L145.62,76h35.91l29.6,59.21ZM12.21,116.32a4,4,0,0,1,.22-3L38,62.22h0A4,4,0,0,1,41.54,60a4,4,0,0,1,1.78.43l24,12L38.21,130.64l-24-12A4,4,0,0,1,12.21,116.32Zm146.56,71.25L97.71,172.3l-52.6-37.57L75.45,74,128,60.14,157.72,68H144a4,4,0,0,0-2.79,1.13l-45.7,44.33a12,12,0,0,0,2.06,18.62c19.88,12.71,44.13,10,62.66-6.81L194,152.33Zm85-71.25a4,4,0,0,1-2,2.32l-24,12L188.68,72.43l24-12A4,4,0,0,1,218,62.22l25.53,51.05A4,4,0,0,1,243.79,116.32ZM127.94,217a4,4,0,0,1-3.88,3,4.09,4.09,0,0,1-1-.12L81.38,209.45a4,4,0,0,1-1.36-.62L53.68,190a4,4,0,0,1,4.65-6.51l25.72,18.37,41,10.25A4,4,0,0,1,127.94,217Z"}))]]),kz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M204.73,51.85A108.07,108.07,0,0,0,20,128v56a28,28,0,0,0,28,28H64a28,28,0,0,0,28-28V144a28,28,0,0,0-28-28H44.84A84.05,84.05,0,0,1,128,44h.64a83.7,83.7,0,0,1,82.52,72H192a28,28,0,0,0-28,28v40a28,28,0,0,0,28,28h19.6A20,20,0,0,1,192,228H136a12,12,0,0,0,0,24h56a44.05,44.05,0,0,0,44-44V128A107.34,107.34,0,0,0,204.73,51.85ZM64,140a4,4,0,0,1,4,4v40a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V140Zm124,44V144a4,4,0,0,1,4-4h20v48H192A4,4,0,0,1,188,184Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M80,144v40a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V128H64A16,16,0,0,1,80,144Zm112-16a16,16,0,0,0-16,16v40a16,16,0,0,0,16,16h32V128Z",opacity:"0.2"}),r.createElement("path",{d:"M201.89,54.66A104.08,104.08,0,0,0,24,128v56a24,24,0,0,0,24,24H64a24,24,0,0,0,24-24V144a24,24,0,0,0-24-24H40.36A88.12,88.12,0,0,1,190.54,65.93,87.39,87.39,0,0,1,215.65,120H192a24,24,0,0,0-24,24v40a24,24,0,0,0,24,24h24a24,24,0,0,1-24,24H136a8,8,0,0,0,0,16h56a40,40,0,0,0,40-40V128A103.41,103.41,0,0,0,201.89,54.66ZM64,136a8,8,0,0,1,8,8v40a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V136Zm128,56a8,8,0,0,1-8-8V144a8,8,0,0,1,8-8h24v56Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,128v80a40,40,0,0,1-40,40H136a8,8,0,0,1,0-16h56a24,24,0,0,0,24-24H192a24,24,0,0,1-24-24V144a24,24,0,0,1,24-24h23.65A88,88,0,0,0,66,65.54,87.29,87.29,0,0,0,40.36,120H64a24,24,0,0,1,24,24v40a24,24,0,0,1-24,24H48a24,24,0,0,1-24-24V128A104.11,104.11,0,0,1,201.89,54.66,103.41,103.41,0,0,1,232,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200.47,56.07A101.37,101.37,0,0,0,128.77,26H128A102,102,0,0,0,26,128v56a22,22,0,0,0,22,22H64a22,22,0,0,0,22-22V144a22,22,0,0,0-22-22H38.2A90,90,0,0,1,128,38h.68a89.71,89.71,0,0,1,89.13,84H192a22,22,0,0,0-22,22v40a22,22,0,0,0,22,22h26v2a26,26,0,0,1-26,26H136a6,6,0,0,0,0,12h56a38,38,0,0,0,38-38V128A101.44,101.44,0,0,0,200.47,56.07ZM64,134a10,10,0,0,1,10,10v40a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V134Zm118,50V144a10,10,0,0,1,10-10h26v60H192A10,10,0,0,1,182,184Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M201.89,54.66A103.43,103.43,0,0,0,128.79,24H128A104,104,0,0,0,24,128v56a24,24,0,0,0,24,24H64a24,24,0,0,0,24-24V144a24,24,0,0,0-24-24H40.36A88.12,88.12,0,0,1,190.54,65.93,87.39,87.39,0,0,1,215.65,120H192a24,24,0,0,0-24,24v40a24,24,0,0,0,24,24h24a24,24,0,0,1-24,24H136a8,8,0,0,0,0,16h56a40,40,0,0,0,40-40V128A103.41,103.41,0,0,0,201.89,54.66ZM64,136a8,8,0,0,1,8,8v40a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V136Zm128,56a8,8,0,0,1-8-8V144a8,8,0,0,1,8-8h24v56Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M199.05,57.48A100.07,100.07,0,0,0,28,128v56a20,20,0,0,0,20,20H64a20,20,0,0,0,20-20V144a20,20,0,0,0-20-20H36.08A92,92,0,0,1,128,36h.7a91.75,91.75,0,0,1,91.22,88H192a20,20,0,0,0-20,20v40a20,20,0,0,0,20,20h28v4a28,28,0,0,1-28,28H136a4,4,0,0,0,0,8h56a36,36,0,0,0,36-36V128A99.44,99.44,0,0,0,199.05,57.48ZM64,132a12,12,0,0,1,12,12v40a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V132Zm116,52V144a12,12,0,0,1,12-12h28v64H192A12,12,0,0,1,180,184Z"}))]]),Rz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M178,36c-20.09,0-37.92,7.93-50,21.56C115.92,43.93,98.09,36,78,36a66.08,66.08,0,0,0-66,66c0,72.34,105.81,130.14,110.31,132.57a12,12,0,0,0,11.38,0C138.19,232.14,244,174.34,244,102A66.08,66.08,0,0,0,178,36Zm-5.49,142.36A328.69,328.69,0,0,1,128,210.16a328.69,328.69,0,0,1-44.51-31.8C61.82,159.77,36,131.42,36,102A42,42,0,0,1,78,60c17.8,0,32.7,9.4,38.89,24.54a12,12,0,0,0,22.22,0C145.3,69.4,160.2,60,178,60a42,42,0,0,1,42,42C220,131.42,194.18,159.77,172.51,178.36Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,102c0,66-104,122-104,122S24,168,24,102A54,54,0,0,1,78,48c22.59,0,41.94,12.31,50,32,8.06-19.69,27.41-32,50-32A54,54,0,0,1,232,102Z",opacity:"0.2"}),r.createElement("path",{d:"M178,40c-20.65,0-38.73,8.88-50,23.89C116.73,48.88,98.65,40,78,40a62.07,62.07,0,0,0-62,62c0,70,103.79,126.66,108.21,129a8,8,0,0,0,7.58,0C136.21,228.66,240,172,240,102A62.07,62.07,0,0,0,178,40ZM128,214.8C109.74,204.16,32,155.69,32,102A46.06,46.06,0,0,1,78,56c19.45,0,35.78,10.36,42.6,27a8,8,0,0,0,14.8,0c6.82-16.67,23.15-27,42.6-27a46.06,46.06,0,0,1,46,46C224,155.61,146.24,204.15,128,214.8Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,102c0,70-103.79,126.66-108.21,129a8,8,0,0,1-7.58,0C119.79,228.66,16,172,16,102A62.07,62.07,0,0,1,78,40c20.65,0,38.73,8.88,50,23.89C139.27,48.88,157.35,40,178,40A62.07,62.07,0,0,1,240,102Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M178,42c-21,0-39.26,9.47-50,25.34C117.26,51.47,99,42,78,42a60.07,60.07,0,0,0-60,60c0,29.2,18.2,59.59,54.1,90.31a334.68,334.68,0,0,0,53.06,37,6,6,0,0,0,5.68,0,334.68,334.68,0,0,0,53.06-37C219.8,161.59,238,131.2,238,102A60.07,60.07,0,0,0,178,42ZM128,217.11C111.59,207.64,30,157.72,30,102A48.05,48.05,0,0,1,78,54c20.28,0,37.31,10.83,44.45,28.27a6,6,0,0,0,11.1,0C140.69,64.83,157.72,54,178,54a48.05,48.05,0,0,1,48,48C226,157.72,144.41,207.64,128,217.11Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M178,40c-20.65,0-38.73,8.88-50,23.89C116.73,48.88,98.65,40,78,40a62.07,62.07,0,0,0-62,62c0,70,103.79,126.66,108.21,129a8,8,0,0,0,7.58,0C136.21,228.66,240,172,240,102A62.07,62.07,0,0,0,178,40ZM128,214.8C109.74,204.16,32,155.69,32,102A46.06,46.06,0,0,1,78,56c19.45,0,35.78,10.36,42.6,27a8,8,0,0,0,14.8,0c6.82-16.67,23.15-27,42.6-27a46.06,46.06,0,0,1,46,46C224,155.61,146.24,204.15,128,214.8Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M178,44c-21.44,0-39.92,10.19-50,27.07C117.92,54.19,99.44,44,78,44a58.07,58.07,0,0,0-58,58c0,28.59,18,58.47,53.4,88.79a333.81,333.81,0,0,0,52.7,36.73,4,4,0,0,0,3.8,0,333.81,333.81,0,0,0,52.7-36.73C218,160.47,236,130.59,236,102A58.07,58.07,0,0,0,178,44ZM128,219.42c-14-8-100-59.35-100-117.42A50.06,50.06,0,0,1,78,52c21.11,0,38.85,11.31,46.3,29.51a4,4,0,0,0,7.4,0C139.15,63.31,156.89,52,178,52a50.06,50.06,0,0,1,50,50C228,160,142,211.46,128,219.42Z"}))]]),Dz=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,56v64H160V56ZM40,208a8,8,0,0,0,8,8H88a8,8,0,0,0,8-8V120H40Z",opacity:"0.2"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),Fz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M180,232a12,12,0,0,1-12,12H88a12,12,0,0,1,0-24h80A12,12,0,0,1,180,232Zm40-128a91.51,91.51,0,0,1-35.17,72.35A12.26,12.26,0,0,0,180,186v2a20,20,0,0,1-20,20H96a20,20,0,0,1-20-20v-2a12,12,0,0,0-4.7-9.51A91.57,91.57,0,0,1,36,104.52C35.73,54.69,76,13.2,125.79,12A92,92,0,0,1,220,104Zm-24,0a68,68,0,0,0-69.65-68C89.56,36.88,59.8,67.55,60,104.38a67.71,67.71,0,0,0,26.1,53.19A35.87,35.87,0,0,1,100,184h56.1A36.13,36.13,0,0,1,170,157.49,67.68,67.68,0,0,0,196,104Zm-20.07-5.32a48.5,48.5,0,0,0-31.91-40,12,12,0,0,0-8,22.62,24.31,24.31,0,0,1,16.09,20,12,12,0,0,0,23.86-2.64Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,104a79.86,79.86,0,0,1-30.59,62.92A24.29,24.29,0,0,0,168,186v6a8,8,0,0,1-8,8H96a8,8,0,0,1-8-8v-6a24.11,24.11,0,0,0-9.3-19A79.87,79.87,0,0,1,48,104.45C47.76,61.09,82.72,25,126.07,24A80,80,0,0,1,208,104Z",opacity:"0.2"}),r.createElement("path",{d:"M176,232a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,232Zm40-128a87.55,87.55,0,0,1-33.64,69.21A16.24,16.24,0,0,0,176,186v6a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16v-6a16,16,0,0,0-6.23-12.66A87.59,87.59,0,0,1,40,104.49C39.74,56.83,78.26,17.14,125.88,16A88,88,0,0,1,216,104Zm-16,0a72,72,0,0,0-73.74-72c-39,.92-70.47,33.39-70.26,72.39a71.65,71.65,0,0,0,27.64,56.3A32,32,0,0,1,96,186v6h64v-6a32.15,32.15,0,0,1,12.47-25.35A71.65,71.65,0,0,0,200,104Zm-16.11-9.34a57.6,57.6,0,0,0-46.56-46.55,8,8,0,0,0-2.66,15.78c16.57,2.79,30.63,16.85,33.44,33.45A8,8,0,0,0,176,104a9,9,0,0,0,1.35-.11A8,8,0,0,0,183.89,94.66Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,232a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,232Zm40-128a87.55,87.55,0,0,1-33.64,69.21A16.24,16.24,0,0,0,176,186v6a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16v-6a16,16,0,0,0-6.23-12.66A87.59,87.59,0,0,1,40,104.49C39.74,56.83,78.26,17.14,125.88,16A88,88,0,0,1,216,104Zm-32.11-9.34a57.6,57.6,0,0,0-46.56-46.55,8,8,0,0,0-2.66,15.78c16.57,2.79,30.63,16.85,33.44,33.45A8,8,0,0,0,176,104a9,9,0,0,0,1.35-.11A8,8,0,0,0,183.89,94.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M174,232a6,6,0,0,1-6,6H88a6,6,0,0,1,0-12h80A6,6,0,0,1,174,232Zm40-128a85.56,85.56,0,0,1-32.88,67.64A18.23,18.23,0,0,0,174,186v6a14,14,0,0,1-14,14H96a14,14,0,0,1-14-14v-6a18,18,0,0,0-7-14.23h0a85.59,85.59,0,0,1-33-67.24C41.74,57.91,79.39,19.12,125.93,18A86,86,0,0,1,214,104Zm-12,0a74,74,0,0,0-75.79-74C86.17,31,53.78,64.34,54,104.42a73.67,73.67,0,0,0,28.4,57.87A29.92,29.92,0,0,1,94,186v6a2,2,0,0,0,2,2h64a2,2,0,0,0,2-2v-6a30.18,30.18,0,0,1,11.7-23.78A73.59,73.59,0,0,0,202,104Zm-20.08-9A55.58,55.58,0,0,0,137,50.08a6,6,0,1,0-2,11.84C152.38,64.84,167.13,79.6,170.08,97a6,6,0,0,0,5.91,5,6.87,6.87,0,0,0,1-.08A6,6,0,0,0,181.92,95Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,232a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,232Zm40-128a87.55,87.55,0,0,1-33.64,69.21A16.24,16.24,0,0,0,176,186v6a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16v-6a16,16,0,0,0-6.23-12.66A87.59,87.59,0,0,1,40,104.49C39.74,56.83,78.26,17.14,125.88,16A88,88,0,0,1,216,104Zm-16,0a72,72,0,0,0-73.74-72c-39,.92-70.47,33.39-70.26,72.39a71.65,71.65,0,0,0,27.64,56.3A32,32,0,0,1,96,186v6h64v-6a32.15,32.15,0,0,1,12.47-25.35A71.65,71.65,0,0,0,200,104Zm-16.11-9.34a57.6,57.6,0,0,0-46.56-46.55,8,8,0,0,0-2.66,15.78c16.57,2.79,30.63,16.85,33.44,33.45A8,8,0,0,0,176,104a9,9,0,0,0,1.35-.11A8,8,0,0,0,183.89,94.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M172,232a4,4,0,0,1-4,4H88a4,4,0,0,1,0-8h80A4,4,0,0,1,172,232Zm40-128a83.59,83.59,0,0,1-32.11,66.06A20.2,20.2,0,0,0,172,186v6a12,12,0,0,1-12,12H96a12,12,0,0,1-12-12v-6a20,20,0,0,0-7.76-15.81A83.58,83.58,0,0,1,44,104.47C43.75,59,80.52,21.09,126,20a84,84,0,0,1,86,84Zm-8,0a76,76,0,0,0-77.83-76C85,29,51.77,63.27,52,104.43a75.62,75.62,0,0,0,29.17,59.43A28,28,0,0,1,92,186v6a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4v-6a28.14,28.14,0,0,1,10.94-22.2A75.62,75.62,0,0,0,204,104ZM136.66,52.06a4,4,0,0,0-1.32,7.88C153.53,63,169,78.45,172.06,96.67A4,4,0,0,0,176,100a3.88,3.88,0,0,0,.67-.06,4,4,0,0,0,3.27-4.61A53.51,53.51,0,0,0,136.66,52.06Z"}))]]),Oz=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),zz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM40,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24ZM216,180H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,64V192H40V64Z",opacity:"0.2"}),r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["fill",r.createElement(r.Fragment,null,r.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,32ZM192,184H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM40,68H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8ZM216,188H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"}))]]),qz=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,64V192H128V64Z",opacity:"0.2"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),Iz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M209.84,47.44A91.42,91.42,0,0,0,144.62,20h-.35A91.44,91.44,0,0,0,79.15,47L17.76,109.17a20,20,0,0,0,.08,28.21L46.5,166a19.89,19.89,0,0,0,14.15,5.86h.11a19.86,19.86,0,0,0,14.2-6l60.87-62.39a12.07,12.07,0,0,1,16.77-.12,11.63,11.63,0,0,1,3.5,8.35,12.85,12.85,0,0,1-3.66,9.11L90.19,181a20,20,0,0,0-.21,28.5l28.66,28.66a20.08,20.08,0,0,0,28.15.14l61.76-60.44.09-.09C244.65,141.78,245.18,83.31,209.84,47.44ZM60.62,146.21l-23-23L55.81,104.8l22.88,22.88Zm72.2,72.18-23-23,18.61-18,22.88,22.87Zm58.89-57.62L168.48,183.5,145.7,160.73,169.21,138l.15-.14a37,37,0,0,0,10.74-26.37,35.44,35.44,0,0,0-10.85-25.41,36.2,36.2,0,0,0-50.44.48l-.1.11L95.46,110.49,72.68,87.72l23.5-23.8A67.55,67.55,0,0,1,144.27,44h.26a67.62,67.62,0,0,1,48.21,20.29C218.85,90.78,218.38,134.05,191.71,160.77Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168.36,200.36l-30,29.35a8,8,0,0,1-11.26-.05L98.46,201a8,8,0,0,1,.08-11.4l30-29Zm-142-82.76a8,8,0,0,0,0,11.28L55,157.54a8,8,0,0,0,11.38-.06l29.18-29.92L55.77,87.77Z",opacity:"0.2"}),r.createElement("path",{d:"M207,50.25A87.46,87.46,0,0,0,144.6,24h-.33A87.48,87.48,0,0,0,82,49.81L50.11,82.11h0L20.61,112a16,16,0,0,0,.06,22.56l28.66,28.66a15.92,15.92,0,0,0,11.32,4.69h.09a16,16,0,0,0,11.36-4.82L133,100.69a16.08,16.08,0,0,1,22.41-.21,15.6,15.6,0,0,1,4.73,11.19,16.89,16.89,0,0,1-4.85,12L93,183.88a16,16,0,0,0-.17,22.79l28.66,28.66a16.06,16.06,0,0,0,22.52.12L205.81,175C240.26,140.5,240.79,84.56,207,50.25ZM60.65,151.89,32,123.24,55.8,99.12l28.52,28.52ZM132.79,224l-28.68-28.65,24.38-23.57L157,200.32Zm61.76-60.44-26.11,25.54L140,160.68l26.44-25.57.1-.09a33,33,0,0,0,9.57-23.5A31.44,31.44,0,0,0,166.47,89a32.2,32.2,0,0,0-44.9.5L95.49,116.18,67,87.74,93.35,61.09A71.51,71.51,0,0,1,144.27,40h.27a71.55,71.55,0,0,1,51.05,21.48C223.25,89.55,222.75,135.38,194.55,163.58Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M207,50.25A87.46,87.46,0,0,0,144.6,24h-.33A87.48,87.48,0,0,0,82,49.81L20.61,112a16,16,0,0,0,.06,22.56l28.66,28.66a15.92,15.92,0,0,0,11.32,4.69h.09a16,16,0,0,0,11.36-4.82L133,100.69a16.08,16.08,0,0,1,22.41-.21,15.6,15.6,0,0,1,4.73,11.19,16.89,16.89,0,0,1-4.85,12L93,183.88a16,16,0,0,0-.17,22.79l28.66,28.66a16.06,16.06,0,0,0,22.52.12L205.81,175C240.26,140.5,240.79,84.56,207,50.25ZM60.65,151.89,32,123.24,61.42,93.43,89.9,121.91ZM132.79,224l-28.68-28.65,30.13-29.13,28.49,28.48Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M205.56,51.65A85.5,85.5,0,0,0,144.6,26h-.33A85.45,85.45,0,0,0,83.42,51.22L22,113.39a14,14,0,0,0,.06,19.74l28.66,28.66a13.89,13.89,0,0,0,9.9,4.1h.08a13.9,13.9,0,0,0,9.94-4.21l60.87-62.4A18.1,18.1,0,0,1,156.76,99a17.63,17.63,0,0,1,5.34,12.62,19,19,0,0,1-5.44,13.44L94.37,185.31a14,14,0,0,0-.15,19.95l28.67,28.66a14.05,14.05,0,0,0,19.7.1l61.8-60.49C238.07,139.86,238.6,85.18,205.56,51.65ZM62.08,153.29a2,2,0,0,1-1.42.6,2.15,2.15,0,0,1-1.42-.58L30.57,124.65a2,2,0,0,1,0-2.82L55.79,96.28l31.34,31.34Zm72.11,72.15a2,2,0,0,1-2.82,0l-28.66-28.66a2,2,0,0,1-.59-1.43,2,2,0,0,1,.6-1.41L128.51,169l31.34,31.33ZM196,165l-27.52,26.94-31.29-31.29,27.9-27,.07-.08a30.93,30.93,0,0,0,9-22.06,29.47,29.47,0,0,0-9-21.15,30.17,30.17,0,0,0-42.08.46L95.51,119,64.22,87.74,91.94,59.68A73.47,73.47,0,0,1,144.27,38h.28A73.52,73.52,0,0,1,197,60.08C225.44,88.92,224.94,136,196,165Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M207,50.25A87.46,87.46,0,0,0,144.6,24h-.33A87.48,87.48,0,0,0,82,49.81L20.61,112a16,16,0,0,0,.06,22.56l28.66,28.66a15.92,15.92,0,0,0,11.32,4.69h.09a16,16,0,0,0,11.36-4.82L133,100.69a16.08,16.08,0,0,1,22.41-.21,15.6,15.6,0,0,1,4.73,11.19,16.89,16.89,0,0,1-4.85,12L93,183.88a16,16,0,0,0-.17,22.79l28.66,28.66a16.06,16.06,0,0,0,22.52.12L205.81,175C240.26,140.5,240.79,84.56,207,50.25ZM60.65,151.89,32,123.24,55.8,99.12l28.52,28.52ZM132.79,224l-28.68-28.65,24.38-23.57L157,200.32Zm61.76-60.44-26.11,25.54L140,160.68l26.44-25.57.1-.09a33,33,0,0,0,9.57-23.5A31.44,31.44,0,0,0,166.47,89a32.2,32.2,0,0,0-44.9.5L95.49,116.18,67,87.74,93.35,61.09A71.51,71.51,0,0,1,144.27,40h.27a71.55,71.55,0,0,1,51.05,21.48C223.25,89.55,222.75,135.38,194.55,163.58Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M204.13,53.06A83.41,83.41,0,0,0,144.59,28h-.32A83.46,83.46,0,0,0,84.85,52.62L23.46,114.8a12,12,0,0,0,0,16.92l28.67,28.66a11.89,11.89,0,0,0,8.48,3.51h.07a12,12,0,0,0,8.52-3.61l60.89-62.42a20.1,20.1,0,0,1,28-.27,19.54,19.54,0,0,1,6,14,20.87,20.87,0,0,1-6,14.86L95.76,186.75a12,12,0,0,0-.12,17.09L124.3,232.5a12,12,0,0,0,16.89.08L203,172.12C235.88,139.21,236.4,85.8,204.13,53.06ZM63.51,154.69a3.93,3.93,0,0,1-2.83,1.2h0a4,4,0,0,1-2.83-1.17L29.16,126.06a4,4,0,0,1,0-5.64l26.63-27L89.94,127.6Zm72.08,72.18a4,4,0,0,1-5.63,0l-28.67-28.66a4,4,0,0,1,0-5.69l27.2-26.3,34.16,34.15Zm61.76-60.44-28.94,28.32-34.12-34.12,29.41-28.44a29,29,0,0,0,8.4-20.64,27.51,27.51,0,0,0-8.41-19.72,28.14,28.14,0,0,0-39.25.41L95.53,121.87,61.4,87.75,90.52,58.26A75.51,75.51,0,0,1,144.27,36h.29a75.53,75.53,0,0,1,53.87,22.67C227.63,88.3,227.13,136.65,197.35,166.43Z"}))]]),$z=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),Bz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M252,120a52.06,52.06,0,0,0-52-52H160.32c-3.44-.21-52.6-4-99.46-43.3A20,20,0,0,0,28,40V200a19.8,19.8,0,0,0,11.54,18.12,19.86,19.86,0,0,0,21.32-2.81A192.92,192.92,0,0,1,144,174.47v26.2a20,20,0,0,0,8.9,16.64,11.35,11.35,0,0,0,1.39.8l14.44,7.06A20,20,0,0,0,198.37,213l11.09-41.82A52.07,52.07,0,0,0,252,120ZM52,191.63V48.4c36.17,28.07,72.17,38.1,92,41.66V150C124.17,153.52,88.17,163.55,52,191.63ZM176.39,202.2,168,198.1V172h16.4ZM200,148H168V92h32a28,28,0,1,1,0,56Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,120a40,40,0,0,1-40,40H160V80h40A40,40,0,0,1,240,120Z",opacity:"0.2"}),r.createElement("path",{d:"M248,120a48.05,48.05,0,0,0-48-48H160.2c-2.91-.17-53.62-3.74-101.91-44.24A16,16,0,0,0,32,40V200a16,16,0,0,0,26.29,12.25c37.77-31.68,77-40.76,93.71-43.3v31.72A16,16,0,0,0,159.12,214l11,7.33A16,16,0,0,0,194.5,212l11.77-44.36A48.07,48.07,0,0,0,248,120ZM48,199.93V40h0c42.81,35.91,86.63,45,104,47.24v65.48C134.65,155,90.84,164.07,48,199.93Zm131,8,0,.11-11-7.33V168h21.6ZM200,152H168V88h32a32,32,0,1,1,0,64Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,72H160.2c-2.91-.17-53.62-3.74-101.91-44.24A16,16,0,0,0,32,40V200a16,16,0,0,0,26.29,12.25c37.77-31.68,77-40.76,93.71-43.3v31.72A16,16,0,0,0,159.12,214l11,7.33A16,16,0,0,0,194.5,212l11.77-44.36A48,48,0,0,0,200,72ZM179,207.89l0,.11-11-7.33V168h21.6ZM200,152H168V88h32a32,32,0,1,1,0,64Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M246,120a46.05,46.05,0,0,0-46-46H160.15c-2.58-.15-54.1-3.57-103.15-44.71A14,14,0,0,0,34,40V200a13.85,13.85,0,0,0,8.07,12.68A14.16,14.16,0,0,0,48,214a13.9,13.9,0,0,0,9-3.3c40-33.52,81.57-42,97-44.07v34a14,14,0,0,0,6.23,11.65l11,7.33a14,14,0,0,0,21.32-8.17l12.13-45.71A46.07,46.07,0,0,0,246,120ZM49.29,201.52A2,2,0,0,1,46,200V40a1.9,1.9,0,0,1,1.15-1.8A2.08,2.08,0,0,1,48,38a1.91,1.91,0,0,1,1.26.48c44,36.92,89,45.19,104.71,47v69C138.29,156.33,93.3,164.61,49.29,201.52Zm131.64,7a2,2,0,0,1-3.05,1.18l-11-7.33a2,2,0,0,1-.89-1.67V166h26.2ZM200,154H166V86h34a34,34,0,1,1,0,68Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M248,120a48.05,48.05,0,0,0-48-48H160.2c-2.91-.17-53.62-3.74-101.91-44.24A16,16,0,0,0,32,40V200a16,16,0,0,0,26.29,12.25c37.77-31.68,77-40.76,93.71-43.3v31.72A16,16,0,0,0,159.12,214l11,7.33A16,16,0,0,0,194.5,212l11.77-44.36A48.07,48.07,0,0,0,248,120ZM48,199.93V40h0c42.81,35.91,86.63,45,104,47.24v65.48C134.65,155,90.84,164.07,48,199.93Zm131,8,0,.11-11-7.33V168h21.6ZM200,152H168V88h32a32,32,0,1,1,0,64Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,76H160.1c-2.19-.11-54.55-3.38-104.38-45.17A12,12,0,0,0,36,40V200a11.88,11.88,0,0,0,6.92,10.87A12.18,12.18,0,0,0,48,212a11.93,11.93,0,0,0,7.69-2.83c42.46-35.62,86.76-43.25,100.28-44.8v36.29a12,12,0,0,0,5.34,10l11,7.33a12,12,0,0,0,18.28-7l12.49-47.09A44,44,0,0,0,200,76Zm-44,80.3c-13.53,1.35-60,8.62-105.42,46.75A4,4,0,0,1,44,200V40a4,4,0,0,1,2.3-3.62A4.32,4.32,0,0,1,48.05,36a3.88,3.88,0,0,1,2.53,1C96,75.09,142.47,82.36,156,83.71ZM182.87,209a4,4,0,0,1-6.1,2.36l-11-7.33a4,4,0,0,1-1.78-3.33V164h30.8ZM200,156H164V84h36a36,36,0,0,1,0,72Z"}))]]),Pz=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),Uz=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),Gz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.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"}),r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"}))],["fill",r.createElement(r.Fragment,null,r.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,136H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128Z"}))]]),Yz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M92,108a12,12,0,0,1,12-12h72a12,12,0,0,1,0,24H104A12,12,0,0,1,92,108Zm12,52h72a12,12,0,0,0,0-24H104a12,12,0,0,0,0,24ZM236,64V184a28,28,0,0,1-28,28H36A32,32,0,0,1,4,180V88a12,12,0,0,1,24,0v92a8,8,0,0,0,16,0V64A20,20,0,0,1,64,44H216A20,20,0,0,1,236,64Zm-24,4H68V180a32,32,0,0,1-1,8H208a4,4,0,0,0,4-4Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,64V184a16,16,0,0,1-16,16H32a16,16,0,0,0,16-16V64a8,8,0,0,1,8-8H216A8,8,0,0,1,224,64Z",opacity:"0.2"}),r.createElement("path",{d:"M88,112a8,8,0,0,1,8-8h80a8,8,0,0,1,0,16H96A8,8,0,0,1,88,112Zm8,40h80a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16ZM232,64V184a24,24,0,0,1-24,24H32A24,24,0,0,1,8,184.11V88a8,8,0,0,1,16,0v96a8,8,0,0,0,16,0V64A16,16,0,0,1,56,48H216A16,16,0,0,1,232,64Zm-16,0H56V184a23.84,23.84,0,0,1-1.37,8H208a8,8,0,0,0,8-8Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48H56A16,16,0,0,0,40,64V184a8,8,0,0,1-16,0V88A8,8,0,0,0,8,88v96.11A24,24,0,0,0,32,208H208a24,24,0,0,0,24-24V64A16,16,0,0,0,216,48ZM176,152H96a8,8,0,0,1,0-16h80a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h80a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M182,112a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h80A6,6,0,0,1,182,112Zm-6,26H96a6,6,0,0,0,0,12h80a6,6,0,0,0,0-12Zm54-74V184a22,22,0,0,1-22,22H32a22,22,0,0,1-22-21.91V88a6,6,0,0,1,12,0v96a10,10,0,0,0,20,0V64A14,14,0,0,1,56,50H216A14,14,0,0,1,230,64Zm-12,0a2,2,0,0,0-2-2H56a2,2,0,0,0-2,2V184a21.84,21.84,0,0,1-2.41,10H208a10,10,0,0,0,10-10Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M88,112a8,8,0,0,1,8-8h80a8,8,0,0,1,0,16H96A8,8,0,0,1,88,112Zm8,40h80a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16ZM232,64V184a24,24,0,0,1-24,24H32A24,24,0,0,1,8,184.11V88a8,8,0,0,1,16,0v96a8,8,0,0,0,16,0V64A16,16,0,0,1,56,48H216A16,16,0,0,1,232,64Zm-16,0H56V184a23.84,23.84,0,0,1-1.37,8H208a8,8,0,0,0,8-8Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M180,112a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h80A4,4,0,0,1,180,112Zm-4,28H96a4,4,0,0,0,0,8h80a4,4,0,0,0,0-8Zm52-76V184a20,20,0,0,1-20,20H32a20,20,0,0,1-20-19.92V88a4,4,0,0,1,8,0v96a12,12,0,0,0,24,0V64A12,12,0,0,1,56,52H216A12,12,0,0,1,228,64Zm-8,0a4,4,0,0,0-4-4H56a4,4,0,0,0-4,4V184a19.86,19.86,0,0,1-4,12H208a12,12,0,0,0,12-12Z"}))]]),Kz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M84,108A12,12,0,0,1,96,96h64a12,12,0,0,1,0,24H96A12,12,0,0,1,84,108Zm32,28H96a12,12,0,0,0,0,24h20a12,12,0,0,0,0-24ZM228,48V156.69a19.86,19.86,0,0,1-5.86,14.14l-51.31,51.31A19.86,19.86,0,0,1,156.69,228H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28H208A20,20,0,0,1,228,48ZM52,204h92V156a12,12,0,0,1,12-12h48V52H52Zm139-36H168v23Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,160l-56,56V160Z",opacity:"0.2"}),r.createElement("path",{d:"M88,96a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,96Zm8,40h64a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16Zm32,16H96a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16ZM224,48V156.69A15.86,15.86,0,0,1,219.31,168L168,219.31A15.86,15.86,0,0,1,156.69,224H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H152V160a8,8,0,0,1,8-8h48V48H48Zm120-40v28.7L196.69,168Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H156.69A15.92,15.92,0,0,0,168,219.31L219.31,168A15.92,15.92,0,0,0,224,156.69V48A16,16,0,0,0,208,32ZM96,88h64a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16Zm32,80H96a8,8,0,0,1,0-16h32a8,8,0,0,1,0,16ZM96,136a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm64,68.69V160h44.7Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M90,96a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H96A6,6,0,0,1,90,96Zm6,38h64a6,6,0,0,0,0-12H96a6,6,0,0,0,0,12Zm32,20H96a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12ZM222,48V156.69a13.94,13.94,0,0,1-4.1,9.9L166.59,217.9a13.94,13.94,0,0,1-9.9,4.1H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34H208A14,14,0,0,1,222,48ZM48,210H154V160a6,6,0,0,1,6-6h50V48a2,2,0,0,0-2-2H48a2,2,0,0,0-2,2V208A2,2,0,0,0,48,210Zm153.52-44H166v35.52Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M88,96a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,96Zm8,40h64a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16Zm32,16H96a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16ZM224,48V156.69A15.86,15.86,0,0,1,219.31,168L168,219.31A15.86,15.86,0,0,1,156.69,224H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H152V160a8,8,0,0,1,8-8h48V48H48Zm120-40v28.7L196.69,168Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M92,96a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H96A4,4,0,0,1,92,96Zm4,36h64a4,4,0,0,0,0-8H96a4,4,0,0,0,0,8Zm32,24H96a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8ZM220,48V156.69a11.9,11.9,0,0,1-3.52,8.48l-51.31,51.32a11.93,11.93,0,0,1-8.48,3.51H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36H208A12,12,0,0,1,220,48ZM48,212H156V160a4,4,0,0,1,4-4h52V48a4,4,0,0,0-4-4H48a4,4,0,0,0-4,4V208A4,4,0,0,0,48,212Zm158.35-48H164v42.35Z"}))]]),Xz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M108,108a12,12,0,0,1,12-12h56a12,12,0,0,1,0,24H120A12,12,0,0,1,108,108Zm68,28H120a12,12,0,0,0,0,24h56a12,12,0,0,0,0-24Zm52-88V208a20,20,0,0,1-20,20H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28H208A20,20,0,0,1,228,48ZM52,204H68V52H52ZM204,52H92V204H204Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M80,40V216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8Z",opacity:"0.2"}),r.createElement("path",{d:"M184,112a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h64A8,8,0,0,1,184,112Zm-8,24H112a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm48-88V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H72V48H48Zm160,0V48H88V208H208Z"}))],["fill",r.createElement(r.Fragment,null,r.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,32ZM80,208H48V48H80Zm96-56H112a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H112a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M182,112a6,6,0,0,1-6,6H112a6,6,0,0,1,0-12h64A6,6,0,0,1,182,112Zm-6,26H112a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm46-90V208a14,14,0,0,1-14,14H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34H208A14,14,0,0,1,222,48ZM48,210H74V46H48a2,2,0,0,0-2,2V208A2,2,0,0,0,48,210ZM210,48a2,2,0,0,0-2-2H86V210H208a2,2,0,0,0,2-2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,112a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h64A8,8,0,0,1,184,112Zm-8,24H112a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm48-88V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H72V48H48Zm160,0V48H88V208H208Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M180,112a4,4,0,0,1-4,4H112a4,4,0,0,1,0-8h64A4,4,0,0,1,180,112Zm-4,28H112a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm44-92V208a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36H208A12,12,0,0,1,220,48ZM48,212H76V44H48a4,4,0,0,0-4,4V208A4,4,0,0,0,48,212ZM212,48a4,4,0,0,0-4-4H84V212H208a4,4,0,0,0,4-4Z"}))]]),Qz=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),Jz=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),Wz=new Map([["bold",r.createElement(r.Fragment,null,r.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.28ZM93,180l71-71,11,11-71,71ZM76,163,65,152l71-71,11,11ZM52,173l15.51,15.51h0L83,204H52ZM192,103,153,64l18.34-18.34,39,39Z"}))],["duotone",r.createElement(r.Fragment,null,r.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"}),r.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.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"}))],["fill",r.createElement(r.Fragment,null,r.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.63ZM51.31,160l90.35-90.35,16.68,16.69L68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188l90.35-90.35h0l16.68,16.69Z"}))],["light",r.createElement(r.Fragment,null,r.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.8ZM48.49,160,136,72.48,155.51,92,68,179.51ZM46,208V174.48L81.51,210H48A2,2,0,0,1,46,208Zm50-.49L76.49,188,164,100.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",r.createElement(r.Fragment,null,r.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.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.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-17ZM45.66,160,136,69.65,158.34,92,68,182.34ZM44,208V169.66l21.17,21.17h0L86.34,212H48A4,4,0,0,1,44,208Zm52,2.34L73.66,188,164,97.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"}))]]),eq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.15,70.54,185.46,25.86a20,20,0,0,0-28.28,0L33.86,149.17A19.86,19.86,0,0,0,28,163.31V208a20,20,0,0,0,20,20H216a12,12,0,0,0,0-24H125L230.15,98.83A20,20,0,0,0,230.15,70.54ZM136,81l11,11L76,163,65,152ZM52,204V173l15.52,15.51h0L83,204Zm52-13L93,180l71-71,11,11Zm88-88L153,64l18.34-18.34,39,39Z"}))],["duotone",r.createElement(r.Fragment,null,r.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"}),r.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM79.32,188,164,103.31,180.69,120,96,204.69ZM68,176.69,51.31,160,136,75.31,152.69,92Zm-20,2.62L76.69,208H48Zm144-70.62L147.32,64l24-24L216,84.69Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM79.32,188l90.34-90.34,16.69,16.68L96,204.69Zm79-101.66h0L68,176.69,51.31,160l90.35-90.34ZM48,179.31,76.69,208H48Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M225.91,74.79,181.22,30.1a14,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,14H216a6,6,0,0,0,0-12H110.49L225.91,94.59A14,14,0,0,0,225.91,74.79ZM76.49,188,164,100.48,183.52,120,96,207.51ZM68,179.52,48.49,160,136,72.49,155.52,92ZM46,208V174.48L81.52,210H48A2,2,0,0,1,46,208ZM217.42,86.1,192,111.52,144.49,64,169.9,38.59a2,2,0,0,1,2.83,0l44.69,44.68A2,2,0,0,1,217.42,86.1Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM136,75.31,152.69,92,68,176.69,51.31,160ZM48,208V179.31L76.69,208Zm48-3.31L79.32,188,164,103.31,180.69,120Zm96-96L147.32,64l24-24L216,84.69Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.51,154.83A12,12,0,0,0,36,163.31V208a12,12,0,0,0,12,12H216a4,4,0,0,0,0-8H105.66L224.49,93.17A12,12,0,0,0,224.49,76.2ZM73.66,188,164,97.66,186.35,120,96,210.34ZM68,182.34,45.66,160,136,69.66,158.35,92ZM44,208V169.66l21.17,21.17h0L86.34,212H48A4,4,0,0,1,44,208ZM218.83,87.51,192,114.34,141.66,64l26.83-26.83a4,4,0,0,1,5.66,0l44.68,44.69A4,4,0,0,1,218.83,87.51Z"}))]]),tq=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),aq=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),nq=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),rq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240.49,63.51a12,12,0,0,0-17,0L192,95,161,64l31.52-31.51a12,12,0,0,0-17-17L144,47,120.49,23.51a12,12,0,1,0-17,17L107,44,56.89,94.14a44,44,0,0,0,0,62.23l12.88,12.88L23.51,215.51a12,12,0,0,0,17,17l46.26-46.26,12.88,12.88a44,44,0,0,0,62.23,0L212,149l3.51,3.52a12,12,0,0,0,17-17L209,112l31.52-31.51A12,12,0,0,0,240.49,63.51Zm-95.6,118.63a20,20,0,0,1-28.29,0L73.86,139.4a20,20,0,0,1,0-28.29L124,61l71,71Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212,132l-58.63,58.63a32,32,0,0,1-45.25,0L65.37,147.88a32,32,0,0,1,0-45.25L124,44Z",opacity:"0.2"}),r.createElement("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.66,77.66,203.31,112l26.35,26.34a8,8,0,0,1-11.32,11.32L212,143.31l-53,53a40,40,0,0,1-56.57,0L86.75,180.57,37.66,229.66a8,8,0,0,1-11.32-11.32l49.09-49.09L59.72,153.54a40,40,0,0,1,0-56.57l53-53-6.35-6.34a8,8,0,0,1,11.32-11.32L144,52.69l34.34-34.35a8,8,0,1,1,11.32,11.32L155.31,64,192,100.69l34.34-34.35a8,8,0,0,1,11.32,11.32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.24,67.76a6,6,0,0,0-8.48,0L192,103.51,152.49,64l35.75-35.76a6,6,0,0,0-8.48-8.48L144,55.51,116.24,27.76a6,6,0,1,0-8.48,8.48L115.51,44,61.13,98.38a38,38,0,0,0,0,53.75l17.13,17.12-50.5,50.51a6,6,0,1,0,8.48,8.48l50.51-50.5,17.13,17.13a38,38,0,0,0,53.74,0L212,140.49l7.76,7.75a6,6,0,0,0,8.48-8.48L200.49,112l35.75-35.76A6,6,0,0,0,236.24,67.76ZM149.13,186.38a26,26,0,0,1-36.77,0L69.62,143.64a26,26,0,0,1,0-36.77L124,52.49,203.51,132Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.83,69.17a4,4,0,0,0-5.66,0L192,106.34,149.66,64l37.17-37.17a4,4,0,1,0-5.66-5.66L144,58.34,114.83,29.17a4,4,0,0,0-5.66,5.66L118.34,44,62.54,99.8a36.05,36.05,0,0,0,0,50.91l18.55,18.54L29.17,221.17a4,4,0,0,0,5.66,5.66l51.92-51.92,18.54,18.55a36.06,36.06,0,0,0,50.91,0l55.8-55.8,9.17,9.17a4,4,0,0,0,5.66-5.66L197.66,112l37.17-37.17A4,4,0,0,0,234.83,69.17ZM150.54,187.8a28,28,0,0,1-39.59,0L68.2,145.05a28,28,0,0,1,0-39.59L124,49.66,206.34,132Z"}))]]),sq=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),lq=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),iq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M116,128V48a12,12,0,0,1,24,0v80a12,12,0,0,1-24,0Zm66.55-82a12,12,0,0,0-13.1,20.1C191.41,80.37,204,103,204,128a76,76,0,0,1-152,0c0-25,12.59-47.63,34.55-61.95A12,12,0,0,0,73.45,46C44.56,64.78,28,94.69,28,128a100,100,0,0,0,200,0C228,94.69,211.44,64.78,182.55,46Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),r.createElement("path",{d:"M120,128V48a8,8,0,0,1,16,0v80a8,8,0,0,1-16,0Zm60.37-78.7a8,8,0,0,0-8.74,13.4C194.74,77.77,208,101.57,208,128a80,80,0,0,1-160,0c0-26.43,13.26-50.23,36.37-65.3a8,8,0,0,0-8.74-13.4C47.9,67.38,32,96.06,32,128a96,96,0,0,0,192,0C224,96.06,208.1,67.38,180.37,49.3Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104,104,0,0,0,128,24Zm-8,40a8,8,0,0,1,16,0v64a8,8,0,0,1-16,0Zm8,144A80,80,0,0,1,83.55,61.48a8,8,0,1,1,8.9,13.29,64,64,0,1,0,71.1,0,8,8,0,1,1,8.9-13.29A80,80,0,0,1,128,208Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M122,128V48a6,6,0,0,1,12,0v80a6,6,0,0,1-12,0Zm57.28-77A6,6,0,0,0,172.72,61C196.41,76.47,210,100.88,210,128a82,82,0,0,1-164,0c0-27.12,13.59-51.53,37.28-67A6,6,0,0,0,76.72,51C49.57,68.68,34,96.75,34,128a94,94,0,0,0,188,0C222,96.75,206.43,68.68,179.28,51Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M120,128V48a8,8,0,0,1,16,0v80a8,8,0,0,1-16,0Zm60.37-78.7a8,8,0,0,0-8.74,13.4C194.74,77.77,208,101.57,208,128a80,80,0,0,1-160,0c0-26.43,13.26-50.23,36.37-65.3a8,8,0,0,0-8.74-13.4C47.9,67.38,32,96.06,32,128a96,96,0,0,0,192,0C224,96.06,208.1,67.38,180.37,49.3Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M124,128V48a4,4,0,0,1,8,0v80a4,4,0,0,1-8,0Zm54.18-75.35a4,4,0,1,0-4.36,6.7C198.08,75.17,212,100.2,212,128a84,84,0,0,1-168,0c0-27.8,13.92-52.83,38.18-68.65a4,4,0,0,0-4.36-6.7C51.24,70,36,97.44,36,128a92,92,0,0,0,184,0C220,97.44,204.76,70,178.18,52.65Z"}))]]),oq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M244,128a12,12,0,0,1-12,12H207.42l-36.69,73.37A12,12,0,0,1,160,220h-.6a12,12,0,0,1-10.61-7.72L95,71.15,66.92,133A12,12,0,0,1,56,140H24a12,12,0,0,1,0-24H48.27L85.08,35a12,12,0,0,1,22.13.7l54.28,142.46,27.78-55.56A12,12,0,0,1,200,116h32A12,12,0,0,1,244,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M96,40l33.52,88H56Zm104,88H129.52L160,208Z",opacity:"0.2"}),r.createElement("path",{d:"M240,128a8,8,0,0,1-8,8H204.94l-37.78,75.58A8,8,0,0,1,160,216h-.4a8,8,0,0,1-7.08-5.14L95.35,60.76,63.28,131.31A8,8,0,0,1,56,136H24a8,8,0,0,1,0-16H50.85L88.72,36.69a8,8,0,0,1,14.76.46l57.51,151,31.85-63.71A8,8,0,0,1,200,120h32A8,8,0,0,1,240,128Z"}))],["fill",r.createElement(r.Fragment,null,r.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,40Zm-8,96H188.64L159,188a8,8,0,0,1-6.95,4h-.46a8,8,0,0,1-6.89-4.84L103,89.92,79,132a8,8,0,0,1-7,4H48a8,8,0,0,1,0-16H67.36L97.05,68a8,8,0,0,1,14.3.82L153,166.08l24-42.05a8,8,0,0,1,6.95-4h24a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M238,128a6,6,0,0,1-6,6H203.71l-38.34,76.68A6,6,0,0,1,160,214h-.3a6,6,0,0,1-5.31-3.85L95.51,55.57,61.46,130.48A6,6,0,0,1,56,134H24a6,6,0,0,1,0-12H52.14l38.4-84.48a6,6,0,0,1,11.07.34L160.74,193.1l33.89-67.78A6,6,0,0,1,200,122h32A6,6,0,0,1,238,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,128a8,8,0,0,1-8,8H204.94l-37.78,75.58A8,8,0,0,1,160,216h-.4a8,8,0,0,1-7.08-5.14L95.35,60.76,63.28,131.31A8,8,0,0,1,56,136H24a8,8,0,0,1,0-16H50.85L88.72,36.69a8,8,0,0,1,14.76.46l57.51,151,31.85-63.71A8,8,0,0,1,200,120h32A8,8,0,0,1,240,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,128a4,4,0,0,1-4,4H202.47l-38.89,77.79A4,4,0,0,1,160,212h-.2a4,4,0,0,1-3.54-2.58l-60.59-159-36,79.28A4,4,0,0,1,56,132H24a4,4,0,0,1,0-8H53.42L92.36,38.35a4,4,0,0,1,7.38.23L160.5,198.06l35.92-71.85A4,4,0,0,1,200,124h32A4,4,0,0,1,236,128Z"}))]]),cq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96Zm4,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-60,76V148a12,12,0,0,1,24,0v24a12,12,0,0,1-24,0Zm84-8a12,12,0,0,1-12,12H196v32a12,12,0,0,1-12,12H148a12,12,0,0,1,0-24h24V148a12,12,0,0,1,24,0v4h12A12,12,0,0,1,220,164Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm-8,88H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96-96H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Z",opacity:"0.2"}),r.createElement("path",{d:"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm0,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48ZM200,40H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-64,72V144a8,8,0,0,1,16,0v32a8,8,0,0,1-16,0Zm80-16a8,8,0,0,1-8,8H184v40a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h24V144a8,8,0,0,1,16,0v8h24A8,8,0,0,1,216,160Zm0,32v16a8,8,0,0,1-16,0V192a8,8,0,0,1,16,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm-16,80H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96-96H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40ZM144,184a8,8,0,0,0,8-8V144a8,8,0,0,0-16,0v32A8,8,0,0,0,144,184Zm64-32H184v-8a8,8,0,0,0-16,0v56H144a8,8,0,0,0,0,16h32a8,8,0,0,0,8-8V168h24a8,8,0,0,0,0-16Zm0,32a8,8,0,0,0-8,8v16a8,8,0,0,0,16,0V192A8,8,0,0,0,208,184Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-2,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2ZM200,42H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-64,72V144a6,6,0,0,1,12,0v32a6,6,0,0,1-12,0Zm76-16a6,6,0,0,1-6,6H182v42a6,6,0,0,1-6,6H144a6,6,0,0,1,0-12h26V144a6,6,0,0,1,12,0v10h26A6,6,0,0,1,214,160Zm0,32v16a6,6,0,0,1-12,0V192a6,6,0,0,1,12,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm0,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48ZM200,40H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-64,72V144a8,8,0,0,1,16,0v32a8,8,0,0,1-16,0Zm80-16a8,8,0,0,1-8,8H184v40a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h24V144a8,8,0,0,1,16,0v8h24A8,8,0,0,1,216,160Zm0,32v16a8,8,0,0,1-16,0V192a8,8,0,0,1,16,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm-4,36H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM200,44H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm-64,72V144a4,4,0,0,1,8,0v32a4,4,0,0,1-8,0Zm72-16a4,4,0,0,1-4,4H180v44a4,4,0,0,1-4,4H144a4,4,0,0,1,0-8h28V144a4,4,0,0,1,8,0v12h28A4,4,0,0,1,212,160Zm0,32v16a4,4,0,0,1-8,0V192a4,4,0,0,1,8,0Z"}))]]),uq=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),dq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,156a43.78,43.78,0,0,0-29.09,11L106.1,140.8a44.07,44.07,0,0,0,0-25.6L146.91,89a43.83,43.83,0,1,0-13-20.17L93.09,95a44,44,0,1,0,0,65.94L133.9,187.2A44,44,0,1,0,176,156Zm0-120a20,20,0,1,1-20,20A20,20,0,0,1,176,36ZM64,148a20,20,0,1,1,20-20A20,20,0,0,1,64,148Zm112,72a20,20,0,1,1,20-20A20,20,0,0,1,176,220Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,200a32,32,0,1,1-32-32A32,32,0,0,1,208,200ZM176,88a32,32,0,1,0-32-32A32,32,0,0,0,176,88Z",opacity:"0.2"}),r.createElement("path",{d:"M176,160a39.89,39.89,0,0,0-28.62,12.09l-46.1-29.63a39.8,39.8,0,0,0,0-28.92l46.1-29.63a40,40,0,1,0-8.66-13.45l-46.1,29.63a40,40,0,1,0,0,55.82l46.1,29.63A40,40,0,1,0,176,160Zm0-128a24,24,0,1,1-24,24A24,24,0,0,1,176,32ZM64,152a24,24,0,1,1,24-24A24,24,0,0,1,64,152Zm112,72a24,24,0,1,1,24-24A24,24,0,0,1,176,224Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212,200a36,36,0,1,1-69.85-12.25l-53-34.05a36,36,0,1,1,0-51.4l53-34a36.09,36.09,0,1,1,8.67,13.45l-53,34.05a36,36,0,0,1,0,24.5l53,34.05A36,36,0,0,1,212,200Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,162a37.91,37.91,0,0,0-28.3,12.67L98.8,143.24a37.89,37.89,0,0,0,0-30.48l48.9-31.43a38,38,0,1,0-6.5-10.09L92.3,102.67a38,38,0,1,0,0,50.66l48.9,31.43A38,38,0,1,0,176,162Zm0-132a26,26,0,1,1-26,26A26,26,0,0,1,176,30ZM64,154a26,26,0,1,1,26-26A26,26,0,0,1,64,154Zm112,72a26,26,0,1,1,26-26A26,26,0,0,1,176,226Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,160a39.89,39.89,0,0,0-28.62,12.09l-46.1-29.63a39.8,39.8,0,0,0,0-28.92l46.1-29.63a40,40,0,1,0-8.66-13.45l-46.1,29.63a40,40,0,1,0,0,55.82l46.1,29.63A40,40,0,1,0,176,160Zm0-128a24,24,0,1,1-24,24A24,24,0,0,1,176,32ZM64,152a24,24,0,1,1,24-24A24,24,0,0,1,64,152Zm112,72a24,24,0,1,1,24-24A24,24,0,0,1,176,224Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,164a36,36,0,0,0-27.92,13.3L96.25,144a35.92,35.92,0,0,0,0-32L148.08,78.7A35.93,35.93,0,1,0,143.75,72L91.92,105.3a36,36,0,1,0,0,45.4L143.75,184A36,36,0,1,0,176,164Zm0-136a28,28,0,1,1-28,28A28,28,0,0,1,176,28ZM64,156a28,28,0,1,1,28-28A28,28,0,0,1,64,156Zm112,72a28,28,0,1,1,28-28A28,28,0,0,1,176,228Z"}))]]),hq=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),mq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240.49,175.51a12,12,0,0,1,0,17l-24,24a12,12,0,0,1-17-17L203,196h-2.09a76.17,76.17,0,0,1-61.85-31.83L97.38,105.78A52.1,52.1,0,0,0,55.06,84H32a12,12,0,0,1,0-24H55.06a76.17,76.17,0,0,1,61.85,31.83l41.71,58.39A52.1,52.1,0,0,0,200.94,172H203l-3.52-3.51a12,12,0,0,1,17-17Zm-95.62-72.62a12,12,0,0,0,16.93-1.13A52,52,0,0,1,200.94,84H203l-3.52,3.51a12,12,0,0,0,17,17l24-24a12,12,0,0,0,0-17l-24-24a12,12,0,0,0-17,17L203,60h-2.09a76,76,0,0,0-57.2,26A12,12,0,0,0,144.87,102.89Zm-33.74,50.22a12,12,0,0,0-16.93,1.13A52,52,0,0,1,55.06,172H32a12,12,0,0,0,0,24H55.06a76,76,0,0,0,57.2-26A12,12,0,0,0,111.13,153.11Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M107.14,98.8,128,128l-20.86,29.2A64,64,0,0,1,55.06,184H32V72H55.06A64,64,0,0,1,107.14,98.8ZM200.94,72a64,64,0,0,0-52.08,26.8L128,128l20.86,29.2A64,64,0,0,0,200.94,184H232V72Z",opacity:"0.2"}),r.createElement("path",{d:"M237.66,178.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L212.69,192H200.94a72.12,72.12,0,0,1-58.59-30.15l-41.72-58.4A56.1,56.1,0,0,0,55.06,80H32a8,8,0,0,1,0-16H55.06a72.12,72.12,0,0,1,58.59,30.15l41.72,58.4A56.1,56.1,0,0,0,200.94,176h11.75l-10.35-10.34a8,8,0,0,1,11.32-11.32ZM143,107a8,8,0,0,0,11.16-1.86l1.2-1.67A56.1,56.1,0,0,1,200.94,80h11.75L202.34,90.34a8,8,0,0,0,11.32,11.32l24-24a8,8,0,0,0,0-11.32l-24-24a8,8,0,0,0-11.32,11.32L212.69,64H200.94a72.12,72.12,0,0,0-58.59,30.15l-1.2,1.67A8,8,0,0,0,143,107Zm-30,42a8,8,0,0,0-11.16,1.86l-1.2,1.67A56.1,56.1,0,0,1,55.06,176H32a8,8,0,0,0,0,16H55.06a72.12,72.12,0,0,0,58.59-30.15l1.2-1.67A8,8,0,0,0,113,149Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.66,178.34a8,8,0,0,1,0,11.32l-24,24A8,8,0,0,1,200,208V192a72.15,72.15,0,0,1-57.65-30.14l-41.72-58.4A56.1,56.1,0,0,0,55.06,80H32a8,8,0,0,1,0-16H55.06a72.12,72.12,0,0,1,58.59,30.15l41.72,58.4A56.08,56.08,0,0,0,200,176V160a8,8,0,0,1,13.66-5.66ZM143,107a8,8,0,0,0,11.16-1.86l1.2-1.67A56.08,56.08,0,0,1,200,80V96a8,8,0,0,0,13.66,5.66l24-24a8,8,0,0,0,0-11.32l-24-24A8,8,0,0,0,200,48V64a72.15,72.15,0,0,0-57.65,30.14l-1.2,1.67A8,8,0,0,0,143,107Zm-30,42a8,8,0,0,0-11.16,1.86l-1.2,1.67A56.1,56.1,0,0,1,55.06,176H32a8,8,0,0,0,0,16H55.06a72.12,72.12,0,0,0,58.59-30.15l1.2-1.67A8,8,0,0,0,113,149Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.24,179.76a6,6,0,0,1,0,8.48l-24,24a6,6,0,0,1-8.48-8.48L217.52,190H200.94a70.16,70.16,0,0,1-57-29.31l-41.71-58.4A58.11,58.11,0,0,0,55.06,78H32a6,6,0,0,1,0-12H55.06a70.16,70.16,0,0,1,57,29.31l41.71,58.4A58.11,58.11,0,0,0,200.94,178h16.58l-13.76-13.76a6,6,0,0,1,8.48-8.48Zm-92.06-74.41a5.91,5.91,0,0,0,3.48,1.12,6,6,0,0,0,4.89-2.51l1.19-1.67A58.11,58.11,0,0,1,200.94,78h16.58L203.76,91.76a6,6,0,1,0,8.48,8.48l24-24a6,6,0,0,0,0-8.48l-24-24a6,6,0,0,0-8.48,8.48L217.52,66H200.94a70.16,70.16,0,0,0-57,29.31L142.78,97A6,6,0,0,0,144.18,105.35Zm-32.36,45.3a6,6,0,0,0-8.37,1.39l-1.19,1.67A58.11,58.11,0,0,1,55.06,178H32a6,6,0,0,0,0,12H55.06a70.16,70.16,0,0,0,57-29.31l1.19-1.67A6,6,0,0,0,111.82,150.65Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.66,178.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L212.69,192H200.94a72.12,72.12,0,0,1-58.59-30.15l-41.72-58.4A56.1,56.1,0,0,0,55.06,80H32a8,8,0,0,1,0-16H55.06a72.12,72.12,0,0,1,58.59,30.15l41.72,58.4A56.1,56.1,0,0,0,200.94,176h11.75l-10.35-10.34a8,8,0,0,1,11.32-11.32ZM143,107a8,8,0,0,0,11.16-1.86l1.2-1.67A56.1,56.1,0,0,1,200.94,80h11.75L202.34,90.34a8,8,0,0,0,11.32,11.32l24-24a8,8,0,0,0,0-11.32l-24-24a8,8,0,0,0-11.32,11.32L212.69,64H200.94a72.12,72.12,0,0,0-58.59,30.15l-1.2,1.67A8,8,0,0,0,143,107Zm-30,42a8,8,0,0,0-11.16,1.86l-1.2,1.67A56.1,56.1,0,0,1,55.06,176H32a8,8,0,0,0,0,16H55.06a72.12,72.12,0,0,0,58.59-30.15l1.2-1.67A8,8,0,0,0,113,149Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.83,181.17a4,4,0,0,1,0,5.66l-24,24a4,4,0,0,1-5.66-5.66L222.34,188h-21.4a68.15,68.15,0,0,1-55.34-28.48l-41.71-58.39A60.11,60.11,0,0,0,55.06,76H32a4,4,0,0,1,0-8H55.06A68.15,68.15,0,0,1,110.4,96.48l41.71,58.39A60.11,60.11,0,0,0,200.94,180h21.4l-17.17-17.17a4,4,0,0,1,5.66-5.66Zm-89.49-77.44a4,4,0,0,0,5.58-.93l1.19-1.67A60.11,60.11,0,0,1,200.94,76h21.4L205.17,93.17a4,4,0,0,0,5.66,5.66l24-24a4,4,0,0,0,0-5.66l-24-24a4,4,0,0,0-5.66,5.66L222.34,68h-21.4A68.15,68.15,0,0,0,145.6,96.48l-1.19,1.67A4,4,0,0,0,145.34,103.73Zm-34.68,48.54a4,4,0,0,0-5.58.93l-1.19,1.67A60.11,60.11,0,0,1,55.06,180H32a4,4,0,0,0,0,8H55.06a68.15,68.15,0,0,0,55.34-28.48l1.19-1.67A4,4,0,0,0,110.66,152.27Z"}))]]),fq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,28a12,12,0,0,0-12,12v62l-113.45-71A20,20,0,0,0,44,47.88V208.12A20,20,0,0,0,74.55,225L188,154v62a12,12,0,0,0,24,0V40A12,12,0,0,0,200,28ZM68,200.73V55.27L184.3,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M196.3,134.65,68.19,214.77A8,8,0,0,1,56,208.12V47.88a8,8,0,0,1,12.19-6.65L196.3,121.35A7.83,7.83,0,0,1,196.3,134.65Z",opacity:"0.2"}),r.createElement("path",{d:"M200,32a8,8,0,0,0-8,8v69.23L72.43,34.45A15.95,15.95,0,0,0,48,47.88V208.12a16,16,0,0,0,24.43,13.43L192,146.77V216a8,8,0,0,0,16,0V40A8,8,0,0,0,200,32ZM64,207.93V48.05l127.84,80Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,40V216a8,8,0,0,1-16,0V146.77L72.43,221.55A15.95,15.95,0,0,1,48,208.12V47.88A15.95,15.95,0,0,1,72.43,34.45L192,109.23V40a8,8,0,0,1,16,0Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,34a6,6,0,0,0-6,6v72.84L71.37,36.14a14,14,0,0,0-14.21-.37A13.69,13.69,0,0,0,50,47.88V208.12a13.69,13.69,0,0,0,7.16,12.11,14,14,0,0,0,14.21-.37L194,143.17V216a6,6,0,0,0,12,0V40A6,6,0,0,0,200,34Zm-6.88,95.56L65,209.69a2,2,0,0,1-2,.05,1.79,1.79,0,0,1-1-1.62V47.88a1.79,1.79,0,0,1,1-1.62A2.1,2.1,0,0,1,64,46a2,2,0,0,1,1,.31l128.12,80.13a1.82,1.82,0,0,1,0,3.12Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,32a8,8,0,0,0-8,8v69.23L72.43,34.45A15.95,15.95,0,0,0,48,47.88V208.12a16,16,0,0,0,24.43,13.43L192,146.77V216a8,8,0,0,0,16,0V40A8,8,0,0,0,200,32ZM64,207.93V48.05l127.84,80Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,36a4,4,0,0,0-4,4v76.44L70.31,37.84a12,12,0,0,0-12.18-.32A11.69,11.69,0,0,0,52,47.88V208.12a11.69,11.69,0,0,0,6.13,10.36,12,12,0,0,0,12.18-.32L196,139.56V216a4,4,0,0,0,8,0V40A4,4,0,0,0,200,36Zm-5.82,95.26L66.06,211.38a4,4,0,0,1-4.06.11,3.8,3.8,0,0,1-2-3.37V47.88a3.8,3.8,0,0,1,2-3.37A4,4,0,0,1,64,44a4,4,0,0,1,2.11.62l128.12,80.12a3.83,3.83,0,0,1,0,6.52Z"}))]]),pq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M157.27,21.22a12,12,0,0,0-12.64,1.31L75.88,76H32A20,20,0,0,0,12,96v64a20,20,0,0,0,20,20H75.88l68.75,53.47A12,12,0,0,0,164,224V32A12,12,0,0,0,157.27,21.22ZM36,100H68v56H36Zm104,99.46L92,162.13V93.87l48-37.33ZM212,128a44,44,0,0,1-11,29.11,12,12,0,1,1-18-15.88,20,20,0,0,0,0-26.43,12,12,0,0,1,18-15.86A43.94,43.94,0,0,1,212,128Zm40,0a83.87,83.87,0,0,1-21.39,56,12,12,0,0,1-17.89-16,60,60,0,0,0,0-80,12,12,0,1,1,17.88-16A83.87,83.87,0,0,1,252,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M80,88v80H32a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8Z",opacity:"0.2"}),r.createElement("path",{d:"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,32.25V223.69a8.29,8.29,0,0,1-3.91,7.18,8,8,0,0,1-9-.56l-65.57-51A4,4,0,0,1,80,176.16V79.84a4,4,0,0,1,1.55-3.15l65.57-51a8,8,0,0,1,10,.16A8.27,8.27,0,0,1,160,32.25ZM60,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H60a4,4,0,0,0,4-4V84A4,4,0,0,0,60,80Zm126.77,20.84a8,8,0,0,0-.72,11.3,24,24,0,0,1,0,31.72,8,8,0,1,0,12,10.58,40,40,0,0,0,0-52.88A8,8,0,0,0,186.74,100.84Zm40.89-26.17a8,8,0,1,0-11.92,10.66,64,64,0,0,1,0,85.34,8,8,0,1,0,11.92,10.66,80,80,0,0,0,0-106.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M154.64,26.61a6,6,0,0,0-6.32.65L77.94,82H32A14,14,0,0,0,18,96v64a14,14,0,0,0,14,14H77.94l70.38,54.74A6,6,0,0,0,158,224V32A6,6,0,0,0,154.64,26.61ZM30,160V96a2,2,0,0,1,2-2H74v68H32A2,2,0,0,1,30,160Zm116,51.73L86,165.07V90.93l60-46.66Zm50.53-108.85a38,38,0,0,1,0,50.24,6,6,0,1,1-9-7.94,26,26,0,0,0,0-34.37,6,6,0,0,1,9-7.93ZM246,128a77.86,77.86,0,0,1-19.86,52,6,6,0,1,1-8.94-8,66,66,0,0,0,0-88,6,6,0,1,1,8.94-8A77.86,77.86,0,0,1,246,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M153.76,28.41a4,4,0,0,0-4.22.43L78.63,84H32A12,12,0,0,0,20,96v64a12,12,0,0,0,12,12H78.63l70.91,55.16A4.07,4.07,0,0,0,152,228a3.92,3.92,0,0,0,1.76-.41A4,4,0,0,0,156,224V32A4,4,0,0,0,153.76,28.41ZM28,160V96a4,4,0,0,1,4-4H76v72H32A4,4,0,0,1,28,160Zm120,55.82L84,166V90l64-49.78Zm47-111.61a36,36,0,0,1,0,47.59,4,4,0,1,1-6-5.3,28,28,0,0,0,0-37,4,4,0,0,1,6-5.28ZM244,128a75.88,75.88,0,0,1-19.35,50.67,4,4,0,0,1-6-5.34,68,68,0,0,0,0-90.66,4,4,0,0,1,6-5.34A75.88,75.88,0,0,1,244,128Z"}))]]),xq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]),gq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm84,84H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm90,90H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm92,92H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]),vq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M243,96a20.33,20.33,0,0,0-17.74-14l-56.59-4.57L146.83,24.62a20.36,20.36,0,0,0-37.66,0L87.35,77.44,30.76,82A20.45,20.45,0,0,0,19.1,117.88l43.18,37.24-13.2,55.7A20.37,20.37,0,0,0,79.57,233L128,203.19,176.43,233a20.39,20.39,0,0,0,30.49-22.15l-13.2-55.7,43.18-37.24A20.43,20.43,0,0,0,243,96ZM172.53,141.7a12,12,0,0,0-3.84,11.86L181.58,208l-47.29-29.08a12,12,0,0,0-12.58,0L74.42,208l12.89-54.4a12,12,0,0,0-3.84-11.86L41.2,105.24l55.4-4.47a12,12,0,0,0,10.13-7.38L128,41.89l21.27,51.5a12,12,0,0,0,10.13,7.38l55.4,4.47Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.06,108.79l-48.7,42,14.88,62.79a8.4,8.4,0,0,1-12.52,9.17L128,189.09,73.28,222.74a8.4,8.4,0,0,1-12.52-9.17l14.88-62.79-48.7-42A8.46,8.46,0,0,1,31.73,94L95.64,88.8l24.62-59.6a8.36,8.36,0,0,1,15.48,0l24.62,59.6L224.27,94A8.46,8.46,0,0,1,229.06,108.79Z",opacity:"0.2"}),r.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.28,97.87A14.18,14.18,0,0,0,224.76,88l-60.25-4.87-23.22-56.2a14.37,14.37,0,0,0-26.58,0L91.49,83.11,31.24,88a14.18,14.18,0,0,0-12.52,9.89A14.43,14.43,0,0,0,23,113.32L69,152.93l-14,59.25a14.4,14.4,0,0,0,5.59,15,14.1,14.1,0,0,0,15.91.6L128,196.12l51.58,31.71a14.1,14.1,0,0,0,15.91-.6,14.4,14.4,0,0,0,5.59-15l-14-59.25L233,113.32A14.43,14.43,0,0,0,237.28,97.87Zm-12.14,6.37-48.69,42a6,6,0,0,0-1.92,5.92l14.88,62.79a2.35,2.35,0,0,1-.95,2.57,2.24,2.24,0,0,1-2.6.1L131.14,184a6,6,0,0,0-6.28,0L70.14,217.61a2.24,2.24,0,0,1-2.6-.1,2.35,2.35,0,0,1-1-2.57l14.88-62.79a6,6,0,0,0-1.92-5.92l-48.69-42a2.37,2.37,0,0,1-.73-2.65,2.28,2.28,0,0,1,2.07-1.65l63.92-5.16a6,6,0,0,0,5.06-3.69l24.63-59.6a2.35,2.35,0,0,1,4.38,0l24.63,59.6a6,6,0,0,0,5.06,3.69l63.92,5.16a2.28,2.28,0,0,1,2.07,1.65A2.37,2.37,0,0,1,225.14,104.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M235.36,98.49A12.21,12.21,0,0,0,224.59,90l-61.47-5L139.44,27.67a12.37,12.37,0,0,0-22.88,0L92.88,85,31.41,90a12.45,12.45,0,0,0-7.07,21.84l46.85,40.41L56.87,212.64a12.35,12.35,0,0,0,18.51,13.49L128,193.77l52.62,32.36a12.12,12.12,0,0,0,13.69-.51,12.28,12.28,0,0,0,4.82-13l-14.32-60.42,46.85-40.41A12.29,12.29,0,0,0,235.36,98.49Zm-8.93,7.26-48.68,42a4,4,0,0,0-1.28,3.95l14.87,62.79a4.37,4.37,0,0,1-1.72,4.65,4.24,4.24,0,0,1-4.81.18L130.1,185.67a4,4,0,0,0-4.2,0L71.19,219.32a4.24,4.24,0,0,1-4.81-.18,4.37,4.37,0,0,1-1.72-4.65L79.53,151.7a4,4,0,0,0-1.28-3.95l-48.68-42A4.37,4.37,0,0,1,28.25,101a4.31,4.31,0,0,1,3.81-3L96,92.79a4,4,0,0,0,3.38-2.46L124,30.73a4.35,4.35,0,0,1,8.08,0l24.62,59.6A4,4,0,0,0,160,92.79l63.9,5.15a4.31,4.31,0,0,1,3.81,3A4.37,4.37,0,0,1,226.43,105.75Z"}))]]),bq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M246.15,133.18,146.83,33.86A19.85,19.85,0,0,0,132.69,28H40A12,12,0,0,0,28,40v92.69a19.85,19.85,0,0,0,5.86,14.14l99.32,99.32a20,20,0,0,0,28.28,0l84.69-84.69A20,20,0,0,0,246.15,133.18Zm-98.83,93.17L52,131V52h79l95.32,95.32ZM104,88A16,16,0,1,1,88,72,16,16,0,0,1,104,88Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.66,153,153,237.66a8,8,0,0,1-11.31,0L42.34,138.34A8,8,0,0,1,40,132.69V40h92.69a8,8,0,0,1,5.65,2.34l99.32,99.32A8,8,0,0,1,237.66,153Z",opacity:"0.2"}),r.createElement("path",{d:"M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63Zm-96,96L48,132.69V48h84.69L232,147.31ZM96,84A12,12,0,1,1,84,72,12,12,0,0,1,96,84Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63ZM84,96A12,12,0,1,1,96,84,12,12,0,0,1,84,96Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M241.91,137.42,142.59,38.1a13.94,13.94,0,0,0-9.9-4.1H40a6,6,0,0,0-6,6v92.69a13.94,13.94,0,0,0,4.1,9.9l99.32,99.32a14,14,0,0,0,19.8,0l84.69-84.69A14,14,0,0,0,241.91,137.42Zm-8.49,11.31-84.69,84.69a2,2,0,0,1-2.83,0L46.59,134.1a2,2,0,0,1-.59-1.41V46h86.69a2,2,0,0,1,1.41.59l99.32,99.31A2,2,0,0,1,233.42,148.73ZM94,84A10,10,0,1,1,84,74,10,10,0,0,1,94,84Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63Zm-96,96L48,132.69V48h84.69L232,147.31ZM96,84A12,12,0,1,1,84,72,12,12,0,0,1,96,84Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240.49,138.83,141.17,39.51A11.93,11.93,0,0,0,132.69,36H40a4,4,0,0,0-4,4v92.69a11.93,11.93,0,0,0,3.51,8.48l99.32,99.32a12,12,0,0,0,17,0l84.69-84.69a12,12,0,0,0,0-17Zm-5.66,11.31-84.69,84.69a4,4,0,0,1-5.65,0L45.17,135.51A4,4,0,0,1,44,132.69V44h88.69a4,4,0,0,1,2.82,1.17l99.32,99.32A4,4,0,0,1,234.83,150.14ZM92,84a8,8,0,1,1-8-8A8,8,0,0,1,92,84Z"}))]]),yq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.26,90.4a108,108,0,0,1-177.63,114A108,108,0,0,1,195.41,43.63l20.1-20.11a12,12,0,0,1,17,17l-96,96a12,12,0,1,1-17-17l24-24a36,36,0,1,0,19.76,39.65,12,12,0,0,1,23.53,4.74,60,60,0,1,1-25.73-62L178.3,60.74a84,84,0,1,0,28.46,38,12,12,0,1,1,22.5-8.35Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,128a48,48,0,1,1-48-48A48,48,0,0,1,176,128Z",opacity:"0.2"}),r.createElement("path",{d:"M221.87,83.16A104.1,104.1,0,1,1,195.67,49l22.67-22.68a8,8,0,0,1,11.32,11.32l-96,96a8,8,0,0,1-11.32-11.32l27.72-27.72a40,40,0,1,0,17.87,31.09,8,8,0,1,1,16-.9,56,56,0,1,1-22.38-41.65L184.3,60.39a87.88,87.88,0,1,0,23.13,29.67,8,8,0,0,1,14.44-6.9Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.87,83.16A104.1,104.1,0,1,1,195.67,49l22.67-22.68a8,8,0,0,1,11.32,11.32L167.6,99.71h0l-37.71,37.71-23.95,23.95a40,40,0,0,0,62-35.67,8,8,0,1,1,16-.9,56,56,0,0,1-95.5,42.79h0a56,56,0,0,1,73.13-84.43L184.3,60.39a87.88,87.88,0,1,0,23.13,29.67,8,8,0,0,1,14.44-6.9Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220.06,84a102.06,102.06,0,1,1-24.31-32.27l24-24a6,6,0,0,1,8.48,8.49l-96,96a6,6,0,1,1-8.48-8.49l29.39-29.4a42,42,0,1,0,16.78,31.24,6,6,0,1,1,12-.68A54,54,0,1,1,161.7,85.83l25.54-25.55a89.91,89.91,0,1,0,22,28.93A6,6,0,1,1,220.06,84Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.87,83.16A104.1,104.1,0,1,1,195.67,49l22.67-22.68a8,8,0,0,1,11.32,11.32l-96,96a8,8,0,0,1-11.32-11.32l27.72-27.72a40,40,0,1,0,17.87,31.09,8,8,0,1,1,16-.9,56,56,0,1,1-22.38-41.65L184.3,60.39a87.88,87.88,0,1,0,23.13,29.67,8,8,0,0,1,14.44-6.9Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M218.26,84.89a100.16,100.16,0,1,1-22.44-30.37l25.35-25.35a4,4,0,1,1,5.66,5.66l-96,96a4,4,0,0,1-5.66-5.66l31-31a44,44,0,1,0,15.78,31.3,4,4,0,0,1,8-.46,52,52,0,1,1-18.1-36.51l28.34-28.33A92,92,0,0,0,63,193.05,92,92,0,0,0,211,88.33a4,4,0,1,1,7.22-3.44Z"}))]]),wq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188.84,120.46a68.14,68.14,0,0,0-10-6.23c-3.72-21.68-16.41-37.41-35.52-43.2C121.94,64.55,97.29,72.42,86,89.34a12,12,0,0,0,20,13.32c5.47-8.2,19.11-12.08,30.41-8.66a24.72,24.72,0,0,1,14.88,12.24,86.73,86.73,0,0,0-8.86-.45C108.56,105.79,84,125.22,84,152c0,22.9,17.54,39.52,41.71,39.52a52,52,0,0,0,37.23-16c6-6.23,12.88-16.46,15.72-32.07,6.2,6.42,9.34,14.67,9.34,24.59,0,17.74-19.07,44-60,44-45.76,0-68-27.48-68-84s22.24-84,68-84c31.08,0,51,12.42,60.8,38a12,12,0,0,0,22.4-8.62C197.77,38.44,169,20,128,20,68.67,20,36,58.35,36,128s32.67,108,92,108c31.36,0,51.08-12.05,62.11-22.15C203.81,201.28,212,184.14,212,168,212,148.36,204,131.92,188.84,120.46Zm-43.2,38.39a27.9,27.9,0,0,1-19.93,8.67c-8.17,0-17.71-4.06-17.71-15.52,0-15.26,17.84-22.21,34.41-22.21a60.23,60.23,0,0,1,13.51,1.52C155.36,142.93,151.84,152.41,145.64,158.85Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,128c0,48-16,96-80,96s-80-48-80-96,16-96,80-96S208,80,208,128Z",opacity:"0.2"}),r.createElement("path",{d:"M186.42,123.65a63.81,63.81,0,0,0-11.13-6.72c-4-29.89-24-39.31-33.1-42.07-19.78-6-42.51,1.19-52.85,16.7a8,8,0,0,0,13.32,8.88c6.37-9.56,22-14.16,34.89-10.27,9.95,3,16.82,10.3,20.15,21a81.05,81.05,0,0,0-15.29-1.43c-13.92,0-26.95,3.59-36.67,10.1C94.3,127.57,88,139,88,152c0,20.58,15.86,35.52,37.71,35.52a48,48,0,0,0,34.35-14.81c6.44-6.7,14-18.36,15.61-37.1.38.26.74.53,1.1.8C186.88,144.05,192,154.68,192,168c0,19.36-20.34,48-64,48-26.73,0-45.48-8.65-57.34-26.44C60.93,175,56,154.26,56,128s4.93-47,14.66-61.56C82.52,48.65,101.27,40,128,40c32.93,0,54,13.25,64.53,40.52a8,8,0,1,0,14.93-5.75C194.68,41.56,167.2,24,128,24,96,24,72.19,35.29,57.34,57.56,45.83,74.83,40,98.52,40,128s5.83,53.17,17.34,70.44C72.19,220.71,96,232,128,232c30.07,0,48.9-11.48,59.4-21.1C200.3,199.08,208,183,208,168,208,149.66,200.54,134.32,186.42,123.65Zm-37.89,38a31.94,31.94,0,0,1-22.82,9.9c-10.81,0-21.71-6-21.71-19.52,0-12.63,12-26.21,38.41-26.21A63.88,63.88,0,0,1,160,128.24C160,142.32,156,153.86,148.53,161.62Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M138.62,128a53.54,53.54,0,0,1,13.1,1.63c-.57,8.21-3.34,15-8.11,19.61A23.89,23.89,0,0,1,127,156c-11.87,0-15-7.58-15-12.07C112,133,125.8,128,138.62,128ZM224,128c0,65.12-35.89,104-96,104S32,193.12,32,128,67.89,24,128,24,224,62.88,224,128ZM72,128c0-43.07,18.32-64,56-64,26.34,0,43,10.08,50.81,30.83a8,8,0,0,0,15-5.66C180.9,55.14,150.9,48,128,48c-26.1,0-45.52,8.7-57.72,25.86C60.8,87.19,56,105.4,56,128s4.8,40.81,14.28,54.14C82.48,199.3,101.9,208,128,208c24.45,0,39.82-8.8,48.41-16.18,10.76-9.25,17.19-21.89,17.19-33.82,0-14.3-6.59-26.79-18.56-35.17a54.16,54.16,0,0,0-7.77-4.5c-2.09-14.65-10-25.75-22.34-31.07C130.43,81,112,83.93,101.21,94.19a8,8,0,0,0,11,11.62c5.43-5.14,16.79-8,26.4-3.85a20.05,20.05,0,0,1,10.77,10.92,68.89,68.89,0,0,0-10.76-.85C113.53,112,96,125.15,96,143.93c0,16.27,13,28.07,31,28.07a40,40,0,0,0,27.75-11.29c4.7-4.59,10.11-12.2,12.17-24A25.55,25.55,0,0,1,177.6,158c0,13.71-15.76,34-49.6,34C90.32,192,72,171.07,72,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M185.22,125.25a62,62,0,0,0-11.78-7c-3.53-29.6-23-38.82-31.83-41.5-19-5.74-40.73,1.09-50.6,15.9a6,6,0,1,0,10,6.66c6.94-10.41,23.25-15.28,37.14-11.07,7.22,2.18,18.39,8.34,22.39,25.61a78.74,78.74,0,0,0-18.11-2.08c-13.53,0-26.16,3.46-35.55,9.77C96,128.85,90,139.66,90,152c0,22,18,33.52,35.71,33.52a46,46,0,0,0,32.91-14.19c6.58-6.85,14.35-19.11,15.29-39.26a44.59,44.59,0,0,1,4.07,2.75c10.48,7.92,16,19.4,16,33.18,0,20.16-21,50-66,50-27.07,0-46.92-9.19-59-27.33C59,175.75,54,154.66,54,128s5-47.75,15-62.67C81.08,47.19,100.93,38,128,38c33.85,0,55.57,13.67,66.4,41.8a6,6,0,1,0,11.2-4.31C193,42.65,166.85,26,128,26,96.67,26,73.46,37,59,58.67,47.72,75.6,42,98.93,42,128s5.72,52.4,17,69.33C73.46,219,96.67,230,128,230c29.43,0,47.81-11.19,58.05-20.58C198.54,198,206,182.49,206,168,206,150.31,198.81,135.52,185.22,125.25ZM150,163a33.94,33.94,0,0,1-24.26,10.51C109.33,173.52,102,162.71,102,152c0-13.59,12.64-28.21,40.41-28.21a65.33,65.33,0,0,1,19.58,3c0,.41,0,.82,0,1.24C162,142.72,157.84,154.82,150,163Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M186.42,123.65a63.81,63.81,0,0,0-11.13-6.72c-4-29.89-24-39.31-33.1-42.07-19.78-6-42.51,1.19-52.85,16.7a8,8,0,0,0,13.32,8.88c6.37-9.56,22-14.16,34.89-10.27,9.95,3,16.82,10.3,20.15,21a81.05,81.05,0,0,0-15.29-1.43c-13.92,0-26.95,3.59-36.67,10.1C94.3,127.57,88,139,88,152c0,20.58,15.86,35.52,37.71,35.52a48,48,0,0,0,34.35-14.81c6.44-6.7,14-18.36,15.61-37.1.38.26.74.53,1.1.8C186.88,144.05,192,154.68,192,168c0,19.36-20.34,48-64,48-26.73,0-45.48-8.65-57.34-26.44C60.93,175,56,154.26,56,128s4.93-47,14.66-61.56C82.52,48.65,101.27,40,128,40c32.93,0,54,13.25,64.53,40.52a8,8,0,1,0,14.93-5.75C194.68,41.56,167.2,24,128,24,96,24,72.19,35.29,57.34,57.56,45.83,74.83,40,98.52,40,128s5.83,53.17,17.34,70.44C72.19,220.71,96,232,128,232c30.07,0,48.9-11.48,59.4-21.1C200.3,199.08,208,183,208,168,208,149.66,200.54,134.32,186.42,123.65Zm-37.89,38a31.94,31.94,0,0,1-22.82,9.9c-10.81,0-21.71-6-21.71-19.52,0-12.63,12-26.21,38.41-26.21A63.88,63.88,0,0,1,160,128.24C160,142.32,156,153.86,148.53,161.62Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,126.84a59.8,59.8,0,0,0-12.42-7.16c-3-29.38-22-38.4-30.56-41-18.16-5.5-39,1-48.36,15.09a4,4,0,0,0,6.66,4.44c7.4-11.1,24.7-16.32,39.38-11.87,8.12,2.45,20.95,9.6,24.41,30.32a75.83,75.83,0,0,0-20.71-2.88c-13.14,0-25.37,3.34-34.44,9.43-10.45,7-16,17-16,28.78,0,20.7,17,31.52,33.71,31.52a44,44,0,0,0,31.47-13.58c9.56-9.94,14.68-24.19,14.82-41.23a50.18,50.18,0,0,1,7.19,4.51c11,8.32,16.81,20.34,16.81,34.78,0,11.73-6.25,24.46-16.7,34.05C170.36,210.24,154.21,220,128,220c-50.43,0-76-30.95-76-92s25.57-92,76-92c34.29,0,57.26,14.5,68.27,43.08a4,4,0,1,0,7.46-2.87C191.42,44.22,165.94,28,128,28,73.05,28,44,62.58,44,128s29.05,100,84,100c28.79,0,46.72-10.9,56.7-20.05,12.09-11.08,19.3-26,19.3-39.95C204,151,197.09,136.73,184,126.84Zm-32.6,37.55a35.92,35.92,0,0,1-25.7,11.13c-12.38,0-25.71-7.36-25.71-23.52,0-20.76,22-30.21,42.41-30.21A67.08,67.08,0,0,1,164,125.3c0,.88.05,1.78.05,2.7C164,143.25,159.65,155.83,151.41,164.39Z"}))]]),Aq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M243.78,156.53l-12-96A28,28,0,0,0,204,36H32A20,20,0,0,0,12,56v88a20,20,0,0,0,20,20H72.58l36.69,73.37A12,12,0,0,0,120,244a44.05,44.05,0,0,0,44-44V188h52a28,28,0,0,0,27.78-31.47ZM68,140H36V60H68Zm151,22.65a4,4,0,0,1-3,1.35H152a12,12,0,0,0-12,12v24a20,20,0,0,1-13.18,18.8L92,149.17V60H204a4,4,0,0,1,4,3.5l12,96A4,4,0,0,1,219,162.65Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M80,48V152H32a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8Z",opacity:"0.2"}),r.createElement("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.83,157.27l-12-96A22,22,0,0,0,204,42H32A14,14,0,0,0,18,56v88a14,14,0,0,0,14,14H76.29l38.34,76.68A6,6,0,0,0,120,238a38,38,0,0,0,38-38V182h58a22,22,0,0,0,21.83-24.73ZM74,146H32a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H74Zm149.5,20.62A9.89,9.89,0,0,1,216,170H152a6,6,0,0,0-6,6v24a26,26,0,0,1-22.42,25.75L86,150.58V54H204a10,10,0,0,1,9.92,8.76l12,96A9.89,9.89,0,0,1,223.5,166.62Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M235.85,157.52l-12-96A20,20,0,0,0,204,44H32A12,12,0,0,0,20,56v88a12,12,0,0,0,12,12H77.53l38.89,77.79A4,4,0,0,0,120,236a36,36,0,0,0,36-36V180h60a20,20,0,0,0,19.85-22.48ZM76,148H32a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H76Zm149,19.94a12,12,0,0,1-9,4.06H152a4,4,0,0,0-4,4v24a28,28,0,0,1-25.58,27.9L84,151.06V52H204a12,12,0,0,1,11.91,10.51l12,96A12,12,0,0,1,225,167.94Z"}))]]),jq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237,77.47A28,28,0,0,0,216,68H164V56a44.05,44.05,0,0,0-44-44,12,12,0,0,0-10.73,6.63L72.58,92H32a20,20,0,0,0-20,20v88a20,20,0,0,0,20,20H204a28,28,0,0,0,27.78-24.53l12-96A28,28,0,0,0,237,77.47ZM36,116H68v80H36ZM220,96.5l-12,96a4,4,0,0,1-4,3.5H92V106.83L126.82,37.2A20,20,0,0,1,140,56V80a12,12,0,0,0,12,12h64a4,4,0,0,1,4,4.5Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M80,104V208H32a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8Z",opacity:"0.2"}),r.createElement("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232.49,81.44A22,22,0,0,0,216,74H158V56a38,38,0,0,0-38-38,6,6,0,0,0-5.37,3.32L76.29,98H32a14,14,0,0,0-14,14v88a14,14,0,0,0,14,14H204a22,22,0,0,0,21.83-19.27l12-96A22,22,0,0,0,232.49,81.44ZM30,200V112a2,2,0,0,1,2-2H74v92H32A2,2,0,0,1,30,200ZM225.92,97.24l-12,96A10,10,0,0,1,204,202H86V105.42l37.58-75.17A26,26,0,0,1,146,56V80a6,6,0,0,0,6,6h64a10,10,0,0,1,9.92,11.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M231,82.76A20,20,0,0,0,216,76H156V56a36,36,0,0,0-36-36,4,4,0,0,0-3.58,2.21L77.53,100H32a12,12,0,0,0-12,12v88a12,12,0,0,0,12,12H204a20,20,0,0,0,19.85-17.52l12-96A20,20,0,0,0,231,82.76ZM76,204H32a4,4,0,0,1-4-4V112a4,4,0,0,1,4-4H76ZM227.91,97.49l-12,96A12,12,0,0,1,204,204H84V104.94L122.42,28.1A28,28,0,0,1,148,56V80a4,4,0,0,0,4,4h64a12,12,0,0,1,11.91,13.49Z"}))]]),Nq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,44a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,44Zm0,168a72,72,0,1,1,72-72A72.08,72.08,0,0,1,128,212ZM164.49,99.51a12,12,0,0,1,0,17l-28,28a12,12,0,0,1-17-17l28-28A12,12,0,0,1,164.49,99.51ZM92,16A12,12,0,0,1,104,4h48a12,12,0,0,1,0,24H104A12,12,0,0,1,92,16Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,136a88,88,0,1,1-88-88A88,88,0,0,1,216,136Z",opacity:"0.2"}),r.createElement("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm45.66,61.66-40,40a8,8,0,0,1-11.32-11.32l40-40a8,8,0,0,1,11.32,11.32ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,42a94,94,0,1,0,94,94A94.11,94.11,0,0,0,128,42Zm0,176a82,82,0,1,1,82-82A82.1,82.1,0,0,1,128,218ZM172.24,91.76a6,6,0,0,1,0,8.48l-40,40a6,6,0,1,1-8.48-8.48l40-40A6,6,0,0,1,172.24,91.76ZM98,16a6,6,0,0,1,6-6h48a6,6,0,0,1,0,12H104A6,6,0,0,1,98,16Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,44a92,92,0,1,0,92,92A92.1,92.1,0,0,0,128,44Zm0,176a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,220ZM170.83,93.17a4,4,0,0,1,0,5.66l-40,40a4,4,0,1,1-5.66-5.66l40-40A4,4,0,0,1,170.83,93.17ZM100,16a4,4,0,0,1,4-4h48a4,4,0,0,1,0,8H104A4,4,0,0,1,100,16Z"}))]]),Eq=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),Mq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,116h48a20,20,0,0,0,20-20V48a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20V60H128a28,28,0,0,0-28,28v28H76v-4A20,20,0,0,0,56,92H24A20,20,0,0,0,4,112v32a20,20,0,0,0,20,20H56a20,20,0,0,0,20-20v-4h24v28a28,28,0,0,0,28,28h12v12a20,20,0,0,0,20,20h48a20,20,0,0,0,20-20V160a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20v12H128a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4h12V96A20,20,0,0,0,160,116ZM52,140H28V116H52Zm112,24h40v40H164Zm0-112h40V92H164Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M64,112v32a8,8,0,0,1-8,8H24a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H56A8,8,0,0,1,64,112ZM208,40H160a8,8,0,0,0-8,8V96a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V48A8,8,0,0,0,208,40Zm0,112H160a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152Z",opacity:"0.2"}),r.createElement("path",{d:"M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M144,96V80H128a8,8,0,0,0-8,8v80a8,8,0,0,0,8,8h16V160a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16v48a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V192H128a24,24,0,0,1-24-24V136H72v8a16,16,0,0,1-16,16H24A16,16,0,0,1,8,144V112A16,16,0,0,1,24,96H56a16,16,0,0,1,16,16v8h32V88a24,24,0,0,1,24-24h16V48a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V96a16,16,0,0,1-16,16H160A16,16,0,0,1,144,96Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,110h48a14,14,0,0,0,14-14V48a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14V66H128a22,22,0,0,0-22,22v34H70V112A14,14,0,0,0,56,98H24a14,14,0,0,0-14,14v32a14,14,0,0,0,14,14H56a14,14,0,0,0,14-14V134h36v34a22,22,0,0,0,22,22h18v18a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V160a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14v18H128a10,10,0,0,1-10-10V88a10,10,0,0,1,10-10h18V96A14,14,0,0,0,160,110ZM58,144a2,2,0,0,1-2,2H24a2,2,0,0,1-2-2V112a2,2,0,0,1,2-2H56a2,2,0,0,1,2,2Zm100,16a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2v48a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Zm0-112a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2V96a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,108h48a12,12,0,0,0,12-12V48a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12V68H128a20,20,0,0,0-20,20v36H68V112a12,12,0,0,0-12-12H24a12,12,0,0,0-12,12v32a12,12,0,0,0,12,12H56a12,12,0,0,0,12-12V132h40v36a20,20,0,0,0,20,20h20v20a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V160a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12v20H128a12,12,0,0,1-12-12V88a12,12,0,0,1,12-12h20V96A12,12,0,0,0,160,108ZM60,144a4,4,0,0,1-4,4H24a4,4,0,0,1-4-4V112a4,4,0,0,1,4-4H56a4,4,0,0,1,4,4Zm96,16a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4v48a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Zm0-112a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V96a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Z"}))]]),Sq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M244,56v64a12,12,0,0,1-24,0V85l-75.51,75.52a12,12,0,0,1-17,0L96,129,32.49,192.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0L136,135l67-67H168a12,12,0,0,1,0-24h64A12,12,0,0,1,244,56Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,56v64L168,56Z",opacity:"0.2"}),r.createElement("path",{d:"M232,48H168a8,8,0,0,0-5.66,13.66L188.69,88,136,140.69l-34.34-34.35a8,8,0,0,0-11.32,0l-72,72a8,8,0,0,0,11.32,11.32L96,123.31l34.34,34.35a8,8,0,0,0,11.32,0L200,99.31l26.34,26.35A8,8,0,0,0,240,120V56A8,8,0,0,0,232,48Zm-8,52.69L187.31,64H224Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,56v64a8,8,0,0,1-13.66,5.66L200,99.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,188.69,88,162.34,61.66A8,8,0,0,1,168,48h64A8,8,0,0,1,240,56Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M238,56v64a6,6,0,0,1-12,0V70.48l-85.76,85.76a6,6,0,0,1-8.48,0L96,120.49,28.24,188.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0L136,143.51,217.52,62H168a6,6,0,0,1,0-12h64A6,6,0,0,1,238,56Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,56v64a8,8,0,0,1-16,0V75.31l-82.34,82.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,212.69,64H168a8,8,0,0,1,0-16h64A8,8,0,0,1,240,56Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,56v64a4,4,0,0,1-8,0V65.66l-89.17,89.17a4,4,0,0,1-5.66,0L96,117.66,26.83,186.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0L136,146.34,222.34,60H168a4,4,0,0,1,0-8h64A4,4,0,0,1,236,56Z"}))]]),Cq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,184a16,16,0,1,1,16-16A16,16,0,0,1,188,184Zm36-68H180a12,12,0,0,0,0,24h40v56H36V140H76a12,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,116ZM88.49,80.49,116,53v75a12,12,0,0,0,24,0V53l27.51,27.52a12,12,0,1,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,1,0,17,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.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"}),r.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M74.34,77.66a8,8,0,0,1,0-11.32l48-48a8,8,0,0,1,11.32,0l48,48a8,8,0,0,1-11.32,11.32L136,43.31V128a8,8,0,0,1-16,0V43.31L85.66,77.66A8,8,0,0,1,74.34,77.66ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16h68a4,4,0,0,1,4,4v3.46c0,13.45,11,24.79,24.46,24.54A24,24,0,0,0,152,128v-4a4,4,0,0,1,4-4h68A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H80a6,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-2H176a6,6,0,0,1,0-12h48A14,14,0,0,1,238,136ZM84.24,76.24,122,38.49V128a6,6,0,0,0,12,0V38.49l37.76,37.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H80a4,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-4H176a4,4,0,0,1,0-8h48A12,12,0,0,1,236,136ZM82.83,74.83,124,33.66V128a4,4,0,0,0,8,0V33.66l41.17,41.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z"}))]]),Zq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.38,210a123.36,123.36,0,0,0-60.78-53.23,76,76,0,1,0-91.2,0A123.36,123.36,0,0,0,21.62,210a12,12,0,1,0,20.77,12c18.12-31.32,50.12-50,85.61-50s67.49,18.69,85.61,50a12,12,0,0,0,20.77-12ZM76,96a52,52,0,1,1,52,52A52.06,52.06,0,0,1,76,96Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,96a64,64,0,1,1-64-64A64,64,0,0,1,192,96Z",opacity:"0.2"}),r.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.93,220a8,8,0,0,1-6.93,4H32a8,8,0,0,1-6.92-12c15.23-26.33,38.7-45.21,66.09-54.16a72,72,0,1,1,73.66,0c27.39,8.95,50.86,27.83,66.09,54.16A8,8,0,0,1,230.93,220Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.19,213c-15.81-27.32-40.63-46.49-69.47-54.62a70,70,0,1,0-63.44,0C67.44,166.5,42.62,185.67,26.81,213a6,6,0,1,0,10.38,6C56.4,185.81,90.34,166,128,166s71.6,19.81,90.81,53a6,6,0,1,0,10.38-6ZM70,96a58,58,0,1,1,58,58A58.07,58.07,0,0,1,70,96Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.46,214c-16.52-28.56-43-48.06-73.68-55.09a68,68,0,1,0-51.56,0c-30.64,7-57.16,26.53-73.68,55.09a4,4,0,0,0,6.92,4C55,184.19,89.62,164,128,164s73,20.19,92.54,54a4,4,0,0,0,3.46,2,3.93,3.93,0,0,0,2-.54A4,4,0,0,0,227.46,214ZM68,96a60,60,0,1,1,60,60A60.07,60.07,0,0,1,68,96Z"}))]]),Hq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20ZM79.57,196.57a60,60,0,0,1,96.86,0,83.72,83.72,0,0,1-96.86,0ZM100,120a28,28,0,1,1,28,28A28,28,0,0,1,100,120ZM194,179.94a83.48,83.48,0,0,0-29-23.42,52,52,0,1,0-74,0,83.48,83.48,0,0,0-29,23.42,84,84,0,1,1,131.9,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a95.76,95.76,0,0,1-31.8,71.37A72,72,0,0,0,128,160a40,40,0,1,0-40-40,40,40,0,0,0,40,40,72,72,0,0,0-64.2,39.37h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M172,120a44,44,0,1,1-44-44A44.05,44.05,0,0,1,172,120Zm60,8A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88.09,88.09,0,0,0-91.47-87.93C77.43,41.89,39.87,81.12,40,128.25a87.65,87.65,0,0,0,22.24,58.16A79.71,79.71,0,0,1,84,165.1a4,4,0,0,1,4.83.32,59.83,59.83,0,0,0,78.28,0,4,4,0,0,1,4.83-.32,79.71,79.71,0,0,1,21.79,21.31A87.62,87.62,0,0,0,216,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26ZM71.44,198a66,66,0,0,1,113.12,0,89.8,89.8,0,0,1-113.12,0ZM94,120a34,34,0,1,1,34,34A34,34,0,0,1,94,120Zm99.51,69.64a77.53,77.53,0,0,0-40-31.38,46,46,0,1,0-51,0,77.53,77.53,0,0,0-40,31.38,90,90,0,1,1,131,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28ZM68.87,198.42a68,68,0,0,1,118.26,0,91.8,91.8,0,0,1-118.26,0Zm124.3-5.55a75.61,75.61,0,0,0-44.51-34,44,44,0,1,0-41.32,0,75.61,75.61,0,0,0-44.51,34,92,92,0,1,1,130.34,0ZM128,156a36,36,0,1,1,36-36A36,36,0,0,1,128,156Z"}))]]),_q=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220.69,100.17A12,12,0,0,0,210.84,114,85,85,0,0,1,212,128,83.57,83.57,0,0,1,194,179.94a83.48,83.48,0,0,0-29-23.42,52,52,0,1,0-74,0,83.48,83.48,0,0,0-29,23.42A83.94,83.94,0,0,1,128,44a85,85,0,0,1,14,1.16,12,12,0,0,0,4-23.67A108.1,108.1,0,0,0,20,128a108,108,0,0,0,216,0,109.19,109.19,0,0,0-1.49-18A12,12,0,0,0,220.69,100.17ZM100,120a28,28,0,1,1,28,28A28,28,0,0,1,100,120ZM79.57,196.57a60,60,0,0,1,96.86,0,83.72,83.72,0,0,1-96.86,0ZM240.49,48.49l-32,32a12,12,0,0,1-17,0l-16-16a12,12,0,0,1,17-17L200,55l23.51-23.52a12,12,0,1,1,17,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a95.76,95.76,0,0,1-31.8,71.37A72,72,0,0,0,128,160a40,40,0,1,0-40-40,40,40,0,0,0,40,40,72,72,0,0,0-64.2,39.37h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M221.35,104.11a8,8,0,0,0-6.57,9.21A88.85,88.85,0,0,1,216,128a87.62,87.62,0,0,1-22.24,58.41,79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75A88,88,0,0,1,128,40a88.76,88.76,0,0,1,14.68,1.22,8,8,0,0,0,2.64-15.78,103.92,103.92,0,1,0,85.24,85.24A8,8,0,0,0,221.35,104.11ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM237.66,45.66l-32,32a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L200,60.69l26.34-26.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.56,110.68a103.92,103.92,0,1,1-85.24-85.24,8,8,0,0,1-2.64,15.78A88.07,88.07,0,0,0,40,128a87.62,87.62,0,0,0,22.24,58.41A79.71,79.71,0,0,1,84,165.1a4,4,0,0,1,4.84.32,59.8,59.8,0,0,0,78.26,0,4,4,0,0,1,4.84-.32,79.86,79.86,0,0,1,21.79,21.31A87.62,87.62,0,0,0,216,128a88.85,88.85,0,0,0-1.22-14.68,8,8,0,1,1,15.78-2.64ZM84,120a44,44,0,1,0,44-44A44,44,0,0,0,84,120ZM237.66,34.34a8,8,0,0,0-11.32,0L200,60.69,189.66,50.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32A8,8,0,0,0,237.66,34.34Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.68,106.08a6,6,0,0,0-4.92,6.91A91.66,91.66,0,0,1,218,128a89.65,89.65,0,0,1-24.49,61.64,77.53,77.53,0,0,0-40-31.38,46,46,0,1,0-51,0,77.53,77.53,0,0,0-40,31.38A89.95,89.95,0,0,1,128,38a91.57,91.57,0,0,1,15,1.24,6,6,0,1,0,2-11.83,101.9,101.9,0,1,0,83.6,83.6A6,6,0,0,0,221.68,106.08ZM94,120a34,34,0,1,1,34,34A34,34,0,0,1,94,120ZM71.44,198a66,66,0,0,1,113.12,0,89.8,89.8,0,0,1-113.12,0ZM236.24,44.24l-32,32a6,6,0,0,1-8.48,0l-16-16a6,6,0,0,1,8.48-8.48L200,63.51l27.76-27.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.35,104.11a8,8,0,0,0-6.57,9.21A88.85,88.85,0,0,1,216,128a87.62,87.62,0,0,1-22.24,58.41,79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75A88,88,0,0,1,128,40a88.76,88.76,0,0,1,14.68,1.22,8,8,0,0,0,2.64-15.78,103.92,103.92,0,1,0,85.24,85.24A8,8,0,0,0,221.35,104.11ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM237.66,45.66l-32,32a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L200,60.69l26.34-26.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,108.05a4,4,0,0,0-3.28,4.61A93.4,93.4,0,0,1,220,128a91.71,91.71,0,0,1-26.83,64.87,75.61,75.61,0,0,0-44.51-34,44,44,0,1,0-41.32,0,75.61,75.61,0,0,0-44.51,34A92,92,0,0,1,128,36a93.4,93.4,0,0,1,15.34,1.27,4,4,0,0,0,1.32-7.89A100,100,0,1,0,228,128a101.78,101.78,0,0,0-1.38-16.66A4,4,0,0,0,222,108.05ZM92,120a36,36,0,1,1,36,36A36,36,0,0,1,92,120ZM68.87,198.42a68,68,0,0,1,118.26,0,91.8,91.8,0,0,1-118.26,0Zm166-155.59-32,32a4,4,0,0,1-5.66,0l-16-16a4,4,0,0,1,5.66-5.66L200,66.34l29.17-29.17a4,4,0,1,1,5.66,5.66Z"}))]]),Vq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164,56a12,12,0,0,1,12-12h48a12,12,0,0,1,0,24H176A12,12,0,0,1,164,56Zm65.85,36A108,108,0,1,1,128,20a109.19,109.19,0,0,1,18,1.49,12,12,0,0,1-4,23.67A85,85,0,0,0,128,44,83.94,83.94,0,0,0,62.05,179.94a83.48,83.48,0,0,1,29-23.42,52,52,0,1,1,74,0,83.36,83.36,0,0,1,29,23.42A83.94,83.94,0,0,0,207.22,100a12,12,0,0,1,22.63-8ZM128,148a28,28,0,1,0-28-28A28,28,0,0,0,128,148Zm0,64a83.53,83.53,0,0,0,48.43-15.43,60,60,0,0,0-96.86,0A83.53,83.53,0,0,0,128,212Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a95.76,95.76,0,0,1-31.8,71.37A72,72,0,0,0,128,160a40,40,0,1,0-40-40,40,40,0,0,0,40,40,72,72,0,0,0-64.2,39.37h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M168,56a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H176A8,8,0,0,1,168,56Zm58.08,37.33a103.93,103.93,0,1,1-80.76-67.89,8,8,0,0,1-2.64,15.78A88.07,88.07,0,0,0,40,128a87.62,87.62,0,0,0,22.24,58.41A79.66,79.66,0,0,1,98.3,157.66a48,48,0,1,1,59.4,0,79.66,79.66,0,0,1,36.06,28.75A88,88,0,0,0,211,98.67a8,8,0,0,1,15.09-5.34ZM128,152a32,32,0,1,0-32-32A32,32,0,0,0,128,152Zm0,64a87.57,87.57,0,0,0,53.92-18.5,64,64,0,0,0-107.84,0A87.57,87.57,0,0,0,128,216Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,76a44,44,0,1,1-44,44A44,44,0,0,1,128,76Zm48-12h48a8,8,0,0,0,0-16H176a8,8,0,0,0,0,16Zm39.87,24.46A8,8,0,0,0,211,98.67a88,88,0,0,1-17.23,87.74A79.86,79.86,0,0,0,172,165.1a4,4,0,0,0-4.84.32,59.81,59.81,0,0,1-78.27,0A4,4,0,0,0,84,165.1a79.71,79.71,0,0,0-21.79,21.31A88,88,0,0,1,128,40a88.76,88.76,0,0,1,14.68,1.22,8,8,0,0,0,2.64-15.78,103.9,103.9,0,1,0,80.76,67.89A8,8,0,0,0,215.87,88.46Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M170,56a6,6,0,0,1,6-6h48a6,6,0,0,1,0,12H176A6,6,0,0,1,170,56Zm54.19,38A101.9,101.9,0,1,1,145,27.41a6,6,0,1,1-2,11.83A91.66,91.66,0,0,0,128,38,89.95,89.95,0,0,0,62.49,189.64a77.53,77.53,0,0,1,40-31.38,46,46,0,1,1,51,0,77.53,77.53,0,0,1,40,31.38A90,90,0,0,0,212.88,98a6,6,0,1,1,11.31-4ZM128,154a34,34,0,1,0-34-34A34,34,0,0,0,128,154Zm0,64A89.58,89.58,0,0,0,184.56,198a66,66,0,0,0-113.12,0A89.58,89.58,0,0,0,128,218Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,56a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H176A8,8,0,0,1,168,56Zm58.08,37.33a103.93,103.93,0,1,1-80.76-67.89,8,8,0,0,1-2.64,15.78A88.07,88.07,0,0,0,40,128a87.62,87.62,0,0,0,22.24,58.41A79.66,79.66,0,0,1,98.3,157.66a48,48,0,1,1,59.4,0,79.66,79.66,0,0,1,36.06,28.75A88,88,0,0,0,211,98.67a8,8,0,0,1,15.09-5.34ZM128,152a32,32,0,1,0-32-32A32,32,0,0,0,128,152Zm0,64a87.57,87.57,0,0,0,53.92-18.5,64,64,0,0,0-107.84,0A87.57,87.57,0,0,0,128,216Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M172,56a4,4,0,0,1,4-4h48a4,4,0,0,1,0,8H176A4,4,0,0,1,172,56Zm50.31,38.67A100,100,0,1,1,128,28a100.69,100.69,0,0,1,16.66,1.38,4,4,0,0,1-1.32,7.89A93.4,93.4,0,0,0,128,36,92,92,0,0,0,62.83,192.87a75.61,75.61,0,0,1,44.51-34,44,44,0,1,1,41.32,0,75.61,75.61,0,0,1,44.51,34,92,92,0,0,0,21.6-95.54,4,4,0,1,1,7.54-2.66ZM128,156a36,36,0,1,0-36-36A36,36,0,0,0,128,156Zm0,64a91.61,91.61,0,0,0,59.14-21.58,68,68,0,0,0-118.27,0A91.56,91.56,0,0,0,128,220Z"}))]]),Tq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M148.5,156.53a72,72,0,1,0-89,0,124,124,0,0,0-48.69,35.75,12,12,0,0,0,18.38,15.44C48.54,184.69,75.11,172,104,172c37,0,61.12,19.42,74.81,35.72a12,12,0,1,0,18.38-15.44A124,124,0,0,0,148.5,156.53ZM56,100a48,48,0,1,1,48,48A48.05,48.05,0,0,1,56,100Zm190.53,40-7.11,2.31,4.39,6.05a12,12,0,1,1-19.41,14.11l-4.4-6.06-4.4,6.06a12,12,0,1,1-19.41-14.11l4.39-6.05L193.47,140a12,12,0,1,1,7.41-22.83l7.12,2.31V112a12,12,0,0,1,24,0v7.48l7.12-2.31A12,12,0,1,1,246.53,140Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,100a60,60,0,1,1-60-60A60,60,0,0,1,168,100Z",opacity:"0.2"}),r.createElement("path",{d:"M144,157.68a68,68,0,1,0-71.9,0c-20.65,6.76-39.23,19.39-54.17,37.17a8,8,0,1,0,12.24,10.3C50.25,181.19,77.91,168,108,168s57.75,13.19,77.87,37.15a8,8,0,0,0,12.26-10.3C183.18,177.07,164.6,164.44,144,157.68ZM56,100a52,52,0,1,1,52,52A52.06,52.06,0,0,1,56,100Zm196.25,43.07-4.66-2.69a23.6,23.6,0,0,0,0-8.76l4.66-2.69a8,8,0,1,0-8-13.86l-4.67,2.7a23.92,23.92,0,0,0-7.58-4.39V108a8,8,0,0,0-16,0v5.38a23.92,23.92,0,0,0-7.58,4.39l-4.67-2.7a8,8,0,1,0-8,13.86l4.66,2.69a23.6,23.6,0,0,0,0,8.76l-4.66,2.69a8,8,0,0,0,8,13.86l4.67-2.7a23.92,23.92,0,0,0,7.58,4.39V164a8,8,0,0,0,16,0v-5.38a23.92,23.92,0,0,0,7.58-4.39l4.67,2.7a7.92,7.92,0,0,0,4,1.07,8,8,0,0,0,4-14.93ZM224,144a8,8,0,1,1,8-8A8,8,0,0,1,224,144Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M198.13,194.85A8,8,0,0,1,192,208H24a8,8,0,0,1-6.12-13.15c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM255.18,154a8,8,0,0,1-6.94,4,7.92,7.92,0,0,1-4-1.07l-4.67-2.7a23.92,23.92,0,0,1-7.58,4.39V164a8,8,0,0,1-16,0v-5.38a23.92,23.92,0,0,1-7.58-4.39l-4.67,2.7a7.92,7.92,0,0,1-4,1.07,8,8,0,0,1-4-14.93l4.66-2.69a23.6,23.6,0,0,1,0-8.76l-4.66-2.69a8,8,0,1,1,8-13.86l4.67,2.7a23.92,23.92,0,0,1,7.58-4.39V108a8,8,0,0,1,16,0v5.38a23.92,23.92,0,0,1,7.58,4.39l4.67-2.7a8,8,0,1,1,8,13.86l-4.66,2.69a23.6,23.6,0,0,1,0,8.76l4.66,2.69A8,8,0,0,1,255.18,154ZM224,144a8,8,0,1,0-8-8A8,8,0,0,0,224,144Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M139,158.25a66,66,0,1,0-62,0c-22,6.23-41.88,19.16-57.61,37.89a6,6,0,0,0,9.18,7.72C49.1,179.44,77.31,166,108,166s58.9,13.44,79.41,37.86a6,6,0,1,0,9.18-7.72C180.86,177.41,161,164.48,139,158.25ZM54,100a54,54,0,1,1,54,54A54.06,54.06,0,0,1,54,100Zm197.25,44.8-5.92-3.41a22,22,0,0,0,0-10.78l5.92-3.41a6,6,0,0,0-6-10.4l-5.93,3.43a22,22,0,0,0-9.32-5.39V108a6,6,0,0,0-12,0v6.84a22,22,0,0,0-9.32,5.39l-5.93-3.43a6,6,0,0,0-6,10.4l5.92,3.41a22,22,0,0,0,0,10.78l-5.92,3.41a6,6,0,0,0,6,10.4l5.93-3.43a22,22,0,0,0,9.32,5.39V164a6,6,0,0,0,12,0v-6.84a22,22,0,0,0,9.32-5.39l5.93,3.43a6,6,0,0,0,6-10.4ZM224,146a10,10,0,1,1,10-10A10,10,0,0,1,224,146Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M144,157.68a68,68,0,1,0-71.9,0c-20.65,6.76-39.23,19.39-54.17,37.17a8,8,0,1,0,12.24,10.3C50.25,181.19,77.91,168,108,168s57.75,13.19,77.87,37.15a8,8,0,0,0,12.26-10.3C183.18,177.07,164.6,164.44,144,157.68ZM56,100a52,52,0,1,1,52,52A52.06,52.06,0,0,1,56,100Zm196.25,43.07-4.66-2.69a23.6,23.6,0,0,0,0-8.76l4.66-2.69a8,8,0,1,0-8-13.86l-4.67,2.7a23.92,23.92,0,0,0-7.58-4.39V108a8,8,0,0,0-16,0v5.38a23.92,23.92,0,0,0-7.58,4.39l-4.67-2.7a8,8,0,1,0-8,13.86l4.66,2.69a23.6,23.6,0,0,0,0,8.76l-4.66,2.69a8,8,0,0,0,8,13.86l4.67-2.7a23.92,23.92,0,0,0,7.58,4.39V164a8,8,0,0,0,16,0v-5.38a23.92,23.92,0,0,0,7.58-4.39l4.67,2.7a7.92,7.92,0,0,0,4,1.07,8,8,0,0,0,4-14.93ZM216,136a8,8,0,1,1,8,8A8,8,0,0,1,216,136Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M133.17,158.84a64,64,0,1,0-50.34,0c-23.76,5.46-45.18,18.69-61.89,38.59a4,4,0,1,0,6.12,5.14C48,177.7,76.7,164,108,164s60,13.7,80.94,38.57a4,4,0,0,0,6.12-5.14C178.35,177.53,156.93,164.3,133.17,158.84ZM52,100a56,56,0,1,1,56,56A56.06,56.06,0,0,1,52,100Zm198.25,46.54L243,142.33a19.78,19.78,0,0,0,0-12.66l7.29-4.21a4,4,0,1,0-4-6.92l-7.31,4.21A20,20,0,0,0,228,116.4V108a4,4,0,0,0-8,0v8.4a20,20,0,0,0-10.94,6.35l-7.31-4.21a4,4,0,1,0-4,6.92l7.29,4.21a19.78,19.78,0,0,0,0,12.66l-7.29,4.21a4,4,0,0,0,2,7.46,3.92,3.92,0,0,0,2-.54l7.31-4.21A20,20,0,0,0,220,155.6V164a4,4,0,0,0,8,0v-8.4a20,20,0,0,0,10.94-6.35l7.31,4.21a3.92,3.92,0,0,0,2,.54,4,4,0,0,0,2-7.46ZM224,148a12,12,0,1,1,12-12A12,12,0,0,1,224,148Z"}))]]),Lq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M256,136a12,12,0,0,1-12,12h-8v8a12,12,0,0,1-24,0v-8h-8a12,12,0,0,1,0-24h8v-8a12,12,0,0,1,24,0v8h8A12,12,0,0,1,256,136Zm-54.81,56.28a12,12,0,1,1-18.38,15.44C169.12,191.42,145,172,108,172c-28.89,0-55.46,12.68-74.81,35.72a12,12,0,0,1-18.38-15.44A124.08,124.08,0,0,1,63.5,156.53a72,72,0,1,1,89,0A124,124,0,0,1,201.19,192.28ZM108,148a48,48,0,1,0-48-48A48.05,48.05,0,0,0,108,148Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,100a60,60,0,1,1-60-60A60,60,0,0,1,168,100Z",opacity:"0.2"}),r.createElement("path",{d:"M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136Zm-57.87,58.85a8,8,0,0,1-12.26,10.3C165.75,181.19,138.09,168,108,168s-57.75,13.19-77.87,37.15a8,8,0,0,1-12.25-10.3c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM108,152a52,52,0,1,0-52-52A52.06,52.06,0,0,0,108,152Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136ZM144,157.68a68,68,0,1,0-71.9,0c-20.65,6.76-39.23,19.39-54.17,37.17A8,8,0,0,0,24,208H192a8,8,0,0,0,6.13-13.15C183.18,177.07,164.6,164.44,144,157.68Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M254,136a6,6,0,0,1-6,6H230v18a6,6,0,0,1-12,0V142H200a6,6,0,0,1,0-12h18V112a6,6,0,0,1,12,0v18h18A6,6,0,0,1,254,136Zm-57.41,60.14a6,6,0,1,1-9.18,7.72C166.9,179.45,138.69,166,108,166s-58.89,13.45-79.41,37.86a6,6,0,0,1-9.18-7.72C35.14,177.41,55,164.48,77,158.25a66,66,0,1,1,62,0C161,164.48,180.86,177.41,196.59,196.14ZM108,154a54,54,0,1,0-54-54A54.06,54.06,0,0,0,108,154Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136Zm-57.87,58.85a8,8,0,0,1-12.26,10.3C165.75,181.19,138.09,168,108,168s-57.75,13.19-77.87,37.15a8,8,0,0,1-12.25-10.3c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM108,152a52,52,0,1,0-52-52A52.06,52.06,0,0,0,108,152Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M252,136a4,4,0,0,1-4,4H228v20a4,4,0,0,1-8,0V140H200a4,4,0,0,1,0-8h20V112a4,4,0,0,1,8,0v20h20A4,4,0,0,1,252,136Zm-56.94,61.43a4,4,0,0,1-6.12,5.14C168,177.7,139.3,164,108,164s-60,13.7-80.94,38.57a4,4,0,1,1-6.12-5.14c16.71-19.9,38.13-33.13,61.89-38.59a64,64,0,1,1,50.34,0C156.93,164.3,178.35,177.53,195.06,197.43ZM108,156a56,56,0,1,0-56-56A56.06,56.06,0,0,0,108,156Z"}))]]),kq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M125.18,156.94a64,64,0,1,0-82.36,0,100.23,100.23,0,0,0-39.49,32,12,12,0,0,0,19.35,14.2,76,76,0,0,1,122.64,0,12,12,0,0,0,19.36-14.2A100.33,100.33,0,0,0,125.18,156.94ZM44,108a40,40,0,1,1,40,40A40,40,0,0,1,44,108Zm206.1,97.67a12,12,0,0,1-16.78-2.57A76.31,76.31,0,0,0,172,172a12,12,0,0,1,0-24,40,40,0,1,0-10.3-78.67,12,12,0,1,1-6.16-23.19,64,64,0,0,1,57.64,110.8,100.23,100.23,0,0,1,39.49,32A12,12,0,0,1,250.1,205.67Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M136,108A52,52,0,1,1,84,56,52,52,0,0,1,136,108Z",opacity:"0.2"}),r.createElement("path",{d:"M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164.47,195.63a8,8,0,0,1-6.7,12.37H10.23a8,8,0,0,1-6.7-12.37,95.83,95.83,0,0,1,47.22-37.71,60,60,0,1,1,66.5,0A95.83,95.83,0,0,1,164.47,195.63Zm87.91-.15a95.87,95.87,0,0,0-47.13-37.56A60,60,0,0,0,144.7,54.59a4,4,0,0,0-1.33,6A75.83,75.83,0,0,1,147,150.53a4,4,0,0,0,1.07,5.53,112.32,112.32,0,0,1,29.85,30.83,23.92,23.92,0,0,1,3.65,16.47,4,4,0,0,0,3.95,4.64h60.3a8,8,0,0,0,7.73-5.93A8.22,8.22,0,0,0,252.38,195.48Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M112.6,158.43a58,58,0,1,0-57.2,0A93.83,93.83,0,0,0,5.21,196.72a6,6,0,0,0,10.05,6.56,82,82,0,0,1,137.48,0,6,6,0,0,0,10-6.56A93.83,93.83,0,0,0,112.6,158.43ZM38,108a46,46,0,1,1,46,46A46.06,46.06,0,0,1,38,108Zm211,97a6,6,0,0,1-8.3-1.74A81.8,81.8,0,0,0,172,166a6,6,0,0,1,0-12,46,46,0,1,0-17.08-88.73,6,6,0,1,1-4.46-11.14,58,58,0,0,1,50.14,104.3,93.83,93.83,0,0,1,50.19,38.29A6,6,0,0,1,249,205Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M107.19,159a56,56,0,1,0-46.38,0A91.83,91.83,0,0,0,6.88,197.81a4,4,0,1,0,6.7,4.37,84,84,0,0,1,140.84,0,4,4,0,1,0,6.7-4.37A91.83,91.83,0,0,0,107.19,159ZM36,108a48,48,0,1,1,48,48A48.05,48.05,0,0,1,36,108Zm212,95.35a4,4,0,0,1-5.53-1.17A83.81,83.81,0,0,0,172,164a4,4,0,0,1,0-8,48,48,0,1,0-17.82-92.58,4,4,0,1,1-3-7.43,56,56,0,0,1,44,103,91.83,91.83,0,0,1,53.93,38.86A4,4,0,0,1,248,203.35Z"}))]]),Rq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164.38,181.1a52,52,0,1,0-72.76,0,75.89,75.89,0,0,0-30,28.89,12,12,0,0,0,20.78,12,53,53,0,0,1,91.22,0,12,12,0,1,0,20.78-12A75.89,75.89,0,0,0,164.38,181.1ZM100,144a28,28,0,1,1,28,28A28,28,0,0,1,100,144Zm147.21,9.59a12,12,0,0,1-16.81-2.39c-8.33-11.09-19.85-19.59-29.33-21.64a12,12,0,0,1-1.82-22.91,20,20,0,1,0-24.78-28.3,12,12,0,1,1-21-11.6,44,44,0,1,1,73.28,48.35,92.18,92.18,0,0,1,22.85,21.69A12,12,0,0,1,247.21,153.59Zm-192.28-24c-9.48,2.05-21,10.55-29.33,21.65A12,12,0,0,1,6.41,136.79,92.37,92.37,0,0,1,29.26,115.1a44,44,0,1,1,73.28-48.35,12,12,0,1,1-21,11.6,20,20,0,1,0-24.78,28.3,12,12,0,0,1-1.82,22.91Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,144a40,40,0,1,1-40-40A40,40,0,0,1,168,144ZM64,56A32,32,0,1,0,96,88,32,32,0,0,0,64,56Zm128,0a32,32,0,1,0,32,32A32,32,0,0,0,192,56Z",opacity:"0.2"}),r.createElement("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1,0-16,24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.85,8,57,57,0,0,0-98.15,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M64.12,147.8a4,4,0,0,1-4,4.2H16a8,8,0,0,1-7.8-6.17,8.35,8.35,0,0,1,1.62-6.93A67.79,67.79,0,0,1,37,117.51a40,40,0,1,1,66.46-35.8,3.94,3.94,0,0,1-2.27,4.18A64.08,64.08,0,0,0,64,144C64,145.28,64,146.54,64.12,147.8Zm182-8.91A67.76,67.76,0,0,0,219,117.51a40,40,0,1,0-66.46-35.8,3.94,3.94,0,0,0,2.27,4.18A64.08,64.08,0,0,1,192,144c0,1.28,0,2.54-.12,3.8a4,4,0,0,0,4,4.2H240a8,8,0,0,0,7.8-6.17A8.33,8.33,0,0,0,246.17,138.89Zm-89,43.18a48,48,0,1,0-58.37,0A72.13,72.13,0,0,0,65.07,212,8,8,0,0,0,72,224H184a8,8,0,0,0,6.93-12A72.15,72.15,0,0,0,157.19,182.07Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M243.6,148.8a6,6,0,0,1-8.4-1.2A53.58,53.58,0,0,0,192,126a6,6,0,0,1,0-12,26,26,0,1,0-25.18-32.5,6,6,0,0,1-11.62-3,38,38,0,1,1,59.91,39.63A65.69,65.69,0,0,1,244.8,140.4,6,6,0,0,1,243.6,148.8ZM189.19,213a6,6,0,0,1-2.19,8.2,5.9,5.9,0,0,1-3,.81,6,6,0,0,1-5.2-3,59,59,0,0,0-101.62,0,6,6,0,1,1-10.38-6A70.1,70.1,0,0,1,103,182.55a46,46,0,1,1,50.1,0A70.1,70.1,0,0,1,189.19,213ZM128,178a34,34,0,1,0-34-34A34,34,0,0,0,128,178ZM70,120a6,6,0,0,0-6-6A26,26,0,1,1,89.18,81.49a6,6,0,1,0,11.62-3,38,38,0,1,0-59.91,39.63A65.69,65.69,0,0,0,11.2,140.4a6,6,0,1,0,9.6,7.2A53.58,53.58,0,0,1,64,126,6,6,0,0,0,70,120Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1-7.37-4.89,8,8,0,0,1,0-6.22A8,8,0,0,1,192,112a24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.84,8,57,57,0,0,0-98.16,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237,147.44a4,4,0,0,1-5.48-1.4c-8.33-14-20.93-22-34.56-22a4,4,0,0,1-1.2-.2,36.76,36.76,0,0,1-3.8.2,4,4,0,0,1,0-8,28,28,0,1,0-27.12-35,4,4,0,0,1-7.75-2,36,36,0,1,1,54,39.48c10.81,3.85,20.51,12,27.31,23.48A4,4,0,0,1,237,147.44ZM187.46,214a4,4,0,0,1-1.46,5.46,3.93,3.93,0,0,1-2,.54,4,4,0,0,1-3.46-2,61,61,0,0,0-105.08,0,4,4,0,0,1-6.92-4,68.35,68.35,0,0,1,39.19-31,44,44,0,1,1,40.54,0A68.35,68.35,0,0,1,187.46,214ZM128,180a36,36,0,1,0-36-36A36,36,0,0,0,128,180ZM64,116A28,28,0,1,1,91.12,81a4,4,0,0,0,7.75-2A36,36,0,1,0,45.3,118.75,63.55,63.55,0,0,0,12.8,141.6a4,4,0,0,0,6.4,4.8A55.55,55.55,0,0,1,64,124a4,4,0,0,0,0-8Z"}))]]),Dq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),r.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),Fq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M60,96v64a12,12,0,0,1-24,0V96a12,12,0,0,1,24,0ZM88,20A12,12,0,0,0,76,32V224a12,12,0,0,0,24,0V32A12,12,0,0,0,88,20Zm40,32a12,12,0,0,0-12,12V192a12,12,0,0,0,24,0V64A12,12,0,0,0,128,52Zm40,32a12,12,0,0,0-12,12v64a12,12,0,0,0,24,0V96A12,12,0,0,0,168,84Zm40-16a12,12,0,0,0-12,12v96a12,12,0,0,0,24,0V80A12,12,0,0,0,208,68Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,96v64H48V96Z",opacity:"0.2"}),r.createElement("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"}))],["fill",r.createElement(r.Fragment,null,r.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,40ZM72,152a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,32a8,8,0,0,1-16,0V72a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V88a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,8a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M54,96v64a6,6,0,0,1-12,0V96a6,6,0,0,1,12,0ZM88,26a6,6,0,0,0-6,6V224a6,6,0,0,0,12,0V32A6,6,0,0,0,88,26Zm40,32a6,6,0,0,0-6,6V192a6,6,0,0,0,12,0V64A6,6,0,0,0,128,58Zm40,32a6,6,0,0,0-6,6v64a6,6,0,0,0,12,0V96A6,6,0,0,0,168,90Zm40-16a6,6,0,0,0-6,6v96a6,6,0,0,0,12,0V80A6,6,0,0,0,208,74Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M52,96v64a4,4,0,0,1-8,0V96a4,4,0,0,1,8,0ZM88,28a4,4,0,0,0-4,4V224a4,4,0,0,0,8,0V32A4,4,0,0,0,88,28Zm40,32a4,4,0,0,0-4,4V192a4,4,0,0,0,8,0V64A4,4,0,0,0,128,60Zm40,32a4,4,0,0,0-4,4v64a4,4,0,0,0,8,0V96A4,4,0,0,0,168,92Zm40-16a4,4,0,0,0-4,4v96a4,4,0,0,0,8,0V80A4,4,0,0,0,208,76Z"}))]]),Oq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,180H118.71a56,56,0,1,1-104.6-37.46,12,12,0,1,1,21.37,10.92A31.64,31.64,0,0,0,32,168a32,32,0,0,0,64,0,12,12,0,0,1,12-12h84a12,12,0,0,1,0,24Zm0-68a55.9,55.9,0,0,0-18.45,3.12L138.22,57.71a12,12,0,0,0-20.44,12.58l40.94,66.52a12,12,0,0,0,16.52,3.93,32,32,0,1,1,19.68,59.13A12,12,0,0,0,196,223.82a10.05,10.05,0,0,0,1.09,0A56,56,0,0,0,192,112ZM57.71,178.22a12,12,0,0,0,16.51-3.93l40.94-66.52a12,12,0,0,0-3.92-16.51,32,32,0,1,1,45.28-41.8,12,12,0,1,0,21.37-10.92A56,56,0,1,0,89.1,104.32L53.78,161.71A12,12,0,0,0,57.71,178.22Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,104a40,40,0,1,1,40-40A40,40,0,0,1,128,104Zm64,24a40,40,0,1,0,40,40A40,40,0,0,0,192,128ZM64,128a40,40,0,1,0,40,40A40,40,0,0,0,64,128Z",opacity:"0.2"}),r.createElement("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M50.15,160,89.07,92.57l-2.24-3.88a48,48,0,1,1,85.05-44.17,8.17,8.17,0,0,1-3.19,10.4,8,8,0,0,1-11.35-3.72,32,32,0,1,0-56.77,29.3.57.57,0,0,1,.08.13l13.83,23.94a8,8,0,0,1,0,8L77.86,176a16,16,0,0,1-27.71-16Zm141-40H178.81L141.86,56a16,16,0,0,0-27.71,16l34.64,60a8,8,0,0,0,6.92,4h35.63c17.89,0,32.95,14.64,32.66,32.53A32,32,0,0,1,192.31,200a8.23,8.23,0,0,0-8.28,7.33,8,8,0,0,0,8,8.67,48.05,48.05,0,0,0,48-48.93C239.49,140.79,217.48,120,191.19,120ZM208,167.23c-.4-8.61-7.82-15.23-16.43-15.23H114.81a8,8,0,0,0-6.93,4L91.72,184h0a32,32,0,1,1-53.47-35,8.2,8.2,0,0,0-.92-11,8,8,0,0,0-11.72,1.17A47.63,47.63,0,0,0,16,167.54,48,48,0,0,0,105.55,192v0l4.62-8H192A16,16,0,0,0,208,167.23Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M179.37,174H109.6a46,46,0,1,1-82.4-33.61,6,6,0,0,1,9.6,7.21A33.68,33.68,0,0,0,30,168a34,34,0,0,0,68,0,6,6,0,0,1,6-6h75.37a14,14,0,1,1,0,12ZM64,182a14,14,0,0,0,11.73-21.62l36.42-59.18a6,6,0,0,0-2-8.25,34,34,0,1,1,49-42.57,6,6,0,1,0,11-4.79A46,46,0,1,0,99,99.7L65.52,154.08c-.5-.05-1-.08-1.52-.08a14,14,0,0,0,0,28Zm128-60a46,46,0,0,0-18.8,4L139.73,71.61A14,14,0,1,0,128,78a12.79,12.79,0,0,0,1.52-.09l36.4,59.17a6.05,6.05,0,0,0,3.73,2.69,6,6,0,0,0,4.53-.73A34,34,0,1,1,192,202a6,6,0,0,0,0,12,46,46,0,0,0,0-92Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M180.7,172H107.81a44,44,0,1,1-79-30.41,4,4,0,0,1,6.4,4.81A35.67,35.67,0,0,0,28,168a36,36,0,0,0,72,0,4,4,0,0,1,4-4h76.7a12,12,0,1,1,0,8ZM64,180a12,12,0,0,0,9.33-19.54l37.11-60.3a4,4,0,0,0-1.31-5.51A36,36,0,1,1,161,49.58a4,4,0,1,0,7.33-3.19,44,44,0,1,0-66.71,52.83l-35.1,57.05A11.58,11.58,0,0,0,64,156a12,12,0,0,0,0,24Zm128-56a44,44,0,0,0-19.56,4.58l-35.11-57A12,12,0,1,0,128,76a12.24,12.24,0,0,0,2.52-.27L167.63,136a4,4,0,0,0,5.5,1.31A36,36,0,1,1,192,204a4,4,0,0,0,0,8,44,44,0,0,0,0-88Z"}))]]),zq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M144,204a16,16,0,1,1-16-16A16,16,0,0,1,144,204ZM239.61,83.91a176,176,0,0,0-223.22,0,12,12,0,1,0,15.23,18.55,152,152,0,0,1,192.76,0,12,12,0,1,0,15.23-18.55Zm-32.16,35.73a128,128,0,0,0-158.9,0,12,12,0,0,0,14.9,18.81,104,104,0,0,1,129.1,0,12,12,0,0,0,14.9-18.81ZM175.07,155.3a80.05,80.05,0,0,0-94.14,0,12,12,0,0,0,14.14,19.4,56,56,0,0,1,65.86,0,12,12,0,1,0,14.14-19.4Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M238.2,87.69l-104,125.43a8,8,0,0,1-12.3,0L17.8,87.69a7.79,7.79,0,0,1,1.31-11.21,180.75,180.75,0,0,1,217.78,0A7.79,7.79,0,0,1,238.2,87.69Z",opacity:"0.2"}),r.createElement("path",{d:"M247.89,80.91a15.93,15.93,0,0,0-6.17-10.81A186.67,186.67,0,0,0,128,32,186.67,186.67,0,0,0,14.28,70.1,15.93,15.93,0,0,0,8.11,80.91,15.65,15.65,0,0,0,11.65,92.8l104,125.43A15.93,15.93,0,0,0,128,224h0a15.93,15.93,0,0,0,12.31-5.77l104-125.43A15.65,15.65,0,0,0,247.89,80.91ZM128,208,24.09,82.74A170.76,170.76,0,0,1,128,48,170.76,170.76,0,0,1,231.91,82.74Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M244.35,92.8l-104,125.43A15.93,15.93,0,0,1,128,224h0a15.93,15.93,0,0,1-12.31-5.77L11.65,92.8A15.65,15.65,0,0,1,8.11,80.91,15.93,15.93,0,0,1,14.28,70.1,186.67,186.67,0,0,1,128,32,186.67,186.67,0,0,1,241.72,70.1a15.93,15.93,0,0,1,6.17,10.81A15.65,15.65,0,0,1,244.35,92.8Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M138,204a10,10,0,1,1-10-10A10,10,0,0,1,138,204ZM235.81,88.55a170,170,0,0,0-215.62,0,6,6,0,1,0,7.62,9.27,158,158,0,0,1,200.38,0,6,6,0,1,0,7.62-9.27Zm-32.08,35.79a122,122,0,0,0-151.46,0,6,6,0,0,0,7.46,9.41,110,110,0,0,1,136.54,0A6,6,0,0,0,200,135a6,6,0,0,0,3.73-10.7Zm-32.2,35.81a74,74,0,0,0-87.06,0,6,6,0,0,0,7.06,9.7,62,62,0,0,1,72.94,0,6,6,0,0,0,8.38-1.32A6,6,0,0,0,171.53,160.15Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M140,204a12,12,0,1,1-12-12A12,12,0,0,1,140,204ZM237.08,87A172,172,0,0,0,18.92,87,8,8,0,0,0,29.08,99.37a156,156,0,0,1,197.84,0A8,8,0,0,0,237.08,87ZM205,122.77a124,124,0,0,0-153.94,0A8,8,0,0,0,61,135.31a108,108,0,0,1,134.06,0,8,8,0,0,0,11.24-1.3A8,8,0,0,0,205,122.77Zm-32.26,35.76a76.05,76.05,0,0,0-89.42,0,8,8,0,0,0,9.42,12.94,60,60,0,0,1,70.58,0,8,8,0,1,0,9.42-12.94Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M136,204a8,8,0,1,1-8-8A8,8,0,0,1,136,204ZM234.54,90.1a168,168,0,0,0-213.08,0,4,4,0,1,0,5.08,6.18,160,160,0,0,1,202.92,0,4,4,0,0,0,5.08-6.18Zm-32.06,35.81a120,120,0,0,0-149,0,4,4,0,0,0,5,6.27,112,112,0,0,1,139,0,4,4,0,0,0,5-6.27Zm-32.13,35.86a72,72,0,0,0-84.7,0,4,4,0,1,0,4.7,6.46,64.07,64.07,0,0,1,75.3,0,4,4,0,0,0,5.58-.87A4,4,0,0,0,170.35,161.77Z"}))]]),qq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.88,207.93a12,12,0,1,1-17.76,16.14L147.78,167.6a56.06,56.06,0,0,0-52.71,7.1,12,12,0,0,1-14.14-19.4,79.35,79.35,0,0,1,41.92-15.12L103.51,118.9a104.18,104.18,0,0,0-40.06,19.55,12,12,0,0,1-14.9-18.81A128.46,128.46,0,0,1,85.61,99.21l-17.31-19a151.14,151.14,0,0,0-36.68,22.28A12,12,0,1,1,16.39,83.91a175.52,175.52,0,0,1,35-22.38L39.12,48.07A12,12,0,1,1,56.88,31.93ZM128,188a16,16,0,1,0,16,16A16,16,0,0,0,128,188Zm64.55-49.55a12,12,0,0,0,14.9-18.81A127.27,127.27,0,0,0,170,99.05a12,12,0,0,0-7.87,22.67A103.62,103.62,0,0,1,192.55,138.45Zm47.06-54.54A176.33,176.33,0,0,0,128,44c-3.94,0-7.93.13-11.86.39a12,12,0,1,0,1.59,24c3.4-.23,6.86-.34,10.27-.34a152.24,152.24,0,0,1,96.38,34.46,12,12,0,1,0,15.23-18.55Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M238.2,87.69l-104,125.43a8,8,0,0,1-12.3,0L17.8,87.69a7.79,7.79,0,0,1,1.31-11.21,180.75,180.75,0,0,1,217.78,0A7.79,7.79,0,0,1,238.2,87.69Z",opacity:"0.2"}),r.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38l4.55,5A187.93,187.93,0,0,0,14.28,70.1,15.93,15.93,0,0,0,8.11,80.91,15.65,15.65,0,0,0,11.65,92.8l104,125.43A15.93,15.93,0,0,0,128,224h0a15.93,15.93,0,0,0,12.31-5.77l28.1-33.88,33.67,37a8,8,0,1,0,11.84-10.76ZM128,208,24.09,82.74A171.5,171.5,0,0,1,57.91,62.79l99.63,109.6ZM244.35,92.8l-49.42,59.58a8,8,0,0,1-12.32-10.21l49.3-59.43A170.76,170.76,0,0,0,128,48a175.15,175.15,0,0,0-32.39,3,8,8,0,1,1-3-15.72A190.62,190.62,0,0,1,128,32,186.67,186.67,0,0,1,241.72,70.1a15.93,15.93,0,0,1,6.17,10.81A15.65,15.65,0,0,1,244.35,92.8Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.92,210.62a8,8,0,1,1-11.84,10.76l-33.67-37-28.1,33.88A15.93,15.93,0,0,1,128,224h0a15.93,15.93,0,0,1-12.31-5.77L11.65,92.8A15.65,15.65,0,0,1,8.11,80.91,15.93,15.93,0,0,1,14.28,70.1,188.26,188.26,0,0,1,46.6,50.35l-4.29-4.72a8.22,8.22,0,0,1,.13-11.38,8,8,0,0,1,11.48.37Zm34-129.71a15.93,15.93,0,0,0-6.17-10.81A186.67,186.67,0,0,0,128,32a191,191,0,0,0-42.49,4.75,4,4,0,0,0-2,6.59L186,156.07a4,4,0,0,0,6-.14L244.35,92.8A15.65,15.65,0,0,0,247.89,80.91Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M138,204a10,10,0,1,1-10-10A10,10,0,0,1,138,204ZM52.44,36A6,6,0,0,0,43.56,44L61.33,63.58a169.41,169.41,0,0,0-41.14,25,6,6,0,1,0,7.62,9.27A157.58,157.58,0,0,1,69.91,73l26.48,29.13a122.21,122.21,0,0,0-44.12,22.19,6,6,0,0,0,7.46,9.41,110,110,0,0,1,45.87-21.47l31.13,34.25A74.4,74.4,0,0,0,128,146a73.44,73.44,0,0,0-43.53,14.15A6,6,0,0,0,88,171a5.93,5.93,0,0,0,3.53-1.15,62,62,0,0,1,59.76-7.31L203.56,220a6,6,0,0,0,8.88-8.08ZM235.81,88.55A170.32,170.32,0,0,0,128,50a173.45,173.45,0,0,0-21.76,1.38,6,6,0,1,0,1.52,11.9A160.58,160.58,0,0,1,128,62,158.26,158.26,0,0,1,228.19,97.82a6,6,0,1,0,7.62-9.27Zm-39.54,45.2A6,6,0,0,0,200,135a6,6,0,0,0,3.73-10.7,122.26,122.26,0,0,0-50.9-23.81,6,6,0,1,0-2.43,11.75A110,110,0,0,1,196.27,133.75Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.92,210.62a8,8,0,1,1-11.84,10.76l-52-57.15a60,60,0,0,0-57.41,7.24,8,8,0,1,1-9.42-12.93A75.43,75.43,0,0,1,128,144c1.28,0,2.55,0,3.82.1L104.9,114.49A108,108,0,0,0,61,135.31,8,8,0,0,1,49.73,134,8,8,0,0,1,51,122.77a124.27,124.27,0,0,1,41.71-21.66L69.37,75.4a155.43,155.43,0,0,0-40.29,24A8,8,0,0,1,18.92,87,171.87,171.87,0,0,1,58,62.86L42.08,45.38A8,8,0,1,1,53.92,34.62ZM128,192a12,12,0,1,0,12,12A12,12,0,0,0,128,192ZM237.08,87A172.3,172.3,0,0,0,106,49.4a8,8,0,1,0,2,15.87A158.33,158.33,0,0,1,128,64a156.25,156.25,0,0,1,98.92,35.37A8,8,0,0,0,237.08,87ZM195,135.31a8,8,0,0,0,11.24-1.3,8,8,0,0,0-1.3-11.24,124.25,124.25,0,0,0-51.73-24.2A8,8,0,1,0,150,114.24,108.12,108.12,0,0,1,195,135.31Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M136,204a8,8,0,1,1-8-8A8,8,0,0,1,136,204ZM51,37.31A4,4,0,0,0,45,42.69L64.72,64.34A167.64,167.64,0,0,0,21.46,90.09a4,4,0,1,0,5.08,6.19A159.4,159.4,0,0,1,70.47,70.66l29.64,32.61a120.12,120.12,0,0,0-46.6,22.64,4,4,0,0,0,5,6.27,112,112,0,0,1,47.85-22.07L142,149.37A72.6,72.6,0,0,0,128,148a71.49,71.49,0,0,0-42.36,13.77A4,4,0,0,0,88,169a4.07,4.07,0,0,0,2.36-.76,64,64,0,0,1,62.11-7.38L205,218.69a4,4,0,1,0,5.92-5.38ZM234.54,90.09A168.33,168.33,0,0,0,128,52a171.08,171.08,0,0,0-21.5,1.36,4,4,0,0,0,1,7.94A162.68,162.68,0,0,1,128,60,160.22,160.22,0,0,1,229.46,96.28a4,4,0,0,0,5.08-6.19Zm-37,42.09a4,4,0,1,0,5-6.27,120.17,120.17,0,0,0-50.06-23.42,4,4,0,1,0-1.62,7.83A112.18,112.18,0,0,1,197.52,132.18Z"}))]]),Iq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.47,67.5a12,12,0,0,0-19.26-4.32L172.43,99l-12.68-2.72L157,83.57l35.79-38.78a12,12,0,0,0-4.32-19.26A76.07,76.07,0,0,0,88.41,121.64L30.92,174.18a4.68,4.68,0,0,0-.39.38,36,36,0,0,0,50.91,50.91l.38-.39,52.54-57.49A76.05,76.05,0,0,0,230.47,67.5ZM160,148a51.5,51.5,0,0,1-23.35-5.52,12,12,0,0,0-14.26,2.62L64.31,208.66a12,12,0,0,1-17-17l63.55-58.07a12,12,0,0,0,2.62-14.26A51.5,51.5,0,0,1,108,96a52.06,52.06,0,0,1,52-52h.89L135.17,71.87a12,12,0,0,0-2.91,10.65l5.66,26.35a12,12,0,0,0,9.21,9.21l26.35,5.66a12,12,0,0,0,10.65-2.91L212,95.12c0,.3,0,.59,0,.89A52.06,52.06,0,0,1,160,148Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,96a64,64,0,0,1-94.94,56L73,217A24,24,0,0,1,39,183L104,126.94a64,64,0,0,1,80-90.29L144,80l5.66,26.34L176,112l43.35-40A63.8,63.8,0,0,1,224,96Z",opacity:"0.2"}),r.createElement("path",{d:"M226.76,69a8,8,0,0,0-12.84-2.88l-40.3,37.19-17.23-3.7-3.7-17.23,37.19-40.3A8,8,0,0,0,187,29.24,72,72,0,0,0,88,96,72.34,72.34,0,0,0,94,124.94L33.79,177c-.15.12-.29.26-.43.39a32,32,0,0,0,45.26,45.26c.13-.13.27-.28.39-.42L131.06,162A72,72,0,0,0,232,96,71.56,71.56,0,0,0,226.76,69ZM160,152a56.14,56.14,0,0,1-27.07-7,8,8,0,0,0-9.92,1.77L67.11,211.51a16,16,0,0,1-22.62-22.62L109.18,133a8,8,0,0,0,1.77-9.93,56,56,0,0,1,58.36-82.31l-31.2,33.81a8,8,0,0,0-1.94,7.1L141.83,108a8,8,0,0,0,6.14,6.14l26.35,5.66a8,8,0,0,0,7.1-1.94l33.81-31.2A56.06,56.06,0,0,1,160,152Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,96a72,72,0,0,1-100.94,66L79,222.22c-.12.14-.26.29-.39.42a32,32,0,0,1-45.26-45.26c.14-.13.28-.27.43-.39L94,124.94a72.07,72.07,0,0,1,83.54-98.78,8,8,0,0,1,3.93,13.19L144,80l5.66,26.35L176,112l40.65-37.52a8,8,0,0,1,13.19,3.93A72.6,72.6,0,0,1,232,96Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224.91,69.75a6,6,0,0,0-9.63-2.16l-41.07,37.9L154.7,101.3l-4.19-19.51,37.9-41.07a6,6,0,0,0-2.16-9.63,70,70,0,0,0-89.77,94.39l-61.39,53c-.11.09-.21.19-.32.3A30,30,0,0,0,77.2,221.23c.11-.11.21-.21.3-.32l53-61.39a70,70,0,0,0,94.39-89.77ZM160,154a58,58,0,0,1-28-7.22,6,6,0,0,0-7.45,1.33L68.57,212.88a18,18,0,0,1-25.45-25.45l64.76-55.94A6,6,0,0,0,109.2,124a58,58,0,0,1,64-84.53L139.58,75.93a6,6,0,0,0-1.45,5.33l5.65,26.35a6,6,0,0,0,4.61,4.61l26.35,5.65a6,6,0,0,0,5.33-1.45L216.49,82.8A58.06,58.06,0,0,1,160,154Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M226.76,69a8,8,0,0,0-12.84-2.88l-40.3,37.19-17.23-3.7-3.7-17.23,37.19-40.3A8,8,0,0,0,187,29.24,72,72,0,0,0,88,96,72.34,72.34,0,0,0,94,124.94L33.79,177c-.15.12-.29.26-.43.39a32,32,0,0,0,45.26,45.26c.13-.13.27-.28.39-.42L131.06,162A72,72,0,0,0,232,96,71.56,71.56,0,0,0,226.76,69ZM160,152a56.14,56.14,0,0,1-27.07-7,8,8,0,0,0-9.92,1.77L67.11,211.51a16,16,0,0,1-22.62-22.62L109.18,133a8,8,0,0,0,1.77-9.93,56,56,0,0,1,58.36-82.31l-31.2,33.81a8,8,0,0,0-1.94,7.1L141.83,108a8,8,0,0,0,6.14,6.14l26.35,5.66a8,8,0,0,0,7.1-1.94l33.81-31.2A56.06,56.06,0,0,1,160,152Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M223.05,70.5a4,4,0,0,0-6.42-1.44l-41.82,38.6L153,103l-4.68-21.79,38.6-41.82a4,4,0,0,0-1.44-6.43A68,68,0,0,0,98.94,126L36.4,180l-.21.2a28,28,0,0,0,39.6,39.6l.2-.21,54-62.54A68,68,0,0,0,228,96,67.51,67.51,0,0,0,223.05,70.5ZM160,156a60,60,0,0,1-29-7.47,4,4,0,0,0-5,.89L70,214.25A20,20,0,0,1,41.75,186l64.82-56a4,4,0,0,0,.89-5,60,60,0,0,1,69.46-86.59L141.05,77.29a4,4,0,0,0-1,3.55l5.66,26.35a4,4,0,0,0,3.07,3.07l26.35,5.66a4,4,0,0,0,3.55-1l38.87-35.87A60.05,60.05,0,0,1,160,156Z"}))]]),$q=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),Bq=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),Pq=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M218.12,209.56l-61-95.8,59.72-65.69a12,12,0,0,0-17.76-16.14L143.81,92.77,106.12,33.56A12,12,0,0,0,96,28H48A12,12,0,0,0,37.88,46.44l61,95.8L39.12,207.93a12,12,0,1,0,17.76,16.14l55.31-60.84,37.69,59.21A12,12,0,0,0,160,228h48a12,12,0,0,0,10.12-18.44ZM166.59,204,69.86,52H89.41l96.73,152Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,216H160L48,40H96Z",opacity:"0.2"}),r.createElement("path",{d:"M214.75,211.71l-62.6-98.38,61.77-67.95a8,8,0,0,0-11.84-10.76L143.24,99.34,102.75,35.71A8,8,0,0,0,96,32H48a8,8,0,0,0-6.75,12.3l62.6,98.37-61.77,68a8,8,0,1,0,11.84,10.76l58.84-64.72,40.49,63.63A8,8,0,0,0,160,224h48a8,8,0,0,0,6.75-12.29ZM164.39,208,62.57,48h29L193.43,208Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M215,219.85a8,8,0,0,1-7,4.15H160a8,8,0,0,1-6.75-3.71l-40.49-63.63L53.92,221.38a8,8,0,0,1-11.84-10.76l61.77-68L41.25,44.3A8,8,0,0,1,48,32H96a8,8,0,0,1,6.75,3.71l40.49,63.63,58.84-64.72a8,8,0,0,1,11.84,10.76l-61.77,67.95,62.6,98.38A8,8,0,0,1,215,219.85Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.06,212.78l-63.42-99.66L212.44,44A6,6,0,1,0,203.56,36L143,102.62l-41.9-65.84A6,6,0,0,0,96,34H48a6,6,0,0,0-5.06,9.22l63.42,99.66L43.56,212A6,6,0,0,0,52.44,220L113,153.38l41.9,65.84A6,6,0,0,0,160,222h48a6,6,0,0,0,5.06-9.22ZM163.29,210,58.93,46H92.71L197.07,210Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M214.75,211.71l-62.6-98.38,61.77-67.95a8,8,0,0,0-11.84-10.76L143.24,99.34,102.75,35.71A8,8,0,0,0,96,32H48a8,8,0,0,0-6.75,12.3l62.6,98.37-61.77,68a8,8,0,1,0,11.84,10.76l58.84-64.72,40.49,63.63A8,8,0,0,0,160,224h48a8,8,0,0,0,6.75-12.29ZM164.39,208,62.57,48h29L193.43,208Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M211.37,213.85,147.13,112.9,211,42.69A4,4,0,0,0,205,37.31L142.68,105.9,99.38,37.85A4,4,0,0,0,96,36H48a4,4,0,0,0-3.37,6.15L108.87,143.1,45,213.31A4,4,0,1,0,51,218.69l62.36-68.59,43.3,68.05A4,4,0,0,0,160,220h48a4,4,0,0,0,3.37-6.15ZM162.2,212,55.29,44H93.8L200.71,212Z"}))]]),Uq=r.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),ce=r.forwardRef((e,t)=>{const{alt:s,color:l,size:o,weight:c,mirrored:d,children:h,weights:m,...p}=e,{color:x="currentColor",size:g,weight:b="regular",mirrored:w=!1,...j}=r.useContext(Uq);return r.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:o??g,height:o??g,fill:l??x,viewBox:"0 0 256 256",transform:d||w?"scale(-1, 1)":void 0,...j,...p},!!s&&r.createElement("title",null,s),h,m.get(c??b))});ce.displayName="IconBase";const iM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:LO}));iM.displayName="AddressBookIcon";const Gq=iM,oM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:kO}));oM.displayName="ArrowBendDownRightIcon";const Yq=oM,cM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:RO}));cM.displayName="ArrowClockwiseIcon";const us=cM,uM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:DO}));uM.displayName="ArrowLeftIcon";const ds=uM,dM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:FO}));dM.displayName="ArrowRightIcon";const go=dM,hM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:OO}));hM.displayName="ArrowUpRightIcon";const mM=hM,fM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:zO}));fM.displayName="ArrowsClockwiseIcon";const Kq=fM,pM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:qO}));pM.displayName="ArrowsLeftRightIcon";const nf=pM,xM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:IO}));xM.displayName="BellRingingIcon";const Jf=xM,gM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:$O}));gM.displayName="BookOpenIcon";const vM=gM,bM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:BO}));bM.displayName="BrainIcon";const Xq=bM,yM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:PO}));yM.displayName="BrowserIcon";const a9=yM,wM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:UO}));wM.displayName="BuildingsIcon";const no=wM,AM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:GO}));AM.displayName="CalendarBlankIcon";const vo=AM,jM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:YO}));jM.displayName="CalendarIcon";const Qq=jM,NM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:KO}));NM.displayName="CalendarCheckIcon";const Jq=NM,EM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:XO}));EM.displayName="CameraIcon";const rf=EM,MM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:QO}));MM.displayName="CaretDownIcon";const xa=MM,SM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:JO}));SM.displayName="CaretRightIcon";const hs=SM,CM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:WO}));CM.displayName="CaretUpIcon";const Wq=CM,ZM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:ez}));ZM.displayName="ChartBarIcon";const HM=ZM,_M=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:tz}));_M.displayName="ChartLineIcon";const eI=_M,VM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:az}));VM.displayName="ChartLineUpIcon";const tI=VM,TM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:nz}));TM.displayName="ChatCircleIcon";const J0=TM,LM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:rz}));LM.displayName="ChatCircleDotsIcon";const Eu=LM,kM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:sz}));kM.displayName="ChatsCircleIcon";const aI=kM,RM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:lz}));RM.displayName="CheckIcon";const ns=RM,DM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:iz}));DM.displayName="CheckCircleIcon";const y0=DM,FM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:oz}));FM.displayName="CircleNotchIcon";const it=FM,OM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:cz}));OM.displayName="ClipboardTextIcon";const nI=OM,zM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:uz}));zM.displayName="ClockIcon";const Q0=zM,qM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:dz}));qM.displayName="ClockCounterClockwiseIcon";const IM=qM,$M=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:hz}));$M.displayName="CpuIcon";const rI=$M,BM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:mz}));BM.displayName="CrosshairIcon";const sI=BM,PM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:fz}));PM.displayName="CubeIcon";const n9=PM,UM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:pz}));UM.displayName="CurrencyDollarIcon";const GM=UM,YM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:xz}));YM.displayName="DotsSixVerticalIcon";const lI=YM,KM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:gz}));KM.displayName="DownloadIcon";const iI=KM,XM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:vz}));XM.displayName="EjectIcon";const oI=XM,QM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:bz}));QM.displayName="EnvelopeIcon";const cI=QM,JM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:yz}));JM.displayName="EnvelopeSimpleIcon";const r9=JM,WM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:wz}));WM.displayName="EyeIcon";const v0=WM,eS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Az}));eS.displayName="EyeClosedIcon";const tS=eS,aS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:jz}));aS.displayName="FileTextIcon";const sf=aS,nS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Nz}));nS.displayName="FlagIcon";const uI=nS,rS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Ez}));rS.displayName="FloppyDiskIcon";const dI=rS,sS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Mz}));sS.displayName="FunnelIcon";const hI=sS,lS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Sz}));lS.displayName="GearIcon";const mI=lS,iS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Cz}));iS.displayName="GearSixIcon";const oS=iS,cS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Zz}));cS.displayName="GitBranchIcon";const uS=cS,dS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Hz}));dS.displayName="GlobeIcon";const Yl=dS,hS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:_z}));hS.displayName="HandIcon";const kn=hS,mS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Vz}));mS.displayName="HandFistIcon";const fI=mS,fS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Tz}));fS.displayName="HandPalmIcon";const pS=fS,xS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Lz}));xS.displayName="HandshakeIcon";const pI=xS,gS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:kz}));gS.displayName="HeadsetIcon";const xI=gS,vS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Rz}));vS.displayName="HeartIcon";const bo=vS,bS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Dz}));bS.displayName="KanbanIcon";const Wf=bS,yS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Fz}));yS.displayName="LightbulbIcon";const s9=yS,wS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Oz}));wS.displayName="LightningIcon";const ka=wS,AS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:zz}));AS.displayName="ListIcon";const jS=AS,NS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:qz}));NS.displayName="ListChecksIcon";const ro=NS,ES=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Iz}));ES.displayName="MagnetIcon";const gI=ES,MS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:$z}));MS.displayName="MagnifyingGlassIcon";const ga=MS,SS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Bz}));SS.displayName="MegaphoneIcon";const e3=SS,CS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Pz}));CS.displayName="MicrophoneIcon";const Vn=CS,ZS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Uz}));ZS.displayName="MicrophoneSlashIcon";const Fl=ZS,HS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Gz}));HS.displayName="MinusIcon";const vI=HS,_S=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Yz}));_S.displayName="NewspaperIcon";const l9=_S,VS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Kz}));VS.displayName="NoteIcon";const bI=VS,TS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Xz}));TS.displayName="NotebookIcon";const yI=TS,LS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Qz}));LS.displayName="PaperPlaneRightIcon";const lf=LS,kS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Jz}));kS.displayName="PauseIcon";const wI=kS,RS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Wz}));RS.displayName="PencilIcon";const yo=RS,DS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:eq}));DS.displayName="PencilLineIcon";const AI=DS,FS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:tq}));FS.displayName="PencilSimpleIcon";const so=FS,OS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:aq}));OS.displayName="PhoneDisconnectIcon";const jI=OS,zS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:nq}));zS.displayName="PlayIcon";const t3=zS,qS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:rq}));qS.displayName="PlugIcon";const IS=qS,$S=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:sq}));$S.displayName="PlugsConnectedIcon";const Ol=$S,BS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:lq}));BS.displayName="PlusIcon";const Zt=BS,PS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:iq}));PS.displayName="PowerIcon";const i9=PS,US=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:oq}));US.displayName="PulseIcon";const ts=US,GS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:cq}));GS.displayName="QrCodeIcon";const o9=GS,YS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:uq}));YS.displayName="RobotIcon";const Rn=YS,KS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:dq}));KS.displayName="ShareNetworkIcon";const c9=KS,XS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:hq}));XS.displayName="ShieldCheckIcon";const NI=XS,QS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:mq}));QS.displayName="ShuffleIcon";const EI=QS,JS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:fq}));JS.displayName="SkipForwardIcon";const MI=JS,WS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:pq}));WS.displayName="SpeakerHighIcon";const SI=WS,eC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:xq}));eC.displayName="SpinnerIcon";const tC=eC,aC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:gq}));aC.displayName="SpinnerGapIcon";const CI=aC,nC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:vq}));nC.displayName="StarIcon";const ZI=nC,rC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:bq}));rC.displayName="TagIcon";const HI=rC,sC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:yq}));sC.displayName="TargetIcon";const u9=sC,lC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:wq}));lC.displayName="ThreadsLogoIcon";const _I=lC,iC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Aq}));iC.displayName="ThumbsDownIcon";const a3=iC,oC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:jq}));oC.displayName="ThumbsUpIcon";const n3=oC,cC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Nq}));cC.displayName="TimerIcon";const VI=cC,uC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Eq}));uC.displayName="TrashIcon";const Kt=uC,dC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Mq}));dC.displayName="TreeStructureIcon";const d9=dC,hC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Sq}));hC.displayName="TrendUpIcon";const of=hC,mC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Cq}));mC.displayName="UploadIcon";const TI=mC,fC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Zq}));fC.displayName="UserIcon";const LI=fC,pC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Hq}));pC.displayName="UserCircleIcon";const K0=pC,xC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:_q}));xC.displayName="UserCircleCheckIcon";const kI=xC,gC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Vq}));gC.displayName="UserCircleMinusIcon";const RI=gC,vC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Tq}));vC.displayName="UserGearIcon";const DI=vC,bC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Lq}));bC.displayName="UserPlusIcon";const FI=bC,yC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:kq}));yC.displayName="UsersIcon";const lo=yC,wC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Rq}));wC.displayName="UsersThreeIcon";const AC=wC,jC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Dq}));jC.displayName="WarningIcon";const r3=jC,NC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Fq}));NC.displayName="WaveformIcon";const h9=NC,EC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Oq}));EC.displayName="WebhooksLogoIcon";const OI=EC,MC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:zq}));MC.displayName="WifiHighIcon";const SC=MC,CC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:qq}));CC.displayName="WifiSlashIcon";const zI=CC,ZC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Iq}));ZC.displayName="WrenchIcon";const qI=ZC,HC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:$q}));HC.displayName="XIcon";const Yt=HC,_C=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Bq}));_C.displayName="XCircleIcon";const ms=_C,VC=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:Pq}));VC.displayName="XLogoIcon";const TC=VC,cf=new EventTarget;function ue(e,t){cf.dispatchEvent(new CustomEvent("toast",{detail:{type:e,message:t}}))}const II={success:"border-success/30 bg-success/10 text-success",error:"border-critical/30 bg-critical/10 text-critical",info:"border-white/10 bg-white/5 text-neutral-200"};function $I(){const[e,t]=r.useState([]);r.useEffect(()=>{const l=o=>{const{type:c,message:d}=o.detail,h=crypto.randomUUID();t(m=>[...m.slice(-4),{id:h,type:c,message:d}]),setTimeout(()=>{t(m=>m.filter(p=>p.id!==h))},5e3)};return cf.addEventListener("toast",l),()=>cf.removeEventListener("toast",l)},[]);const s=l=>{t(o=>o.filter(c=>c.id!==l))};return a.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 max-w-sm",children:a.jsx(la,{children:e.map(l=>a.jsxs(He.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 ${II[l.type]}`,children:[a.jsx("span",{className:"flex-1",children:l.message}),a.jsx("button",{onClick:()=>s(l.id),className:"opacity-60 hover:opacity-100",children:a.jsx(Yt,{size:14})})]},l.id))})})}function wo(){const[e,t]=r.useState("connected"),[s,l]=r.useState(!0),[o,c]=r.useState(!0);return r.useEffect(()=>{let d=!1;return fetch("/api/runtime/tier").then(h=>h.json()).then(h=>{if(!d){const p=h.data.tier==="free"?"free":"connected";t(p),l(h.data.modelReady??!0)}}).catch(()=>{}).finally(()=>{d||c(!1)}),()=>{d=!0}},[]),{tier:e,modelReady:s,loading:o}}let ra=null,Mu=null;const uf=new Set,BI=3e3;function PI(){const e=cn(),t=window.location.protocol==="https:"?"wss:":"ws:",s=window.location.host;return`${t}//${s}/ws?token=${e}`}function s3(){if(!((ra==null?void 0:ra.readyState)===WebSocket.OPEN||(ra==null?void 0:ra.readyState)===WebSocket.CONNECTING||!cn()))try{ra=new WebSocket(PI()),ra.onmessage=t=>{try{const s=JSON.parse(t.data);for(const l of uf)l(s.type,s.data)}catch{}},ra.onclose=()=>{ra=null,m9()},ra.onerror=()=>{ra==null||ra.close()}}catch{m9()}}function m9(){Mu||(Mu=setTimeout(()=>{Mu=null,s3()},BI))}function LC(e){return uf.add(e),()=>uf.delete(e)}function va(e){const[t,s]=r.useState(0);return r.useEffect(()=>(s3(),LC(l=>{e.includes(l)&&s(o=>o+1)})),[e.join(",")]),t}function Ao(e){const t=r.useRef(e);r.useEffect(()=>{t.current=e}),r.useEffect(()=>(s3(),LC((s,l)=>{t.current(s,l)})),[])}function UI(){Ao(r.useCallback((e,t)=>{const s=t;switch(e){case"task:completed":ue("success",`Task completed${s!=null&&s.taskId?` (${s.taskId.slice(0,8)})`:""}`);break;case"task:failed":ue("error",`Task failed: ${(s==null?void 0:s.error)||"Unknown error"}`);break;case"cloud:connected":ue("info","Connected to cloud");break;case"cloud:disconnected":ue("error",`Disconnected: ${(s==null?void 0:s.reason)||"Unknown"}`);break;case"credits:exhausted":ue("info","Cloud credits exhausted. Tasks are running on your local model.");break;case"budget:warning":ue("info",`Budget at ${(s==null?void 0:s.pct)||"?"}% capacity`);break;case"budget:exceeded":ue("error",`Budget exceeded: ${(s==null?void 0:s.reason)||"Limit reached"}`);break;case"budget:llm-warn":ue("info",(s==null?void 0:s.summary)||"Today's autonomous LLM spend is approaching the cap.");break;case"budget:llm-degrade":ue("info",(s==null?void 0:s.summary)||"Autonomous LLM work is routing to a cheaper model for the rest of the day.");break;case"budget:llm-pause":ue("error",(s==null?void 0:s.summary)||"Autonomous LLM work is paused for today. Raise the cap or wait for the day to roll over.");break;case"budget:llm-halt":ue("error",(s==null?void 0:s.summary)||"Autonomous LLM work is halted for today. Raise the cap to resume.");break;case"model:switch-started":ue("info",`Switching model to ${(s==null?void 0:s.model)||"new model"}...`);break;case"model:switch-complete":ue("success",`Now using ${(s==null?void 0:s.model)||"model"} via ${(s==null?void 0:s.provider)||"local"}`);break;case"model:switch-failed":ue("error",`Model switch failed: ${(s==null?void 0:s.reason)||"Unknown error"}`);break;case"inference:capabilities-changed":{const l=t;l!=null&&l.turboQuantActive&&ue("info",`TurboQuant ${l.turboQuantBits}-bit active via ${l.provider}`);break}}},[]))}function GI({children:e}){return a.jsx(He.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:e})}const YI=[{path:"/",label:"Pulse",icon:ts},{path:"/chat",label:"Chat",icon:J0},{path:"/portfolio",label:"Businesses",icon:no},{path:"/work",label:"Work",icon:Wf},{path:"/people",label:"People",icon:AC},{path:"/intelligence",label:"Intelligence",icon:eI},{path:"/knowledge",label:"Knowledge",icon:vM},{path:"/growth",label:"Growth",icon:GM},{path:"/control-room",label:"Control Room",icon:oS}];function KI(e){const t=Math.floor(e/3600),s=Math.floor(e%3600/60);return t>0?`${t}h ${s}m`:`${s}m`}function XI({path:e,label:t,icon:s,isActive:l}){return a.jsxs(G0,{to:e,"data-testid":`runtime-nav-${t.toLowerCase()}`,className:`relative flex items-center gap-3 px-3 py-2 text-sm rounded-md transition-colors ${l?"text-white":"text-neutral-400 hover:text-white hover:bg-white/5"}`,children:[l&&a.jsx(He.div,{layoutId:"sidebar-active",className:"absolute inset-0 bg-white/10 rounded-md",transition:{type:"spring",stiffness:350,damping:30}}),a.jsxs("span",{className:"relative z-10 flex items-center gap-3",children:[a.jsx(s,{size:16,weight:"bold"}),t]})]})}function f9({health:e,healthError:t,healthLoading:s,tier:l,tierLoading:o,visibleNav:c,pathname:d,onClose:h}){const m=p=>p==="/"?d==="/"||d==="":d.startsWith(p);return a.jsxs("div",{className:"flex flex-col h-full",children:[a.jsxs("div",{className:"p-4 border-b border-white/10 flex items-center justify-between",children:[a.jsxs("span",{className:"text-sm uppercase tracking-widest",children:[a.jsx("span",{className:"font-bold",children:"OHWOW"}),a.jsx("span",{className:"font-light",children:".FUN"})]}),h&&a.jsx("button",{onClick:h,className:"text-neutral-400 hover:text-white transition-colors md:hidden",children:a.jsx(Yt,{size:18})})]}),a.jsx("nav",{className:"flex-1 overflow-y-auto p-3 space-y-0.5",children:c.map(p=>a.jsx(XI,{path:p.path,label:p.label,icon:p.icon,isActive:m(p.path)},p.path))}),a.jsx("div",{className:"p-3 border-t border-white/10",children:a.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-lg bg-white/[0.03]",children:[a.jsx("div",{className:"flex-1 min-w-0",children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full ${t?"bg-warning":e?e.status==="healthy"?"bg-success":"bg-warning":"bg-neutral-600 animate-pulse"}`}),a.jsx("span",{className:"text-xs text-neutral-400",children:t?"Offline":e?`v${e.version}`:s?"Starting...":"Connecting..."}),e&&!t&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"text-white/10 text-xs",children:"|"}),a.jsx("span",{className:"text-xs text-neutral-500",children:KI(e.uptime)})]})]})}),!o&&a.jsx("span",{"data-testid":"runtime-tier-badge",className:`inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-medium ${l==="free"?"bg-cyan-500/15 text-cyan-400":"bg-success/15 text-success"}`,children:l==="free"?"Local":"Cloud"})]})})]})}function QI(){const e=Ya(),[t,s]=r.useState(null),[l,o]=r.useState(null),[c,d]=r.useState(!0);r.useEffect(()=>{let A=!1;return fetch("/health").then(C=>C.ok?C.json():Promise.reject(new Error(`HTTP ${C.status}`))).then(C=>{A||(s(C),o(null))}).catch(C=>{A||o(C.message)}).finally(()=>{A||d(!1)}),()=>{A=!0}},[]);const{tier:h,modelReady:m,loading:p}=wo();UI();const[x,g]=r.useState(!1),[b,w]=r.useState(()=>{try{return localStorage.getItem("ohwow-model-banner-dismissed")==="1"}catch{return!1}});r.useEffect(()=>{g(!1)},[e.pathname]);const j=!p&&!m&&!b,N=()=>{w(!0);try{localStorage.setItem("ohwow-model-banner-dismissed","1")}catch{}},E=YI;return a.jsxs("div",{className:"flex h-dvh bg-black text-white",children:[a.jsx("aside",{className:"hidden md:flex w-64 border-r border-white/10 flex-col h-dvh sticky top-0",children:a.jsx(f9,{health:t??null,healthError:l,healthLoading:c,tier:h,tierLoading:p,visibleNav:E,pathname:e.pathname})}),a.jsx(la,{children:x&&a.jsxs(a.Fragment,{children:[a.jsx(He.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>g(!1),className:"fixed inset-0 bg-black/60 z-40 md:hidden"}),a.jsx(He.aside,{initial:{x:-280},animate:{x:0},exit:{x:-280},transition:{type:"spring",stiffness:350,damping:30},className:"fixed inset-y-0 left-0 w-[280px] bg-black border-r border-white/10 z-50 md:hidden",children:a.jsx(f9,{health:t??null,healthError:l,healthLoading:c,tier:h,tierLoading:p,visibleNav:E,pathname:e.pathname,onClose:()=>g(!1)})})]})}),a.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0",children:[a.jsxs("div",{className:"md:hidden flex items-center gap-3 px-4 py-3 border-b border-white/10",children:[a.jsx("button",{onClick:()=>g(!0),className:"text-neutral-400 hover:text-white transition-colors",children:a.jsx(jS,{size:20})}),a.jsxs("span",{className:"text-sm uppercase tracking-widest",children:[a.jsx("span",{className:"font-bold",children:"OHWOW"}),a.jsx("span",{className:"font-light",children:".FUN"})]})]}),a.jsxs("main",{className:"flex-1 overflow-y-auto min-h-0",children:[j&&a.jsxs("div",{className:"bg-warning/10 border-b border-warning/20 px-6 py-2.5 flex items-center justify-between",children:[a.jsxs("p",{className:"text-sm text-warning",children:["No AI model set up yet. Head to"," ",a.jsx(G0,{to:"/settings",className:"underline hover:text-white",children:"Settings"})," ","to download one."]}),a.jsx("button",{onClick:N,className:"text-warning/60 hover:text-warning text-sm ml-4","aria-label":"Dismiss",children:"✕"})]}),a.jsx(yN,{children:a.jsx(GI,{children:a.jsx(sL,{})},e.pathname)})]})]})]})}function JI(){const[e,t]=r.useState(""),[s,l]=r.useState(""),[o,c]=r.useState(!1),d=Ka(),h=async m=>{if(m.preventDefault(),!!e.trim()){c(!0),l("");try{Vm(e.trim()),await me("/api/session"),d("/",{replace:!0})}catch{l("Invalid session token. Check your terminal for the correct token."),Vm("")}finally{c(!1)}}};return a.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center p-4",children:a.jsxs("div",{className:"w-full max-w-sm",children:[a.jsxs("div",{className:"text-center mb-8",children:[a.jsxs("h1",{className:"text-2xl font-bold",children:[a.jsx("span",{className:"text-white",children:"ohwow"}),a.jsx("span",{className:"text-neutral-400 ml-1",children:"runtime"})]}),a.jsx("p",{className:"text-sm text-neutral-400 mt-2",children:"Enter the session token from your terminal to connect."})]}),a.jsxs("form",{onSubmit:h,className:"space-y-4",children:[a.jsx("div",{children:a.jsx("input",{type:"text",value:e,onChange:m=>t(m.target.value),placeholder:"Paste session token here",autoFocus:!0,className:"w-full bg-white/5 border border-white/10 rounded-lg px-4 py-3 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 transition-colors font-mono"})}),s&&a.jsx("p",{className:"text-xs text-critical",children:s}),a.jsx("button",{type:"submit",disabled:o||!e.trim(),className:"w-full bg-white text-black rounded-lg px-4 py-3 text-sm font-medium hover:bg-neutral-200 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:o?"Connecting...":"Connect"})]})]})})}function WI(e){const t=e.match(/```agents\s*\n?([\s\S]*?)```/);if(t)try{const l=JSON.parse(t[1].trim());if(Array.isArray(l))return l.filter(o=>typeof o=="string")}catch{}const s=e.match(/\[[\s\S]*?\]/);if(s)try{const l=JSON.parse(s[0]);if(Array.isArray(l))return l.filter(o=>typeof o=="string")}catch{}return[]}function e$(e){const t=e.match(/```setup\s*\n?([\s\S]*?)```/);if(t)try{const l=JSON.parse(t[1].trim()),o=l.goal?{title:l.goal,metric:l.goal_metric||void 0,target:l.goal_target!=null?l.goal_target:void 0,unit:l.unit||void 0}:null,c=Array.isArray(l.agents)?l.agents.filter(d=>typeof d=="string"):[];return{goal:o,agentIds:c}}catch{}return{goal:null,agentIds:WI(e)}}function t$(e){return e.toLowerCase().trim().replace(/\s+/g,"-").replace(/[^a-z0-9\-_]/g,"")}function a$(e){const t=new Set;for(const l of e)(l.includes("social")||l.includes("linkedin")||l.includes("sponsor"))&&(t.add("twitter"),t.add("linkedin")),(l.includes("email")||l.includes("campaign")||l.includes("outreach")||l.includes("follow_up"))&&t.add("gmail"),(l.includes("schedule")||l.includes("calendar")||l.includes("dispatch")||l.includes("meeting"))&&t.add("gcal"),(l.includes("github")||l.includes("code")||l.includes("developer"))&&t.add("github");const s={twitter:{id:"twitter",name:"Twitter / X",description:"Post and read tweets for your social media agents",envVarsRequired:[{key:"TWITTER_API_KEY",label:"API Key",secret:!0},{key:"TWITTER_API_SECRET",label:"API Secret",secret:!0}]},linkedin:{id:"linkedin",name:"LinkedIn",description:"Post updates and manage LinkedIn presence",envVarsRequired:[{key:"LINKEDIN_CLIENT_ID",label:"Client ID",secret:!1},{key:"LINKEDIN_CLIENT_SECRET",label:"Client Secret",secret:!0}]},gmail:{id:"gmail",name:"Gmail",description:"Read and send emails on behalf of your agents",envVarsRequired:[{key:"GMAIL_CLIENT_ID",label:"Client ID",secret:!1},{key:"GMAIL_CLIENT_SECRET",label:"Client Secret",secret:!0}]},gcal:{id:"gcal",name:"Google Calendar",description:"Read and create calendar events",envVarsRequired:[{key:"GCAL_CLIENT_ID",label:"Client ID",secret:!1},{key:"GCAL_CLIENT_SECRET",label:"Client Secret",secret:!0}]},github:{id:"github",name:"GitHub",description:"Read repositories, issues, and pull requests",envVarsRequired:[{key:"GITHUB_TOKEN",label:"Personal Access Token",secret:!0}]}};return Array.from(t).map(l=>s[l]).filter(Boolean)}function kC(e={}){const{mode:t,onWorkspaceCreated:s}=e,l=t==="new-workspace",[o,c]=r.useState({screen:l?"business_info":"splash",status:null,selectedModel:null,loading:!1,downloading:!1,downloadPercent:0,downloadMessage:"",setupMessage:"",error:null,completed:!1,licenseKey:"",licenseValidating:!1,licenseError:null,businessName:"",businessType:"",businessDescription:"",founderPath:"",founderFocus:"",modelAvailable:!1,chatMessages:[],chatStreaming:!1,presets:[],selectedAgentIds:new Set,integrations:[],integrationValues:{},skippedIntegrationIds:new Set,discoveredGoal:null}),d=r.useRef(null);r.useEffect(()=>()=>{var B;(B=d.current)==null||B.abort()},[]);const h=r.useCallback(async()=>{c(B=>({...B,loading:!0,error:null}));try{const B=await fetch("/api/onboarding/status");if(!B.ok)throw new Error("Could not detect hardware");const{data:Q}=await B.json();return c(J=>({...J,status:Q,selectedModel:Q.recommendation,loading:!1})),Q}catch(B){return c(Q=>({...Q,loading:!1,error:B instanceof Error?B.message:"Something went wrong"})),null}},[]),m=r.useCallback(()=>{c(B=>({...B,screen:"tier_choice"}))},[]),p=r.useCallback(B=>{c(Q=>({...Q,licenseKey:B,licenseError:null}))},[]),x=r.useCallback(async()=>{c(B=>({...B,licenseValidating:!1,screen:"model"})),o.status||await h()},[o.status,h]),g=r.useCallback(async()=>{c(B=>({...B,screen:"model",licenseKey:""})),o.status||await h()},[o.status,h]),b=r.useCallback(async()=>{c(B=>({...B,screen:"model"})),o.status||await h()},[o.status,h]),w=r.useCallback(B=>{c(Q=>({...Q,selectedModel:B}))},[]),j=async(B,Q,J)=>{const k=B.body.getReader(),Y=new TextDecoder;let K="";try{for(;;){if(J!=null&&J.aborted){k.cancel();return}const{done:q,value:z}=await k.read();if(q)break;K+=Y.decode(z,{stream:!0});const I=K.split(`
70
+ `);K=I.pop()||"";for(const te of I)if(te.startsWith("data: ")){const fe=te.slice(6).trim();if(fe==="[DONE]")return;try{Q(JSON.parse(fe))}catch{}}}}finally{k.releaseLock()}},N=r.useCallback(async()=>{const B=o.selectedModel;if(!B||d.current)return;const Q=new AbortController;d.current=Q,c(J=>({...J,downloading:!0,downloadPercent:0,downloadMessage:"",setupMessage:"Setting things up...",error:null}));try{const J=await fetch("/api/onboarding/ensure-ollama",{method:"POST",signal:Q.signal});if(!J.ok||!J.body)throw new Error("Could not set up Ollama");await j(J,Y=>{if(c(K=>({...K,setupMessage:Y.message})),Y.error)throw new Error(Y.error)},Q.signal),c(Y=>({...Y,setupMessage:"",downloadMessage:"Starting download..."}));const k=await fetch("/api/onboarding/download-model",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tag:B.tag}),signal:Q.signal});if(!k.ok||!k.body)throw new Error("Could not start download");await j(k,Y=>{if(c(K=>({...K,downloadMessage:Y.message,downloadPercent:Y.percent??K.downloadPercent})),Y.error)throw new Error(Y.error)},Q.signal),c(Y=>({...Y,downloading:!1,downloadPercent:100,downloadMessage:"Download complete",modelAvailable:!0,screen:"business_info"}))}catch(J){if(Q.signal.aborted)return;c(k=>({...k,downloading:!1,setupMessage:"",error:J instanceof Error?J.message:"Something went wrong"}))}finally{d.current=null}},[o.selectedModel]),E=r.useCallback(()=>{c(B=>({...B,screen:"business_info",selectedModel:null,modelAvailable:!1}))},[]),A=r.useCallback(B=>{c(Q=>({...Q,businessName:B}))},[]),C=r.useCallback(B=>{c(Q=>({...Q,businessType:B}))},[]),M=r.useCallback(B=>{c(Q=>({...Q,businessDescription:B}))},[]),S=r.useCallback(()=>{c(B=>({...B,screen:"business_info"}))},[]),L=r.useCallback(B=>{c(Q=>({...Q,founderPath:B}))},[]),V=r.useCallback(B=>{c(Q=>({...Q,founderFocus:B}))},[]),_=r.useCallback(()=>{c(B=>({...B,screen:"founder_stage"}))},[]),H=r.useCallback(async B=>{c(Q=>({...Q,chatStreaming:!0}));try{const Q=await fetch("/api/onboarding/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:B,businessType:o.businessType||"saas_startup",founderPath:o.founderPath||"exploring",founderFocus:o.founderFocus||""})});if(!Q.ok||!Q.body)throw new Error("Chat unavailable");let J="";const k=Q.body.getReader(),Y=new TextDecoder;let K="";for(;;){const{done:q,value:z}=await k.read();if(q)break;K+=Y.decode(z,{stream:!0});const I=K.split(`
71
+ `);K=I.pop()||"";for(const te of I)if(te.startsWith("data: ")){const fe=te.slice(6).trim();if(fe==="[DONE]")continue;try{const pe=JSON.parse(fe);pe.type==="text"&&pe.content&&(J+=pe.content)}catch{}}}if(J){c(z=>({...z,chatMessages:[...z.chatMessages,{role:"assistant",content:J}],chatStreaming:!1}));const q=e$(J);q.agentIds.length>0?c(z=>({...z,selectedAgentIds:new Set(q.agentIds.filter(I=>z.presets.some(te=>te.id===I))),discoveredGoal:q.goal})):q.goal&&c(z=>({...z,discoveredGoal:q.goal}))}else c(q=>({...q,chatStreaming:!1}))}catch{c(Q=>({...Q,chatStreaming:!1,chatMessages:[...Q.chatMessages,{role:"assistant",content:"I ran into an issue connecting to the model. You can pick your agents manually on the next screen."}]}))}},[o.businessType,o.founderPath,o.founderFocus]),T=r.useCallback(async()=>{const B=o.businessType||"saas_startup";try{const Q=await fetch(`/api/onboarding/presets?businessType=${B}`);if(Q.ok){const{data:J}=await Q.json();c(k=>({...k,screen:"agent_discovery",presets:J.presets,selectedAgentIds:new Set(J.recommended.map(Y=>Y.id))}))}else c(J=>({...J,screen:"agent_discovery"}))}catch{c(Q=>({...Q,screen:"agent_discovery"}))}try{const Q=await fetch("/api/onboarding/model-available");if(Q.ok){const{data:J}=await Q.json();c(k=>({...k,modelAvailable:J.available})),J.available&&o.chatMessages.length===0&&H([])}}catch{}},[o.businessType,o.chatMessages.length,H]),D=r.useCallback(B=>{const Q={role:"user",content:B};c(k=>({...k,chatMessages:[...k.chatMessages,Q]}));const J=[...o.chatMessages,Q];H(J)},[o.chatMessages,H]),F=r.useCallback(()=>{c(B=>({...B,screen:"agent_selection"}))},[]),P=r.useCallback(B=>{c(Q=>{const J=new Set(Q.selectedAgentIds);return J.has(B)?J.delete(B):J.add(B),{...Q,selectedAgentIds:J}})},[]),U=r.useCallback(()=>{c(B=>({...B,screen:"integration_setup",integrations:a$(B.selectedAgentIds)}))},[]),W=r.useCallback((B,Q,J)=>{c(k=>({...k,integrationValues:{...k.integrationValues,[B]:{...k.integrationValues[B]||{},[Q]:J}}}))},[]),se=r.useCallback(B=>{c(Q=>{const J=new Set(Q.skippedIntegrationIds);return J.add(B),{...Q,skippedIntegrationIds:J}})},[]),O=r.useCallback(()=>{c(B=>({...B,screen:"ready"}))},[]),$=r.useCallback(async()=>{const B=o.selectedModel,Q=(B==null?void 0:B.tag)||"qwen3:4b",J=o.presets.filter(k=>o.selectedAgentIds.has(k.id)).map(k=>({id:k.id,name:k.name,role:k.role,description:k.description,systemPrompt:"",tools:k.tools,department:k.department}));c(k=>({...k,loading:!0,error:null}));try{if(l){const Y=t$(o.businessName)||"new-workspace",K=await fetch("/api/workspaces/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({workspaceName:Y,displayName:o.businessName,businessType:o.businessType,businessDescription:o.businessDescription,founderPath:o.founderPath,founderFocus:o.founderFocus,agents:J,goal:o.discoveredGoal})});if(!K.ok){const q=await K.json().catch(()=>({}));throw new Error(q.error||"Couldn't create workspace")}return c(q=>({...q,loading:!1,completed:!0})),s==null||s(),null}if(!(await fetch("/api/onboarding/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({modelTag:Q,businessName:o.businessName,businessType:o.businessType,businessDescription:o.businessDescription,founderPath:o.founderPath,founderFocus:o.founderFocus,agents:J,goal:o.discoveredGoal})})).ok)throw new Error("Could not save config");return c(Y=>({...Y,loading:!1,completed:!0})),null}catch(k){const Y=k instanceof Error?k.message:"Something went wrong";return c(K=>({...K,loading:!1,error:Y})),Y}},[l,s,o.selectedModel,o.businessName,o.businessType,o.businessDescription,o.founderPath,o.founderFocus,o.presets,o.selectedAgentIds,o.discoveredGoal]);return{...o,fetchStatus:h,goToTierChoice:m,setLicenseKey:p,validateLicenseKey:x,skipTierChoice:g,goToModel:b,selectModel:w,startDownload:N,skipDownload:E,setBusinessName:A,setBusinessType:C,setBusinessDescription:M,goToBusinessInfo:S,setFounderPath:L,setFounderFocus:V,goToFounderStage:_,goToAgentDiscovery:T,sendChatMessage:D,goToAgentSelection:F,toggleAgent:P,goToIntegrationSetup:U,setIntegrationValue:W,skipIntegration:se,goToReady:O,completeOnboarding:$}}function n$({onGetStarted:e}){return a.jsx("div",{"data-testid":"onboarding-splash",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:a.jsxs("div",{className:"max-w-md w-full text-center space-y-8",children:[a.jsx("div",{children:a.jsx("h1",{className:"text-5xl font-bold tracking-tight",children:a.jsx("span",{className:"text-white",children:"ohwow"})})}),a.jsxs("div",{className:"space-y-3",children:[a.jsx("p",{className:"text-xl text-white font-medium",children:"Your AI team, running on your machine."}),a.jsx("p",{className:"text-sm text-neutral-400",children:"No account needed. No cloud required."})]}),a.jsx("button",{"data-testid":"onboarding-get-started",onClick:e,className:"w-full bg-white text-black rounded-lg px-6 py-3.5 text-base font-medium hover:bg-neutral-200 transition-colors",children:"Get Started"}),a.jsx("p",{className:"text-xs text-neutral-600",children:"Free forever for local use"})]})})}function r$({licenseKey:e,onChangeLicenseKey:t,onValidate:s,onSkip:l,onBack:o,validating:c,error:d}){const h=m=>{m.preventDefault(),e.trim()&&s()};return a.jsx("div",{className:"min-h-screen bg-black text-white flex flex-col items-center justify-center p-6",children:a.jsxs("div",{className:"w-full max-w-md space-y-8",children:[a.jsxs("div",{className:"flex items-center gap-2 text-xs text-neutral-500",children:[a.jsx("span",{children:"Step 2 of 9"}),a.jsx("div",{className:"flex-1 h-0.5 bg-white/10 rounded-full",children:a.jsx("div",{className:"h-full w-[22%] bg-white/30 rounded-full"})})]}),a.jsxs("div",{className:"text-center space-y-2",children:[a.jsx("h1",{className:"text-2xl font-bold",children:"Connect to the cloud"}),a.jsx("p",{className:"text-neutral-400 text-sm",children:"Enter your license key to unlock cloud features, or skip to use ohwow locally for free."})]}),a.jsxs("form",{onSubmit:h,className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1.5",children:"License key"}),a.jsx("input",{type:"text",value:e,onChange:m=>t(m.target.value),placeholder:"ohwow_lic_...",disabled:c,className:"w-full bg-white/5 border border-white/10 rounded-lg px-4 py-3 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 disabled:opacity-50",autoFocus:!0})]}),d&&a.jsx("div",{className:"bg-red-500/10 border border-red-500/20 rounded-lg p-3",children:a.jsx("p",{className:"text-sm text-red-400",children:d})}),a.jsx("button",{type:"submit",disabled:c||!e.trim(),className:"w-full bg-white text-black rounded-lg py-3 text-sm font-medium hover:bg-neutral-200 transition-colors disabled:opacity-50 flex items-center justify-center gap-2",children:c?a.jsxs(a.Fragment,{children:[a.jsx(it,{size:14,className:"animate-spin"}),"Validating..."]}):"Validate key"})]}),a.jsx("div",{className:"text-center",children:a.jsx("button",{onClick:l,className:"text-sm text-neutral-400 hover:text-white transition-colors",children:"Skip and continue locally (free forever)"})}),a.jsx("div",{className:"text-center",children:a.jsx("button",{onClick:o,className:"text-xs text-neutral-500 hover:text-neutral-300 transition-colors",children:"← Back"})})]})})}function s$({status:e,selectedModel:t,loading:s,downloading:l,downloadPercent:o,downloadMessage:c,setupMessage:d,error:h,onSelectModel:m,onDownload:p,onSkip:x}){const[g,b]=r.useState(!1);if(s||!e)return a.jsx("div",{"data-testid":"onboarding-model-loading",className:"min-h-screen bg-black flex items-center justify-center p-4",children:a.jsxs("div",{className:"text-center space-y-4",children:[a.jsx("div",{className:"w-8 h-8 border-2 border-white/10 border-t-white rounded-full animate-spin mx-auto"}),a.jsx("p",{className:"text-sm text-neutral-400",children:"Detecting your hardware..."})]})});const w=t?Math.ceil(t.sizeGB*1024/50/60*8):null;return a.jsx("div",{"data-testid":"onboarding-model",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:a.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[a.jsx("div",{className:"text-center space-y-2",children:a.jsx("h2",{className:"text-2xl font-bold text-white",children:"Let's download your first AI model"})}),a.jsx("div",{"data-testid":"onboarding-device-summary",className:"bg-white/5 border border-white/[0.08] rounded-lg px-4 py-3 text-sm text-neutral-400",children:e.deviceSummary}),t&&!l&&a.jsxs("div",{"data-testid":"onboarding-model-hero",className:"bg-white/5 border border-white/10 rounded-lg p-5 space-y-3",children:[a.jsx("div",{className:"flex items-start justify-between",children:a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("h3",{className:"text-lg font-semibold text-white",children:t.label}),t.recommended&&a.jsx("span",{className:"text-[10px] uppercase tracking-wider bg-white/10 text-white px-2 py-0.5 rounded-full border border-white/10",children:"Best for your machine"})]}),a.jsx("p",{className:"text-sm text-neutral-400 mt-1",children:t.description})]})}),a.jsxs("div",{className:"flex items-center gap-4 text-xs text-neutral-400",children:[a.jsxs("span",{children:[t.sizeGB," GB download"]}),w&&a.jsxs("span",{children:["~",w," min"]}),a.jsx("span",{children:t.features.join(", ")})]})]}),l&&a.jsxs("div",{"data-testid":"onboarding-download-progress",className:"bg-white/5 border border-white/[0.08] rounded-lg p-5 space-y-4",children:[d&&a.jsx("p",{className:"text-sm text-neutral-400",children:d}),!d&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"flex items-center justify-between text-sm",children:[a.jsx("span",{className:"text-white",children:t==null?void 0:t.label}),a.jsxs("span",{className:"text-neutral-400",children:[o,"%"]})]}),a.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-2 overflow-hidden",children:a.jsx("div",{className:"bg-white h-full rounded-full transition-all duration-300",style:{width:`${o}%`}})}),a.jsx("p",{className:"text-xs text-neutral-400 truncate",children:c})]})]}),h&&a.jsx("div",{className:"bg-critical/10 border border-critical/20 rounded-lg px-4 py-3 text-sm text-critical",children:h}),!l&&a.jsxs("div",{className:"space-y-3",children:[a.jsx("button",{"data-testid":"onboarding-download-btn",onClick:p,disabled:!t,className:"w-full bg-white text-black rounded-lg px-6 py-3.5 text-base font-medium hover:bg-neutral-200 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Download"}),e.alternatives.length>0&&a.jsxs("div",{children:[a.jsx("button",{"data-testid":"onboarding-alternatives-toggle",onClick:()=>b(!g),className:"text-sm text-neutral-400 hover:text-white transition-colors",children:g?"Hide other options":"See other options"}),g&&a.jsx("div",{className:"mt-3 space-y-2",children:e.alternatives.map(j=>a.jsxs("button",{onClick:()=>m(j),className:`w-full text-left bg-white/5 border rounded-lg px-4 py-3 text-sm transition-colors ${(t==null?void 0:t.tag)===j.tag?"border-white/10 text-white":"border-white/[0.08] text-neutral-400 hover:border-white/[0.08] hover:text-white"}`,children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"font-medium",children:j.label}),a.jsxs("span",{className:"text-xs",children:[j.sizeGB," GB"]})]}),a.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:j.description})]},j.tag))})]}),a.jsx("div",{className:"text-center",children:a.jsx("button",{"data-testid":"onboarding-skip-btn",onClick:x,className:"text-xs text-neutral-600 hover:text-neutral-400 transition-colors",children:"Skip for now"})})]})]})})}const l$=[{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 RC({businessName:e,businessType:t,businessDescription:s,onChangeName:l,onChangeType:o,onChangeDescription:c,onContinue:d,onBack:h}){const m=e.trim().length>0&&t;return a.jsx("div",{"data-testid":"onboarding-business-info",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:a.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[a.jsxs("div",{className:"text-center space-y-2",children:[a.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 3 of 7"}),a.jsx("h2",{className:"text-2xl font-bold text-white",children:"Tell us about your business"}),a.jsx("p",{className:"text-sm text-neutral-400",children:"This helps us recommend the right AI agents for you."})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"Business name"}),a.jsx("input",{"data-testid":"onboarding-business-name",type:"text",value:e,onChange:p=>l(p.target.value),placeholder:"e.g. Acme Inc",className:"w-full bg-white/5 border border-white/[0.08] rounded-lg px-4 py-3 text-sm text-white placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20",autoFocus:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"Business type"}),a.jsx("div",{className:"grid grid-cols-2 gap-2",children:l$.map(p=>a.jsxs("button",{"data-testid":`onboarding-btype-${p.id}`,onClick:()=>o(p.id),className:`text-left px-3 py-2.5 rounded-lg border text-sm transition-colors ${t===p.id?"border-white/20 bg-white/10 text-white":"border-white/[0.08] bg-white/5 text-neutral-400 hover:border-white/20 hover:text-white"}`,children:[a.jsx("span",{className:"font-medium block",children:p.label}),a.jsx("span",{className:"text-xs text-neutral-400",children:p.tagline})]},p.id))})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"What does your business do? (optional)"}),a.jsx("textarea",{"data-testid":"onboarding-business-desc",value:s,onChange:p=>c(p.target.value),placeholder:"e.g. We help small businesses automate their marketing",rows:2,className:"w-full bg-white/5 border border-white/[0.08] rounded-lg px-4 py-3 text-sm text-white placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20 resize-none"})]}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx("button",{onClick:h,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),a.jsx("button",{"data-testid":"onboarding-business-continue",onClick:d,disabled:!m,className:"flex-1 bg-white text-black rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-neutral-200 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:"Continue"})]})]})})}const i$=[{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 DC({founderPath:e,founderFocus:t,onChangePath:s,onChangeFocus:l,onContinue:o,onBack:c}){const d=e.length>0;return a.jsx("div",{"data-testid":"onboarding-founder-stage",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:a.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[a.jsxs("div",{className:"text-center space-y-2",children:[a.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 4 of 7"}),a.jsx("h2",{className:"text-2xl font-bold text-white",children:"Where are you in your journey?"}),a.jsx("p",{className:"text-sm text-neutral-400",children:"This helps us prioritize which agents to recommend."})]}),a.jsx("div",{className:"space-y-2",children:i$.map(h=>a.jsxs("button",{"data-testid":`onboarding-path-${h.id}`,onClick:()=>s(h.id),className:`w-full text-left px-4 py-3 rounded-lg border transition-colors flex items-center gap-3 ${e===h.id?"border-white/20 bg-white/10 text-white":"border-white/[0.08] bg-white/5 text-neutral-400 hover:border-white/20 hover:text-white"}`,children:[a.jsx("span",{className:"text-lg",children:h.icon}),a.jsxs("div",{children:[a.jsx("span",{className:"font-medium block text-sm",children:h.label}),a.jsx("span",{className:"text-xs text-neutral-400",children:h.description})]})]},h.id))}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"What are you focused on right now? (optional)"}),a.jsx("input",{"data-testid":"onboarding-founder-focus",type:"text",value:t,onChange:h=>l(h.target.value),placeholder:"e.g. Getting my first 10 customers",className:"w-full bg-white/5 border border-white/[0.08] rounded-lg px-4 py-3 text-sm text-white placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx("button",{onClick:c,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),a.jsx("button",{"data-testid":"onboarding-founder-continue",onClick:o,disabled:!d,className:"flex-1 bg-white text-black rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-neutral-200 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:"Continue"})]})]})})}function FC({modelAvailable:e,chatMessages:t,presets:s,discoveredGoal:l,onSendMessage:o,onContinue:c,onBack:d,streaming:h}){const[m,p]=r.useState(""),x=r.useRef(null);r.useEffect(()=>{var b;(b=x.current)==null||b.scrollTo({top:x.current.scrollHeight,behavior:"smooth"})},[t]);const g=()=>{!m.trim()||h||(o(m.trim()),p(""))};return e?a.jsx("div",{"data-testid":"onboarding-agent-discovery",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:a.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[a.jsxs("div",{className:"text-center space-y-2",children:[a.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 5 of 7"}),a.jsx("h2",{className:"text-2xl font-bold text-white",children:"Let's define your goal"}),a.jsx("p",{className:"text-sm text-neutral-400",children:"Tell me what you want to achieve and I'll build your AI team around it"})]}),l&&a.jsx("div",{className:"px-4 py-2 rounded-lg bg-emerald-500/10 border border-emerald-500/20",children:a.jsxs("span",{className:"text-sm text-emerald-400",children:["Goal: ",l.title]})}),a.jsxs("div",{ref:x,className:"bg-white/5 border border-white/[0.08] rounded-lg p-4 space-y-3 max-h-64 overflow-y-auto",children:[t.map((b,w)=>a.jsx("div",{className:`${b.role==="user"?"text-right":""}`,children:a.jsx("div",{className:`inline-block rounded-lg px-3 py-2 text-sm max-w-[80%] ${b.role==="user"?"bg-white/10 text-white":"bg-neutral-950 border border-white/[0.08] text-white"}`,children:a.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:b.content})})},w)),h&&a.jsx("div",{className:"text-neutral-400 text-sm animate-pulse",children:"Thinking..."})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("input",{"data-testid":"onboarding-chat-input",type:"text",value:m,onChange:b=>p(b.target.value),onKeyDown:b=>{b.key==="Enter"&&g()},placeholder:"Tell the AI about your priorities...",disabled:h,className:"flex-1 bg-white/5 border border-white/[0.08] rounded-lg px-4 py-3 text-sm text-white placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20 disabled:opacity-50"}),a.jsx("button",{onClick:g,disabled:h||!m.trim(),className:"bg-white text-black rounded-lg px-4 text-sm hover:bg-neutral-200 transition-colors disabled:opacity-40",children:"Send"})]}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx("button",{onClick:d,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),a.jsx("button",{"data-testid":"onboarding-discovery-continue",onClick:c,className:"flex-1 bg-white text-black rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-neutral-200 transition-colors",children:t.length>=4?"Set up my workspace":"Skip to selection"})]})]})}):a.jsx("div",{"data-testid":"onboarding-agent-discovery",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:a.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[a.jsxs("div",{className:"text-center space-y-2",children:[a.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 5 of 7"}),a.jsx("h2",{className:"text-2xl font-bold text-white",children:"Your recommended agents"}),a.jsx("p",{className:"text-sm text-neutral-400",children:"Based on your business type. You can adjust on the next screen."})]}),a.jsx("div",{className:"space-y-2",children:s.map(b=>a.jsxs("div",{className:`px-4 py-3 rounded-lg border ${b.recommended?"border-white/[0.12] bg-white/5":"border-white/[0.08] bg-white/5"}`,children:[a.jsxs("div",{className:"flex items-center gap-2",children:[b.recommended&&a.jsx("span",{className:"text-white text-xs",children:"★"}),a.jsx("span",{className:"font-medium text-sm text-white",children:b.name}),a.jsx("span",{className:"text-xs text-neutral-400",children:b.role})]}),a.jsx("p",{className:"text-xs text-neutral-400 mt-1",children:b.description})]},b.id))}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx("button",{onClick:d,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),a.jsx("button",{"data-testid":"onboarding-discovery-continue",onClick:c,className:"flex-1 bg-white text-black rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-neutral-200 transition-colors",children:"Continue to selection"})]})]})})}const o$={web_research:"Web Research",deep_research:"Deep Research",ocr:"OCR",local_crm:"CRM"};function OC({presets:e,selectedIds:t,onToggle:s,onContinue:l,onBack:o}){return a.jsx("div",{"data-testid":"onboarding-agent-selection",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:a.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[a.jsxs("div",{className:"text-center space-y-2",children:[a.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 6 of 7"}),a.jsx("h2",{className:"text-2xl font-bold text-white",children:"Choose your agents"}),a.jsx("p",{className:"text-sm text-neutral-400",children:t.size>0?`${t.size} agent${t.size===1?"":"s"} selected`:"Select the agents you want to create"})]}),a.jsx("div",{className:"space-y-2 max-h-[400px] overflow-y-auto",children:e.map(c=>{const d=t.has(c.id);return a.jsx("button",{"data-testid":`onboarding-agent-${c.id}`,onClick:()=>s(c.id),className:`w-full text-left px-4 py-3 rounded-lg border transition-colors ${d?"border-white/20 bg-white/10":"border-white/[0.08] bg-white/5 hover:border-white/20"}`,children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:`mt-0.5 w-4 h-4 rounded border flex items-center justify-center shrink-0 ${d?"bg-white border-white":"border-neutral-400/30"}`,children:d&&a.jsx("svg",{className:"w-2.5 h-2.5 text-black",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"font-medium text-sm text-white",children:c.name}),c.recommended&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/10 text-white border border-white/10",children:"Recommended"})]}),a.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:c.role}),a.jsx("p",{className:"text-xs text-neutral-400/70 mt-1",children:c.description}),c.tools.length>0&&a.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:c.tools.map(h=>a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/5 border border-white/[0.08] text-neutral-400",children:o$[h]||h},h))})]})]})},c.id)})}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx("button",{onClick:o,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),a.jsxs("button",{"data-testid":"onboarding-selection-continue",onClick:l,disabled:t.size===0,className:"flex-1 bg-white text-black rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-neutral-200 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:["Create ",t.size," agent",t.size===1?"":"s"]})]})]})})}function zC({integrations:e,integrationValues:t,onSetValue:s,onSkipIntegration:l,skippedIds:o,onContinue:c,onBack:d}){if(e.length===0)return a.jsx("div",{className:"min-h-screen bg-black text-white flex flex-col items-center justify-center p-6",children:a.jsxs("div",{className:"w-full max-w-md space-y-6 text-center",children:[a.jsx("div",{className:"w-14 h-14 rounded-xl bg-success/10 flex items-center justify-center mx-auto",children:a.jsx(ns,{size:28,className:"text-success"})}),a.jsx("h2",{className:"text-lg font-bold",children:"No integrations needed"}),a.jsx("p",{className:"text-sm text-neutral-400",children:"Your selected agents work out of the box."}),a.jsx("button",{onClick:c,className:"w-full bg-white text-black rounded-lg py-3 text-sm font-medium hover:bg-neutral-200 transition-colors",children:"Continue"})]})});const h=e.every(m=>o.has(m.id)||m.envVarsRequired.every(p=>{var x;return!!((x=t[m.id])!=null&&x[p.key])}));return a.jsx("div",{className:"min-h-screen bg-black text-white flex flex-col items-center justify-center p-6",children:a.jsxs("div",{className:"w-full max-w-lg space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-2 text-xs text-neutral-500",children:[a.jsx("span",{children:"Step 8 of 9"}),a.jsx("div",{className:"flex-1 h-0.5 bg-white/10 rounded-full",children:a.jsx("div",{className:"h-full w-[89%] bg-white/30 rounded-full"})})]}),a.jsxs("div",{className:"text-center space-y-2",children:[a.jsx("h1",{className:"text-2xl font-bold",children:"Connect integrations"}),a.jsx("p",{className:"text-neutral-400 text-sm",children:"Some agents work best with connected services. You can skip any for now."})]}),a.jsx("div",{className:"space-y-4",children:e.map(m=>{const p=o.has(m.id),x=t[m.id]||{},g=m.envVarsRequired.every(b=>!!x[b.key]);return a.jsxs("div",{className:`border rounded-lg p-4 transition-colors ${g?"border-success/30 bg-success/[0.03]":p?"border-white/[0.06] bg-white/[0.01] opacity-50":"border-white/[0.08] bg-white/[0.02]"}`,children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Ol,{size:16,className:g?"text-success":"text-neutral-400"}),a.jsx("span",{className:"text-sm font-medium",children:m.name}),g&&a.jsx("span",{className:"text-[10px] bg-success/15 text-success px-1.5 py-0.5 rounded",children:"connected"}),p&&a.jsx("span",{className:"text-[10px] bg-white/[0.06] text-neutral-500 px-1.5 py-0.5 rounded",children:"skipped"})]}),!g&&!p&&a.jsxs("button",{onClick:()=>l(m.id),className:"text-xs text-neutral-500 hover:text-white transition-colors flex items-center gap-1",children:[a.jsx(MI,{size:12})," Skip"]})]}),a.jsx("p",{className:"text-xs text-neutral-500 mb-3",children:m.description}),!p&&a.jsx("div",{className:"space-y-2",children:m.envVarsRequired.map(b=>a.jsxs("div",{children:[a.jsx("label",{className:"text-[10px] text-neutral-400 block mb-1",children:b.label}),a.jsx("input",{type:"password",value:x[b.key]||"",onChange:w=>s(m.id,b.key,w.target.value),placeholder:b.key,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-600 focus:outline-none focus:border-white/20"})]},b.key))})]},m.id)})}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx("button",{onClick:d,className:"flex-1 border border-white/10 text-neutral-400 rounded-lg py-3 text-sm hover:bg-white/5 transition-colors",children:"Back"}),a.jsx("button",{onClick:c,disabled:!h,className:"flex-1 bg-white text-black rounded-lg py-3 text-sm font-medium hover:bg-neutral-200 transition-colors disabled:opacity-50",children:"Continue"})]})]})})}function qC({selectedModel:e,loading:t,error:s,onLaunch:l,businessName:o,agentCount:c,launchLabel:d="Start Chatting"}){return a.jsx("div",{"data-testid":"onboarding-ready",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:a.jsxs("div",{className:"max-w-md w-full text-center space-y-8",children:[a.jsx("div",{className:"space-y-2",children:a.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 7 of 7"})}),a.jsxs("div",{className:"space-y-3",children:[a.jsx("div",{className:"w-12 h-12 rounded-full bg-success/10 border border-success/20 flex items-center justify-center mx-auto",children:a.jsx("svg",{className:"w-6 h-6 text-success",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),a.jsx("h2",{className:"text-2xl font-bold text-white",children:"You're all set."})]}),a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg px-4 py-3 text-left space-y-2",children:[o&&a.jsxs("div",{className:"flex justify-between text-sm",children:[a.jsx("span",{className:"text-neutral-400",children:"Business"}),a.jsx("span",{className:"text-white font-medium",children:o})]}),a.jsxs("div",{className:"flex justify-between text-sm",children:[a.jsx("span",{className:"text-neutral-400",children:"Model"}),a.jsx("span",{className:"text-white",children:e?e.label:"None (add later in Settings)"})]}),c!==void 0&&c>0&&a.jsxs("div",{className:"flex justify-between text-sm",children:[a.jsx("span",{className:"text-neutral-400",children:"Agents"}),a.jsxs("span",{className:"text-white",children:[c," agent",c===1?"":"s"," ready to go"]})]})]}),s&&a.jsx("div",{className:"bg-critical/10 border border-critical/20 rounded-lg px-4 py-3 text-sm text-critical",children:s}),a.jsx("button",{"data-testid":"onboarding-launch-btn",onClick:l,disabled:t,className:"w-full bg-white text-black rounded-lg px-6 py-3.5 text-base font-medium hover:bg-neutral-200 transition-colors disabled:opacity-50",children:t?"Saving...":d})]})})}function c$({sessionToken:e}){var l;const t=kC();r.useEffect(()=>{t.screen==="model"&&!t.status&&t.fetchStatus()},[t.screen]);const s=async()=>{await t.completeOnboarding()||(e&&Vm(e),window.location.href="/ui/")};switch(t.screen){case"splash":return a.jsx(n$,{onGetStarted:t.goToTierChoice});case"tier_choice":return a.jsx(r$,{licenseKey:t.licenseKey,onChangeLicenseKey:t.setLicenseKey,onValidate:t.validateLicenseKey,onSkip:t.skipTierChoice,onBack:()=>{},validating:t.licenseValidating,error:t.licenseError});case"model":return a.jsx(s$,{status:t.status,selectedModel:t.selectedModel,loading:t.loading,downloading:t.downloading,downloadPercent:t.downloadPercent,downloadMessage:t.downloadMessage,setupMessage:t.setupMessage,error:t.error,estimatedMinutes:((l=t.status)==null?void 0:l.estimatedMinutes)??null,onSelectModel:t.selectModel,onDownload:t.startDownload,onSkip:t.skipDownload});case"business_info":return a.jsx(RC,{businessName:t.businessName,businessType:t.businessType,businessDescription:t.businessDescription,onChangeName:t.setBusinessName,onChangeType:t.setBusinessType,onChangeDescription:t.setBusinessDescription,onContinue:t.goToFounderStage,onBack:t.goToModel});case"founder_stage":return a.jsx(DC,{founderPath:t.founderPath,founderFocus:t.founderFocus,onChangePath:t.setFounderPath,onChangeFocus:t.setFounderFocus,onContinue:t.goToAgentDiscovery,onBack:t.goToBusinessInfo});case"agent_discovery":return a.jsx(FC,{modelAvailable:t.modelAvailable,businessType:t.businessType,founderPath:t.founderPath,founderFocus:t.founderFocus,chatMessages:t.chatMessages,presets:t.presets,discoveredGoal:t.discoveredGoal,onSendMessage:t.sendChatMessage,onContinue:t.goToAgentSelection,onBack:t.goToFounderStage,streaming:t.chatStreaming});case"agent_selection":return a.jsx(OC,{presets:t.presets,selectedIds:t.selectedAgentIds,onToggle:t.toggleAgent,onContinue:t.goToIntegrationSetup,onBack:t.goToAgentDiscovery});case"integration_setup":return a.jsx(zC,{integrations:t.integrations,integrationValues:t.integrationValues,onSetValue:t.setIntegrationValue,onSkipIntegration:t.skipIntegration,skippedIds:t.skippedIntegrationIds,onContinue:t.goToReady,onBack:t.goToAgentSelection});case"ready":return a.jsx(qC,{selectedModel:t.selectedModel,loading:t.loading,error:t.error,onLaunch:s,businessName:t.businessName,agentCount:t.selectedAgentIds.size})}}function ye(e,t=[]){const[s,l]=r.useState(null),[o,c]=r.useState(!!e),[d,h]=r.useState(null),[m,p]=r.useState(0),x=r.useCallback(()=>p(g=>g+1),[]);return r.useEffect(()=>{if(!e)return;let g=!1;return c(!0),me(e).then(b=>{g||(l(b.data),h(null))}).catch(b=>{g||h(b.message)}).finally(()=>{g||c(!1)}),()=>{g=!0}},[e,m,...t]),{data:s,loading:o,error:d,refetch:x}}function Vt({label:e,value:t,subtitle:s,color:l="text-white"}){return a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:e}),a.jsx("p",{className:`text-2xl font-bold mt-1 ${l}`,children:t}),s&&a.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:s})]})}const u$={idle:"bg-white/5 text-neutral-400",working:"bg-blue-500/15 text-blue-400",completed:"bg-success/15 text-success",approved:"bg-success/15 text-success",in_progress:"bg-blue-500/15 text-blue-400",queued:"bg-warning/15 text-warning",needs_approval:"bg-warning/15 text-warning",failed:"bg-critical/15 text-critical",rejected:"bg-critical/15 text-critical",pending_review:"bg-warning/15 text-warning",delivered:"bg-success/15 text-success",delivery_failed:"bg-critical/15 text-critical",active:"bg-success/15 text-success",paused:"bg-warning/15 text-warning",disabled:"bg-white/5 text-neutral-400",draft:"bg-warning/15 text-warning",archived:"bg-white/5 text-neutral-400",executing:"bg-blue-500/15 text-blue-400",pending:"bg-warning/15 text-warning",error:"bg-critical/15 text-critical",suspended:"bg-warning/15 text-warning",disconnected:"bg-white/5 text-neutral-400",skipped:"bg-white/5 text-neutral-400",read_only:"bg-white/5 text-neutral-400",processed:"bg-success/15 text-success"};function ft({status:e}){const t=u$[e]||"bg-white/5 text-neutral-400",s=e.replace(/_/g," ");return a.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium capitalize ${t}`,children:s})}function nn({className:e=""}){return a.jsx("div",{className:`animate-pulse bg-white/5 rounded ${e}`})}function M1(){return a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 space-y-2",children:[a.jsx(nn,{className:"h-3 w-20"}),a.jsx(nn,{className:"h-7 w-16"})]})}function We({count:e=5}){return a.jsx("div",{className:"space-y-2",children:Array.from({length:e}).map((t,s)=>a.jsx(nn,{className:"h-12 w-full"},s))})}function ze({title:e,subtitle:t,action:s}){return a.jsxs("div",{className:"flex items-center justify-between mb-6",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-2xl font-bold",children:e}),t&&a.jsx("p",{className:"text-sm text-neutral-400 mt-0.5",children:t})]}),s]})}function d$({buckets:e}){const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],s=e?e.map(m=>({label:t[new Date(m.date+"T00:00:00").getDay()],completed:m.completed,failed:m.failed})):[],l=Math.max(1,...s.map(m=>m.completed+m.failed)),o=28,c=12,d=80,h=s.length*(o+c)-c;return e?a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 mb-8",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-3",children:"Task Activity (7 days)"}),a.jsx("div",{className:"flex justify-center",children:a.jsx("svg",{width:h,height:d+20,className:"overflow-visible",children:s.map((m,p)=>{const x=p*(o+c),g=(m.completed+m.failed)/l*d,b=m.completed/l*d,w=m.failed/l*d;return a.jsxs("g",{children:[a.jsx("rect",{x,y:0,width:o,height:d,rx:4,className:"fill-white/[0.03]"}),m.completed>0&&a.jsx("rect",{x,y:d-g,width:o,height:b,rx:4,className:"fill-success/60"}),m.failed>0&&a.jsx("rect",{x,y:d-w,width:o,height:w,rx:4,className:"fill-critical/60"}),a.jsx("text",{x:x+o/2,y:d+14,textAnchor:"middle",className:"fill-neutral-500 text-[10px]",children:m.label}),m.completed+m.failed>0&&a.jsx("text",{x:x+o/2,y:d-g-4,textAnchor:"middle",className:"fill-neutral-400 text-[10px]",children:m.completed+m.failed})]},p)})})}),a.jsxs("div",{className:"flex items-center gap-4 mt-3 justify-center",children:[a.jsxs("span",{className:"flex items-center gap-1.5 text-[10px] text-neutral-500",children:[a.jsx("span",{className:"inline-block w-2 h-2 rounded-sm bg-success/60"})," Completed"]}),a.jsxs("span",{className:"flex items-center gap-1.5 text-[10px] text-neutral-500",children:[a.jsx("span",{className:"inline-block w-2 h-2 rounded-sm bg-critical/60"})," Failed"]})]})]}):a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 mb-8",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-3",children:"Task Activity (7 days)"}),a.jsx("div",{className:"h-[100px] flex items-center justify-center",children:a.jsx("p",{className:"text-xs text-neutral-600",children:"Loading..."})})]})}function h$({agents:e,stats:t}){const s=e?e.filter(c=>c.status==="working").length:0,l=(t==null?void 0:t.completedToday)??0,o=(t==null?void 0:t.successRate)??null;return a.jsxs("div",{className:"flex gap-3 mb-8",children:[a.jsxs("div",{className:"flex-1 border border-white/[0.06] rounded-lg px-4 py-3 bg-white/[0.02]",children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"Working Now"}),a.jsx("p",{className:"text-lg font-semibold text-success mt-0.5",children:s})]}),a.jsxs("div",{className:"flex-1 border border-white/[0.06] rounded-lg px-4 py-3 bg-white/[0.02]",children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"Completed Today"}),a.jsx("p",{className:"text-lg font-semibold text-white mt-0.5",children:l})]}),a.jsxs("div",{className:"flex-1 border border-white/[0.06] rounded-lg px-4 py-3 bg-white/[0.02]",children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"Success Rate"}),a.jsx("p",{className:`text-lg font-semibold mt-0.5 ${o===null?"text-neutral-500":o>=80?"text-success":o>=50?"text-warning":"text-critical"}`,children:o===null?". ":`${o}%`})]})]})}function m$(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:String(e)}const p9={animate:{transition:{staggerChildren:.05}}},x9={initial:{opacity:0,y:8},animate:{opacity:1,y:0}};function IC(){const e=va(["task:started","task:completed","task:failed"]),{data:t,loading:s}=ye("/api/system/stats",[e]),{data:l}=ye("/api/agents",[e]),{data:o}=ye("/api/tasks?limit=5",[e]);return a.jsxs("div",{className:"p-6 max-w-5xl",children:[a.jsx(ze,{title:"Overview",subtitle:"Runtime at a glance"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-8",children:s?a.jsxs(a.Fragment,{children:[a.jsx(M1,{}),a.jsx(M1,{}),a.jsx(M1,{}),a.jsx(M1,{})]}):t?a.jsxs(a.Fragment,{children:[a.jsx(Vt,{label:"Agents",value:t.totalAgents}),a.jsx(Vt,{label:"Tasks",value:t.totalTasks,subtitle:`${t.activeTasks} active`}),a.jsx(Vt,{label:"Approvals",value:t.pendingApprovals,color:t.pendingApprovals>0?"text-warning":"text-neutral-400"}),a.jsx(Vt,{label:"Tokens",value:m$(t.totalTokens),subtitle:`$${(t.totalCostCents/100).toFixed(2)}`})]}):null}),a.jsx(d$,{buckets:(t==null?void 0:t.dayBuckets7d)??null}),a.jsx(h$,{agents:l,stats:t}),a.jsxs("div",{className:"mb-8",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider",children:"Agents"}),a.jsx(Be,{to:"/agents",className:"text-xs text-neutral-400 hover:text-white transition-colors",children:"View all"})]}),l!=null&&l.length?a.jsx(He.div,{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",variants:p9,initial:"initial",animate:"animate",children:l.slice(0,8).map(c=>{var d;return a.jsx(He.div,{variants:x9,children:a.jsxs(Be,{to:`/agents/${c.id}`,className:"block border border-white/[0.08] rounded-lg p-4 hover:bg-white/[0.02] transition-colors",children:[a.jsx("div",{className:"w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-xs font-bold mb-3",children:(d=c.name[0])==null?void 0:d.toUpperCase()}),a.jsx("p",{className:"text-sm font-medium truncate",children:c.name}),a.jsx("p",{className:"text-xs text-neutral-500 truncate mt-0.5",children:c.role}),a.jsx("div",{className:"mt-2",children:a.jsx(ft,{status:c.status})})]})},c.id)})}):a.jsx(We,{count:2})]}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider",children:"Recent Tasks"}),a.jsx(Be,{to:"/tasks",className:"text-xs text-neutral-400 hover:text-white transition-colors",children:"View all"})]}),o!=null&&o.length?a.jsx(He.div,{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",variants:p9,initial:"initial",animate:"animate",children:o.map(c=>a.jsx(He.div,{variants:x9,children:a.jsxs(Be,{to:`/tasks/${c.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[a.jsxs("div",{className:"min-w-0 mr-3",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:c.title}),a.jsx("p",{className:"text-xs text-neutral-500",children:new Date(c.created_at).toLocaleString()})]}),a.jsx(ft,{status:c.status})]})},c.id))}):a.jsx(We,{count:3})]})]})}function bt({icon:e,title:t,description:s,action:l}){return a.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center border border-white/[0.08] bg-white/[0.02] rounded-lg",children:[e&&a.jsx("div",{className:"text-neutral-500 mb-3",children:e}),a.jsx("p",{className:"text-sm font-medium text-neutral-200",children:t}),s&&a.jsx("p",{className:"text-xs text-neutral-400 mt-1 max-w-xs",children:s}),l&&a.jsx("div",{className:"mt-4",children:l})]})}function ba({open:e,onClose:t,title:s,children:l,maxWidth:o="max-w-md"}){const c=r.useCallback(d=>{d.key==="Escape"&&t()},[t]);return r.useEffect(()=>{if(e)return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[e,c]),a.jsx(la,{children:e&&a.jsx(He.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50 p-4",onClick:t,children:a.jsxs(He.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{duration:.15,ease:"easeOut"},className:`bg-neutral-950 border border-white/10 rounded-lg w-full ${o} max-h-[85vh] overflow-y-auto`,onClick:d=>d.stopPropagation(),children:[s&&a.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-white/10",children:[a.jsx("h3",{className:"text-sm font-semibold",children:s}),a.jsx("button",{onClick:t,className:"text-neutral-400 hover:text-white text-xs transition-colors",children:"Close"})]}),a.jsx("div",{className:"p-6",children:l})]})})})}const f$={1:{label:"L1",title:"Observer. every non-informational action needs approval"},2:{label:"L2",title:"Supervised. deliverable outputs need approval"},3:{label:"L3",title:"Trusted. approvals only on verifier escalations"},4:{label:"L4",title:"Autonomous. no approval gates"}};function gl(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return{}}return e||{}}function p$(e){const t=/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"),s=Date.now()-t.getTime();if(s<0)return"now";const l=Math.floor(s/6e4);if(l<60)return`${Math.max(1,l)}m`;const o=Math.floor(l/60);return o<24?`${o}h`:`${Math.floor(o/24)}d`}const x$={animate:{transition:{staggerChildren:.04}}},g$={initial:{opacity:0,y:8},animate:{opacity:1,y:0}};function v$(){const e=va(["task:started","task:completed"]),{data:t,loading:s,refetch:l}=ye("/api/agents",[e]),[o,c]=r.useState(!1),[d,h]=r.useState(""),[m,p]=r.useState("recent"),x=r.useMemo(()=>{if(!t)return[];let g=t;if(d.trim()){const w=d.toLowerCase();g=g.filter(j=>j.name.toLowerCase().includes(w)||j.role.toLowerCase().includes(w)||(j.description||"").toLowerCase().includes(w))}const b=[...g];return m==="name"?b.sort((w,j)=>w.name.localeCompare(j.name)):m==="tasks"?b.sort((w,j)=>(gl(j.stats).total_tasks||0)-(gl(w.stats).total_tasks||0)):b.sort((w,j)=>{const N=gl(w.stats).last_task_at||"",E=gl(j.stats).last_task_at||"";return!N&&!E?w.name.localeCompare(j.name):N?E?E.localeCompare(N):-1:1}),b},[t,d,m]);return a.jsxs("div",{className:"p-6 max-w-5xl",children:[a.jsx(ze,{title:"Agents",subtitle:"Your AI team",action:s?null:a.jsxs("button",{onClick:()=>c(!0),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Zt,{size:14,weight:"bold"}),"Create agent"]})}),s?a.jsx(We,{count:4}):t!=null&&t.length?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsxs("div",{className:"relative flex-1 max-w-sm",children:[a.jsx(ga,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:d,onChange:g=>h(g.target.value),placeholder:"Search by name, role, description...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("select",{value:m,onChange:g=>p(g.target.value),className:"bg-white/5 border border-white/10 rounded-lg px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"recent",children:"Most recent"}),a.jsx("option",{value:"tasks",children:"Most tasks"}),a.jsx("option",{value:"name",children:"Alphabetical"})]}),a.jsxs("span",{className:"text-xs text-neutral-500",children:[x.length," of ",t.length]})]}),a.jsx(He.div,{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",variants:x$,initial:"initial",animate:"animate",children:x.map(g=>{var N;const b=gl(g.stats),w=g.autonomy_level?f$[g.autonomy_level]:null,j=b.last_task_at;return a.jsx(He.div,{variants:g$,children:a.jsxs(Be,{to:`/agents/${g.id}`,className:"block border border-white/[0.08] rounded-lg p-4 hover:bg-white/[0.02] transition-colors h-full",children:[a.jsxs("div",{className:"flex items-start justify-between mb-3",children:[a.jsx("div",{className:"w-9 h-9 rounded-full bg-white/10 flex items-center justify-center text-sm font-bold",children:(N=g.name[0])==null?void 0:N.toUpperCase()}),a.jsxs("div",{className:"flex items-center gap-1.5",children:[g.paused===1&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-warning/10 text-warning",children:"paused"}),w&&a.jsx("span",{title:w.title,className:"text-[10px] px-1.5 py-0.5 rounded bg-white/5 text-neutral-400",children:w.label}),a.jsx(ft,{status:g.status})]})]}),a.jsx("p",{className:"text-sm font-medium truncate",children:g.name}),a.jsx("p",{className:"text-xs text-neutral-500 truncate mt-0.5",children:g.role}),a.jsxs("div",{className:"flex items-center justify-between mt-2",children:[a.jsxs("p",{className:"text-xs text-neutral-600",children:[b.total_tasks||0," ",b.total_tasks===1?"task":"tasks"]}),j&&a.jsx("p",{className:"text-[10px] text-neutral-600",children:p$(j)})]})]})},g.id)})})]}):a.jsx(bt,{icon:a.jsx(Rn,{size:32}),title:"No agents yet",description:"Create your first agent to get started.",action:a.jsx("button",{onClick:()=>c(!0),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:"Create agent"})}),a.jsx(b$,{open:o,onClose:()=>c(!1),onCreated:()=>{c(!1),l()}})]})}function b$({open:e,onClose:t,onCreated:s}){const[l,o]=r.useState(""),[c,d]=r.useState(""),[h,m]=r.useState(""),[p,x]=r.useState(""),[g,b]=r.useState(!1),[w,j]=r.useState(""),N=async E=>{if(E.preventDefault(),!l.trim()||!c.trim()||!h.trim()){j("Name, role, and system prompt are required.");return}b(!0),j("");try{await me("/api/agents",{method:"POST",body:JSON.stringify({name:l.trim(),role:c.trim(),system_prompt:h.trim(),description:p.trim()||null})}),s()}catch(A){j(A instanceof Error?A.message:"Couldn't create agent. Try again?")}finally{b(!1)}};return a.jsx(ba,{open:e,onClose:t,title:"Create agent",children:a.jsxs("form",{onSubmit:N,className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"Name"}),a.jsx("input",{type:"text",value:l,onChange:E=>o(E.target.value),placeholder:"e.g. Scout",className:"w-full px-3 py-2 text-sm bg-white/5 border border-white/10 rounded-md focus:outline-none focus:border-white/20",autoFocus:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"Role"}),a.jsx("input",{type:"text",value:c,onChange:E=>d(E.target.value),placeholder:"e.g. Sales Development",className:"w-full px-3 py-2 text-sm bg-white/5 border border-white/10 rounded-md focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"System Prompt"}),a.jsx("textarea",{value:h,onChange:E=>m(E.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-white/5 border border-white/10 rounded-md focus:outline-none focus:border-white/20 resize-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"Description (optional)"}),a.jsx("input",{type:"text",value:p,onChange:E=>x(E.target.value),placeholder:"Short description for the agent list",className:"w-full px-3 py-2 text-sm bg-white/5 border border-white/10 rounded-md focus:outline-none focus:border-white/20"})]}),w&&a.jsx("p",{className:"text-xs text-critical",children:w}),a.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[a.jsx("button",{type:"button",onClick:t,className:"px-3 py-1.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:g,className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:g?"Creating...":"Create"})]})]})})}function zl({checked:e,onChange:t,disabled:s=!1,size:l="md"}){const o=l==="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 a.jsx("button",{type:"button",role:"switch","aria-checked":e,onClick:()=>!s&&t(!e),disabled:s,className:`relative ${o.track} rounded-full transition-colors disabled:opacity-50 ${e?"bg-success/30":"bg-white/10"}`,children:a.jsx("span",{className:`absolute top-0.5 left-0.5 ${o.thumb} rounded-full transition-transform ${e?`${o.translate} bg-success`:"translate-x-0 bg-neutral-400"}`})})}function Kl({tabs:e,activeTab:t,onTabChange:s,layoutId:l="tab-underline"}){return a.jsx("div",{className:"flex gap-1 border-b border-white/[0.08]",children:e.map(o=>{const c=o.id===t;return a.jsxs("button",{onClick:()=>s(o.id),className:`relative px-4 py-2.5 text-sm font-medium transition-colors ${c?"text-white":"text-neutral-400 hover:text-neutral-200"}`,children:[a.jsxs("span",{className:"relative z-10 flex items-center gap-2",children:[o.label,o.count!=null&&a.jsx("span",{className:"text-[10px] bg-white/10 px-1.5 py-0.5 rounded-full min-w-[18px] text-center",children:o.count})]}),c&&a.jsx(He.div,{layoutId:l,className:"absolute bottom-0 left-0 right-0 h-0.5 bg-white",transition:{type:"spring",stiffness:350,damping:30}})]},o.id)})})}const y$=[{id:"development",label:"Development"},{id:"files",label:"Files"},{id:"databases",label:"Databases"},{id:"apis",label:"APIs"},{id:"communication",label:"Communication"}],w$=[{id:"filesystem",name:"Filesystem",description:"Read, write, and search files on your machine",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-filesystem","/tmp"],envVarsRequired:[],category:"files"},{id:"github",name:"GitHub",description:"Manage repos, issues, and pull requests",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-github"],envVarsRequired:[{key:"GITHUB_PERSONAL_ACCESS_TOKEN",label:"GitHub token"}],category:"development"},{id:"slack",name:"Slack",description:"Read and send Slack messages",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-slack"],envVarsRequired:[{key:"SLACK_BOT_TOKEN",label:"Slack bot token"},{key:"SLACK_TEAM_ID",label:"Slack team ID"}],category:"communication"},{id:"postgres",name:"PostgreSQL",description:"Query and explore PostgreSQL databases",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-postgres"],envVarsRequired:[{key:"POSTGRES_CONNECTION_STRING",label:"Connection string"}],category:"databases"},{id:"sqlite",name:"SQLite",description:"Query and explore SQLite databases",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-sqlite"],envVarsRequired:[{key:"SQLITE_DB_PATH",label:"Database file path"}],category:"databases"},{id:"brave-search",name:"Brave Search",description:"Search the web with Brave",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-brave-search"],envVarsRequired:[{key:"BRAVE_API_KEY",label:"Brave API key"}],category:"apis"},{id:"fetch",name:"Fetch",description:"Fetch and read web pages and APIs",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-fetch"],envVarsRequired:[],category:"apis"},{id:"memory",name:"Memory",description:"Persistent knowledge graph for storing and retrieving information",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-memory"],envVarsRequired:[],category:"development"},{id:"google-maps",name:"Google Maps",description:"Search places, get directions, and geocode addresses",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-google-maps"],envVarsRequired:[{key:"GOOGLE_MAPS_API_KEY",label:"Google Maps API key"}],category:"apis"},{id:"sequential-thinking",name:"Sequential Thinking",description:"Think through problems step by step",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-sequential-thinking"],envVarsRequired:[],category:"development"},{id:"everything",name:"Everything (Demo)",description:"Demo server with sample tools for testing",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-everything"],envVarsRequired:[],category:"development"},{id:"puppeteer",name:"Puppeteer",description:"Browser automation and web scraping",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-puppeteer"],envVarsRequired:[],category:"development"}],g9={name:"",transport:"stdio",command:"",args:"",env:"",url:""};function $C({servers:e,onChange:t,disabled:s}){const[l,o]=r.useState(!1),[c,d]=r.useState(g9),[h,m]=r.useState(""),[p,x]=r.useState(null),[g,b]=r.useState({}),[w,j]=r.useState(null),[N,E]=r.useState("popular"),A=()=>{d(g9),m(""),E("popular"),o(!0)},C=()=>{if(!c.name.trim()){m("Name is required");return}if(c.transport==="stdio"&&!c.command.trim()){m("Command is required");return}if(c.transport==="http"&&!c.url.trim()){m("URL is required");return}if(e.some(_=>_.name===c.name.trim())){m("A server with that name already exists");return}const V=c.transport==="stdio"?{name:c.name.trim(),transport:"stdio",command:c.command.trim(),args:c.args.trim()?c.args.trim().split(/\s+/):void 0,env:c.env.trim()?A$(c.env.trim()):void 0}:{name:c.name.trim(),transport:"http",url:c.url.trim()};t([...e,V]),o(!1)},M=V=>{t(e.filter(_=>_.name!==V))},S=async V=>{if(!p){x(V.name);try{const H=await(await fetch("/api/mcp/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(V)})).json();H.success?(ue.success(`Connected. ${H.tools.length===1?"1 tool":`${H.tools.length} tools`} found in ${H.latencyMs}ms`),b(T=>({...T,[V.name]:H.tools})),j(V.name)):ue.error(H.error||"Couldn't connect to this server. Try again?")}catch{ue.error("Couldn't reach the daemon to test the connection")}finally{x(null)}}},L=V=>{j(_=>_===V?null:V)};return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"mt-4",children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsx("h3",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider",children:"MCP Servers"}),a.jsx("button",{onClick:A,disabled:s,className:"text-xs text-white hover:text-white/80 disabled:opacity-50 transition-colors",children:"+ Add"})]}),e.length===0?a.jsx("p",{className:"text-xs text-neutral-400 py-2",children:"No MCP servers yet. Add one to extend what this agent can do."}):a.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(V=>{var D;const _=g[V.name],H=w===V.name,T=p===V.name;return a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{className:"min-w-0 mr-3 flex items-center gap-2",children:[_&&_.length>0&&a.jsx("button",{onClick:()=>L(V.name),className:"text-neutral-400 hover:text-white transition-colors shrink-0",children:H?a.jsx(xa,{size:12}):a.jsx(hs,{size:12})}),a.jsx("span",{className:"text-sm font-medium",children:V.name}),a.jsx("span",{className:"text-xs text-neutral-400",children:V.transport==="stdio"?`stdio · ${V.command}${(D=V.args)!=null&&D.length?" "+V.args.join(" "):""}`:`http · ${V.url}`}),_&&a.jsx("span",{className:"text-xs text-neutral-500",children:_.length===1?"1 tool":`${_.length} tools`})]}),a.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[a.jsx("button",{onClick:()=>S(V),disabled:s||T,className:`text-neutral-400 hover:text-uplink transition-colors disabled:opacity-50 ${T?"animate-pulse":""}`,title:"Test connection",children:a.jsx(ka,{size:14,weight:T?"fill":"bold"})}),a.jsx("button",{onClick:()=>M(V.name),disabled:s,className:"text-neutral-400 hover:text-error transition-colors disabled:opacity-50",children:a.jsx(Kt,{size:14})})]})]}),H&&_&&_.length>0&&a.jsx("div",{className:"px-4 pb-3 pl-10",children:a.jsx("div",{className:"bg-white/[0.03] rounded-md border border-white/[0.06] divide-y divide-white/[0.06]",children:_.map(F=>a.jsxs("div",{className:"px-3 py-2",children:[a.jsx("span",{className:"text-xs font-mono text-white/80",children:F.name}),F.description&&a.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:F.description})]},F.name))})})]},V.name)})})]}),a.jsx(ba,{open:l,onClose:()=>o(!1),title:"Add MCP Server",maxWidth:"max-w-lg",children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex gap-1 bg-white/[0.04] rounded-md p-0.5",children:[a.jsx("button",{onClick:()=>E("popular"),className:`flex-1 px-3 py-1.5 text-xs font-medium rounded transition-colors ${N==="popular"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Popular"}),a.jsx("button",{onClick:()=>E("custom"),className:`flex-1 px-3 py-1.5 text-xs font-medium rounded transition-colors ${N==="custom"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Custom"})]}),N==="popular"&&a.jsx("div",{className:"space-y-4",children:y$.map(V=>{const _=w$.filter(H=>H.category===V.id);return _.length===0?null:a.jsxs("div",{children:[a.jsx("h4",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider mb-2",children:V.label}),a.jsx("div",{className:"grid grid-cols-2 gap-2",children:_.map(H=>{const T=e.some(D=>D.name===H.name);return a.jsxs("button",{onClick:()=>{T||(d({name:H.name,transport:H.transport,command:H.command,args:H.args.join(" "),env:H.envVarsRequired.map(D=>`${D.key}=`).join(`
72
+ `),url:""}),m(""),E("custom"))},disabled:T,className:`text-left p-3 rounded-lg border transition-colors ${T?"border-white/[0.06] bg-white/[0.02] opacity-50 cursor-not-allowed":"border-white/[0.08] bg-white/[0.04] hover:border-white/20 hover:bg-white/[0.06]"}`,children:[a.jsxs("div",{className:"flex items-start justify-between gap-1",children:[a.jsx("span",{className:"text-sm font-medium",children:H.name}),a.jsx("span",{className:"text-[10px] text-neutral-500 bg-white/[0.06] px-1.5 py-0.5 rounded shrink-0",children:V.label})]}),a.jsx("p",{className:"text-xs text-neutral-400 mt-1",children:H.description}),T&&a.jsx("p",{className:"text-[10px] text-neutral-500 mt-1",children:"Already added"})]},H.id)})})]},V.id)})}),N==="custom"&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Name"}),a.jsx("input",{value:c.name,onChange:V=>d(_=>({..._,name:V.target.value})),placeholder:"e.g. filesystem",className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Transport"}),a.jsxs("select",{value:c.transport,onChange:V=>d(_=>({..._,transport:V.target.value})),className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"stdio",children:"stdio (subprocess on this machine)"}),a.jsx("option",{value:"http",children:"http (remote server via URL)"})]})]}),c.transport==="stdio"?a.jsxs(a.Fragment,{children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Command"}),a.jsx("input",{value:c.command,onChange:V=>d(_=>({..._,command:V.target.value})),placeholder:"e.g. npx",className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Args (space-separated)"}),a.jsx("input",{value:c.args,onChange:V=>d(_=>({..._,args:V.target.value})),placeholder:"e.g. -y @modelcontextprotocol/server-filesystem /tmp",className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Env vars (optional, KEY=VALUE one per line)"}),a.jsx("textarea",{value:c.env,onChange:V=>d(_=>({..._,env:V.target.value})),placeholder:"MY_KEY=value",rows:3,className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20 resize-none"})]})]}):a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"URL"}),a.jsx("input",{value:c.url,onChange:V=>d(_=>({..._,url:V.target.value})),placeholder:"e.g. http://localhost:5173/sse",className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20"})]}),h&&a.jsx("p",{className:"text-xs text-error",children:h}),a.jsxs("div",{className:"flex justify-end gap-2",children:[a.jsx("button",{onClick:()=>o(!1),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{onClick:C,className:"px-3 py-1.5 text-xs font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:"Add server"})]})]})]})})]})}function A$(e){const t={};for(const s of e.split(`
73
+ `)){const l=s.trim();if(!l)continue;const o=l.indexOf("=");o>0&&(t[l.slice(0,o)]=l.slice(o+1))}return t}function v9(e){const t=Date.now()-new Date(e).getTime(),s=Math.floor(t/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const l=Math.floor(s/60);return l<24?`${l}h ago`:`${Math.floor(l/24)}d ago`}const j$=[{id:"overview",label:"Overview"},{id:"tasks",label:"Tasks"},{id:"activity",label:"Activity"},{id:"performance",label:"Performance"},{id:"config",label:"Config"}];function N$(){var Tt;const{id:e}=Il(),t=va(["task:started","task:completed","task:failed"]),{data:s,loading:l,refetch:o}=ye(e?`/api/agents/${e}`:null,[t]),{data:c}=ye(e?`/api/agents/${e}/memory`:null),{data:d}=ye(e?`/api/tasks?agentId=${e}&limit=50`:null,[t]),{data:h}=ye("/api/activity",[t]),m=r.useMemo(()=>!h||!e?[]:h.filter(ie=>ie.agent_id===e),[h,e]),p=r.useMemo(()=>{if(!(d!=null&&d.length))return null;const ie=d.filter(Ue=>Ue.status==="completed").length,pt=d.filter(Ue=>Ue.status==="failed").length,Fe=ie+pt>0?ie/(ie+pt):0,ut=d.filter(Ue=>Ue.duration_seconds!=null).map(Ue=>Ue.duration_seconds),yt=ut.length>0?ut.reduce((Ue,Lt)=>Ue+Lt,0)/ut.length:0,rt=d.reduce((Ue,Lt)=>Ue+(Lt.tokens_used||0),0),je=d.reduce((Ue,Lt)=>Ue+(Lt.cost_cents||0),0),et=d.length>0?Math.round(rt/d.length):0;return{completed:ie,failed:pt,successRate:Fe,avgDuration:yt,totalTokens:rt,totalCostCents:je,avgTokens:et}},[d]),[x,g]=r.useState("overview"),[b,w]=r.useState(!1),[j,N]=r.useState([]),[E,A]=r.useState(!1),[C,M]=r.useState(!1),[S,L]=r.useState([]),[V,_]=r.useState(!1),[H,T]=r.useState(!1),[D,F]=r.useState([]),[P,U]=r.useState(!1),[W,se]=r.useState(0),[O,$]=r.useState(0),[B,Q]=r.useState(0);r.useEffect(()=>{me("/api/voice/health").then(()=>(w(!0),me("/api/voice/profiles"))).then(ie=>N(ie.data||[])).catch(()=>w(!1))},[]);const J=r.useMemo(()=>s?typeof s.config=="string"?JSON.parse(s.config):s.config||{}:{},[s]),k=r.useMemo(()=>s?typeof s.stats=="string"?JSON.parse(s.stats):s.stats||{}:{},[s]);r.useEffect(()=>{T(J.mcp_enabled===!0),F(Array.isArray(J.mcp_servers)?J.mcp_servers:[])},[J]),r.useEffect(()=>{if(s!=null&&s.autonomy_budget)try{const ie=JSON.parse(s.autonomy_budget);se(ie.perTaskCents||0),$(ie.dailyCents||0),Q(ie.monthlyCents||0)}catch{}},[s==null?void 0:s.autonomy_budget]);const Y=J.local_files_enabled===!0&&J.bash_enabled===!0,[K,q]=r.useState([]),[z,I]=r.useState(""),[te,fe]=r.useState("");r.useEffect(()=>{e&&me(`/api/agents/${e}/file-access`).then(ie=>q(ie.data||[])).catch(()=>{})},[e,J]);const pe=async()=>{if(!(!e||!z.trim())){fe("");try{await me(`/api/agents/${e}/file-access`,{method:"POST",body:JSON.stringify({path:z.trim()})});const ie=await me(`/api/agents/${e}/file-access`);q(ie.data||[]),I("")}catch(ie){fe(ie instanceof Error?ie.message:"Could not add path")}}},Ee=async ie=>{if(e)try{await me(`/api/agents/${e}/file-access/${ie}`,{method:"DELETE"}),q(pt=>pt.filter(Fe=>Fe.id!==ie))}catch{}},Se=r.useMemo(()=>[{key:"model",label:"Model",value:"router (auto)"},{key:"temperature",label:"Temperature",value:String(J.temperature??"0.7")},{key:"max_tokens",label:"Max tokens",value:String(J.max_tokens||"4096")},{key:"requires_approval",label:"Requires approval",value:String(J.requires_approval??"no")},{key:"web_search",label:"Web search",value:String(J.web_search??"no")},{key:"device_access",label:"Device access",value:Y?"yes":"no"}],[J,Y]),Ve=r.useCallback(async ie=>{if(e){A(!0);try{await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({voice_profile_id:ie||null})}),o()}catch{}finally{A(!1)}}},[e,o]),Pe=r.useCallback(async()=>{if(!e||!s)return;const ie=s.status==="paused"?"idle":"paused";try{await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({status:ie})}),o()}catch{}},[e,s,o]),Te=r.useCallback(()=>{L(Se.map(ie=>({...ie}))),M(!0)},[Se]),Ae=r.useCallback(async()=>{if(e){_(!0);try{const ie={};for(const Fe of S){if(Fe.key==="device_access"){const ut=Fe.value==="true"||Fe.value==="yes";ie.local_files_enabled=ut,ie.bash_enabled=ut;continue}Fe.value==="true"||Fe.value==="yes"?ie[Fe.key]=!0:Fe.value==="false"||Fe.value==="no"?ie[Fe.key]=!1:!isNaN(Number(Fe.value))&&Fe.value!==""?ie[Fe.key]=Number(Fe.value):ie[Fe.key]=Fe.value}const pt=W||O||B?JSON.stringify({perTaskCents:W,dailyCents:O,monthlyCents:B,warnAt:.8}):null;await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({config:ie,autonomy_budget:pt})}),M(!1),o()}catch{}finally{_(!1)}}},[e,S,W,O,B,o]),qt=r.useCallback(async(ie,pt)=>{if(e){U(!0);try{await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({config:{...J,mcp_enabled:ie,mcp_servers:pt}})}),o()}catch{}finally{U(!1)}}},[e,J,o]);if(l)return a.jsx("div",{className:"p-6",children:a.jsx(We,{count:4})});if(!s)return a.jsx("div",{className:"p-6 text-neutral-400",children:"Agent not found"});const Ce=j$.map(ie=>({...ie,count:ie.id==="tasks"?d==null?void 0:d.length:void 0}));return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsxs(Be,{to:"/agents",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4 transition-colors",children:[a.jsx(ds,{size:14})," Back to agents"]}),a.jsx(ze,{title:s.name,subtitle:s.role,action:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("button",{onClick:Pe,className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-md border transition-colors ${s.status==="paused"?"bg-success/10 border-success/30 text-success hover:bg-success/20":"bg-warning/10 border-warning/30 text-warning hover:bg-warning/20"}`,children:[s.status==="paused"?a.jsx(t3,{size:14}):a.jsx(wI,{size:14}),s.status==="paused"?"Resume":"Pause"]}),a.jsx(ft,{status:s.status})]})}),s.description&&a.jsx("p",{className:"text-sm text-neutral-400 mb-4",children:s.description}),a.jsx(Kl,{tabs:Ce,activeTab:x,onTabChange:ie=>{g(ie),M(!1)},layoutId:"agent-detail-tab"}),a.jsxs("div",{className:"mt-6",children:[x==="overview"&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[a.jsx(Vt,{label:"Tasks",value:k.total_tasks||0}),a.jsx(Vt,{label:"Tokens",value:((Tt=k.tokens_used)==null?void 0:Tt.toLocaleString())||"0"}),a.jsx(Vt,{label:"Cost",value:`$${((k.cost_cents||0)/100).toFixed(2)}`})]}),b&&a.jsxs(a.Fragment,{children:[a.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Voice"}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg px-4 py-3 mb-8",children:a.jsxs("label",{className:"flex items-center justify-between gap-4",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium",children:"Voice profile"}),a.jsx("p",{className:"text-xs text-neutral-500",children:"Choose which voice this agent uses during calls"})]}),a.jsxs("select",{value:s.voice_profile_id||"",onChange:ie=>Ve(ie.target.value),disabled:E,className:"bg-black border border-white/10 rounded-md px-3 py-1.5 text-sm min-w-[180px]",children:[a.jsx("option",{value:"",children:"Default voice"}),j.map(ie=>a.jsx("option",{value:ie.id,children:ie.name},ie.id))]})]})})]}),a.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Memory"}),c!=null&&c.length?a.jsx("div",{className:"space-y-2",children:c.map(ie=>a.jsxs("div",{className:"border border-white/[0.08] rounded-lg px-4 py-3",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx("span",{className:"text-xs text-white font-medium",children:ie.memory_type}),a.jsx("span",{className:"text-xs text-neutral-500",children:new Date(ie.created_at).toLocaleDateString()})]}),a.jsx("p",{className:"text-sm text-neutral-300",children:ie.content})]},ie.id))}):a.jsx("p",{className:"text-sm text-neutral-500",children:"No memories yet. This agent will learn from completed tasks."}),s.system_prompt&&a.jsxs(a.Fragment,{children:[a.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3 mt-8",children:"System Prompt"}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:a.jsx("pre",{className:"text-sm whitespace-pre-wrap break-words text-neutral-300 max-h-[40vh] overflow-y-auto leading-relaxed",children:s.system_prompt})})]})]}),x==="tasks"&&a.jsx(a.Fragment,{children:d!=null&&d.length?a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:d.map(ie=>a.jsxs(Be,{to:`/tasks/${ie.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[a.jsxs("div",{className:"min-w-0 mr-3",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:ie.title}),a.jsx("p",{className:"text-xs text-neutral-500",children:v9(ie.created_at)})]}),a.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[ie.tokens_used?a.jsxs("span",{className:"text-xs text-neutral-500",children:[ie.tokens_used.toLocaleString()," tok"]}):null,ie.priority&&a.jsx("span",{className:"text-xs text-warning",children:ie.priority}),a.jsx(ft,{status:ie.status})]})]},ie.id))}):a.jsx(bt,{icon:a.jsx(ro,{size:32}),title:"No tasks yet",description:"Tasks will appear here as this agent works."})}),x==="activity"&&a.jsx(a.Fragment,{children:m.length?a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:m.map(ie=>a.jsxs("div",{className:"flex items-start gap-3 px-4 py-3",children:[a.jsxs("div",{className:"mt-0.5",children:[ie.activity_type==="task_completed"&&a.jsx(y0,{size:16,weight:"fill",className:"text-success"}),ie.activity_type==="task_failed"&&a.jsx(ms,{size:16,weight:"fill",className:"text-critical"}),ie.activity_type==="task_started"&&a.jsx(it,{size:16,className:"text-white animate-spin"}),!["task_completed","task_failed","task_started"].includes(ie.activity_type)&&a.jsx(ts,{size:16,className:"text-neutral-400"})]}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"text-sm font-medium truncate",children:ie.title}),a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/5 text-neutral-500 shrink-0",children:ie.activity_type.replace(/_/g," ")})]}),ie.description&&a.jsx("p",{className:"text-xs text-neutral-500 mt-0.5 truncate",children:ie.description}),a.jsx("p",{className:"text-xs text-neutral-600 mt-1",children:v9(ie.created_at)})]})]},ie.id))}):a.jsx(bt,{icon:a.jsx(ts,{size:32}),title:"No activity yet",description:"Activity will appear here as this agent works on tasks."})}),x==="performance"&&a.jsx(a.Fragment,{children:p?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-6",children:[a.jsx(Vt,{label:"Success rate",value:`${(p.successRate*100).toFixed(0)}%`}),a.jsx(Vt,{label:"Avg duration",value:p.avgDuration>0?`${p.avgDuration.toFixed(1)}s`:"N/A"}),a.jsx(Vt,{label:"Total tokens",value:p.totalTokens.toLocaleString()})]}),a.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[a.jsx(Vt,{label:"Total cost",value:`$${(p.totalCostCents/100).toFixed(2)}`}),a.jsx(Vt,{label:"Avg tokens/task",value:p.avgTokens.toLocaleString()}),a.jsx(Vt,{label:"Tasks evaluated",value:p.completed+p.failed})]}),a.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Task outcomes"}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:a.jsx("svg",{viewBox:"0 0 300 80",className:"w-full max-w-sm",role:"img","aria-label":"Task outcome chart",children:(()=>{const ie=p.completed+p.failed;if(ie===0)return null;const pt=p.completed/ie*260,Fe=p.failed/ie*260;return a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:20,y:10,width:pt,height:24,rx:4,fill:"#22c55e"}),a.jsxs("text",{x:20,y:52,className:"text-[10px]",fill:"#a3a3a3",fontSize:"10",children:["Completed: ",p.completed]}),a.jsx("rect",{x:20,y:56,width:Fe,height:24,rx:4,fill:"#ef4444"}),a.jsxs("text",{x:20+Fe+8,y:72,className:"text-[10px]",fill:"#a3a3a3",fontSize:"10",children:["Failed: ",p.failed]})]})})()})})]}):a.jsx(bt,{icon:a.jsx(ts,{size:32}),title:"No performance data",description:"Complete some tasks first to see performance metrics."})}),x==="config"&&!C&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[Se.map(ie=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsx("span",{className:"text-sm text-neutral-400",children:ie.label}),a.jsx("span",{className:"text-sm font-medium",children:ie.value})]},ie.key)),a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-sm text-neutral-400",children:"MCP tools"}),a.jsx("p",{className:"text-xs text-neutral-600",children:"Allow this agent to use MCP servers"})]}),a.jsx(zl,{checked:H,onChange:async ie=>{T(ie),await qt(ie,D)},disabled:P,size:"sm"})]}),a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-sm text-neutral-400",children:"Device access"}),a.jsx("p",{className:"text-xs text-neutral-600",children:"Allow filesystem and shell access to local directories"})]}),a.jsx(zl,{checked:Y,onChange:async ie=>{if(e)try{await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({config:{...J,local_files_enabled:ie,bash_enabled:ie}})}),o()}catch{}},size:"sm"})]})]}),H&&a.jsx($C,{servers:D,onChange:async ie=>{F(ie),await qt(H,ie)},disabled:P}),Y&&a.jsxs("div",{className:"mt-4",children:[a.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Allowed directories"}),K.length>0?a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:K.map(ie=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5",children:[a.jsx("code",{className:"text-sm text-neutral-300",children:ie.path}),a.jsx("button",{onClick:()=>Ee(ie.id),className:"text-xs text-neutral-500 hover:text-red-400 transition-colors",children:"Remove"})]},ie.id))}):a.jsx("p",{className:"text-sm text-neutral-500 mb-3",children:"No directories configured yet."}),a.jsxs("div",{className:"flex gap-2 mt-3",children:[a.jsx("input",{value:z,onChange:ie=>{I(ie.target.value),fe("")},onKeyDown:ie=>{ie.key==="Enter"&&pe()},placeholder:"~/projects/myapp",className:"flex-1 bg-white/5 border border-white/10 rounded-md px-3 py-1.5 text-sm text-white placeholder:text-neutral-600 focus:outline-none focus:border-white/20"}),a.jsx("button",{onClick:pe,className:"px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-md hover:bg-white/10 transition-colors",children:"Add path"})]}),te&&a.jsx("p",{className:"text-xs text-red-400 mt-1",children:te})]}),a.jsxs("div",{className:"mt-6 border-t border-zinc-800 pt-4",children:[a.jsx("h4",{className:"text-sm font-medium text-zinc-400 mb-1",children:"Budget Limits"}),a.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Cost caps for external API providers. Local models are always unlimited."}),a.jsx("div",{className:"text-sm text-zinc-400",children:W||O||B?a.jsxs("div",{className:"flex gap-4",children:[W>0&&a.jsxs("span",{children:["Per task: ",W,"c"]}),O>0&&a.jsxs("span",{children:["Daily: ",O,"c"]}),B>0&&a.jsxs("span",{children:["Monthly: ",B,"c"]})]}):a.jsx("span",{className:"text-zinc-600",children:"No budget limits set"})})]}),a.jsx("div",{className:"mt-4",children:a.jsxs("button",{onClick:Te,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-md hover:bg-white/10 transition-colors",children:[a.jsx(mI,{size:14})," Edit config"]})})]}),x==="config"&&C&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:S.map((ie,pt)=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsx("label",{className:"text-sm text-neutral-400",htmlFor:`config-${ie.key}`,children:ie.label}),a.jsx("input",{id:`config-${ie.key}`,value:ie.value,onChange:Fe=>{const ut=[...S];ut[pt]={...ie,value:Fe.target.value},L(ut)},className:"bg-white/5 border border-white/10 rounded px-3 py-1.5 text-sm text-white text-right w-48 focus:outline-none focus:border-white/20"})]},ie.key))}),a.jsxs("div",{className:"mt-6 border-t border-zinc-800 pt-4",children:[a.jsx("h4",{className:"text-sm font-medium text-zinc-400 mb-1",children:"Budget Limits"}),a.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Cost caps for external API providers. Local models are always unlimited."}),a.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-zinc-500 block mb-1",children:"Per task (cents)"}),a.jsx("input",{type:"number",min:"0",value:W,onChange:ie=>se(Number(ie.target.value)),className:"w-full bg-zinc-900 border border-zinc-700 rounded px-2 py-1.5 text-sm text-zinc-200"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-zinc-500 block mb-1",children:"Daily (cents)"}),a.jsx("input",{type:"number",min:"0",value:O,onChange:ie=>$(Number(ie.target.value)),className:"w-full bg-zinc-900 border border-zinc-700 rounded px-2 py-1.5 text-sm text-zinc-200"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-zinc-500 block mb-1",children:"Monthly (cents)"}),a.jsx("input",{type:"number",min:"0",value:B,onChange:ie=>Q(Number(ie.target.value)),className:"w-full bg-zinc-900 border border-zinc-700 rounded px-2 py-1.5 text-sm text-zinc-200"})]})]})]}),a.jsxs("div",{className:"flex gap-2 mt-4",children:[a.jsx("button",{onClick:()=>M(!1),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{onClick:Ae,disabled:V,className:"px-4 py-1.5 text-xs font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:V?"Saving...":"Save config"})]})]})]})]})}const E$=["all","pending","in_progress","needs_approval","approved","completed","failed"],S1=50,M$=["all","pending_review","approved","delivered","rejected"],b9={urgent:0,high:1,normal:2,low:3},y9={in_progress:0,pending:1,needs_approval:2,completed:3,failed:4};function BC(){const e=va(["task:started","task:completed","task:failed"]),[t,s]=r.useState("tasks"),[l,o]=r.useState("all"),[c,d]=r.useState("all"),[h,m]=r.useState(!1),[p,x]=r.useState(""),[g,b]=r.useState("date"),{data:w}=ye("/api/agents"),[j,N]=r.useState(null),[E,A]=r.useState(0),[C,M]=r.useState(!0),[S,L]=r.useState(!1),V=r.useCallback(k=>{const Y=[`limit=${S1}`,`offset=${k}`];return l!=="all"&&Y.push(`status=${l}`),`/api/tasks?${Y.join("&")}`},[l]);r.useEffect(()=>{let k=!1;return M(!0),me(V(0)).then(Y=>{k||(N(Y.data),A(Y.total))}).catch(()=>{k||(N([]),A(0))}).finally(()=>{k||M(!1)}),()=>{k=!0}},[V,e]);const _=r.useCallback(()=>{me(V(0)).then(k=>{N(k.data),A(k.total)}).catch(()=>{})},[V]),H=async()=>{if(!(!j||S||j.length>=E)){L(!0);try{const k=await me(V(j.length));N([...j,...k.data]),A(k.total)}finally{L(!1)}}},[T,D]=r.useState(null),[F,P]=r.useState(0),[U,W]=r.useState(!1),[se,O]=r.useState(!1),$=r.useCallback(k=>{const Y=[`limit=${S1}`,`offset=${k}`];return c!=="all"&&Y.push(`status=${c}`),`/api/deliverables?${Y.join("&")}`},[c]);r.useEffect(()=>{if(t!=="deliverables")return;let k=!1;return W(!0),me($(0)).then(Y=>{k||(D(Y.data),P(Y.total))}).catch(()=>{k||(D([]),P(0))}).finally(()=>{k||W(!1)}),()=>{k=!0}},[$,t,e]);const B=async()=>{if(!(!T||se||T.length>=F)){O(!0);try{const k=await me($(T.length));D([...T,...k.data]),P(k.total)}finally{O(!1)}}},Q=r.useMemo(()=>{const k=new Map;return w==null||w.forEach(Y=>k.set(Y.id,Y.name)),k},[w]),J=r.useMemo(()=>{if(!j)return[];let k=j;if(p.trim()){const Y=p.toLowerCase();k=k.filter(K=>K.title.toLowerCase().includes(Y)||(Q.get(K.agent_id)||"").toLowerCase().includes(Y))}return g==="priority"?k=[...k].sort((Y,K)=>{const q=b9[Y.priority||"normal"]??2,z=b9[K.priority||"normal"]??2;return q-z||new Date(K.created_at).getTime()-new Date(Y.created_at).getTime()}):g==="status"&&(k=[...k].sort((Y,K)=>{const q=y9[Y.status]??5,z=y9[K.status]??5;return q-z||new Date(K.created_at).getTime()-new Date(Y.created_at).getTime()})),k},[j,p,g,Q]);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Tasks",subtitle:t==="tasks"?E>0?`${(j==null?void 0:j.length)??0} of ${E}${l==="all"?"":` ${l.replace(/_/g," ")}`} shown`:"All agent tasks":F>0?`${(T==null?void 0:T.length)??0} of ${F}${c==="all"?"":` ${c.replace(/_/g," ")}`} shown`:"Agent deliverables",action:a.jsxs("button",{onClick:()=>m(!h),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Zt,{size:14})," New task"]})}),a.jsxs("div",{className:"flex gap-2 mb-4",children:[a.jsxs("button",{onClick:()=>s("tasks"),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-md text-sm transition-colors ${t==="tasks"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:[a.jsx(ro,{size:14})," Tasks"]}),a.jsxs("button",{onClick:()=>s("deliverables"),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-md text-sm transition-colors ${t==="deliverables"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:[a.jsx(sf,{size:14})," Deliverables"]})]}),t==="tasks"?a.jsxs(a.Fragment,{children:[h&&(w!=null&&w.length)?a.jsx(S$,{agents:w,onClose:()=>m(!1),onSuccess:_}):null,a.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:E$.map(k=>a.jsx("button",{onClick:()=>o(k),className:`px-3 py-1.5 rounded-md text-xs capitalize transition-colors ${l===k?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:k.replace(/_/g," ")},k))}),a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsxs("div",{className:"relative flex-1",children:[a.jsx(ga,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:p,onChange:k=>x(k.target.value),placeholder:"Search by title or agent...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("select",{value:g,onChange:k=>b(k.target.value),className:"bg-white/5 border border-white/10 rounded-lg px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"date",children:"Sort by date"}),a.jsx("option",{value:"priority",children:"Sort by priority"}),a.jsx("option",{value:"status",children:"Sort by status"})]})]}),C?a.jsx(We,{count:5}):J.length?a.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:J.map(k=>a.jsxs(Be,{to:`/tasks/${k.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/5 transition-colors",children:[a.jsxs("div",{className:"min-w-0 mr-3",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:k.title}),a.jsxs("p",{className:"text-xs text-neutral-400",children:[Q.get(k.agent_id)&&a.jsx("span",{className:"text-white",children:Q.get(k.agent_id)}),Q.get(k.agent_id)&&" · ",new Date(k.created_at).toLocaleString()]})]}),a.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[k.priority&&k.priority!=="normal"&&a.jsx("span",{className:"text-xs text-warning",children:k.priority}),k.tokens_used?a.jsxs("span",{className:"text-xs text-neutral-400",children:[k.tokens_used.toLocaleString()," tok"]}):null,a.jsx(ft,{status:k.status})]})]},k.id))}):a.jsx(bt,{icon:a.jsx(ro,{size:32}),title:"Nothing here yet",description:p?`No tasks matching "${p}".`:l==="all"?"Tasks will appear as agents work.":`No ${l.replace(/_/g," ")} tasks.`}),!C&&j&&j.length<E&&!p&&a.jsx("div",{className:"flex justify-center mt-4",children:a.jsx("button",{onClick:H,disabled:S,className:"px-4 py-2 text-xs text-neutral-300 border border-white/10 rounded-md hover:bg-white/5 transition-colors disabled:opacity-50",children:S?"Loading...":`Load ${Math.min(S1,E-j.length)} more`})})]}):a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:M$.map(k=>a.jsx("button",{onClick:()=>d(k),className:`px-3 py-1.5 rounded-md text-xs capitalize transition-colors ${c===k?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:k.replace(/_/g," ")},k))}),U?a.jsx(We,{count:5}):T!=null&&T.length?a.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:T.map(k=>{const K={email:"bg-blue-500/15 text-blue-400",code:"bg-green-500/15 text-green-400",report:"bg-purple-500/15 text-purple-400",creative:"bg-pink-500/15 text-pink-400",plan:"bg-cyan-500/15 text-cyan-400",data:"bg-amber-500/15 text-amber-400",document:"bg-white/5 text-neutral-400"}[k.deliverable_type]||"bg-white/5 text-neutral-400";return a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{className:"min-w-0 mr-3 flex items-center gap-2",children:[k.task_id?a.jsx(Be,{to:`/tasks/${k.task_id}`,className:"text-sm font-medium truncate hover:text-blue-400 transition-colors",children:k.title}):a.jsx("span",{className:"text-sm font-medium truncate",children:k.title}),k.auto_created===1&&a.jsx("span",{className:"text-[10px] text-neutral-500 bg-white/5 px-1.5 py-0.5 rounded shrink-0",children:"auto"})]}),a.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[a.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium ${K}`,children:k.deliverable_type}),a.jsx(ft,{status:k.status}),a.jsx("span",{className:"text-xs text-neutral-500",children:new Date(k.created_at).toLocaleDateString()})]})]},k.id)})}):a.jsx(bt,{icon:a.jsx(sf,{size:32}),title:"No deliverables yet",description:"Deliverables are created when agents produce work products like drafts, reports, and plans."}),!U&&T&&T.length<F&&a.jsx("div",{className:"flex justify-center mt-4",children:a.jsx("button",{onClick:B,disabled:se,className:"px-4 py-2 text-xs text-neutral-300 border border-white/10 rounded-md hover:bg-white/5 transition-colors disabled:opacity-50",children:se?"Loading...":`Load ${Math.min(S1,F-T.length)} more`})})]})]})}function S$({agents:e,onClose:t,onSuccess:s}){var b;const[l,o]=r.useState(((b=e[0])==null?void 0:b.id)||""),[c,d]=r.useState(""),[h,m]=r.useState(""),[p,x]=r.useState(!1),g=async w=>{if(w.preventDefault(),!(!l||!c.trim())){x(!0);try{await me("/api/tasks",{method:"POST",body:JSON.stringify({agentId:l,title:c.trim(),description:h.trim()||void 0})}),s(),t()}catch{}finally{x(!1)}}};return a.jsxs("form",{onSubmit:g,className:"bg-white/5 border border-white/[0.08] rounded-lg p-4 mb-4 space-y-3",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent"}),a.jsx("select",{value:l,onChange:w=>o(w.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:e.map(w=>a.jsx("option",{value:w.id,children:w.name},w.id))})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Title"}),a.jsx("input",{value:c,onChange:w=>d(w.target.value),placeholder:"What should this agent do?",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description (optional)"}),a.jsx("textarea",{value:h,onChange:w=>m(w.target.value),rows:2,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none"})]}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx("button",{type:"button",onClick:t,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:p||!c.trim(),className:"px-4 py-1.5 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:p?"Dispatching...":"Dispatch"})]})]})}function Su({title:e,defaultOpen:t=!0,children:s}){const[l,o]=r.useState(t);return a.jsxs("div",{className:"mb-6",children:[a.jsxs("button",{type:"button",onClick:()=>o(c=>!c),className:"flex items-center gap-1.5 text-sm font-medium text-neutral-400 uppercase tracking-wider mb-2 hover:text-white transition-colors",children:[l?a.jsx(xa,{size:14,weight:"bold"}):a.jsx(hs,{size:14,weight:"bold"}),e]}),a.jsx(la,{initial:!1,children:l&&a.jsx(He.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},style:{overflow:"hidden"},children:s})})]})}function C$(e){return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})}function Z$({events:e}){return a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Timeline"}),a.jsxs("div",{className:"relative pl-6",children:[a.jsx("div",{className:"absolute left-[7px] top-1 bottom-1 w-px bg-white/[0.12]"}),a.jsx("div",{className:"space-y-4",children:e.map(t=>a.jsxs("div",{className:"relative flex items-start gap-3",children:[a.jsx("div",{className:"absolute -left-6 top-0.5 flex items-center justify-center w-[15px] h-[15px] rounded-full ring-2 ring-black",style:{backgroundColor:t.color},children:a.jsx("span",{className:"flex items-center justify-center text-black",children:t.icon})}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:"text-sm font-medium",children:t.label}),a.jsx("p",{className:"text-xs text-neutral-400",children:C$(t.timestamp)})]})]},t.label))})]})]})}function H$(e){try{const t=JSON.parse(e);if(Array.isArray(t)){const s=t.filter(l=>l.type==="tool_use");if(s.length>0)return s.map(l=>({name:l.name,arguments:l.input??l.arguments??{}}))}if(t.tool_calls&&Array.isArray(t.tool_calls))return t.tool_calls.map(s=>{var l,o,c;return{name:((l=s.function)==null?void 0:l.name)??s.name,arguments:typeof((o=s.function)==null?void 0:o.arguments)=="string"?JSON.parse(s.function.arguments):((c=s.function)==null?void 0:c.arguments)??s.arguments??{}}});if(t.type==="tool_use"&&t.name)return[{name:t.name,arguments:t.input??t.arguments??{}}]}catch{}return null}function _$({call:e}){const[t,s]=r.useState(!1);return a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3 my-1",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-mono font-medium bg-blue-500/15 text-blue-400 border border-blue-500/30",children:e.name}),a.jsxs("button",{type:"button",onClick:()=>s(l=>!l),className:"text-xs text-neutral-400 hover:text-white transition-colors flex items-center gap-0.5",children:[t?a.jsx(xa,{size:12}):a.jsx(hs,{size:12}),t?"Hide args":"Show args"]})]}),a.jsx(la,{initial:!1,children:t&&a.jsx(He.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.15},style:{overflow:"hidden"},children:a.jsx("pre",{className:"text-xs text-neutral-300 mt-2 whitespace-pre-wrap break-words bg-white/[0.03] rounded p-2",children:JSON.stringify(e.arguments,null,2)})})})]})}function V$({content:e}){const t=r.useMemo(()=>H$(e),[e]);return t?a.jsx("div",{className:"space-y-1",children:t.map((s,l)=>a.jsx(_$,{call:s},`${s.name}-${l}`))}):a.jsx("pre",{className:"whitespace-pre-wrap break-words",children:typeof e=="string"?e:JSON.stringify(e)})}const w9={critical:"bg-critical/15 text-critical border-critical/30",high:"bg-orange-500/15 text-orange-400 border-orange-500/30",medium:"bg-yellow-500/15 text-yellow-400 border-yellow-500/30",low:"bg-neutral-500/15 text-neutral-400 border-neutral-500/30"};function T$({priority:e}){const t=w9[e.toLowerCase()]??w9.low;return a.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium border ${t}`,children:e})}function L$(){const{id:e}=Il(),{data:t,loading:s}=ye(e?`/api/tasks/${e}`:null),{data:l}=ye(e?`/api/tasks/${e}/messages`:null),{data:o}=ye(e?`/api/tasks/${e}/deliverables`:null),{data:c}=ye(t!=null&&t.agent_id?`/api/agents/${t.agent_id}`:null),d=r.useMemo(()=>{if(!t)return[];const h=[];if(h.push({label:"Created",timestamp:t.created_at,color:"#737373",icon:a.jsx(Q0,{size:9,weight:"bold"})}),t.started_at&&h.push({label:"Started",timestamp:t.started_at,color:"#3b82f6",icon:a.jsx(it,{size:9,weight:"bold"})}),t.completed_at){const m=t.status==="failed"||t.status==="error";h.push({label:m?"Failed":"Completed",timestamp:t.completed_at,color:m?"#ef4444":"#22c55e",icon:m?a.jsx(ms,{size:9,weight:"bold"}):a.jsx(y0,{size:9,weight:"bold"})})}return h},[t]);return s?a.jsx("div",{className:"p-6",children:a.jsx(We,{count:6})}):t?a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsxs(Be,{to:"/tasks",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4",children:[a.jsx(ds,{size:14})," Back to tasks"]}),a.jsx(ze,{title:t.title,action:a.jsxs("div",{className:"flex items-center gap-2",children:[t.priority&&a.jsx(T$,{priority:t.priority}),a.jsx(ft,{status:t.status})]})}),t.description&&a.jsx("p",{className:"text-sm text-neutral-400 mb-4",children:t.description}),d.length>0&&a.jsx(Z$,{events:d}),a.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-6",children:[c&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:"Agent"}),a.jsx(Be,{to:`/agents/${c.id}`,className:"text-sm font-medium mt-0.5 text-blue-400 hover:text-blue-300 transition-colors block",children:c.name})]}),t.model_used&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:"Model"}),a.jsx("p",{className:"text-sm font-medium mt-0.5",children:t.model_used})]}),t.tokens_used!=null&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:"Tokens"}),a.jsx("p",{className:"text-sm font-medium mt-0.5",children:t.tokens_used.toLocaleString()})]}),t.cost_cents!=null&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:"Cost"}),a.jsxs("p",{className:"text-sm font-medium mt-0.5",children:["$",(t.cost_cents/100).toFixed(4)]})]}),t.duration_seconds!=null&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:"Duration"}),a.jsxs("p",{className:"text-sm font-medium mt-0.5",children:[t.duration_seconds,"s"]})]})]}),t.error_message&&a.jsx("div",{className:"bg-critical/10 border border-critical/30 rounded-lg p-4 mb-6",children:a.jsx("p",{className:"text-sm text-critical",children:t.error_message})}),t.output&&a.jsx(Su,{title:"Output",children:a.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:a.jsx("pre",{className:"text-sm whitespace-pre-wrap break-words",children:typeof t.output=="string"?t.output:JSON.stringify(t.output,null,2)})})}),o&&o.length>0&&a.jsx(Su,{title:"Deliverables",children:a.jsx("div",{className:"space-y-3",children:o.map(h=>{const p={email:"bg-blue-500/15 text-blue-400 border-blue-500/30",code:"bg-green-500/15 text-green-400 border-green-500/30",report:"bg-purple-500/15 text-purple-400 border-purple-500/30",creative:"bg-pink-500/15 text-pink-400 border-pink-500/30",plan:"bg-cyan-500/15 text-cyan-400 border-cyan-500/30",data:"bg-amber-500/15 text-amber-400 border-amber-500/30"}[h.deliverable_type]||"bg-white/5 text-neutral-400 border-white/10";let x="";try{const g=JSON.parse(h.content);x=g.text||g.body||g.content||JSON.stringify(g,null,2)}catch{x=h.content}return a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx("span",{className:"text-sm font-medium truncate flex-1",children:h.title}),a.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium border ${p}`,children:h.deliverable_type}),a.jsx(ft,{status:h.status}),h.auto_created===1&&a.jsx("span",{className:"text-[10px] text-neutral-500 bg-white/5 px-1.5 py-0.5 rounded",children:"auto"})]}),a.jsx("pre",{className:"text-sm whitespace-pre-wrap break-words text-neutral-300",children:typeof x=="string"?x.slice(0,2e3):x}),h.rejection_reason&&a.jsx("p",{className:"mt-2 text-sm text-red-400 bg-red-500/10 rounded p-2",children:h.rejection_reason})]},h.id)})})}),l&&l.length>0&&a.jsx(Su,{title:"Conversation",children:a.jsx("div",{className:"space-y-2",children:l.map(h=>a.jsxs("div",{className:`rounded-lg p-3 text-sm ${h.role==="user"?"bg-white/5 border border-white/[0.12]":"border border-white/[0.08]"}`,children:[a.jsx("p",{className:"text-xs text-neutral-400 mb-1 capitalize",children:h.role}),a.jsx(V$,{content:h.content})]},h.id))})})]}):a.jsx("div",{className:"p-6 text-neutral-400",children:"Task not found"})}function k$({text:e}){const s=e.split(`
74
+ `),l=s.length>12,[o,c]=r.useState(!1),d=!l||o?s:s.slice(0,12),h=[];let m=0;for(;m<d.length;){const p=d[m];if(p.startsWith("```")){const N=p.slice(3).trim(),E=[];for(m++;m<d.length&&!d[m].startsWith("```");)E.push(d[m]),m++;h.push(a.jsxs("pre",{className:"bg-white/[0.05] rounded px-3 py-2 text-[11px] text-neutral-300 overflow-x-auto my-1.5 whitespace-pre",children:[N&&a.jsx("span",{className:"text-neutral-500 text-[10px] block mb-1",children:N}),E.join(`
75
+ `)]},m)),m++;continue}const x=p.match(/^### (.+)/),g=p.match(/^## (.+)/),b=p.match(/^# (.+)/);if(x){h.push(a.jsx("p",{className:"text-xs font-semibold text-white mt-2 mb-0.5",children:x[1]},m)),m++;continue}if(g){h.push(a.jsx("p",{className:"text-xs font-semibold text-white mt-2 mb-0.5",children:g[1]},m)),m++;continue}if(b){h.push(a.jsx("p",{className:"text-sm font-semibold text-white mt-2 mb-1",children:b[1]},m)),m++;continue}const w=p.match(/^[-*+] (.+)/);if(w){h.push(a.jsxs("div",{className:"flex gap-1.5 text-xs text-neutral-300",children:[a.jsx("span",{className:"text-neutral-500 mt-px",children:"•"}),a.jsx("span",{children:Cu(w[1])})]},m)),m++;continue}const j=p.match(/^(\d+)\.\s*(.*)$/);if(j){let N=j[2];if(!N.trim()){let E=m+1;for(;E<d.length&&d[E].trim()==="";)E++;E<d.length&&!/^(\d+\.|[-*+] |#{1,3} |```)/.test(d[E])&&(N=d[E],m=E)}h.push(a.jsxs("div",{className:"flex gap-1.5 text-xs text-neutral-300",children:[a.jsxs("span",{className:"text-neutral-500 shrink-0",children:[j[1],"."]}),a.jsx("span",{children:Cu(N)})]},m)),m++;continue}if(p.trim()===""){h.push(a.jsx("div",{className:"h-1"},m)),m++;continue}h.push(a.jsx("p",{className:"text-xs text-neutral-300 leading-relaxed",children:Cu(p)},m)),m++}return a.jsxs("div",{className:"mt-2 space-y-0.5",children:[h,l&&a.jsx("button",{onClick:()=>c(p=>!p),className:"text-[11px] text-neutral-400 hover:text-white transition-colors mt-1",children:o?"Show less":`Show ${s.length-12} more lines`})]})}function Cu(e){return e.split(/(\*\*[^*]+\*\*|`[^`]+`)/g).map((s,l)=>s.startsWith("**")&&s.endsWith("**")?a.jsx("strong",{className:"text-white font-medium",children:s.slice(2,-2)},l):s.startsWith("`")&&s.endsWith("`")?a.jsx("code",{className:"bg-white/10 px-1 rounded text-[10px] text-neutral-200",children:s.slice(1,-1)},l):s)}function R$(e){if(!e)return null;if(typeof e=="string")try{return JSON.parse(e)}catch{return null}return e}function PC(){const e=va(["task:completed"]),{data:t,loading:s,refetch:l}=ye("/api/approvals",[e]),[o,c]=r.useState(null),[d,h]=r.useState(!1),[m,p]=r.useState(null),[x,g]=r.useState(""),b=r.useCallback(async E=>{c(E);try{await me(`/api/approvals/${E}/approve`,{method:"POST"}),l()}catch{}finally{c(null)}},[l]),w=r.useCallback(async()=>{if(m){c(m.id);try{await me(`/api/approvals/${m.id}/reject`,{method:"POST",body:JSON.stringify({reason:x.trim()||void 0})}),p(null),g(""),l()}catch{}finally{c(null)}}},[m,x,l]),j=r.useCallback(async()=>{if(t!=null&&t.length){h(!0);try{for(const E of t)await me(`/api/approvals/${E.id}/approve`,{method:"POST"});l()}catch{}finally{h(!1)}}},[t,l]),N=r.useCallback(async()=>{if(t!=null&&t.length){h(!0);try{for(const E of t)await me(`/api/approvals/${E.id}/reject`,{method:"POST"});l()}catch{}finally{h(!1)}}},[t,l]);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Approvals",subtitle:"Tasks waiting for your review",action:t!=null&&t.length?a.jsxs("div",{className:"flex gap-2",children:[a.jsxs("button",{onClick:N,disabled:d,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:[a.jsx(ms,{size:14})," Reject all"]}),a.jsxs("button",{onClick:j,disabled:d,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-success bg-success/10 border border-success/30 rounded-lg hover:bg-success/20 disabled:opacity-50 transition-colors",children:[a.jsx(y0,{size:14})," Approve all"]})]}):void 0}),s?a.jsx(We,{count:3}):t!=null&&t.length?a.jsx("div",{className:"space-y-3",children:t.map(E=>{const A=R$(E.deferred_action);return a.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:a.jsxs("div",{className:"flex items-start justify-between gap-4",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("p",{className:"text-sm font-medium",children:E.title}),A&&a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs bg-warning/15 text-warning",children:[A.provider==="gmail"?a.jsx(cI,{size:12}):a.jsx(ka,{size:12}),A.type,A.params.to?` → ${A.params.to}`:""]})]}),a.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:new Date(E.created_at).toLocaleString()}),E.output&&a.jsx(k$,{text:typeof E.output=="string"?E.output.slice(0,1200):JSON.stringify(E.output).slice(0,1200)})]}),a.jsxs("div",{className:"flex gap-2 shrink-0",children:[a.jsx("button",{onClick:()=>{p(E),g("")},disabled:o===E.id||d,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"}),a.jsx("button",{onClick:()=>b(E.id),disabled:o===E.id||d,className:"px-4 py-1.5 text-xs font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors disabled:opacity-50",children:"Approve"})]})]})},E.id)})}):a.jsx(bt,{icon:a.jsx(NI,{size:32}),title:"All clear",description:"No tasks waiting for approval right now."}),m&&a.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50 p-4",children:a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 w-full max-w-md",children:[a.jsx("h3",{className:"text-sm font-semibold mb-1",children:"Reject task"}),a.jsxs("p",{className:"text-xs text-neutral-400 mb-4",children:["“",m.title,"”"]}),a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Reason (optional)"}),a.jsx("textarea",{value:x,onChange:E=>g(E.target.value),placeholder:"Why is this being rejected?",rows:3,autoFocus:!0,className:"w-full bg-white/5 border border-white/10 rounded-lg px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-critical/50 resize-none mb-4"}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx("button",{onClick:()=>p(null),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{onClick:w,disabled:o===m.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:o===m.id?"Rejecting...":"Reject"})]})]})})]})}const D$={task_completed:"text-success",task_failed:"text-critical",task_started:"text-white",task_needs_approval:"text-warning",trigger_fired:"text-warning",schedule_fired:"text-warning",agent_created:"text-white",orchestrator_tool:"text-neutral-300",orchestrator_tool_failed:"text-critical",permission_requested:"text-warning",permission_approved:"text-success",permission_denied:"text-critical",memory_extracted:"text-warning"},A9=50;function F$(e){if(e==="all")return null;const t=new Date;return e==="today"?(t.setHours(0,0,0,0),t):e==="7d"?(t.setDate(t.getDate()-7),t):(t.setDate(t.getDate()-30),t)}function UC(e){return e?/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"):new Date(NaN)}function O$(e){const t=Date.now()-UC(e).getTime();if(t<0)return"just now";const s=Math.floor(t/1e3);if(s<30)return"just now";if(s<60)return`${s}s ago`;const l=Math.floor(s/60);if(l<60)return`${l}m ago`;const o=Math.floor(l/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function GC(){const e=va(["task:started","task:completed","task:failed","memory:extracted"]),[t,s]=r.useState("all"),[l,o]=r.useState("all"),[c,d]=r.useState(""),[h,m]=r.useState(null),[p,x]=r.useState(0),[g,b]=r.useState([]),[w,j]=r.useState(!0),[N,E]=r.useState(!1),A=r.useCallback(S=>{const L=[`limit=${A9}`,`offset=${S}`];return t!=="all"&&L.push(`activityType=${t}`),`/api/activity?${L.join("&")}`},[t]);r.useEffect(()=>{let S=!1;return j(!0),me(A(0)).then(L=>{S||(m(L.data),x(L.total),b(L.types))}).catch(()=>{S||(m([]),x(0))}).finally(()=>{S||j(!1)}),()=>{S=!0}},[A,e]);const C=async()=>{if(!(!h||N||h.length>=p)){E(!0);try{const S=await me(A(h.length));m([...h,...S.data]),x(S.total)}finally{E(!1)}}},M=r.useMemo(()=>{if(!h)return[];let S=h;const L=F$(l);if(L&&(S=S.filter(V=>UC(V.created_at)>=L)),c.trim()){const V=c.toLowerCase();S=S.filter(_=>_.title.toLowerCase().includes(V)||(_.description||"").toLowerCase().includes(V))}return S},[h,l,c]);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Activity",subtitle:p>0?`${(h==null?void 0:h.length)??0} of ${p}${t==="all"?"":` ${t.replace(/_/g," ")}`} shown`:"Recent events"}),a.jsxs("div",{className:"flex gap-1 mb-3 overflow-x-auto",children:[a.jsx("button",{onClick:()=>s("all"),className:`px-3 py-1 rounded text-xs whitespace-nowrap transition-colors ${t==="all"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"All"}),g.map(({type:S,count:L})=>a.jsxs("button",{onClick:()=>s(S),className:`px-3 py-1 rounded text-xs whitespace-nowrap transition-colors ${t===S?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:[S.replace(/_/g," ")," ",a.jsx("span",{className:"text-neutral-500",children:L})]},S))]}),a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsx("div",{className:"flex gap-1",children:["all","today","7d","30d"].map(S=>a.jsx("button",{onClick:()=>o(S),className:`px-2.5 py-1 rounded text-xs transition-colors ${l===S?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:S==="all"?"All time":S==="today"?"Today":S==="7d"?"7 days":"30 days"},S))}),a.jsxs("div",{className:"relative flex-1",children:[a.jsx(ga,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:c,onChange:S=>d(S.target.value),placeholder:"Search activity...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),w?a.jsx(We,{count:8}):M.length?a.jsxs("div",{className:"space-y-1",children:[M.map((S,L)=>a.jsxs(He.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:L*.02},className:"flex items-start gap-3 px-4 py-3 rounded-lg border border-white/[0.06] bg-white/[0.02] hover:bg-white/[0.04] transition-colors",children:[a.jsx("span",{className:`text-xs font-mono mt-0.5 shrink-0 ${D$[S.activity_type]||"text-neutral-400"}`,children:S.activity_type.replace(/_/g," ")}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"text-sm",children:S.title}),S.description&&a.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:S.description})]}),a.jsx("span",{className:"text-xs text-neutral-500 shrink-0",children:O$(S.created_at)})]},S.id)),!w&&h&&h.length<p&&!c&&l==="all"&&a.jsx("div",{className:"flex justify-center pt-3",children:a.jsx("button",{onClick:C,disabled:N,className:"px-4 py-2 text-xs text-neutral-300 border border-white/10 rounded-md hover:bg-white/5 transition-colors disabled:opacity-50",children:N?"Loading...":`Load ${Math.min(A9,p-h.length)} more`})})]}):a.jsx(bt,{icon:a.jsx(IM,{size:32}),title:"Quiet so far",description:c||t!=="all"||l!=="all"?"No activity matching your filters.":"Activity will show up here as agents complete tasks."})]})}function w0({open:e,onClose:t,onConfirm:s,title:l="Confirm",message:o,confirmLabel:c="Confirm",confirmColor:d="critical",loading:h=!1}){const m=d==="critical"?"bg-critical/10 border-critical/30 text-critical hover:bg-critical/20":"bg-white text-black border-white hover:bg-neutral-200";return a.jsxs(ba,{open:e,onClose:t,title:l,children:[a.jsx("p",{className:"text-sm text-neutral-400 mb-6",children:o}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx("button",{onClick:t,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{onClick:s,disabled:h,className:`px-3 py-1.5 border rounded text-xs font-medium transition-colors disabled:opacity-50 ${m}`,children:h?"Working...":c})]})]})}const j9=[{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 YC({value:e,onChange:t}){const[s,l]=r.useState(j9.some(o=>o.cron===e)?"preset":"custom");return a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"flex gap-1",children:[a.jsx("button",{type:"button",onClick:()=>l("preset"),className:`px-2 py-1 rounded text-xs transition-colors ${s==="preset"?"bg-white/5 text-white":"text-neutral-400 hover:text-white"}`,children:"Presets"}),a.jsx("button",{type:"button",onClick:()=>l("custom"),className:`px-2 py-1 rounded text-xs transition-colors ${s==="custom"?"bg-white/5 text-white":"text-neutral-400 hover:text-white"}`,children:"Custom"})]}),s==="preset"?a.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:j9.map(o=>a.jsxs("button",{type:"button",onClick:()=>t(o.cron),className:`text-left px-3 py-2 rounded text-xs transition-colors border ${e===o.cron?"border-white/20 bg-white/10 text-white":"border-white/[0.08] hover:border-white/20 text-neutral-400 hover:text-white"}`,children:[a.jsx("span",{className:"block",children:o.label}),a.jsx("span",{className:"block font-mono text-[10px] text-neutral-400 mt-0.5",children:o.cron})]},o.cron))}):a.jsxs("div",{children:[a.jsx("input",{type:"text",value:e,onChange:o=>t(o.target.value),placeholder:"* * * * *",className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm text-white font-mono placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20"}),a.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:"Format: minute hour day month weekday"})]})]})}function z$(e){const t=Date.now()-new Date(e).getTime(),s=Math.floor(t/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const l=Math.floor(s/60);return l<24?`${l}h ago`:`${Math.floor(l/24)}d ago`}function q$(e){const t=new Date(e).getTime()-Date.now();if(t<0)return"overdue";const s=Math.floor(t/6e4);if(s<1)return"now";if(s<60)return`in ${s}m`;const l=Math.floor(s/60);return l<24?`in ${l}h`:`in ${Math.floor(l/24)}d`}const N9=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],I$=6,$$=22;function B$(e){const t=e.trim().split(/\s+/);if(t.length<5)return{hours:[],dows:[]};const s=t[1],l=t[4],o=(m,p,x)=>{if(m==="*"){const b=[];for(let w=p;w<=x;w++)b.push(w);return b}const g=[];for(const b of m.split(","))if(b.includes("/")){const[w,j]=b.split("/"),N=parseInt(j,10),E=w==="*"?p:parseInt(w,10);for(let A=E;A<=x;A+=N)g.push(A)}else if(b.includes("-")){const[w,j]=b.split("-").map(Number);for(let N=w;N<=j;N++)g.push(N)}else{const w=parseInt(b,10);isNaN(w)||g.push(w)}return g},c=o(s,0,23),h=o(l,0,6).map(m=>m===0?6:m-1);return{hours:c,dows:h}}function P$(){const e=new Date,t=e.getDay(),s=t===0?-6:1-t,l=new Date(e);l.setDate(e.getDate()+s),l.setHours(0,0,0,0);const o=[];for(let c=0;c<7;c++){const d=new Date(l);d.setDate(l.getDate()+c),o.push(d)}return o}function U$({schedules:e}){const t=r.useMemo(()=>P$(),[]),s=r.useMemo(()=>e.filter(m=>m.enabled),[e]),l=r.useMemo(()=>s.map(m=>({label:m.label,...B$(m.cron_expression||m.cron)})),[s]),o=[];for(let m=I$;m<=$$;m++)o.push(m);const c=(m,p)=>l.filter(x=>x.dows.includes(m)&&x.hours.includes(p)),d=new Date,h=d.getDay()===0?6:d.getDay()-1;return a.jsxs(He.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2},className:"border border-white/[0.08] rounded-lg overflow-hidden",children:[a.jsxs("div",{className:"grid grid-cols-[64px_repeat(7,1fr)]",children:[a.jsx("div",{className:"bg-white/[0.02] border-b border-r border-white/[0.08] p-2"}),N9.map((m,p)=>a.jsxs("div",{className:`bg-white/[0.02] border-b border-white/[0.08] p-2 text-center text-xs font-medium ${p===h?"text-white":"text-neutral-500"} ${p<6?"border-r border-white/[0.08]":""}`,children:[a.jsx("div",{children:m}),a.jsx("div",{className:`text-[10px] mt-0.5 ${p===h?"text-neutral-300":"text-neutral-600"}`,children:t[p].getDate()})]},m))]}),a.jsx("div",{className:"max-h-[480px] overflow-y-auto",children:o.map(m=>a.jsxs("div",{className:"grid grid-cols-[64px_repeat(7,1fr)]",children:[a.jsx("div",{className:"border-b border-r border-white/[0.08] p-2 text-[10px] text-neutral-500 text-right pr-3 flex items-start justify-end",children:m===0?"12am":m<12?`${m}am`:m===12?"12pm":`${m-12}pm`}),N9.map((p,x)=>{const g=c(x,m);return a.jsx("div",{className:`border-b border-white/[0.08] min-h-[36px] p-1 ${x<6?"border-r border-white/[0.08]":""} ${g.length>0?"bg-success/15":""}`,children:g.map((b,w)=>a.jsx("div",{className:"text-[10px] text-success leading-tight truncate px-1 py-0.5 rounded",children:b.label},w))},p)})]},m))})]})}function KC(){const{data:e,loading:t,refetch:s}=ye("/api/schedules"),[l,o]=r.useState(null),[c,d]=r.useState(!1),[h,m]=r.useState(null),[p,x]=r.useState(null),[g,b]=r.useState(!1),[w,j]=r.useState("list"),N=async A=>{o(A);try{await me(`/api/schedules/${A}/toggle`,{method:"POST"}),s()}catch{ue("error","Couldn't toggle schedule. Try again?")}finally{o(null)}},E=async()=>{if(p){b(!0);try{await me(`/api/schedules/${p.id}`,{method:"DELETE"}),ue("success","Schedule deleted"),s()}catch{ue("error","Couldn't delete schedule. Try again?")}finally{b(!1),x(null)}}};return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Schedules",subtitle:"Automated task schedules",action:a.jsxs("button",{onClick:()=>d(!0),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Zt,{size:14})," New schedule"]})}),t?a.jsx(We,{count:3}):e!=null&&e.length?a.jsxs(a.Fragment,{children:[a.jsx(Kl,{tabs:[{id:"list",label:"List",count:e.length},{id:"calendar",label:"Calendar"}],activeTab:w,onTabChange:j,layoutId:"schedules-tab"}),a.jsx("div",{className:"mt-4",children:w==="list"?a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(A=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-4",children:[a.jsxs("div",{className:"min-w-0 mr-4 flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:`w-2 h-2 rounded-full shrink-0 ${A.enabled?"bg-success":"bg-white/10"}`}),a.jsx("p",{className:"text-sm font-medium truncate",children:A.label})]}),a.jsxs("div",{className:"flex gap-3 mt-1 ml-4",children:[a.jsx("span",{className:"text-xs text-neutral-400 font-mono",children:A.cron_expression||A.cron}),A.next_run_at&&a.jsxs("span",{className:"text-xs text-neutral-400",children:["Next: ",q$(A.next_run_at)]}),A.last_run_at&&a.jsxs("span",{className:"text-xs text-neutral-400",children:["Last: ",z$(A.last_run_at)]})]}),A.task_prompt&&a.jsx("p",{className:"text-xs text-neutral-400 mt-1 ml-4 truncate max-w-md",children:A.task_prompt})]}),a.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[a.jsx("button",{onClick:()=>m(A),className:"text-neutral-400 hover:text-white transition-colors",title:"Edit",children:a.jsx(so,{size:14})}),a.jsx("button",{onClick:()=>x(A),className:"text-neutral-400 hover:text-critical transition-colors",title:"Delete",children:a.jsx(Kt,{size:14})}),a.jsx(zl,{checked:!!A.enabled,onChange:()=>N(A.id),disabled:l===A.id})]})]},A.id))}):a.jsx(U$,{schedules:e})})]}):a.jsx(bt,{icon:a.jsx(Qq,{size:32}),title:"Nothing scheduled yet",description:"Set up recurring tasks to keep your agents busy.",action:a.jsxs("button",{onClick:()=>d(!0),className:"mt-3 flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Zt,{size:14})," Create your first schedule"]})}),c&&a.jsx(E9,{onClose:()=>d(!1),onSuccess:()=>{s(),d(!1)}}),h&&a.jsx(E9,{schedule:h,onClose:()=>m(null),onSuccess:()=>{s(),m(null)}}),a.jsx(w0,{open:!!p,onClose:()=>x(null),onConfirm:E,title:"Delete schedule",message:`Delete "${p==null?void 0:p.label}"? This can't be undone.`,confirmLabel:"Delete",loading:g})]})}function E9({schedule:e,onClose:t,onSuccess:s}){const l=!!e,{data:o}=ye("/api/agents"),[c,d]=r.useState((e==null?void 0:e.label)||""),[h,m]=r.useState((e==null?void 0:e.cron_expression)||(e==null?void 0:e.cron)||"0 9 * * *"),[p,x]=r.useState((e==null?void 0:e.agent_id)||""),[g,b]=r.useState((e==null?void 0:e.task_prompt)||""),[w,j]=r.useState(!1),N=async E=>{if(E.preventDefault(),!(!c.trim()||!h.trim())){j(!0);try{l?(await me(`/api/schedules/${e.id}`,{method:"PUT",body:JSON.stringify({label:c.trim(),cron:h.trim(),agent_id:p||null,task_prompt:g})}),ue("success","Schedule updated")):(await me("/api/schedules",{method:"POST",body:JSON.stringify({label:c.trim(),cron:h.trim(),agent_id:p||null,task_prompt:g})}),ue("success","Schedule created")),s()}catch{ue("error",`Couldn't ${l?"update":"create"} schedule. Try again?`)}finally{j(!1)}}};return a.jsx(ba,{open:!0,onClose:t,title:l?"Edit schedule":"New schedule",maxWidth:"max-w-lg",children:a.jsxs("form",{onSubmit:N,className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Title"}),a.jsx("input",{value:c,onChange:E=>d(E.target.value),placeholder:"Daily briefing",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20",autoFocus:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent"}),a.jsxs("select",{value:p,onChange:E=>x(E.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"",children:"Orchestrator (default)"}),o==null?void 0:o.map(E=>a.jsx("option",{value:E.id,children:E.name},E.id))]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Schedule"}),a.jsx(YC,{value:h,onChange:m})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Task prompt"}),a.jsx("textarea",{value:g,onChange:E=>b(E.target.value),placeholder:"What should the agent do?",rows:3,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none"})]}),a.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[a.jsx("button",{type:"button",onClick:t,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:w||!c.trim()||!h.trim(),className:"px-3 py-1.5 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:w?"Saving...":l?"Save changes":"Create schedule"})]})]})})}const XC={SAMPLE_RATE:16e3,BIT_DEPTH:16,CHANNELS:1};function G$(e){const{SAMPLE_RATE:t,BIT_DEPTH:s,CHANNELS:l}=XC,o=t*l*(s/8),c=l*(s/8),d=e.byteLength,h=new ArrayBuffer(44+d),m=new DataView(h);return C1(m,0,"RIFF"),m.setUint32(4,36+d,!0),C1(m,8,"WAVE"),C1(m,12,"fmt "),m.setUint32(16,16,!0),m.setUint16(20,1,!0),m.setUint16(22,l,!0),m.setUint32(24,t,!0),m.setUint32(28,o,!0),m.setUint16(32,c,!0),m.setUint16(34,s,!0),C1(m,36,"data"),m.setUint32(40,d,!0),new Int16Array(h,44).set(e),h}function Y$(e){const t=new Int16Array(e.length);for(let s=0;s<e.length;s++){const l=Math.max(-1,Math.min(1,e[s]));t[s]=l<0?l*32768:l*32767}return t}function K$(e,t,s){if(t===s)return e;const l=t/s,o=Math.round(e.length/l),c=new Float32Array(o);for(let d=0;d<o;d++){const h=Math.round(d*l);c[d]=e[Math.min(h,e.length-1)]}return c}async function X$(e,t){const s=t||new AudioContext,l=await s.decodeAudioData(e.slice(0)),o=s.createBufferSource();return o.buffer=l,o.connect(s.destination),new Promise(c=>{o.onended=()=>c(),o.start(0)})}function Q$(e){const t=new AudioContext;let s=[],l=!1;async function o(){if(s.length===0){l=!1;return}l=!0;const c=s.shift();await X$(c,t),await o()}return{enqueue(c){s.push(c),l||o()},clear(){s=[],l=!1},close(){s=[],l=!1,t.close()},get isPlaying(){return l}}}function C1(e,t,s){for(let l=0;l<s.length;l++)e.setUint8(t+l,s.charCodeAt(l))}class J${constructor(t,s={}){Ha(this,"threshold");Ha(this,"minSpeechMs");Ha(this,"silenceMs");Ha(this,"onSpeechStart");Ha(this,"onSpeechEnd");Ha(this,"isSpeaking",!1);Ha(this,"speechStartTime",0);Ha(this,"lastSpeechTime",0);Ha(this,"audioChunks",[]);Ha(this,"sampleRate");Ha(this,"checkInterval",null);this.sampleRate=t,this.threshold=s.threshold??.01,this.minSpeechMs=s.minSpeechMs??300,this.silenceMs=s.silenceMs??800,this.onSpeechStart=s.onSpeechStart,this.onSpeechEnd=s.onSpeechEnd}processFrame(t){var o;const s=W$(t),l=Date.now();s>this.threshold&&(this.isSpeaking||(this.isSpeaking=!0,this.speechStartTime=l,this.audioChunks=[],(o=this.onSpeechStart)==null||o.call(this)),this.lastSpeechTime=l),this.isSpeaking&&(this.audioChunks.push(new Float32Array(t)),s<=this.threshold&&l-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 m;const t=Date.now()-this.speechStartTime;if(this.isSpeaking=!1,t<this.minSpeechMs||this.audioChunks.length===0){this.audioChunks=[];return}const s=this.audioChunks.reduce((p,x)=>p+x.length,0),l=new Float32Array(s);let o=0;for(const p of this.audioChunks)l.set(p,o),o+=p.length;this.audioChunks=[];const c=K$(l,this.sampleRate,XC.SAMPLE_RATE),d=Y$(c),h=G$(d);(m=this.onSpeechEnd)==null||m.call(this,h)}}function W$(e){let t=0;for(let s=0;s<e.length;s++)t+=e[s]*e[s];return Math.sqrt(t/e.length)}function eB(){return typeof window>"u"?null:window.SpeechRecognition||window.webkitSpeechRecognition||null}function M9(e="en-US"){const t=eB();if(!t)return{isSupported:!1,start(){},stop(){},onResult(){},onError(){}};const s=new t;s.continuous=!0,s.interimResults=!0,s.lang=e;let l=null,o=null;return s.onresult=c=>{if(!l)return;const d=c.results[c.results.length-1];d&&l(d[0].transcript,d.isFinal)},s.onerror=c=>{c.error!=="no-speech"&&c.error!=="aborted"&&(o==null||o(c.error))},s.onend=()=>{try{s.start()}catch{}},{isSupported:!0,start(){try{s.start()}catch{}},stop(){s.onend=null;try{s.stop()}catch{}},onResult(c){l=c},onError(c){o=c}}}function tB(){if(typeof window>"u"||!window.speechSynthesis)return{isSupported:!1,speak(){},stop(){},isSpeaking:()=>!1,onStart(){},onEnd(){}};const e=window.speechSynthesis;let t=null,s=null;return{isSupported:!0,speak(l){const o=new SpeechSynthesisUtterance(l);o.onstart=()=>t==null?void 0:t(),o.onend=()=>s==null?void 0:s(),o.onerror=()=>s==null?void 0:s(),e.speak(o)},stop(){e.cancel()},isSpeaking:()=>e.speaking,onStart(l){t=l},onEnd(l){s=l}}}function aB(){const e=cn(),t=window.location.protocol==="https:"?"wss:":"ws:",s=window.location.host;return`${t}//${s}/ws/voice?token=${e}`}function nB(){return""}async function rB(){try{const e=cn(),t=await fetch(`${nB()}/api/voice/providers`,{headers:{Authorization:`Bearer ${e}`},signal:AbortSignal.timeout(3e3)});if(t.ok){const{data:s}=await t.json();if((s==null?void 0:s.recommendedMode)==="full")return"full"}}catch{}return"browser-native"}function QC(e){const[t,s]=r.useState("idle"),[l,o]=r.useState(""),[c,d]=r.useState(""),[h,m]=r.useState(null),[p,x]=r.useState(!1),[g,b]=r.useState(null),w=r.useRef(null),j=r.useRef(null),N=r.useRef(null),E=r.useRef(null),A=r.useRef(null),C=r.useRef(null),M=r.useRef(null),S=r.useRef(null),L=r.useCallback(()=>{var F,P,U,W,se,O,$;(F=N.current)==null||F.stop(),N.current=null,(P=E.current)==null||P.disconnect(),E.current=null,(U=j.current)==null||U.getTracks().forEach(B=>B.stop()),j.current=null,(W=A.current)==null||W.close(),A.current=null,(se=C.current)==null||se.close(),C.current=null,(O=M.current)==null||O.stop(),M.current=null,($=S.current)==null||$.stop(),S.current=null,w.current&&w.current.readyState!==WebSocket.CLOSED&&(w.current.send(JSON.stringify({type:"stop"})),w.current.close()),w.current=null,s("idle"),b(null),m(null)},[]);r.useEffect(()=>L,[L]);const V=r.useCallback(async()=>{m(null),o(""),d("");const F=await rB();if(F==="browser-native"&&!M9().isSupported){m("Voice requires Chrome, Edge, or Safari. Firefox is not supported yet.");return}b(F);const P=new WebSocket(aB());w.current=P,P.binaryType="arraybuffer",F==="browser-native"?await _(P,e):await H(P,e)},[e,L]),_=r.useCallback(async(F,P)=>{const U=M9(),W=tB();M.current=U,S.current=W,W.onStart(()=>s("speaking")),W.onEnd(()=>s("listening")),F.onopen=()=>{F.send(JSON.stringify({type:"start",agentId:P,mode:"browser-native"})),U.onResult((se,O)=>{o(se),O&&se.trim()&&F.readyState===WebSocket.OPEN&&(F.send(JSON.stringify({type:"transcript",text:se})),s("processing"))}),U.onError(se=>{m(`Speech recognition error: ${se}`)}),U.start(),s("listening")},F.onmessage=se=>{if(!(se.data instanceof ArrayBuffer))try{const O=JSON.parse(se.data);switch(O.type){case"response":d(O.text),W.speak(O.text);break;case"transcription":o(O.text);break;case"error":m(O.message);break;case"state":O.state==="processing"&&s("processing");break}}catch{}},F.onerror=()=>{m("Couldn't connect to voice server. Is the runtime running?"),L()},F.onclose=()=>{L()}},[L]),H=r.useCallback(async(F,P)=>{let U;try{U=await navigator.mediaDevices.getUserMedia({audio:{sampleRate:{ideal:16e3},channelCount:1,echoCancellation:!0,noiseSuppression:!0}})}catch{m("Couldn't access microphone. Check your browser permissions.");return}j.current=U;const W=new AudioContext;A.current=W;const se=W.createMediaStreamSource(U),O=Q$();C.current=O,F.onopen=()=>{F.send(JSON.stringify({type:"start",agentId:P}))},F.onmessage=J=>{if(J.data instanceof ArrayBuffer){O.enqueue(J.data);return}try{const k=JSON.parse(J.data);switch(k.type){case"state":s(k.state);break;case"transcription":o(k.text);break;case"response":d(k.text);break;case"error":m(k.message);break}}catch{}},F.onerror=()=>{m("Couldn't connect to voice server. Is the runtime running?"),L()},F.onclose=()=>{L()};const B=W.createScriptProcessor(4096,1,1);E.current=B;const Q=new J$(W.sampleRate,{threshold:.01,minSpeechMs:300,silenceMs:800,onSpeechStart:()=>{s("listening")},onSpeechEnd:J=>{F.readyState===WebSocket.OPEN&&F.send(J)}});N.current=Q,Q.start(),B.onaudioprocess=J=>{if(p)return;const k=J.inputBuffer.getChannelData(0);Q.processFrame(k)},se.connect(B),B.connect(W.destination)},[p,L]),T=r.useCallback(()=>{L()},[L]),D=r.useCallback(()=>{x(F=>{var U,W,se;const P=!F;return(U=j.current)==null||U.getAudioTracks().forEach(O=>{O.enabled=!P}),P?(W=M.current)==null||W.stop():(se=M.current)==null||se.start(),P})},[]);return{state:t,transcript:l,response:c,error:h,startCall:V,endCall:T,toggleMute:D,isMuted:p,mode:g}}const P1=24,Zu=3,Hu=2,Gr=2,P0=32;function sB({state:e,className:t=""}){const s=r.useRef(null),l=r.useRef(0);return r.useEffect(()=>{const o=s.current;if(!o)return;const c=o.getContext("2d");if(!c)return;const d=P1*(Zu+Hu)-Hu;o.width=d*2,o.height=P0*2,o.style.width=`${d}px`,o.style.height=`${P0}px`,c.scale(2,2);const h=new Float32Array(P1).fill(0);function m(){if(c){c.clearRect(0,0,d,P0);for(let p=0;p<P1;p++){const x=lB(e,p,Date.now());h[p]+=(x-h[p])*.15;const g=Math.max(Gr,h[p]),b=p*(Zu+Hu),w=(P0-g)/2;c.fillStyle=iB(e),c.beginPath(),c.roundRect(b,w,Zu,g,1.5),c.fill()}l.current=requestAnimationFrame(m)}}return m(),()=>cancelAnimationFrame(l.current)},[e]),a.jsx("canvas",{ref:s,className:t})}function lB(e,t,s){switch(e){case"listening":{const l=Math.sin(s/200+t*.5)*.5+.5;return Gr+l*(P0*.6-Gr)}case"processing":{const l=P1/2,o=Math.abs(t-l)/l,c=Math.sin(s/300)*.5+.5;return Gr+(1-o)*c*P0*.4}case"speaking":{const l=Math.sin(s/150+t*.4)*.5+.5,o=Math.sin(s/250+t*.7)*.3+.3;return Gr+(l+o)*(P0*.45)}default:return Gr}}function iB(e){switch(e){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 oB({isMuted:e,onToggleMute:t,onEndCall:s}){return a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("button",{onClick:t,className:`p-3 rounded-full transition-all duration-150 active:scale-95 ${e?"bg-red-500/20 text-red-400 hover:bg-red-500/30":"bg-white/[0.08] text-neutral-300 hover:bg-white/[0.12] hover:text-white"}`,title:e?"Unmute":"Mute",children:e?a.jsx(Fl,{size:20,weight:"fill"}):a.jsx(Vn,{size:20,weight:"fill"})}),a.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:a.jsx(jI,{size:20,weight:"fill"})})]})}const cB={idle:"Ready",listening:"Listening...",processing:"Thinking...",speaking:"Speaking..."};function uB({state:e,transcript:t,response:s,error:l,isMuted:o,onToggleMute:c,onEndCall:d}){return r.useEffect(()=>{const h=m=>{m.key==="Escape"&&d()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[d]),a.jsxs("div",{className:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-black/90 backdrop-blur-sm",children:[a.jsx("div",{className:"absolute inset-0",onClick:d}),a.jsxs("div",{className:"relative z-10 flex flex-col items-center gap-8 max-w-md w-full px-6",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:`w-2 h-2 rounded-full ${e==="listening"?"bg-white animate-pulse":e==="processing"?"bg-purple-500 animate-pulse":e==="speaking"?"bg-green-500 animate-pulse":"bg-gray-600"}`}),a.jsx("span",{className:"text-sm text-neutral-400 font-mono",children:cB[e]})]}),a.jsx(sB,{state:e}),t&&a.jsxs("div",{className:"w-full text-center",children:[a.jsx("p",{className:"text-xs text-neutral-500 mb-1 font-mono",children:"You said:"}),a.jsx("p",{className:"text-sm text-neutral-300",children:t})]}),s&&a.jsxs("div",{className:"w-full text-center",children:[a.jsx("p",{className:"text-xs text-neutral-500 mb-1 font-mono",children:"Response:"}),a.jsx("p",{className:"text-sm text-white",children:s})]}),l&&a.jsx("div",{className:"w-full text-center",children:a.jsx("p",{className:"text-sm text-red-400",children:l})}),a.jsx(oB,{isMuted:o,onToggleMute:c,onEndCall:d}),a.jsx("p",{className:"text-xs text-neutral-600",children:"Press Esc to end call"})]})]})}function dB({toolCall:e}){const[t,s]=r.useState(!1);return a.jsxs("div",{className:"bg-white/[0.04] border border-white/[0.08] rounded-lg overflow-hidden",children:[a.jsxs("button",{onClick:()=>s(!t),className:"flex items-center gap-2 px-3 py-1.5 text-xs text-neutral-300 hover:text-white transition-colors w-full text-left",children:[a.jsx(qI,{size:14,className:"text-neutral-400 shrink-0"}),a.jsx("span",{className:"font-medium truncate",children:e.name}),t?a.jsx(xa,{size:12,className:"ml-auto shrink-0"}):a.jsx(hs,{size:12,className:"ml-auto shrink-0"})]}),t&&a.jsxs("div",{className:"border-t border-white/[0.06] px-3 py-2 space-y-2 text-xs",children:[e.input&&Object.keys(e.input).length>0&&a.jsxs("div",{children:[a.jsx("span",{className:"text-neutral-500 block mb-1",children:"Input"}),a.jsx("pre",{className:"text-neutral-300 whitespace-pre-wrap break-words font-mono text-[11px] bg-white/[0.03] rounded px-2 py-1.5",children:JSON.stringify(e.input,null,2)})]}),e.output&&a.jsxs("div",{children:[a.jsx("span",{className:"text-neutral-500 block mb-1",children:"Output"}),a.jsx("pre",{className:"text-neutral-300 whitespace-pre-wrap break-words font-mono text-[11px] bg-white/[0.03] rounded px-2 py-1.5",children:e.output})]})]})]})}function hB(){var se;const[e,t]=r.useState([]),[s,l]=r.useState(""),[o,c]=r.useState(!1),[d,h]=r.useState(()=>{const O=localStorage.getItem("ohwow-chat-session-id");if(O)return O;const $=crypto.randomUUID();return localStorage.setItem("ohwow-chat-session-id",$),$}),[m,p]=r.useState(!1),[x,g]=r.useState(!1),b=r.useRef(null),{modelReady:w,loading:j}=wo(),[N,E]=r.useState([]),[A,C]=r.useState(""),[M,S]=r.useState(!1),L=QC("orchestrator");r.useEffect(()=>{me("/api/system/models").then(O=>{E(O.data.models),O.data.currentModel&&C(O.data.currentModel)}).catch(()=>{})},[]),r.useEffect(()=>{let O=!1;return me(`/api/chat/${d}`).then($=>{var B;O||!((B=$.messages)!=null&&B.length)||t($.messages.filter(Q=>Q.role==="user"||Q.role==="assistant").map(Q=>({role:Q.role,content:Q.content})))}).catch(()=>{}),()=>{O=!0}},[]),r.useEffect(()=>{let O=!1,$=!1;const B=()=>{fetch("/api/voice/providers").then(J=>J.json()).then(J=>{var Y;if(O)return;g(!0);const k=!!((Y=J==null?void 0:J.data)!=null&&Y.anyAvailable);p(k),k&&($=!0)}).catch(()=>{})};B();const Q=setInterval(()=>{!O&&!$&&B()},15e3);return()=>{O=!0,clearInterval(Q)}},[]);const V=r.useRef(""),_=r.useRef("");r.useEffect(()=>{L.transcript&&L.transcript!==V.current&&(V.current=L.transcript,t(O=>[...O,{role:"user",content:L.transcript}]))},[L.transcript]),r.useEffect(()=>{L.response&&L.response!==_.current&&(_.current=L.response,t(O=>[...O,{role:"assistant",content:L.response}]))},[L.response]),r.useEffect(()=>{var O;(O=b.current)==null||O.scrollTo({top:b.current.scrollHeight,behavior:"smooth"})},[e]);const H=async()=>{const O=s.trim();if(!O||o)return;l(""),t(Q=>[...Q,{role:"user",content:O}]),c(!0);let $="",B=[];t(Q=>[...Q,{role:"assistant",content:""}]);try{for await(const Q of bN(O,d,A||void 0))if(Q.type==="text")$+=Q.content,t(J=>{const k=[...J];return k[k.length-1]={role:"assistant",content:$,toolCalls:B.length>0?[...B]:void 0},k});else if(Q.type==="tool_use"||Q.type==="tool_call"){const J={name:Q.name,input:Q.input};B=[...B,J],t(k=>{const Y=[...k];return Y[Y.length-1]={role:"assistant",content:$,toolCalls:[...B]},Y})}else Q.type==="tool_result"&&B.length>0&&(B=[...B],B[B.length-1]={...B[B.length-1],output:Q.content},t(J=>{const k=[...J];return k[k.length-1]={role:"assistant",content:$,toolCalls:[...B]},k}))}catch{$+=`
76
+
77
+ [Connection lost. Try sending your message again.]`,t(Q=>{const J=[...Q];return J[J.length-1]={role:"assistant",content:$,toolCalls:B.length>0?[...B]:void 0},J})}finally{c(!1)}},T=O=>{O.key==="Enter"&&!O.shiftKey&&(O.preventDefault(),H())},D=()=>{const O=crypto.randomUUID();localStorage.setItem("ohwow-chat-session-id",O),h(O),t([]),V.current="",_.current=""},F=O=>{C(O),S(!1)},P=((se=N.find(O=>O.id===A))==null?void 0:se.name)||A||"Auto",U=m&&!s.trim()&&!o,W=x&&!m&&!s.trim()&&!o;return!j&&!w&&e.length===0?a.jsxs("div",{className:"flex flex-col h-full",children:[a.jsx("div",{className:"px-6 pt-6 pb-0",children:a.jsx(ze,{title:"Chat",subtitle:"Talk to your orchestrator"})}),a.jsx("div",{className:"flex-1 flex items-center justify-center",children:a.jsxs("div",{className:"text-center space-y-3 max-w-sm",children:[a.jsx("p",{className:"text-lg text-white font-medium",children:"Your orchestrator needs a brain"}),a.jsx("p",{className:"text-sm text-neutral-400",children:"Download an AI model to start chatting."}),a.jsx(G0,{to:"/settings",className:"inline-block bg-white text-black rounded-md px-4 py-2 text-sm font-medium hover:bg-neutral-200 transition-colors",children:"Go to Settings"})]})})]}):a.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[a.jsx("div",{className:"px-6 pt-6 pb-0 shrink-0",children:a.jsx(ze,{title:"Chat",subtitle:"Talk to your orchestrator",action:a.jsxs("div",{className:"flex items-center gap-2",children:[N.length>0&&a.jsxs("div",{className:"relative",children:[a.jsxs("button",{onClick:()=>S(!M),className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-neutral-400 border border-white/10 rounded-lg hover:text-white hover:border-white/20 transition-colors",children:[a.jsx("span",{className:"max-w-[120px] truncate",children:P}),a.jsx(xa,{size:12})]}),M&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>S(!1)}),a.jsx("div",{className:"absolute right-0 top-full mt-1 z-50 bg-neutral-950 border border-white/10 rounded-lg py-1 min-w-[200px] shadow-lg",children:N.map(O=>a.jsxs("button",{onClick:()=>F(O.id),className:`w-full text-left px-3 py-2 text-xs hover:bg-white/[0.06] transition-colors ${A===O.id,"text-white"}`,children:[a.jsx("span",{className:"block",children:O.name}),a.jsx("span",{className:"block text-neutral-400 text-[10px]",children:O.provider})]},O.id))})]})]}),a.jsxs("button",{onClick:D,disabled:o,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-lg hover:bg-white/10 transition-colors disabled:opacity-50",title:"New session",children:[a.jsx(Zt,{size:14})," New chat"]})]})})}),a.jsxs("div",{ref:b,className:"flex-1 overflow-y-auto min-h-0 px-6 py-4 space-y-4",children:[e.length===0&&a.jsx("div",{className:"flex items-center justify-center h-full text-neutral-400 text-sm",children:"Ask your orchestrator anything about your agents, tasks, or business."}),e.map((O,$)=>a.jsx("div",{className:`max-w-2xl ${O.role==="user"?"ml-auto":""}`,children:a.jsxs("div",{className:`px-4 py-3 text-sm ${O.role==="user"?"bg-white/10 rounded-xl text-white":"text-neutral-200"}`,children:[a.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:O.content||(o&&$===e.length-1?"...":"")}),O.toolCalls&&O.toolCalls.length>0&&a.jsx("div",{className:"flex flex-wrap gap-2 mt-3",children:O.toolCalls.map((B,Q)=>a.jsx(dB,{toolCall:B},Q))})]})},$))]}),a.jsx("div",{className:"border-t border-white/[0.08] px-6 py-4 shrink-0",children:a.jsxs("div",{className:"flex gap-2 max-w-2xl",children:[a.jsx("textarea",{value:s,onChange:O=>l(O.target.value),onKeyDown:T,placeholder:"Type a message...",rows:1,className:"flex-1 bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none"}),U?a.jsx("button",{onClick:()=>L.startCall(),className:"bg-white/5 border border-white/10 text-white rounded-xl px-4 hover:bg-white/10 transition-colors",title:"Start voice chat",children:a.jsx(Vn,{size:18})}):W?a.jsxs("div",{className:"flex gap-2",children:[a.jsx("button",{disabled:!0,className:"border border-white/10 text-neutral-500 rounded-xl px-4 cursor-not-allowed",title:"Voice is available when Voicebox is running. Enable it in Settings.",children:a.jsx(Fl,{size:18})}),a.jsx("button",{onClick:H,disabled:o||!s.trim(),className:"bg-white text-black rounded-xl px-4 hover:bg-neutral-200 transition-colors disabled:opacity-50",children:a.jsx(lf,{size:18})})]}):a.jsx("button",{onClick:H,disabled:o||!s.trim(),className:"bg-white text-black rounded-xl px-4 hover:bg-neutral-200 transition-colors disabled:opacity-50",children:a.jsx(lf,{size:18})})]})}),L.state!=="idle"&&a.jsx(uB,{state:L.state,transcript:L.transcript,response:L.response,error:L.error,isMuted:L.isMuted,onToggleMute:L.toggleMute,onEndCall:L.endCall})]})}let mB=0;function _u(){return`lmsg-${++mB}-${Date.now()}`}function fB(e){return typeof e=="string"?e:Array.isArray(e)?e.map(t=>t.type==="text"&&typeof t.text=="string"?t.text:t.type==="tool_use"?`[Tool: ${t.name||"unknown"}]`:t.type==="tool_result"&&typeof t.content=="string"?t.content:"").filter(Boolean).join(`
78
+ `):String(e||"")}function df(e){return e?/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"):new Date(NaN)}function l3(e){const t=Date.now()-df(e).getTime();if(t<0)return"Just now";const s=Math.floor(t/6e4);if(s<1)return"Just now";if(s<60)return`${s}m ago`;const l=Math.floor(s/60);if(l<24)return`${l}h ago`;const o=Math.floor(l/24);return o<7?`${o}d ago`:df(e).toLocaleDateString()}function pB(e){const t=df(e);return Number.isFinite(t.getTime())?t.toLocaleString([],{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):""}function JC(e){return e.trim().split(/\s+/).slice(0,2).map(s=>{var l;return((l=s[0])==null?void 0:l.toUpperCase())??""}).join("")||"?"}function xB(){var z;const[e,t]=r.useState([]),[s,l]=r.useState([]),[o,c]=r.useState([]),[d,h]=r.useState(!1),[m,p]=r.useState(!0),[x,g]=r.useState(0),[b,w]=r.useState(!1),[j,N]=r.useState([]),[E,A]=r.useState(!0),[C,M]=r.useState(null),[S,L]=r.useState(null),[V,_]=r.useState(!1),[H,T]=xN();r.useEffect(()=>{const I=H.get("pair");I&&(L({kind:"crm",pair:I}),T({},{replace:!0}))},[]);const D=r.useRef([]),F=r.useRef({type:"orchestrator",id:null}),P=r.useRef(null);r.useEffect(()=>{me("/api/orchestrator/sessions?limit=50&offset=0").then(I=>{t(I.sessions||[]),g(I.total||0)}).catch(()=>{}).finally(()=>p(!1)),me("/api/agents").then(I=>l(I.data||[])).catch(()=>{})},[]);const[U,W]=r.useState(0);r.useEffect(()=>{const I=setInterval(()=>W(te=>te+1),5e3);return()=>clearInterval(I)},[]),r.useEffect(()=>{let I=!1;return me("/api/conversations").then(te=>{I||(N(te.data??[]),A(!1))}).catch(()=>{I||A(!1)}),()=>{I=!0}},[U]),r.useEffect(()=>{if(!S||S.kind!=="crm")return;let I=!1;return me(`/api/conversations/${encodeURIComponent(S.pair)}`).then(te=>{I||M(te.data)}).catch(()=>{}),()=>{I=!0}},[S,U]);const se=r.useCallback(async()=>{if(!(b||e.length>=x)){w(!0);try{const I=await me(`/api/orchestrator/sessions?limit=50&offset=${e.length}`);t(te=>[...te,...I.sessions||[]]),g(I.total||0)}finally{w(!1)}}},[e.length,x,b]),O=r.useMemo(()=>!S||S.kind!=="ai"?null:e.find(I=>I.id===S.sessionId)??null,[S,e]),$=(O==null?void 0:O.target_type)||"orchestrator",B=$==="agent"?((z=s.find(I=>I.id===(O==null?void 0:O.target_id)))==null?void 0:z.name)||"Agent":"Orchestrator",Q=r.useCallback(async I=>{var te;try{(te=P.current)==null||te.abort();const fe=await me(`/api/orchestrator/sessions/${I}`),Ee=(Array.isArray(fe.messages)?fe.messages:[]).map(Se=>({role:Se.role==="user"?"user":"assistant",content:fB(Se.content)}));D.current=Ee,F.current={type:fe.target_type||"orchestrator",id:fe.target_id||null},L({kind:"ai",sessionId:I}),h(!1),c(Ee.map(Se=>({id:_u(),role:Se.role,content:Se.content}))),_(!1)}catch{}},[]),J=r.useCallback(I=>{L({kind:"crm",pair:I}),_(!1)},[]),k=r.useCallback(async(I,te,fe)=>{try{const pe=I==="agent"&&fe?`Chat with ${fe}`:"New conversation",Ee=await me("/api/orchestrator/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:pe,messages:[],target_type:I,target_id:te})}),Se={id:Ee.id,title:Ee.title||pe,message_count:0,target_type:I,target_id:te,updated_at:new Date().toISOString()};t(Ve=>[Se,...Ve]),L({kind:"ai",sessionId:Ee.id}),F.current={type:I,id:te},D.current=[],c([]),h(!1),_(!1)}catch{}},[]),Y=r.useCallback(async I=>{try{await me(`/api/orchestrator/sessions/${I}`,{method:"DELETE"}),t(te=>te.filter(fe=>fe.id!==I)),L(te=>te&&te.kind==="ai"&&te.sessionId===I?null:te),c([]),D.current=[]}catch{}},[]),K=r.useCallback(async I=>{var Ee;if(d||!S||S.kind!=="ai")return;D.current.push({role:"user",content:I});const te=_u(),fe=_u();c(Se=>[...Se,{id:te,role:"user",content:I},{id:fe,role:"assistant",content:"",isStreaming:!0}]),h(!0);let pe="";try{for await(const Se of bN(I,S.sessionId))Se.type==="text"&&(pe+=Se.content,c(Ve=>Ve.map(Pe=>Pe.id===fe?{...Pe,content:pe}:Pe)))}catch{pe+=`
79
+
80
+ [Connection lost. Try again.]`}finally{c(Pe=>Pe.map(Te=>Te.id===fe?{...Te,content:pe||"No response.",isStreaming:!1}:Te)),D.current.push({role:"assistant",content:pe}),h(!1);const Se=S.sessionId,Ve=D.current;if(Ve.length>0){const Pe=((Ee=Ve.find(Te=>Te.role==="user"))==null?void 0:Ee.content)||"Untitled";t(Te=>Te.map(Ae=>Ae.id===Se?{...Ae,message_count:Ve.length,title:Pe.slice(0,60),updated_at:new Date().toISOString()}:Ae))}}},[d,S]),q=r.useCallback(async(I,te)=>{if(!(!S||S.kind!=="crm"))try{await me(`/api/conversations/${encodeURIComponent(S.pair)}/messages`,{method:"POST",body:JSON.stringify({text:I,autoApprove:te})}),W(fe=>fe+1)}catch(fe){throw fe instanceof Error?fe:new Error("send failed")}},[S]);return a.jsxs("div",{className:"flex flex-col h-full",children:[a.jsx("div",{className:"px-6 pt-6 pb-0",children:a.jsx(ze,{title:"Messages",subtitle:"CRM conversations and AI chats in one inbox"})}),a.jsxs("div",{className:"flex flex-1 min-h-0 mx-6 mb-6 border border-white/[0.08] rounded-xl overflow-hidden",children:[a.jsx("div",{className:"hidden md:flex w-72 flex-shrink-0",children:a.jsx(S9,{threads:j,threadsLoading:E,sessions:e,sessionsLoading:m,agents:s,active:S,onSelectCrm:J,onSelectAi:Q,onNewAiConversation:k,onDeleteAi:Y,total:x,onLoadMore:se,loadingMore:b})}),a.jsxs("div",{className:"md:hidden",children:[a.jsx("button",{onClick:()=>_(!0),className:"absolute top-[120px] left-8 z-30 p-2 bg-black border border-white/10 rounded-lg text-neutral-400 hover:text-white transition-colors",children:a.jsx(jS,{size:18})}),a.jsx(la,{children:V&&a.jsxs(a.Fragment,{children:[a.jsx(He.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>_(!1),className:"fixed inset-0 bg-black/60 z-40"}),a.jsx(He.div,{initial:{x:-300},animate:{x:0},exit:{x:-300},transition:{type:"spring",stiffness:350,damping:30},className:"fixed inset-y-0 left-0 w-[300px] z-50 bg-black",children:a.jsx(S9,{threads:j,threadsLoading:E,sessions:e,sessionsLoading:m,agents:s,active:S,onSelectCrm:J,onSelectAi:Q,onNewAiConversation:k,onDeleteAi:Y,total:x,onLoadMore:se,loadingMore:b,onClose:()=>_(!1)})})]})})]}),(S==null?void 0:S.kind)==="crm"?a.jsx(yB,{detail:C,onSend:q}):a.jsx(gB,{messages:o,streaming:d,activeSessionId:(S==null?void 0:S.kind)==="ai"?S.sessionId:null,targetType:$,targetName:B,onSend:K})]})]})}function S9({threads:e,threadsLoading:t,sessions:s,sessionsLoading:l,agents:o,active:c,onSelectCrm:d,onSelectAi:h,onNewAiConversation:m,onDeleteAi:p,onClose:x,total:g,onLoadMore:b,loadingMore:w}){var T;const[j,N]=r.useState(!1),[E,A]=r.useState(null),C=s.filter(D=>D.target_type==="orchestrator"),M=s.filter(D=>D.target_type==="agent"),S=new Map;for(const D of M){const F=D.target_id||"unknown";S.has(F)||S.set(F,{name:((T=o.find(P=>P.id===F))==null?void 0:T.name)||"Agent",sessions:[]}),S.get(F).sessions.push(D)}const L=D=>{E===D?(p(D),A(null)):(A(D),setTimeout(()=>A(null),3e3))},V=(c==null?void 0:c.kind)==="crm"?c.pair:null,_=(c==null?void 0:c.kind)==="ai"?c.sessionId:null,H=!t&&!l&&e.length===0&&s.length===0;return a.jsxs("div",{className:"flex flex-col h-full border-r border-white/[0.08] bg-black/40 w-full",children:[a.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-white/[0.08]",children:[a.jsx("span",{className:"text-sm font-medium text-white",children:"Inbox"}),a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("button",{onClick:()=>N(!j),className:"p-1.5 text-neutral-500 hover:text-white transition-colors rounded-md hover:bg-white/5",title:"New AI conversation",children:a.jsx(Zt,{size:16,weight:"bold"})}),x&&a.jsx("button",{onClick:x,className:"p-1.5 text-neutral-500 hover:text-white transition-colors md:hidden",children:a.jsx(Yt,{size:16,weight:"bold"})})]})]}),a.jsx(la,{children:j&&a.jsx(He.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"border-b border-white/[0.06] overflow-hidden",children:a.jsxs("div",{className:"p-2 space-y-0.5",children:[a.jsx("p",{className:"text-[10px] uppercase tracking-widest text-neutral-600 px-2 py-1",children:"New AI conversation with"}),a.jsxs("button",{onClick:()=>{m("orchestrator",null),N(!1)},className:"flex items-center gap-2.5 w-full px-2 py-2 text-sm text-neutral-400 hover:text-white hover:bg-white/[0.06] rounded-lg transition-all",children:[a.jsx(ka,{size:14,weight:"bold",className:"text-uplink"}),"Orchestrator"]}),o.filter(D=>D.status==="active").map(D=>a.jsxs("button",{onClick:()=>{m("agent",D.id,D.name),N(!1)},className:"flex items-center gap-2.5 w-full px-2 py-2 text-sm text-neutral-400 hover:text-white hover:bg-white/[0.06] rounded-lg transition-all",children:[a.jsx(Rn,{size:14,weight:"bold",className:"text-terminal"}),a.jsxs("div",{className:"text-left min-w-0",children:[a.jsx("span",{className:"block truncate",children:D.name}),a.jsx("span",{className:"block text-[10px] text-neutral-600 truncate",children:D.role})]})]},D.id))]})})}),a.jsxs("div",{className:"flex-1 overflow-y-auto",children:[H&&a.jsxs("div",{className:"flex flex-col items-center justify-center h-40 text-center px-4",children:[a.jsx(J0,{size:24,className:"text-neutral-600 mb-2"}),a.jsx("p",{className:"text-xs text-neutral-600",children:"No conversations yet"}),a.jsx("button",{onClick:()=>N(!0),className:"mt-2 text-xs text-neutral-500 hover:text-white transition-colors",children:"Start one"})]}),(t||e.length>0)&&a.jsxs("div",{className:"py-1",children:[a.jsxs("div",{className:"flex items-center gap-1.5 px-4 py-1.5",children:[a.jsx(LI,{size:12,weight:"bold",className:"text-info"}),a.jsx("span",{className:"text-[10px] uppercase tracking-widest text-neutral-600",children:"Contacts"}),e.length>0&&a.jsx("span",{className:"text-[10px] text-neutral-600 ml-auto",children:e.length})]}),t&&e.length===0&&a.jsx("div",{className:"space-y-2 px-3 py-1",children:[...Array(2)].map((D,F)=>a.jsx("div",{className:"h-12 bg-white/[0.04] rounded-lg animate-pulse"},F))}),e.map(D=>{const F=D.conversationPair===V,U=(D.lastMessageText||D.lastPreview||"(no messages yet)").replace(/\s+/g," ").slice(0,60);return a.jsx("button",{onClick:()=>d(D.conversationPair),className:`w-full text-left px-3 mx-1 rounded-md transition-colors ${F?"bg-white/[0.08]":"hover:bg-white/[0.04]"}`,children:a.jsxs("div",{className:"flex items-start gap-2.5 py-2.5",children:[a.jsx("div",{className:"flex-none w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-[11px] font-semibold mt-0.5",children:JC(D.displayName)}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[a.jsx("span",{className:"text-sm text-white truncate font-medium",children:D.displayName}),a.jsx("span",{className:"text-[10px] text-neutral-600 flex-none tabular-nums",children:l3(D.lastSeenAt)})]}),a.jsxs("div",{className:"flex items-center gap-1.5 mt-0.5",children:[a.jsxs("p",{className:"text-[11px] text-neutral-500 truncate flex-1",children:[D.lastMessageDirection==="outbound"?"You: ":"",U]}),D.unreadCount>0&&a.jsx("span",{className:"text-[10px] bg-info text-black font-medium rounded-full px-1.5",children:D.unreadCount}),D.pendingApprovals>0&&a.jsxs("span",{className:"text-[10px] bg-warning/20 text-warning rounded-full px-1.5",title:"pending drafts",children:[D.pendingApprovals,"·d"]})]})]})]})},D.id)})]}),l&&s.length===0&&a.jsx("div",{className:"space-y-2 p-3",children:[...Array(3)].map((D,F)=>a.jsx("div",{className:"h-14 bg-white/[0.04] rounded-lg animate-pulse"},F))}),!l&&C.length>0&&a.jsx(C9,{label:"Orchestrator",icon:a.jsx(ka,{size:12,weight:"bold",className:"text-uplink"}),sessions:C,activeId:_,confirmId:E,onSelect:h,onDelete:L}),!l&&[...S.entries()].map(([D,F])=>a.jsx(C9,{label:F.name,icon:a.jsx(Rn,{size:12,weight:"bold",className:"text-terminal"}),sessions:F.sessions,activeId:_,confirmId:E,onSelect:h,onDelete:L},D)),!l&&s.length>0&&s.length<g&&a.jsxs("div",{className:"flex flex-col items-center gap-1 py-3",children:[a.jsx("button",{onClick:b,disabled:w,className:"text-xs text-neutral-400 hover:text-white transition-colors disabled:opacity-50",children:w?"Loading...":`Load ${Math.min(50,g-s.length)} more`}),a.jsxs("span",{className:"text-[10px] text-neutral-600",children:[s.length," of ",g]})]})]})]})}function C9({label:e,icon:t,sessions:s,activeId:l,confirmId:o,onSelect:c,onDelete:d}){return a.jsxs("div",{className:"py-1",children:[a.jsxs("div",{className:"flex items-center gap-1.5 px-4 py-1.5",children:[t,a.jsx("span",{className:"text-[10px] uppercase tracking-widest text-neutral-600",children:e})]}),s.map(h=>a.jsxs("div",{className:`group flex items-center px-3 mx-1 rounded-md transition-colors cursor-pointer ${h.id===l?"bg-white/[0.08]":"hover:bg-white/[0.04]"}`,children:[a.jsxs("button",{onClick:()=>c(h.id),className:"flex-1 text-left py-2.5 min-w-0",children:[a.jsx("p",{className:"text-sm text-white truncate leading-snug",children:h.title}),a.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[a.jsx("span",{className:"text-[11px] text-neutral-600",children:l3(h.updated_at)}),a.jsxs("span",{className:"text-[11px] text-neutral-600",children:[h.message_count," msg",h.message_count!==1?"s":""]})]})]}),a.jsx("button",{onClick:m=>{m.stopPropagation(),d(h.id)},className:`p-1 rounded transition-colors shrink-0 ${o===h.id?"text-critical bg-critical/10":"text-neutral-700 hover:text-critical opacity-0 group-hover:opacity-100"}`,title:o===h.id?"Click again to confirm":"Delete",children:a.jsx(Kt,{size:14})})]},h.id))]})}function gB({messages:e,streaming:t,activeSessionId:s,targetType:l,targetName:o,onSend:c}){const d=r.useRef(null),[h,m]=r.useState("");r.useEffect(()=>{var g;(g=d.current)==null||g.scrollTo({top:d.current.scrollHeight,behavior:"smooth"})},[e]);const p=()=>{const g=h.trim();!g||t||(c(g),m(""))},x=g=>{g.key==="Enter"&&!g.shiftKey&&(g.preventDefault(),p())};return s?a.jsxs("div",{className:"flex-1 flex flex-col min-h-0",children:[a.jsxs("div",{className:"flex items-center gap-2.5 px-5 py-3 border-b border-white/[0.08]",children:[l==="agent"?a.jsx(Rn,{size:16,weight:"bold",className:"text-terminal"}):a.jsx(ka,{size:16,weight:"bold",className:"text-uplink"}),a.jsx("span",{className:"text-sm font-medium text-white",children:o}),t&&a.jsx("span",{className:"text-[11px] text-uplink ml-auto animate-pulse",children:"Responding..."})]}),a.jsxs("div",{ref:d,className:"flex-1 overflow-y-auto px-5 py-4 space-y-4",children:[e.length===0&&a.jsx("div",{className:"flex items-center justify-center h-full text-neutral-500 text-sm",children:"Send a message to start the conversation."}),e.map(g=>a.jsxs("div",{className:`flex gap-3 ${g.role==="user"?"flex-row-reverse":""}`,children:[a.jsx("div",{className:`w-7 h-7 rounded-full flex-shrink-0 flex items-center justify-center text-xs font-bold ${g.role==="user"?"bg-white/10 text-white":"bg-uplink/10 text-uplink"}`,children:g.role==="user"?"You":o[0]||"O"}),a.jsxs("div",{className:`max-w-[80%] rounded-xl px-4 py-3 text-sm ${g.role==="user"?"bg-white/[0.08] text-white":"bg-white/[0.03] border border-white/[0.08] text-neutral-200"}`,children:[a.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:g.content||(g.isStreaming?"...":"")}),g.isStreaming&&a.jsx("span",{className:"inline-block w-1.5 h-4 bg-uplink/70 animate-pulse ml-0.5 align-text-bottom rounded-sm"})]})]},g.id))]}),a.jsx("div",{className:"border-t border-white/[0.08] px-5 py-3",children:a.jsxs("div",{className:"flex gap-2 max-w-2xl",children:[a.jsx("textarea",{value:h,onChange:g=>m(g.target.value),onKeyDown:x,placeholder:"Type a message...",rows:1,disabled:t,className:"flex-1 bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none disabled:opacity-50"}),a.jsx("button",{onClick:p,disabled:t||!h.trim(),className:"bg-white text-black rounded-xl px-4 hover:bg-neutral-200 transition-colors disabled:opacity-50",children:a.jsx(lf,{size:18})})]})})]}):a.jsx("div",{className:"flex-1 flex items-center justify-center",children:a.jsxs("div",{className:"text-center space-y-3",children:[a.jsx("div",{className:"w-14 h-14 rounded-full bg-white/[0.06] flex items-center justify-center mx-auto",children:a.jsx(J0,{size:28,weight:"duotone",className:"text-neutral-500"})}),a.jsx("h3",{className:"text-lg font-semibold text-white",children:"Messages"}),a.jsx("p",{className:"text-sm text-neutral-500 max-w-xs",children:"Select a contact, orchestrator, or agent conversation from the sidebar."})]})})}function vB({m:e}){var d;if(e.direction==="unknown"&&!e.text)return null;const t=e.direction==="outbound",s=e.messageId.startsWith("outbound-"),l=(d=e.text)==null?void 0:d.match(/\[image:\s*([^\]]+)\]/i),o=l?e.text.replace(l[0],"").trim():e.text,c=l?l[1].split(",").map(h=>h.trim()).filter(Boolean):[];return a.jsx("div",{className:`flex ${t?"justify-end":"justify-start"} mb-2`,children:a.jsxs("div",{className:`max-w-[75%] rounded-2xl px-3.5 py-2 text-sm ${t?"bg-info/80 text-black rounded-br-sm":"bg-white/[0.08] text-neutral-100 rounded-bl-sm"}`,children:[o&&a.jsx("p",{className:"whitespace-pre-wrap",children:o}),c.length>0&&a.jsx("div",{className:"mt-2 space-y-1",children:c.map(h=>a.jsxs("div",{className:"text-[10px] italic opacity-70",children:["[attachment: ",h.split("/").pop(),"]"]},h))}),!o&&e.isMedia&&c.length===0&&a.jsx("p",{className:"italic text-xs opacity-70",children:"[media attachment]"}),a.jsxs("p",{className:`text-[10px] mt-1 ${t?"text-black/60":"text-neutral-500"}`,children:[pB(e.observedAt),s&&t&&a.jsx("span",{className:"ml-1",children:"· delivering"})]})]})})}function bB({onSend:e,suggestedDraft:t}){const[s,l]=r.useState(""),[o,c]=r.useState(!0),[d,h]=r.useState(!1),[m,p]=r.useState(null),x=r.useRef(null);r.useEffect(()=>{t&&x.current!==t&&!s&&(l(t),x.current=t)},[t]);const g=async()=>{const b=s.trim();if(!(!b||d)){h(!0),p(null);try{await e(b,o),l(""),x.current=null}catch(w){p(w instanceof Error?w.message:"Could not queue reply.")}finally{h(!1)}}};return a.jsxs("div",{className:"border-t border-white/[0.08] bg-white/[0.01] p-3",children:[t&&s===t&&a.jsx("p",{className:"text-[10px] text-neutral-500 mb-1.5",children:"Loaded from analyst draft. Edit freely before sending."}),m&&a.jsx("p",{className:"text-[11px] text-critical mb-1.5",children:m}),a.jsxs("div",{className:"flex items-end gap-2",children:[a.jsx("textarea",{value:s,onChange:b=>l(b.target.value),onKeyDown:b=>{b.key==="Enter"&&(b.metaKey||b.ctrlKey)&&(b.preventDefault(),g())},placeholder:"Type a reply. ⌘+Enter to send.",rows:2,className:"flex-1 bg-white/[0.04] border border-white/[0.08] rounded-md px-3 py-2 text-sm text-white placeholder-neutral-600 outline-none focus:border-info/50 resize-none"}),a.jsx("button",{onClick:()=>void g(),disabled:!s.trim()||d,className:"bg-info text-black font-medium text-sm px-4 py-2 rounded-md disabled:opacity-40 disabled:cursor-not-allowed hover:brightness-110",children:d?"Queuing.":o?"Send":"Queue"})]}),a.jsxs("div",{className:"flex items-center justify-between mt-2 text-[11px]",children:[a.jsxs("label",{className:"flex items-center gap-1.5 text-neutral-400 cursor-pointer select-none",children:[a.jsx("input",{type:"checkbox",checked:o,onChange:b=>c(b.target.checked),className:"accent-info"}),"Auto-approve (send on next reply-dispatcher tick)"]}),a.jsxs("span",{className:"text-neutral-600 tabular-nums",children:[s.length," / 1000"]})]})]})}function yB({detail:e,onSend:t}){var c,d;const s=r.useRef(null),l=(e==null?void 0:e.messages.length)??0;r.useEffect(()=>{s.current&&(s.current.scrollTop=s.current.scrollHeight)},[l]);const o=r.useMemo(()=>{if(!e)return null;const h=e.nextSteps.find(m=>m.status==="open"&&m.draftReply);return(h==null?void 0:h.draftReply)??null},[e]);return e?a.jsxs("div",{className:"flex-1 flex flex-col min-h-0",children:[a.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-b border-white/[0.08]",children:[a.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[a.jsx("div",{className:"flex-none w-9 h-9 rounded-full bg-white/10 flex items-center justify-center text-xs font-semibold",children:JC(e.thread.displayName)}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:"text-sm font-semibold truncate",children:e.thread.displayName}),a.jsxs("p",{className:"text-[11px] text-neutral-500 truncate",children:[(c=e.contact)!=null&&c.handle?`@${e.contact.handle} · `:"",(d=e.contact)!=null&&d.source?`${e.contact.source} · `:"","last seen ",l3(e.thread.lastSeenAt),e.thread.counterpartyUserId&&` · uid ${e.thread.counterpartyUserId}`]})]})]}),a.jsxs("div",{className:"text-[11px] text-neutral-500 tabular-nums flex-none",children:[e.messages.length," msg · ",e.approvals.pending.length," pending · ",e.approvals.applied.length," sent"]})]}),e.nextSteps.some(h=>h.status==="open"||h.status==="dispatched")&&a.jsxs("div",{className:"border-b border-white/[0.06] bg-info/[0.03] px-5 py-2.5",children:[a.jsx("p",{className:"text-[10px] uppercase tracking-wider text-info mb-1.5",children:"Analyst next-steps for this contact"}),a.jsx("ul",{className:"space-y-1",children:e.nextSteps.slice(0,3).map(h=>a.jsxs("li",{className:"text-xs",children:[a.jsxs("span",{className:`uppercase tracking-wider text-[10px] mr-2 ${h.status==="open"?"text-warning":h.status==="dispatched"?"text-info":h.status==="shipped"?"text-success":"text-neutral-500"}`,children:[h.stepType.replace(/_/g," ")," · ",h.status]}),a.jsx("span",{className:"text-neutral-400",children:h.text.slice(0,140)}),h.sendConfirmed===!0&&a.jsx("span",{className:"ml-2 text-[10px] text-success",children:"✓ confirmed"})]},h.id))})]}),a.jsxs("div",{ref:s,className:"flex-1 overflow-y-auto px-5 py-4",children:[e.messages.length===0?a.jsx("p",{className:"text-sm text-neutral-500 text-center mt-10",children:"No messages observed yet for this thread."}):a.jsx(la,{initial:!1,children:e.messages.map(h=>a.jsx(He.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.15},children:a.jsx(vB,{m:h})},h.id))}),e.approvals.pending.length>0&&a.jsxs("div",{className:"mt-4 border border-warning/30 bg-warning/[0.04] rounded-lg p-3",children:[a.jsx("p",{className:"text-[10px] uppercase tracking-wider text-warning mb-2",children:"Pending outbound · awaiting operator"}),e.approvals.pending.map(h=>a.jsxs("div",{className:"text-xs text-neutral-300 mb-1.5 last:mb-0",children:[a.jsx("span",{className:"font-mono text-[10px] text-neutral-500",children:h.id.slice(0,8)})," ",a.jsx("span",{className:"uppercase tracking-wider text-[10px] text-neutral-500",children:h.status}),a.jsxs("p",{className:"mt-0.5",children:['"',h.text,'"']})]},h.id))]})]}),a.jsx(bB,{onSend:t,suggestedDraft:o})]}):a.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-neutral-500",children:"Loading conversation."})}function WC(e){const t=Math.floor(e/86400),s=Math.floor(e%86400/3600),l=Math.floor(e%3600/60),o=[];return t&&o.push(`${t}d`),s&&o.push(`${s}h`),o.push(`${l}m`),o.join(" ")}function wB(){const{data:e}=ye("/health"),{data:t}=ye("/api/system/stats");return a.jsxs(a.Fragment,{children:[e&&a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Runtime"}),a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[a.jsx(_a,{label:"Status",value:e.status,valueColor:e.status==="healthy"?"text-success":"text-warning"}),a.jsx(_a,{label:"Version",value:`v${e.version}`}),a.jsx(_a,{label:"Uptime",value:WC(e.uptime)}),a.jsx(_a,{label:"Database",value:e.database}),t&&a.jsx(_a,{label:"Memory",value:`${t.memoryMb} MB`})]})]}),t&&a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Stats"}),a.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:[a.jsx(Z1,{label:"Agents",value:String(t.totalAgents)}),a.jsx(Z1,{label:"Tasks",value:String(t.totalTasks)}),a.jsx(Z1,{label:"Tokens",value:t.totalTokens.toLocaleString()}),a.jsx(Z1,{label:"Cost",value:`$${(t.totalCostCents/100).toFixed(2)}`})]})]})]})}function _a({label:e,value:t,valueColor:s}){return a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsx("span",{className:"text-sm text-neutral-400",children:e}),a.jsx("span",{className:`text-sm font-medium ${s||""}`,children:t})]})}function Z1({label:e,value:t}){return a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:e}),a.jsx("p",{className:"text-lg font-bold",children:t})]})}function AB(){const{data:e}=ye("/api/settings/tunnel_url"),{data:t}=ye("/api/settings/cloud_url"),{data:s,refetch:l}=ye("/api/settings/notification_channels"),{data:o,refetch:c}=ye("/api/settings/global_mcp_servers"),d=e==null?void 0:e.value,[h,m]=r.useState(!1),[p,x]=r.useState(!1),g=(()=>{try{return o!=null&&o.value?JSON.parse(o.value):[]}catch{return[]}})(),b=(()=>{try{return s!=null&&s.value?JSON.parse(s.value):{email:!1,slack:!1,telegram:!1,whatsapp:!1}}catch{return{email:!1,slack:!1,telegram:!1,whatsapp:!1}}})(),w=r.useCallback(async N=>{x(!0);try{await me("/api/settings/global_mcp_servers",{method:"PUT",body:JSON.stringify({value:JSON.stringify(N)})}),c(),ue("success","Global MCP servers updated")}catch{ue("error","Couldn't update MCP servers")}finally{x(!1)}},[c]),j=r.useCallback(async N=>{m(!0);const E={...b,[N]:!b[N]};try{await me("/api/settings/notification_channels",{method:"PUT",body:JSON.stringify({value:JSON.stringify(E)})}),l(),ue("success",`${N} notifications ${E[N]?"enabled":"disabled"}`)}catch{ue("error","Couldn't update notification settings")}finally{m(!1)}},[b,l]);return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Webhooks"}),a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[a.jsx(_a,{label:"Tunnel",value:d?"Active":"Not connected",valueColor:d?"text-success":"text-neutral-400"}),d&&a.jsxs(a.Fragment,{children:[a.jsx(_a,{label:"URL",value:d}),a.jsx(_a,{label:"GHL Hook",value:`${d}/webhooks/ghl`})]}),!d&&(t==null?void 0:t.value)&&a.jsx(_a,{label:"Cloud proxy",value:t.value,valueColor:"text-success"})]})]}),a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-1",children:"MCP Servers"}),a.jsx("p",{className:"text-xs text-neutral-400 mb-3",children:"MCP servers extend what your AI team can do. Connect tools like GitHub, databases, or file systems."}),a.jsx($C,{servers:g,onChange:w,disabled:p})]}),a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Notifications"}),a.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:["email","slack","telegram","whatsapp"].map(N=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsx("span",{className:"text-sm capitalize",children:N}),a.jsx(zl,{checked:b[N],onChange:()=>j(N),disabled:h,size:"sm"})]},N))})]})]})}async function Vu(e,t,s){const l=e.body.getReader(),o=new TextDecoder;let c="";try{for(;;){if(s!=null&&s.aborted){l.cancel();return}const{done:d,value:h}=await l.read();if(d)break;c+=o.decode(h,{stream:!0});const m=c.split(`
81
+ `);c=m.pop()||"";for(const p of m)if(p.startsWith("data: ")){const x=p.slice(6).trim();if(x==="[DONE]")return;let g;try{g=JSON.parse(x)}catch{continue}t(g)}}}finally{l.releaseLock()}}function jB(){const[e,t]=r.useState({installed:[],catalog:[],activeModel:"",orchestratorModel:"",device:null,memoryTier:"",ollamaRunning:!1,loading:!0,catalogLoading:!1,catalogLoaded:!1,downloading:null,openRouterKey:"",openRouterModel:"",openRouterConnected:!1,cloudProvider:"anthropic"}),s=r.useRef(null);r.useEffect(()=>()=>{var A;(A=s.current)==null||A.abort()},[]);const l=r.useCallback(async()=>{t(A=>({...A,loading:!0}));try{const A=await me("/api/models/installed");t(C=>({...C,installed:A.data.models,activeModel:A.data.activeModel,orchestratorModel:A.data.orchestratorModel||"",ollamaRunning:A.data.ollamaRunning,loading:!1}))}catch{t(A=>({...A,loading:!1}))}},[]),o=r.useCallback(async()=>{t(A=>({...A,catalogLoading:!0}));try{const A=await me("/api/models/catalog");t(C=>({...C,catalog:A.data.catalog,device:A.data.device,memoryTier:A.data.memoryTier,catalogLoading:!1,catalogLoaded:!0}))}catch{t(A=>({...A,catalogLoading:!1}))}},[]),c=r.useCallback(async A=>{let C="";t(M=>(C=M.activeModel,{...M,activeModel:A,installed:M.installed.map(S=>({...S,isActive:S.tag===A}))}));try{await me("/api/models/active",{method:"PUT",body:JSON.stringify({model:A})}),ue("success","Active model updated")}catch{t(M=>({...M,activeModel:C,installed:M.installed.map(S=>({...S,isActive:S.tag===C}))})),ue("error","Couldn't update active model")}},[]),d=r.useCallback(async A=>{let C="";t(M=>(C=M.orchestratorModel,{...M,orchestratorModel:A,installed:M.installed.map(S=>({...S,isOrchestrator:A?S.tag===A:!1}))}));try{await me("/api/models/orchestrator",{method:"PUT",body:JSON.stringify({model:A})}),ue("success",A?"Orchestrator model updated":"Orchestrator reset to auto")}catch{t(M=>({...M,orchestratorModel:C,installed:M.installed.map(S=>({...S,isOrchestrator:C?S.tag===C:!1}))})),ue("error","Couldn't update orchestrator model")}},[]),h=r.useCallback(async A=>{t(C=>({...C,installed:C.installed.map(M=>M.tag===A?{...M,status:"installed"}:M)}));try{await me(`/api/models/${encodeURIComponent(A)}/unload`,{method:"POST"}),ue("success","Model unloaded from memory")}catch{await l(),ue("error","Couldn't unload model")}},[l]),m=r.useCallback(async A=>{if(s.current)return;const C=new AbortController;s.current=C,t(M=>({...M,downloading:{tag:A,percent:0,message:"Setting things up..."}}));try{const M=await fetch("/api/onboarding/ensure-ollama",{method:"POST",signal:C.signal});if(!M.ok||!M.body)throw new Error("Couldn't start Ollama");await Vu(M,_=>{if(t(H=>H.downloading?{...H,downloading:{...H.downloading,message:_.message}}:H),_.error)throw new Error(_.error)},C.signal),t(_=>_.downloading?{..._,downloading:{..._.downloading,percent:0,message:"Starting download..."}}:_);const S=cn(),L=await fetch("/api/onboarding/download-model",{method:"POST",headers:{"Content-Type":"application/json",...S?{Authorization:`Bearer ${S}`}:{}},body:JSON.stringify({tag:A}),signal:C.signal});if(!L.ok||!L.body)throw new Error("Couldn't start download");await Vu(L,_=>{if(t(H=>H.downloading?{...H,downloading:{...H.downloading,message:_.message,percent:_.percent??H.downloading.percent}}:H),_.error)throw new Error(_.error)},C.signal),t(_=>({..._,downloading:null})),ue("success","Model installed");const V=await me("/api/models/installed");t(_=>({..._,installed:V.data.models,activeModel:V.data.activeModel,orchestratorModel:V.data.orchestratorModel||"",ollamaRunning:V.data.ollamaRunning,catalog:_.catalog.map(H=>H.tag===A?{...H,installed:!0}:H)}))}catch(M){if(C.signal.aborted)return;t(S=>({...S,downloading:null})),ue("error",M instanceof Error?M.message:"Download failed")}finally{s.current=null}},[]),p=r.useCallback(()=>{var A;(A=s.current)==null||A.abort(),t(C=>({...C,downloading:null}))},[]),x=r.useCallback(async A=>{try{await me(`/api/models/${encodeURIComponent(A)}`,{method:"DELETE"}),ue("success","Model deleted");const C=await me("/api/models/installed");return t(M=>({...M,installed:C.data.models,activeModel:C.data.activeModel,orchestratorModel:C.data.orchestratorModel||"",ollamaRunning:C.data.ollamaRunning,catalog:M.catalog.map(S=>S.tag===A?{...S,installed:!1}:S)})),!0}catch{return ue("error","Couldn't delete model"),!1}},[]),g=r.useCallback(async()=>{t(A=>({...A,downloading:{tag:"",percent:0,message:"Starting Ollama..."}}));try{const A=await fetch("/api/onboarding/ensure-ollama",{method:"POST"});if(!A.ok||!A.body)throw new Error("Couldn't start Ollama");await Vu(A,C=>{if(t(M=>M.downloading?{...M,downloading:{...M.downloading,message:C.message}}:M),C.error)throw new Error(C.error)}),t(C=>({...C,downloading:null,ollamaRunning:!0})),ue("success","Ollama is running"),await l()}catch(A){t(C=>({...C,downloading:null})),ue("error",A instanceof Error?A.message:"Couldn't start Ollama")}},[l]),b=r.useCallback(async()=>{var A;try{const[C,M]=await Promise.all([me("/api/settings/openrouter_api_key"),me("/api/settings/openrouter_model")]),S=!!((A=C.data)!=null&&A.value);let L=!1;if(S)try{L=(await me("/api/models/openrouter")).data.configured}catch{L=!1}t(V=>{var _,H;return{...V,openRouterKey:((_=C.data)==null?void 0:_.value)||"",openRouterModel:((H=M.data)==null?void 0:H.value)||"",openRouterConnected:L}})}catch{}},[]),w=r.useCallback(async A=>{try{if(await me("/api/settings/openrouter_api_key",{method:"PUT",body:JSON.stringify({value:A})}),A)try{const C=await me("/api/models/openrouter"),M=C.data.configured&&C.data.models.length>0;t(S=>({...S,openRouterKey:"****"+A.slice(-4),openRouterConnected:M})),ue("success",M?"OpenRouter connected":"Key saved but couldn't reach OpenRouter")}catch{t(C=>({...C,openRouterKey:"****"+A.slice(-4),openRouterConnected:!1})),ue("success","OpenRouter API key saved")}else t(C=>({...C,openRouterKey:"",openRouterConnected:!1})),ue("success","OpenRouter API key removed")}catch{ue("error","Couldn't save OpenRouter API key")}},[]),j=r.useCallback(async A=>{try{await me("/api/settings/openrouter_model",{method:"PUT",body:JSON.stringify({value:A})}),t(C=>({...C,openRouterModel:A})),ue("success","OpenRouter model updated")}catch{ue("error","Couldn't update OpenRouter model")}},[]),N=r.useCallback(async()=>{var A;try{const M=(A=(await me("/api/settings/cloud_provider")).data)==null?void 0:A.value;(M==="anthropic"||M==="openrouter")&&t(S=>({...S,cloudProvider:M}))}catch{}},[]),E=r.useCallback(async A=>{try{await me("/api/settings/cloud_provider",{method:"PUT",body:JSON.stringify({value:A})}),t(C=>({...C,cloudProvider:A})),ue("success",`Cloud provider set to ${A==="anthropic"?"Anthropic":"OpenRouter"}`)}catch{ue("error","Couldn't update cloud provider")}},[]);return{...e,fetchInstalled:l,fetchCatalog:o,setActiveModel:c,setOrchestratorModel:d,unloadModel:h,installModel:m,cancelDownload:p,deleteModel:x,startOllama:g,fetchOpenRouter:b,saveOpenRouterKey:w,setOpenRouterModel:j,fetchCloudProvider:N,setCloudProvider:E}}const NB=1e4;function EB(){const[e,t]=r.useState(null),[s,l]=r.useState(!0),o=r.useRef(0),c=r.useCallback(async()=>{try{const d=await me("/api/inference/status");t(d)}catch{}finally{l(!1)}},[]);return r.useEffect(()=>{c();const d=setInterval(c,NB);return()=>clearInterval(d)},[c]),Ao(r.useCallback(d=>{(d==="model:switch-started"||d==="model:switch-complete"||d==="model:switch-failed"||d==="inference:capabilities-changed")&&(o.current++,c())},[c])),{status:e,loading:s,refetch:c}}function MB(e){return e<1e3?`${e}ms`:`${(e/1e3).toFixed(1)}s`}function Tu({label:e,color:t}){return a.jsx("span",{className:`inline-flex items-center gap-0.5 px-1.5 py-0.5 text-[10px] font-medium rounded ${t}`,children:e})}function SB({models:e,downloading:t,onSetActive:s,onSetOrchestrator:l,onUnload:o,onDelete:c,onCancelDownload:d}){return e.length===0&&!t?a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg p-6 text-center",children:[a.jsx("p",{className:"text-sm text-neutral-400 mb-1",children:"No models installed yet"}),a.jsx("p",{className:"text-xs text-neutral-400/70",children:"Browse the catalog below to install your first model"})]}):a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[t&&!e.some(h=>h.tag===t.tag)&&a.jsxs("div",{className:"px-4 py-3",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"text-sm font-medium",children:t.tag}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(it,{size:14,className:"animate-spin text-white"}),a.jsxs("span",{className:"text-xs text-neutral-400",children:[t.percent,"%"]}),a.jsx("button",{onClick:d,className:"text-[11px] text-neutral-400 hover:text-critical transition-colors",children:"Cancel"})]})]}),a.jsxs("div",{className:"mt-2",children:[a.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-1.5",children:a.jsx("div",{className:"bg-white h-1.5 rounded-full transition-all duration-300",style:{width:`${t.percent}%`}})}),a.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:t.message})]})]}),e.map(h=>{const m=(t==null?void 0:t.tag)===h.tag,p=h.totalRequests>0?MB(Math.round(h.totalDurationMs/h.totalRequests)):null;return a.jsxs("div",{className:`px-4 py-3 ${h.isActive?"border-l-2 border-l-white bg-white/5":""}`,children:[a.jsxs("div",{className:"flex items-start justify-between gap-3",children:[a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[a.jsx("span",{className:"text-sm font-medium truncate",children:h.label}),h.family&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/[0.06] rounded text-neutral-400 font-mono",children:h.family}),h.isActive&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/10 text-white rounded font-medium",children:"Active"}),h.isOrchestrator&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-purple-500/20 text-purple-400 rounded font-medium",children:"Orchestrator"}),h.status==="loaded"&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-success/20 text-success rounded",children:"Loaded"})]}),a.jsxs("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[h.mlxModelId&&a.jsx(Tu,{label:"MLX",color:"bg-emerald-500/20 text-emerald-400"}),h.vision&&a.jsx(Tu,{label:"Vision",color:"bg-purple-500/20 text-purple-400"}),h.toolCalling&&a.jsx(Tu,{label:"Tools",color:"bg-white/10 text-neutral-300"}),h.sizeGB&&a.jsxs("span",{className:"text-[10px] text-neutral-400",children:[h.sizeGB," GB"]}),h.tag!==h.label&&a.jsx("span",{className:"text-[10px] text-neutral-600 font-mono",children:h.tag})]})]}),a.jsxs("div",{className:"hidden sm:flex items-center gap-4 text-[11px] text-neutral-400 shrink-0",children:[h.totalRequests>0&&a.jsxs("span",{children:[h.totalRequests.toLocaleString()," ",h.totalRequests===1?"request":"requests"]}),p&&a.jsxs("span",{children:["avg ",p]})]}),a.jsx("div",{className:"flex items-center gap-1.5 shrink-0",children:m?a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(it,{size:14,className:"animate-spin text-white"}),a.jsxs("span",{className:"text-xs text-neutral-400",children:[t.percent,"%"]}),a.jsx("button",{onClick:d,className:"text-[11px] text-neutral-400 hover:text-critical transition-colors",children:"Cancel"})]}):a.jsxs(a.Fragment,{children:[!h.isActive&&a.jsx("button",{onClick:()=>s(h.tag),className:"px-2 py-1 text-[11px] text-neutral-400 hover:text-white hover:bg-white/10 rounded transition-colors",title:"Set as active model",children:a.jsx(ZI,{size:14})}),a.jsx("button",{onClick:()=>l(h.isOrchestrator?"":h.tag),className:`px-2 py-1 text-[11px] rounded transition-colors ${h.isOrchestrator?"text-purple-400 hover:text-neutral-400 hover:bg-white/[0.06]":"text-neutral-400 hover:text-purple-400 hover:bg-purple-500/10"}`,title:h.isOrchestrator?"Reset orchestrator to auto":"Set as orchestrator model",children:a.jsx(Xq,{size:14})}),h.status==="loaded"&&!h.isActive&&!h.isOrchestrator&&a.jsx("button",{onClick:()=>o(h.tag),className:"px-2 py-1 text-[11px] text-neutral-400 hover:text-warning hover:bg-warning/10 rounded transition-colors",title:"Unload from memory",children:a.jsx(oI,{size:14})}),a.jsx("button",{onClick:()=>c(h.tag),className:"px-2 py-1 text-[11px] text-neutral-400 hover:text-critical hover:bg-critical/10 rounded transition-colors",title:"Delete model",children:a.jsx(Kt,{size:14})})]})})]}),m&&a.jsxs("div",{className:"mt-2",children:[a.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-1.5",children:a.jsx("div",{className:"bg-white h-1.5 rounded-full transition-all duration-300",style:{width:`${t.percent}%`}})}),a.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:t.message})]})]},h.tag)})]})}const Z9={mlx:{label:"MLX",color:"text-emerald-400",bg:"bg-emerald-500/20"},"llama-cpp":{label:"llama.cpp",color:"text-sky-400",bg:"bg-sky-500/20"},ollama:{label:"Ollama",color:"text-neutral-400",bg:"bg-white/[0.06]"}};function CB({capacity:e}){const t=e.totalVramGB>0?Math.min(100,Math.round(e.usedVramGB/e.totalVramGB*100)):0,s=t>80?"bg-red-500":t>60?"bg-amber-500":"bg-emerald-500";return a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"text-[10px] text-neutral-500 whitespace-nowrap",children:"VRAM"}),a.jsx("div",{className:"w-20 bg-white/[0.06] rounded-full h-1.5",children:a.jsx("div",{className:`${s} h-1.5 rounded-full transition-all duration-500`,style:{width:`${t}%`}})}),a.jsxs("span",{className:"text-[10px] text-neutral-500 whitespace-nowrap",children:[e.usedVramGB.toFixed(1),"/",e.totalVramGB.toFixed(0)," GB"]})]})}function ZB({activeProvider:e,mlxModel:t,switchInProgress:s,switchState:l,capacity:o}){const c=Z9[e]||Z9.ollama;return a.jsx("div",{className:"bg-white/[0.03] border border-white/[0.06] rounded-lg px-3 py-2 mb-3",children:a.jsxs("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("div",{className:`flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-medium ${c.bg} ${c.color}`,children:[e==="mlx"?a.jsx(ka,{size:10,weight:"fill"}):a.jsx(rI,{size:10}),c.label]}),t&&a.jsx("span",{className:"text-[10px] text-neutral-500 font-mono truncate max-w-[200px]",children:t})]}),(s||l)&&a.jsx("div",{className:"flex items-center gap-1.5",children:(l==null?void 0:l.status)==="switching"||s?a.jsxs(a.Fragment,{children:[a.jsx(it,{size:12,className:"animate-spin text-sky-400"}),a.jsxs("span",{className:"text-[10px] text-sky-400",children:["Switching to ",(l==null?void 0:l.model)||"new model","..."]})]}):(l==null?void 0:l.status)==="complete"?a.jsxs(a.Fragment,{children:[a.jsx(y0,{size:12,className:"text-emerald-400"}),a.jsxs("span",{className:"text-[10px] text-emerald-400",children:["Now using ",l.model," via ",l.provider]})]}):(l==null?void 0:l.status)==="failed"?a.jsxs(a.Fragment,{children:[a.jsx(ms,{size:12,className:"text-red-400"}),a.jsxs("span",{className:"text-[10px] text-red-400",children:["Switch failed: ",l.reason]})]}):null}),o&&o.totalVramGB>0&&a.jsx(CB,{capacity:o})]})})}const HB=[{value:"all",label:"All"},{value:"fits",label:"Fits your device"},{value:"vision",label:"Vision"},{value:"tools",label:"Tool calling"}];function _B(e){return{tiny:"Tiny (< 4 GB)",small:"Small (4-8 GB)",medium:"Medium (8-16 GB)",large:"Large (16-32 GB)",xlarge:"XLarge (32 GB+)"}[e]||e}function VB({catalog:e,device:t,memoryTier:s,loading:l,loaded:o,downloading:c,onInstall:d,onCancelDownload:h,onFetchCatalog:m}){const[p,x]=r.useState(!1),[g,b]=r.useState("all"),w=()=>{!p&&!o&&m(),x(A=>!A)},j=e.filter(A=>g==="fits"?A.fits:g==="vision"?A.vision:g==="tools"?A.toolCalling:!0),E=["tiny","small","medium","large","xlarge"].map(A=>({tier:A,models:j.filter(C=>C.tier===A)})).filter(A=>A.models.length>0);return a.jsxs("div",{children:[a.jsxs("button",{onClick:w,className:"flex items-center gap-2 text-sm font-medium text-neutral-400 uppercase tracking-wider hover:text-white transition-colors mb-3",children:["Browse Models",p?a.jsx(Wq,{size:14}):a.jsx(xa,{size:14})]}),p&&a.jsxs(a.Fragment,{children:[t&&a.jsxs("div",{className:"bg-white/5 rounded-lg p-3 mb-4 text-xs text-neutral-400",children:[a.jsx("span",{children:t.cpuModel}),a.jsx("span",{className:"mx-1.5",children:"·"}),a.jsxs("span",{children:[t.totalMemoryGB," GB RAM"]}),a.jsx("span",{className:"mx-1.5",children:"·"}),a.jsxs("span",{children:[s," tier"]})]}),a.jsx("div",{className:"flex gap-1.5 mb-4 flex-wrap",children:HB.map(A=>a.jsx("button",{onClick:()=>b(A.value),className:`px-2.5 py-1 text-[11px] rounded-full border transition-colors ${g===A.value?"border-white/20 bg-white/10 text-white":"border-white/[0.08] text-neutral-400 hover:border-white/20"}`,children:A.label},A.value))}),l?a.jsxs("div",{className:"flex items-center justify-center py-8 gap-2 text-sm text-neutral-400",children:[a.jsx(it,{size:16,className:"animate-spin"})," Loading catalog..."]}):a.jsxs("div",{className:"space-y-4",children:[E.map(A=>a.jsxs("div",{children:[a.jsx("h4",{className:"text-[11px] font-medium text-neutral-400/70 uppercase tracking-wider mb-2",children:_B(A.tier)}),a.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:A.models.map(C=>{const M=(c==null?void 0:c.tag)===C.tag,S=!c&&!C.installed;return a.jsxs("div",{className:`px-4 py-3 ${C.fits?"":"opacity-50"}`,children:[a.jsxs("div",{className:"flex items-start justify-between gap-3",children:[a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[a.jsx("span",{className:"text-sm font-medium",children:C.label}),a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/[0.06] rounded text-neutral-400 font-mono",children:C.family}),C.recommended&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-success/20 text-success rounded font-medium",children:"Recommended"})]}),a.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:C.description}),a.jsxs("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[C.vision&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-purple-500/20 text-purple-400 rounded",children:"Vision"}),C.toolCalling&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/10 text-neutral-300 rounded",children:"Tools"}),a.jsxs("span",{className:"text-[10px] text-neutral-400",children:[C.sizeGB," GB"]}),!C.fits&&a.jsxs("span",{className:"text-[10px] text-warning",children:["Needs ",C.minRAM," GB RAM"]})]})]}),a.jsx("div",{className:"shrink-0",children:C.installed?a.jsx("span",{className:"text-[11px] text-success px-2 py-1",children:"Installed"}):M?a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(it,{size:14,className:"animate-spin text-white"}),a.jsxs("span",{className:"text-xs text-neutral-400",children:[c.percent,"%"]}),a.jsx("button",{onClick:h,className:"text-[11px] text-neutral-400 hover:text-critical transition-colors",children:"Cancel"})]}):a.jsxs("button",{onClick:()=>d(C.tag),disabled:!S||!C.fits,className:"flex items-center gap-1 px-2.5 py-1 text-[11px] font-medium bg-white text-black rounded hover:bg-neutral-200 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:[a.jsx(iI,{size:12})," Install"]})})]}),M&&a.jsxs("div",{className:"mt-2",children:[a.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-1.5",children:a.jsx("div",{className:"bg-white h-1.5 rounded-full transition-all duration-300",style:{width:`${c.percent}%`}})}),a.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:c.message})]})]},C.tag)})})]},A.tier)),j.length===0&&a.jsx("p",{className:"text-sm text-neutral-400 text-center py-4",children:"No models match this filter"})]})]})]})}function TB({open:e,modelTag:t,modelLabel:s,isActive:l,isOrchestrator:o,loading:c,onConfirm:d,onClose:h}){return a.jsxs(ba,{open:e,onClose:h,title:"Delete model",children:[a.jsxs("p",{className:"text-sm mb-3",children:["Remove ",a.jsx("strong",{children:s})," ",a.jsxs("span",{className:"text-neutral-400 font-mono text-xs",children:["(",t,")"]})," from your machine?"]}),l&&a.jsx("div",{className:"bg-warning/10 border border-warning/30 rounded-lg p-3 mb-3",children:a.jsx("p",{className:"text-xs text-warning",children:"This is your active model. Deleting it will clear the active model setting. You'll need to select a different model afterward."})}),o&&a.jsx("div",{className:"bg-purple-500/10 border border-purple-500/30 rounded-lg p-3 mb-3",children:a.jsx("p",{className:"text-xs text-purple-400",children:"This is your orchestrator model. Deleting it will reset the orchestrator to auto mode."})}),a.jsx("p",{className:"text-xs text-neutral-400 mb-4",children:"The model files will be removed from disk. You can reinstall it from the catalog later."}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx("button",{onClick:h,disabled:c,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors disabled:opacity-50",children:"Cancel"}),a.jsxs("button",{onClick:d,disabled:c,className:"px-3 py-1.5 text-xs font-medium bg-critical/10 border border-critical/30 text-critical rounded-lg hover:bg-critical/20 transition-colors disabled:opacity-50 flex items-center gap-1.5",children:[c&&a.jsx(it,{size:12,className:"animate-spin"}),c?"Deleting...":"Delete"]})]})]})}function LB(){var rt;const{data:e,refetch:t}=ye("/api/settings/anthropic_api_key"),[s,l]=r.useState(!1),[o,c]=r.useState(""),[d,h]=r.useState(!1),[m,p]=r.useState(null),[x,g]=r.useState(!1),[b,w]=r.useState(!1),[j,N]=r.useState(""),[E,A]=r.useState(!1),[C,M]=r.useState(""),[S,L]=r.useState([]),[V,_]=r.useState(!1),{installed:H,catalog:T,device:D,memoryTier:F,ollamaRunning:P,loading:U,catalogLoading:W,catalogLoaded:se,downloading:O,openRouterKey:$,openRouterModel:B,openRouterConnected:Q,fetchInstalled:J,fetchCatalog:k,setActiveModel:Y,setOrchestratorModel:K,unloadModel:q,installModel:z,cancelDownload:I,deleteModel:te,startOllama:fe,fetchOpenRouter:pe,saveOpenRouterKey:Ee,setOpenRouterModel:Se,cloudProvider:Ve,fetchCloudProvider:Pe,setCloudProvider:Te}=jB(),{status:Ae}=EB(),[qt,Ce]=r.useState(null);Ao(r.useCallback((je,et)=>{const Ue=et;je==="model:switch-started"?Ce({model:Ue.model,status:"switching"}):je==="model:switch-complete"?(Ce({model:Ue.model,status:"complete",provider:Ue.provider}),J(),setTimeout(()=>Ce(null),3e3)):je==="model:switch-failed"&&(Ce({model:Ue.model,status:"failed",reason:Ue.reason}),setTimeout(()=>Ce(null),5e3))},[J])),r.useEffect(()=>{J(),pe(),Pe()},[J,pe,Pe]),r.useEffect(()=>{Q&&(_(!0),me("/api/models/openrouter").then(je=>{L(je.data.models),_(!1)}).catch(()=>_(!1)))},[Q]);const Tt=r.useMemo(()=>{const je=C.toLowerCase().trim();return je?S.filter(et=>et.id.toLowerCase().includes(je)||et.name.toLowerCase().includes(je)):S},[S,C]),ie=(je,et=8)=>je?je.slice(0,et)+"•".repeat(Math.max(0,Math.min(je.length-et,20))):"Not set",pt=async()=>{if(o.trim()){h(!0);try{await me("/api/settings/anthropic_api_key",{method:"PUT",body:JSON.stringify({value:o.trim()})}),ue("success","API key updated"),l(!1),c(""),t()}catch{ue("error","Couldn't save API key")}finally{h(!1)}}},Fe=async()=>{A(!0);try{await Ee(j.trim()),w(!1),N("")}catch{ue("error","Couldn't save OpenRouter key")}finally{A(!1)}},ut=je=>{const et=H.find(Ue=>Ue.tag===je);p({tag:je,label:(et==null?void 0:et.label)||je,isActive:(et==null?void 0:et.isActive)||!1,isOrchestrator:(et==null?void 0:et.isOrchestrator)||!1})},yt=r.useCallback(async()=>{if(!m||x)return;g(!0);const je=await te(m.tag);g(!1),je&&p(null)},[m,x,te]);return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Cloud Provider"}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("button",{onClick:()=>Te("anthropic"),className:`flex-1 px-3 py-2 rounded-lg text-sm font-medium transition-colors border ${Ve==="anthropic"?"bg-white/10 border-white/20 text-white":"bg-white/[0.03] border-white/[0.06] text-neutral-400 hover:bg-white/[0.06]"}`,children:"Anthropic"}),a.jsx("button",{onClick:()=>Te("openrouter"),className:`flex-1 px-3 py-2 rounded-lg text-sm font-medium transition-colors border ${Ve==="openrouter"?"bg-white/10 border-white/20 text-white":"bg-white/[0.03] border-white/[0.06] text-neutral-400 hover:bg-white/[0.06]"}`,children:"OpenRouter"})]}),a.jsx("p",{className:"text-[10px] text-neutral-500 mt-1.5",children:"Which provider to use when running in cloud mode"})]}),a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Anthropic API"}),a.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:s?a.jsxs("div",{className:"px-4 py-3",children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"API Key"}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("input",{type:"password",value:o,onChange:je=>c(je.target.value),placeholder:"sk-ant-...",className:"flex-1 bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm text-white placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20",autoFocus:!0}),a.jsx("button",{onClick:pt,disabled:d||!o.trim(),className:"text-success hover:text-success/80 transition-colors disabled:opacity-50",children:a.jsx(ns,{size:16})}),a.jsx("button",{onClick:()=>{l(!1),c("")},className:"text-neutral-400 hover:text-white transition-colors",children:a.jsx(Yt,{size:16})})]})]}):a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-sm text-neutral-400",children:"API Key"}),a.jsx("span",{className:"text-sm font-medium ml-3",children:ie(e==null?void 0:e.value,12)})]}),a.jsx("button",{onClick:()=>l(!0),className:"text-neutral-400 hover:text-white transition-colors",children:a.jsx(so,{size:14})})]})})]}),a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:a.jsxs("span",{className:"flex items-center gap-1.5",children:["OpenRouter",Q&&a.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full bg-success"})]})}),a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[b?a.jsxs("div",{className:"px-4 py-3",children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"API Key"}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("input",{type:"password",value:j,onChange:je=>N(je.target.value),placeholder:"sk-or-...",className:"flex-1 bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm text-white placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20",autoFocus:!0}),a.jsx("button",{onClick:Fe,disabled:E,className:"text-success hover:text-success/80 transition-colors disabled:opacity-50",children:a.jsx(ns,{size:16})}),a.jsx("button",{onClick:()=>{w(!1),N("")},className:"text-neutral-400 hover:text-white transition-colors",children:a.jsx(Yt,{size:16})})]}),a.jsx("p",{className:"text-[10px] text-neutral-500 mt-1.5",children:"300+ models from every AI lab. Leave empty to remove."})]}):a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-sm text-neutral-400",children:"API Key"}),a.jsx("span",{className:"text-sm font-medium ml-3",children:ie($,8)})]}),a.jsx("button",{onClick:()=>w(!0),className:"text-neutral-400 hover:text-white transition-colors",children:a.jsx(so,{size:14})})]}),Q&&a.jsxs("div",{className:"px-4 py-3",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx(ka,{size:14,className:"text-amber-400"}),a.jsx("span",{className:"text-sm text-neutral-400",children:"Model"}),B&&a.jsx("span",{className:"text-xs text-white/60 ml-auto",children:B})]}),a.jsxs("div",{className:"relative mb-2",children:[a.jsx(ga,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-neutral-500"}),a.jsx("input",{type:"text",value:C,onChange:je=>M(je.target.value),placeholder:"Search 300+ models...",className:"w-full bg-white/[0.04] border border-white/[0.08] rounded pl-8 pr-3 py-1.5 text-xs text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),V?a.jsxs("div",{className:"flex items-center gap-1.5 py-2 text-xs text-neutral-400",children:[a.jsx(it,{size:12,className:"animate-spin"})," Loading models..."]}):a.jsxs("div",{className:"max-h-48 overflow-y-auto space-y-px",children:[Tt.slice(0,50).map(je=>{const et=je.id===B,Ue=je.contextLength>=1e6?`${Math.round(je.contextLength/1e6)}M`:je.contextLength>=1e3?`${Math.round(je.contextLength/1e3)}K`:String(je.contextLength);return a.jsxs("button",{onClick:()=>Se(je.id),className:`w-full text-left px-2.5 py-1.5 rounded text-xs transition-colors ${et?"bg-white/10 text-white":"text-neutral-300 hover:bg-white/[0.06]"}`,children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"truncate font-medium",children:je.name}),a.jsxs("span",{className:"flex items-center gap-1.5 text-neutral-500 shrink-0 ml-2",children:[je.isFree&&a.jsx("span",{className:"text-green-400",children:"free"}),je.supportsTools&&a.jsx("span",{children:"tools"}),je.supportsVision&&a.jsx("span",{children:"vision"}),a.jsx("span",{children:Ue})]})]}),a.jsx("div",{className:"text-[10px] text-neutral-500 truncate",children:je.id})]},je.id)}),Tt.length>50&&a.jsxs("p",{className:"text-[10px] text-neutral-500 px-2.5 py-1",children:[Tt.length-50," more. Refine your search."]}),Tt.length===0&&a.jsx("p",{className:"text-xs text-neutral-500 px-2.5 py-2",children:C?"No models match your search":"No models available"})]})]})]})]}),a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Local Models"}),Ae&&a.jsx(ZB,{activeProvider:Ae.activeProvider,mlxModel:(rt=Ae.mlx)==null?void 0:rt.model,switchInProgress:Ae.switchInProgress,switchState:qt,capacity:Ae.capacity}),!U&&!P&&a.jsxs("div",{className:"bg-warning/10 border border-warning/30 rounded-lg p-3 mb-3 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(r3,{size:16,className:"text-warning shrink-0"}),a.jsx("p",{className:"text-xs text-warning",children:"Ollama is not running"})]}),a.jsx("button",{onClick:fe,disabled:!!O,className:"px-2.5 py-1 text-[11px] font-medium bg-warning/10 border border-warning/30 text-warning rounded hover:bg-warning/20 disabled:opacity-50 transition-colors",children:(O==null?void 0:O.tag)===""?"Starting...":"Start Ollama"})]}),U?a.jsxs("div",{className:"flex items-center justify-center py-8 gap-2 text-sm text-neutral-400",children:[a.jsx(it,{size:16,className:"animate-spin"})," Loading models..."]}):a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"mb-4",children:[a.jsx("div",{className:"flex items-center justify-between mb-2",children:a.jsxs("h3",{className:"text-xs text-neutral-400",children:["Installed Models",H.length>0&&a.jsxs("span",{className:"ml-1.5 text-neutral-600",children:["(",H.length,")"]})]})}),a.jsx(SB,{models:H,downloading:O,onSetActive:Y,onSetOrchestrator:K,onUnload:q,onDelete:ut,onCancelDownload:I})]}),a.jsx(VB,{catalog:T,device:D,memoryTier:F,loading:W,loaded:se,downloading:O,onInstall:z,onCancelDownload:I,onFetchCatalog:k})]})]}),a.jsx(TB,{open:!!m,modelTag:(m==null?void 0:m.tag)||"",modelLabel:(m==null?void 0:m.label)||"",isActive:(m==null?void 0:m.isActive)||!1,isOrchestrator:(m==null?void 0:m.isOrchestrator)||!1,loading:x,onConfirm:yt,onClose:()=>{x||p(null)}})]})}function kB(){const[e,t]=r.useState(null),[s,l]=r.useState([]),[o,c]=r.useState(""),[d,h]=r.useState(!1),[m,p]=r.useState(!1),x=r.useCallback(async()=>{var j;try{const N=await me("/api/voice/providers");if(t(N.data),N.data.voiceboxAvailable){const[E,A]=await Promise.all([me("/api/voice/profiles"),me("/api/settings/orchestrator_voice_profile_id")]);l(E.data||[]),c(((j=A.data)==null?void 0:j.value)||"")}}catch{t(null)}},[]),g=r.useRef(!1);r.useEffect(()=>{e!=null&&e.voiceboxAvailable&&(g.current=!0)},[e==null?void 0:e.voiceboxAvailable]),r.useEffect(()=>{let j=!1,N;return(async()=>{await x(),!j&&!g.current&&(N=setInterval(async()=>{if(j||g.current){N&&clearInterval(N);return}await x()},1e4))})(),()=>{j=!0,N&&clearInterval(N)}},[x]);const b=r.useCallback(async()=>{p(!0);try{await me("/api/voice/enable",{method:"POST"}),await x()}catch{}finally{p(!1)}},[x]),w=r.useCallback(async j=>{h(!0),c(j);try{await me("/api/settings/orchestrator_voice_profile_id",{method:"PUT",body:JSON.stringify({value:j})})}catch{c("")}finally{h(!1)}},[]);return a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Voice"}),a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[e&&a.jsx("div",{className:"px-4 py-3",children:a.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[a.jsx("span",{className:`w-2 h-2 rounded-full ${e.voiceboxAvailable?"bg-success":"bg-white/10"}`}),a.jsx("span",{className:e.voiceboxAvailable?"":"text-neutral-400",children:e.voiceboxAvailable?"Voicebox is running":"Voicebox is not running"})]})}),e&&!e.voiceboxAvailable&&a.jsxs("div",{className:"px-4 py-3",children:[a.jsx("button",{onClick:b,disabled:m,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-lg hover:bg-white/10 disabled:opacity-50 transition-colors",children:m?a.jsxs(a.Fragment,{children:[a.jsx(it,{size:14,className:"animate-spin"})," Starting Voicebox..."]}):"Enable Voicebox"}),a.jsx("p",{className:"text-xs text-neutral-400 mt-1.5",children:"Local speech-to-text and text-to-speech using Whisper and Coqui TTS."})]}),(e==null?void 0:e.voiceboxAvailable)&&a.jsx("div",{className:"px-4 py-3",children:a.jsxs("label",{className:"flex items-center justify-between gap-4",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium",children:"Orchestrator voice"}),a.jsx("p",{className:"text-xs text-neutral-400",children:"Voice used when chatting from the main conversation"})]}),a.jsxs("select",{value:o,onChange:j=>w(j.target.value),disabled:d,className:"bg-black border border-white/[0.08] rounded-md px-3 py-1.5 text-sm min-w-[180px]",children:[a.jsx("option",{value:"",children:"Default voice"}),s.map(j=>a.jsx("option",{value:j.id,children:j.name},j.id))]})]})})]})]})}const RB=["Cloud sync across devices","Cloud task dispatch","OAuth integrations (Gmail, Slack)","Webhook relay","Cloud dashboard at ohwow.fun","Team management"];function eZ(){const{tier:e,loading:t}=wo(),s=Ka(),[l,o]=r.useState("general"),c=e!=="free",{data:d}=ye("/health"),{data:h}=ye("/api/settings/license_key"),{data:m}=ye("/api/settings/cloud_url"),p=()=>{vN(),s("/login",{replace:!0})},x=(g,b=8)=>g?g.slice(0,b)+"•".repeat(Math.max(0,Math.min(g.length-b,20))):"Not set";return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Settings",subtitle:"Runtime configuration"}),!t&&a.jsx("div",{className:"mb-6",children:a.jsx("span",{"data-testid":"runtime-settings-tier-badge",className:`inline-flex items-center px-2.5 py-1 rounded-md text-xs font-semibold ${c?"bg-success/15 text-success":"bg-cyan-500/15 text-cyan-400"}`,children:c?"Connected":"Local"})}),d&&a.jsxs("div",{className:"mb-2 text-xs text-neutral-400",children:[a.jsx("span",{className:d.status==="healthy"?"text-success":"text-warning",children:"●"})," ","Connected · Running on v",d.version," · Up ",WC(d.uptime)]}),a.jsx("div",{className:"flex gap-1 mb-6 border-b border-white/[0.08]",children:[{key:"general",label:"General"},{key:"integrations",label:"Integrations"},{key:"models",label:"Models"}].map(g=>a.jsx("button",{onClick:()=>o(g.key),className:`px-3 py-2 text-xs font-medium border-b-2 transition-colors ${l===g.key?"border-white text-white":"border-transparent text-neutral-400 hover:text-white"}`,children:g.label},g.key))}),l==="general"&&a.jsxs(a.Fragment,{children:[c&&!t&&a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Connection"}),a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[a.jsx(_a,{label:"Cloud URL",value:(m==null?void 0:m.value)||"Not configured"}),a.jsx(_a,{label:"Status",value:"Connected",valueColor:"text-success"}),a.jsx(_a,{label:"License key",value:x(h==null?void 0:h.value)})]})]}),a.jsx(wB,{}),a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Quick links"}),a.jsxs("div",{className:"flex gap-2 flex-wrap",children:[a.jsx(G0,{to:"/connections",className:"px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/[0.08] rounded-lg hover:border-white/20 transition-colors",children:"A2A Connections"}),a.jsx(G0,{to:"/schedules",className:"px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/[0.08] rounded-lg hover:border-white/20 transition-colors",children:"Schedules"}),a.jsx(G0,{to:"/automations",className:"px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/[0.08] rounded-lg hover:border-white/20 transition-colors",children:"Automations"})]})]}),!c&&!t&&a.jsxs("div",{"data-testid":"runtime-settings-upgrade-cta",className:"mb-6 bg-white/[0.02] border border-white/[0.08] rounded-lg p-5",children:[a.jsx("h3",{className:"text-sm font-semibold text-white mb-2",children:"Connect to ohwow.fun cloud"}),a.jsx("p",{className:"text-xs text-neutral-400 mb-4",children:"Add cloud features to your local runtime:"}),a.jsx("ul",{className:"space-y-1.5 mb-4",children:RB.map(g=>a.jsxs("li",{className:"flex items-center gap-2 text-xs text-neutral-400",children:[a.jsx("span",{className:"text-white",children:"+"}),g]},g))}),a.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-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:"Get a license key"})]}),a.jsx("div",{className:"mb-6",children:a.jsx("button",{onClick:p,className:"px-4 py-2 text-sm text-critical border border-critical/30 rounded-lg hover:bg-critical/10 transition-colors",children:"Disconnect"})})]}),l==="integrations"&&a.jsx(AB,{}),l==="models"&&a.jsx(LB,{}),l==="integrations"&&a.jsx(kB,{})]})}const DB=["all","lead","client","partner","vendor"];function FB(){const e=va(["contact:upserted","contact:removed"]),[t,s]=r.useState("all"),[l,o]=r.useState(""),[c,d]=r.useState(!1),{data:h,loading:m,refetch:p}=ye("/api/contacts",[e]),x=r.useMemo(()=>{if(!h)return[];let g=h;if(t!=="all"&&(g=g.filter(b=>b.contact_type===t)),l.trim()){const b=l.toLowerCase();g=g.filter(w=>w.name.toLowerCase().includes(b)||(w.email||"").toLowerCase().includes(b)||(w.company||"").toLowerCase().includes(b))}return g},[h,t,l]);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Contacts",subtitle:"People and companies your agents interact with",action:a.jsxs("button",{onClick:()=>d(!c),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Zt,{size:14})," New contact"]})}),c&&a.jsx(OB,{onClose:()=>d(!1),onSuccess:p}),a.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:DB.map(g=>a.jsx("button",{onClick:()=>s(g),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${t===g?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:g},g))}),a.jsxs("div",{className:"relative mb-4",children:[a.jsx(ga,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:l,onChange:g=>o(g.target.value),placeholder:"Search by name, email, or company...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),m?a.jsx(We,{count:5}):x.length?a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:x.map(g=>a.jsxs(Be,{to:`/contacts/${g.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[a.jsxs("div",{className:"min-w-0 mr-3",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:g.name}),a.jsxs("p",{className:"text-xs text-neutral-400",children:[g.email&&a.jsx("span",{children:g.email}),g.email&&g.company&&" · ",g.company&&a.jsx("span",{className:"text-white",children:g.company})]})]}),a.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[a.jsx("span",{className:"text-xs text-neutral-400 capitalize",children:g.contact_type}),a.jsx(ft,{status:g.status})]})]},g.id))}):a.jsx(bt,{icon:a.jsx(Gq,{size:32}),title:"No contacts yet",description:l?`No contacts matching "${l}".`:"Add your first contact to get started."})]})}function OB({onClose:e,onSuccess:t}){const[s,l]=r.useState(""),[o,c]=r.useState(""),[d,h]=r.useState(""),[m,p]=r.useState("lead"),[x,g]=r.useState(!1),b=async w=>{if(w.preventDefault(),!!s.trim()){g(!0);try{await me("/api/contacts",{method:"POST",body:JSON.stringify({name:s.trim(),email:o.trim()||void 0,company:d.trim()||void 0,contact_type:m})}),t(),e()}catch{}finally{g(!1)}}};return a.jsxs("form",{onSubmit:b,className:"border border-white/[0.08] rounded-lg p-4 mb-4 space-y-3",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),a.jsx("input",{value:s,onChange:w=>l(w.target.value),placeholder:"Contact name",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Email"}),a.jsx("input",{value:o,onChange:w=>c(w.target.value),placeholder:"email@example.com",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Company"}),a.jsx("input",{value:d,onChange:w=>h(w.target.value),placeholder:"Company name",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Type"}),a.jsxs("select",{value:m,onChange:w=>p(w.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"lead",children:"Lead"}),a.jsx("option",{value:"client",children:"Client"}),a.jsx("option",{value:"partner",children:"Partner"}),a.jsx("option",{value:"vendor",children:"Vendor"})]})]})]}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:x||!s.trim(),className:"px-3 py-1.5 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:x?"Creating...":"Create contact"})]})]})}function H9(e){return e?/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"):new Date(NaN)}function H1(e){if(!e)return"";const t=Date.now()-H9(e).getTime();if(!Number.isFinite(t)||t<0)return"just now";const s=Math.floor(t/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const l=Math.floor(s/60);if(l<24)return`${l}h ago`;const o=Math.floor(l/24);return o<7?`${o}d ago`:H9(e).toLocaleDateString()}function zB(e){if(e&&typeof e=="object"&&!Array.isArray(e))return e;if(typeof e=="string")try{const t=JSON.parse(e);return t&&typeof t=="object"?t:{}}catch{return{}}return{}}function qB(e){if(Array.isArray(e))return e;if(typeof e=="string")try{const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}return[]}function _9(e){return e?e.replace(/^x:/,"").replace(/:/g," ").replace(/_/g," "):"event"}function IB(e,t){const s=new Set(e.map(l=>l.kind??l.event_type??""));return s.has("plan:paid")?{stage:"paid",color:"bg-emerald-500/20 text-emerald-300 border-emerald-500/40"}:s.has("trial:started")?{stage:"trial",color:"bg-violet-500/20 text-violet-300 border-violet-500/40"}:s.has("demo:booked")?{stage:"demo",color:"bg-blue-500/20 text-blue-300 border-blue-500/40"}:s.has("x:reached")?{stage:"engaged",color:"bg-sky-500/20 text-sky-300 border-sky-500/40"}:t?{stage:"contacted",color:"bg-teal-500/20 text-teal-300 border-teal-500/40"}:s.has("x:qualified")?{stage:"qualified",color:"bg-amber-500/20 text-amber-300 border-amber-500/40"}:{stage:"lead",color:"bg-neutral-500/20 text-neutral-300 border-neutral-500/40"}}function $B(e){return e==="high"?"text-red-400":e==="medium"?"text-amber-400":"text-neutral-400"}function BB(e){return e.sendConfirmed===!0?{label:"shipped",cls:"bg-emerald-500/15 text-emerald-300 border-emerald-500/30"}:e.sendConfirmed===!1?{label:"not confirmed",cls:"bg-red-500/15 text-red-300 border-red-500/30"}:e.status==="dispatched"?{label:"dispatched",cls:"bg-blue-500/15 text-blue-300 border-blue-500/30"}:e.status==="ignored"?{label:"ignored",cls:"bg-neutral-500/15 text-neutral-400 border-neutral-500/30"}:{label:e.status||"open",cls:"bg-amber-500/15 text-amber-300 border-amber-500/30"}}function PB(){const{id:e}=Il(),t=Ka(),s=va(["contact:upserted","dm:message","approval:created"]),{data:l,loading:o,refetch:c}=ye(e?`/api/contacts/${e}`:null,[s]),{data:d}=ye(e?`/api/contacts/${e}/timeline`:null,[s]),h=r.useMemo(()=>zB(l==null?void 0:l.custom_fields),[l]),m=typeof h.x_conversation_pair=="string"?h.x_conversation_pair:null,p=typeof h.x_handle=="string"?h.x_handle:null,{data:x}=ye(m?`/api/conversations/${encodeURIComponent(m)}`:null,[s]),[g,b]=r.useState(!1),[w,j]=r.useState(!1),[N,E]=r.useState({name:"",email:"",phone:"",company:"",notes:""}),[A,C]=r.useState(!1),[M,S]=r.useState(!1),L=r.useCallback(()=>{l&&(E({name:l.name??"",email:l.email??"",phone:l.phone??"",company:l.company??"",notes:l.notes??""}),j(!0))},[l]),V=r.useCallback(async()=>{if(!(!e||!N.name.trim())){C(!0);try{await me(`/api/contacts/${e}`,{method:"PUT",body:JSON.stringify({name:N.name.trim(),email:N.email.trim()||null,phone:N.phone.trim()||null,company:N.company.trim()||null,notes:N.notes.trim()||null})}),j(!1),c()}finally{C(!1)}}},[e,N,c]),_=r.useCallback(async()=>{if(!(!e||!confirm("Delete this contact? This cannot be undone."))){S(!0);try{await me(`/api/contacts/${e}`,{method:"DELETE"}),t("/contacts")}catch{S(!1)}}},[e,t]);if(o&&!l)return a.jsx("div",{className:"p-6 text-neutral-400 text-sm",children:"Loading."});if(!l)return a.jsx("div",{className:"p-6 text-neutral-400",children:"Contact not found"});const H=d??[],T=qB(l.tags).filter($=>typeof $=="string"),D=(x==null?void 0:x.thread.lastSeenAt)??l.updated_at,F=(x==null?void 0:x.messages.filter($=>$.direction==="inbound").length)??0,P=(x==null?void 0:x.messages.filter($=>$.direction==="outbound").length)??0,U=IB(H,P>0),W=(x==null?void 0:x.nextSteps.filter($=>$.status==="open"||$.status==="dispatched").length)??0,se=(x==null?void 0:x.approvals.pending.length)??0,O=(x==null?void 0:x.messages.slice(-8))??[];return a.jsxs("div",{className:"p-6 max-w-5xl",children:[a.jsxs(Be,{to:"/contacts",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4",children:[a.jsx(ds,{size:14})," Back to contacts"]}),a.jsxs("div",{className:"flex items-start justify-between gap-4 mb-6",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[a.jsx("h1",{className:"text-2xl font-semibold truncate",children:l.name}),a.jsx("span",{className:`text-[10px] uppercase tracking-wider px-2 py-0.5 rounded-full border ${U.color}`,children:U.stage})]}),a.jsxs("p",{className:"text-xs text-neutral-400",children:[l.contact_type,p&&a.jsxs(a.Fragment,{children:[" · ",a.jsxs("span",{className:"text-sky-400",children:["@",p]})]}),typeof h.x_source=="string"&&a.jsxs(a.Fragment,{children:[" · via ",h.x_source]}),D&&a.jsxs(a.Fragment,{children:[" · last activity ",H1(D)]})]}),T.length>0&&a.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:T.map($=>a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/5 text-neutral-300 border border-white/10",children:$},$))})]}),a.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[m&&a.jsxs(Be,{to:`/messages?pair=${encodeURIComponent(m)}`,className:"inline-flex items-center gap-1 px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-lg hover:bg-white/10",children:[a.jsx(J0,{size:14})," Open thread"]}),!w&&a.jsx("button",{onClick:L,className:"px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-lg hover:bg-white/10",children:"Edit"}),a.jsxs("button",{onClick:_,disabled:M,className:"inline-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",children:[a.jsx(Kt,{size:14})," ",M?"Deleting":"Delete"]})]})]}),a.jsxs("div",{className:"grid grid-cols-4 gap-3 mb-6",children:[a.jsx(_1,{label:"DMs in",value:F,hint:x?"observed":"no thread"}),a.jsx(_1,{label:"DMs out",value:P,hint:P?"sent":"not reached"}),a.jsx(_1,{label:"Next steps",value:W,hint:W?"open + dispatched":"nothing pending",accent:W>0?"warn":void 0}),a.jsx(_1,{label:"Pending approval",value:se,hint:se?"awaiting you":"clear",accent:se>0?"warn":void 0})]}),w&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 mb-6 space-y-3",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsx(V1,{label:"Name",value:N.name,onChange:$=>E(B=>({...B,name:$}))}),a.jsx(V1,{label:"Email",value:N.email,onChange:$=>E(B=>({...B,email:$}))}),a.jsx(V1,{label:"Phone",value:N.phone,onChange:$=>E(B=>({...B,phone:$}))}),a.jsx(V1,{label:"Company",value:N.company,onChange:$=>E(B=>({...B,company:$}))})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Notes"}),a.jsx("textarea",{value:N.notes,onChange:$=>E(B=>({...B,notes:$.target.value})),rows:3,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white resize-none focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx("button",{onClick:()=>j(!1),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white",children:"Cancel"}),a.jsx("button",{onClick:V,disabled:A||!N.name.trim(),className:"px-3 py-1.5 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50",children:A?"Saving":"Save"})]})]}),m&&a.jsxs("section",{className:"mb-6",children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsxs("h2",{className:"text-[11px] uppercase tracking-wider text-neutral-400",children:["Thread · last ",O.length," of ",(x==null?void 0:x.messages.length)??0]}),a.jsxs(Be,{to:`/messages?pair=${encodeURIComponent(m)}`,className:"text-[11px] text-neutral-400 hover:text-white inline-flex items-center gap-1",children:["Full thread ",a.jsx(go,{size:12})]})]}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.06]",children:O.length===0?a.jsx("div",{className:"px-4 py-6 text-sm text-neutral-500",children:"No observed messages yet."}):O.map($=>a.jsxs("div",{className:"px-4 py-3",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1 text-[11px]",children:[a.jsx("span",{className:$.direction==="outbound"?"text-emerald-400":"text-sky-400",children:$.direction}),a.jsx("span",{className:"text-neutral-500",children:H1($.observedAt)}),$.isMedia&&a.jsx("span",{className:"text-neutral-500",children:"· media"})]}),a.jsx("div",{className:"text-sm whitespace-pre-wrap break-words",children:$.text??a.jsx("span",{className:"italic text-neutral-500",children:"(empty)"})})]},$.id))})]}),x&&x.nextSteps.length>0&&a.jsxs("section",{className:"mb-6",children:[a.jsx("h2",{className:"text-[11px] uppercase tracking-wider text-neutral-400 mb-2",children:"Next steps from this conversation"}),a.jsx("div",{className:"space-y-2",children:x.nextSteps.map($=>{const B=BB($);return a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsxs("div",{className:"flex items-center justify-between gap-2 mb-1 text-[11px]",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"uppercase tracking-wider text-neutral-400",children:_9($.stepType)}),a.jsx("span",{className:$B($.urgency),children:$.urgency}),a.jsx("span",{className:`px-1.5 py-0.5 rounded border ${B.cls}`,children:B.label})]}),a.jsx("span",{className:"text-neutral-500",children:H1($.createdAt)})]}),a.jsx("div",{className:"text-sm mb-1",children:$.text}),$.suggestedAction&&a.jsxs("div",{className:"text-sm text-neutral-300",children:[a.jsx("span",{className:"text-neutral-500",children:"→ "}),$.suggestedAction]}),$.draftReply&&a.jsxs("div",{className:"mt-2 text-sm text-neutral-200 bg-white/[0.03] border border-white/5 rounded p-2 italic",children:["“",$.draftReply,"”"]})]},$.id)})})]}),a.jsxs("section",{className:"mb-6",children:[a.jsxs("button",{onClick:()=>b($=>!$),className:"w-full flex items-center justify-between text-[11px] uppercase tracking-wider text-neutral-400 hover:text-white mb-2",children:[a.jsxs("span",{className:"inline-flex items-center gap-1",children:[g?a.jsx(xa,{size:12}):a.jsx(hs,{size:12}),"Raw events · ",H.length]}),a.jsx("span",{className:"normal-case text-neutral-500",children:g?"hide":"show"})]}),g&&(H.length===0?a.jsx("div",{className:"border border-white/[0.08] rounded-lg px-4 py-6 text-sm text-neutral-500 text-center",children:"No events logged for this contact yet."}):a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.06]",children:H.map($=>{const B=$.occurred_at??$.created_at??"",Q=$.kind??$.event_type??"event";return a.jsxs("div",{className:"px-4 py-2",children:[a.jsxs("div",{className:"flex items-center justify-between text-[11px] mb-0.5",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"uppercase tracking-wider text-neutral-300",children:_9(Q)}),$.source&&a.jsxs("span",{className:"text-neutral-500",children:["via ",$.source]})]}),a.jsx("span",{className:"text-neutral-500",children:H1(B)})]}),$.description&&a.jsx("div",{className:"text-sm text-neutral-300",children:$.description})]},$.id)})}))]}),(l.email||l.phone||l.company||l.notes)&&a.jsxs("section",{children:[a.jsx("h2",{className:"text-[11px] uppercase tracking-wider text-neutral-400 mb-2",children:"CRM details"}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.06]",children:[{label:"Email",value:l.email},{label:"Phone",value:l.phone},{label:"Company",value:l.company},{label:"Notes",value:l.notes}].map($=>$.value?a.jsxs("div",{className:"flex items-start justify-between gap-4 px-4 py-2.5",children:[a.jsx("span",{className:"text-xs text-neutral-400 shrink-0",children:$.label}),a.jsx("span",{className:"text-sm text-right",children:$.value})]},$.label):null)})]})]})}function _1({label:e,value:t,hint:s,accent:l}){const o=l==="warn"&&t>0?"text-amber-300":"text-white";return a.jsxs("div",{className:"border border-white/[0.08] rounded-lg px-3 py-2.5",children:[a.jsx("div",{className:"text-[10px] uppercase tracking-wider text-neutral-400 mb-1",children:e}),a.jsx("div",{className:`text-xl font-semibold ${o}`,children:t}),a.jsx("div",{className:"text-[11px] text-neutral-500",children:s})]})}function V1({label:e,value:t,onChange:s}){return a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:e}),a.jsx("input",{value:t,onChange:l=>s(l.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20"})]})}const UB=["all","active","completed","archived"],V9={blue:"bg-blue-500/20 border-blue-500/40",green:"bg-success/20 border-success/40",red:"bg-critical/20 border-critical/40",yellow:"bg-warning/20 border-warning/40",purple:"bg-warning/20 border-warning/40"};function tZ(){const e=va(["project:created","project:updated"]),[t,s]=r.useState("all"),[l,o]=r.useState(""),[c,d]=r.useState(!1),{data:h,loading:m,refetch:p}=ye("/api/projects",[e]),x=r.useMemo(()=>{if(!h)return[];let g=h;if(t!=="all"&&(g=g.filter(b=>b.status===t)),l.trim()){const b=l.toLowerCase();g=g.filter(w=>w.name.toLowerCase().includes(b)||(w.description||"").toLowerCase().includes(b))}return g},[h,t,l]);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Projects",subtitle:"Organize work into projects",action:a.jsxs("button",{onClick:()=>d(!c),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Zt,{size:14})," New project"]})}),c&&a.jsx(GB,{onClose:()=>d(!1),onSuccess:p}),a.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:UB.map(g=>a.jsx("button",{onClick:()=>s(g),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${t===g?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:g},g))}),a.jsxs("div",{className:"relative mb-4",children:[a.jsx(ga,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:l,onChange:g=>o(g.target.value),placeholder:"Search projects...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),m?a.jsx(We,{count:4}):x.length?a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:x.map(g=>a.jsxs(Be,{to:`/projects/${g.id}`,className:`border rounded-lg p-4 hover:bg-white/[0.02] transition-colors ${g.color&&V9[g.color]?V9[g.color]:"border-white/[0.08]"}`,children:[a.jsxs("div",{className:"flex items-start justify-between mb-2",children:[a.jsx("h3",{className:"text-sm font-medium truncate",children:g.name}),a.jsx(ft,{status:g.status})]}),g.description&&a.jsx("p",{className:"text-xs text-neutral-400 line-clamp-2",children:g.description}),a.jsxs("div",{className:"flex items-center justify-between mt-2",children:[a.jsxs("p",{className:"text-xs text-neutral-400",children:[g.task_count??0," ",(g.task_count??0)===1?"task":"tasks",!!g.open_task_count&&a.jsxs("span",{className:"text-warning ml-1.5",children:["· ",g.open_task_count," open"]})]}),a.jsx("p",{className:"text-xs text-neutral-500",children:new Date(g.created_at).toLocaleDateString()})]})]},g.id))}):a.jsx(bt,{icon:a.jsx(Wf,{size:32}),title:"No projects yet",description:l?`No projects matching "${l}".`:"Create your first project to organize work."})]})}function GB({onClose:e,onSuccess:t}){const[s,l]=r.useState(""),[o,c]=r.useState(""),[d,h]=r.useState(""),[m,p]=r.useState(!1),x=async g=>{if(g.preventDefault(),!!s.trim()){p(!0);try{await me("/api/projects",{method:"POST",body:JSON.stringify({name:s.trim(),description:o.trim()||void 0,color:d||void 0})}),t(),e()}catch{}finally{p(!1)}}};return a.jsxs("form",{onSubmit:x,className:"border border-white/[0.08] rounded-lg p-4 mb-4 space-y-3",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),a.jsx("input",{value:s,onChange:g=>l(g.target.value),placeholder:"Project name",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Color"}),a.jsxs("select",{value:d,onChange:g=>h(g.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"",children:"None"}),a.jsx("option",{value:"blue",children:"Blue"}),a.jsx("option",{value:"green",children:"Green"}),a.jsx("option",{value:"red",children:"Red"}),a.jsx("option",{value:"yellow",children:"Yellow"}),a.jsx("option",{value:"purple",children:"Purple"})]})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description (optional)"}),a.jsx("textarea",{value:o,onChange:g=>c(g.target.value),rows:2,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none"})]}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:m||!s.trim(),className:"px-3 py-1.5 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:m?"Creating...":"Create project"})]})]})}const YB=[{id:"pending",label:"Pending",textColor:"text-neutral-400",bgColor:"bg-white/[0.04]"},{id:"in_progress",label:"In Progress",textColor:"text-blue-400",bgColor:"bg-blue-500/[0.08]"},{id:"completed",label:"Completed",textColor:"text-success",bgColor:"bg-success/[0.08]"},{id:"failed",label:"Failed",textColor:"text-critical",bgColor:"bg-critical/[0.08]"}];function KB({task:e}){return a.jsx(Be,{to:`/tasks/${e.id}`,className:"block border border-white/[0.08] bg-white/[0.02] rounded-lg p-3 hover:bg-white/[0.04] transition-colors group",children:a.jsxs("div",{className:"flex items-start gap-2",children:[a.jsx(lI,{size:14,className:"text-neutral-600 mt-0.5 shrink-0 opacity-0 group-hover:opacity-100 transition-opacity"}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:e.title}),a.jsxs("div",{className:"flex items-center gap-2 mt-1.5",children:[e.priority&&e.priority!=="normal"&&a.jsx("span",{className:"text-xs text-warning",children:e.priority}),e.tokens_used?a.jsxs("span",{className:"text-xs text-neutral-500",children:[e.tokens_used.toLocaleString()," tok"]}):null]}),a.jsx("p",{className:"text-xs text-neutral-500 mt-1",children:new Date(e.created_at).toLocaleDateString()})]})]})})}function XB({tasks:e}){const t=r.useMemo(()=>YB.map(s=>({...s,tasks:e.filter(l=>l.status===s.id)})),[e]);return a.jsx("div",{className:"flex gap-4 overflow-x-auto pb-4",children:t.map(s=>a.jsxs("div",{className:"min-w-[240px] flex-1",children:[a.jsxs("div",{className:`flex items-center justify-between rounded-lg px-3 py-2 mb-3 ${s.bgColor}`,children:[a.jsx("span",{className:`text-xs font-semibold uppercase tracking-wider ${s.textColor}`,children:s.label}),a.jsx("span",{className:`text-xs ${s.textColor} opacity-70`,children:s.tasks.length})]}),a.jsx("div",{className:"space-y-2",children:s.tasks.length===0?a.jsx("p",{className:"text-xs text-neutral-600 text-center py-6",children:"No tasks"}):s.tasks.map(l=>a.jsx(He.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2},children:a.jsx(KB,{task:l})},l.id))})]},s.id))})}const QB=[{id:"board",label:"Board"},{id:"list",label:"List"}];function JB(){const{id:e}=Il(),[t,s]=r.useState("board"),l=va(["task:started","task:completed","task:failed"]),{data:o,loading:c}=ye(e?`/api/projects/${e}`:null),{data:d}=ye(e?`/api/projects/${e}/tasks`:null,[l]);return c?a.jsx("div",{className:"p-6",children:a.jsx(We,{count:4})}):o?a.jsxs("div",{className:"p-6 max-w-6xl",children:[a.jsxs(Be,{to:"/projects",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4",children:[a.jsx(ds,{size:14})," Back to projects"]}),a.jsx(ze,{title:o.name,subtitle:o.description||`Created ${new Date(o.created_at).toLocaleDateString()}`,action:a.jsx(ft,{status:o.status})}),d&&a.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:"Total tasks"}),a.jsx("p",{className:"text-lg font-bold",children:d.length})]}),a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:"Completed"}),a.jsx("p",{className:"text-lg font-bold",children:d.filter(h=>h.status==="completed").length})]}),a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:"In progress"}),a.jsx("p",{className:"text-lg font-bold",children:d.filter(h=>h.status==="in_progress").length})]})]}),a.jsx("div",{className:"mb-4",children:a.jsx(Kl,{tabs:QB,activeTab:t,onTabChange:h=>s(h),layoutId:"project-view-tabs"})}),d!=null&&d.length?t==="board"?a.jsx(XB,{tasks:d}):a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:d.map(h=>a.jsxs(Be,{to:`/tasks/${h.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[a.jsxs("div",{className:"min-w-0 mr-3",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:h.title}),a.jsx("p",{className:"text-xs text-neutral-400",children:new Date(h.created_at).toLocaleString()})]}),a.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[h.priority&&h.priority!=="normal"&&a.jsx("span",{className:"text-xs text-warning",children:h.priority}),a.jsx(ft,{status:h.status})]})]},h.id))}):a.jsx(bt,{icon:a.jsx(ro,{size:32}),title:"No tasks in this project",description:"Tasks assigned to this project will appear here."})]}):a.jsx("div",{className:"p-6 text-neutral-400",children:"Project not found"})}const WB={webhook:Yl,schedule:vo,event:Jf,manual:kn};function eP(e){if(!e)return"Never";const t=/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"),s=Date.now()-t.getTime();if(s<0)return"just now";const l=Math.floor(s/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const o=Math.floor(l/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function aZ(){const e=Ka(),[t,s]=r.useState([]),[l,o]=r.useState(!0),[c,d]=r.useState(""),[h,m]=r.useState(null),p=async()=>{try{const w=await me("/api/automations");s(w.data||[])}catch{ue("error","Couldn't load automations")}finally{o(!1)}};r.useEffect(()=>{p()},[]);const x=t.filter(w=>w.name.toLowerCase().includes(c.toLowerCase())),g=async(w,j)=>{try{await me(`/api/automations/${w}`,{method:"PATCH",body:JSON.stringify({enabled:j})}),s(N=>N.map(E=>E.id===w?{...E,enabled:j}:E))}catch{ue("error","Couldn't update automation")}},b=async()=>{if(h){try{await me(`/api/automations/${h}`,{method:"DELETE"}),s(w=>w.filter(j=>j.id!==h)),ue("success","Automation deleted")}catch{ue("error","Couldn't delete automation")}m(null)}};return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Automations",subtitle:"Build visual automation flows with triggers, conditions, and actions",action:a.jsxs("button",{onClick:()=>e("/automations/new"),className:"flex items-center gap-1.5 rounded-lg bg-white px-3 py-1.5 text-xs font-medium text-black hover:bg-gray-200",children:[a.jsx(Zt,{size:14,weight:"bold"}),"New automation"]})}),t.length>0&&a.jsxs("div",{className:"relative mb-4",children:[a.jsx(ga,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-500"}),a.jsx("input",{type:"text",value:c,onChange:w=>d(w.target.value),placeholder:"Search automations...",className:"w-full pl-9 pr-3 py-2 bg-white/[0.03] border border-white/[0.08] rounded-lg text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),l?a.jsx("div",{className:"space-y-2",children:[1,2,3].map(w=>a.jsx(nn,{className:"h-16 rounded-lg"},w))}):t.length===0?a.jsx(bt,{icon:a.jsx(ka,{size:32}),title:"No automations yet",description:"Create your first automation to connect triggers with actions",action:a.jsxs("button",{onClick:()=>e("/automations/new"),className:"flex items-center gap-1.5 rounded-lg bg-white/10 px-3 py-1.5 text-xs text-white hover:bg-white/20",children:[a.jsx(Zt,{size:14,weight:"bold"}),"New automation"]})}):x.length===0?a.jsx("p",{className:"text-sm text-neutral-500 text-center py-8",children:"No automations match your search"}):a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:x.map(w=>{const j=WB[w.trigger_type]||ka;return a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("button",{onClick:()=>e(`/automations/${w.id}/edit`),className:"min-w-0 mr-3 text-left flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(j,{size:14,className:"text-neutral-500 shrink-0"}),a.jsx("p",{className:"text-sm font-medium truncate",children:w.name})]}),a.jsxs("p",{className:"text-xs text-neutral-400 mt-0.5",children:[w.steps.length," ",w.steps.length===1?"step":"steps",w.last_fired_at&&` · Last run ${eP(w.last_fired_at)}`]})]}),a.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[a.jsx(zl,{checked:w.enabled,onChange:N=>g(w.id,N)}),a.jsx("button",{onClick:()=>m(w.id),className:"text-neutral-500 hover:text-red-400 transition-colors",title:"Delete",children:a.jsx(Kt,{size:14})})]})]},w.id)})}),a.jsx(w0,{open:!!h,title:"Delete automation",message:"This will permanently delete this automation and its history. This action can't be undone.",confirmLabel:"Delete",onConfirm:b,onClose:()=>m(null)})]})}const x0={agent_prompt:"AI Agent",run_agent:"Run Agent",save_contact:"Save Contact",update_contact:"Update Contact",log_contact_event:"Log Event",webhook_forward:"Forward Webhook",transform_data:"Transform Data",conditional:"Conditional"},tP={agent_prompt:"Have an AI agent process data and generate a response",run_agent:"Assign a task to an AI agent with context from the trigger",save_contact:"Create or update a contact from the data",update_contact:"Find and update an existing contact",log_contact_event:"Add a timeline event to an existing contact",webhook_forward:"Forward the data to an external URL",transform_data:"Transform and reshape data between steps",conditional:"Branch execution based on a condition"},nZ={save_contact:["contact_id","name","email","created"],update_contact:["contact_id","updated_fields"],log_contact_event:["event_id","contact_id"],run_agent:["task_id","agent_id","status"],agent_prompt:["text"],a2a_call:["text","status"],create_task:["task_id","title","status"],webhook_forward:["status_code","response_body"],transform_data:[],conditional:["branch","branch_output"],run_workflow:["workflow_run_id","status"],take_screenshot:["screenshot_url","page_title","page_url"],generate_chart:["chart_url","chart_type","width","height"]};function X0(e){var t;return e.action_type==="transform_data"?(((t=e.action_config)==null?void 0:t.mappings)||[]).map(o=>o.target).filter(Boolean):nZ[e.action_type]||[]}function U1(e,t=""){const s={};for(const[l,o]of Object.entries(e)){const c=t?`${t}.${l}`:l;if(o!==null&&typeof o=="object"&&!Array.isArray(o)){const d=U1(o,c);Object.assign(s,d.payload)}else s[c]=o}return{fields:Object.keys(s),payload:s}}function Xl(e){var c;const{sampleFields:t,samplePayload:s,previousSteps:l}=e,o=[];if(t.length>0){const d=t.map(h=>{let m;if(s&&h in s){const p=s[h];m=typeof p=="string"?p:JSON.stringify(p)}return{name:h,path:`trigger.${h}`,value:m}});o.push({label:"Trigger",prefix:"trigger",fields:d})}for(const d of l){let h=nZ[d.action_type]||[];if(d.action_type==="transform_data"&&(h=(((c=d.action_config)==null?void 0:c.mappings)||[]).map(p=>p.target).filter(Boolean)),h.length>0){const m=d.label||d.action_type,p=h.map(x=>({name:x,path:`${d.id}.${x}`}));o.push({label:`Step ${d.id.replace("step_","")}: ${m}`,prefix:d.id,fields:p})}}return o}function rZ(e){const t=[],s=/\{\{([^}]+)\}\}/g;let l;for(;(l=s.exec(e))!==null;)t.push(l[1].trim());return t}function aP(e,t){const s=new Set(t);return e.filter(l=>!s.has(l))}const u0={trigger:{width:280,height:80},step:{width:280,height:80},conditional:{width:280,height:100},addStep:{width:200,height:40}},rn="trigger",U0=e=>`add-after-${e}`;function nP(e,t){const s=JSON.stringify(e.action_config||{})+(e.prompt||""),l=rZ(s);if(l.length===0)return[];const o={};for(const d of l){const h=d.split(".")[0];o[h]=(o[h]||0)+1}const c=[];for(const[d,h]of Object.entries(o))if(d==="trigger")c.push({label:"Trigger",count:h});else{const m=t.find(p=>p.id===d);c.push({label:(m==null?void 0:m.label)||d,count:h})}return c}function sZ(e){const t=[],s=[],l=e.node_positions;t.push({id:rn,type:"trigger",position:(l==null?void 0:l[rn])||{x:0,y:0},...u0.trigger,data:{triggerType:e.trigger_type,triggerConfig:e.trigger_config,name:e.name,description:e.description||"",cooldownSeconds:e.cooldown_seconds,variables:e.variables||[],sampleFields:e.sample_fields||[],samplePayload:e.sample_payload||null}});let o=rn;const c=[];for(let h=0;h<e.steps.length;h++){const m=e.steps[h],p=m.id;if(m.step_type==="conditional"){const x=m.action_config||{},g=x.condition||{field:"",operator:"equals",value:""};t.push({id:p,type:"conditional",position:(l==null?void 0:l[p])||{x:0,y:0},...u0.conditional,data:{stepIndex:h,stepId:m.id,stepType:m.step_type,label:m.label||"Conditional",actionConfig:x,outputFields:["branch","branch_output"],condition:g}}),s.push({id:`${o}->${p}`,source:o,target:p,type:"dataFlow"});const b=x.then_actions||[];let w=p;for(let C=0;C<b.length;C++){const M=b[C],S=`${p}-then-${C}`;t.push({id:S,type:"step",position:(l==null?void 0:l[S])||{x:0,y:0},...u0.step,data:{stepIndex:-1,stepId:M.id,stepType:M.action_type,label:M.label||x0[M.action_type]||M.action_type,actionConfig:M.action_config||{},outputFields:X0(M),branchType:"then",parentConditionalId:p,branchIndex:C}}),s.push({id:`${w}->${S}`,source:w,sourceHandle:w===p?"then":void 0,target:S,type:"dataFlow",data:{branchType:"then"}}),w=S}const j=U0(`${p}-then`);t.push({id:j,type:"addStep",position:(l==null?void 0:l[j])||{x:0,y:0},...u0.addStep,data:{parentNodeId:w,insertIndex:b.length,branchType:"then",conditionalNodeId:p}}),s.push({id:`${w}->${j}`,source:w,sourceHandle:w===p?"then":void 0,target:j,type:"addStepEdge",data:{branchType:"then"}});const N=x.else_actions||[];let E=p;for(let C=0;C<N.length;C++){const M=N[C],S=`${p}-else-${C}`;t.push({id:S,type:"step",position:(l==null?void 0:l[S])||{x:0,y:0},...u0.step,data:{stepIndex:-1,stepId:M.id,stepType:M.action_type,label:M.label||x0[M.action_type]||M.action_type,actionConfig:M.action_config||{},outputFields:X0(M),branchType:"else",parentConditionalId:p,branchIndex:C}}),s.push({id:`${E}->${S}`,source:E,sourceHandle:E===p?"else":void 0,target:S,type:"dataFlow",data:{branchType:"else"}}),E=S}const A=U0(`${p}-else`);t.push({id:A,type:"addStep",position:(l==null?void 0:l[A])||{x:0,y:0},...u0.addStep,data:{parentNodeId:E,insertIndex:N.length,branchType:"else",conditionalNodeId:p}}),s.push({id:`${E}->${A}`,source:E,sourceHandle:E===p?"else":void 0,target:A,type:"addStepEdge",data:{branchType:"else"}}),c.push({id:m.id,label:m.label||"Conditional"}),o=p}else{const x={id:m.id,action_type:m.step_type,action_config:m.action_config||{},label:m.label},g=m.label||x0[m.step_type]||m.step_type,b=nP(m,c);t.push({id:p,type:"step",position:(l==null?void 0:l[p])||{x:0,y:0},...u0.step,data:{stepIndex:h,stepId:m.id,stepType:m.step_type,label:g,actionConfig:m.action_config||{},outputFields:X0(x),inputSources:b,agentId:m.agent_id,agentName:m.agent_name,prompt:m.prompt,requiredIntegrations:m.required_integrations,connectionId:m.connection_id}}),s.push({id:`${o}->${p}`,source:o,target:p,type:"dataFlow"}),c.push({id:m.id,label:g}),o=p}}const d=U0(o);return t.push({id:d,type:"addStep",position:(l==null?void 0:l[d])||{x:0,y:0},...u0.addStep,data:{parentNodeId:o,insertIndex:e.steps.length}}),s.push({id:`${o}->${d}`,source:o,target:d,type:"addStepEdge"}),{nodes:t,edges:s,hasCustomPositions:!!l&&Object.keys(l).length>0}}function rP(e,t){var d;const s=e.find(h=>h.type==="trigger");if(!s)throw new Error("No trigger node found");const l=s.data,o=sP(e,t),c={};for(const h of e)h.type!=="addStep"&&(c[h.id]={x:h.position.x,y:h.position.y});return{name:l.name,description:l.description||void 0,trigger_type:l.triggerType,trigger_config:l.triggerConfig,steps:o,variables:(d=l.variables)!=null&&d.length?l.variables:void 0,cooldown_seconds:l.cooldownSeconds,node_positions:c}}function sP(e,t){const s=[],l=t.filter(d=>!d.sourceHandle||d.sourceHandle!=="then"&&d.sourceHandle!=="else");let o=rn;const c=new Set;for(;;){c.add(o);const d=l.find(m=>m.source===o&&!c.has(m.target));if(!d)break;const h=e.find(m=>m.id===d.target);if(!h||h.type==="addStep")break;if(h.type==="conditional"){const m=h.data,p=T9(e,t,h.id,"then"),x=T9(e,t,h.id,"else");s.push({id:m.stepId,step_type:"conditional",label:m.label,action_config:{...m.actionConfig,condition:m.condition,then_actions:p,else_actions:x}})}else if(h.type==="step"){const m=h.data;s.push(lP(m))}o=h.id}return s.map((d,h)=>({...d,id:`step_${h+1}`}))}function T9(e,t,s,l){const o=[];let c=s;const d=new Set;for(;;){d.add(c);const h=t.find(p=>p.source===c&&!d.has(p.target)&&(c===s?p.sourceHandle===l:!0));if(!h)break;const m=e.find(p=>p.id===h.target);if(!m||m.type==="addStep")break;if(m.type==="step"){const p=m.data;o.push({id:p.stepId,action_type:p.stepType,action_config:p.actionConfig,label:p.label})}c=m.id}return o.map((h,m)=>({...h,id:`${l}_step_${m+1}`}))}function lP(e){return{id:e.stepId,step_type:e.stepType,label:e.label,action_config:e.actionConfig,agent_id:e.agentId,agent_name:e.agentName,prompt:e.prompt,required_integrations:e.requiredIntegrations,connection_id:e.connectionId}}function iP(){return sZ({name:"",description:null,trigger_type:"webhook",trigger_config:{},steps:[],variables:[],cooldown_seconds:0,sample_payload:null,sample_fields:null})}function i3(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Lu,L9;function oP(){if(L9)return Lu;L9=1;function e(){this.__data__=[],this.size=0}return Lu=e,Lu}var ku,k9;function fs(){if(k9)return ku;k9=1;function e(t,s){return t===s||t!==t&&s!==s}return ku=e,ku}var Ru,R9;function jo(){if(R9)return Ru;R9=1;var e=fs();function t(s,l){for(var o=s.length;o--;)if(e(s[o][0],l))return o;return-1}return Ru=t,Ru}var Du,D9;function cP(){if(D9)return Du;D9=1;var e=jo(),t=Array.prototype,s=t.splice;function l(o){var c=this.__data__,d=e(c,o);if(d<0)return!1;var h=c.length-1;return d==h?c.pop():s.call(c,d,1),--this.size,!0}return Du=l,Du}var Fu,F9;function uP(){if(F9)return Fu;F9=1;var e=jo();function t(s){var l=this.__data__,o=e(l,s);return o<0?void 0:l[o][1]}return Fu=t,Fu}var Ou,O9;function dP(){if(O9)return Ou;O9=1;var e=jo();function t(s){return e(this.__data__,s)>-1}return Ou=t,Ou}var zu,z9;function hP(){if(z9)return zu;z9=1;var e=jo();function t(s,l){var o=this.__data__,c=e(o,s);return c<0?(++this.size,o.push([s,l])):o[c][1]=l,this}return zu=t,zu}var qu,q9;function No(){if(q9)return qu;q9=1;var e=oP(),t=cP(),s=uP(),l=dP(),o=hP();function c(d){var h=-1,m=d==null?0:d.length;for(this.clear();++h<m;){var p=d[h];this.set(p[0],p[1])}}return c.prototype.clear=e,c.prototype.delete=t,c.prototype.get=s,c.prototype.has=l,c.prototype.set=o,qu=c,qu}var Iu,I9;function mP(){if(I9)return Iu;I9=1;var e=No();function t(){this.__data__=new e,this.size=0}return Iu=t,Iu}var $u,$9;function fP(){if($9)return $u;$9=1;function e(t){var s=this.__data__,l=s.delete(t);return this.size=s.size,l}return $u=e,$u}var Bu,B9;function pP(){if(B9)return Bu;B9=1;function e(t){return this.__data__.get(t)}return Bu=e,Bu}var Pu,P9;function xP(){if(P9)return Pu;P9=1;function e(t){return this.__data__.has(t)}return Pu=e,Pu}var Uu,U9;function lZ(){if(U9)return Uu;U9=1;var e=typeof y1=="object"&&y1&&y1.Object===Object&&y1;return Uu=e,Uu}var Gu,G9;function Xa(){if(G9)return Gu;G9=1;var e=lZ(),t=typeof self=="object"&&self&&self.Object===Object&&self,s=e||t||Function("return this")();return Gu=s,Gu}var Yu,Y9;function ps(){if(Y9)return Yu;Y9=1;var e=Xa(),t=e.Symbol;return Yu=t,Yu}var Ku,K9;function gP(){if(K9)return Ku;K9=1;var e=ps(),t=Object.prototype,s=t.hasOwnProperty,l=t.toString,o=e?e.toStringTag:void 0;function c(d){var h=s.call(d,o),m=d[o];try{d[o]=void 0;var p=!0}catch{}var x=l.call(d);return p&&(h?d[o]=m:delete d[o]),x}return Ku=c,Ku}var Xu,X9;function vP(){if(X9)return Xu;X9=1;var e=Object.prototype,t=e.toString;function s(l){return t.call(l)}return Xu=s,Xu}var Qu,Q9;function W0(){if(Q9)return Qu;Q9=1;var e=ps(),t=gP(),s=vP(),l="[object Null]",o="[object Undefined]",c=e?e.toStringTag:void 0;function d(h){return h==null?h===void 0?o:l:c&&c in Object(h)?t(h):s(h)}return Qu=d,Qu}var Ju,J9;function Da(){if(J9)return Ju;J9=1;function e(t){var s=typeof t;return t!=null&&(s=="object"||s=="function")}return Ju=e,Ju}var Wu,W9;function Ql(){if(W9)return Wu;W9=1;var e=W0(),t=Da(),s="[object AsyncFunction]",l="[object Function]",o="[object GeneratorFunction]",c="[object Proxy]";function d(h){if(!t(h))return!1;var m=e(h);return m==l||m==o||m==s||m==c}return Wu=d,Wu}var ed,ev;function bP(){if(ev)return ed;ev=1;var e=Xa(),t=e["__core-js_shared__"];return ed=t,ed}var td,tv;function yP(){if(tv)return td;tv=1;var e=bP(),t=(function(){var l=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})();function s(l){return!!t&&t in l}return td=s,td}var ad,av;function iZ(){if(av)return ad;av=1;var e=Function.prototype,t=e.toString;function s(l){if(l!=null){try{return t.call(l)}catch{}try{return l+""}catch{}}return""}return ad=s,ad}var nd,nv;function wP(){if(nv)return nd;nv=1;var e=Ql(),t=yP(),s=Da(),l=iZ(),o=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,d=Function.prototype,h=Object.prototype,m=d.toString,p=h.hasOwnProperty,x=RegExp("^"+m.call(p).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(b){if(!s(b)||t(b))return!1;var w=e(b)?x:c;return w.test(l(b))}return nd=g,nd}var rd,rv;function AP(){if(rv)return rd;rv=1;function e(t,s){return t==null?void 0:t[s]}return rd=e,rd}var sd,sv;function er(){if(sv)return sd;sv=1;var e=wP(),t=AP();function s(l,o){var c=t(l,o);return e(c)?c:void 0}return sd=s,sd}var ld,lv;function o3(){if(lv)return ld;lv=1;var e=er(),t=Xa(),s=e(t,"Map");return ld=s,ld}var id,iv;function Eo(){if(iv)return id;iv=1;var e=er(),t=e(Object,"create");return id=t,id}var od,ov;function jP(){if(ov)return od;ov=1;var e=Eo();function t(){this.__data__=e?e(null):{},this.size=0}return od=t,od}var cd,cv;function NP(){if(cv)return cd;cv=1;function e(t){var s=this.has(t)&&delete this.__data__[t];return this.size-=s?1:0,s}return cd=e,cd}var ud,uv;function EP(){if(uv)return ud;uv=1;var e=Eo(),t="__lodash_hash_undefined__",s=Object.prototype,l=s.hasOwnProperty;function o(c){var d=this.__data__;if(e){var h=d[c];return h===t?void 0:h}return l.call(d,c)?d[c]:void 0}return ud=o,ud}var dd,dv;function MP(){if(dv)return dd;dv=1;var e=Eo(),t=Object.prototype,s=t.hasOwnProperty;function l(o){var c=this.__data__;return e?c[o]!==void 0:s.call(c,o)}return dd=l,dd}var hd,hv;function SP(){if(hv)return hd;hv=1;var e=Eo(),t="__lodash_hash_undefined__";function s(l,o){var c=this.__data__;return this.size+=this.has(l)?0:1,c[l]=e&&o===void 0?t:o,this}return hd=s,hd}var md,mv;function CP(){if(mv)return md;mv=1;var e=jP(),t=NP(),s=EP(),l=MP(),o=SP();function c(d){var h=-1,m=d==null?0:d.length;for(this.clear();++h<m;){var p=d[h];this.set(p[0],p[1])}}return c.prototype.clear=e,c.prototype.delete=t,c.prototype.get=s,c.prototype.has=l,c.prototype.set=o,md=c,md}var fd,fv;function ZP(){if(fv)return fd;fv=1;var e=CP(),t=No(),s=o3();function l(){this.size=0,this.__data__={hash:new e,map:new(s||t),string:new e}}return fd=l,fd}var pd,pv;function HP(){if(pv)return pd;pv=1;function e(t){var s=typeof t;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?t!=="__proto__":t===null}return pd=e,pd}var xd,xv;function Mo(){if(xv)return xd;xv=1;var e=HP();function t(s,l){var o=s.__data__;return e(l)?o[typeof l=="string"?"string":"hash"]:o.map}return xd=t,xd}var gd,gv;function _P(){if(gv)return gd;gv=1;var e=Mo();function t(s){var l=e(this,s).delete(s);return this.size-=l?1:0,l}return gd=t,gd}var vd,vv;function VP(){if(vv)return vd;vv=1;var e=Mo();function t(s){return e(this,s).get(s)}return vd=t,vd}var bd,bv;function TP(){if(bv)return bd;bv=1;var e=Mo();function t(s){return e(this,s).has(s)}return bd=t,bd}var yd,yv;function LP(){if(yv)return yd;yv=1;var e=Mo();function t(s,l){var o=e(this,s),c=o.size;return o.set(s,l),this.size+=o.size==c?0:1,this}return yd=t,yd}var wd,wv;function c3(){if(wv)return wd;wv=1;var e=ZP(),t=_P(),s=VP(),l=TP(),o=LP();function c(d){var h=-1,m=d==null?0:d.length;for(this.clear();++h<m;){var p=d[h];this.set(p[0],p[1])}}return c.prototype.clear=e,c.prototype.delete=t,c.prototype.get=s,c.prototype.has=l,c.prototype.set=o,wd=c,wd}var Ad,Av;function kP(){if(Av)return Ad;Av=1;var e=No(),t=o3(),s=c3(),l=200;function o(c,d){var h=this.__data__;if(h instanceof e){var m=h.__data__;if(!t||m.length<l-1)return m.push([c,d]),this.size=++h.size,this;h=this.__data__=new s(m)}return h.set(c,d),this.size=h.size,this}return Ad=o,Ad}var jd,jv;function So(){if(jv)return jd;jv=1;var e=No(),t=mP(),s=fP(),l=pP(),o=xP(),c=kP();function d(h){var m=this.__data__=new e(h);this.size=m.size}return d.prototype.clear=t,d.prototype.delete=s,d.prototype.get=l,d.prototype.has=o,d.prototype.set=c,jd=d,jd}var Nd,Nv;function u3(){if(Nv)return Nd;Nv=1;function e(t,s){for(var l=-1,o=t==null?0:t.length;++l<o&&s(t[l],l,t)!==!1;);return t}return Nd=e,Nd}var Ed,Ev;function oZ(){if(Ev)return Ed;Ev=1;var e=er(),t=(function(){try{var s=e(Object,"defineProperty");return s({},"",{}),s}catch{}})();return Ed=t,Ed}var Md,Mv;function Co(){if(Mv)return Md;Mv=1;var e=oZ();function t(s,l,o){l=="__proto__"&&e?e(s,l,{configurable:!0,enumerable:!0,value:o,writable:!0}):s[l]=o}return Md=t,Md}var Sd,Sv;function Zo(){if(Sv)return Sd;Sv=1;var e=Co(),t=fs(),s=Object.prototype,l=s.hasOwnProperty;function o(c,d,h){var m=c[d];(!(l.call(c,d)&&t(m,h))||h===void 0&&!(d in c))&&e(c,d,h)}return Sd=o,Sd}var Cd,Cv;function Jl(){if(Cv)return Cd;Cv=1;var e=Zo(),t=Co();function s(l,o,c,d){var h=!c;c||(c={});for(var m=-1,p=o.length;++m<p;){var x=o[m],g=d?d(c[x],l[x],x,c,l):void 0;g===void 0&&(g=l[x]),h?t(c,x,g):e(c,x,g)}return c}return Cd=s,Cd}var Zd,Zv;function RP(){if(Zv)return Zd;Zv=1;function e(t,s){for(var l=-1,o=Array(t);++l<t;)o[l]=s(l);return o}return Zd=e,Zd}var Hd,Hv;function un(){if(Hv)return Hd;Hv=1;function e(t){return t!=null&&typeof t=="object"}return Hd=e,Hd}var _d,_v;function DP(){if(_v)return _d;_v=1;var e=W0(),t=un(),s="[object Arguments]";function l(o){return t(o)&&e(o)==s}return _d=l,_d}var Vd,Vv;function Wl(){if(Vv)return Vd;Vv=1;var e=DP(),t=un(),s=Object.prototype,l=s.hasOwnProperty,o=s.propertyIsEnumerable,c=e((function(){return arguments})())?e:function(d){return t(d)&&l.call(d,"callee")&&!o.call(d,"callee")};return Vd=c,Vd}var Td,Tv;function Mt(){if(Tv)return Td;Tv=1;var e=Array.isArray;return Td=e,Td}var wl={exports:{}},Ld,Lv;function FP(){if(Lv)return Ld;Lv=1;function e(){return!1}return Ld=e,Ld}wl.exports;var kv;function xs(){return kv||(kv=1,(function(e,t){var s=Xa(),l=FP(),o=t&&!t.nodeType&&t,c=o&&!0&&e&&!e.nodeType&&e,d=c&&c.exports===o,h=d?s.Buffer:void 0,m=h?h.isBuffer:void 0,p=m||l;e.exports=p})(wl,wl.exports)),wl.exports}var kd,Rv;function Ho(){if(Rv)return kd;Rv=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function s(l,o){var c=typeof l;return o=o??e,!!o&&(c=="number"||c!="symbol"&&t.test(l))&&l>-1&&l%1==0&&l<o}return kd=s,kd}var Rd,Dv;function d3(){if(Dv)return Rd;Dv=1;var e=9007199254740991;function t(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=e}return Rd=t,Rd}var Dd,Fv;function OP(){if(Fv)return Dd;Fv=1;var e=W0(),t=d3(),s=un(),l="[object Arguments]",o="[object Array]",c="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Function]",p="[object Map]",x="[object Number]",g="[object Object]",b="[object RegExp]",w="[object Set]",j="[object String]",N="[object WeakMap]",E="[object ArrayBuffer]",A="[object DataView]",C="[object Float32Array]",M="[object Float64Array]",S="[object Int8Array]",L="[object Int16Array]",V="[object Int32Array]",_="[object Uint8Array]",H="[object Uint8ClampedArray]",T="[object Uint16Array]",D="[object Uint32Array]",F={};F[C]=F[M]=F[S]=F[L]=F[V]=F[_]=F[H]=F[T]=F[D]=!0,F[l]=F[o]=F[E]=F[c]=F[A]=F[d]=F[h]=F[m]=F[p]=F[x]=F[g]=F[b]=F[w]=F[j]=F[N]=!1;function P(U){return s(U)&&t(U.length)&&!!F[e(U)]}return Dd=P,Dd}var Fd,Ov;function _o(){if(Ov)return Fd;Ov=1;function e(t){return function(s){return t(s)}}return Fd=e,Fd}var Al={exports:{}};Al.exports;var zv;function h3(){return zv||(zv=1,(function(e,t){var s=lZ(),l=t&&!t.nodeType&&t,o=l&&!0&&e&&!e.nodeType&&e,c=o&&o.exports===l,d=c&&s.process,h=(function(){try{var m=o&&o.require&&o.require("util").types;return m||d&&d.binding&&d.binding("util")}catch{}})();e.exports=h})(Al,Al.exports)),Al.exports}var Od,qv;function ei(){if(qv)return Od;qv=1;var e=OP(),t=_o(),s=h3(),l=s&&s.isTypedArray,o=l?t(l):e;return Od=o,Od}var zd,Iv;function cZ(){if(Iv)return zd;Iv=1;var e=RP(),t=Wl(),s=Mt(),l=xs(),o=Ho(),c=ei(),d=Object.prototype,h=d.hasOwnProperty;function m(p,x){var g=s(p),b=!g&&t(p),w=!g&&!b&&l(p),j=!g&&!b&&!w&&c(p),N=g||b||w||j,E=N?e(p.length,String):[],A=E.length;for(var C in p)(x||h.call(p,C))&&!(N&&(C=="length"||w&&(C=="offset"||C=="parent")||j&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||o(C,A)))&&E.push(C);return E}return zd=m,zd}var qd,$v;function Vo(){if($v)return qd;$v=1;var e=Object.prototype;function t(s){var l=s&&s.constructor,o=typeof l=="function"&&l.prototype||e;return s===o}return qd=t,qd}var Id,Bv;function uZ(){if(Bv)return Id;Bv=1;function e(t,s){return function(l){return t(s(l))}}return Id=e,Id}var $d,Pv;function zP(){if(Pv)return $d;Pv=1;var e=uZ(),t=e(Object.keys,Object);return $d=t,$d}var Bd,Uv;function m3(){if(Uv)return Bd;Uv=1;var e=Vo(),t=zP(),s=Object.prototype,l=s.hasOwnProperty;function o(c){if(!e(c))return t(c);var d=[];for(var h in Object(c))l.call(c,h)&&h!="constructor"&&d.push(h);return d}return Bd=o,Bd}var Pd,Gv;function Dn(){if(Gv)return Pd;Gv=1;var e=Ql(),t=d3();function s(l){return l!=null&&t(l.length)&&!e(l)}return Pd=s,Pd}var Ud,Yv;function A0(){if(Yv)return Ud;Yv=1;var e=cZ(),t=m3(),s=Dn();function l(o){return s(o)?e(o):t(o)}return Ud=l,Ud}var Gd,Kv;function qP(){if(Kv)return Gd;Kv=1;var e=Jl(),t=A0();function s(l,o){return l&&e(o,t(o),l)}return Gd=s,Gd}var Yd,Xv;function IP(){if(Xv)return Yd;Xv=1;function e(t){var s=[];if(t!=null)for(var l in Object(t))s.push(l);return s}return Yd=e,Yd}var Kd,Qv;function $P(){if(Qv)return Kd;Qv=1;var e=Da(),t=Vo(),s=IP(),l=Object.prototype,o=l.hasOwnProperty;function c(d){if(!e(d))return s(d);var h=t(d),m=[];for(var p in d)p=="constructor"&&(h||!o.call(d,p))||m.push(p);return m}return Kd=c,Kd}var Xd,Jv;function tr(){if(Jv)return Xd;Jv=1;var e=cZ(),t=$P(),s=Dn();function l(o){return s(o)?e(o,!0):t(o)}return Xd=l,Xd}var Qd,Wv;function BP(){if(Wv)return Qd;Wv=1;var e=Jl(),t=tr();function s(l,o){return l&&e(o,t(o),l)}return Qd=s,Qd}var jl={exports:{}};jl.exports;var eb;function dZ(){return eb||(eb=1,(function(e,t){var s=Xa(),l=t&&!t.nodeType&&t,o=l&&!0&&e&&!e.nodeType&&e,c=o&&o.exports===l,d=c?s.Buffer:void 0,h=d?d.allocUnsafe:void 0;function m(p,x){if(x)return p.slice();var g=p.length,b=h?h(g):new p.constructor(g);return p.copy(b),b}e.exports=m})(jl,jl.exports)),jl.exports}var Jd,tb;function hZ(){if(tb)return Jd;tb=1;function e(t,s){var l=-1,o=t.length;for(s||(s=Array(o));++l<o;)s[l]=t[l];return s}return Jd=e,Jd}var Wd,ab;function mZ(){if(ab)return Wd;ab=1;function e(t,s){for(var l=-1,o=t==null?0:t.length,c=0,d=[];++l<o;){var h=t[l];s(h,l,t)&&(d[c++]=h)}return d}return Wd=e,Wd}var e8,nb;function fZ(){if(nb)return e8;nb=1;function e(){return[]}return e8=e,e8}var t8,rb;function f3(){if(rb)return t8;rb=1;var e=mZ(),t=fZ(),s=Object.prototype,l=s.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(d){return d==null?[]:(d=Object(d),e(o(d),function(h){return l.call(d,h)}))}:t;return t8=c,t8}var a8,sb;function PP(){if(sb)return a8;sb=1;var e=Jl(),t=f3();function s(l,o){return e(l,t(l),o)}return a8=s,a8}var n8,lb;function p3(){if(lb)return n8;lb=1;function e(t,s){for(var l=-1,o=s.length,c=t.length;++l<o;)t[c+l]=s[l];return t}return n8=e,n8}var r8,ib;function To(){if(ib)return r8;ib=1;var e=uZ(),t=e(Object.getPrototypeOf,Object);return r8=t,r8}var s8,ob;function pZ(){if(ob)return s8;ob=1;var e=p3(),t=To(),s=f3(),l=fZ(),o=Object.getOwnPropertySymbols,c=o?function(d){for(var h=[];d;)e(h,s(d)),d=t(d);return h}:l;return s8=c,s8}var l8,cb;function UP(){if(cb)return l8;cb=1;var e=Jl(),t=pZ();function s(l,o){return e(l,t(l),o)}return l8=s,l8}var i8,ub;function xZ(){if(ub)return i8;ub=1;var e=p3(),t=Mt();function s(l,o,c){var d=o(l);return t(l)?d:e(d,c(l))}return i8=s,i8}var o8,db;function gZ(){if(db)return o8;db=1;var e=xZ(),t=f3(),s=A0();function l(o){return e(o,s,t)}return o8=l,o8}var c8,hb;function GP(){if(hb)return c8;hb=1;var e=xZ(),t=pZ(),s=tr();function l(o){return e(o,s,t)}return c8=l,c8}var u8,mb;function YP(){if(mb)return u8;mb=1;var e=er(),t=Xa(),s=e(t,"DataView");return u8=s,u8}var d8,fb;function KP(){if(fb)return d8;fb=1;var e=er(),t=Xa(),s=e(t,"Promise");return d8=s,d8}var h8,pb;function vZ(){if(pb)return h8;pb=1;var e=er(),t=Xa(),s=e(t,"Set");return h8=s,h8}var m8,xb;function XP(){if(xb)return m8;xb=1;var e=er(),t=Xa(),s=e(t,"WeakMap");return m8=s,m8}var f8,gb;function gs(){if(gb)return f8;gb=1;var e=YP(),t=o3(),s=KP(),l=vZ(),o=XP(),c=W0(),d=iZ(),h="[object Map]",m="[object Object]",p="[object Promise]",x="[object Set]",g="[object WeakMap]",b="[object DataView]",w=d(e),j=d(t),N=d(s),E=d(l),A=d(o),C=c;return(e&&C(new e(new ArrayBuffer(1)))!=b||t&&C(new t)!=h||s&&C(s.resolve())!=p||l&&C(new l)!=x||o&&C(new o)!=g)&&(C=function(M){var S=c(M),L=S==m?M.constructor:void 0,V=L?d(L):"";if(V)switch(V){case w:return b;case j:return h;case N:return p;case E:return x;case A:return g}return S}),f8=C,f8}var p8,vb;function QP(){if(vb)return p8;vb=1;var e=Object.prototype,t=e.hasOwnProperty;function s(l){var o=l.length,c=new l.constructor(o);return o&&typeof l[0]=="string"&&t.call(l,"index")&&(c.index=l.index,c.input=l.input),c}return p8=s,p8}var x8,bb;function bZ(){if(bb)return x8;bb=1;var e=Xa(),t=e.Uint8Array;return x8=t,x8}var g8,yb;function x3(){if(yb)return g8;yb=1;var e=bZ();function t(s){var l=new s.constructor(s.byteLength);return new e(l).set(new e(s)),l}return g8=t,g8}var v8,wb;function JP(){if(wb)return v8;wb=1;var e=x3();function t(s,l){var o=l?e(s.buffer):s.buffer;return new s.constructor(o,s.byteOffset,s.byteLength)}return v8=t,v8}var b8,Ab;function WP(){if(Ab)return b8;Ab=1;var e=/\w*$/;function t(s){var l=new s.constructor(s.source,e.exec(s));return l.lastIndex=s.lastIndex,l}return b8=t,b8}var y8,jb;function eU(){if(jb)return y8;jb=1;var e=ps(),t=e?e.prototype:void 0,s=t?t.valueOf:void 0;function l(o){return s?Object(s.call(o)):{}}return y8=l,y8}var w8,Nb;function yZ(){if(Nb)return w8;Nb=1;var e=x3();function t(s,l){var o=l?e(s.buffer):s.buffer;return new s.constructor(o,s.byteOffset,s.length)}return w8=t,w8}var A8,Eb;function tU(){if(Eb)return A8;Eb=1;var e=x3(),t=JP(),s=WP(),l=eU(),o=yZ(),c="[object Boolean]",d="[object Date]",h="[object Map]",m="[object Number]",p="[object RegExp]",x="[object Set]",g="[object String]",b="[object Symbol]",w="[object ArrayBuffer]",j="[object DataView]",N="[object Float32Array]",E="[object Float64Array]",A="[object Int8Array]",C="[object Int16Array]",M="[object Int32Array]",S="[object Uint8Array]",L="[object Uint8ClampedArray]",V="[object Uint16Array]",_="[object Uint32Array]";function H(T,D,F){var P=T.constructor;switch(D){case w:return e(T);case c:case d:return new P(+T);case j:return t(T,F);case N:case E:case A:case C:case M:case S:case L:case V:case _:return o(T,F);case h:return new P;case m:case g:return new P(T);case p:return s(T);case x:return new P;case b:return l(T)}}return A8=H,A8}var j8,Mb;function wZ(){if(Mb)return j8;Mb=1;var e=Da(),t=Object.create,s=(function(){function l(){}return function(o){if(!e(o))return{};if(t)return t(o);l.prototype=o;var c=new l;return l.prototype=void 0,c}})();return j8=s,j8}var N8,Sb;function AZ(){if(Sb)return N8;Sb=1;var e=wZ(),t=To(),s=Vo();function l(o){return typeof o.constructor=="function"&&!s(o)?e(t(o)):{}}return N8=l,N8}var E8,Cb;function aU(){if(Cb)return E8;Cb=1;var e=gs(),t=un(),s="[object Map]";function l(o){return t(o)&&e(o)==s}return E8=l,E8}var M8,Zb;function nU(){if(Zb)return M8;Zb=1;var e=aU(),t=_o(),s=h3(),l=s&&s.isMap,o=l?t(l):e;return M8=o,M8}var S8,Hb;function rU(){if(Hb)return S8;Hb=1;var e=gs(),t=un(),s="[object Set]";function l(o){return t(o)&&e(o)==s}return S8=l,S8}var C8,_b;function sU(){if(_b)return C8;_b=1;var e=rU(),t=_o(),s=h3(),l=s&&s.isSet,o=l?t(l):e;return C8=o,C8}var Z8,Vb;function jZ(){if(Vb)return Z8;Vb=1;var e=So(),t=u3(),s=Zo(),l=qP(),o=BP(),c=dZ(),d=hZ(),h=PP(),m=UP(),p=gZ(),x=GP(),g=gs(),b=QP(),w=tU(),j=AZ(),N=Mt(),E=xs(),A=nU(),C=Da(),M=sU(),S=A0(),L=tr(),V=1,_=2,H=4,T="[object Arguments]",D="[object Array]",F="[object Boolean]",P="[object Date]",U="[object Error]",W="[object Function]",se="[object GeneratorFunction]",O="[object Map]",$="[object Number]",B="[object Object]",Q="[object RegExp]",J="[object Set]",k="[object String]",Y="[object Symbol]",K="[object WeakMap]",q="[object ArrayBuffer]",z="[object DataView]",I="[object Float32Array]",te="[object Float64Array]",fe="[object Int8Array]",pe="[object Int16Array]",Ee="[object Int32Array]",Se="[object Uint8Array]",Ve="[object Uint8ClampedArray]",Pe="[object Uint16Array]",Te="[object Uint32Array]",Ae={};Ae[T]=Ae[D]=Ae[q]=Ae[z]=Ae[F]=Ae[P]=Ae[I]=Ae[te]=Ae[fe]=Ae[pe]=Ae[Ee]=Ae[O]=Ae[$]=Ae[B]=Ae[Q]=Ae[J]=Ae[k]=Ae[Y]=Ae[Se]=Ae[Ve]=Ae[Pe]=Ae[Te]=!0,Ae[U]=Ae[W]=Ae[K]=!1;function qt(Ce,Tt,ie,pt,Fe,ut){var yt,rt=Tt&V,je=Tt&_,et=Tt&H;if(ie&&(yt=Fe?ie(Ce,pt,Fe,ut):ie(Ce)),yt!==void 0)return yt;if(!C(Ce))return Ce;var Ue=N(Ce);if(Ue){if(yt=b(Ce),!rt)return d(Ce,yt)}else{var Lt=g(Ce),ai=Lt==W||Lt==se;if(E(Ce))return c(Ce,rt);if(Lt==B||Lt==T||ai&&!Fe){if(yt=je||ai?{}:j(Ce),!rt)return je?m(Ce,o(yt,Ce)):h(Ce,l(yt,Ce))}else{if(!Ae[Lt])return Fe?Ce:{};yt=w(Ce,Lt,rt)}}ut||(ut=new e);var ws=ut.get(Ce);if(ws)return ws;ut.set(Ce,yt),M(Ce)?Ce.forEach(function(Xt){yt.add(qt(Xt,Tt,ie,Xt,Ce,ut))}):A(Ce)&&Ce.forEach(function(Xt,xt){yt.set(xt,qt(Xt,Tt,ie,xt,Ce,ut))});var zo=et?je?x:p:je?L:S,ni=Ue?void 0:zo(Ce);return t(ni||Ce,function(Xt,xt){ni&&(xt=Xt,Xt=Ce[xt]),s(yt,xt,qt(Xt,Tt,ie,xt,Ce,ut))}),yt}return Z8=qt,Z8}var H8,Tb;function lU(){if(Tb)return H8;Tb=1;var e=jZ(),t=4;function s(l){return e(l,t)}return H8=s,H8}var _8,Lb;function g3(){if(Lb)return _8;Lb=1;function e(t){return function(){return t}}return _8=e,_8}var V8,kb;function iU(){if(kb)return V8;kb=1;function e(t){return function(s,l,o){for(var c=-1,d=Object(s),h=o(s),m=h.length;m--;){var p=h[t?m:++c];if(l(d[p],p,d)===!1)break}return s}}return V8=e,V8}var T8,Rb;function v3(){if(Rb)return T8;Rb=1;var e=iU(),t=e();return T8=t,T8}var L8,Db;function b3(){if(Db)return L8;Db=1;var e=v3(),t=A0();function s(l,o){return l&&e(l,o,t)}return L8=s,L8}var k8,Fb;function oU(){if(Fb)return k8;Fb=1;var e=Dn();function t(s,l){return function(o,c){if(o==null)return o;if(!e(o))return s(o,c);for(var d=o.length,h=l?d:-1,m=Object(o);(l?h--:++h<d)&&c(m[h],h,m)!==!1;);return o}}return k8=t,k8}var R8,Ob;function Lo(){if(Ob)return R8;Ob=1;var e=b3(),t=oU(),s=t(e);return R8=s,R8}var D8,zb;function ar(){if(zb)return D8;zb=1;function e(t){return t}return D8=e,D8}var F8,qb;function NZ(){if(qb)return F8;qb=1;var e=ar();function t(s){return typeof s=="function"?s:e}return F8=t,F8}var O8,Ib;function EZ(){if(Ib)return O8;Ib=1;var e=u3(),t=Lo(),s=NZ(),l=Mt();function o(c,d){var h=l(c)?e:t;return h(c,s(d))}return O8=o,O8}var z8,$b;function MZ(){return $b||($b=1,z8=EZ()),z8}var q8,Bb;function cU(){if(Bb)return q8;Bb=1;var e=Lo();function t(s,l){var o=[];return e(s,function(c,d,h){l(c,d,h)&&o.push(c)}),o}return q8=t,q8}var I8,Pb;function uU(){if(Pb)return I8;Pb=1;var e="__lodash_hash_undefined__";function t(s){return this.__data__.set(s,e),this}return I8=t,I8}var $8,Ub;function dU(){if(Ub)return $8;Ub=1;function e(t){return this.__data__.has(t)}return $8=e,$8}var B8,Gb;function SZ(){if(Gb)return B8;Gb=1;var e=c3(),t=uU(),s=dU();function l(o){var c=-1,d=o==null?0:o.length;for(this.__data__=new e;++c<d;)this.add(o[c])}return l.prototype.add=l.prototype.push=t,l.prototype.has=s,B8=l,B8}var P8,Yb;function hU(){if(Yb)return P8;Yb=1;function e(t,s){for(var l=-1,o=t==null?0:t.length;++l<o;)if(s(t[l],l,t))return!0;return!1}return P8=e,P8}var U8,Kb;function CZ(){if(Kb)return U8;Kb=1;function e(t,s){return t.has(s)}return U8=e,U8}var G8,Xb;function ZZ(){if(Xb)return G8;Xb=1;var e=SZ(),t=hU(),s=CZ(),l=1,o=2;function c(d,h,m,p,x,g){var b=m&l,w=d.length,j=h.length;if(w!=j&&!(b&&j>w))return!1;var N=g.get(d),E=g.get(h);if(N&&E)return N==h&&E==d;var A=-1,C=!0,M=m&o?new e:void 0;for(g.set(d,h),g.set(h,d);++A<w;){var S=d[A],L=h[A];if(p)var V=b?p(L,S,A,h,d,g):p(S,L,A,d,h,g);if(V!==void 0){if(V)continue;C=!1;break}if(M){if(!t(h,function(_,H){if(!s(M,H)&&(S===_||x(S,_,m,p,g)))return M.push(H)})){C=!1;break}}else if(!(S===L||x(S,L,m,p,g))){C=!1;break}}return g.delete(d),g.delete(h),C}return G8=c,G8}var Y8,Qb;function mU(){if(Qb)return Y8;Qb=1;function e(t){var s=-1,l=Array(t.size);return t.forEach(function(o,c){l[++s]=[c,o]}),l}return Y8=e,Y8}var K8,Jb;function y3(){if(Jb)return K8;Jb=1;function e(t){var s=-1,l=Array(t.size);return t.forEach(function(o){l[++s]=o}),l}return K8=e,K8}var X8,Wb;function fU(){if(Wb)return X8;Wb=1;var e=ps(),t=bZ(),s=fs(),l=ZZ(),o=mU(),c=y3(),d=1,h=2,m="[object Boolean]",p="[object Date]",x="[object Error]",g="[object Map]",b="[object Number]",w="[object RegExp]",j="[object Set]",N="[object String]",E="[object Symbol]",A="[object ArrayBuffer]",C="[object DataView]",M=e?e.prototype:void 0,S=M?M.valueOf:void 0;function L(V,_,H,T,D,F,P){switch(H){case C:if(V.byteLength!=_.byteLength||V.byteOffset!=_.byteOffset)return!1;V=V.buffer,_=_.buffer;case A:return!(V.byteLength!=_.byteLength||!F(new t(V),new t(_)));case m:case p:case b:return s(+V,+_);case x:return V.name==_.name&&V.message==_.message;case w:case N:return V==_+"";case g:var U=o;case j:var W=T&d;if(U||(U=c),V.size!=_.size&&!W)return!1;var se=P.get(V);if(se)return se==_;T|=h,P.set(V,_);var O=l(U(V),U(_),T,D,F,P);return P.delete(V),O;case E:if(S)return S.call(V)==S.call(_)}return!1}return X8=L,X8}var Q8,ey;function pU(){if(ey)return Q8;ey=1;var e=gZ(),t=1,s=Object.prototype,l=s.hasOwnProperty;function o(c,d,h,m,p,x){var g=h&t,b=e(c),w=b.length,j=e(d),N=j.length;if(w!=N&&!g)return!1;for(var E=w;E--;){var A=b[E];if(!(g?A in d:l.call(d,A)))return!1}var C=x.get(c),M=x.get(d);if(C&&M)return C==d&&M==c;var S=!0;x.set(c,d),x.set(d,c);for(var L=g;++E<w;){A=b[E];var V=c[A],_=d[A];if(m)var H=g?m(_,V,A,d,c,x):m(V,_,A,c,d,x);if(!(H===void 0?V===_||p(V,_,h,m,x):H)){S=!1;break}L||(L=A=="constructor")}if(S&&!L){var T=c.constructor,D=d.constructor;T!=D&&"constructor"in c&&"constructor"in d&&!(typeof T=="function"&&T instanceof T&&typeof D=="function"&&D instanceof D)&&(S=!1)}return x.delete(c),x.delete(d),S}return Q8=o,Q8}var J8,ty;function xU(){if(ty)return J8;ty=1;var e=So(),t=ZZ(),s=fU(),l=pU(),o=gs(),c=Mt(),d=xs(),h=ei(),m=1,p="[object Arguments]",x="[object Array]",g="[object Object]",b=Object.prototype,w=b.hasOwnProperty;function j(N,E,A,C,M,S){var L=c(N),V=c(E),_=L?x:o(N),H=V?x:o(E);_=_==p?g:_,H=H==p?g:H;var T=_==g,D=H==g,F=_==H;if(F&&d(N)){if(!d(E))return!1;L=!0,T=!1}if(F&&!T)return S||(S=new e),L||h(N)?t(N,E,A,C,M,S):s(N,E,_,A,C,M,S);if(!(A&m)){var P=T&&w.call(N,"__wrapped__"),U=D&&w.call(E,"__wrapped__");if(P||U){var W=P?N.value():N,se=U?E.value():E;return S||(S=new e),M(W,se,A,C,S)}}return F?(S||(S=new e),l(N,E,A,C,M,S)):!1}return J8=j,J8}var W8,ay;function HZ(){if(ay)return W8;ay=1;var e=xU(),t=un();function s(l,o,c,d,h){return l===o?!0:l==null||o==null||!t(l)&&!t(o)?l!==l&&o!==o:e(l,o,c,d,s,h)}return W8=s,W8}var e4,ny;function gU(){if(ny)return e4;ny=1;var e=So(),t=HZ(),s=1,l=2;function o(c,d,h,m){var p=h.length,x=p,g=!m;if(c==null)return!x;for(c=Object(c);p--;){var b=h[p];if(g&&b[2]?b[1]!==c[b[0]]:!(b[0]in c))return!1}for(;++p<x;){b=h[p];var w=b[0],j=c[w],N=b[1];if(g&&b[2]){if(j===void 0&&!(w in c))return!1}else{var E=new e;if(m)var A=m(j,N,w,c,d,E);if(!(A===void 0?t(N,j,s|l,m,E):A))return!1}}return!0}return e4=o,e4}var t4,ry;function _Z(){if(ry)return t4;ry=1;var e=Da();function t(s){return s===s&&!e(s)}return t4=t,t4}var a4,sy;function vU(){if(sy)return a4;sy=1;var e=_Z(),t=A0();function s(l){for(var o=t(l),c=o.length;c--;){var d=o[c],h=l[d];o[c]=[d,h,e(h)]}return o}return a4=s,a4}var n4,ly;function VZ(){if(ly)return n4;ly=1;function e(t,s){return function(l){return l==null?!1:l[t]===s&&(s!==void 0||t in Object(l))}}return n4=e,n4}var r4,iy;function bU(){if(iy)return r4;iy=1;var e=gU(),t=vU(),s=VZ();function l(o){var c=t(o);return c.length==1&&c[0][2]?s(c[0][0],c[0][1]):function(d){return d===o||e(d,o,c)}}return r4=l,r4}var s4,oy;function vs(){if(oy)return s4;oy=1;var e=W0(),t=un(),s="[object Symbol]";function l(o){return typeof o=="symbol"||t(o)&&e(o)==s}return s4=l,s4}var l4,cy;function w3(){if(cy)return l4;cy=1;var e=Mt(),t=vs(),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/;function o(c,d){if(e(c))return!1;var h=typeof c;return h=="number"||h=="symbol"||h=="boolean"||c==null||t(c)?!0:l.test(c)||!s.test(c)||d!=null&&c in Object(d)}return l4=o,l4}var i4,uy;function yU(){if(uy)return i4;uy=1;var e=c3(),t="Expected a function";function s(l,o){if(typeof l!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var c=function(){var d=arguments,h=o?o.apply(this,d):d[0],m=c.cache;if(m.has(h))return m.get(h);var p=l.apply(this,d);return c.cache=m.set(h,p)||m,p};return c.cache=new(s.Cache||e),c}return s.Cache=e,i4=s,i4}var o4,dy;function wU(){if(dy)return o4;dy=1;var e=yU(),t=500;function s(l){var o=e(l,function(d){return c.size===t&&c.clear(),d}),c=o.cache;return o}return o4=s,o4}var c4,hy;function AU(){if(hy)return c4;hy=1;var e=wU(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,l=e(function(o){var c=[];return o.charCodeAt(0)===46&&c.push(""),o.replace(t,function(d,h,m,p){c.push(m?p.replace(s,"$1"):h||d)}),c});return c4=l,c4}var u4,my;function ko(){if(my)return u4;my=1;function e(t,s){for(var l=-1,o=t==null?0:t.length,c=Array(o);++l<o;)c[l]=s(t[l],l,t);return c}return u4=e,u4}var d4,fy;function jU(){if(fy)return d4;fy=1;var e=ps(),t=ko(),s=Mt(),l=vs(),o=e?e.prototype:void 0,c=o?o.toString:void 0;function d(h){if(typeof h=="string")return h;if(s(h))return t(h,d)+"";if(l(h))return c?c.call(h):"";var m=h+"";return m=="0"&&1/h==-1/0?"-0":m}return d4=d,d4}var h4,py;function TZ(){if(py)return h4;py=1;var e=jU();function t(s){return s==null?"":e(s)}return h4=t,h4}var m4,xy;function Ro(){if(xy)return m4;xy=1;var e=Mt(),t=w3(),s=AU(),l=TZ();function o(c,d){return e(c)?c:t(c,d)?[c]:s(l(c))}return m4=o,m4}var f4,gy;function ti(){if(gy)return f4;gy=1;var e=vs();function t(s){if(typeof s=="string"||e(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return f4=t,f4}var p4,vy;function Do(){if(vy)return p4;vy=1;var e=Ro(),t=ti();function s(l,o){o=e(o,l);for(var c=0,d=o.length;l!=null&&c<d;)l=l[t(o[c++])];return c&&c==d?l:void 0}return p4=s,p4}var x4,by;function NU(){if(by)return x4;by=1;var e=Do();function t(s,l,o){var c=s==null?void 0:e(s,l);return c===void 0?o:c}return x4=t,x4}var g4,yy;function EU(){if(yy)return g4;yy=1;function e(t,s){return t!=null&&s in Object(t)}return g4=e,g4}var v4,wy;function LZ(){if(wy)return v4;wy=1;var e=Ro(),t=Wl(),s=Mt(),l=Ho(),o=d3(),c=ti();function d(h,m,p){m=e(m,h);for(var x=-1,g=m.length,b=!1;++x<g;){var w=c(m[x]);if(!(b=h!=null&&p(h,w)))break;h=h[w]}return b||++x!=g?b:(g=h==null?0:h.length,!!g&&o(g)&&l(w,g)&&(s(h)||t(h)))}return v4=d,v4}var b4,Ay;function kZ(){if(Ay)return b4;Ay=1;var e=EU(),t=LZ();function s(l,o){return l!=null&&t(l,o,e)}return b4=s,b4}var y4,jy;function MU(){if(jy)return y4;jy=1;var e=HZ(),t=NU(),s=kZ(),l=w3(),o=_Z(),c=VZ(),d=ti(),h=1,m=2;function p(x,g){return l(x)&&o(g)?c(d(x),g):function(b){var w=t(b,x);return w===void 0&&w===g?s(b,x):e(g,w,h|m)}}return y4=p,y4}var w4,Ny;function RZ(){if(Ny)return w4;Ny=1;function e(t){return function(s){return s==null?void 0:s[t]}}return w4=e,w4}var A4,Ey;function SU(){if(Ey)return A4;Ey=1;var e=Do();function t(s){return function(l){return e(l,s)}}return A4=t,A4}var j4,My;function CU(){if(My)return j4;My=1;var e=RZ(),t=SU(),s=w3(),l=ti();function o(c){return s(c)?e(l(c)):t(c)}return j4=o,j4}var N4,Sy;function Fn(){if(Sy)return N4;Sy=1;var e=bU(),t=MU(),s=ar(),l=Mt(),o=CU();function c(d){return typeof d=="function"?d:d==null?s:typeof d=="object"?l(d)?t(d[0],d[1]):e(d):o(d)}return N4=c,N4}var E4,Cy;function DZ(){if(Cy)return E4;Cy=1;var e=mZ(),t=cU(),s=Fn(),l=Mt();function o(c,d){var h=l(c)?e:t;return h(c,s(d,3))}return E4=o,E4}var M4,Zy;function ZU(){if(Zy)return M4;Zy=1;var e=Object.prototype,t=e.hasOwnProperty;function s(l,o){return l!=null&&t.call(l,o)}return M4=s,M4}var S4,Hy;function FZ(){if(Hy)return S4;Hy=1;var e=ZU(),t=LZ();function s(l,o){return l!=null&&t(l,o,e)}return S4=s,S4}var C4,_y;function HU(){if(_y)return C4;_y=1;var e=m3(),t=gs(),s=Wl(),l=Mt(),o=Dn(),c=xs(),d=Vo(),h=ei(),m="[object Map]",p="[object Set]",x=Object.prototype,g=x.hasOwnProperty;function b(w){if(w==null)return!0;if(o(w)&&(l(w)||typeof w=="string"||typeof w.splice=="function"||c(w)||h(w)||s(w)))return!w.length;var j=t(w);if(j==m||j==p)return!w.size;if(d(w))return!e(w).length;for(var N in w)if(g.call(w,N))return!1;return!0}return C4=b,C4}var Z4,Vy;function OZ(){if(Vy)return Z4;Vy=1;function e(t){return t===void 0}return Z4=e,Z4}var H4,Ty;function zZ(){if(Ty)return H4;Ty=1;var e=Lo(),t=Dn();function s(l,o){var c=-1,d=t(l)?Array(l.length):[];return e(l,function(h,m,p){d[++c]=o(h,m,p)}),d}return H4=s,H4}var _4,Ly;function qZ(){if(Ly)return _4;Ly=1;var e=ko(),t=Fn(),s=zZ(),l=Mt();function o(c,d){var h=l(c)?e:s;return h(c,t(d,3))}return _4=o,_4}var V4,ky;function _U(){if(ky)return V4;ky=1;function e(t,s,l,o){var c=-1,d=t==null?0:t.length;for(o&&d&&(l=t[++c]);++c<d;)l=s(l,t[c],c,t);return l}return V4=e,V4}var T4,Ry;function VU(){if(Ry)return T4;Ry=1;function e(t,s,l,o,c){return c(t,function(d,h,m){l=o?(o=!1,d):s(l,d,h,m)}),l}return T4=e,T4}var L4,Dy;function IZ(){if(Dy)return L4;Dy=1;var e=_U(),t=Lo(),s=Fn(),l=VU(),o=Mt();function c(d,h,m){var p=o(d)?e:l,x=arguments.length<3;return p(d,s(h,4),m,x,t)}return L4=c,L4}var k4,Fy;function TU(){if(Fy)return k4;Fy=1;var e=W0(),t=Mt(),s=un(),l="[object String]";function o(c){return typeof c=="string"||!t(c)&&s(c)&&e(c)==l}return k4=o,k4}var R4,Oy;function LU(){if(Oy)return R4;Oy=1;var e=RZ(),t=e("length");return R4=t,R4}var D4,zy;function kU(){if(zy)return D4;zy=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",s="\\ufe20-\\ufe2f",l="\\u20d0-\\u20ff",o=t+s+l,c="\\ufe0e\\ufe0f",d="\\u200d",h=RegExp("["+d+e+o+c+"]");function m(p){return h.test(p)}return D4=m,D4}var F4,qy;function RU(){if(qy)return F4;qy=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",s="\\ufe20-\\ufe2f",l="\\u20d0-\\u20ff",o=t+s+l,c="\\ufe0e\\ufe0f",d="["+e+"]",h="["+o+"]",m="\\ud83c[\\udffb-\\udfff]",p="(?:"+h+"|"+m+")",x="[^"+e+"]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",w="\\u200d",j=p+"?",N="["+c+"]?",E="(?:"+w+"(?:"+[x,g,b].join("|")+")"+N+j+")*",A=N+j+E,C="(?:"+[x+h+"?",h,g,b,d].join("|")+")",M=RegExp(m+"(?="+m+")|"+C+A,"g");function S(L){for(var V=M.lastIndex=0;M.test(L);)++V;return V}return F4=S,F4}var O4,Iy;function DU(){if(Iy)return O4;Iy=1;var e=LU(),t=kU(),s=RU();function l(o){return t(o)?s(o):e(o)}return O4=l,O4}var z4,$y;function FU(){if($y)return z4;$y=1;var e=m3(),t=gs(),s=Dn(),l=TU(),o=DU(),c="[object Map]",d="[object Set]";function h(m){if(m==null)return 0;if(s(m))return l(m)?o(m):m.length;var p=t(m);return p==c||p==d?m.size:e(m).length}return z4=h,z4}var q4,By;function OU(){if(By)return q4;By=1;var e=u3(),t=wZ(),s=b3(),l=Fn(),o=To(),c=Mt(),d=xs(),h=Ql(),m=Da(),p=ei();function x(g,b,w){var j=c(g),N=j||d(g)||p(g);if(b=l(b,4),w==null){var E=g&&g.constructor;N?w=j?new E:[]:m(g)?w=h(E)?t(o(g)):{}:w={}}return(N?e:s)(g,function(A,C,M){return b(w,A,C,M)}),w}return q4=x,q4}var I4,Py;function zU(){if(Py)return I4;Py=1;var e=ps(),t=Wl(),s=Mt(),l=e?e.isConcatSpreadable:void 0;function o(c){return s(c)||t(c)||!!(l&&c&&c[l])}return I4=o,I4}var $4,Uy;function A3(){if(Uy)return $4;Uy=1;var e=p3(),t=zU();function s(l,o,c,d,h){var m=-1,p=l.length;for(c||(c=t),h||(h=[]);++m<p;){var x=l[m];o>0&&c(x)?o>1?s(x,o-1,c,d,h):e(h,x):d||(h[h.length]=x)}return h}return $4=s,$4}var B4,Gy;function qU(){if(Gy)return B4;Gy=1;function e(t,s,l){switch(l.length){case 0:return t.call(s);case 1:return t.call(s,l[0]);case 2:return t.call(s,l[0],l[1]);case 3:return t.call(s,l[0],l[1],l[2])}return t.apply(s,l)}return B4=e,B4}var P4,Yy;function $Z(){if(Yy)return P4;Yy=1;var e=qU(),t=Math.max;function s(l,o,c){return o=t(o===void 0?l.length-1:o,0),function(){for(var d=arguments,h=-1,m=t(d.length-o,0),p=Array(m);++h<m;)p[h]=d[o+h];h=-1;for(var x=Array(o+1);++h<o;)x[h]=d[h];return x[o]=c(p),e(l,this,x)}}return P4=s,P4}var U4,Ky;function IU(){if(Ky)return U4;Ky=1;var e=g3(),t=oZ(),s=ar(),l=t?function(o,c){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(c),writable:!0})}:s;return U4=l,U4}var G4,Xy;function $U(){if(Xy)return G4;Xy=1;var e=800,t=16,s=Date.now;function l(o){var c=0,d=0;return function(){var h=s(),m=t-(h-d);if(d=h,m>0){if(++c>=e)return arguments[0]}else c=0;return o.apply(void 0,arguments)}}return G4=l,G4}var Y4,Qy;function BZ(){if(Qy)return Y4;Qy=1;var e=IU(),t=$U(),s=t(e);return Y4=s,Y4}var K4,Jy;function Fo(){if(Jy)return K4;Jy=1;var e=ar(),t=$Z(),s=BZ();function l(o,c){return s(t(o,c,e),o+"")}return K4=l,K4}var X4,Wy;function PZ(){if(Wy)return X4;Wy=1;function e(t,s,l,o){for(var c=t.length,d=l+(o?1:-1);o?d--:++d<c;)if(s(t[d],d,t))return d;return-1}return X4=e,X4}var Q4,ew;function BU(){if(ew)return Q4;ew=1;function e(t){return t!==t}return Q4=e,Q4}var J4,tw;function PU(){if(tw)return J4;tw=1;function e(t,s,l){for(var o=l-1,c=t.length;++o<c;)if(t[o]===s)return o;return-1}return J4=e,J4}var W4,aw;function UU(){if(aw)return W4;aw=1;var e=PZ(),t=BU(),s=PU();function l(o,c,d){return c===c?s(o,c,d):e(o,t,d)}return W4=l,W4}var e6,nw;function GU(){if(nw)return e6;nw=1;var e=UU();function t(s,l){var o=s==null?0:s.length;return!!o&&e(s,l,0)>-1}return e6=t,e6}var t6,rw;function YU(){if(rw)return t6;rw=1;function e(t,s,l){for(var o=-1,c=t==null?0:t.length;++o<c;)if(l(s,t[o]))return!0;return!1}return t6=e,t6}var a6,sw;function KU(){if(sw)return a6;sw=1;function e(){}return a6=e,a6}var n6,lw;function XU(){if(lw)return n6;lw=1;var e=vZ(),t=KU(),s=y3(),l=1/0,o=e&&1/s(new e([,-0]))[1]==l?function(c){return new e(c)}:t;return n6=o,n6}var r6,iw;function QU(){if(iw)return r6;iw=1;var e=SZ(),t=GU(),s=YU(),l=CZ(),o=XU(),c=y3(),d=200;function h(m,p,x){var g=-1,b=t,w=m.length,j=!0,N=[],E=N;if(x)j=!1,b=s;else if(w>=d){var A=p?null:o(m);if(A)return c(A);j=!1,b=l,E=new e}else E=p?[]:N;e:for(;++g<w;){var C=m[g],M=p?p(C):C;if(C=x||C!==0?C:0,j&&M===M){for(var S=E.length;S--;)if(E[S]===M)continue e;p&&E.push(M),N.push(C)}else b(E,M,x)||(E!==N&&E.push(M),N.push(C))}return N}return r6=h,r6}var s6,ow;function UZ(){if(ow)return s6;ow=1;var e=Dn(),t=un();function s(l){return t(l)&&e(l)}return s6=s,s6}var l6,cw;function JU(){if(cw)return l6;cw=1;var e=A3(),t=Fo(),s=QU(),l=UZ(),o=t(function(c){return s(e(c,1,l,!0))});return l6=o,l6}var i6,uw;function WU(){if(uw)return i6;uw=1;var e=ko();function t(s,l){return e(l,function(o){return s[o]})}return i6=t,i6}var o6,dw;function GZ(){if(dw)return o6;dw=1;var e=WU(),t=A0();function s(l){return l==null?[]:e(l,t(l))}return o6=s,o6}var c6,hw;function Fa(){if(hw)return c6;hw=1;var e;if(typeof i3=="function")try{e={clone:lU(),constant:g3(),each:MZ(),filter:DZ(),has:FZ(),isArray:Mt(),isEmpty:HU(),isFunction:Ql(),isUndefined:OZ(),keys:A0(),map:qZ(),reduce:IZ(),size:FU(),transform:OU(),union:JU(),values:GZ()}}catch{}return e||(e=window._),c6=e,c6}var u6,mw;function j3(){if(mw)return u6;mw=1;var e=Fa();u6=o;var t="\0",s="\0",l="";function o(x){this._isDirected=e.has(x,"directed")?x.directed:!0,this._isMultigraph=e.has(x,"multigraph")?x.multigraph:!1,this._isCompound=e.has(x,"compound")?x.compound:!1,this._label=void 0,this._defaultNodeLabelFn=e.constant(void 0),this._defaultEdgeLabelFn=e.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[s]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(x){return this._label=x,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(x){return e.isFunction(x)||(x=e.constant(x)),this._defaultNodeLabelFn=x,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return e.keys(this._nodes)},o.prototype.sources=function(){var x=this;return e.filter(this.nodes(),function(g){return e.isEmpty(x._in[g])})},o.prototype.sinks=function(){var x=this;return e.filter(this.nodes(),function(g){return e.isEmpty(x._out[g])})},o.prototype.setNodes=function(x,g){var b=arguments,w=this;return e.each(x,function(j){b.length>1?w.setNode(j,g):w.setNode(j)}),this},o.prototype.setNode=function(x,g){return e.has(this._nodes,x)?(arguments.length>1&&(this._nodes[x]=g),this):(this._nodes[x]=arguments.length>1?g:this._defaultNodeLabelFn(x),this._isCompound&&(this._parent[x]=s,this._children[x]={},this._children[s][x]=!0),this._in[x]={},this._preds[x]={},this._out[x]={},this._sucs[x]={},++this._nodeCount,this)},o.prototype.node=function(x){return this._nodes[x]},o.prototype.hasNode=function(x){return e.has(this._nodes,x)},o.prototype.removeNode=function(x){var g=this;if(e.has(this._nodes,x)){var b=function(w){g.removeEdge(g._edgeObjs[w])};delete this._nodes[x],this._isCompound&&(this._removeFromParentsChildList(x),delete this._parent[x],e.each(this.children(x),function(w){g.setParent(w)}),delete this._children[x]),e.each(e.keys(this._in[x]),b),delete this._in[x],delete this._preds[x],e.each(e.keys(this._out[x]),b),delete this._out[x],delete this._sucs[x],--this._nodeCount}return this},o.prototype.setParent=function(x,g){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(g))g=s;else{g+="";for(var b=g;!e.isUndefined(b);b=this.parent(b))if(b===x)throw new Error("Setting "+g+" as parent of "+x+" would create a cycle");this.setNode(g)}return this.setNode(x),this._removeFromParentsChildList(x),this._parent[x]=g,this._children[g][x]=!0,this},o.prototype._removeFromParentsChildList=function(x){delete this._children[this._parent[x]][x]},o.prototype.parent=function(x){if(this._isCompound){var g=this._parent[x];if(g!==s)return g}},o.prototype.children=function(x){if(e.isUndefined(x)&&(x=s),this._isCompound){var g=this._children[x];if(g)return e.keys(g)}else{if(x===s)return this.nodes();if(this.hasNode(x))return[]}},o.prototype.predecessors=function(x){var g=this._preds[x];if(g)return e.keys(g)},o.prototype.successors=function(x){var g=this._sucs[x];if(g)return e.keys(g)},o.prototype.neighbors=function(x){var g=this.predecessors(x);if(g)return e.union(g,this.successors(x))},o.prototype.isLeaf=function(x){var g;return this.isDirected()?g=this.successors(x):g=this.neighbors(x),g.length===0},o.prototype.filterNodes=function(x){var g=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});g.setGraph(this.graph());var b=this;e.each(this._nodes,function(N,E){x(E)&&g.setNode(E,N)}),e.each(this._edgeObjs,function(N){g.hasNode(N.v)&&g.hasNode(N.w)&&g.setEdge(N,b.edge(N))});var w={};function j(N){var E=b.parent(N);return E===void 0||g.hasNode(E)?(w[N]=E,E):E in w?w[E]:j(E)}return this._isCompound&&e.each(g.nodes(),function(N){g.setParent(N,j(N))}),g},o.prototype.setDefaultEdgeLabel=function(x){return e.isFunction(x)||(x=e.constant(x)),this._defaultEdgeLabelFn=x,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return e.values(this._edgeObjs)},o.prototype.setPath=function(x,g){var b=this,w=arguments;return e.reduce(x,function(j,N){return w.length>1?b.setEdge(j,N,g):b.setEdge(j,N),N}),this},o.prototype.setEdge=function(){var x,g,b,w,j=!1,N=arguments[0];typeof N=="object"&&N!==null&&"v"in N?(x=N.v,g=N.w,b=N.name,arguments.length===2&&(w=arguments[1],j=!0)):(x=N,g=arguments[1],b=arguments[3],arguments.length>2&&(w=arguments[2],j=!0)),x=""+x,g=""+g,e.isUndefined(b)||(b=""+b);var E=h(this._isDirected,x,g,b);if(e.has(this._edgeLabels,E))return j&&(this._edgeLabels[E]=w),this;if(!e.isUndefined(b)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(x),this.setNode(g),this._edgeLabels[E]=j?w:this._defaultEdgeLabelFn(x,g,b);var A=m(this._isDirected,x,g,b);return x=A.v,g=A.w,Object.freeze(A),this._edgeObjs[E]=A,c(this._preds[g],x),c(this._sucs[x],g),this._in[g][E]=A,this._out[x][E]=A,this._edgeCount++,this},o.prototype.edge=function(x,g,b){var w=arguments.length===1?p(this._isDirected,arguments[0]):h(this._isDirected,x,g,b);return this._edgeLabels[w]},o.prototype.hasEdge=function(x,g,b){var w=arguments.length===1?p(this._isDirected,arguments[0]):h(this._isDirected,x,g,b);return e.has(this._edgeLabels,w)},o.prototype.removeEdge=function(x,g,b){var w=arguments.length===1?p(this._isDirected,arguments[0]):h(this._isDirected,x,g,b),j=this._edgeObjs[w];return j&&(x=j.v,g=j.w,delete this._edgeLabels[w],delete this._edgeObjs[w],d(this._preds[g],x),d(this._sucs[x],g),delete this._in[g][w],delete this._out[x][w],this._edgeCount--),this},o.prototype.inEdges=function(x,g){var b=this._in[x];if(b){var w=e.values(b);return g?e.filter(w,function(j){return j.v===g}):w}},o.prototype.outEdges=function(x,g){var b=this._out[x];if(b){var w=e.values(b);return g?e.filter(w,function(j){return j.w===g}):w}},o.prototype.nodeEdges=function(x,g){var b=this.inEdges(x,g);if(b)return b.concat(this.outEdges(x,g))};function c(x,g){x[g]?x[g]++:x[g]=1}function d(x,g){--x[g]||delete x[g]}function h(x,g,b,w){var j=""+g,N=""+b;if(!x&&j>N){var E=j;j=N,N=E}return j+l+N+l+(e.isUndefined(w)?t:w)}function m(x,g,b,w){var j=""+g,N=""+b;if(!x&&j>N){var E=j;j=N,N=E}var A={v:j,w:N};return w&&(A.name=w),A}function p(x,g){return h(x,g.v,g.w,g.name)}return u6}var d6,fw;function eG(){return fw||(fw=1,d6="2.1.8"),d6}var h6,pw;function tG(){return pw||(pw=1,h6={Graph:j3(),version:eG()}),h6}var m6,xw;function aG(){if(xw)return m6;xw=1;var e=Fa(),t=j3();m6={write:s,read:c};function s(d){var h={options:{directed:d.isDirected(),multigraph:d.isMultigraph(),compound:d.isCompound()},nodes:l(d),edges:o(d)};return e.isUndefined(d.graph())||(h.value=e.clone(d.graph())),h}function l(d){return e.map(d.nodes(),function(h){var m=d.node(h),p=d.parent(h),x={v:h};return e.isUndefined(m)||(x.value=m),e.isUndefined(p)||(x.parent=p),x})}function o(d){return e.map(d.edges(),function(h){var m=d.edge(h),p={v:h.v,w:h.w};return e.isUndefined(h.name)||(p.name=h.name),e.isUndefined(m)||(p.value=m),p})}function c(d){var h=new t(d.options).setGraph(d.value);return e.each(d.nodes,function(m){h.setNode(m.v,m.value),m.parent&&h.setParent(m.v,m.parent)}),e.each(d.edges,function(m){h.setEdge({v:m.v,w:m.w,name:m.name},m.value)}),h}return m6}var f6,gw;function nG(){if(gw)return f6;gw=1;var e=Fa();f6=t;function t(s){var l={},o=[],c;function d(h){e.has(l,h)||(l[h]=!0,c.push(h),e.each(s.successors(h),d),e.each(s.predecessors(h),d))}return e.each(s.nodes(),function(h){c=[],d(h),c.length&&o.push(c)}),o}return f6}var p6,vw;function YZ(){if(vw)return p6;vw=1;var e=Fa();p6=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(s){return s.key})},t.prototype.has=function(s){return e.has(this._keyIndices,s)},t.prototype.priority=function(s){var l=this._keyIndices[s];if(l!==void 0)return this._arr[l].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(s,l){var o=this._keyIndices;if(s=String(s),!e.has(o,s)){var c=this._arr,d=c.length;return o[s]=d,c.push({key:s,priority:l}),this._decrease(d),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var s=this._arr.pop();return delete this._keyIndices[s.key],this._heapify(0),s.key},t.prototype.decrease=function(s,l){var o=this._keyIndices[s];if(l>this._arr[o].priority)throw new Error("New priority is greater than current priority. Key: "+s+" Old: "+this._arr[o].priority+" New: "+l);this._arr[o].priority=l,this._decrease(o)},t.prototype._heapify=function(s){var l=this._arr,o=2*s,c=o+1,d=s;o<l.length&&(d=l[o].priority<l[d].priority?o:d,c<l.length&&(d=l[c].priority<l[d].priority?c:d),d!==s&&(this._swap(s,d),this._heapify(d)))},t.prototype._decrease=function(s){for(var l=this._arr,o=l[s].priority,c;s!==0&&(c=s>>1,!(l[c].priority<o));)this._swap(s,c),s=c},t.prototype._swap=function(s,l){var o=this._arr,c=this._keyIndices,d=o[s],h=o[l];o[s]=h,o[l]=d,c[h.key]=s,c[d.key]=l},p6}var x6,bw;function KZ(){if(bw)return x6;bw=1;var e=Fa(),t=YZ();x6=l;var s=e.constant(1);function l(c,d,h,m){return o(c,String(d),h||s,m||function(p){return c.outEdges(p)})}function o(c,d,h,m){var p={},x=new t,g,b,w=function(j){var N=j.v!==g?j.v:j.w,E=p[N],A=h(j),C=b.distance+A;if(A<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+j+" Weight: "+A);C<E.distance&&(E.distance=C,E.predecessor=g,x.decrease(N,C))};for(c.nodes().forEach(function(j){var N=j===d?0:Number.POSITIVE_INFINITY;p[j]={distance:N},x.add(j,N)});x.size()>0&&(g=x.removeMin(),b=p[g],b.distance!==Number.POSITIVE_INFINITY);)m(g).forEach(w);return p}return x6}var g6,yw;function rG(){if(yw)return g6;yw=1;var e=KZ(),t=Fa();g6=s;function s(l,o,c){return t.transform(l.nodes(),function(d,h){d[h]=e(l,h,o,c)},{})}return g6}var v6,ww;function XZ(){if(ww)return v6;ww=1;var e=Fa();v6=t;function t(s){var l=0,o=[],c={},d=[];function h(m){var p=c[m]={onStack:!0,lowlink:l,index:l++};if(o.push(m),s.successors(m).forEach(function(b){e.has(c,b)?c[b].onStack&&(p.lowlink=Math.min(p.lowlink,c[b].index)):(h(b),p.lowlink=Math.min(p.lowlink,c[b].lowlink))}),p.lowlink===p.index){var x=[],g;do g=o.pop(),c[g].onStack=!1,x.push(g);while(m!==g);d.push(x)}}return s.nodes().forEach(function(m){e.has(c,m)||h(m)}),d}return v6}var b6,Aw;function sG(){if(Aw)return b6;Aw=1;var e=Fa(),t=XZ();b6=s;function s(l){return e.filter(t(l),function(o){return o.length>1||o.length===1&&l.hasEdge(o[0],o[0])})}return b6}var y6,jw;function lG(){if(jw)return y6;jw=1;var e=Fa();y6=s;var t=e.constant(1);function s(o,c,d){return l(o,c||t,d||function(h){return o.outEdges(h)})}function l(o,c,d){var h={},m=o.nodes();return m.forEach(function(p){h[p]={},h[p][p]={distance:0},m.forEach(function(x){p!==x&&(h[p][x]={distance:Number.POSITIVE_INFINITY})}),d(p).forEach(function(x){var g=x.v===p?x.w:x.v,b=c(x);h[p][g]={distance:b,predecessor:p}})}),m.forEach(function(p){var x=h[p];m.forEach(function(g){var b=h[g];m.forEach(function(w){var j=b[p],N=x[w],E=b[w],A=j.distance+N.distance;A<E.distance&&(E.distance=A,E.predecessor=N.predecessor)})})}),h}return y6}var w6,Nw;function QZ(){if(Nw)return w6;Nw=1;var e=Fa();w6=t,t.CycleException=s;function t(l){var o={},c={},d=[];function h(m){if(e.has(c,m))throw new s;e.has(o,m)||(c[m]=!0,o[m]=!0,e.each(l.predecessors(m),h),delete c[m],d.push(m))}if(e.each(l.sinks(),h),e.size(o)!==l.nodeCount())throw new s;return d}function s(){}return s.prototype=new Error,w6}var A6,Ew;function iG(){if(Ew)return A6;Ew=1;var e=QZ();A6=t;function t(s){try{e(s)}catch(l){if(l instanceof e.CycleException)return!1;throw l}return!0}return A6}var j6,Mw;function JZ(){if(Mw)return j6;Mw=1;var e=Fa();j6=t;function t(l,o,c){e.isArray(o)||(o=[o]);var d=(l.isDirected()?l.successors:l.neighbors).bind(l),h=[],m={};return e.each(o,function(p){if(!l.hasNode(p))throw new Error("Graph does not have node: "+p);s(l,p,c==="post",m,d,h)}),h}function s(l,o,c,d,h,m){e.has(d,o)||(d[o]=!0,c||m.push(o),e.each(h(o),function(p){s(l,p,c,d,h,m)}),c&&m.push(o))}return j6}var N6,Sw;function oG(){if(Sw)return N6;Sw=1;var e=JZ();N6=t;function t(s,l){return e(s,l,"post")}return N6}var E6,Cw;function cG(){if(Cw)return E6;Cw=1;var e=JZ();E6=t;function t(s,l){return e(s,l,"pre")}return E6}var M6,Zw;function uG(){if(Zw)return M6;Zw=1;var e=Fa(),t=j3(),s=YZ();M6=l;function l(o,c){var d=new t,h={},m=new s,p;function x(b){var w=b.v===p?b.w:b.v,j=m.priority(w);if(j!==void 0){var N=c(b);N<j&&(h[w]=p,m.decrease(w,N))}}if(o.nodeCount()===0)return d;e.each(o.nodes(),function(b){m.add(b,Number.POSITIVE_INFINITY),d.setNode(b)}),m.decrease(o.nodes()[0],0);for(var g=!1;m.size()>0;){if(p=m.removeMin(),e.has(h,p))d.setEdge(p,h[p]);else{if(g)throw new Error("Input graph is not connected: "+o);g=!0}o.nodeEdges(p).forEach(x)}return d}return M6}var S6,Hw;function dG(){return Hw||(Hw=1,S6={components:nG(),dijkstra:KZ(),dijkstraAll:rG(),findCycles:sG(),floydWarshall:lG(),isAcyclic:iG(),postorder:oG(),preorder:cG(),prim:uG(),tarjan:XZ(),topsort:QZ()}),S6}var C6,_w;function hG(){if(_w)return C6;_w=1;var e=tG();return C6={Graph:e.Graph,json:aG(),alg:dG(),version:e.version},C6}var Z6,Vw;function Ga(){if(Vw)return Z6;Vw=1;var e;if(typeof i3=="function")try{e=hG()}catch{}return e||(e=window.graphlib),Z6=e,Z6}var H6,Tw;function mG(){if(Tw)return H6;Tw=1;var e=jZ(),t=1,s=4;function l(o){return e(o,t|s)}return H6=l,H6}var _6,Lw;function Oo(){if(Lw)return _6;Lw=1;var e=fs(),t=Dn(),s=Ho(),l=Da();function o(c,d,h){if(!l(h))return!1;var m=typeof d;return(m=="number"?t(h)&&s(d,h.length):m=="string"&&d in h)?e(h[d],c):!1}return _6=o,_6}var V6,kw;function fG(){if(kw)return V6;kw=1;var e=Fo(),t=fs(),s=Oo(),l=tr(),o=Object.prototype,c=o.hasOwnProperty,d=e(function(h,m){h=Object(h);var p=-1,x=m.length,g=x>2?m[2]:void 0;for(g&&s(m[0],m[1],g)&&(x=1);++p<x;)for(var b=m[p],w=l(b),j=-1,N=w.length;++j<N;){var E=w[j],A=h[E];(A===void 0||t(A,o[E])&&!c.call(h,E))&&(h[E]=b[E])}return h});return V6=d,V6}var T6,Rw;function pG(){if(Rw)return T6;Rw=1;var e=Fn(),t=Dn(),s=A0();function l(o){return function(c,d,h){var m=Object(c);if(!t(c)){var p=e(d,3);c=s(c),d=function(g){return p(m[g],g,m)}}var x=o(c,d,h);return x>-1?m[p?c[x]:x]:void 0}}return T6=l,T6}var L6,Dw;function xG(){if(Dw)return L6;Dw=1;var e=/\s/;function t(s){for(var l=s.length;l--&&e.test(s.charAt(l)););return l}return L6=t,L6}var k6,Fw;function gG(){if(Fw)return k6;Fw=1;var e=xG(),t=/^\s+/;function s(l){return l&&l.slice(0,e(l)+1).replace(t,"")}return k6=s,k6}var R6,Ow;function vG(){if(Ow)return R6;Ow=1;var e=gG(),t=Da(),s=vs(),l=NaN,o=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function m(p){if(typeof p=="number")return p;if(s(p))return l;if(t(p)){var x=typeof p.valueOf=="function"?p.valueOf():p;p=t(x)?x+"":x}if(typeof p!="string")return p===0?p:+p;p=e(p);var g=c.test(p);return g||d.test(p)?h(p.slice(2),g?2:8):o.test(p)?l:+p}return R6=m,R6}var D6,zw;function WZ(){if(zw)return D6;zw=1;var e=vG(),t=1/0,s=17976931348623157e292;function l(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-t){var c=o<0?-1:1;return c*s}return o===o?o:0}return D6=l,D6}var F6,qw;function bG(){if(qw)return F6;qw=1;var e=WZ();function t(s){var l=e(s),o=l%1;return l===l?o?l-o:l:0}return F6=t,F6}var O6,Iw;function yG(){if(Iw)return O6;Iw=1;var e=PZ(),t=Fn(),s=bG(),l=Math.max;function o(c,d,h){var m=c==null?0:c.length;if(!m)return-1;var p=h==null?0:s(h);return p<0&&(p=l(m+p,0)),e(c,t(d,3),p)}return O6=o,O6}var z6,$w;function wG(){if($w)return z6;$w=1;var e=pG(),t=yG(),s=e(t);return z6=s,z6}var q6,Bw;function eH(){if(Bw)return q6;Bw=1;var e=A3();function t(s){var l=s==null?0:s.length;return l?e(s,1):[]}return q6=t,q6}var I6,Pw;function AG(){if(Pw)return I6;Pw=1;var e=v3(),t=NZ(),s=tr();function l(o,c){return o==null?o:e(o,t(c),s)}return I6=l,I6}var $6,Uw;function jG(){if(Uw)return $6;Uw=1;function e(t){var s=t==null?0:t.length;return s?t[s-1]:void 0}return $6=e,$6}var B6,Gw;function NG(){if(Gw)return B6;Gw=1;var e=Co(),t=b3(),s=Fn();function l(o,c){var d={};return c=s(c,3),t(o,function(h,m,p){e(d,m,c(h,m,p))}),d}return B6=l,B6}var P6,Yw;function N3(){if(Yw)return P6;Yw=1;var e=vs();function t(s,l,o){for(var c=-1,d=s.length;++c<d;){var h=s[c],m=l(h);if(m!=null&&(p===void 0?m===m&&!e(m):o(m,p)))var p=m,x=h}return x}return P6=t,P6}var U6,Kw;function EG(){if(Kw)return U6;Kw=1;function e(t,s){return t>s}return U6=e,U6}var G6,Xw;function MG(){if(Xw)return G6;Xw=1;var e=N3(),t=EG(),s=ar();function l(o){return o&&o.length?e(o,s,t):void 0}return G6=l,G6}var Y6,Qw;function tH(){if(Qw)return Y6;Qw=1;var e=Co(),t=fs();function s(l,o,c){(c!==void 0&&!t(l[o],c)||c===void 0&&!(o in l))&&e(l,o,c)}return Y6=s,Y6}var K6,Jw;function SG(){if(Jw)return K6;Jw=1;var e=W0(),t=To(),s=un(),l="[object Object]",o=Function.prototype,c=Object.prototype,d=o.toString,h=c.hasOwnProperty,m=d.call(Object);function p(x){if(!s(x)||e(x)!=l)return!1;var g=t(x);if(g===null)return!0;var b=h.call(g,"constructor")&&g.constructor;return typeof b=="function"&&b instanceof b&&d.call(b)==m}return K6=p,K6}var X6,Ww;function aH(){if(Ww)return X6;Ww=1;function e(t,s){if(!(s==="constructor"&&typeof t[s]=="function")&&s!="__proto__")return t[s]}return X6=e,X6}var Q6,eA;function CG(){if(eA)return Q6;eA=1;var e=Jl(),t=tr();function s(l){return e(l,t(l))}return Q6=s,Q6}var J6,tA;function ZG(){if(tA)return J6;tA=1;var e=tH(),t=dZ(),s=yZ(),l=hZ(),o=AZ(),c=Wl(),d=Mt(),h=UZ(),m=xs(),p=Ql(),x=Da(),g=SG(),b=ei(),w=aH(),j=CG();function N(E,A,C,M,S,L,V){var _=w(E,C),H=w(A,C),T=V.get(H);if(T){e(E,C,T);return}var D=L?L(_,H,C+"",E,A,V):void 0,F=D===void 0;if(F){var P=d(H),U=!P&&m(H),W=!P&&!U&&b(H);D=H,P||U||W?d(_)?D=_:h(_)?D=l(_):U?(F=!1,D=t(H,!0)):W?(F=!1,D=s(H,!0)):D=[]:g(H)||c(H)?(D=_,c(_)?D=j(_):(!x(_)||p(_))&&(D=o(H))):F=!1}F&&(V.set(H,D),S(D,H,M,L,V),V.delete(H)),e(E,C,D)}return J6=N,J6}var W6,aA;function HG(){if(aA)return W6;aA=1;var e=So(),t=tH(),s=v3(),l=ZG(),o=Da(),c=tr(),d=aH();function h(m,p,x,g,b){m!==p&&s(p,function(w,j){if(b||(b=new e),o(w))l(m,p,j,x,h,g,b);else{var N=g?g(d(m,j),w,j+"",m,p,b):void 0;N===void 0&&(N=w),t(m,j,N)}},c)}return W6=h,W6}var eh,nA;function _G(){if(nA)return eh;nA=1;var e=Fo(),t=Oo();function s(l){return e(function(o,c){var d=-1,h=c.length,m=h>1?c[h-1]:void 0,p=h>2?c[2]:void 0;for(m=l.length>3&&typeof m=="function"?(h--,m):void 0,p&&t(c[0],c[1],p)&&(m=h<3?void 0:m,h=1),o=Object(o);++d<h;){var x=c[d];x&&l(o,x,d,m)}return o})}return eh=s,eh}var th,rA;function VG(){if(rA)return th;rA=1;var e=HG(),t=_G(),s=t(function(l,o,c){e(l,o,c)});return th=s,th}var ah,sA;function nH(){if(sA)return ah;sA=1;function e(t,s){return t<s}return ah=e,ah}var nh,lA;function TG(){if(lA)return nh;lA=1;var e=N3(),t=nH(),s=ar();function l(o){return o&&o.length?e(o,s,t):void 0}return nh=l,nh}var rh,iA;function LG(){if(iA)return rh;iA=1;var e=N3(),t=Fn(),s=nH();function l(o,c){return o&&o.length?e(o,t(c,2),s):void 0}return rh=l,rh}var sh,oA;function kG(){if(oA)return sh;oA=1;var e=Xa(),t=function(){return e.Date.now()};return sh=t,sh}var lh,cA;function RG(){if(cA)return lh;cA=1;var e=Zo(),t=Ro(),s=Ho(),l=Da(),o=ti();function c(d,h,m,p){if(!l(d))return d;h=t(h,d);for(var x=-1,g=h.length,b=g-1,w=d;w!=null&&++x<g;){var j=o(h[x]),N=m;if(j==="__proto__"||j==="constructor"||j==="prototype")return d;if(x!=b){var E=w[j];N=p?p(E,j,w):void 0,N===void 0&&(N=l(E)?E:s(h[x+1])?[]:{})}e(w,j,N),w=w[j]}return d}return lh=c,lh}var ih,uA;function DG(){if(uA)return ih;uA=1;var e=Do(),t=RG(),s=Ro();function l(o,c,d){for(var h=-1,m=c.length,p={};++h<m;){var x=c[h],g=e(o,x);d(g,x)&&t(p,s(x,o),g)}return p}return ih=l,ih}var oh,dA;function FG(){if(dA)return oh;dA=1;var e=DG(),t=kZ();function s(l,o){return e(l,o,function(c,d){return t(l,d)})}return oh=s,oh}var ch,hA;function OG(){if(hA)return ch;hA=1;var e=eH(),t=$Z(),s=BZ();function l(o){return s(t(o,void 0,e),o+"")}return ch=l,ch}var uh,mA;function zG(){if(mA)return uh;mA=1;var e=FG(),t=OG(),s=t(function(l,o){return l==null?{}:e(l,o)});return uh=s,uh}var dh,fA;function qG(){if(fA)return dh;fA=1;var e=Math.ceil,t=Math.max;function s(l,o,c,d){for(var h=-1,m=t(e((o-l)/(c||1)),0),p=Array(m);m--;)p[d?m:++h]=l,l+=c;return p}return dh=s,dh}var hh,pA;function IG(){if(pA)return hh;pA=1;var e=qG(),t=Oo(),s=WZ();function l(o){return function(c,d,h){return h&&typeof h!="number"&&t(c,d,h)&&(d=h=void 0),c=s(c),d===void 0?(d=c,c=0):d=s(d),h=h===void 0?c<d?1:-1:s(h),e(c,d,h,o)}}return hh=l,hh}var mh,xA;function $G(){if(xA)return mh;xA=1;var e=IG(),t=e();return mh=t,mh}var fh,gA;function BG(){if(gA)return fh;gA=1;function e(t,s){var l=t.length;for(t.sort(s);l--;)t[l]=t[l].value;return t}return fh=e,fh}var ph,vA;function PG(){if(vA)return ph;vA=1;var e=vs();function t(s,l){if(s!==l){var o=s!==void 0,c=s===null,d=s===s,h=e(s),m=l!==void 0,p=l===null,x=l===l,g=e(l);if(!p&&!g&&!h&&s>l||h&&m&&x&&!p&&!g||c&&m&&x||!o&&x||!d)return 1;if(!c&&!h&&!g&&s<l||g&&o&&d&&!c&&!h||p&&o&&d||!m&&d||!x)return-1}return 0}return ph=t,ph}var xh,bA;function UG(){if(bA)return xh;bA=1;var e=PG();function t(s,l,o){for(var c=-1,d=s.criteria,h=l.criteria,m=d.length,p=o.length;++c<m;){var x=e(d[c],h[c]);if(x){if(c>=p)return x;var g=o[c];return x*(g=="desc"?-1:1)}}return s.index-l.index}return xh=t,xh}var gh,yA;function GG(){if(yA)return gh;yA=1;var e=ko(),t=Do(),s=Fn(),l=zZ(),o=BG(),c=_o(),d=UG(),h=ar(),m=Mt();function p(x,g,b){g.length?g=e(g,function(N){return m(N)?function(E){return t(E,N.length===1?N[0]:N)}:N}):g=[h];var w=-1;g=e(g,c(s));var j=l(x,function(N,E,A){var C=e(g,function(M){return M(N)});return{criteria:C,index:++w,value:N}});return o(j,function(N,E){return d(N,E,b)})}return gh=p,gh}var vh,wA;function YG(){if(wA)return vh;wA=1;var e=A3(),t=GG(),s=Fo(),l=Oo(),o=s(function(c,d){if(c==null)return[];var h=d.length;return h>1&&l(c,d[0],d[1])?d=[]:h>2&&l(d[0],d[1],d[2])&&(d=[d[0]]),t(c,e(d,1),[])});return vh=o,vh}var bh,AA;function KG(){if(AA)return bh;AA=1;var e=TZ(),t=0;function s(l){var o=++t;return e(l)+o}return bh=s,bh}var yh,jA;function XG(){if(jA)return yh;jA=1;function e(t,s,l){for(var o=-1,c=t.length,d=s.length,h={};++o<c;){var m=o<d?s[o]:void 0;l(h,t[o],m)}return h}return yh=e,yh}var wh,NA;function QG(){if(NA)return wh;NA=1;var e=Zo(),t=XG();function s(l,o){return t(l||[],o||[],e)}return wh=s,wh}var Ah,EA;function ot(){if(EA)return Ah;EA=1;var e;if(typeof i3=="function")try{e={cloneDeep:mG(),constant:g3(),defaults:fG(),each:MZ(),filter:DZ(),find:wG(),flatten:eH(),forEach:EZ(),forIn:AG(),has:FZ(),isUndefined:OZ(),last:jG(),map:qZ(),mapValues:NG(),max:MG(),merge:VG(),min:TG(),minBy:LG(),now:kG(),pick:zG(),range:$G(),reduce:IZ(),sortBy:YG(),uniqueId:KG(),values:GZ(),zipObject:QG()}}catch{}return e||(e=window._),Ah=e,Ah}var jh,MA;function JG(){if(MA)return jh;MA=1,jh=e;function e(){var l={};l._next=l._prev=l,this._sentinel=l}e.prototype.dequeue=function(){var l=this._sentinel,o=l._prev;if(o!==l)return t(o),o},e.prototype.enqueue=function(l){var o=this._sentinel;l._prev&&l._next&&t(l),l._next=o._next,o._next._prev=l,o._next=l,l._prev=o},e.prototype.toString=function(){for(var l=[],o=this._sentinel,c=o._prev;c!==o;)l.push(JSON.stringify(c,s)),c=c._prev;return"["+l.join(", ")+"]"};function t(l){l._prev._next=l._next,l._next._prev=l._prev,delete l._next,delete l._prev}function s(l,o){if(l!=="_next"&&l!=="_prev")return o}return jh}var Nh,SA;function WG(){if(SA)return Nh;SA=1;var e=ot(),t=Ga().Graph,s=JG();Nh=o;var l=e.constant(1);function o(p,x){if(p.nodeCount()<=1)return[];var g=h(p,x||l),b=c(g.graph,g.buckets,g.zeroIdx);return e.flatten(e.map(b,function(w){return p.outEdges(w.v,w.w)}),!0)}function c(p,x,g){for(var b=[],w=x[x.length-1],j=x[0],N;p.nodeCount();){for(;N=j.dequeue();)d(p,x,g,N);for(;N=w.dequeue();)d(p,x,g,N);if(p.nodeCount()){for(var E=x.length-2;E>0;--E)if(N=x[E].dequeue(),N){b=b.concat(d(p,x,g,N,!0));break}}}return b}function d(p,x,g,b,w){var j=w?[]:void 0;return e.forEach(p.inEdges(b.v),function(N){var E=p.edge(N),A=p.node(N.v);w&&j.push({v:N.v,w:N.w}),A.out-=E,m(x,g,A)}),e.forEach(p.outEdges(b.v),function(N){var E=p.edge(N),A=N.w,C=p.node(A);C.in-=E,m(x,g,C)}),p.removeNode(b.v),j}function h(p,x){var g=new t,b=0,w=0;e.forEach(p.nodes(),function(E){g.setNode(E,{v:E,in:0,out:0})}),e.forEach(p.edges(),function(E){var A=g.edge(E.v,E.w)||0,C=x(E),M=A+C;g.setEdge(E.v,E.w,M),w=Math.max(w,g.node(E.v).out+=C),b=Math.max(b,g.node(E.w).in+=C)});var j=e.range(w+b+3).map(function(){return new s}),N=b+1;return e.forEach(g.nodes(),function(E){m(j,N,g.node(E))}),{graph:g,buckets:j,zeroIdx:N}}function m(p,x,g){g.out?g.in?p[g.out-g.in+x].enqueue(g):p[p.length-1].enqueue(g):p[0].enqueue(g)}return Nh}var Eh,CA;function eY(){if(CA)return Eh;CA=1;var e=ot(),t=WG();Eh={run:s,undo:o};function s(c){var d=c.graph().acyclicer==="greedy"?t(c,h(c)):l(c);e.forEach(d,function(m){var p=c.edge(m);c.removeEdge(m),p.forwardName=m.name,p.reversed=!0,c.setEdge(m.w,m.v,p,e.uniqueId("rev"))});function h(m){return function(p){return m.edge(p).weight}}}function l(c){var d=[],h={},m={};function p(x){e.has(m,x)||(m[x]=!0,h[x]=!0,e.forEach(c.outEdges(x),function(g){e.has(h,g.w)?d.push(g):p(g.w)}),delete h[x])}return e.forEach(c.nodes(),p),d}function o(c){e.forEach(c.edges(),function(d){var h=c.edge(d);if(h.reversed){c.removeEdge(d);var m=h.forwardName;delete h.reversed,delete h.forwardName,c.setEdge(d.w,d.v,h,m)}})}return Eh}var Mh,ZA;function sa(){if(ZA)return Mh;ZA=1;var e=ot(),t=Ga().Graph;Mh={addDummyNode:s,simplify:l,asNonCompoundGraph:o,successorWeights:c,predecessorWeights:d,intersectRect:h,buildLayerMatrix:m,normalizeRanks:p,removeEmptyRanks:x,addBorderNode:g,maxRank:b,partition:w,time:j,notime:N};function s(E,A,C,M){var S;do S=e.uniqueId(M);while(E.hasNode(S));return C.dummy=A,E.setNode(S,C),S}function l(E){var A=new t().setGraph(E.graph());return e.forEach(E.nodes(),function(C){A.setNode(C,E.node(C))}),e.forEach(E.edges(),function(C){var M=A.edge(C.v,C.w)||{weight:0,minlen:1},S=E.edge(C);A.setEdge(C.v,C.w,{weight:M.weight+S.weight,minlen:Math.max(M.minlen,S.minlen)})}),A}function o(E){var A=new t({multigraph:E.isMultigraph()}).setGraph(E.graph());return e.forEach(E.nodes(),function(C){E.children(C).length||A.setNode(C,E.node(C))}),e.forEach(E.edges(),function(C){A.setEdge(C,E.edge(C))}),A}function c(E){var A=e.map(E.nodes(),function(C){var M={};return e.forEach(E.outEdges(C),function(S){M[S.w]=(M[S.w]||0)+E.edge(S).weight}),M});return e.zipObject(E.nodes(),A)}function d(E){var A=e.map(E.nodes(),function(C){var M={};return e.forEach(E.inEdges(C),function(S){M[S.v]=(M[S.v]||0)+E.edge(S).weight}),M});return e.zipObject(E.nodes(),A)}function h(E,A){var C=E.x,M=E.y,S=A.x-C,L=A.y-M,V=E.width/2,_=E.height/2;if(!S&&!L)throw new Error("Not possible to find intersection inside of the rectangle");var H,T;return Math.abs(L)*V>Math.abs(S)*_?(L<0&&(_=-_),H=_*S/L,T=_):(S<0&&(V=-V),H=V,T=V*L/S),{x:C+H,y:M+T}}function m(E){var A=e.map(e.range(b(E)+1),function(){return[]});return e.forEach(E.nodes(),function(C){var M=E.node(C),S=M.rank;e.isUndefined(S)||(A[S][M.order]=C)}),A}function p(E){var A=e.min(e.map(E.nodes(),function(C){return E.node(C).rank}));e.forEach(E.nodes(),function(C){var M=E.node(C);e.has(M,"rank")&&(M.rank-=A)})}function x(E){var A=e.min(e.map(E.nodes(),function(L){return E.node(L).rank})),C=[];e.forEach(E.nodes(),function(L){var V=E.node(L).rank-A;C[V]||(C[V]=[]),C[V].push(L)});var M=0,S=E.graph().nodeRankFactor;e.forEach(C,function(L,V){e.isUndefined(L)&&V%S!==0?--M:M&&e.forEach(L,function(_){E.node(_).rank+=M})})}function g(E,A,C,M){var S={width:0,height:0};return arguments.length>=4&&(S.rank=C,S.order=M),s(E,"border",S,A)}function b(E){return e.max(e.map(E.nodes(),function(A){var C=E.node(A).rank;if(!e.isUndefined(C))return C}))}function w(E,A){var C={lhs:[],rhs:[]};return e.forEach(E,function(M){A(M)?C.lhs.push(M):C.rhs.push(M)}),C}function j(E,A){var C=e.now();try{return A()}finally{console.log(E+" time: "+(e.now()-C)+"ms")}}function N(E,A){return A()}return Mh}var Sh,HA;function tY(){if(HA)return Sh;HA=1;var e=ot(),t=sa();Sh={run:s,undo:o};function s(c){c.graph().dummyChains=[],e.forEach(c.edges(),function(d){l(c,d)})}function l(c,d){var h=d.v,m=c.node(h).rank,p=d.w,x=c.node(p).rank,g=d.name,b=c.edge(d),w=b.labelRank;if(x!==m+1){c.removeEdge(d);var j,N,E;for(E=0,++m;m<x;++E,++m)b.points=[],N={width:0,height:0,edgeLabel:b,edgeObj:d,rank:m},j=t.addDummyNode(c,"edge",N,"_d"),m===w&&(N.width=b.width,N.height=b.height,N.dummy="edge-label",N.labelpos=b.labelpos),c.setEdge(h,j,{weight:b.weight},g),E===0&&c.graph().dummyChains.push(j),h=j;c.setEdge(h,p,{weight:b.weight},g)}}function o(c){e.forEach(c.graph().dummyChains,function(d){var h=c.node(d),m=h.edgeLabel,p;for(c.setEdge(h.edgeObj,m);h.dummy;)p=c.successors(d)[0],c.removeNode(d),m.points.push({x:h.x,y:h.y}),h.dummy==="edge-label"&&(m.x=h.x,m.y=h.y,m.width=h.width,m.height=h.height),d=p,h=c.node(d)})}return Sh}var Ch,_A;function io(){if(_A)return Ch;_A=1;var e=ot();Ch={longestPath:t,slack:s};function t(l){var o={};function c(d){var h=l.node(d);if(e.has(o,d))return h.rank;o[d]=!0;var m=e.min(e.map(l.outEdges(d),function(p){return c(p.w)-l.edge(p).minlen}));return(m===Number.POSITIVE_INFINITY||m===void 0||m===null)&&(m=0),h.rank=m}e.forEach(l.sources(),c)}function s(l,o){return l.node(o.w).rank-l.node(o.v).rank-l.edge(o).minlen}return Ch}var Zh,VA;function rH(){if(VA)return Zh;VA=1;var e=ot(),t=Ga().Graph,s=io().slack;Zh=l;function l(h){var m=new t({directed:!1}),p=h.nodes()[0],x=h.nodeCount();m.setNode(p,{});for(var g,b;o(m,h)<x;)g=c(m,h),b=m.hasNode(g.v)?s(h,g):-s(h,g),d(m,h,b);return m}function o(h,m){function p(x){e.forEach(m.nodeEdges(x),function(g){var b=g.v,w=x===b?g.w:b;!h.hasNode(w)&&!s(m,g)&&(h.setNode(w,{}),h.setEdge(x,w,{}),p(w))})}return e.forEach(h.nodes(),p),h.nodeCount()}function c(h,m){return e.minBy(m.edges(),function(p){if(h.hasNode(p.v)!==h.hasNode(p.w))return s(m,p)})}function d(h,m,p){e.forEach(h.nodes(),function(x){m.node(x).rank+=p})}return Zh}var Hh,TA;function aY(){if(TA)return Hh;TA=1;var e=ot(),t=rH(),s=io().slack,l=io().longestPath,o=Ga().alg.preorder,c=Ga().alg.postorder,d=sa().simplify;Hh=h,h.initLowLimValues=g,h.initCutValues=m,h.calcCutValue=x,h.leaveEdge=w,h.enterEdge=j,h.exchangeEdges=N;function h(M){M=d(M),l(M);var S=t(M);g(S),m(S,M);for(var L,V;L=w(S);)V=j(S,M,L),N(S,M,L,V)}function m(M,S){var L=c(M,M.nodes());L=L.slice(0,L.length-1),e.forEach(L,function(V){p(M,S,V)})}function p(M,S,L){var V=M.node(L),_=V.parent;M.edge(L,_).cutvalue=x(M,S,L)}function x(M,S,L){var V=M.node(L),_=V.parent,H=!0,T=S.edge(L,_),D=0;return T||(H=!1,T=S.edge(_,L)),D=T.weight,e.forEach(S.nodeEdges(L),function(F){var P=F.v===L,U=P?F.w:F.v;if(U!==_){var W=P===H,se=S.edge(F).weight;if(D+=W?se:-se,A(M,L,U)){var O=M.edge(L,U).cutvalue;D+=W?-O:O}}}),D}function g(M,S){arguments.length<2&&(S=M.nodes()[0]),b(M,{},1,S)}function b(M,S,L,V,_){var H=L,T=M.node(V);return S[V]=!0,e.forEach(M.neighbors(V),function(D){e.has(S,D)||(L=b(M,S,L,D,V))}),T.low=H,T.lim=L++,_?T.parent=_:delete T.parent,L}function w(M){return e.find(M.edges(),function(S){return M.edge(S).cutvalue<0})}function j(M,S,L){var V=L.v,_=L.w;S.hasEdge(V,_)||(V=L.w,_=L.v);var H=M.node(V),T=M.node(_),D=H,F=!1;H.lim>T.lim&&(D=T,F=!0);var P=e.filter(S.edges(),function(U){return F===C(M,M.node(U.v),D)&&F!==C(M,M.node(U.w),D)});return e.minBy(P,function(U){return s(S,U)})}function N(M,S,L,V){var _=L.v,H=L.w;M.removeEdge(_,H),M.setEdge(V.v,V.w,{}),g(M),m(M,S),E(M,S)}function E(M,S){var L=e.find(M.nodes(),function(_){return!S.node(_).parent}),V=o(M,L);V=V.slice(1),e.forEach(V,function(_){var H=M.node(_).parent,T=S.edge(_,H),D=!1;T||(T=S.edge(H,_),D=!0),S.node(_).rank=S.node(H).rank+(D?T.minlen:-T.minlen)})}function A(M,S,L){return M.hasEdge(S,L)}function C(M,S,L){return L.low<=S.lim&&S.lim<=L.lim}return Hh}var _h,LA;function nY(){if(LA)return _h;LA=1;var e=io(),t=e.longestPath,s=rH(),l=aY();_h=o;function o(m){switch(m.graph().ranker){case"network-simplex":h(m);break;case"tight-tree":d(m);break;case"longest-path":c(m);break;default:h(m)}}var c=t;function d(m){t(m),s(m)}function h(m){l(m)}return _h}var Vh,kA;function rY(){if(kA)return Vh;kA=1;var e=ot();Vh=t;function t(o){var c=l(o);e.forEach(o.graph().dummyChains,function(d){for(var h=o.node(d),m=h.edgeObj,p=s(o,c,m.v,m.w),x=p.path,g=p.lca,b=0,w=x[b],j=!0;d!==m.w;){if(h=o.node(d),j){for(;(w=x[b])!==g&&o.node(w).maxRank<h.rank;)b++;w===g&&(j=!1)}if(!j){for(;b<x.length-1&&o.node(w=x[b+1]).minRank<=h.rank;)b++;w=x[b]}o.setParent(d,w),d=o.successors(d)[0]}})}function s(o,c,d,h){var m=[],p=[],x=Math.min(c[d].low,c[h].low),g=Math.max(c[d].lim,c[h].lim),b,w;b=d;do b=o.parent(b),m.push(b);while(b&&(c[b].low>x||g>c[b].lim));for(w=b,b=h;(b=o.parent(b))!==w;)p.push(b);return{path:m.concat(p.reverse()),lca:w}}function l(o){var c={},d=0;function h(m){var p=d;e.forEach(o.children(m),h),c[m]={low:p,lim:d++}}return e.forEach(o.children(),h),c}return Vh}var Th,RA;function sY(){if(RA)return Th;RA=1;var e=ot(),t=sa();Th={run:s,cleanup:d};function s(h){var m=t.addDummyNode(h,"root",{},"_root"),p=o(h),x=e.max(e.values(p))-1,g=2*x+1;h.graph().nestingRoot=m,e.forEach(h.edges(),function(w){h.edge(w).minlen*=g});var b=c(h)+1;e.forEach(h.children(),function(w){l(h,m,g,b,x,p,w)}),h.graph().nodeRankFactor=g}function l(h,m,p,x,g,b,w){var j=h.children(w);if(!j.length){w!==m&&h.setEdge(m,w,{weight:0,minlen:p});return}var N=t.addBorderNode(h,"_bt"),E=t.addBorderNode(h,"_bb"),A=h.node(w);h.setParent(N,w),A.borderTop=N,h.setParent(E,w),A.borderBottom=E,e.forEach(j,function(C){l(h,m,p,x,g,b,C);var M=h.node(C),S=M.borderTop?M.borderTop:C,L=M.borderBottom?M.borderBottom:C,V=M.borderTop?x:2*x,_=S!==L?1:g-b[w]+1;h.setEdge(N,S,{weight:V,minlen:_,nestingEdge:!0}),h.setEdge(L,E,{weight:V,minlen:_,nestingEdge:!0})}),h.parent(w)||h.setEdge(m,N,{weight:0,minlen:g+b[w]})}function o(h){var m={};function p(x,g){var b=h.children(x);b&&b.length&&e.forEach(b,function(w){p(w,g+1)}),m[x]=g}return e.forEach(h.children(),function(x){p(x,1)}),m}function c(h){return e.reduce(h.edges(),function(m,p){return m+h.edge(p).weight},0)}function d(h){var m=h.graph();h.removeNode(m.nestingRoot),delete m.nestingRoot,e.forEach(h.edges(),function(p){var x=h.edge(p);x.nestingEdge&&h.removeEdge(p)})}return Th}var Lh,DA;function lY(){if(DA)return Lh;DA=1;var e=ot(),t=sa();Lh=s;function s(o){function c(d){var h=o.children(d),m=o.node(d);if(h.length&&e.forEach(h,c),e.has(m,"minRank")){m.borderLeft=[],m.borderRight=[];for(var p=m.minRank,x=m.maxRank+1;p<x;++p)l(o,"borderLeft","_bl",d,m,p),l(o,"borderRight","_br",d,m,p)}}e.forEach(o.children(),c)}function l(o,c,d,h,m,p){var x={width:0,height:0,rank:p,borderType:c},g=m[c][p-1],b=t.addDummyNode(o,"border",x,d);m[c][p]=b,o.setParent(b,h),g&&o.setEdge(g,b,{weight:1})}return Lh}var kh,FA;function iY(){if(FA)return kh;FA=1;var e=ot();kh={adjust:t,undo:s};function t(p){var x=p.graph().rankdir.toLowerCase();(x==="lr"||x==="rl")&&l(p)}function s(p){var x=p.graph().rankdir.toLowerCase();(x==="bt"||x==="rl")&&c(p),(x==="lr"||x==="rl")&&(h(p),l(p))}function l(p){e.forEach(p.nodes(),function(x){o(p.node(x))}),e.forEach(p.edges(),function(x){o(p.edge(x))})}function o(p){var x=p.width;p.width=p.height,p.height=x}function c(p){e.forEach(p.nodes(),function(x){d(p.node(x))}),e.forEach(p.edges(),function(x){var g=p.edge(x);e.forEach(g.points,d),e.has(g,"y")&&d(g)})}function d(p){p.y=-p.y}function h(p){e.forEach(p.nodes(),function(x){m(p.node(x))}),e.forEach(p.edges(),function(x){var g=p.edge(x);e.forEach(g.points,m),e.has(g,"x")&&m(g)})}function m(p){var x=p.x;p.x=p.y,p.y=x}return kh}var Rh,OA;function oY(){if(OA)return Rh;OA=1;var e=ot();Rh=t;function t(s){var l={},o=e.filter(s.nodes(),function(p){return!s.children(p).length}),c=e.max(e.map(o,function(p){return s.node(p).rank})),d=e.map(e.range(c+1),function(){return[]});function h(p){if(!e.has(l,p)){l[p]=!0;var x=s.node(p);d[x.rank].push(p),e.forEach(s.successors(p),h)}}var m=e.sortBy(o,function(p){return s.node(p).rank});return e.forEach(m,h),d}return Rh}var Dh,zA;function cY(){if(zA)return Dh;zA=1;var e=ot();Dh=t;function t(l,o){for(var c=0,d=1;d<o.length;++d)c+=s(l,o[d-1],o[d]);return c}function s(l,o,c){for(var d=e.zipObject(c,e.map(c,function(b,w){return w})),h=e.flatten(e.map(o,function(b){return e.sortBy(e.map(l.outEdges(b),function(w){return{pos:d[w.w],weight:l.edge(w).weight}}),"pos")}),!0),m=1;m<c.length;)m<<=1;var p=2*m-1;m-=1;var x=e.map(new Array(p),function(){return 0}),g=0;return e.forEach(h.forEach(function(b){var w=b.pos+m;x[w]+=b.weight;for(var j=0;w>0;)w%2&&(j+=x[w+1]),w=w-1>>1,x[w]+=b.weight;g+=b.weight*j})),g}return Dh}var Fh,qA;function uY(){if(qA)return Fh;qA=1;var e=ot();Fh=t;function t(s,l){return e.map(l,function(o){var c=s.inEdges(o);if(c.length){var d=e.reduce(c,function(h,m){var p=s.edge(m),x=s.node(m.v);return{sum:h.sum+p.weight*x.order,weight:h.weight+p.weight}},{sum:0,weight:0});return{v:o,barycenter:d.sum/d.weight,weight:d.weight}}else return{v:o}})}return Fh}var Oh,IA;function dY(){if(IA)return Oh;IA=1;var e=ot();Oh=t;function t(o,c){var d={};e.forEach(o,function(m,p){var x=d[m.v]={indegree:0,in:[],out:[],vs:[m.v],i:p};e.isUndefined(m.barycenter)||(x.barycenter=m.barycenter,x.weight=m.weight)}),e.forEach(c.edges(),function(m){var p=d[m.v],x=d[m.w];!e.isUndefined(p)&&!e.isUndefined(x)&&(x.indegree++,p.out.push(d[m.w]))});var h=e.filter(d,function(m){return!m.indegree});return s(h)}function s(o){var c=[];function d(p){return function(x){x.merged||(e.isUndefined(x.barycenter)||e.isUndefined(p.barycenter)||x.barycenter>=p.barycenter)&&l(p,x)}}function h(p){return function(x){x.in.push(p),--x.indegree===0&&o.push(x)}}for(;o.length;){var m=o.pop();c.push(m),e.forEach(m.in.reverse(),d(m)),e.forEach(m.out,h(m))}return e.map(e.filter(c,function(p){return!p.merged}),function(p){return e.pick(p,["vs","i","barycenter","weight"])})}function l(o,c){var d=0,h=0;o.weight&&(d+=o.barycenter*o.weight,h+=o.weight),c.weight&&(d+=c.barycenter*c.weight,h+=c.weight),o.vs=c.vs.concat(o.vs),o.barycenter=d/h,o.weight=h,o.i=Math.min(c.i,o.i),c.merged=!0}return Oh}var zh,$A;function hY(){if($A)return zh;$A=1;var e=ot(),t=sa();zh=s;function s(c,d){var h=t.partition(c,function(N){return e.has(N,"barycenter")}),m=h.lhs,p=e.sortBy(h.rhs,function(N){return-N.i}),x=[],g=0,b=0,w=0;m.sort(o(!!d)),w=l(x,p,w),e.forEach(m,function(N){w+=N.vs.length,x.push(N.vs),g+=N.barycenter*N.weight,b+=N.weight,w=l(x,p,w)});var j={vs:e.flatten(x,!0)};return b&&(j.barycenter=g/b,j.weight=b),j}function l(c,d,h){for(var m;d.length&&(m=e.last(d)).i<=h;)d.pop(),c.push(m.vs),h++;return h}function o(c){return function(d,h){return d.barycenter<h.barycenter?-1:d.barycenter>h.barycenter?1:c?h.i-d.i:d.i-h.i}}return zh}var qh,BA;function mY(){if(BA)return qh;BA=1;var e=ot(),t=uY(),s=dY(),l=hY();qh=o;function o(h,m,p,x){var g=h.children(m),b=h.node(m),w=b?b.borderLeft:void 0,j=b?b.borderRight:void 0,N={};w&&(g=e.filter(g,function(L){return L!==w&&L!==j}));var E=t(h,g);e.forEach(E,function(L){if(h.children(L.v).length){var V=o(h,L.v,p,x);N[L.v]=V,e.has(V,"barycenter")&&d(L,V)}});var A=s(E,p);c(A,N);var C=l(A,x);if(w&&(C.vs=e.flatten([w,C.vs,j],!0),h.predecessors(w).length)){var M=h.node(h.predecessors(w)[0]),S=h.node(h.predecessors(j)[0]);e.has(C,"barycenter")||(C.barycenter=0,C.weight=0),C.barycenter=(C.barycenter*C.weight+M.order+S.order)/(C.weight+2),C.weight+=2}return C}function c(h,m){e.forEach(h,function(p){p.vs=e.flatten(p.vs.map(function(x){return m[x]?m[x].vs:x}),!0)})}function d(h,m){e.isUndefined(h.barycenter)?(h.barycenter=m.barycenter,h.weight=m.weight):(h.barycenter=(h.barycenter*h.weight+m.barycenter*m.weight)/(h.weight+m.weight),h.weight+=m.weight)}return qh}var Ih,PA;function fY(){if(PA)return Ih;PA=1;var e=ot(),t=Ga().Graph;Ih=s;function s(o,c,d){var h=l(o),m=new t({compound:!0}).setGraph({root:h}).setDefaultNodeLabel(function(p){return o.node(p)});return e.forEach(o.nodes(),function(p){var x=o.node(p),g=o.parent(p);(x.rank===c||x.minRank<=c&&c<=x.maxRank)&&(m.setNode(p),m.setParent(p,g||h),e.forEach(o[d](p),function(b){var w=b.v===p?b.w:b.v,j=m.edge(w,p),N=e.isUndefined(j)?0:j.weight;m.setEdge(w,p,{weight:o.edge(b).weight+N})}),e.has(x,"minRank")&&m.setNode(p,{borderLeft:x.borderLeft[c],borderRight:x.borderRight[c]}))}),m}function l(o){for(var c;o.hasNode(c=e.uniqueId("_root")););return c}return Ih}var $h,UA;function pY(){if(UA)return $h;UA=1;var e=ot();$h=t;function t(s,l,o){var c={},d;e.forEach(o,function(h){for(var m=s.parent(h),p,x;m;){if(p=s.parent(m),p?(x=c[p],c[p]=m):(x=d,d=m),x&&x!==m){l.setEdge(x,m);return}m=p}})}return $h}var Bh,GA;function xY(){if(GA)return Bh;GA=1;var e=ot(),t=oY(),s=cY(),l=mY(),o=fY(),c=pY(),d=Ga().Graph,h=sa();Bh=m;function m(b){var w=h.maxRank(b),j=p(b,e.range(1,w+1),"inEdges"),N=p(b,e.range(w-1,-1,-1),"outEdges"),E=t(b);g(b,E);for(var A=Number.POSITIVE_INFINITY,C,M=0,S=0;S<4;++M,++S){x(M%2?j:N,M%4>=2),E=h.buildLayerMatrix(b);var L=s(b,E);L<A&&(S=0,C=e.cloneDeep(E),A=L)}g(b,C)}function p(b,w,j){return e.map(w,function(N){return o(b,N,j)})}function x(b,w){var j=new d;e.forEach(b,function(N){var E=N.graph().root,A=l(N,E,j,w);e.forEach(A.vs,function(C,M){N.node(C).order=M}),c(N,j,A.vs)})}function g(b,w){e.forEach(w,function(j){e.forEach(j,function(N,E){b.node(N).order=E})})}return Bh}var Ph,YA;function gY(){if(YA)return Ph;YA=1;var e=ot(),t=Ga().Graph,s=sa();Ph={positionX:j,findType1Conflicts:l,findType2Conflicts:o,addConflict:d,hasConflict:h,verticalAlignment:m,horizontalCompaction:p,alignCoordinates:b,findSmallestWidthAlignment:g,balance:w};function l(A,C){var M={};function S(L,V){var _=0,H=0,T=L.length,D=e.last(V);return e.forEach(V,function(F,P){var U=c(A,F),W=U?A.node(U).order:T;(U||F===D)&&(e.forEach(V.slice(H,P+1),function(se){e.forEach(A.predecessors(se),function(O){var $=A.node(O),B=$.order;(B<_||W<B)&&!($.dummy&&A.node(se).dummy)&&d(M,O,se)})}),H=P+1,_=W)}),V}return e.reduce(C,S),M}function o(A,C){var M={};function S(V,_,H,T,D){var F;e.forEach(e.range(_,H),function(P){F=V[P],A.node(F).dummy&&e.forEach(A.predecessors(F),function(U){var W=A.node(U);W.dummy&&(W.order<T||W.order>D)&&d(M,U,F)})})}function L(V,_){var H=-1,T,D=0;return e.forEach(_,function(F,P){if(A.node(F).dummy==="border"){var U=A.predecessors(F);U.length&&(T=A.node(U[0]).order,S(_,D,P,H,T),D=P,H=T)}S(_,D,_.length,T,V.length)}),_}return e.reduce(C,L),M}function c(A,C){if(A.node(C).dummy)return e.find(A.predecessors(C),function(M){return A.node(M).dummy})}function d(A,C,M){if(C>M){var S=C;C=M,M=S}var L=A[C];L||(A[C]=L={}),L[M]=!0}function h(A,C,M){if(C>M){var S=C;C=M,M=S}return e.has(A[C],M)}function m(A,C,M,S){var L={},V={},_={};return e.forEach(C,function(H){e.forEach(H,function(T,D){L[T]=T,V[T]=T,_[T]=D})}),e.forEach(C,function(H){var T=-1;e.forEach(H,function(D){var F=S(D);if(F.length){F=e.sortBy(F,function(O){return _[O]});for(var P=(F.length-1)/2,U=Math.floor(P),W=Math.ceil(P);U<=W;++U){var se=F[U];V[D]===D&&T<_[se]&&!h(M,D,se)&&(V[se]=D,V[D]=L[D]=L[se],T=_[se])}}})}),{root:L,align:V}}function p(A,C,M,S,L){var V={},_=x(A,C,M,L),H=L?"borderLeft":"borderRight";function T(P,U){for(var W=_.nodes(),se=W.pop(),O={};se;)O[se]?P(se):(O[se]=!0,W.push(se),W=W.concat(U(se))),se=W.pop()}function D(P){V[P]=_.inEdges(P).reduce(function(U,W){return Math.max(U,V[W.v]+_.edge(W))},0)}function F(P){var U=_.outEdges(P).reduce(function(se,O){return Math.min(se,V[O.w]-_.edge(O))},Number.POSITIVE_INFINITY),W=A.node(P);U!==Number.POSITIVE_INFINITY&&W.borderType!==H&&(V[P]=Math.max(V[P],U))}return T(D,_.predecessors.bind(_)),T(F,_.successors.bind(_)),e.forEach(S,function(P){V[P]=V[M[P]]}),V}function x(A,C,M,S){var L=new t,V=A.graph(),_=N(V.nodesep,V.edgesep,S);return e.forEach(C,function(H){var T;e.forEach(H,function(D){var F=M[D];if(L.setNode(F),T){var P=M[T],U=L.edge(P,F);L.setEdge(P,F,Math.max(_(A,D,T),U||0))}T=D})}),L}function g(A,C){return e.minBy(e.values(C),function(M){var S=Number.NEGATIVE_INFINITY,L=Number.POSITIVE_INFINITY;return e.forIn(M,function(V,_){var H=E(A,_)/2;S=Math.max(V+H,S),L=Math.min(V-H,L)}),S-L})}function b(A,C){var M=e.values(C),S=e.min(M),L=e.max(M);e.forEach(["u","d"],function(V){e.forEach(["l","r"],function(_){var H=V+_,T=A[H],D;if(T!==C){var F=e.values(T);D=_==="l"?S-e.min(F):L-e.max(F),D&&(A[H]=e.mapValues(T,function(P){return P+D}))}})})}function w(A,C){return e.mapValues(A.ul,function(M,S){if(C)return A[C.toLowerCase()][S];var L=e.sortBy(e.map(A,S));return(L[1]+L[2])/2})}function j(A){var C=s.buildLayerMatrix(A),M=e.merge(l(A,C),o(A,C)),S={},L;e.forEach(["u","d"],function(_){L=_==="u"?C:e.values(C).reverse(),e.forEach(["l","r"],function(H){H==="r"&&(L=e.map(L,function(P){return e.values(P).reverse()}));var T=(_==="u"?A.predecessors:A.successors).bind(A),D=m(A,L,M,T),F=p(A,L,D.root,D.align,H==="r");H==="r"&&(F=e.mapValues(F,function(P){return-P})),S[_+H]=F})});var V=g(A,S);return b(S,V),w(S,A.graph().align)}function N(A,C,M){return function(S,L,V){var _=S.node(L),H=S.node(V),T=0,D;if(T+=_.width/2,e.has(_,"labelpos"))switch(_.labelpos.toLowerCase()){case"l":D=-_.width/2;break;case"r":D=_.width/2;break}if(D&&(T+=M?D:-D),D=0,T+=(_.dummy?C:A)/2,T+=(H.dummy?C:A)/2,T+=H.width/2,e.has(H,"labelpos"))switch(H.labelpos.toLowerCase()){case"l":D=H.width/2;break;case"r":D=-H.width/2;break}return D&&(T+=M?D:-D),D=0,T}}function E(A,C){return A.node(C).width}return Ph}var Uh,KA;function vY(){if(KA)return Uh;KA=1;var e=ot(),t=sa(),s=gY().positionX;Uh=l;function l(c){c=t.asNonCompoundGraph(c),o(c),e.forEach(s(c),function(d,h){c.node(h).x=d})}function o(c){var d=t.buildLayerMatrix(c),h=c.graph().ranksep,m=0;e.forEach(d,function(p){var x=e.max(e.map(p,function(g){return c.node(g).height}));e.forEach(p,function(g){c.node(g).y=m+x/2}),m+=x+h})}return Uh}var Gh,XA;function bY(){if(XA)return Gh;XA=1;var e=ot(),t=eY(),s=tY(),l=nY(),o=sa().normalizeRanks,c=rY(),d=sa().removeEmptyRanks,h=sY(),m=lY(),p=iY(),x=xY(),g=vY(),b=sa(),w=Ga().Graph;Gh=j;function j(q,z){var I=z&&z.debugTiming?b.time:b.notime;I("layout",function(){var te=I(" buildLayoutGraph",function(){return T(q)});I(" runLayout",function(){N(te,I)}),I(" updateInputGraph",function(){E(q,te)})})}function N(q,z){z(" makeSpaceForEdgeLabels",function(){D(q)}),z(" removeSelfEdges",function(){Q(q)}),z(" acyclic",function(){t.run(q)}),z(" nestingGraph.run",function(){h.run(q)}),z(" rank",function(){l(b.asNonCompoundGraph(q))}),z(" injectEdgeLabelProxies",function(){F(q)}),z(" removeEmptyRanks",function(){d(q)}),z(" nestingGraph.cleanup",function(){h.cleanup(q)}),z(" normalizeRanks",function(){o(q)}),z(" assignRankMinMax",function(){P(q)}),z(" removeEdgeLabelProxies",function(){U(q)}),z(" normalize.run",function(){s.run(q)}),z(" parentDummyChains",function(){c(q)}),z(" addBorderSegments",function(){m(q)}),z(" order",function(){x(q)}),z(" insertSelfEdges",function(){J(q)}),z(" adjustCoordinateSystem",function(){p.adjust(q)}),z(" position",function(){g(q)}),z(" positionSelfEdges",function(){k(q)}),z(" removeBorderNodes",function(){B(q)}),z(" normalize.undo",function(){s.undo(q)}),z(" fixupEdgeLabelCoords",function(){O(q)}),z(" undoCoordinateSystem",function(){p.undo(q)}),z(" translateGraph",function(){W(q)}),z(" assignNodeIntersects",function(){se(q)}),z(" reversePoints",function(){$(q)}),z(" acyclic.undo",function(){t.undo(q)})}function E(q,z){e.forEach(q.nodes(),function(I){var te=q.node(I),fe=z.node(I);te&&(te.x=fe.x,te.y=fe.y,z.children(I).length&&(te.width=fe.width,te.height=fe.height))}),e.forEach(q.edges(),function(I){var te=q.edge(I),fe=z.edge(I);te.points=fe.points,e.has(fe,"x")&&(te.x=fe.x,te.y=fe.y)}),q.graph().width=z.graph().width,q.graph().height=z.graph().height}var A=["nodesep","edgesep","ranksep","marginx","marginy"],C={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},M=["acyclicer","ranker","rankdir","align"],S=["width","height"],L={width:0,height:0},V=["minlen","weight","width","height","labeloffset"],_={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},H=["labelpos"];function T(q){var z=new w({multigraph:!0,compound:!0}),I=K(q.graph());return z.setGraph(e.merge({},C,Y(I,A),e.pick(I,M))),e.forEach(q.nodes(),function(te){var fe=K(q.node(te));z.setNode(te,e.defaults(Y(fe,S),L)),z.setParent(te,q.parent(te))}),e.forEach(q.edges(),function(te){var fe=K(q.edge(te));z.setEdge(te,e.merge({},_,Y(fe,V),e.pick(fe,H)))}),z}function D(q){var z=q.graph();z.ranksep/=2,e.forEach(q.edges(),function(I){var te=q.edge(I);te.minlen*=2,te.labelpos.toLowerCase()!=="c"&&(z.rankdir==="TB"||z.rankdir==="BT"?te.width+=te.labeloffset:te.height+=te.labeloffset)})}function F(q){e.forEach(q.edges(),function(z){var I=q.edge(z);if(I.width&&I.height){var te=q.node(z.v),fe=q.node(z.w),pe={rank:(fe.rank-te.rank)/2+te.rank,e:z};b.addDummyNode(q,"edge-proxy",pe,"_ep")}})}function P(q){var z=0;e.forEach(q.nodes(),function(I){var te=q.node(I);te.borderTop&&(te.minRank=q.node(te.borderTop).rank,te.maxRank=q.node(te.borderBottom).rank,z=e.max(z,te.maxRank))}),q.graph().maxRank=z}function U(q){e.forEach(q.nodes(),function(z){var I=q.node(z);I.dummy==="edge-proxy"&&(q.edge(I.e).labelRank=I.rank,q.removeNode(z))})}function W(q){var z=Number.POSITIVE_INFINITY,I=0,te=Number.POSITIVE_INFINITY,fe=0,pe=q.graph(),Ee=pe.marginx||0,Se=pe.marginy||0;function Ve(Pe){var Te=Pe.x,Ae=Pe.y,qt=Pe.width,Ce=Pe.height;z=Math.min(z,Te-qt/2),I=Math.max(I,Te+qt/2),te=Math.min(te,Ae-Ce/2),fe=Math.max(fe,Ae+Ce/2)}e.forEach(q.nodes(),function(Pe){Ve(q.node(Pe))}),e.forEach(q.edges(),function(Pe){var Te=q.edge(Pe);e.has(Te,"x")&&Ve(Te)}),z-=Ee,te-=Se,e.forEach(q.nodes(),function(Pe){var Te=q.node(Pe);Te.x-=z,Te.y-=te}),e.forEach(q.edges(),function(Pe){var Te=q.edge(Pe);e.forEach(Te.points,function(Ae){Ae.x-=z,Ae.y-=te}),e.has(Te,"x")&&(Te.x-=z),e.has(Te,"y")&&(Te.y-=te)}),pe.width=I-z+Ee,pe.height=fe-te+Se}function se(q){e.forEach(q.edges(),function(z){var I=q.edge(z),te=q.node(z.v),fe=q.node(z.w),pe,Ee;I.points?(pe=I.points[0],Ee=I.points[I.points.length-1]):(I.points=[],pe=fe,Ee=te),I.points.unshift(b.intersectRect(te,pe)),I.points.push(b.intersectRect(fe,Ee))})}function O(q){e.forEach(q.edges(),function(z){var I=q.edge(z);if(e.has(I,"x"))switch((I.labelpos==="l"||I.labelpos==="r")&&(I.width-=I.labeloffset),I.labelpos){case"l":I.x-=I.width/2+I.labeloffset;break;case"r":I.x+=I.width/2+I.labeloffset;break}})}function $(q){e.forEach(q.edges(),function(z){var I=q.edge(z);I.reversed&&I.points.reverse()})}function B(q){e.forEach(q.nodes(),function(z){if(q.children(z).length){var I=q.node(z),te=q.node(I.borderTop),fe=q.node(I.borderBottom),pe=q.node(e.last(I.borderLeft)),Ee=q.node(e.last(I.borderRight));I.width=Math.abs(Ee.x-pe.x),I.height=Math.abs(fe.y-te.y),I.x=pe.x+I.width/2,I.y=te.y+I.height/2}}),e.forEach(q.nodes(),function(z){q.node(z).dummy==="border"&&q.removeNode(z)})}function Q(q){e.forEach(q.edges(),function(z){if(z.v===z.w){var I=q.node(z.v);I.selfEdges||(I.selfEdges=[]),I.selfEdges.push({e:z,label:q.edge(z)}),q.removeEdge(z)}})}function J(q){var z=b.buildLayerMatrix(q);e.forEach(z,function(I){var te=0;e.forEach(I,function(fe,pe){var Ee=q.node(fe);Ee.order=pe+te,e.forEach(Ee.selfEdges,function(Se){b.addDummyNode(q,"selfedge",{width:Se.label.width,height:Se.label.height,rank:Ee.rank,order:pe+ ++te,e:Se.e,label:Se.label},"_se")}),delete Ee.selfEdges})})}function k(q){e.forEach(q.nodes(),function(z){var I=q.node(z);if(I.dummy==="selfedge"){var te=q.node(I.e.v),fe=te.x+te.width/2,pe=te.y,Ee=I.x-fe,Se=te.height/2;q.setEdge(I.e,I.label),q.removeNode(z),I.label.points=[{x:fe+2*Ee/3,y:pe-Se},{x:fe+5*Ee/6,y:pe-Se},{x:fe+Ee,y:pe},{x:fe+5*Ee/6,y:pe+Se},{x:fe+2*Ee/3,y:pe+Se}],I.label.x=I.x,I.label.y=I.y}})}function Y(q,z){return e.mapValues(e.pick(q,z),Number)}function K(q){var z={};return e.forEach(q,function(I,te){z[te.toLowerCase()]=I}),z}return Gh}var Yh,QA;function yY(){if(QA)return Yh;QA=1;var e=ot(),t=sa(),s=Ga().Graph;Yh={debugOrdering:l};function l(o){var c=t.buildLayerMatrix(o),d=new s({compound:!0,multigraph:!0}).setGraph({});return e.forEach(o.nodes(),function(h){d.setNode(h,{label:h}),d.setParent(h,"layer"+o.node(h).rank)}),e.forEach(o.edges(),function(h){d.setEdge(h.v,h.w,{},h.name)}),e.forEach(c,function(h,m){var p="layer"+m;d.setNode(p,{rank:"same"}),e.reduce(h,function(x,g){return d.setEdge(x,g,{style:"invis"}),g})}),d}return Yh}var Kh,JA;function wY(){return JA||(JA=1,Kh="0.8.5"),Kh}var Xh,WA;function AY(){return WA||(WA=1,Xh={graphlib:Ga(),layout:bY(),debug:yY(),util:{time:sa().time,notime:sa().notime},version:wY()}),Xh}var jY=AY();const oo=Jj(jY),Qh=280,Jh=80,Wh=200,ej=40,NY=80,EY=100,MY=60;function SY(e,t){const s=new oo.graphlib.Graph;s.setDefaultEdgeLabel(()=>({})),s.setGraph({rankdir:"TB",nodesep:NY,ranksep:EY,marginx:40,marginy:40});for(const d of e){const h=d.type==="addStep";s.setNode(d.id,{width:h?Wh:Qh,height:h?ej:Jh})}for(const d of t)s.setEdge(d.source,d.target);oo.layout(s);const l=new Map;for(const d of t){const h=e.find(m=>m.id===d.target);(h==null?void 0:h.type)==="addStep"&&l.set(d.target,d.source)}const o=e.map(d=>{const h=s.node(d.id);if(!h)return d;const m=d.type==="addStep",p=m?Wh:Qh,x=m?ej:Jh;return{...d,position:{x:h.x-p/2,y:h.y-x/2}}}),c=new Map(o.map(d=>[d.id,d]));for(const d of o){if(d.type!=="addStep")continue;const h=l.get(d.id);if(!h)continue;const m=c.get(h);if(!m)continue;const p=m.type==="conditional"?{width:280,height:100}:{width:Qh,height:Jh};d.position={x:m.position.x+(p.width-Wh)/2,y:m.position.y+p.height+MY}}return o}function CY(){return{applyLayout:r.useCallback((t,s)=>t.length===0?t:SY(t,s),[])}}const G1=280,Nl=80,ZY=100,_l=200,tj=40,HY=80,sH=60;function _Y(e,t){const s=new Map;for(const o of t){const c=e.find(d=>d.id===o.target);(c==null?void 0:c.type)==="addStep"&&s.set(o.target,o.source)}const l=new Map(e.map(o=>[o.id,o]));return e.map(o=>{if(o.type!=="addStep")return o;const c=s.get(o.id);if(!c)return o;const d=l.get(c);if(!d)return o;const h=d.type==="conditional"?ZY:Nl,m=d.type==="addStep"?_l:G1;return{...o,position:{x:d.position.x+(m-_l)/2,y:d.position.y+h+sH}}})}function aj(e){let t=0;for(const s of e)if(s.type==="step"||s.type==="conditional"){const l=s.id.match(/^step_(\d+)$/);l&&(t=Math.max(t,parseInt(l[1],10)))}return`step_${t+1}`}function T1(e,t){const s=new Set(e.map(o=>o.id)),l=new Set;return t.filter(o=>{if(!s.has(o.source)||!s.has(o.target))return!1;const c=`${o.source}|${o.sourceHandle??""}|${o.target}`;return l.has(c)?!1:(l.add(c),!0)})}function VY(e,t){const s=new Set,l=[e];for(;l.length>0;){const o=l.shift();for(const c of t)c.source===o&&!s.has(c.target)&&(s.add(c.target),l.push(c.target))}return s}function TY(e,t,s){const{applyLayout:l}=CY(),[o]=r.useState(()=>s!=null&&s.hasCustomPositions?_Y(e,t):l(e,t)),[c,d]=r.useState(o),[h,m]=r.useState(t),[p,x]=r.useState(null),g=r.useRef(t),b=r.useRef(o);r.useEffect(()=>{g.current=h},[h]),r.useEffect(()=>{b.current=c},[c]);const w=c.find(V=>V.id===p)||null,j=r.useCallback((V,_)=>{d(H=>H.map(T=>T.id===V?{...T,position:_}:T))},[d]),N=r.useCallback((V,_)=>{d(H=>H.map(T=>T.id===V?{...T,data:{...T.data,..._}}:T))},[d]),E=r.useCallback((V,_="run_agent")=>{const H=b.current,T=g.current,D=U0(V),F=H.find(Ve=>Ve.id===D),P=F==null?void 0:F.data,U=P==null?void 0:P.branchType,W=P==null?void 0:P.conditionalNodeId,se=H.filter(Ve=>Ve.type==="step"||Ve.type==="conditional").length,O=aj(H),$={action_type:_,action_config:{}},B={stepIndex:U?-1:se,stepId:O,stepType:_,label:x0[_]||_,actionConfig:{},outputFields:X0($)};U&&W&&(B.branchType=U,B.parentConditionalId=W);const Q=(F==null?void 0:F.position)??{x:0,y:0},J=Q.x+(_l-G1)/2,k=Q.y+(tj-Nl)/2,Y={id:O,type:"step",position:{x:J,y:k},data:B},K=T.find(Ve=>Ve.source===V&&Ve.target===D),q=K==null?void 0:K.sourceHandle;let z=T.filter(Ve=>!(Ve.source===V&&Ve.target===D));z.push({id:`${V}->${O}`,source:V,sourceHandle:q||void 0,target:O,type:"dataFlow",data:U?{branchType:U}:void 0});const I=U0(O),te=J+(G1-_l)/2,fe=k+Nl+sH,pe={id:I,type:"addStep",position:{x:te,y:fe},data:{parentNodeId:O,insertIndex:se+1,...U?{branchType:U,conditionalNodeId:W}:{}}};z.push({id:`${O}->${I}`,source:O,target:I,type:"addStepEdge",data:U?{branchType:U}:void 0});const Ee=H.filter(Ve=>Ve.id!==D);z=z.filter(Ve=>Ve.source!==D&&Ve.target!==D);const Se=[...Ee,Y,pe];d(Se),m(T1(Se,z)),x(O)},[d,m]),A=r.useCallback(V=>{var O;const _=b.current,H=g.current,T=_.find($=>$.id===V);if(!T||T.type==="trigger")return;const D=H.find($=>$.target===V),F=H.filter($=>$.source===V),P=D==null?void 0:D.source;let U=H.filter($=>$.source!==V&&$.target!==V);const W=U0(V);U=U.filter($=>$.source!==W&&$.target!==W);let se=_.filter($=>$.id!==V&&$.id!==W);if(P){const $=D==null?void 0:D.sourceHandle,B=(O=D==null?void 0:D.data)==null?void 0:O.branchType,Q=F.find(J=>{const k=_.find(Y=>Y.id===J.target);return k&&k.type!=="addStep"});if(Q)U.push({id:`${P}->${Q.target}`,source:P,sourceHandle:$,target:Q.target,type:"dataFlow",data:B?{branchType:B}:void 0});else{const J=T.position,k=U0(P),Y={id:k,type:"addStep",position:{x:J.x+(G1-_l)/2,y:J.y+(Nl-tj)/2},data:{parentNodeId:P,insertIndex:0,...B?{branchType:B,conditionalNodeId:P}:{}}};U.push({id:`${P}->${k}`,source:P,sourceHandle:$,target:k,type:"addStepEdge",data:B?{branchType:B}:void 0}),se=[...se,Y]}}d(se),m(T1(se,U)),x(null)},[d,m]),C=r.useCallback((V,_,H,T)=>{const D=b.current,F=g.current,P=D.find($=>$.id===V),U=D.find($=>$.id===H);if(!P||!U||F.find($=>$.source===V&&$.sourceHandle===(_==="source"?void 0:_)&&$.target===H))return;let se=F.filter($=>$.source!==V?!0:($.sourceHandle||"source")!==_);se=se.filter($=>$.target!==H||$.type==="addStepEdge");const O=_==="then"||_==="else"?_:void 0;se.push({id:`${V}->${H}`,source:V,sourceHandle:_==="source"?void 0:_,target:H,type:"dataFlow",data:O?{branchType:O}:void 0}),m(T1(D,se))},[]),M=r.useCallback((V,_)=>{var z;const H=b.current,T=g.current,D=H.find(I=>I.id===V),F=H.find(I=>I.id===_);if(!D||!F)return;const P=aj(H),U=T.find(I=>I.source===V&&I.target===_),W=(z=U==null?void 0:U.data)==null?void 0:z.branchType,se={action_type:"run_agent",action_config:{}},O=(D.position.x+F.position.x)/2,$=(D.position.y+F.position.y)/2,B={stepIndex:W?-1:H.filter(I=>I.type==="step"||I.type==="conditional").length,stepId:P,stepType:"run_agent",label:x0.run_agent,actionConfig:{},outputFields:X0(se)};W&&V&&(B.branchType=W,B.parentConditionalId=V);const Q={id:P,type:"step",position:{x:O,y:$},data:B},J=Nl+HY,k=VY(_,T);k.add(_);const Y=H.map(I=>k.has(I.id)?{...I,position:{x:I.position.x,y:I.position.y+J}}:I),K=[...T.filter(I=>!(I.source===V&&I.target===_)),{id:`${V}->${P}`,source:V,sourceHandle:U==null?void 0:U.sourceHandle,target:P,type:"dataFlow",data:W?{branchType:W}:void 0},{id:`${P}->${_}`,source:P,target:_,type:"dataFlow",data:W?{branchType:W}:void 0}],q=[...Y,Q];d(q),m(T1(q,K)),x(P)},[d,m]),S=r.useCallback((V,_)=>{if(_.type==="addStep"){const H=_.data;E(H.parentNodeId)}else x(_.id)},[E]),L=r.useCallback(()=>{x(null)},[]);return{nodes:c,edges:h,selectedNodeId:p,selectedNode:w,onNodeClick:S,onPaneClick:L,updateNodeData:N,updateNodePosition:j,addStep:E,deleteStep:A,connectNodes:C,insertStepBetween:M,setSelectedNodeId:x,setNodes:d,setEdges:m}}const LY={trigger:{width:280,height:80},step:{width:280,height:80},conditional:{width:280,height:100},addStep:{width:200,height:40}};function kY(e){return e.width&&e.height?{width:e.width,height:e.height}:LY[e.type||"step"]||{width:280,height:80}}function RY(e){const t=new Map;for(const s of e){const{width:l,height:o}=kY(s),c=s.position.x+l/2;switch(s.type){case"trigger":t.set(`${s.id}:source`,{nodeId:s.id,handleId:"source",type:"source",x:c,y:s.position.y+o});break;case"step":t.set(`${s.id}:target`,{nodeId:s.id,handleId:"target",type:"target",x:c,y:s.position.y}),t.set(`${s.id}:source`,{nodeId:s.id,handleId:"source",type:"source",x:c,y:s.position.y+o});break;case"conditional":t.set(`${s.id}:target`,{nodeId:s.id,handleId:"target",type:"target",x:c,y:s.position.y}),t.set(`${s.id}:then`,{nodeId:s.id,handleId:"then",type:"source",x:s.position.x+l*.35,y:s.position.y+o}),t.set(`${s.id}:else`,{nodeId:s.id,handleId:"else",type:"source",x:s.position.x+l*.65,y:s.position.y+o}),t.set(`${s.id}:source`,{nodeId:s.id,handleId:"source",type:"source",x:c,y:s.position.y+o});break;case"addStep":t.set(`${s.id}:target`,{nodeId:s.id,handleId:"target",type:"target",x:c,y:s.position.y});break;default:t.set(`${s.id}:target`,{nodeId:s.id,handleId:"target",type:"target",x:c,y:s.position.y}),t.set(`${s.id}:source`,{nodeId:s.id,handleId:"source",type:"source",x:c,y:s.position.y+o});break}}return t}function DY(e,t){const s=e.sourceHandle||"source",l=`${e.source}:${s}`,o=t.get(l),c=e.targetHandle||"target",d=`${e.target}:${c}`,h=t.get(d);return!o||!h?null:{sourceX:o.x,sourceY:o.y,targetX:h.x,targetY:h.y}}function nj(e,t,s,l,o=16){const c=s-e,d=l-t;if(Math.abs(c)<1)return`M ${e} ${t} L ${s} ${l}`;const h=t+d/2,m=Math.min(o,Math.abs(c)/2,Math.abs(d)/4),p=c>0?1:-1;return[`M ${e} ${t}`,`L ${e} ${h-m}`,`Q ${e} ${h} ${e+p*m} ${h}`,`L ${s-p*m} ${h}`,`Q ${s} ${h} ${s} ${h+m}`,`L ${s} ${l}`].join(" ")}const em=.3,tm=2,rj=.2,FY=.002;function OY(e,t={}){const{fitViewOnMount:s=!0,fitViewPadding:l=.3}=t,[o,c]=r.useState({x:0,y:0,zoom:1}),[d,h]=r.useState(!1),m=r.useRef(null),p=r.useRef(!1),x=r.useRef({x:0,y:0}),g=r.useRef({x:0,y:0}),b=r.useRef(!1),w=r.useCallback(L=>{if(L.length===0)return{minX:0,minY:0,maxX:100,maxY:100};let V=1/0,_=1/0,H=-1/0,T=-1/0;for(const D of L){const F=D.width||280,P=D.height||80;V=Math.min(V,D.position.x),_=Math.min(_,D.position.y),H=Math.max(H,D.position.x+F),T=Math.max(T,D.position.y+P)}return{minX:V,minY:_,maxX:H,maxY:T}},[]),j=r.useCallback(L=>{const V=m.current;if(!V)return;const _=L||e;if(_.length===0)return;const{minX:H,minY:T,maxX:D,maxY:F}=w(_),P=D-H,U=F-T,W=V.clientWidth,se=V.clientHeight;if(W===0||se===0)return;const O=W/(P*(1+l)),$=se/(U*(1+l)),B=Math.min(Math.max(Math.min(O,$),em),tm),Q=(H+D)/2,J=(T+F)/2;c({x:W/2-Q*B,y:se/2-J*B,zoom:B})},[e,w,l]);r.useEffect(()=>{if(s&&!b.current&&e.length>0){const L=setTimeout(()=>{j(),b.current=!0},50);return()=>clearTimeout(L)}},[s,e.length,j]);const N=r.useCallback(L=>{L.preventDefault();const V=m.current;if(!V)return;const _=V.getBoundingClientRect(),H=L.clientX-_.left,T=L.clientY-_.top;c(D=>{const F=-L.deltaY*FY,P=Math.min(Math.max(D.zoom+F*D.zoom,em),tm),U=P/D.zoom;return{x:H-(H-D.x)*U,y:T-(T-D.y)*U,zoom:P}})},[]),E=r.useCallback(L=>{L.button===0&&(p.current=!0,h(!0),x.current={x:L.clientX,y:L.clientY},g.current={x:o.x,y:o.y},L.target.setPointerCapture(L.pointerId))},[o.x,o.y]),A=r.useCallback(L=>{if(!p.current)return;const V=L.clientX-x.current.x,_=L.clientY-x.current.y;c(H=>({...H,x:g.current.x+V,y:g.current.y+_}))},[]),C=r.useCallback(()=>{p.current=!1,h(!1)},[]),M=r.useCallback(()=>{c(L=>{const V=m.current;if(!V)return L;const _=V.clientWidth/2,H=V.clientHeight/2,T=Math.min(L.zoom+rj,tm),D=T/L.zoom;return{x:_-(_-L.x)*D,y:H-(H-L.y)*D,zoom:T}})},[]),S=r.useCallback(()=>{c(L=>{const V=m.current;if(!V)return L;const _=V.clientWidth/2,H=V.clientHeight/2,T=Math.max(L.zoom-rj,em),D=T/L.zoom;return{x:_-(_-L.x)*D,y:H-(H-L.y)*D,zoom:T}})},[]);return{viewport:o,isPanning:d,containerRef:m,onWheel:N,onPointerDown:E,onPointerMove:A,onPointerUp:C,fitView:j,zoomIn:M,zoomOut:S}}const zY=20;function qY({containerRef:e,viewport:t,handleMap:s,onConnect:l}){const[o,c]=r.useState(null),[d,h]=r.useState(null),m=r.useRef(null),p=r.useRef(null),x=r.useRef(null),g=r.useCallback((A,C)=>{var S;const M=(S=e.current)==null?void 0:S.getBoundingClientRect();return M?{x:(A-M.left-t.x)/t.zoom,y:(C-M.top-t.y)/t.zoom}:{x:A,y:C}},[e,t]),b=r.useCallback((A,C,M)=>{const S=M.sourceType==="source"?"target":"source";let L=zY,V=null;for(const _ of s.values()){if(_.type!==S||_.nodeId===M.sourceNodeId)continue;const H=_.x-A,T=_.y-C,D=Math.sqrt(H*H+T*T);D<L&&(L=D,V={nodeId:_.nodeId,handleId:_.handleId})}return V},[s]),w=r.useCallback((A,C,M,S)=>{var _;A.stopPropagation(),A.preventDefault();const L=g(A.clientX,A.clientY),V={sourceNodeId:C,sourceHandleId:M,sourceType:S,cursorX:L.x,cursorY:L.y};m.current=V,c(V),(_=e.current)==null||_.setPointerCapture(A.pointerId),x.current=A.pointerId},[g,e]),j=r.useCallback(A=>{if(!m.current)return;const C=g(A.clientX,A.clientY),M={...m.current,cursorX:C.x,cursorY:C.y};m.current=M,c(M);const S=b(C.x,C.y,M);p.current=S,h(S)},[g,b]),N=r.useCallback(A=>{var S;const C=m.current;let M=p.current;if(C&&!M&&A){const L=g(A.clientX,A.clientY);M=b(L.x,L.y,C)}C&&M&&l&&(C.sourceType==="source"?l(C.sourceNodeId,C.sourceHandleId,M.nodeId,M.handleId):l(M.nodeId,M.handleId,C.sourceNodeId,C.sourceHandleId)),x.current!==null&&((S=e.current)==null||S.releasePointerCapture(x.current),x.current=null),m.current=null,p.current=null,c(null),h(null)},[l,e,g,b]);return{connectionDrag:o,handleInteractionProps:{onPointerDown:w,activeDropTarget:d},onDragPointerMove:j,onDragPointerUp:N,isDragging:o!==null}}const IY=5;function $Y({containerRef:e,viewport:t}){const s=r.useRef(null),l=r.useRef(t);r.useEffect(()=>{l.current=t},[t]);const o=r.useCallback((h,m,p)=>{h.button===0&&(h.target.closest("[data-handle]")||(h.stopPropagation(),s.current={nodeId:m,startPointerX:h.clientX,startPointerY:h.clientY,startNodeX:p.x,startNodeY:p.y,isDragging:!1}))},[]),c=r.useCallback(h=>{var b;const m=s.current;if(!m)return null;const p=h.clientX-m.startPointerX,x=h.clientY-m.startPointerY;if(!m.isDragging){if(Math.sqrt(p*p+x*x)<IY)return null;m.isDragging=!0,(b=e.current)==null||b.setPointerCapture(h.pointerId)}const g=l.current;return{nodeId:m.nodeId,x:m.startNodeX+p/g.zoom,y:m.startNodeY+x/g.zoom}},[e]),d=r.useCallback(()=>{const h=s.current;if(!h)return!1;const m=h.isDragging;return s.current=null,m},[]);return{onNodePointerDown:o,onNodeDragMove:c,onNodeDragUp:d,isDragging:()=>{var h;return((h=s.current)==null?void 0:h.isDragging)??!1}}}const BY=r.memo(function({edges:t,edgeTypes:s,onInsertStep:l}){return a.jsx("svg",{className:"absolute left-0 top-0 overflow-visible",style:{width:1,height:1,pointerEvents:"none"},children:t.map(({edge:o,path:c,sourceX:d,sourceY:h,targetX:m,targetY:p})=>{const x=s[o.type||"dataFlow"];if(!x)return null;const g={id:o.id,path:c,source:o.source,target:o.target,data:o.data,sourceX:d,sourceY:h,targetX:m,targetY:p,onInsertStep:o.type==="dataFlow"?l:void 0};return a.jsx(x,{...g},o.id)})})}),PY=r.memo(function({viewport:t,gap:s=20,size:l=1,color:o="rgba(255, 255, 255, 0.03)"}){const c=s*t.zoom;return a.jsx("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:`radial-gradient(circle, ${o} ${l}px, transparent ${l}px)`,backgroundSize:`${c}px ${c}px`,backgroundPosition:`${t.x%c}px ${t.y%c}px`}})}),UY=r.memo(function({onZoomIn:t,onZoomOut:s,onFitView:l}){return a.jsxs("div",{className:"absolute bottom-4 left-4 flex flex-col rounded-lg border border-white/[0.06] bg-black/60 shadow-lg backdrop-blur-sm","data-testid":"flow-controls",children:[a.jsx("button",{onClick:t,className:"flex h-8 w-8 items-center justify-center border-b border-white/[0.06] text-neutral-400 transition-colors hover:bg-white/[0.05] hover:text-white","aria-label":"Zoom in",children:a.jsx(Zt,{size:14,weight:"bold"})}),a.jsx("button",{onClick:s,className:"flex h-8 w-8 items-center justify-center border-b border-white/[0.06] text-neutral-400 transition-colors hover:bg-white/[0.05] hover:text-white","aria-label":"Zoom out",children:a.jsx(vI,{size:14,weight:"bold"})}),a.jsx("button",{onClick:l,className:"flex h-8 w-8 items-center justify-center text-neutral-400 transition-colors hover:bg-white/[0.05] hover:text-white","aria-label":"Fit view",children:a.jsx(sI,{size:14,weight:"bold"})})]})}),sj={trigger:"#60a5fa",conditional:"#fb923c",addStep:"rgba(255,255,255,0.1)",step:"rgba(255,255,255,0.2)"},lj=160,ij=100,GY=r.memo(function({nodes:t,viewport:s,containerWidth:l,containerHeight:o}){const{rects:c,viewBox:d,viewportRect:h}=r.useMemo(()=>{if(t.length===0)return{rects:[],viewBox:"0 0 100 100",viewportRect:{x:0,y:0,width:100,height:100}};let m=1/0,p=1/0,x=-1/0,g=-1/0;for(const S of t){const L=S.width||280,V=S.height||80;m=Math.min(m,S.position.x),p=Math.min(p,S.position.y),x=Math.max(x,S.position.x+L),g=Math.max(g,S.position.y+V)}const b=50;m-=b,p-=b,x+=b,g+=b;const w=x-m,j=g-p,N=t.map(S=>({id:S.id,x:S.position.x,y:S.position.y,width:S.width||(S.type==="addStep"?40:280),height:S.height||(S.type==="addStep"?40:S.type==="conditional"?100:80),color:sj[S.type||"step"]||sj.step})),E=-s.x/s.zoom,A=-s.y/s.zoom,C=l/s.zoom,M=o/s.zoom;return{rects:N,viewBox:`${m} ${p} ${w} ${j}`,viewportRect:{x:E,y:A,width:C,height:M}}},[t,s,l,o]);return a.jsx("div",{className:"absolute bottom-4 right-4 rounded-lg border border-white/[0.06] bg-black/60 backdrop-blur-sm","data-testid":"flow-minimap",style:{width:lj,height:ij},children:a.jsxs("svg",{width:lj,height:ij,viewBox:d,preserveAspectRatio:"xMidYMid meet",children:[c.map(m=>a.jsx("rect",{x:m.x,y:m.y,width:m.width,height:m.height,fill:m.color,rx:4},m.id)),a.jsx("rect",{x:h.x,y:h.y,width:h.width,height:h.height,fill:"rgba(255, 255, 255, 0.05)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:2,rx:2})]})})}),lH=r.memo(function({nodes:t,edges:s,selectedNodeId:l,nodeTypes:o,edgeTypes:c,onNodeClick:d,onPaneClick:h,onConnect:m,onNodeDrag:p,onInsertStep:x,fitViewOnMount:g=!0}){const{viewport:b,isPanning:w,containerRef:j,onWheel:N,onPointerDown:E,onPointerMove:A,onPointerUp:C,fitView:M,zoomIn:S,zoomOut:L}=OY(t,{fitViewOnMount:g}),[V,_]=r.useState({width:0,height:0});r.useEffect(()=>{const z=j.current;if(!z)return;const I=new ResizeObserver(te=>{const fe=te[0];fe&&_({width:fe.contentRect.width,height:fe.contentRect.height})});return I.observe(z),()=>I.disconnect()},[j]);const H=r.useMemo(()=>RY(t),[t]),{connectionDrag:T,handleInteractionProps:D,onDragPointerMove:F,onDragPointerUp:P,isDragging:U}=qY({containerRef:j,viewport:b,handleMap:H,onConnect:m}),{onNodePointerDown:W,onNodeDragMove:se,onNodeDragUp:O,isDragging:$}=$Y({containerRef:j,viewport:b}),B=r.useMemo(()=>s.map(z=>{const I=DY(z,H);if(!I)return null;const te=nj(I.sourceX,I.sourceY,I.targetX,I.targetY);return{edge:z,path:te,sourceX:I.sourceX,sourceY:I.sourceY,targetX:I.targetX,targetY:I.targetY}}).filter(z=>z!==null),[s,H]),Q=r.useCallback(z=>{const I=se(z);if(I){p==null||p(I.nodeId,{x:I.x,y:I.y});return}F(z),A(z)},[se,p,F,A]),J=r.useCallback(z=>{O()&&(K.current=!0),P(z),C()},[O,P,C]),k=r.useCallback(z=>{(z.target===z.currentTarget||z.target.dataset.paneTarget)&&E(z)},[E]),Y=r.useCallback(z=>{(z.target===z.currentTarget||z.target.dataset.paneTarget)&&(h==null||h())},[h]),K=r.useRef(!1),q=r.useCallback((z,I,te)=>{if(K.current){queueMicrotask(()=>{K.current=!1}),z.stopPropagation();return}z.stopPropagation(),d==null||d(I,te)},[d]);return a.jsxs("div",{ref:j,className:"relative h-full w-full overflow-hidden",onWheel:N,onPointerMove:Q,onPointerUp:J,onPointerDown:k,onClick:Y,style:{touchAction:"none",cursor:$()?"grabbing":U?"crosshair":w?"grabbing":"default"},"data-testid":"flow-canvas",children:[a.jsx(PY,{viewport:b}),a.jsxs("div",{className:"absolute origin-top-left",style:{transform:`translate(${b.x}px, ${b.y}px) scale(${b.zoom})`,willChange:"transform"},"data-pane-target":"true",children:[a.jsx(BY,{edges:B,edgeTypes:c,onInsertStep:x}),T&&(()=>{const z=`${T.sourceNodeId}:${T.sourceHandleId}`,I=H.get(z);if(!I)return null;const te=nj(I.x,I.y,T.cursorX,T.cursorY);return a.jsx("svg",{className:"pointer-events-none absolute left-0 top-0 overflow-visible",style:{width:1,height:1},children:a.jsx("path",{d:te,fill:"none",stroke:"rgba(255,255,255,0.4)",strokeWidth:2,strokeDasharray:"6 4"})})})(),t.map(z=>{const I=o[z.type||"step"];if(!I)return null;const te=z.type!=="addStep";return a.jsx("div",{className:"absolute",style:{left:z.position.x,top:z.position.y,cursor:$()?"grabbing":"pointer"},"data-testid":`flow-node-${z.id}`,onClick:fe=>q(fe,z.id,z),onPointerDown:te?fe=>W(fe,z.id,z.position):void 0,children:a.jsx(I,{id:z.id,data:z.data,selected:z.id===l,handleProps:D})},z.id)})]}),a.jsx(UY,{onZoomIn:S,onZoomOut:L,onFitView:M}),a.jsx(GY,{nodes:t,viewport:b,containerWidth:V.width,containerHeight:V.height})]})}),YY={agent_prompt:"#818cf8",a2a_call:"#a78bfa",run_agent:"#818cf8",save_contact:"#34d399",update_contact:"#2dd4bf",log_contact_event:"#fbbf24",webhook_forward:"#f472b6",transform_data:"#60a5fa",conditional:"#fb923c",create_task:"#a3e635",take_screenshot:"#38bdf8",generate_chart:"#f472b6"},KY={webhook:"#60a5fa",schedule:"#a78bfa",event:"#fbbf24",manual:"#34d399"},Ua=r.memo(function({nodeId:t,handleId:s,type:l,position:o,left:c,colorClass:d="bg-white/30",handleProps:h}){var b,w;const m=((b=h==null?void 0:h.activeDropTarget)==null?void 0:b.nodeId)===t&&((w=h==null?void 0:h.activeDropTarget)==null?void 0:w.handleId)===s,p=r.useCallback(j=>{h==null||h.onPointerDown(j,t,s,l)},[h,t,s,l]),x=o==="top"?"-top-1.5":"-bottom-1.5",g=c??"50%";return a.jsx("div",{className:`
82
+ absolute ${x} h-3 w-3 -translate-x-1/2 rounded-full border-2 border-[#0a0a0a]
83
+ ${d}
84
+ transition-transform duration-100
85
+ ${m?"scale-150 ring-2 ring-white/40":""}
86
+ ${h?"cursor-crosshair":""}
87
+ `,style:{left:g},onPointerDown:h?p:void 0,"data-handle":!0,"data-handle-node":t,"data-handle-id":s,"data-handle-type":l})}),XY={webhook:Yl,schedule:vo,event:Jf,manual:kn},QY={webhook:"Webhook",schedule:"Schedule",event:"Event",manual:"Manual"},JY=r.memo(function({id:t,data:s,selected:l,handleProps:o}){const c=s,d=XY[c.triggerType]||Yl,h=KY[c.triggerType]||"#60a5fa",m=QY[c.triggerType]||"Trigger";return a.jsxs("div",{className:`
88
+ relative w-[280px] rounded-xl border-2 bg-[#0a0a0a] px-4 py-3
89
+ transition-all duration-150
90
+ ${l?"ring-2 ring-white/20 shadow-lg shadow-white/5":"hover:border-white/20"}
91
+ `,style:{borderColor:l?h:`${h}40`},children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg",style:{backgroundColor:`${h}15`},children:a.jsx(d,{size:20,weight:"fill",style:{color:h}})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"text-[11px] font-medium uppercase tracking-wider",style:{color:h},children:[m," Trigger"]}),a.jsx("div",{className:"truncate text-sm font-medium text-white",children:c.name||"Untitled automation"})]})]}),c.sampleFields&&c.sampleFields.length>0&&a.jsxs("div",{className:"mt-1.5 text-[10px] text-neutral-500",children:["Emits ",c.sampleFields.length," ",c.sampleFields.length===1?"field":"fields"]}),a.jsx(Ua,{nodeId:t,handleId:"source",type:"source",position:"bottom",handleProps:o})]})}),iH=r.createContext({overlayRun:null,getStepResult:()=>{}}),WY=iH.Provider;function oH(){return r.useContext(iH)}const eK={agent_prompt:Rn,run_agent:Rn,a2a_call:Ol,save_contact:FI,update_contact:DI,log_contact_event:bI,webhook_forward:OI,transform_data:EI,create_task:Wf,take_screenshot:rf,generate_chart:HM},tK=r.memo(function({id:t,data:s,selected:l,handleProps:o}){const c=s,d=eK[c.stepType]||Rn,h=YY[c.stepType]||"#818cf8",m=x0[c.stepType]||c.stepType,{overlayRun:p,getStepResult:x}=oH(),g=p?x(c.stepId):void 0;return a.jsxs("div",{className:`
92
+ relative w-[280px] rounded-xl border bg-[#0a0a0a] px-4 py-3
93
+ transition-all duration-150
94
+ ${l?"border-white/30 ring-2 ring-white/10 shadow-lg shadow-white/5":"border-white/[0.08] hover:border-white/20"}
95
+ `,children:[a.jsx(Ua,{nodeId:t,handleId:"target",type:"target",position:"top",handleProps:o}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${h}15`},children:a.jsx(d,{size:18,weight:"duotone",style:{color:h}})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("div",{className:"text-[10px] font-medium uppercase tracking-wider text-neutral-500",children:m}),a.jsx("div",{className:"truncate text-sm text-white",children:c.label||m})]}),c.outputFields.length>0&&a.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[c.outputFields.slice(0,2).map(b=>a.jsx("span",{className:"rounded bg-white/[0.06] px-1.5 py-0.5 font-mono text-[9px] text-neutral-500",children:b},b)),c.outputFields.length>2&&a.jsxs("span",{className:"text-[9px] text-neutral-600",children:["+",c.outputFields.length-2]})]})]}),c.inputSources&&c.inputSources.length>0&&a.jsxs("div",{className:"mt-1.5 flex items-center gap-1 text-[9px] text-neutral-600",children:[a.jsx(Yq,{size:10,className:"shrink-0 text-neutral-600"}),a.jsxs("span",{className:"truncate",children:["from"," ",c.inputSources.map(b=>`${b.label}(${b.count})`).join(", ")]})]}),g&&a.jsxs("div",{className:"mt-2 border-t border-white/[0.06] pt-2",children:[a.jsxs("div",{className:"flex items-center gap-1.5",children:[g.status==="completed"&&a.jsx(y0,{size:12,className:"text-emerald-400",weight:"fill"}),g.status==="failed"&&a.jsx(ms,{size:12,className:"text-red-400",weight:"fill"}),g.status==="running"&&a.jsx(tC,{size:12,className:"animate-spin text-blue-400",weight:"bold"}),a.jsx("span",{className:`text-[10px] ${g.status==="completed"?"text-emerald-400":g.status==="failed"?"text-red-400":"text-blue-400"}`,children:g.status})]}),g.status==="completed"&&g.text_output&&a.jsxs("p",{className:"mt-1 truncate text-[9px] text-neutral-500",children:[g.text_output.slice(0,60),g.text_output.length>60?"...":""]}),g.status==="completed"&&g.output&&!g.text_output&&a.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:Object.entries(g.output).slice(0,2).map(([b,w])=>a.jsxs("span",{className:"font-mono text-[9px] text-neutral-500",children:[b,"=",String(w).slice(0,20)]},b))}),g.status==="failed"&&g.error&&a.jsx("p",{className:"mt-1 truncate text-[9px] text-red-400/80",children:g.error.slice(0,60)})]}),a.jsx(Ua,{nodeId:t,handleId:"source",type:"source",position:"bottom",handleProps:o})]})}),aK={equals:"=",not_equals:"!=",contains:"contains",not_contains:"!contains",greater_than:">",less_than:"<",exists:"exists",not_exists:"!exists"},nK=r.memo(function({id:t,data:s,selected:l,handleProps:o}){const c=s,{condition:d}=c,h=aK[d.operator]||d.operator,m=d.field?`${d.field} ${h}${d.value?` ${d.value}`:""}`:"No condition set";return a.jsxs("div",{className:`
96
+ relative w-[280px] rounded-xl border bg-[#0a0a0a] px-4 py-3
97
+ transition-all duration-150
98
+ ${l?"border-orange-500/50 ring-2 ring-orange-500/10 shadow-lg shadow-orange-500/5":"border-orange-500/20 hover:border-orange-500/40"}
99
+ `,children:[a.jsx(Ua,{nodeId:t,handleId:"target",type:"target",position:"top",handleProps:o}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-orange-500/10",children:a.jsx(uS,{size:18,weight:"duotone",className:"text-orange-400"})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("div",{className:"text-[10px] font-medium uppercase tracking-wider text-orange-400",children:"Conditional"}),a.jsx("div",{className:"truncate text-sm text-white/70 font-mono text-xs",children:m})]})]}),a.jsx(Ua,{nodeId:t,handleId:"then",type:"source",position:"bottom",left:"35%",colorClass:"bg-emerald-400",handleProps:o}),a.jsx("div",{className:"pointer-events-none absolute text-[9px] font-medium text-emerald-400",style:{bottom:-16,left:"35%",transform:"translateX(-50%)"},children:"Then"}),a.jsx(Ua,{nodeId:t,handleId:"else",type:"source",position:"bottom",left:"65%",colorClass:"bg-amber-400",handleProps:o}),a.jsx("div",{className:"pointer-events-none absolute text-[9px] font-medium text-amber-400",style:{bottom:-16,left:"65%",transform:"translateX(-50%)"},children:"Else"})]})}),rK=r.memo(function({id:t,data:s,handleProps:l}){return a.jsxs("div",{className:"group relative flex h-10 w-[200px] items-center justify-center",children:[a.jsx(Ua,{nodeId:t,handleId:"target",type:"target",position:"top",handleProps:l}),a.jsx("button",{className:"flex h-8 w-8 items-center justify-center rounded-full border border-dashed border-white/10 bg-white/[0.02] text-neutral-600 transition-all hover:border-white/20 hover:bg-white/[0.05] hover:text-white","data-testid":"add-step-button",children:a.jsx(Zt,{size:14,weight:"bold"})})]})}),sK=r.memo(function(t){const{path:s,source:l,target:o,data:c,sourceX:d,sourceY:h,targetX:m,targetY:p,onInsertStep:x}=t,[g,b]=r.useState(!1),{overlayRun:w,getStepResult:j}=oH(),N=c==null?void 0:c.branchType;let E;if(w){const V=j(o);(V==null?void 0:V.status)==="completed"?E="rgba(52, 211, 153, 0.5)":(V==null?void 0:V.status)==="failed"?E="rgba(248, 113, 113, 0.5)":(V==null?void 0:V.status)==="running"?E="rgba(96, 165, 250, 0.5)":E="rgba(255, 255, 255, 0.12)"}else E=N==="then"?"rgba(52, 211, 153, 0.3)":N==="else"?"rgba(251, 191, 36, 0.3)":"rgba(255, 255, 255, 0.2)";const A=r.useCallback(V=>{V.stopPropagation(),x==null||x(l,o)},[x,l,o]),C=x&&d!=null&&h!=null&&m!=null&&p!=null,M=C?(d+m)/2:0,S=C?(h+p)/2:0,L=24;return a.jsxs("g",{onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:[a.jsx("path",{d:s,fill:"none",stroke:"transparent",strokeWidth:20,style:{pointerEvents:"stroke"}}),a.jsx("path",{d:s,fill:"none",stroke:E,strokeWidth:2,style:{pointerEvents:"none"}}),C&&g&&a.jsx("foreignObject",{x:M-L/2,y:S-L/2,width:L,height:L,style:{overflow:"visible",pointerEvents:"all"},children:a.jsx("button",{type:"button",onClick:A,className:"flex h-6 w-6 items-center justify-center rounded-full border border-white/20 bg-zinc-800 text-xs text-white/70 shadow-lg transition-all hover:border-white/40 hover:bg-zinc-700 hover:text-white",title:"Insert step",children:"+"})})]})}),lK=r.memo(function(t){const{path:s}=t;return a.jsx("path",{d:s,fill:"none",stroke:"rgba(255, 255, 255, 0.15)",strokeWidth:1.5,strokeDasharray:"6 4"})}),iK=r.memo(function({nodes:t,edges:s,selectedNodeId:l,onNodeClick:o,onPaneClick:c,onConnect:d,onNodeDrag:h,onInsertStep:m}){const p=r.useMemo(()=>({trigger:JY,step:tK,conditional:nK,addStep:rK}),[]),x=r.useMemo(()=>({dataFlow:sK,addStepEdge:lK}),[]);return a.jsx("div",{className:"h-full w-full","data-testid":"flow-canvas-wrapper",children:a.jsx(lH,{nodes:t,edges:s,selectedNodeId:l,nodeTypes:p,edgeTypes:x,onNodeClick:o,onPaneClick:c,onConnect:d,onNodeDrag:h,onInsertStep:m,fitViewOnMount:!0})})});function oK({name:e,onNameChange:t,description:s,onDescriptionChange:l,onSave:o,onRun:c,saving:d,isNew:h}){const m=Ka(),p=()=>{m("/automations")};return a.jsxs("div",{className:"flex h-14 shrink-0 items-center gap-3 border-b border-white/[0.06] px-4",children:[a.jsx("button",{onClick:p,className:"flex h-8 w-8 items-center justify-center rounded-lg text-neutral-500 transition-colors hover:bg-white/[0.05] hover:text-white","data-testid":"flow-builder-back",children:a.jsx(ds,{size:18})}),a.jsx("div",{className:"h-5 w-px bg-white/[0.06]"}),a.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[a.jsx("input",{type:"text",value:e,onChange:x=>t(x.target.value),placeholder:"Automation name","data-testid":"flow-builder-name",className:"min-w-0 flex-1 bg-transparent text-sm font-medium text-white placeholder-gray-600 focus:outline-none"}),a.jsx("input",{type:"text",value:s,onChange:x=>l(x.target.value),placeholder:"Description (optional)",className:"hidden min-w-0 flex-1 bg-transparent text-sm text-neutral-400 placeholder-gray-700 focus:outline-none md:block"})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[c&&!h&&a.jsxs("button",{onClick:c,className:"flex items-center gap-1.5 rounded-lg border border-white/[0.06] px-3 py-1.5 text-xs text-neutral-400 transition-colors hover:border-white/10 hover:text-white",children:[a.jsx(t3,{size:12,weight:"fill"}),"Run"]}),a.jsxs("button",{onClick:o,disabled:d,"data-testid":"flow-builder-save",className:"flex items-center gap-1.5 rounded-lg bg-white px-3 py-1.5 text-xs font-medium text-black transition-all hover:bg-gray-200 active:scale-[0.98] disabled:opacity-50",children:[a.jsx(dI,{size:14,weight:"bold"}),d?"Saving...":h?"Create":"Save"]})]})]})}function cK({onSampleParsed:e,existingSamplePayload:t}){const[s,l]=r.useState(t?"history":"paste"),[o,c]=r.useState(""),[d,h]=r.useState(null),[m,p]=r.useState([]),[x,g]=r.useState(null);function b(E){if(c(E),h(null),p([]),g(null),!!E.trim())try{const A=JSON.parse(E);if(typeof A!="object"||A===null||Array.isArray(A)){h("Must be a JSON object (not an array or primitive)");return}const{fields:C,payload:M}=U1(A);p(C),g(M)}catch{h("Invalid JSON")}}function w(){x&&m.length>0&&e(m,x)}function j(){if(!t)return;const{fields:E,payload:A}=U1(t);e(E,A)}const N=[{id:"paste",label:"Paste JSON",icon:nI},...t?[{id:"history",label:"Previous data",icon:Q0}]:[]];return a.jsxs("div",{className:"space-y-3",children:[N.length>1&&a.jsx("div",{className:"flex gap-1 rounded-lg bg-white/[0.03] p-0.5",children:N.map(({id:E,label:A,icon:C})=>a.jsxs("button",{onClick:()=>l(E),className:`flex flex-1 items-center justify-center gap-1.5 rounded-md px-3 py-1.5 text-[11px] font-medium transition-colors ${s===E?"bg-white/[0.08] text-white":"text-neutral-500 hover:text-neutral-400"}`,children:[a.jsx(C,{size:13}),A]},E))}),s==="paste"&&a.jsxs("div",{className:"space-y-2",children:[a.jsx("textarea",{value:o,onChange:E=>b(E.target.value),placeholder:`{
100
+ "email": "jane@example.com",
101
+ "name": "Jane Smith"
102
+ }`,className:"h-32 w-full resize-none rounded-lg border border-white/10 bg-white/[0.03] px-3 py-2 font-mono text-xs text-white placeholder:text-neutral-700 focus:border-white/20 focus:outline-none"}),d&&a.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] text-red-400",children:[a.jsx(r3,{size:12}),d]}),m.length>0&&a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"flex flex-wrap gap-1",children:[m.slice(0,12).map(E=>a.jsx("span",{className:"rounded bg-white/[0.06] px-1.5 py-0.5 font-mono text-[10px] text-neutral-400",children:E},E)),m.length>12&&a.jsxs("span",{className:"px-1 text-[10px] text-neutral-600",children:["+",m.length-12," more"]})]}),a.jsxs("button",{onClick:w,className:"flex w-full items-center justify-center gap-1.5 rounded-lg bg-white/[0.08] px-3 py-2 text-xs font-medium text-white transition-colors hover:bg-white/[0.12]",children:[a.jsx(ns,{size:14}),"Use these ",m.length," ",m.length===1?"field":"fields"]})]})]}),s==="history"&&t&&a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"rounded-lg border border-white/[0.06] bg-white/[0.02] p-3",children:[a.jsx("p",{className:"mb-2 text-[10px] uppercase tracking-wider text-neutral-500",children:"Previously captured data"}),a.jsx("div",{className:"flex flex-wrap gap-1",children:Object.keys(U1(t).payload).slice(0,12).map(E=>a.jsx("span",{className:"rounded bg-white/[0.06] px-1.5 py-0.5 font-mono text-[10px] text-neutral-400",children:E},E))})]}),a.jsxs("button",{onClick:j,className:"flex w-full items-center justify-center gap-1.5 rounded-lg bg-white/[0.08] px-3 py-2 text-xs font-medium text-white transition-colors hover:bg-white/[0.12]",children:[a.jsx(ns,{size:14}),"Reuse this data"]})]})]})}const cH=[{label:"No limit",seconds:0},{label:"30 seconds",seconds:30},{label:"1 minute",seconds:60},{label:"5 minutes",seconds:300},{label:"15 minutes",seconds:900},{label:"30 minutes",seconds:1800},{label:"1 hour",seconds:3600}];function uK(e){return cH.some(t=>t.seconds===e)}const dK=[{type:"webhook",label:"Webhook",description:"Triggered by incoming data",icon:Yl},{type:"schedule",label:"Schedule",description:"Runs on a timer",icon:vo},{type:"event",label:"Event",description:"Listens for system events",icon:Jf},{type:"manual",label:"Manual",description:"Run on demand",icon:kn}];function hK({data:e,onChange:t}){var d;const s=!uK(e.cooldownSeconds),[l,o]=r.useState(!1),c=(((d=e.sampleFields)==null?void 0:d.length)??0)>0;return a.jsxs("div",{className:"space-y-5",children:[a.jsxs("div",{children:[a.jsx("label",{className:"mb-2 block text-xs uppercase tracking-wider text-neutral-400",children:"Trigger Type"}),a.jsx("div",{className:"grid grid-cols-2 gap-2",children:dK.map(({type:h,label:m,description:p,icon:x})=>a.jsxs("button",{onClick:()=>t({triggerType:h,triggerConfig:{}}),"data-testid":`flow-trigger-type-${h}`,className:`flex flex-col items-start rounded-lg border p-3 text-left transition-all ${e.triggerType===h?"border-white/20 bg-white/[0.05]":"border-white/[0.06] bg-white/[0.02] hover:border-white/10"}`,children:[a.jsx(x,{size:18,weight:e.triggerType===h?"fill":"regular",className:e.triggerType===h?"text-white":"text-neutral-500"}),a.jsx("span",{className:`mt-1.5 text-xs font-medium ${e.triggerType===h?"text-white":"text-neutral-400"}`,children:m}),a.jsx("span",{className:"mt-0.5 text-[10px] text-neutral-600",children:p})]},h))})]}),e.triggerType==="webhook"&&a.jsxs("div",{className:"space-y-3",children:[c&&a.jsxs("div",{className:"rounded-lg border border-emerald-500/20 bg-emerald-500/[0.05] p-3",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx(y0,{size:14,className:"text-emerald-400",weight:"fill"}),a.jsxs("span",{className:"text-xs font-medium text-emerald-400",children:[e.sampleFields.length," ",e.sampleFields.length===1?"field":"fields"," loaded"]})]}),a.jsx("button",{onClick:()=>t({sampleFields:[],samplePayload:null}),className:"text-neutral-500 hover:text-neutral-400",children:a.jsx(Yt,{size:14})})]}),a.jsxs("div",{className:"mt-2 flex flex-wrap gap-1",children:[e.sampleFields.slice(0,8).map(h=>a.jsx("span",{className:"rounded bg-white/[0.06] px-1.5 py-0.5 font-mono text-[10px] text-neutral-400",children:h},h)),e.sampleFields.length>8&&a.jsxs("span",{className:"px-1 text-[10px] text-neutral-600",children:["+",e.sampleFields.length-8," more"]})]})]}),a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>o(!l),className:"flex w-full items-center justify-between rounded-lg border border-white/[0.06] bg-white/[0.02] px-3 py-2 text-left text-xs text-neutral-400 transition-colors hover:border-white/10",children:[a.jsx("span",{children:c?"Change sample data":"Load sample data"}),a.jsx(xa,{size:12,className:`transition-transform ${l?"rotate-180":""}`})]}),l&&a.jsx("div",{className:"mt-2",children:a.jsx(cK,{existingSamplePayload:e.samplePayload,onSampleParsed:(h,m)=>{t({sampleFields:h,samplePayload:m}),o(!1)}})})]})]}),e.triggerType==="schedule"&&a.jsxs("div",{children:[a.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Schedule"}),a.jsx(YC,{value:e.triggerConfig.cron||"",onChange:h=>t({triggerConfig:{...e.triggerConfig,cron:h}})})]}),e.triggerType==="event"&&a.jsxs("div",{children:[a.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"System Event"}),a.jsxs("select",{value:e.triggerConfig.event_name||"",onChange:h=>t({triggerConfig:{...e.triggerConfig,event_name:h.target.value}}),className:"w-full rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white focus:border-white/20 focus:outline-none",children:[a.jsx("option",{value:"",className:"bg-black",children:"Select event..."}),a.jsx("option",{value:"task_completed",className:"bg-black",children:"Task Completed"}),a.jsx("option",{value:"agent_error",className:"bg-black",children:"Agent Error"}),a.jsx("option",{value:"contact_created",className:"bg-black",children:"Contact Created"})]})]}),(e.triggerType==="webhook"||e.triggerType==="event")&&a.jsxs("div",{children:[a.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Run at most every"}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("select",{value:s?-1:e.cooldownSeconds,onChange:h=>{const m=parseInt(h.target.value,10);t(m===-1?{cooldownSeconds:e.cooldownSeconds||120}:{cooldownSeconds:m})},className:"rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white focus:border-white/20 focus:outline-none",children:[cH.map(h=>a.jsx("option",{value:h.seconds,className:"bg-black",children:h.label},h.seconds)),a.jsx("option",{value:-1,className:"bg-black",children:"Custom"})]}),s&&a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("input",{type:"number",value:e.cooldownSeconds,onChange:h=>t({cooldownSeconds:parseInt(h.target.value,10)||0}),min:0,className:"w-20 rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white focus:border-white/20 focus:outline-none"}),a.jsx("span",{className:"text-xs text-neutral-500",children:"seconds"})]})]}),a.jsx("p",{className:"mt-1 text-[10px] text-neutral-600",children:"Prevents this automation from running too often"})]})]})}function Wr({value:e,onChange:t,placeholder:s,fieldGroups:l,mode:o="path",className:c}){const[d,h]=r.useState(!1),m=r.useRef(null),p=r.useRef(null);r.useEffect(()=>{if(!d)return;const b=w=>{m.current&&!m.current.contains(w.target)&&h(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[d]);const x=b=>{t(o==="template"?`{{${b}}}`:b),h(!1)},g=l.some(b=>b.fields.length>0);return a.jsxs("div",{ref:m,className:"relative",children:[a.jsxs("div",{className:"flex",children:[a.jsx("input",{ref:p,type:"text",value:e,onChange:b=>t(b.target.value),placeholder:s,className:c||"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none",onFocus:()=>g&&h(!0)}),g&&a.jsx("button",{type:"button",onClick:()=>h(!d),className:"absolute right-0 top-0 bottom-0 px-2 text-neutral-500 hover:text-neutral-300 transition-colors",tabIndex:-1,children:a.jsx(xa,{size:12})})]}),d&&g&&a.jsx("div",{className:"absolute z-50 top-full left-0 right-0 mt-1 max-h-60 overflow-y-auto border border-white/10 rounded-lg bg-[#1a1a1a] shadow-xl",children:l.map(b=>b.fields.length===0?null:a.jsxs("div",{children:[a.jsx("div",{className:"px-3 py-1.5 text-[10px] uppercase tracking-wider text-neutral-500 font-medium bg-white/[0.02] sticky top-0",children:b.label}),b.fields.map(w=>a.jsxs("button",{type:"button",onClick:()=>x(w.path),className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs hover:bg-white/[0.06] transition-colors text-left",children:[a.jsx("span",{className:"font-mono text-neutral-300",children:w.name}),w.value&&a.jsx("span",{className:"text-neutral-600 truncate",children:w.value})]},w.path))]},b.prefix))})]})}function hf({fieldGroups:e,textareaRef:t,onInsert:s}){const[l,o]=r.useState(!1),c=r.useRef(null);r.useEffect(()=>{if(!l)return;const m=p=>{c.current&&!c.current.contains(p.target)&&o(!1)};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[l]);const d=m=>{const p=t.current;if(!p)return;const x=p.selectionStart??p.value.length,g=p.selectionEnd??x,b=p.value,w=`{{${m}}}`,j=b.substring(0,x)+w+b.substring(g);s(j),o(!1),requestAnimationFrame(()=>{p.focus();const N=x+w.length;p.setSelectionRange(N,N)})};return e.some(m=>m.fields.length>0)?a.jsxs("div",{ref:c,className:"relative inline-block",children:[a.jsx("button",{type:"button",onClick:()=>o(!l),className:"text-[10px] text-neutral-500 hover:text-neutral-300 transition-colors",children:"+ Insert field"}),l&&a.jsx("div",{className:"absolute z-50 top-full left-0 mt-1 w-64 max-h-52 overflow-y-auto border border-white/10 rounded-lg bg-[#1a1a1a] shadow-xl",children:e.map(m=>m.fields.length===0?null:a.jsxs("div",{children:[a.jsx("div",{className:"px-3 py-1.5 text-[10px] uppercase tracking-wider text-neutral-500 font-medium bg-white/[0.02] sticky top-0",children:m.label}),m.fields.map(p=>a.jsxs("button",{type:"button",onClick:()=>d(p.path),className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs hover:bg-white/[0.06] transition-colors text-left",children:[a.jsx("span",{className:"font-mono text-neutral-300",children:p.name}),p.value&&a.jsx("span",{className:"text-neutral-600 truncate",children:p.value})]},p.path))]},m.prefix))})]}):null}function mK({config:e,onChange:t,previousSteps:s,sampleFields:l,samplePayload:o}){const[c,d]=r.useState([]),h=r.useRef(null),m=r.useRef(null);r.useEffect(()=>{me("/api/agents").then(A=>d(A.data)).catch(()=>{})},[]);const p=e.agent_id||"",x=e.agent_name||"",g=e.task_prompt||"",b=e.image_url||"",w=Xl({sampleFields:l,samplePayload:o,previousSteps:s}),j=r.useMemo(()=>w.flatMap(A=>A.fields.map(C=>C.path)),[w]),N=r.useMemo(()=>{if(!b||l.length===0)return[];const A=rZ(b);return aP(A,j)},[b,l,j]),E=A=>{const C=c.find(M=>M.id===A);t({...e,agent_id:A,agent_name:(C==null?void 0:C.name)||""})};return a.jsxs("div",{className:"space-y-3","data-testid":"agent-prompt-config",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent"}),a.jsxs("select",{value:p,onChange:A=>E(A.target.value),"data-testid":"agent-prompt-agent-select",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white focus:border-white/20 focus:outline-none",children:[a.jsx("option",{value:"",className:"bg-black",children:"Select an agent..."}),c.map(A=>a.jsxs("option",{value:A.id,className:"bg-black",children:[A.name," (",A.role,")"]},A.id))]}),x&&p&&a.jsxs("p",{className:"text-[10px] text-neutral-600 mt-1",children:["Selected: ",x]})]}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between mb-1",children:[a.jsxs("label",{className:"text-xs text-neutral-400",children:["Task Prompt",a.jsxs("span",{className:"text-neutral-600 ml-1",children:["Use ","{{trigger.field}}"," or ","{{step_1.field}}"," for variables"]})]}),a.jsx(hf,{fieldGroups:w,textareaRef:h,onInsert:A=>t({...e,task_prompt:A})})]}),a.jsx("textarea",{ref:h,value:g,onChange:A=>t({...e,task_prompt:A.target.value}),placeholder:"Research the company {{trigger.company_name}} and create a summary.",rows:4,"data-testid":"agent-prompt-textarea",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none resize-y"})]}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between mb-1",children:[a.jsxs("label",{className:"text-xs text-neutral-400",children:["Image URL",a.jsx("span",{className:"text-neutral-600 ml-1",children:"(optional)"})]}),a.jsx(hf,{fieldGroups:w,textareaRef:m,onInsert:A=>t({...e,image_url:A})})]}),a.jsx("input",{ref:m,type:"text",value:b,onChange:A=>t({...e,image_url:A.target.value}),placeholder:"{{trigger.photo_url}}","data-testid":"agent-prompt-image-url",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"}),N.length>0&&a.jsxs("div",{className:"flex items-start gap-1.5 mt-1.5 p-1.5 bg-amber-500/10 border border-amber-500/20 rounded",children:[a.jsx(r3,{size:12,className:"text-amber-400 mt-0.5 flex-shrink-0"}),a.jsxs("p",{className:"text-[10px] text-amber-400",children:["Unknown ",N.length===1?"field":"fields",":"," ",N.map(A=>`{{${A}}}`).join(", "),"."," ","This may not resolve at runtime."]})]})]})]})}const fK=[{value:"",label:"None"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"},{value:"trim",label:"Trim"},{value:"to_number",label:"To Number"},{value:"to_string",label:"To String"},{value:"json_parse",label:"JSON Parse"}];function pK({config:e,onChange:t,previousSteps:s,sampleFields:l,samplePayload:o}){const c=e.mappings||[],d=(x,g,b)=>{const w=c.map((j,N)=>N===x?{...j,[g]:b||void 0}:j);t({...e,mappings:w})},h=()=>{t({...e,mappings:[...c,{target:"",source:""}]})},m=x=>{t({...e,mappings:c.filter((g,b)=>b!==x)})},p=Xl({sampleFields:l,samplePayload:o,previousSteps:s});return a.jsxs("div",{className:"space-y-3","data-testid":"transform-data-config",children:[a.jsx("p",{className:"text-xs text-neutral-500",children:"Map and transform data from previous steps. Pick a source field or type a path manually."}),c.map((x,g)=>a.jsxs("div",{className:"grid grid-cols-[1fr_1fr_auto_auto] gap-2 items-end",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Source"}),a.jsx(Wr,{value:x.source||"",onChange:b=>d(g,"source",b),placeholder:"trigger.email",fieldGroups:p})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Target Field"}),a.jsx("input",{type:"text",value:x.target||"",onChange:b=>d(g,"target",b.target.value),placeholder:"formatted_name",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Transform"}),a.jsx("select",{value:x.transform||"",onChange:b=>d(g,"transform",b.target.value),className:"px-2 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white focus:border-white/20 focus:outline-none",children:fK.map(({value:b,label:w})=>a.jsx("option",{value:b,className:"bg-black",children:w},b))})]}),a.jsx("button",{onClick:()=>m(g),className:"p-2 text-neutral-600 hover:text-red-400 transition-colors",children:a.jsx(Kt,{size:14})})]},g)),a.jsxs("button",{onClick:h,className:"flex items-center gap-1 text-xs text-neutral-400 hover:text-white transition-colors",children:[a.jsx(Zt,{size:12,weight:"bold"}),"Add Mapping"]})]})}function xK({stepType:e,config:t,onChange:s,previousSteps:l,sampleFields:o,samplePayload:c}){const d=Xl({sampleFields:o,samplePayload:c,previousSteps:l});return e==="save_contact"?a.jsxs("div",{className:"space-y-3",children:[a.jsx("p",{className:"text-xs text-neutral-500",children:"Map incoming data to contact fields."}),["name","email","phone","company"].map(h=>a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1 capitalize",children:h}),a.jsx(Wr,{value:t[h]||"",onChange:m=>s({...t,[h]:m}),placeholder:`trigger.${h}`,fieldGroups:d})]},h)),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Tags"}),a.jsx("input",{type:"text",value:t.tags||"",onChange:h=>s({...t,tags:h.target.value}),placeholder:"tag1, tag2",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"}),a.jsx("p",{className:"text-[10px] text-neutral-600 mt-1",children:"Comma-separated tags"})]})]}):e==="update_contact"?a.jsxs("div",{className:"space-y-3",children:[a.jsx("p",{className:"text-xs text-neutral-500",children:"Find a contact and update their fields."}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Find by email"}),a.jsx(Wr,{value:t.lookup_email||"",onChange:h=>s({...t,lookup_email:h}),placeholder:"trigger.email",fieldGroups:d})]}),["name","phone","company"].map(h=>a.jsxs("div",{children:[a.jsxs("label",{className:"text-xs text-neutral-400 block mb-1 capitalize",children:["New ",h]}),a.jsx(Wr,{value:t[h]||"",onChange:m=>s({...t,[h]:m}),placeholder:`trigger.${h}`,fieldGroups:d})]},h))]}):a.jsxs("div",{className:"space-y-3",children:[a.jsx("p",{className:"text-xs text-neutral-500",children:"Log an event to a contact's timeline."}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Contact email"}),a.jsx(Wr,{value:t.contact_email||"",onChange:h=>s({...t,contact_email:h}),placeholder:"trigger.email",fieldGroups:d})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Event type"}),a.jsx("input",{type:"text",value:t.event_type||"",onChange:h=>s({...t,event_type:h.target.value}),placeholder:"form_submitted",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description"}),a.jsx("input",{type:"text",value:t.description||"",onChange:h=>s({...t,description:h.target.value}),placeholder:"Filled out the contact form",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"})]})]})}function gK({config:e,onChange:t,previousSteps:s,sampleFields:l,samplePayload:o}){const c=r.useRef(null),d=Xl({sampleFields:l,samplePayload:o,previousSteps:s});return a.jsxs("div",{className:"space-y-3","data-testid":"webhook-forward-config",children:[a.jsx("p",{className:"text-xs text-neutral-500",children:"Forward data to an external URL."}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between mb-1",children:[a.jsx("label",{className:"text-xs text-neutral-400",children:"URL"}),a.jsx(hf,{fieldGroups:d,textareaRef:c,onInsert:h=>t({...e,url:h})})]}),a.jsx("input",{ref:c,type:"text",value:e.url||"",onChange:h=>t({...e,url:h.target.value}),placeholder:"https://example.com/webhook",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Method"}),a.jsxs("select",{value:e.method||"POST",onChange:h=>t({...e,method:h.target.value}),className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white focus:border-white/20 focus:outline-none",children:[a.jsx("option",{value:"POST",className:"bg-black",children:"POST"}),a.jsx("option",{value:"PUT",className:"bg-black",children:"PUT"}),a.jsx("option",{value:"PATCH",className:"bg-black",children:"PATCH"})]})]}),a.jsx("div",{children:a.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[a.jsx("input",{type:"checkbox",checked:e.include_all_data??!0,onChange:h=>t({...e,include_all_data:h.target.checked}),className:"rounded border-white/20 bg-white/[0.03]"}),a.jsx("span",{className:"text-xs text-neutral-400",children:"Include all trigger and step data"})]})})]})}const vK=[{value:"equals",label:"equals"},{value:"not_equals",label:"does not equal"},{value:"contains",label:"contains"},{value:"not_contains",label:"does not contain"},{value:"greater_than",label:"greater than"},{value:"less_than",label:"less than"},{value:"exists",label:"exists"},{value:"not_exists",label:"does not exist"}];function bK({config:e,onChange:t,previousSteps:s,sampleFields:l,samplePayload:o}){const c=e.condition||{field:"",operator:"equals",value:""},d=!["exists","not_exists"].includes(c.operator),h=Xl({sampleFields:l,samplePayload:o,previousSteps:s}),m=(p,x)=>{const g={...c,[p]:x};t({...e,condition:g})};return a.jsxs("div",{className:"space-y-3","data-testid":"condition-form",children:[a.jsx("p",{className:"text-xs text-neutral-500",children:"Branch execution based on a condition. Pick a field or type a path manually."}),a.jsxs("div",{children:[a.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Field"}),a.jsx(Wr,{value:c.field,onChange:p=>m("field",p),placeholder:"trigger.country",fieldGroups:h})]}),a.jsxs("div",{children:[a.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Operator"}),a.jsx("select",{value:c.operator,onChange:p=>m("operator",p.target.value),className:"w-full rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white focus:border-white/20 focus:outline-none",children:vK.map(({value:p,label:x})=>a.jsx("option",{value:p,className:"bg-black",children:x},p))})]}),d&&a.jsxs("div",{children:[a.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Value"}),a.jsx("input",{type:"text",value:c.value||"",onChange:p=>m("value",p.target.value),placeholder:"US",className:"w-full rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"})]})]})}const yK=Object.entries(x0);function wK({data:e,node:t,onChange:s,nodes:l}){const o=AK(t,l),c=jK(l),d=NK(l),h=x=>{const g={id:e.stepId,action_type:x,action_config:{}};s({stepType:x,label:x0[x]||x,actionConfig:{},outputFields:X0(g)})},m=x=>{const g={id:e.stepId,action_type:e.stepType,action_config:x};s({actionConfig:x,outputFields:X0(g)})},p=x=>{s({label:x})};return a.jsxs("div",{className:"space-y-5",children:[a.jsxs("div",{children:[a.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Label"}),a.jsx("input",{type:"text",value:e.label,onChange:x=>p(x.target.value),placeholder:"Step label",className:"w-full rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Step Type"}),a.jsx("select",{value:e.stepType,onChange:x=>h(x.target.value),"data-testid":"flow-step-type",className:"w-full rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white focus:border-white/20 focus:outline-none",children:yK.map(([x,g])=>a.jsx("option",{value:x,className:"bg-black",children:g},x))}),a.jsx("p",{className:"mt-1 text-[10px] text-neutral-600",children:tP[e.stepType]||""})]}),a.jsxs("div",{className:"border-t border-white/[0.06] pt-4",children:[(e.stepType==="agent_prompt"||e.stepType==="run_agent")&&a.jsx(mK,{config:e.actionConfig,onChange:m,previousSteps:o,sampleFields:c,samplePayload:d}),e.stepType==="transform_data"&&a.jsx(pK,{config:e.actionConfig,onChange:m,previousSteps:o,sampleFields:c,samplePayload:d}),e.stepType==="conditional"&&a.jsx(bK,{config:e.actionConfig,onChange:m,previousSteps:o,sampleFields:c,samplePayload:d}),(e.stepType==="save_contact"||e.stepType==="update_contact"||e.stepType==="log_contact_event")&&a.jsx(xK,{stepType:e.stepType,config:e.actionConfig,onChange:m,previousSteps:o,sampleFields:c}),e.stepType==="webhook_forward"&&a.jsx(gK,{config:e.actionConfig,onChange:m,previousSteps:o,sampleFields:c})]})]})}function AK(e,t){const s=t.filter(o=>(o.type==="step"||o.type==="conditional")&&o.id!==e.id),l=e.data;return s.filter(o=>{const c=o.data;return c.stepIndex>=0&&c.stepIndex<l.stepIndex}).sort((o,c)=>{const d=o.data,h=c.data;return d.stepIndex-h.stepIndex}).map(o=>{const c=o.data;return{id:c.stepId,action_type:c.stepType,action_config:c.actionConfig,label:c.label}})}function jK(e){const t=e.find(l=>l.id===rn);return t?t.data.sampleFields||[]:[]}function NK(e){const t=e.find(l=>l.id===rn);return t&&t.data.samplePayload||null}function EK({selectedNode:e,onClose:t,onUpdateNodeData:s,onDeleteStep:l,nodes:o,automationId:c}){const d=(e==null?void 0:e.type)==="trigger",h=(e==null?void 0:e.type)==="step"||(e==null?void 0:e.type)==="conditional";return a.jsx(la,{children:e&&a.jsx(He.div,{initial:{width:0,opacity:0},animate:{width:400,opacity:1},exit:{width:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"flex h-full shrink-0 flex-col overflow-hidden border-l border-white/[0.06]","data-testid":"flow-side-panel",children:a.jsxs("div",{className:"flex h-full w-[400px] flex-col",children:[a.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b border-white/[0.06] px-4",children:[a.jsx("h3",{className:"text-sm font-medium text-white",children:d?"Trigger":"Step Configuration"}),a.jsxs("div",{className:"flex items-center gap-1",children:[h&&!d&&a.jsx("button",{onClick:()=>l(e.id),className:"flex h-7 w-7 items-center justify-center rounded text-neutral-500 transition-colors hover:bg-red-500/10 hover:text-red-400","data-testid":"flow-delete-step",children:a.jsx(Kt,{size:14})}),a.jsx("button",{onClick:t,className:"flex h-7 w-7 items-center justify-center rounded text-neutral-500 transition-colors hover:bg-white/[0.05] hover:text-white",children:a.jsx(Yt,{size:14})})]})]}),a.jsxs("div",{className:"flex-1 overflow-y-auto p-4 pb-6",children:[d&&a.jsx(hK,{data:e.data,onChange:m=>s(e.id,m)}),h&&!d&&a.jsx(wK,{data:e.data,node:e,onChange:m=>s(e.id,m),nodes:o,automationId:c})]})]})})})}const oj={completed:ns,failed:Yt,running:tC,pending:Q0,cancelled:Yt},cj={completed:"text-emerald-400",failed:"text-red-400",running:"text-blue-400",pending:"text-neutral-400",cancelled:"text-neutral-500"};function uj(e){const t=Date.now()-new Date(e).getTime(),s=Math.floor(t/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const l=Math.floor(s/60);return l<24?`${l}h ago`:`${Math.floor(l/24)}d ago`}function MK({runs:e,selectedRun:t,onSelectRun:s,overlayEnabled:l,onToggleOverlay:o}){const[c,d]=r.useState(!1),h=t||e[0]||null,m=e.length>0;return a.jsxs("div",{className:"absolute right-3 top-3 z-10 flex items-center gap-2 rounded-lg border border-white/[0.08] bg-black/60 px-3 py-1.5 shadow-lg backdrop-blur-sm",children:[a.jsx(ka,{size:14,className:"text-neutral-500",weight:"fill"}),m?a.jsxs(a.Fragment,{children:[a.jsx("button",{onClick:()=>o(!l),className:`relative h-5 w-9 rounded-full transition-colors ${l?"bg-white/20":"bg-white/[0.06]"}`,children:a.jsx("div",{className:`absolute top-0.5 h-4 w-4 rounded-full bg-white transition-all ${l?"left-[18px]":"left-0.5"}`})}),a.jsxs("div",{className:"relative",children:[a.jsxs("button",{onClick:()=>d(!c),className:"flex items-center gap-1.5 text-[11px] text-neutral-400 hover:text-neutral-300",children:[h&&(()=>{const p=oj[h.status]||Q0;return a.jsx(p,{size:12,className:`${cj[h.status]||"text-neutral-400"} ${h.status==="running"?"animate-spin":""}`,weight:h.status==="running"?"bold":"fill"})})(),a.jsx("span",{children:h?uj(h.created_at):"Select run"}),a.jsx(xa,{size:10})]}),c&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>d(!1)}),a.jsx("div",{className:"absolute right-0 top-full z-20 mt-1 w-48 rounded-lg border border-white/[0.08] bg-black/80 py-1 shadow-xl backdrop-blur-sm",children:e.slice(0,8).map(p=>{var g;const x=oj[p.status]||Q0;return a.jsxs("button",{onClick:()=>{s(p),o(!0),d(!1)},className:`flex w-full items-center gap-2 px-3 py-1.5 text-left text-[11px] hover:bg-white/[0.05] ${(t==null?void 0:t.id)===p.id?"bg-white/[0.05] text-white":"text-neutral-400"}`,children:[a.jsx(x,{size:11,className:`${cj[p.status]} ${p.status==="running"?"animate-spin":""}`,weight:p.status==="running"?"bold":"fill"}),a.jsx("span",{className:"flex-1",children:uj(p.created_at)}),a.jsxs("span",{className:"text-[10px] text-neutral-600",children:[((g=p.step_results)==null?void 0:g.length)||0,"/",p.total_steps," steps"]})]},p.id)})})]})]})]}):a.jsx("span",{className:"text-[11px] text-neutral-600",children:"No runs yet"})]})}const SK=[];function CK({automation:e}){const t=Ka(),s=!e,[l,o]=r.useState(SK),[c,d]=r.useState(!1),[h,m]=r.useState(null),p=r.useMemo(()=>c&&(h||l[0])||null,[c,h,l]),x=r.useCallback(K=>{var q;if(p)return(q=p.step_results)==null?void 0:q.find(z=>z.step_id===K)},[p]),g=r.useMemo(()=>({overlayRun:p,getStepResult:x}),[p,x]);r.useEffect(()=>{e!=null&&e.id&&me(`/api/automations/${e.id}/runs`).then(K=>{var q;return o(((q=K.data)==null?void 0:q.runs)||[])}).catch(()=>{})},[e==null?void 0:e.id]);const{nodes:b,edges:w,hasCustomPositions:j}=r.useMemo(()=>e?sZ(e):iP(),[e==null?void 0:e.id]),{nodes:N,edges:E,selectedNode:A,selectedNodeId:C,onNodeClick:M,onPaneClick:S,updateNodeData:L,updateNodePosition:V,deleteStep:_,connectNodes:H,insertStepBetween:T,setSelectedNodeId:D}=TY(b,w,{hasCustomPositions:j}),[F,P]=r.useState(!1),U=N.find(K=>K.id===rn),W=U==null?void 0:U.data,se=(W==null?void 0:W.name)||"",O=(W==null?void 0:W.description)||"",$=r.useCallback(K=>{L(rn,{name:K})},[L]),B=r.useCallback(K=>{L(rn,{description:K})},[L]),Q=r.useCallback(async()=>{var K,q;if(!se.trim()){ue("error","Give it a name first");return}P(!0);try{const z=rP(N,E),I=((K=N.find(fe=>fe.id===rn))==null?void 0:K.data)??{},te={name:z.name,description:z.description,trigger_type:z.trigger_type,trigger_config:z.trigger_config,steps:z.steps,variables:z.variables,cooldown_seconds:z.cooldown_seconds,node_positions:z.node_positions,sample_payload:I.samplePayload??null,sample_fields:(q=I.sampleFields)!=null&&q.length?I.sampleFields:null};if(s){const fe=await me("/api/automations",{method:"POST",body:JSON.stringify(te)});ue("success","Automation created"),t(`/automations/${fe.data.id}/edit`)}else await me(`/api/automations/${e.id}`,{method:"PATCH",body:JSON.stringify(te)}),ue("success","Automation updated")}catch(z){ue("error",z instanceof Error?z.message:"Couldn't save. Try again?")}finally{P(!1)}},[se,N,E,s,e,t]),J=r.useCallback(async()=>{if(e!=null&&e.id)try{await me(`/api/automations/${e.id}/execute`,{method:"POST"}),ue("success","Automation started")}catch(K){ue("error",K instanceof Error?K.message:"Couldn't run automation. Try again?")}},[e==null?void 0:e.id]),k=r.useCallback((K,q)=>{V(K,q)},[V]),Y=r.useCallback(()=>{D(null)},[D]);return r.useEffect(()=>{const K=q=>{const z=q.target.tagName;z==="INPUT"||z==="TEXTAREA"||z==="SELECT"||(q.key==="Escape"&&D(null),(q.key==="Delete"||q.key==="Backspace")&&A&&A.type!=="trigger"&&_(A.id),(q.metaKey||q.ctrlKey)&&q.key==="s"&&(q.preventDefault(),Q()))};return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[A,_,Q,D]),a.jsxs("div",{className:"flex h-full flex-col","data-testid":"flow-builder",children:[a.jsx(oK,{name:se,onNameChange:$,description:O,onDescriptionChange:B,onSave:Q,onRun:(e==null?void 0:e.trigger_type)==="manual"?J:void 0,saving:F,isNew:s}),a.jsx(WY,{value:g,children:a.jsxs("div",{className:"flex min-h-0 flex-1",children:[a.jsxs("div",{className:"relative min-w-0 flex-1",children:[a.jsx(iK,{nodes:N,edges:E,selectedNodeId:C,onNodeClick:M,onPaneClick:S,onConnect:H,onNodeDrag:k,onInsertStep:T}),!s&&a.jsx(MK,{runs:l,selectedRun:h,onSelectRun:m,overlayEnabled:c,onToggleOverlay:d})]}),a.jsx(EK,{selectedNode:A,onClose:Y,onUpdateNodeData:L,onDeleteStep:_,nodes:N,automationId:e==null?void 0:e.id})]})})]})}function dj(){const{id:e}=Il(),[t,s]=r.useState(null),[l,o]=r.useState(!!e);return r.useEffect(()=>{e&&me(`/api/automations/${e}`).then(c=>s(c.data)).catch(()=>{}).finally(()=>o(!1))},[e]),l?a.jsx("div",{className:"flex h-full items-center justify-center",children:a.jsx("div",{className:"text-sm text-neutral-500",children:"Loading..."})}):a.jsx("div",{className:"h-full",children:a.jsx(CK,{automation:e?t:void 0})})}function dn({icon:e,title:t,description:s,capabilities:l,action:o,variant:c="full"}){if(c==="compact")return a.jsxs("div",{className:"border border-white/[0.06] bg-white/[0.02] rounded-lg p-4 flex items-center gap-4",children:[a.jsx("div",{className:"shrink-0 w-10 h-10 rounded-lg bg-white/[0.04] flex items-center justify-center",children:a.jsx(e,{size:20,className:"text-neutral-400"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-sm font-medium text-neutral-300",children:t}),a.jsx("div",{className:"flex gap-2 mt-1.5 flex-wrap",children:l.map(h=>a.jsx("span",{className:"text-[10px] bg-white/[0.04] border border-white/[0.06] px-2 py-0.5 rounded-full text-neutral-500",children:h.label},h.label))})]}),o&&a.jsxs("button",{onClick:o.onClick,className:"text-xs text-neutral-400 hover:text-white transition-colors shrink-0",children:[o.label," →"]})]});const d=l.length<=2?"grid-cols-2":l.length===3?"grid-cols-3":"grid-cols-2 md:grid-cols-4";return a.jsxs(He.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3},className:"border border-white/[0.06] bg-white/[0.02] rounded-lg py-12 px-6",children:[a.jsxs("div",{className:"flex flex-col items-center text-center max-w-lg mx-auto",children:[a.jsx("div",{className:"w-14 h-14 rounded-xl bg-white/[0.04] flex items-center justify-center mb-4",children:a.jsx(e,{size:28,className:"text-neutral-400"})}),a.jsx("h3",{className:"text-sm font-medium text-neutral-300",children:t}),s&&a.jsx("p",{className:"text-xs text-neutral-500 mt-1.5 max-w-sm",children:s})]}),a.jsx("div",{className:`grid ${d} gap-3 mt-8 max-w-2xl mx-auto`,children:l.map((h,m)=>a.jsxs(He.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3,delay:.05*m},className:"border border-white/[0.06] bg-white/[0.02] rounded-lg p-3",children:[a.jsx(h.icon,{size:16,className:"text-neutral-500 mb-2"}),a.jsx("p",{className:"text-xs font-medium text-neutral-300",children:h.label}),h.description&&a.jsx("p",{className:"text-[10px] text-neutral-500 mt-0.5",children:h.description})]},h.label))}),o&&a.jsx("div",{className:"flex justify-center mt-6",children:a.jsx("button",{onClick:o.onClick,className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:o.label})})]})}function E3(e){const t=Date.now()-new Date(e).getTime(),s=Math.floor(t/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const l=Math.floor(s/60);return l<24?`${l}h ago`:`${Math.floor(l/24)}d ago`}const ZK=[{id:"overview",label:"Overview"},{id:"outbound",label:"Outbound"},{id:"activity",label:"Activity"}];function uH(){const[e,t]=r.useState("overview"),[s,l]=r.useState(""),[o,c]=r.useState(!1),[d,h]=r.useState(null),[m,p]=r.useState(null),[x,g]=r.useState(null),[b,w]=r.useState(!1),{data:j,loading:N,refetch:E}=ye("/api/a2a/connections"),A=r.useMemo(()=>{if(!j)return[];if(!s.trim())return j;const V=s.toLowerCase();return j.filter(_=>_.name.toLowerCase().includes(V)||_.endpoint_url.toLowerCase().includes(V))},[j,s]),C=r.useMemo(()=>j?{total:j.length,active:j.filter(V=>V.status==="active").length,error:j.filter(V=>V.status==="error").length}:{total:0,active:0,error:0},[j]),M=async V=>{h(V);try{await me(`/api/a2a/connections/${V}/test`,{method:"POST"}),ue("success","Connection is healthy"),E()}catch{ue("error","Connection test failed"),E()}finally{h(null)}},S=async()=>{if(x){w(!0);try{await me(`/api/a2a/connections/${x.id}`,{method:"DELETE"}),ue("success","Connection deleted"),E()}catch{ue("error","Couldn't delete connection")}finally{w(!1),g(null)}}},L=!N&&(!j||j.length===0);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Connections",subtitle:"Agent-to-Agent protocol connections",action:a.jsxs("button",{onClick:()=>{c(!o),t("outbound")},className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Zt,{size:14})," New connection"]})}),a.jsx("div",{className:"mb-6",children:a.jsx(Kl,{tabs:ZK,activeTab:e,onTabChange:t,layoutId:"connections-tab"})}),e==="overview"&&a.jsx(HK,{stats:C,connections:j||[],loading:N,isEmpty:L,onAddConnection:()=>{c(!0),t("outbound")}}),e==="outbound"&&a.jsx(_K,{connections:A,loading:N,search:s,onSearchChange:l,testing:d,onTest:M,onView:p,onDelete:g,showForm:o,onToggleForm:()=>c(!o),onFormSuccess:()=>{E(),c(!1)}}),e==="activity"&&a.jsx(VK,{connections:j||[],loading:N}),m&&a.jsx(LK,{connection:m,onClose:()=>p(null),onTest:()=>M(m.id),testing:d===m.id}),a.jsx(w0,{open:!!x,onClose:()=>g(null),onConfirm:S,title:"Delete connection",message:`Delete "${x==null?void 0:x.name}"? This can't be undone.`,confirmLabel:"Delete",loading:b})]})}function HK({stats:e,connections:t,loading:s,isEmpty:l,onAddConnection:o}){return s?a.jsx(We,{count:4}):l?a.jsx(dn,{icon:Ol,title:"No connections yet",description:"Connect to external A2A agents to delegate tasks and share capabilities.",capabilities:[{icon:go,label:"Outbound calls",description:"Delegate tasks to remote agents"},{icon:ds,label:"Inbound requests",description:"Receive tasks from other workspaces"},{icon:nf,label:"Bidirectional",description:"Full two-way communication"},{icon:ts,label:"Health monitoring",description:"Track connection status"}],action:{label:"Add your first connection",onClick:o}}):a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[a.jsx(Vt,{label:"Connections",value:e.total}),a.jsx(Vt,{label:"Active",value:e.active,color:"text-success"}),a.jsx(Vt,{label:"Errors",value:e.error,color:e.error>0?"text-critical":void 0})]}),a.jsx("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-6",children:a.jsxs("div",{className:"flex items-center justify-center gap-8",children:[a.jsxs("div",{className:"text-center",children:[a.jsx("p",{className:"text-[10px] uppercase tracking-wider text-neutral-500 mb-2",children:"Outbound"}),a.jsxs("div",{className:"space-y-1.5",children:[t.slice(0,3).map(c=>a.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[a.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${c.status==="active"?"bg-success":"bg-warning"}`}),a.jsx("span",{className:"text-neutral-300 truncate max-w-[120px]",children:c.name})]},c.id)),t.length>3&&a.jsxs("p",{className:"text-[10px] text-neutral-500",children:["+",t.length-3," more"]})]})]}),a.jsxs("div",{className:"flex flex-col items-center",children:[a.jsx(nf,{size:20,className:"text-neutral-500 mb-1"}),a.jsx("div",{className:"w-12 h-12 rounded-full border border-white/10 bg-white/[0.04] flex items-center justify-center",children:a.jsx(Ol,{size:20,className:"text-white"})}),a.jsx("p",{className:"text-[10px] text-neutral-500 mt-1",children:"Your workspace"})]}),a.jsxs("div",{className:"text-center",children:[a.jsx("p",{className:"text-[10px] uppercase tracking-wider text-neutral-500 mb-2",children:"Inbound"}),a.jsx("p",{className:"text-xs text-neutral-500",children:"API keys not yet configured"})]})]})}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider mb-2",children:"Recent connections"}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:t.slice(0,5).map(c=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[a.jsx("span",{className:`w-2 h-2 rounded-full shrink-0 ${c.status==="active"?"bg-success":c.status==="error"?"bg-critical":"bg-warning"}`}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:c.name}),a.jsx("p",{className:"text-xs text-neutral-500 truncate",children:c.endpoint_url})]})]}),a.jsx(ft,{status:c.status})]},c.id))})]})]})}function _K({connections:e,loading:t,search:s,onSearchChange:l,testing:o,onTest:c,onView:d,onDelete:h,showForm:m,onToggleForm:p,onFormSuccess:x}){return a.jsxs("div",{children:[m&&a.jsx("div",{className:"mb-4",children:a.jsx(TK,{onClose:p,onSuccess:x})}),a.jsxs("div",{className:"relative mb-4",children:[a.jsx(ga,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:s,onChange:g=>l(g.target.value),placeholder:"Search connections...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),t?a.jsx(We,{count:4}):e.length?a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(g=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("button",{className:"min-w-0 mr-3 text-left flex-1",onClick:()=>d(g),children:[a.jsx("p",{className:"text-sm font-medium truncate hover:text-white transition-colors",children:g.name}),a.jsxs("p",{className:"text-xs text-neutral-400 truncate",children:[a.jsx("span",{className:"text-white",children:g.endpoint_url}),a.jsxs("span",{className:"ml-2",children:["· ",g.trust_level.replace(/_/g," ")]}),g.last_health_check_at&&a.jsxs("span",{className:"ml-2",children:["· checked ",E3(g.last_health_check_at)]})]}),g.skills&&g.skills.length>0&&a.jsxs("div",{className:"flex gap-1 mt-1",children:[g.skills.slice(0,3).map(b=>a.jsx("span",{className:"text-[10px] bg-white/[0.06] px-1.5 py-0.5 rounded text-neutral-400",children:b},b)),g.skills.length>3&&a.jsxs("span",{className:"text-[10px] text-neutral-400",children:["+",g.skills.length-3]})]})]}),a.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[a.jsx(ft,{status:g.status}),a.jsx("button",{onClick:()=>d(g),className:"text-neutral-400 hover:text-white transition-colors",title:"Details",children:a.jsx(v0,{size:14})}),a.jsx("button",{onClick:()=>c(g.id),disabled:o===g.id,className:"text-neutral-400 hover:text-white transition-colors disabled:opacity-50",title:"Test connection",children:a.jsx(us,{size:14,className:o===g.id?"animate-spin":""})}),a.jsx("button",{onClick:()=>h(g),className:"text-neutral-400 hover:text-critical transition-colors",title:"Delete",children:a.jsx(Kt,{size:14})})]})]},g.id))}):a.jsx(bt,{icon:a.jsx(Ol,{size:32}),title:s?"No matches":"No outbound connections",description:s?`Nothing matching "${s}".`:"Add a connection to start delegating tasks."})]})}function VK({connections:e,loading:t}){if(t)return a.jsx(We,{count:4});const s=e.filter(l=>l.last_health_check_at).sort((l,o)=>new Date(o.last_health_check_at).getTime()-new Date(l.last_health_check_at).getTime());return s.length?a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:s.map(l=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{className:"min-w-0 mr-3",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:l.name}),a.jsxs("p",{className:"text-xs text-neutral-400",children:["Health check · ",l.last_health_status||"unknown",a.jsxs("span",{className:"ml-2",children:["· ",E3(l.last_health_check_at)]})]})]}),a.jsx(ft,{status:l.last_health_status==="healthy"?"active":"error"})]},l.id))}):a.jsx(bt,{icon:a.jsx(ts,{size:32}),title:"No activity yet",description:"Health checks and task delegations will appear here."})}function TK({onClose:e,onSuccess:t}){const[s,l]=r.useState(""),[o,c]=r.useState(""),[d,h]=r.useState(""),[m,p]=r.useState("read_only"),[x,g]=r.useState("none"),[b,w]=r.useState(""),[j,N]=r.useState(!1),[E,A]=r.useState(!1),C=async()=>{if(o.trim()){A(!0);try{const S=await fetch(o.trim());if(S.ok){const L=await S.json();L.name&&!s&&l(L.name),L.url&&!d&&h(L.url),ue("success","Agent card loaded")}}catch{ue("error","Couldn't fetch agent card")}finally{A(!1)}}},M=async S=>{if(S.preventDefault(),!(!s.trim()||!o.trim()||!d.trim())){N(!0);try{await me("/api/a2a/connections",{method:"POST",body:JSON.stringify({name:s.trim(),agent_card_url:o.trim(),endpoint_url:d.trim(),trust_level:m,auth_type:x,...x!=="none"&&b.trim()?{credential:b.trim()}:{}})}),ue("success","Connection created"),t()}catch{ue("error","Couldn't create connection")}finally{N(!1)}}};return a.jsx(He.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},className:"overflow-hidden",children:a.jsxs("form",{onSubmit:M,className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4 space-y-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent card URL"}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("input",{value:o,onChange:S=>c(S.target.value),placeholder:"https://agent.example.com/.well-known/agent-card.json",className:"flex-1 bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"}),a.jsx("button",{type:"button",onClick:C,disabled:E||!o.trim(),className:"px-3 py-2 text-xs bg-white/5 border border-white/10 text-white rounded-md hover:bg-white/10 transition-colors disabled:opacity-50 shrink-0",children:E?a.jsx(it,{size:14,className:"animate-spin"}):"Discover"})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),a.jsx("input",{value:s,onChange:S=>l(S.target.value),placeholder:"Connection name",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Trust level"}),a.jsxs("select",{value:m,onChange:S=>p(S.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"read_only",children:"Read only"}),a.jsx("option",{value:"execute",children:"Execute"}),a.jsx("option",{value:"autonomous",children:"Autonomous"})]})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Endpoint URL"}),a.jsx("input",{value:d,onChange:S=>h(S.target.value),placeholder:"https://agent.example.com/a2a",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Auth type"}),a.jsxs("select",{value:x,onChange:S=>g(S.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"none",children:"None"}),a.jsx("option",{value:"bearer_token",children:"Bearer token"}),a.jsx("option",{value:"api_key",children:"API key"})]})]}),x!=="none"&&a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:x==="bearer_token"?"Token":"API Key"}),a.jsx("input",{type:"password",value:b,onChange:S=>w(S.target.value),placeholder:x==="bearer_token"?"Bearer token":"API key value",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),a.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[a.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:j||!s.trim()||!o.trim()||!d.trim(),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:j?"Creating...":"Create connection"})]})]})})}function LK({connection:e,onClose:t,onTest:s,testing:l}){return a.jsx(ba,{open:!0,onClose:t,title:"Connection details",maxWidth:"max-w-lg",children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"text-sm font-semibold",children:e.name}),e.description&&a.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:e.description})]}),a.jsx(ft,{status:e.status})]}),a.jsxs("div",{className:"bg-white/5 rounded-lg p-3 space-y-2 text-sm",children:[a.jsx($r,{label:"Endpoint",value:e.endpoint_url}),a.jsx($r,{label:"Agent card",value:e.agent_card_url}),a.jsx($r,{label:"Trust level",value:e.trust_level.replace(/_/g," ")}),a.jsx($r,{label:"Auth type",value:e.auth_type==="none"?"None":e.auth_type.replace(/_/g," ")}),e.last_health_check_at&&a.jsx($r,{label:"Last health check",value:`${E3(e.last_health_check_at)} (${e.last_health_status||"unknown"})`}),a.jsx($r,{label:"Created",value:new Date(e.created_at).toLocaleDateString()})]}),e.skills&&e.skills.length>0&&a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1.5",children:"Skills"}),a.jsx("div",{className:"flex gap-1.5 flex-wrap",children:e.skills.map(o=>a.jsx("span",{className:"text-xs bg-white/5 border border-white/10 px-2 py-1 rounded",children:o},o))})]}),a.jsx("div",{className:"flex gap-2 justify-end pt-2",children:a.jsx("button",{onClick:s,disabled:l,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-md hover:bg-white/10 disabled:opacity-50 transition-colors",children:l?a.jsxs(a.Fragment,{children:[a.jsx(it,{size:14,className:"animate-spin"})," Testing..."]}):a.jsxs(a.Fragment,{children:[a.jsx(us,{size:14})," Test connection"]})})})]})})}function $r({label:e,value:t}){return a.jsxs("div",{className:"flex justify-between gap-4",children:[a.jsx("span",{className:"text-neutral-400 shrink-0",children:e}),a.jsx("span",{className:"font-medium text-right break-all",children:t})]})}function bs(e){const[t]=xN(),s=Ka();return[t.get("tab")??e,c=>{const d=new URLSearchParams(t.toString());d.set("tab",c),s({search:`?${d.toString()}`},{replace:!0})}]}function ys({tabs:e,children:t,pageId:s}){var h;const l=e.filter(m=>!m.hidden),o=((h=l[0])==null?void 0:h.slug)??"",[c,d]=bs(o);return a.jsxs("div",{className:"flex flex-col min-h-0",children:[a.jsx("div",{className:"border-b border-white/10",children:a.jsx("nav",{className:"flex overflow-x-auto scrollbar-none",children:l.map(m=>{const p=m.slug===c,x=m.icon;return a.jsxs("button",{onClick:()=>d(m.slug),className:["relative flex items-center gap-1.5 px-4 py-3 text-sm font-medium whitespace-nowrap transition-colors",p?"text-white":"text-neutral-400 hover:text-white"].join(" "),children:[x&&a.jsx(x,{size:14}),m.label,m.badge!=null&&m.badge>0&&a.jsx("span",{className:"text-[10px] bg-warning/20 text-warning px-1.5 py-0.5 rounded-full font-bold",children:m.badge}),p&&a.jsx(He.div,{layoutId:`tab-underline-${s}`,className:"absolute bottom-0 left-0 right-0 h-0.5 bg-white"})]},m.slug)})})}),t(c)]})}function hj(e){const t=/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"),s=Date.now()-t.getTime();if(s<0)return"just now";const l=Math.floor(s/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const o=Math.floor(l/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}const kK=["briefing","suggestion","insight","anomaly","proactive"];function dH(){const{data:e,loading:t}=ye("/api/activity"),s=r.useMemo(()=>e?e.filter(c=>kK.some(d=>(c.activity_type??"").toLowerCase().includes(d))):[],[e]),l=r.useMemo(()=>e?e.filter(c=>c.activity_type==="task_completed").slice(0,10):[],[e]),o=!t&&s.length===0&&l.length===0;return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Briefings",subtitle:"Agent insights and daily digest"}),t?a.jsx(We,{count:4}):o?a.jsx(dn,{icon:l9,title:"No briefings yet",description:"Briefings appear here as your agents generate insights, detect anomalies, and complete work.",capabilities:[{icon:l9,label:"Daily digest",description:"Summary of completed work"},{icon:s9,label:"Suggestions",description:"Agent improvement ideas"},{icon:Rn,label:"Proactive insights",description:"Anomalies and opportunities"}]}):a.jsxs("div",{className:"space-y-6",children:[s.length>0&&a.jsxs("div",{children:[a.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Insights"}),a.jsx("div",{className:"space-y-2",children:s.map((c,d)=>a.jsx(He.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:d*.04},className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4",children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500/10 flex items-center justify-center shrink-0 mt-0.5",children:a.jsx(s9,{size:16,className:"text-amber-400"})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx("p",{className:"text-sm font-medium",children:c.title}),a.jsx("span",{className:"text-[10px] bg-white/[0.06] px-1.5 py-0.5 rounded text-neutral-400",children:c.activity_type})]}),c.description&&a.jsx("p",{className:"text-xs text-neutral-400",children:c.description}),a.jsxs("p",{className:"text-[10px] text-neutral-500 mt-1.5 flex items-center gap-1",children:[a.jsx(Q0,{size:10})," ",hj(c.created_at)]})]})]})},c.id))})]}),l.length>0&&a.jsxs("div",{children:[a.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Recent completions"}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:l.map(c=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{className:"min-w-0 mr-3",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:c.title}),c.description&&a.jsx("p",{className:"text-xs text-neutral-400 truncate",children:c.description})]}),a.jsx("span",{className:"text-xs text-neutral-500 shrink-0",children:hj(c.created_at)})]},c.id))})]})]})]})}function hH(){const[e,t]=r.useState(""),[s,l]=r.useState(""),[o,c]=r.useState(!1),[d,h]=r.useState(null),m=r.useRef(null),p=async()=>{if(e.trim()){c(!0),h(null);try{const b=(await me("/api/podcast/generate",{method:"POST",body:JSON.stringify({content:e.trim(),title:s.trim()||void 0})})).data.jobId;h({jobId:b,status:"queued"}),ue("success","Podcast generation started"),x(b)}catch{ue("error","Couldn't start podcast generation")}finally{c(!1)}}},x=g=>{m.current&&clearInterval(m.current),m.current=setInterval(async()=>{try{const b=await me(`/api/podcast/status/${g}`);h(b.data),(b.data.status==="completed"||b.data.status==="failed")&&(m.current&&clearInterval(m.current),m.current=null,b.data.status==="completed"?ue("success","Podcast ready"):ue("error",b.data.error||"Generation failed"))}catch{m.current&&clearInterval(m.current),m.current=null}},3e3)};return r.useEffect(()=>()=>{m.current&&clearInterval(m.current)},[]),a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Podcast",subtitle:"Generate audio content from text"}),a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4 space-y-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Title (optional)"}),a.jsx("input",{value:s,onChange:g=>l(g.target.value),placeholder:"Episode title",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Content"}),a.jsx("textarea",{value:e,onChange:g=>t(g.target.value),placeholder:"Paste the text you want to convert into a podcast episode...",rows:8,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none"})]}),a.jsx("div",{className:"flex justify-end",children:a.jsxs("button",{onClick:p,disabled:o||!e.trim(),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:[o?a.jsx(it,{size:14,className:"animate-spin"}):a.jsx(Vn,{size:14}),"Generate podcast"]})})]}),d&&a.jsxs("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[d.status==="queued"||d.status==="processing"?a.jsx(it,{size:18,className:"text-blue-400 animate-spin"}):d.status==="completed"?a.jsx(h9,{size:18,className:"text-success"}):a.jsx(Vn,{size:18,className:"text-critical"}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium capitalize",children:d.status}),d.status==="processing"&&d.progress!=null&&a.jsxs("p",{className:"text-xs text-neutral-400",children:[Math.round(d.progress*100),"% complete"]})]})]}),d.status==="processing"&&d.progress!=null&&a.jsx("div",{className:"h-1.5 bg-white/[0.06] rounded-full overflow-hidden mb-3",children:a.jsx("div",{className:"h-full bg-blue-500 rounded-full transition-all duration-500",style:{width:`${Math.round(d.progress*100)}%`}})}),d.status==="completed"&&d.audioUrl&&a.jsx("audio",{controls:!0,className:"w-full mt-2",src:d.audioUrl,children:"Your browser does not support audio playback."}),d.status==="failed"&&d.error&&a.jsx("p",{className:"text-xs text-critical",children:d.error})]}),!e&&!d&&a.jsx(dn,{icon:Vn,title:"AI Podcast Generator",description:"Convert any text content into a natural-sounding podcast episode using local TTS models.",capabilities:[{icon:Vn,label:"Text to speech",description:"Natural-sounding voices"},{icon:h9,label:"Audio output",description:"Download or play in browser"},{icon:t3,label:"Multiple voices",description:"Different speakers for dialogue"}],variant:"compact"})]})]})}const RK=[{slug:"knowledge",label:"Knowledge Base"},{slug:"briefings",label:"Briefings"},{slug:"podcast",label:"Podcast"}];function DK(){return a.jsx(ys,{tabs:RK,pageId:"knowledge",children:e=>a.jsxs("div",{className:"flex-1 min-h-0 overflow-auto",children:[e==="knowledge"&&a.jsx(FK,{}),e==="briefings"&&a.jsx(dH,{}),e==="podcast"&&a.jsx(hH,{})]})})}function FK(){const{data:e,loading:t,refetch:s}=ye("/api/knowledge"),[l,o]=r.useState(""),[c,d]=r.useState(!1),h=e==null?void 0:e.filter(p=>p.title.toLowerCase().includes(l.toLowerCase())),m=r.useCallback(async p=>{try{await me(`/api/knowledge/${p}`,{method:"DELETE"}),ue("success","Document removed"),s()}catch{ue("error","Couldn't remove document")}},[s]);return a.jsxs("div",{className:"p-6 max-w-5xl",children:[a.jsx(ze,{title:"Knowledge",subtitle:"Documents and context for your agents",action:a.jsx("button",{onClick:()=>d(!0),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:"Add document"})}),a.jsx("div",{className:"mb-4",children:a.jsxs("div",{className:"relative",children:[a.jsx(ga,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-500"}),a.jsx("input",{type:"text",placeholder:"Search documents...",value:l,onChange:p=>o(p.target.value),className:"w-full pl-9 pr-4 py-2 text-sm bg-white/5 border border-white/10 rounded-lg text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})}),t?a.jsx("div",{className:"space-y-2",children:Array.from({length:3}).map((p,x)=>a.jsx("div",{className:"h-16 bg-white/5 rounded-lg animate-pulse"},x))}):h!=null&&h.length?a.jsx("div",{className:"space-y-2",children:h.map(p=>a.jsxs("div",{className:"flex items-center gap-4 px-4 py-3 border border-white/[0.08] rounded-lg hover:bg-white/[0.02] transition-colors",children:[a.jsx("div",{className:"w-8 h-8 rounded-lg bg-white/5 flex items-center justify-center text-neutral-400",children:p.type==="url"?a.jsx(Yl,{size:16}):a.jsx(sf,{size:16})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:p.title}),a.jsxs("p",{className:"text-xs text-neutral-500",children:[p.chunk_count!=null?`${p.chunk_count} ${p.chunk_count===1?"chunk":"chunks"}`:p.type," · ",new Date(p.created_at).toLocaleDateString()]})]}),a.jsx(ft,{status:p.status}),a.jsx("button",{onClick:()=>m(p.id),className:"text-neutral-500 hover:text-critical transition-colors",children:a.jsx(Kt,{size:16})})]},p.id))}):a.jsx(bt,{icon:a.jsx(vM,{size:32}),title:"Nothing here yet",description:"Upload documents or add URLs to give your agents more context.",action:a.jsx("button",{onClick:()=>d(!0),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:"Add your first document"})}),a.jsx(OK,{open:c,onClose:()=>d(!1),onSuccess:()=>{d(!1),s()}})]})}function OK({open:e,onClose:t,onSuccess:s}){const[l,o]=r.useState("file"),[c,d]=r.useState(""),[h,m]=r.useState(!1),[p,x]=r.useState(!1),g=r.useCallback(async w=>{if(w!=null&&w.length){m(!0);try{const j=new FormData;Array.from(w).forEach(E=>j.append("files",E));const N=cn();await fetch("/api/knowledge/upload",{method:"POST",headers:N?{Authorization:`Bearer ${N}`}:{},body:j}),ue("success",`Uploaded ${w.length===1?"1 document":`${w.length} documents`}`),s()}catch{ue("error","Couldn't upload. Try again?")}finally{m(!1)}}},[s]),b=r.useCallback(async()=>{if(c.trim()){m(!0);try{await me("/api/knowledge/url",{method:"POST",body:JSON.stringify({url:c.trim()})}),ue("success","URL imported"),s()}catch{ue("error","Couldn't import URL. Try again?")}finally{m(!1)}}},[c,s]);return a.jsxs(ba,{open:e,onClose:t,title:"Add document",children:[a.jsxs("div",{className:"flex gap-2 mb-4",children:[a.jsx("button",{onClick:()=>o("file"),className:`px-3 py-1.5 text-xs font-medium rounded transition-colors ${l==="file"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Upload file"}),a.jsx("button",{onClick:()=>o("url"),className:`px-3 py-1.5 text-xs font-medium rounded transition-colors ${l==="url"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Import URL"})]}),l==="file"?a.jsxs("div",{onDragOver:w=>{w.preventDefault(),x(!0)},onDragLeave:()=>x(!1),onDrop:w=>{w.preventDefault(),x(!1),g(w.dataTransfer.files)},className:`border-2 border-dashed rounded-lg p-8 text-center transition-colors ${p?"border-white/30 bg-white/5":"border-white/10"}`,children:[a.jsx(TI,{size:24,className:"mx-auto text-neutral-500 mb-2"}),a.jsx("p",{className:"text-sm text-neutral-400 mb-2",children:"Drag and drop files here"}),a.jsxs("label",{className:"inline-block px-4 py-2 text-xs font-medium bg-white/10 text-white rounded cursor-pointer hover:bg-white/15 transition-colors",children:["Choose files",a.jsx("input",{type:"file",multiple:!0,className:"hidden",onChange:w=>g(w.target.files)})]})]}):a.jsxs("div",{className:"space-y-3",children:[a.jsx("input",{type:"url",placeholder:"https://...",value:c,onChange:w=>d(w.target.value),className:"w-full px-3 py-2 text-sm bg-white/5 border border-white/10 rounded-lg text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"}),a.jsx("button",{onClick:b,disabled:!c.trim()||h,className:"w-full px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors disabled:opacity-50",children:h?"Importing...":"Import"})]}),h&&l==="file"&&a.jsx("p",{className:"text-xs text-neutral-400 mt-3 text-center",children:"Uploading..."})]})}const am={lead_gen:{label:"Lead Gen",Icon:gI},content:{label:"Content",Icon:AI},support:{label:"Support",Icon:xI},operations:{label:"Ops",Icon:oS},analytics:{label:"Analytics",Icon:HM},sales:{label:"Sales",Icon:pI}},zK={beginner:"bg-green-500/20 text-green-400",intermediate:"bg-yellow-500/20 text-yellow-400",advanced:"bg-red-500/20 text-red-400"};function mH(){const[e,t]=r.useState([]),[s,l]=r.useState(!0),[o,c]=r.useState(""),[d,h]=r.useState(null),[m,p]=r.useState(null),[x,g]=r.useState(!1),[b,w]=r.useState({});r.useEffect(()=>{j()},[]);const j=async()=>{try{const M=await me("/api/templates");t(M.templates||[])}catch{ue("error","Couldn't load templates")}finally{l(!1)}},N=r.useMemo(()=>{let M=e;if(d&&(M=M.filter(S=>S.category===d)),o){const S=o.toLowerCase();M=M.filter(L=>L.name.toLowerCase().includes(S)||L.description.toLowerCase().includes(S))}return M},[e,d,o]),E=M=>{p(M);const S={};M.variables.forEach(L=>{S[L.key]=L.default_value||""}),w(S)},A=async()=>{if(m){g(!0);try{await me(`/api/templates/${m.slug}/install`,{method:"POST",body:JSON.stringify({variableValues:b})}),ue("success",`Installed "${m.name}"`),p(null),j()}catch{ue("error","Couldn't install template. Try again?")}finally{g(!1)}}},C=["all",...Object.keys(am)];return a.jsxs("div",{className:"p-6 max-w-5xl",children:[a.jsx(ze,{title:"Templates",subtitle:"Pre-built agent and automation bundles you can install in one click."}),a.jsxs("div",{className:"flex items-center gap-3 mt-4 mb-6 flex-wrap",children:[a.jsx("div",{className:"flex items-center gap-1.5 flex-wrap",children:C.map(M=>{var S;return a.jsx("button",{onClick:()=>h(M==="all"?null:M),className:`px-3 py-1 text-xs rounded-full transition-colors ${M==="all"&&!d||M===d?"bg-white/10 text-white border border-white/20":"bg-white/[0.03] text-neutral-500 border border-white/[0.06] hover:text-neutral-300"}`,children:M==="all"?"All":((S=am[M])==null?void 0:S.label)||M},M)})}),a.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[a.jsx(ga,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-neutral-500"}),a.jsx("input",{type:"text",value:o,onChange:M=>c(M.target.value),placeholder:"Search templates...",className:"w-full pl-8 pr-3 py-1.5 text-xs bg-white/[0.04] border border-white/[0.08] rounded-lg text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),s?a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[1,2,3].map(M=>a.jsx(nn,{className:"h-48 rounded-lg"},M))}):N.length===0?a.jsx(bt,{icon:a.jsx(n9,{size:40,weight:"thin"}),title:"No templates found",description:o||d?"Try a different filter.":"Templates will appear here."}):a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:N.map(M=>{const S=am[M.category],L=(S==null?void 0:S.Icon)||n9;return a.jsxs("button",{onClick:()=>M.installed?null:E(M),className:"text-left border border-white/[0.06] rounded-lg bg-white/[0.02] hover:bg-white/[0.04] p-4 transition-colors",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx(L,{size:20,weight:"bold",className:"text-neutral-400"}),a.jsx("span",{className:"text-sm font-medium text-white truncate",children:M.name}),M.installed&&a.jsx(y0,{size:16,weight:"fill",className:"text-green-400 ml-auto flex-shrink-0"})]}),a.jsx("p",{className:"text-xs text-neutral-400 line-clamp-2 mb-3",children:M.description}),a.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[a.jsx("span",{className:"text-[10px] px-2 py-0.5 rounded-full bg-white/[0.06] text-neutral-400",children:(S==null?void 0:S.label)||M.category}),a.jsx("span",{className:`text-[10px] px-2 py-0.5 rounded-full ${zK[M.difficulty]||"bg-white/[0.06] text-neutral-400"}`,children:M.difficulty}),a.jsxs("span",{className:"text-[10px] text-neutral-500 flex items-center gap-0.5",children:[a.jsx(Rn,{size:10})," ",M.agents.length]}),a.jsxs("span",{className:"text-[10px] text-neutral-500 flex items-center gap-0.5",children:[a.jsx(ka,{size:10})," ",M.automations.length]})]})]},M.id)})}),m&&a.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",onClick:()=>!x&&p(null),children:a.jsxs("div",{className:"bg-[#111] border border-white/10 rounded-xl p-6 w-full max-w-md",onClick:M=>M.stopPropagation(),children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsxs("h2",{className:"text-lg font-semibold",children:["Install ",m.name]}),a.jsx("button",{onClick:()=>p(null),className:"text-neutral-500 hover:text-white",disabled:x,children:a.jsx(Yt,{size:18})})]}),a.jsxs("p",{className:"text-xs text-neutral-400 mb-4",children:["This will create ",m.agents.length===1?"1 agent":`${m.agents.length} agents`," and"," ",m.automations.length===1?"1 automation":`${m.automations.length} automations`,"."]}),m.variables.length>0&&a.jsx("div",{className:"space-y-3 mb-4",children:m.variables.map(M=>a.jsxs("div",{children:[a.jsxs("label",{className:"block text-xs text-neutral-400 mb-1",children:[M.label,M.required&&a.jsx("span",{className:"text-red-400 ml-0.5",children:"*"})]}),M.type==="select"&&M.options?a.jsxs("select",{value:b[M.key]||"",onChange:S=>w(L=>({...L,[M.key]:S.target.value})),className:"w-full px-3 py-2 bg-white/5 border border-white/10 rounded-lg text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"",children:"Select..."}),M.options.map(S=>a.jsx("option",{value:S.value,children:S.label},S.value))]}):a.jsx("input",{type:M.type==="email"?"email":M.type==="url"?"url":"text",value:b[M.key]||"",onChange:S=>w(L=>({...L,[M.key]:S.target.value})),placeholder:M.placeholder||"",className:"w-full px-3 py-2 bg-white/5 border border-white/10 rounded-lg text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"}),M.description&&a.jsx("p",{className:"text-[10px] text-neutral-500 mt-0.5",children:M.description})]},M.key))}),a.jsx("button",{onClick:A,disabled:x,className:"w-full py-2.5 bg-white text-black text-sm font-medium rounded-lg hover:bg-gray-200 disabled:opacity-40 disabled:cursor-not-allowed transition-colors flex items-center justify-center gap-2",children:x?a.jsxs(a.Fragment,{children:[a.jsx(CI,{size:14,className:"animate-spin"}),"Installing..."]}):a.jsxs(a.Fragment,{children:["Install Template",a.jsx(go,{size:14})]})})]})})]})}const qK=[{slug:"tasks",label:"Tasks"},{slug:"projects",label:"Projects"},{slug:"automations",label:"Automations"},{slug:"schedules",label:"Schedules"},{slug:"templates",label:"Templates"}];function IK(){return bs("tasks"),a.jsx(ys,{tabs:qK,pageId:"work",children:e=>a.jsxs("div",{className:"flex-1 min-h-0 overflow-auto",children:[e==="tasks"&&a.jsx(BC,{}),e==="projects"&&a.jsx(tZ,{}),e==="automations"&&a.jsx(aZ,{}),e==="schedules"&&a.jsx(KC,{}),e==="templates"&&a.jsx(mH,{})]})})}const $K=["","#ef4444","#f97316","#eab308","#22c55e","#3b82f6"],BK=r.memo(function({id:t,data:s,selected:l,handleProps:o}){const c=s;return a.jsxs("div",{className:`rounded-lg border px-3 py-2 bg-zinc-900 w-[220px] ${l?"border-blue-500 ring-1 ring-blue-500/30":"border-zinc-700"}`,children:[a.jsx(Ua,{nodeId:t,handleId:"target",type:"target",position:"top",handleProps:o}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:$K[c.autonomyLevel]||"#666"}}),a.jsx("span",{className:"text-sm font-medium text-zinc-200 truncate",children:c.name})]}),c.role&&a.jsx("p",{className:"text-xs text-zinc-500 mt-0.5 truncate",children:c.role}),a.jsx(Ua,{nodeId:t,handleId:"source",type:"source",position:"bottom",handleProps:o})]})}),PK={organ_system:"#3b82f6",tissue:"#8b5cf6",microbiome:"#10b981"},UK=r.memo(function({id:t,data:s,selected:l,handleProps:o}){const c=s,d=PK[c.systemType]||"#3b82f6";return a.jsxs("div",{className:`rounded-lg border-2 px-3 py-2 bg-zinc-950 w-[240px] ${l?"ring-1 ring-blue-500/30":""}`,style:{borderColor:d},children:[a.jsx(Ua,{nodeId:t,handleId:"target",type:"target",position:"top",handleProps:o}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"text-sm font-semibold text-zinc-200 truncate",children:c.name}),a.jsxs("span",{className:"text-[10px] bg-zinc-800 text-zinc-400 rounded px-1.5 py-0.5 shrink-0 ml-2",children:[c.agentCount," ",c.agentCount===1?"agent":"agents"]})]}),c.telos&&a.jsx("p",{className:"text-xs text-zinc-500 mt-0.5 truncate",children:c.telos}),a.jsx(Ua,{nodeId:t,handleId:"source",type:"source",position:"bottom",handleProps:o})]})}),GK={coordination:"#3b82f6",delegation:"#f97316",nurture:"#22c55e",symbiotic:"#8b5cf6",immune:"#ef4444"},mj=r.memo(function({path:t,data:s,sourceX:l,sourceY:o,targetX:c,targetY:d}){const[h,m]=r.useState(!1);if((s==null?void 0:s.edgeType)==="membership")return a.jsxs("g",{children:[a.jsx("path",{d:t,fill:"none",stroke:"transparent",strokeWidth:12}),a.jsx("path",{d:t,fill:"none",stroke:"#525252",strokeWidth:1,strokeDasharray:"4 3",opacity:.5})]});const x=s,g=GK[(x==null?void 0:x.synapseType)||""]||"#666",b=1+((x==null?void 0:x.strength)||.5)*3,w=(x==null?void 0:x.origin)==="emergent",j=l!=null&&c!=null?(l+c)/2:0,N=o!=null&&d!=null?(o+d)/2:0;return a.jsxs("g",{onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),style:{pointerEvents:"all"},children:[a.jsx("path",{d:t,fill:"none",stroke:"transparent",strokeWidth:12}),a.jsx("path",{d:t,fill:"none",stroke:g,strokeWidth:b,strokeDasharray:w?"6 4":void 0,opacity:h?1:.7}),h&&(x==null?void 0:x.synapseType)&&a.jsxs("g",{transform:`translate(${j}, ${N})`,children:[a.jsx("rect",{x:-40,y:-10,width:80,height:20,rx:4,fill:"#18181b",stroke:g,strokeWidth:.5,opacity:.95}),a.jsxs("text",{x:0,y:4,textAnchor:"middle",fill:g,fontSize:10,fontFamily:"system-ui, sans-serif",children:[x.synapseType," ",Math.round((x.strength||0)*100),"%"]})]})]})});function YK(e){const t=[],s=[];for(const l of e.organSystems)t.push({id:`sys_${l.id}`,type:"organSystem",position:{x:0,y:0},data:{entityType:"organSystem",systemId:l.id,name:l.name,telos:l.telos,systemType:l.systemType,agentCount:l.agentIds.length},width:240,height:60});for(const l of e.agents)t.push({id:`agent_${l.id}`,type:"agent",position:{x:0,y:0},data:{entityType:"agent",agentId:l.id,name:l.name,role:l.role,autonomyLevel:l.autonomyLevel,organSystemId:l.organSystemId},width:220,height:70}),l.organSystemId&&s.push({id:`member_${l.id}`,source:`sys_${l.organSystemId}`,target:`agent_${l.id}`,type:"membership",data:{edgeType:"membership"}});for(const l of e.synapses)s.push({id:`syn_${l.id}`,source:`agent_${l.source}`,target:`agent_${l.target}`,type:"synapse",data:{synapseId:l.id,synapseType:l.type,strength:l.strength,origin:l.origin,activationCount:l.activationCount}});return{nodes:t,edges:s}}function KK(e,t){if(e.length===0)return e;const s=new oo.graphlib.Graph;s.setDefaultEdgeLabel(()=>({})),s.setGraph({rankdir:"TB",nodesep:60,ranksep:80,marginx:40,marginy:40});for(const l of e){const o=l.width||(l.type==="organSystem"?240:220),c=l.height||(l.type==="organSystem"?60:70);s.setNode(l.id,{width:o,height:c})}for(const l of t)s.setEdge(l.source,l.target);return oo.layout(s),e.map(l=>{const o=s.node(l.id);if(!o)return l;const c=l.width||220,d=l.height||70;return{...l,position:{x:o.x-c/2,y:o.y-d/2}}})}const XK={agent:BK,organSystem:UK},QK={synapse:mj,membership:mj};function JK(){const e=va(["agent:upserted","agent:removed","department:upserted","department:removed"]),{data:t,loading:s}=ye("/api/org/topology",[e]),[l,o]=r.useState(null),{nodes:c,edges:d}=r.useMemo(()=>{if(!t)return{nodes:[],edges:[]};const p=YK(t);return{nodes:KK(p.nodes,p.edges),edges:p.edges}},[t]),h=r.useCallback((p,x)=>{o(p)},[]),m=r.useCallback(()=>{o(null)},[]);return s?a.jsx("div",{className:"flex items-center justify-center h-64 text-zinc-500",children:"Loading topology..."}):c.length===0?a.jsxs("div",{className:"flex flex-col items-center justify-center h-64 text-zinc-500",children:[a.jsx("p",{className:"text-lg mb-1",children:"No agents or departments yet"}),a.jsx("p",{className:"text-sm text-zinc-600",children:"Create agents and departments to see the org topology"})]}):a.jsx("div",{className:"h-[600px] border border-zinc-800 rounded-lg overflow-hidden",children:a.jsx(lH,{nodes:c,edges:d,selectedNodeId:l,nodeTypes:XK,edgeTypes:QK,onNodeClick:h,onPaneClick:m,fitViewOnMount:!0})})}const WK=[{id:"departments",label:"Departments"},{id:"members",label:"Members"},{id:"topology",label:"Topology"}];function fH(){const[e,t]=r.useState("departments");return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Team",subtitle:"Departments and team members"}),a.jsx("div",{className:"mb-6",children:a.jsx(Kl,{tabs:WK,activeTab:e,onTabChange:t,layoutId:"team-tab"})}),e==="departments"&&a.jsx(eX,{}),e==="members"&&a.jsx(aX,{}),e==="topology"&&a.jsx(JK,{})]})}function eX(){const{data:e,loading:t,refetch:s}=ye("/api/departments"),[l,o]=r.useState(!1),[c,d]=r.useState(null),[h,m]=r.useState(null),[p,x]=r.useState(!1),g=async()=>{if(h){x(!0);try{await me(`/api/departments/${h.id}`,{method:"DELETE"}),ue("success","Department deleted"),s()}catch{ue("error","Couldn't delete department")}finally{x(!1),m(null)}}};return t?a.jsx(We,{count:3}):e!=null&&e.length?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"flex justify-end mb-4",children:a.jsxs("button",{onClick:()=>{d(null),o(!0)},className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Zt,{size:14})," Add department"]})}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(b=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium",children:b.name}),b.description&&a.jsx("p",{className:"text-xs text-neutral-400",children:b.description})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("button",{onClick:()=>{d(b),o(!0)},className:"text-neutral-400 hover:text-white transition-colors",children:a.jsx(yo,{size:13})}),a.jsx("button",{onClick:()=>m(b),className:"text-neutral-400 hover:text-critical transition-colors",children:a.jsx(Kt,{size:13})})]})]},b.id))}),l&&a.jsx(tX,{dept:c,onClose:()=>{o(!1),d(null)},onSuccess:()=>{s(),o(!1),d(null)}}),a.jsx(w0,{open:!!h,onClose:()=>m(null),onConfirm:g,title:"Delete department",message:`Delete "${h==null?void 0:h.name}"?`,confirmLabel:"Delete",loading:p})]}):a.jsx(dn,{icon:no,title:"No departments yet",description:"Create departments to organize your agents and team members.",capabilities:[{icon:no,label:"Organization",description:"Group agents by function"},{icon:AC,label:"Team structure",description:"Define team hierarchy"}],action:{label:"Create department",onClick:()=>{d(null),o(!0)}}})}function tX({dept:e,onClose:t,onSuccess:s}){const[l,o]=r.useState((e==null?void 0:e.name)||""),[c,d]=r.useState((e==null?void 0:e.description)||""),[h,m]=r.useState(!1),p=async x=>{if(x.preventDefault(),!!l.trim()){m(!0);try{const g={name:l.trim(),description:c.trim()||null};e?(await me(`/api/departments/${e.id}`,{method:"PUT",body:JSON.stringify(g)}),ue("success","Department updated")):(await me("/api/departments",{method:"POST",body:JSON.stringify(g)}),ue("success","Department created")),s()}catch{ue("error",e?"Couldn't update department":"Couldn't create department")}finally{m(!1)}}};return a.jsx(ba,{open:!0,onClose:t,title:e?"Edit department":"New department",maxWidth:"max-w-md",children:a.jsxs("form",{onSubmit:p,className:"space-y-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),a.jsx("input",{value:l,onChange:x=>o(x.target.value),placeholder:"Engineering",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20",autoFocus:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description"}),a.jsx("input",{value:c,onChange:x=>d(x.target.value),placeholder:"What this department does",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[a.jsx("button",{type:"button",onClick:t,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:h||!l.trim(),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:h?"Saving...":e?"Update":"Create"})]})]})})}function aX(){const{data:e,loading:t,refetch:s}=ye("/api/team-members"),{data:l}=ye("/api/departments"),[o,c]=r.useState(!1),[d,h]=r.useState(null),[m,p]=r.useState(null),[x,g]=r.useState(!1),b=j=>{var N;return!j||!l?null:((N=l.find(E=>E.id===j))==null?void 0:N.name)||null},w=async()=>{if(m){g(!0);try{await me(`/api/team-members/${m.id}`,{method:"DELETE"}),ue("success","Member removed"),s()}catch{ue("error","Couldn't remove member")}finally{g(!1),p(null)}}};return t?a.jsx(We,{count:3}):e!=null&&e.length?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"flex justify-end mb-4",children:a.jsxs("button",{onClick:()=>{h(null),c(!0)},className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Zt,{size:14})," Add member"]})}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(j=>{var N;return a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-xs font-bold",children:(N=j.name[0])==null?void 0:N.toUpperCase()}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium",children:j.name}),a.jsxs("p",{className:"text-xs text-neutral-400",children:[j.role||"No role",b(j.department_id)&&a.jsxs("span",{className:"ml-2",children:["· ",b(j.department_id)]}),j.email&&a.jsxs("span",{className:"ml-2",children:["· ",j.email]})]})]})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("button",{onClick:()=>{h(j),c(!0)},className:"text-neutral-400 hover:text-white transition-colors",children:a.jsx(yo,{size:13})}),a.jsx("button",{onClick:()=>p(j),className:"text-neutral-400 hover:text-critical transition-colors",children:a.jsx(Kt,{size:13})})]})]},j.id)})}),o&&a.jsx(nX,{member:d,departments:l||[],onClose:()=>{c(!1),h(null)},onSuccess:()=>{s(),c(!1),h(null)}}),a.jsx(w0,{open:!!m,onClose:()=>p(null),onConfirm:w,title:"Remove member",message:`Remove "${m==null?void 0:m.name}"?`,confirmLabel:"Remove",loading:x})]}):a.jsx(dn,{icon:K0,title:"No team members yet",description:"Add team members to track human collaborators alongside your AI agents.",capabilities:[{icon:K0,label:"Profiles",description:"Name, email, role"},{icon:no,label:"Departments",description:"Assign to departments"}],action:{label:"Add team member",onClick:()=>{h(null),c(!0)}}})}function nX({member:e,departments:t,onClose:s,onSuccess:l}){const[o,c]=r.useState((e==null?void 0:e.name)||""),[d,h]=r.useState((e==null?void 0:e.email)||""),[m,p]=r.useState((e==null?void 0:e.role)||""),[x,g]=r.useState((e==null?void 0:e.department_id)||""),[b,w]=r.useState(!1),j=async N=>{if(N.preventDefault(),!!o.trim()){w(!0);try{const E={name:o.trim(),email:d.trim()||null,role:m.trim()||null,department_id:x||null};e?(await me(`/api/team-members/${e.id}`,{method:"PUT",body:JSON.stringify(E)}),ue("success","Member updated")):(await me("/api/team-members",{method:"POST",body:JSON.stringify(E)}),ue("success","Member added")),l()}catch{ue("error",e?"Couldn't update member":"Couldn't add member")}finally{w(!1)}}};return a.jsx(ba,{open:!0,onClose:s,title:e?"Edit member":"New member",maxWidth:"max-w-md",children:a.jsxs("form",{onSubmit:j,className:"space-y-3",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),a.jsx("input",{value:o,onChange:N=>c(N.target.value),placeholder:"Jane Doe",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20",autoFocus:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Email"}),a.jsx("input",{value:d,onChange:N=>h(N.target.value),placeholder:"jane@example.com",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Role"}),a.jsx("input",{value:m,onChange:N=>p(N.target.value),placeholder:"Product Manager",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Department"}),a.jsxs("select",{value:x,onChange:N=>g(N.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"",children:"None"}),t.map(N=>a.jsx("option",{value:N.id,children:N.name},N.id))]})]})]}),a.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[a.jsx("button",{type:"button",onClick:s,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:b||!o.trim(),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:b?"Saving...":e?"Update":"Add member"})]})]})})}const rX=120*1e3;function fj(e){if(e.status!=="connected")return!1;const t=e.last_health_at||e.last_seen_at||e.last_seen;if(!t)return!1;const s=/Z$|[+-]\d\d:?\d\d$/.test(t)?new Date(t):new Date(t.replace(" ","T")+"Z");return Date.now()-s.getTime()<rX&&(e.consecutive_failures??0)===0}function pj(e){const t=/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"),s=Date.now()-t.getTime(),l=Math.floor(s/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const o=Math.floor(l/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function pH(){const{data:e,loading:t,refetch:s}=ye("/api/peers"),[l,o]=r.useState(""),[c,d]=r.useState(!1),[h,m]=r.useState(null),[p,x]=r.useState(null),[g,b]=r.useState(null),[w,j]=r.useState(!1),[N,E]=r.useState([]),[A,C]=r.useState(!1),M=r.useMemo(()=>{if(!e)return[];if(!l.trim())return e;const T=l.toLowerCase();return e.filter(D=>D.name.toLowerCase().includes(T)||D.base_url.toLowerCase().includes(T))},[e,l]),S=r.useMemo(()=>e?{total:e.length,online:e.filter(fj).length}:{total:0,online:0},[e]),L=async T=>{m(T);try{await me(`/api/peers/${T}/test`,{method:"POST"}),ue("success","Peer is reachable"),s()}catch{ue("error","Peer unreachable"),s()}finally{m(null)}},V=async T=>{x(T),C(!0);try{const D=await me(`/api/peers/${T.id}/agents`);E(D.data||[])}catch{E([])}finally{C(!1)}},_=async()=>{if(g){j(!0);try{await me(`/api/peers/${g.id}`,{method:"DELETE"}),ue("success","Peer removed"),s()}catch{ue("error","Couldn't remove peer")}finally{j(!1),b(null)}}},H=!t&&(!e||e.length===0);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Peers",subtitle:"Workspace-to-workspace connections",action:a.jsxs("button",{onClick:()=>d(!0),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Zt,{size:14})," Add peer"]})}),t?a.jsx(We,{count:3}):H?a.jsx(dn,{icon:c9,title:"No peer connections",description:"Connect to other ohwow workspaces to delegate tasks across devices.",capabilities:[{icon:c9,label:"Task delegation",description:"Send tasks to remote agents"},{icon:lo,label:"Agent discovery",description:"Browse remote agent capabilities"},{icon:SC,label:"Health checks",description:"Monitor peer connectivity"},{icon:nf,label:"Bidirectional",description:"Two-way communication"}],action:{label:"Add your first peer",onClick:()=>d(!0)}}):a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-6",children:[a.jsx(Vt,{label:"Total peers",value:S.total}),a.jsx(Vt,{label:"Online",value:S.online,color:"text-success"})]}),a.jsxs("div",{className:"relative mb-4",children:[a.jsx(ga,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:l,onChange:T=>o(T.target.value),placeholder:"Search peers...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:M.map(T=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("button",{className:"min-w-0 mr-3 text-left flex-1",onClick:()=>V(T),children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:`w-2 h-2 rounded-full ${fj(T)?"bg-success":"bg-neutral-500"}`}),a.jsx("p",{className:"text-sm font-medium truncate",children:T.name})]}),a.jsxs("p",{className:"text-xs text-neutral-400 ml-4",children:[T.base_url,(T.last_health_at||T.last_seen_at||T.last_seen)&&a.jsxs("span",{className:"ml-2",children:["· seen ",pj(T.last_health_at||T.last_seen_at||T.last_seen)]})]})]}),a.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[a.jsx(ft,{status:T.status}),a.jsx("button",{onClick:()=>V(T),className:"text-neutral-400 hover:text-white transition-colors",children:a.jsx(v0,{size:14})}),a.jsx("button",{onClick:()=>L(T.id),disabled:h===T.id,className:"text-neutral-400 hover:text-white transition-colors disabled:opacity-50",children:a.jsx(us,{size:14,className:h===T.id?"animate-spin":""})}),a.jsx("button",{onClick:()=>b(T),className:"text-neutral-400 hover:text-critical transition-colors",children:a.jsx(Kt,{size:14})})]})]},T.id))})]}),c&&a.jsx(sX,{onClose:()=>d(!1),onSuccess:()=>{s(),d(!1)}}),p&&a.jsx(ba,{open:!0,onClose:()=>{x(null),E([])},title:`Peer: ${p.name}`,maxWidth:"max-w-lg",children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"bg-white/5 rounded-lg p-3 space-y-2 text-sm",children:[a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-neutral-400",children:"URL"}),a.jsx("span",{className:"font-medium break-all",children:p.base_url})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-neutral-400",children:"Status"}),a.jsx(ft,{status:p.status})]}),p.last_seen&&a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-neutral-400",children:"Last seen"}),a.jsx("span",{className:"font-medium",children:pj(p.last_seen)})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider mb-2",children:"Remote agents"}),A?a.jsx(We,{count:2}):N.length===0?a.jsx("p",{className:"text-xs text-neutral-500",children:"No agents found or peer is unreachable."}):a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:N.map(T=>a.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium",children:T.name}),a.jsx("p",{className:"text-xs text-neutral-500",children:T.role})]}),a.jsx(ft,{status:T.status})]},T.id))})]})]})}),a.jsx(w0,{open:!!g,onClose:()=>b(null),onConfirm:_,title:"Remove peer",message:`Remove "${g==null?void 0:g.name}"? You can re-add it later.`,confirmLabel:"Remove",loading:w})]})}function sX({onClose:e,onSuccess:t}){const[s,l]=r.useState(""),[o,c]=r.useState(""),[d,h]=r.useState(""),[m,p]=r.useState(!1),x=async g=>{if(g.preventDefault(),!(!s.trim()||!o.trim())){p(!0);try{await me("/api/peers",{method:"POST",body:JSON.stringify({name:s.trim(),base_url:o.trim(),token:d.trim()||void 0})}),ue("success","Peer added"),t()}catch{ue("error","Couldn't add peer")}finally{p(!1)}}};return a.jsx(ba,{open:!0,onClose:e,title:"Add peer",maxWidth:"max-w-md",children:a.jsxs("form",{onSubmit:x,className:"space-y-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),a.jsx("input",{value:s,onChange:g=>l(g.target.value),placeholder:"My other device",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20",autoFocus:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Base URL"}),a.jsx("input",{value:o,onChange:g=>c(g.target.value),placeholder:"http://192.168.1.100:7700",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Token (optional)"}),a.jsx("input",{type:"password",value:d,onChange:g=>h(g.target.value),placeholder:"Peer auth token",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[a.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:m||!s.trim()||!o.trim(),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:m?"Adding...":"Add peer"})]})]})})}var Br={},nm,xj;function lX(){return xj||(xj=1,nm=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),nm}var rm={},d0={},gj;function nr(){if(gj)return d0;gj=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return d0.getSymbolSize=function(l){if(!l)throw new Error('"version" cannot be null or undefined');if(l<1||l>40)throw new Error('"version" should be in range from 1 to 40');return l*4+17},d0.getSymbolTotalCodewords=function(l){return t[l]},d0.getBCHDigit=function(s){let l=0;for(;s!==0;)l++,s>>>=1;return l},d0.setToSJISFunction=function(l){if(typeof l!="function")throw new Error('"toSJISFunc" is not a valid function.');e=l},d0.isKanjiModeEnabled=function(){return typeof e<"u"},d0.toSJIS=function(l){return e(l)},d0}var sm={},vj;function M3(){return vj||(vj=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+s)}}e.isValid=function(l){return l&&typeof l.bit<"u"&&l.bit>=0&&l.bit<4},e.from=function(l,o){if(e.isValid(l))return l;try{return t(l)}catch{return o}}})(sm)),sm}var lm,bj;function iX(){if(bj)return lm;bj=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const s=Math.floor(t/8);return(this.buffer[s]>>>7-t%8&1)===1},put:function(t,s){for(let l=0;l<s;l++)this.putBit((t>>>s-l-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const s=Math.floor(this.length/8);this.buffer.length<=s&&this.buffer.push(0),t&&(this.buffer[s]|=128>>>this.length%8),this.length++}},lm=e,lm}var im,yj;function oX(){if(yj)return im;yj=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,s,l,o){const c=t*this.size+s;this.data[c]=l,o&&(this.reservedBit[c]=!0)},e.prototype.get=function(t,s){return this.data[t*this.size+s]},e.prototype.xor=function(t,s,l){this.data[t*this.size+s]^=l},e.prototype.isReserved=function(t,s){return this.reservedBit[t*this.size+s]},im=e,im}var om={},wj;function cX(){return wj||(wj=1,(function(e){const t=nr().getSymbolSize;e.getRowColCoords=function(l){if(l===1)return[];const o=Math.floor(l/7)+2,c=t(l),d=c===145?26:Math.ceil((c-13)/(2*o-2))*2,h=[c-7];for(let m=1;m<o-1;m++)h[m]=h[m-1]-d;return h.push(6),h.reverse()},e.getPositions=function(l){const o=[],c=e.getRowColCoords(l),d=c.length;for(let h=0;h<d;h++)for(let m=0;m<d;m++)h===0&&m===0||h===0&&m===d-1||h===d-1&&m===0||o.push([c[h],c[m]]);return o}})(om)),om}var cm={},Aj;function uX(){if(Aj)return cm;Aj=1;const e=nr().getSymbolSize,t=7;return cm.getPositions=function(l){const o=e(l);return[[0,0],[o-t,0],[0,o-t]]},cm}var um={},jj;function dX(){return jj||(jj=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){const c=o.size;let d=0,h=0,m=0,p=null,x=null;for(let g=0;g<c;g++){h=m=0,p=x=null;for(let b=0;b<c;b++){let w=o.get(g,b);w===p?h++:(h>=5&&(d+=t.N1+(h-5)),p=w,h=1),w=o.get(b,g),w===x?m++:(m>=5&&(d+=t.N1+(m-5)),x=w,m=1)}h>=5&&(d+=t.N1+(h-5)),m>=5&&(d+=t.N1+(m-5))}return d},e.getPenaltyN2=function(o){const c=o.size;let d=0;for(let h=0;h<c-1;h++)for(let m=0;m<c-1;m++){const p=o.get(h,m)+o.get(h,m+1)+o.get(h+1,m)+o.get(h+1,m+1);(p===4||p===0)&&d++}return d*t.N2},e.getPenaltyN3=function(o){const c=o.size;let d=0,h=0,m=0;for(let p=0;p<c;p++){h=m=0;for(let x=0;x<c;x++)h=h<<1&2047|o.get(p,x),x>=10&&(h===1488||h===93)&&d++,m=m<<1&2047|o.get(x,p),x>=10&&(m===1488||m===93)&&d++}return d*t.N3},e.getPenaltyN4=function(o){let c=0;const d=o.data.length;for(let m=0;m<d;m++)c+=o.data[m];return Math.abs(Math.ceil(c*100/d/5)-10)*t.N4};function s(l,o,c){switch(l){case e.Patterns.PATTERN000:return(o+c)%2===0;case e.Patterns.PATTERN001:return o%2===0;case e.Patterns.PATTERN010:return c%3===0;case e.Patterns.PATTERN011:return(o+c)%3===0;case e.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(c/3))%2===0;case e.Patterns.PATTERN101:return o*c%2+o*c%3===0;case e.Patterns.PATTERN110:return(o*c%2+o*c%3)%2===0;case e.Patterns.PATTERN111:return(o*c%3+(o+c)%2)%2===0;default:throw new Error("bad maskPattern:"+l)}}e.applyMask=function(o,c){const d=c.size;for(let h=0;h<d;h++)for(let m=0;m<d;m++)c.isReserved(m,h)||c.xor(m,h,s(o,m,h))},e.getBestMask=function(o,c){const d=Object.keys(e.Patterns).length;let h=0,m=1/0;for(let p=0;p<d;p++){c(p),e.applyMask(p,o);const x=e.getPenaltyN1(o)+e.getPenaltyN2(o)+e.getPenaltyN3(o)+e.getPenaltyN4(o);e.applyMask(p,o),x<m&&(m=x,h=p)}return h}})(um)),um}var L1={},Nj;function xH(){if(Nj)return L1;Nj=1;const e=M3(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return L1.getBlocksCount=function(o,c){switch(c){case e.L:return t[(o-1)*4+0];case e.M:return t[(o-1)*4+1];case e.Q:return t[(o-1)*4+2];case e.H:return t[(o-1)*4+3];default:return}},L1.getTotalCodewordsCount=function(o,c){switch(c){case e.L:return s[(o-1)*4+0];case e.M:return s[(o-1)*4+1];case e.Q:return s[(o-1)*4+2];case e.H:return s[(o-1)*4+3];default:return}},L1}var dm={},vl={},Ej;function hX(){if(Ej)return vl;Ej=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let l=1;for(let o=0;o<255;o++)e[o]=l,t[l]=o,l<<=1,l&256&&(l^=285);for(let o=255;o<512;o++)e[o]=e[o-255]})(),vl.log=function(l){if(l<1)throw new Error("log("+l+")");return t[l]},vl.exp=function(l){return e[l]},vl.mul=function(l,o){return l===0||o===0?0:e[t[l]+t[o]]},vl}var Mj;function mX(){return Mj||(Mj=1,(function(e){const t=hX();e.mul=function(l,o){const c=new Uint8Array(l.length+o.length-1);for(let d=0;d<l.length;d++)for(let h=0;h<o.length;h++)c[d+h]^=t.mul(l[d],o[h]);return c},e.mod=function(l,o){let c=new Uint8Array(l);for(;c.length-o.length>=0;){const d=c[0];for(let m=0;m<o.length;m++)c[m]^=t.mul(o[m],d);let h=0;for(;h<c.length&&c[h]===0;)h++;c=c.slice(h)}return c},e.generateECPolynomial=function(l){let o=new Uint8Array([1]);for(let c=0;c<l;c++)o=e.mul(o,new Uint8Array([1,t.exp(c)]));return o}})(dm)),dm}var hm,Sj;function fX(){if(Sj)return hm;Sj=1;const e=mX();function t(s){this.genPoly=void 0,this.degree=s,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(l){this.degree=l,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(l){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(l.length+this.degree);o.set(l);const c=e.mod(o,this.genPoly),d=this.degree-c.length;if(d>0){const h=new Uint8Array(this.degree);return h.set(c,d),h}return c},hm=t,hm}var mm={},fm={},pm={},Cj;function gH(){return Cj||(Cj=1,pm.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),pm}var tn={},Zj;function vH(){if(Zj)return tn;Zj=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let s="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";s=s.replace(/u/g,"\\u");const l="(?:(?![A-Z0-9 $%*+\\-./:]|"+s+`)(?:.|[\r
103
+ ]))+`;tn.KANJI=new RegExp(s,"g"),tn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),tn.BYTE=new RegExp(l,"g"),tn.NUMERIC=new RegExp(e,"g"),tn.ALPHANUMERIC=new RegExp(t,"g");const o=new RegExp("^"+s+"$"),c=new RegExp("^"+e+"$"),d=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return tn.testKanji=function(m){return o.test(m)},tn.testNumeric=function(m){return c.test(m)},tn.testAlphanumeric=function(m){return d.test(m)},tn}var Hj;function rr(){return Hj||(Hj=1,(function(e){const t=gH(),s=vH();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(c,d){if(!c.ccBits)throw new Error("Invalid mode: "+c);if(!t.isValid(d))throw new Error("Invalid version: "+d);return d>=1&&d<10?c.ccBits[0]:d<27?c.ccBits[1]:c.ccBits[2]},e.getBestModeForData=function(c){return s.testNumeric(c)?e.NUMERIC:s.testAlphanumeric(c)?e.ALPHANUMERIC:s.testKanji(c)?e.KANJI:e.BYTE},e.toString=function(c){if(c&&c.id)return c.id;throw new Error("Invalid mode")},e.isValid=function(c){return c&&c.bit&&c.ccBits};function l(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+o)}}e.from=function(c,d){if(e.isValid(c))return c;try{return l(c)}catch{return d}}})(fm)),fm}var _j;function pX(){return _j||(_j=1,(function(e){const t=nr(),s=xH(),l=M3(),o=rr(),c=gH(),d=7973,h=t.getBCHDigit(d);function m(b,w,j){for(let N=1;N<=40;N++)if(w<=e.getCapacity(N,j,b))return N}function p(b,w){return o.getCharCountIndicator(b,w)+4}function x(b,w){let j=0;return b.forEach(function(N){const E=p(N.mode,w);j+=E+N.getBitsLength()}),j}function g(b,w){for(let j=1;j<=40;j++)if(x(b,j)<=e.getCapacity(j,w,o.MIXED))return j}e.from=function(w,j){return c.isValid(w)?parseInt(w,10):j},e.getCapacity=function(w,j,N){if(!c.isValid(w))throw new Error("Invalid QR Code version");typeof N>"u"&&(N=o.BYTE);const E=t.getSymbolTotalCodewords(w),A=s.getTotalCodewordsCount(w,j),C=(E-A)*8;if(N===o.MIXED)return C;const M=C-p(N,w);switch(N){case o.NUMERIC:return Math.floor(M/10*3);case o.ALPHANUMERIC:return Math.floor(M/11*2);case o.KANJI:return Math.floor(M/13);case o.BYTE:default:return Math.floor(M/8)}},e.getBestVersionForData=function(w,j){let N;const E=l.from(j,l.M);if(Array.isArray(w)){if(w.length>1)return g(w,E);if(w.length===0)return 1;N=w[0]}else N=w;return m(N.mode,N.getLength(),E)},e.getEncodedBits=function(w){if(!c.isValid(w)||w<7)throw new Error("Invalid QR Code version");let j=w<<12;for(;t.getBCHDigit(j)-h>=0;)j^=d<<t.getBCHDigit(j)-h;return w<<12|j}})(mm)),mm}var xm={},Vj;function xX(){if(Vj)return xm;Vj=1;const e=nr(),t=1335,s=21522,l=e.getBCHDigit(t);return xm.getEncodedBits=function(c,d){const h=c.bit<<3|d;let m=h<<10;for(;e.getBCHDigit(m)-l>=0;)m^=t<<e.getBCHDigit(m)-l;return(h<<10|m)^s},xm}var gm={},vm,Tj;function gX(){if(Tj)return vm;Tj=1;const e=rr();function t(s){this.mode=e.NUMERIC,this.data=s.toString()}return t.getBitsLength=function(l){return 10*Math.floor(l/3)+(l%3?l%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(l){let o,c,d;for(o=0;o+3<=this.data.length;o+=3)c=this.data.substr(o,3),d=parseInt(c,10),l.put(d,10);const h=this.data.length-o;h>0&&(c=this.data.substr(o),d=parseInt(c,10),l.put(d,h*3+1))},vm=t,vm}var bm,Lj;function vX(){if(Lj)return bm;Lj=1;const e=rr(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function s(l){this.mode=e.ALPHANUMERIC,this.data=l}return s.getBitsLength=function(o){return 11*Math.floor(o/2)+6*(o%2)},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(o){let c;for(c=0;c+2<=this.data.length;c+=2){let d=t.indexOf(this.data[c])*45;d+=t.indexOf(this.data[c+1]),o.put(d,11)}this.data.length%2&&o.put(t.indexOf(this.data[c]),6)},bm=s,bm}var ym,kj;function bX(){if(kj)return ym;kj=1;const e=rr();function t(s){this.mode=e.BYTE,typeof s=="string"?this.data=new TextEncoder().encode(s):this.data=new Uint8Array(s)}return t.getBitsLength=function(l){return l*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(s){for(let l=0,o=this.data.length;l<o;l++)s.put(this.data[l],8)},ym=t,ym}var wm,Rj;function yX(){if(Rj)return wm;Rj=1;const e=rr(),t=nr();function s(l){this.mode=e.KANJI,this.data=l}return s.getBitsLength=function(o){return o*13},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(l){let o;for(o=0;o<this.data.length;o++){let c=t.toSJIS(this.data[o]);if(c>=33088&&c<=40956)c-=33088;else if(c>=57408&&c<=60351)c-=49472;else throw new Error("Invalid SJIS character: "+this.data[o]+`
104
+ Make sure your charset is UTF-8`);c=(c>>>8&255)*192+(c&255),l.put(c,13)}},wm=s,wm}var Am={exports:{}},Dj;function wX(){return Dj||(Dj=1,(function(e){var t={single_source_shortest_paths:function(s,l,o){var c={},d={};d[l]=0;var h=t.PriorityQueue.make();h.push(l,0);for(var m,p,x,g,b,w,j,N,E;!h.empty();){m=h.pop(),p=m.value,g=m.cost,b=s[p]||{};for(x in b)b.hasOwnProperty(x)&&(w=b[x],j=g+w,N=d[x],E=typeof d[x]>"u",(E||N>j)&&(d[x]=j,h.push(x,j),c[x]=p))}if(typeof o<"u"&&typeof d[o]>"u"){var A=["Could not find a path from ",l," to ",o,"."].join("");throw new Error(A)}return c},extract_shortest_path_from_predecessor_list:function(s,l){for(var o=[],c=l;c;)o.push(c),s[c],c=s[c];return o.reverse(),o},find_path:function(s,l,o){var c=t.single_source_shortest_paths(s,l,o);return t.extract_shortest_path_from_predecessor_list(c,o)},PriorityQueue:{make:function(s){var l=t.PriorityQueue,o={},c;s=s||{};for(c in l)l.hasOwnProperty(c)&&(o[c]=l[c]);return o.queue=[],o.sorter=s.sorter||l.default_sorter,o},default_sorter:function(s,l){return s.cost-l.cost},push:function(s,l){var o={value:s,cost:l};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Am)),Am.exports}var Fj;function AX(){return Fj||(Fj=1,(function(e){const t=rr(),s=gX(),l=vX(),o=bX(),c=yX(),d=vH(),h=nr(),m=wX();function p(A){return unescape(encodeURIComponent(A)).length}function x(A,C,M){const S=[];let L;for(;(L=A.exec(M))!==null;)S.push({data:L[0],index:L.index,mode:C,length:L[0].length});return S}function g(A){const C=x(d.NUMERIC,t.NUMERIC,A),M=x(d.ALPHANUMERIC,t.ALPHANUMERIC,A);let S,L;return h.isKanjiModeEnabled()?(S=x(d.BYTE,t.BYTE,A),L=x(d.KANJI,t.KANJI,A)):(S=x(d.BYTE_KANJI,t.BYTE,A),L=[]),C.concat(M,S,L).sort(function(_,H){return _.index-H.index}).map(function(_){return{data:_.data,mode:_.mode,length:_.length}})}function b(A,C){switch(C){case t.NUMERIC:return s.getBitsLength(A);case t.ALPHANUMERIC:return l.getBitsLength(A);case t.KANJI:return c.getBitsLength(A);case t.BYTE:return o.getBitsLength(A)}}function w(A){return A.reduce(function(C,M){const S=C.length-1>=0?C[C.length-1]:null;return S&&S.mode===M.mode?(C[C.length-1].data+=M.data,C):(C.push(M),C)},[])}function j(A){const C=[];for(let M=0;M<A.length;M++){const S=A[M];switch(S.mode){case t.NUMERIC:C.push([S,{data:S.data,mode:t.ALPHANUMERIC,length:S.length},{data:S.data,mode:t.BYTE,length:S.length}]);break;case t.ALPHANUMERIC:C.push([S,{data:S.data,mode:t.BYTE,length:S.length}]);break;case t.KANJI:C.push([S,{data:S.data,mode:t.BYTE,length:p(S.data)}]);break;case t.BYTE:C.push([{data:S.data,mode:t.BYTE,length:p(S.data)}])}}return C}function N(A,C){const M={},S={start:{}};let L=["start"];for(let V=0;V<A.length;V++){const _=A[V],H=[];for(let T=0;T<_.length;T++){const D=_[T],F=""+V+T;H.push(F),M[F]={node:D,lastCount:0},S[F]={};for(let P=0;P<L.length;P++){const U=L[P];M[U]&&M[U].node.mode===D.mode?(S[U][F]=b(M[U].lastCount+D.length,D.mode)-b(M[U].lastCount,D.mode),M[U].lastCount+=D.length):(M[U]&&(M[U].lastCount=D.length),S[U][F]=b(D.length,D.mode)+4+t.getCharCountIndicator(D.mode,C))}}L=H}for(let V=0;V<L.length;V++)S[L[V]].end=0;return{map:S,table:M}}function E(A,C){let M;const S=t.getBestModeForData(A);if(M=t.from(C,S),M!==t.BYTE&&M.bit<S.bit)throw new Error('"'+A+'" cannot be encoded with mode '+t.toString(M)+`.
105
+ Suggested mode is: `+t.toString(S));switch(M===t.KANJI&&!h.isKanjiModeEnabled()&&(M=t.BYTE),M){case t.NUMERIC:return new s(A);case t.ALPHANUMERIC:return new l(A);case t.KANJI:return new c(A);case t.BYTE:return new o(A)}}e.fromArray=function(C){return C.reduce(function(M,S){return typeof S=="string"?M.push(E(S,null)):S.data&&M.push(E(S.data,S.mode)),M},[])},e.fromString=function(C,M){const S=g(C,h.isKanjiModeEnabled()),L=j(S),V=N(L,M),_=m.find_path(V.map,"start","end"),H=[];for(let T=1;T<_.length-1;T++)H.push(V.table[_[T]].node);return e.fromArray(w(H))},e.rawSplit=function(C){return e.fromArray(g(C,h.isKanjiModeEnabled()))}})(gm)),gm}var Oj;function jX(){if(Oj)return rm;Oj=1;const e=nr(),t=M3(),s=iX(),l=oX(),o=cX(),c=uX(),d=dX(),h=xH(),m=fX(),p=pX(),x=xX(),g=rr(),b=AX();function w(V,_){const H=V.size,T=c.getPositions(_);for(let D=0;D<T.length;D++){const F=T[D][0],P=T[D][1];for(let U=-1;U<=7;U++)if(!(F+U<=-1||H<=F+U))for(let W=-1;W<=7;W++)P+W<=-1||H<=P+W||(U>=0&&U<=6&&(W===0||W===6)||W>=0&&W<=6&&(U===0||U===6)||U>=2&&U<=4&&W>=2&&W<=4?V.set(F+U,P+W,!0,!0):V.set(F+U,P+W,!1,!0))}}function j(V){const _=V.size;for(let H=8;H<_-8;H++){const T=H%2===0;V.set(H,6,T,!0),V.set(6,H,T,!0)}}function N(V,_){const H=o.getPositions(_);for(let T=0;T<H.length;T++){const D=H[T][0],F=H[T][1];for(let P=-2;P<=2;P++)for(let U=-2;U<=2;U++)P===-2||P===2||U===-2||U===2||P===0&&U===0?V.set(D+P,F+U,!0,!0):V.set(D+P,F+U,!1,!0)}}function E(V,_){const H=V.size,T=p.getEncodedBits(_);let D,F,P;for(let U=0;U<18;U++)D=Math.floor(U/3),F=U%3+H-8-3,P=(T>>U&1)===1,V.set(D,F,P,!0),V.set(F,D,P,!0)}function A(V,_,H){const T=V.size,D=x.getEncodedBits(_,H);let F,P;for(F=0;F<15;F++)P=(D>>F&1)===1,F<6?V.set(F,8,P,!0):F<8?V.set(F+1,8,P,!0):V.set(T-15+F,8,P,!0),F<8?V.set(8,T-F-1,P,!0):F<9?V.set(8,15-F-1+1,P,!0):V.set(8,15-F-1,P,!0);V.set(T-8,8,1,!0)}function C(V,_){const H=V.size;let T=-1,D=H-1,F=7,P=0;for(let U=H-1;U>0;U-=2)for(U===6&&U--;;){for(let W=0;W<2;W++)if(!V.isReserved(D,U-W)){let se=!1;P<_.length&&(se=(_[P]>>>F&1)===1),V.set(D,U-W,se),F--,F===-1&&(P++,F=7)}if(D+=T,D<0||H<=D){D-=T,T=-T;break}}}function M(V,_,H){const T=new s;H.forEach(function(W){T.put(W.mode.bit,4),T.put(W.getLength(),g.getCharCountIndicator(W.mode,V)),W.write(T)});const D=e.getSymbolTotalCodewords(V),F=h.getTotalCodewordsCount(V,_),P=(D-F)*8;for(T.getLengthInBits()+4<=P&&T.put(0,4);T.getLengthInBits()%8!==0;)T.putBit(0);const U=(P-T.getLengthInBits())/8;for(let W=0;W<U;W++)T.put(W%2?17:236,8);return S(T,V,_)}function S(V,_,H){const T=e.getSymbolTotalCodewords(_),D=h.getTotalCodewordsCount(_,H),F=T-D,P=h.getBlocksCount(_,H),U=T%P,W=P-U,se=Math.floor(T/P),O=Math.floor(F/P),$=O+1,B=se-O,Q=new m(B);let J=0;const k=new Array(P),Y=new Array(P);let K=0;const q=new Uint8Array(V.buffer);for(let pe=0;pe<P;pe++){const Ee=pe<W?O:$;k[pe]=q.slice(J,J+Ee),Y[pe]=Q.encode(k[pe]),J+=Ee,K=Math.max(K,Ee)}const z=new Uint8Array(T);let I=0,te,fe;for(te=0;te<K;te++)for(fe=0;fe<P;fe++)te<k[fe].length&&(z[I++]=k[fe][te]);for(te=0;te<B;te++)for(fe=0;fe<P;fe++)z[I++]=Y[fe][te];return z}function L(V,_,H,T){let D;if(Array.isArray(V))D=b.fromArray(V);else if(typeof V=="string"){let se=_;if(!se){const O=b.rawSplit(V);se=p.getBestVersionForData(O,H)}D=b.fromString(V,se||40)}else throw new Error("Invalid data");const F=p.getBestVersionForData(D,H);if(!F)throw new Error("The amount of data is too big to be stored in a QR Code");if(!_)_=F;else if(_<F)throw new Error(`
106
+ The chosen QR Code version cannot contain this amount of data.
107
+ Minimum version required to store current data is: `+F+`.
108
+ `);const P=M(_,H,D),U=e.getSymbolSize(_),W=new l(U);return w(W,_),j(W),N(W,_),A(W,H,0),_>=7&&E(W,_),C(W,P),isNaN(T)&&(T=d.getBestMask(W,A.bind(null,W,H))),d.applyMask(T,W),A(W,H,T),{modules:W,version:_,errorCorrectionLevel:H,maskPattern:T,segments:D}}return rm.create=function(_,H){if(typeof _>"u"||_==="")throw new Error("No input text");let T=t.M,D,F;return typeof H<"u"&&(T=t.from(H.errorCorrectionLevel,t.M),D=p.from(H.version),F=d.from(H.maskPattern),H.toSJISFunc&&e.setToSJISFunction(H.toSJISFunc)),L(_,D,T,F)},rm}var jm={},Nm={},zj;function bH(){return zj||(zj=1,(function(e){function t(s){if(typeof s=="number"&&(s=s.toString()),typeof s!="string")throw new Error("Color should be defined as hex string");let l=s.slice().replace("#","").split("");if(l.length<3||l.length===5||l.length>8)throw new Error("Invalid hex color: "+s);(l.length===3||l.length===4)&&(l=Array.prototype.concat.apply([],l.map(function(c){return[c,c]}))),l.length===6&&l.push("F","F");const o=parseInt(l.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+l.slice(0,6).join("")}}e.getOptions=function(l){l||(l={}),l.color||(l.color={});const o=typeof l.margin>"u"||l.margin===null||l.margin<0?4:l.margin,c=l.width&&l.width>=21?l.width:void 0,d=l.scale||4;return{width:c,scale:c?4:d,margin:o,color:{dark:t(l.color.dark||"#000000ff"),light:t(l.color.light||"#ffffffff")},type:l.type,rendererOpts:l.rendererOpts||{}}},e.getScale=function(l,o){return o.width&&o.width>=l+o.margin*2?o.width/(l+o.margin*2):o.scale},e.getImageWidth=function(l,o){const c=e.getScale(l,o);return Math.floor((l+o.margin*2)*c)},e.qrToImageData=function(l,o,c){const d=o.modules.size,h=o.modules.data,m=e.getScale(d,c),p=Math.floor((d+c.margin*2)*m),x=c.margin*m,g=[c.color.light,c.color.dark];for(let b=0;b<p;b++)for(let w=0;w<p;w++){let j=(b*p+w)*4,N=c.color.light;if(b>=x&&w>=x&&b<p-x&&w<p-x){const E=Math.floor((b-x)/m),A=Math.floor((w-x)/m);N=g[h[E*d+A]?1:0]}l[j++]=N.r,l[j++]=N.g,l[j++]=N.b,l[j]=N.a}}})(Nm)),Nm}var qj;function NX(){return qj||(qj=1,(function(e){const t=bH();function s(o,c,d){o.clearRect(0,0,c.width,c.height),c.style||(c.style={}),c.height=d,c.width=d,c.style.height=d+"px",c.style.width=d+"px"}function l(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(c,d,h){let m=h,p=d;typeof m>"u"&&(!d||!d.getContext)&&(m=d,d=void 0),d||(p=l()),m=t.getOptions(m);const x=t.getImageWidth(c.modules.size,m),g=p.getContext("2d"),b=g.createImageData(x,x);return t.qrToImageData(b.data,c,m),s(g,p,x),g.putImageData(b,0,0),p},e.renderToDataURL=function(c,d,h){let m=h;typeof m>"u"&&(!d||!d.getContext)&&(m=d,d=void 0),m||(m={});const p=e.render(c,d,m),x=m.type||"image/png",g=m.rendererOpts||{};return p.toDataURL(x,g.quality)}})(jm)),jm}var Em={},Ij;function EX(){if(Ij)return Em;Ij=1;const e=bH();function t(o,c){const d=o.a/255,h=c+'="'+o.hex+'"';return d<1?h+" "+c+'-opacity="'+d.toFixed(2).slice(1)+'"':h}function s(o,c,d){let h=o+c;return typeof d<"u"&&(h+=" "+d),h}function l(o,c,d){let h="",m=0,p=!1,x=0;for(let g=0;g<o.length;g++){const b=Math.floor(g%c),w=Math.floor(g/c);!b&&!p&&(p=!0),o[g]?(x++,g>0&&b>0&&o[g-1]||(h+=p?s("M",b+d,.5+w+d):s("m",m,0),m=0,p=!1),b+1<c&&o[g+1]||(h+=s("h",x),x=0)):m++}return h}return Em.render=function(c,d,h){const m=e.getOptions(d),p=c.modules.size,x=c.modules.data,g=p+m.margin*2,b=m.color.light.a?"<path "+t(m.color.light,"fill")+' d="M0 0h'+g+"v"+g+'H0z"/>':"",w="<path "+t(m.color.dark,"stroke")+' d="'+l(x,p,m.margin)+'"/>',j='viewBox="0 0 '+g+" "+g+'"',E='<svg xmlns="http://www.w3.org/2000/svg" '+(m.width?'width="'+m.width+'" height="'+m.width+'" ':"")+j+' shape-rendering="crispEdges">'+b+w+`</svg>
109
+ `;return typeof h=="function"&&h(null,E),E},Em}var $j;function MX(){if($j)return Br;$j=1;const e=lX(),t=jX(),s=NX(),l=EX();function o(c,d,h,m,p){const x=[].slice.call(arguments,1),g=x.length,b=typeof x[g-1]=="function";if(!b&&!e())throw new Error("Callback required as last argument");if(b){if(g<2)throw new Error("Too few arguments provided");g===2?(p=h,h=d,d=m=void 0):g===3&&(d.getContext&&typeof p>"u"?(p=m,m=void 0):(p=m,m=h,h=d,d=void 0))}else{if(g<1)throw new Error("Too few arguments provided");return g===1?(h=d,d=m=void 0):g===2&&!d.getContext&&(m=h,h=d,d=void 0),new Promise(function(w,j){try{const N=t.create(h,m);w(c(N,d,m))}catch(N){j(N)}})}try{const w=t.create(h,m);p(null,c(w,d,m))}catch(w){p(w)}}return Br.create=t.create,Br.toCanvas=o.bind(null,s.render),Br.toDataURL=o.bind(null,s.renderToDataURL),Br.toString=o.bind(null,function(c,d,h){return l.render(c,h)}),Br}var SX=MX();const CX=Jj(SX),El=[{code:"1",flag:"🇺🇸",name:"US"},{code:"1",flag:"🇨🇦",name:"CA"},{code:"44",flag:"🇬🇧",name:"GB"},{code:"57",flag:"🇨🇴",name:"CO"},{code:"52",flag:"🇲🇽",name:"MX"},{code:"54",flag:"🇦🇷",name:"AR"},{code:"55",flag:"🇧🇷",name:"BR"},{code:"56",flag:"🇨🇱",name:"CL"},{code:"51",flag:"🇵🇪",name:"PE"},{code:"58",flag:"🇻🇪",name:"VE"},{code:"34",flag:"🇪🇸",name:"ES"},{code:"33",flag:"🇫🇷",name:"FR"},{code:"49",flag:"🇩🇪",name:"DE"},{code:"39",flag:"🇮🇹",name:"IT"},{code:"31",flag:"🇳🇱",name:"NL"},{code:"351",flag:"🇵🇹",name:"PT"},{code:"91",flag:"🇮🇳",name:"IN"},{code:"86",flag:"🇨🇳",name:"CN"},{code:"81",flag:"🇯🇵",name:"JP"},{code:"82",flag:"🇰🇷",name:"KR"},{code:"61",flag:"🇦🇺",name:"AU"},{code:"64",flag:"🇳🇿",name:"NZ"},{code:"27",flag:"🇿🇦",name:"ZA"},{code:"234",flag:"🇳🇬",name:"NG"},{code:"20",flag:"🇪🇬",name:"EG"},{code:"971",flag:"🇦🇪",name:"AE"},{code:"966",flag:"🇸🇦",name:"SA"},{code:"972",flag:"🇮🇱",name:"IL"},{code:"7",flag:"🇷🇺",name:"RU"},{code:"380",flag:"🇺🇦",name:"UA"}];function Mm(e){return e?e.startsWith("+")?e:`+${e}`:"WhatsApp"}function ZX(e){return e==="connected"?"Connected":e==="qr_pending"?"Waiting for scan":"Disconnected"}function HX(e){return e==="connected"?"active":e==="qr_pending"?"pending":"disconnected"}function yH({people:e,value:t,onChange:s,placeholder:l="Link to contact or teammate…"}){const[o,c]=r.useState(!1),[d,h]=r.useState(""),m=r.useRef(null),p=e.find(w=>w.kind==="contact"&&w.id===t.contactId||w.kind==="teammate"&&w.id===t.teamMemberId),x=r.useMemo(()=>d?e.filter(w=>w.name.toLowerCase().includes(d.toLowerCase())||w.subtitle.toLowerCase().includes(d.toLowerCase())):e,[e,d]);r.useEffect(()=>{if(!o){h("");return}function w(j){m.current&&!m.current.contains(j.target)&&c(!1)}return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[o]);function g(w){s(w.kind==="contact"?{contactId:w.id,teamMemberId:null}:{contactId:null,teamMemberId:w.id}),c(!1)}function b(w){w.stopPropagation(),s({contactId:null,teamMemberId:null})}return a.jsxs("div",{ref:m,className:"relative",children:[a.jsx("button",{type:"button",onClick:()=>c(w=>!w),className:"w-full flex items-center gap-2 px-3 py-2 bg-white/5 border border-white/10 rounded text-sm hover:border-white/20 transition-colors text-left",children:p?a.jsxs(a.Fragment,{children:[p.kind==="contact"?a.jsx(K0,{size:14,className:"text-blue-400 shrink-0"}):a.jsx(lo,{size:14,className:"text-purple-400 shrink-0"}),a.jsx("span",{className:"text-white truncate",children:p.name}),a.jsx("span",{className:"ml-auto text-[10px] text-neutral-500 shrink-0",children:p.kind==="contact"?"CRM":"Team"}),a.jsx("button",{onClick:b,className:"text-neutral-500 hover:text-white shrink-0 ml-1",children:a.jsx(Yt,{size:12})})]}):a.jsxs(a.Fragment,{children:[a.jsx(K0,{size:14,className:"text-neutral-500 shrink-0"}),a.jsx("span",{className:"text-neutral-500 truncate",children:l}),a.jsx(xa,{size:10,className:"text-neutral-600 ml-auto shrink-0"})]})}),o&&a.jsxs("div",{className:"absolute z-50 top-full mt-1 left-0 right-0 bg-neutral-900 border border-white/10 rounded-lg shadow-xl overflow-hidden",children:[a.jsx("div",{className:"p-2 border-b border-white/[0.06]",children:a.jsx("input",{autoFocus:!0,value:d,onChange:w=>h(w.target.value),placeholder:"Search…",className:"w-full bg-white/5 rounded px-2 py-1 text-xs text-white placeholder:text-neutral-500 focus:outline-none"})}),a.jsxs("div",{className:"max-h-52 overflow-y-auto",children:[x.length===0&&a.jsx("p",{className:"px-3 py-3 text-xs text-neutral-500",children:"No contacts or teammates found"}),x.map(w=>a.jsxs("button",{type:"button",onClick:()=>g(w),className:"w-full flex items-center gap-2 px-3 py-2.5 text-sm text-neutral-300 hover:bg-white/5 transition-colors text-left",children:[w.kind==="contact"?a.jsx(K0,{size:14,className:"text-blue-400 shrink-0"}):a.jsx(lo,{size:14,className:"text-purple-400 shrink-0"}),a.jsx("span",{className:"truncate",children:w.name}),w.subtitle&&a.jsx("span",{className:"ml-auto text-xs text-neutral-500 truncate max-w-[120px]",children:w.subtitle})]},`${w.kind}-${w.id}`))]})]})]})}function _X({countryCode:e,phone:t,onCountryChange:s,onPhoneChange:l,linkValue:o,onLinkChange:c,people:d,onSubmit:h,onCancel:m,submitting:p}){const[x,g]=r.useState(!1),[b,w]=r.useState(""),j=r.useRef(null),N=El.find(A=>A.code===e)??El[0],E=b?El.filter(A=>A.name.toLowerCase().includes(b.toLowerCase())||A.code.includes(b)):El;return r.useEffect(()=>{if(!x){w("");return}function A(C){j.current&&!j.current.contains(C.target)&&g(!1)}return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[x]),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[a.jsxs("div",{className:"flex gap-2 sm:flex-1 min-w-0",children:[a.jsxs("div",{ref:j,className:"relative",children:[a.jsxs("button",{type:"button",onClick:()=>g(A=>!A),className:"flex items-center gap-1.5 h-full px-3 bg-white/5 border border-white/10 rounded text-sm text-white hover:border-white/20 transition-colors whitespace-nowrap",children:[a.jsx("span",{children:N.flag}),a.jsxs("span",{className:"text-neutral-400",children:["+",N.code]}),a.jsx(xa,{size:10,className:"text-neutral-500"})]}),x&&a.jsxs("div",{className:"absolute z-50 top-full mt-1 left-0 w-52 bg-neutral-900 border border-white/10 rounded-lg shadow-xl overflow-hidden",children:[a.jsx("div",{className:"p-2 border-b border-white/[0.06]",children:a.jsx("input",{autoFocus:!0,value:b,onChange:A=>w(A.target.value),placeholder:"Search…",className:"w-full bg-white/5 rounded px-2 py-1 text-xs text-white placeholder:text-neutral-500 focus:outline-none"})}),a.jsxs("div",{className:"max-h-48 overflow-y-auto",children:[E.map(A=>a.jsxs("button",{type:"button",onClick:()=>{s(A.code),g(!1)},className:"w-full flex items-center gap-2 px-3 py-2 text-sm text-neutral-300 hover:bg-white/5 transition-colors text-left",children:[a.jsx("span",{children:A.flag}),a.jsx("span",{className:"font-medium",children:A.name}),a.jsxs("span",{className:"ml-auto text-neutral-500",children:["+",A.code]})]},`${A.name}-${A.code}`)),E.length===0&&a.jsx("p",{className:"px-3 py-3 text-xs text-neutral-500",children:"No results"})]})]})]}),a.jsx("input",{type:"tel",value:t,onChange:A=>l(A.target.value.replace(/\D/g,"")),onKeyDown:A=>A.key==="Enter"&&h(),placeholder:"Phone number",className:"flex-1 min-w-0 bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),d.length>0&&a.jsx("div",{className:"sm:flex-1 min-w-0",children:a.jsx(yH,{people:d,value:o,onChange:c})}),a.jsxs("div",{className:"flex gap-2 sm:contents",children:[a.jsx("button",{onClick:h,disabled:p||!t.trim(),className:"flex-1 sm:flex-none px-3 py-2 text-xs font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:p?"Adding…":"Add"}),a.jsx("button",{onClick:m,className:"text-neutral-500 hover:text-white transition-colors px-2",children:a.jsx(Yt,{size:14})})]})]})}function wH(){const{data:e,loading:t,refetch:s}=ye("/api/whatsapp/connections"),l=e==null?void 0:e.connections,{data:o,refetch:c}=ye("/api/whatsapp/status"),d=(o==null?void 0:o.allowedChats)??[],{data:h}=ye("/api/contacts"),{data:m}=ye("/api/team-members"),p=r.useMemo(()=>[...(Array.isArray(h)?h:[]).map(K=>({id:K.id,name:K.name,subtitle:K.email??K.phone??"",kind:"contact"})),...(Array.isArray(m)?m:[]).map(K=>({id:K.id,name:K.name,subtitle:K.role??K.email??"",kind:"teammate"}))],[h,m]),[x,g]=r.useState(!1),[b,w]=r.useState(!1),[j,N]=r.useState(""),[E,A]=r.useState("1"),[C,M]=r.useState({contactId:null,teamMemberId:null}),[S,L]=r.useState(!1),[V,_]=r.useState(null),[H,T]=r.useState(!1),[D,F]=r.useState(null),[P,U]=r.useState(!1),W=r.useRef(null),se=(l==null?void 0:l.filter(K=>K.connectionId))??[],O=!t&&se.length===0,$=se.find(K=>K.status==="connected"||K.status==="active");r.useEffect(()=>{if(!($!=null&&$.phoneNumber))return;const K=$.phoneNumber.replace(/\D/g,""),q=El.slice().sort((z,I)=>I.code.length-z.code.length).find(z=>K.startsWith(z.code));q&&A(q.code)},[$==null?void 0:$.phoneNumber]),r.useEffect(()=>{$&&(F(null),U(!1),W.current&&clearTimeout(W.current))},[$]),Ao((K,q)=>{if(K==="whatsapp:qr"){const{qr:z}=q;CX.toDataURL(z,{width:256,margin:2}).then(I=>{F(I),U(!1),W.current&&clearTimeout(W.current),W.current=setTimeout(()=>F(null),6e4)}).catch(()=>{})}else K==="whatsapp:connected"?(F(null),U(!1),W.current&&clearTimeout(W.current),s()):K==="whatsapp:disconnected"&&s()});const B=async()=>{g(!0),U(!0),F(null);try{await me("/api/whatsapp/connect",{method:"POST"}),s()}catch{ue("error","Couldn't start WhatsApp connection"),U(!1)}finally{g(!1)}},Q=async()=>{w(!0);try{await me("/api/whatsapp/disconnect",{method:"POST"}),ue("success","WhatsApp disconnected"),s()}catch{ue("error","Couldn't disconnect WhatsApp")}finally{w(!1)}},J=async()=>{if(!j.trim())return;const K=`${E}${j.trim()}@c.us`;L(!0);try{await me("/api/whatsapp/chats",{method:"POST",body:JSON.stringify({chatId:K,contactId:C.contactId,teamMemberId:C.teamMemberId})}),ue("success","Chat added"),N(""),M({contactId:null,teamMemberId:null}),s(),c()}catch{ue("error","Couldn't add chat")}finally{L(!1)}},k=async K=>{try{await me("/api/whatsapp/chats",{method:"DELETE",body:JSON.stringify({chatId:K})}),ue("success","Chat removed"),s(),c()}catch{ue("error","Couldn't remove chat")}},Y=async(K,q,z)=>{T(!0);try{await me("/api/whatsapp/chats",{method:"PATCH",body:JSON.stringify({chatId:K,contactId:q,teamMemberId:z})}),ue("success","Link saved"),_(null),c()}catch{ue("error","Couldn't save link")}finally{T(!1)}};return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Messaging",subtitle:"WhatsApp and messaging channel connections",action:$?a.jsxs("button",{onClick:Q,disabled:b,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-critical/10 border border-critical/30 text-critical rounded-md hover:bg-critical/20 disabled:opacity-50 transition-colors",children:[b?a.jsx(it,{size:14,className:"animate-spin"}):a.jsx(i9,{size:14}),"Disconnect"]}):a.jsxs("button",{onClick:B,disabled:x||P,className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:[x||P?a.jsx(it,{size:14,className:"animate-spin"}):a.jsx(o9,{size:14}),"Connect WhatsApp"]})}),a.jsx(la,{children:(P||D)&&a.jsx(He.div,{initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},className:"mb-6 border border-white/[0.08] rounded-lg p-6 flex flex-col items-center gap-4",children:D?a.jsxs(a.Fragment,{children:[a.jsx("p",{className:"text-sm font-medium",children:"Scan with WhatsApp"}),a.jsx("img",{src:D,alt:"WhatsApp QR code",className:"rounded-lg w-48 h-48"}),a.jsx("p",{className:"text-xs text-neutral-500",children:"Open WhatsApp → Settings → Linked Devices → Link a Device"})]}):a.jsxs(a.Fragment,{children:[a.jsx(it,{size:32,className:"animate-spin text-neutral-400"}),a.jsx("p",{className:"text-sm text-neutral-400",children:"Generating QR code…"})]})})}),t?a.jsx(We,{count:3}):O?a.jsx(dn,{icon:Eu,title:"No messaging channels connected",description:"Connect WhatsApp to let your agents communicate through messaging apps.",capabilities:[{icon:o9,label:"QR pairing",description:"Scan to connect"},{icon:Eu,label:"Chat filtering",description:"Control which chats agents can access"},{icon:i9,label:"Easy management",description:"Connect and disconnect anytime"}],action:{label:"Connect WhatsApp",onClick:B}}):a.jsxs("div",{className:"space-y-6",children:[a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:se.map((K,q)=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:`w-10 h-10 rounded-full flex items-center justify-center ${K.status==="connected"?"bg-green-500/10":"bg-white/5"}`,children:a.jsx(Eu,{size:20,className:K.status==="connected"?"text-green-400":"text-neutral-500"})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium",children:Mm(K.phoneNumber)||K.label||"WhatsApp"}),a.jsx("p",{className:"text-xs text-neutral-500",children:ZX(K.status)})]})]}),a.jsx(ft,{status:HX(K.status)})]},K.connectionId??q))}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Allowed chats"}),d.length>0&&a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08] mb-3",children:d.map(K=>{const q=p.find(I=>I.kind==="contact"&&I.id===K.contact_id||I.kind==="teammate"&&I.id===K.team_member_id),z=V===K.chat_id;return a.jsxs("div",{className:"px-4 py-3",children:[a.jsxs("div",{className:"flex items-center justify-between gap-4",children:[a.jsx("div",{className:"min-w-0",children:q?a.jsxs("div",{className:"flex items-center gap-1.5",children:[q.kind==="contact"?a.jsx(K0,{size:15,className:"text-blue-400 shrink-0"}):a.jsx(lo,{size:15,className:"text-purple-400 shrink-0"}),a.jsx("p",{className:"text-base font-semibold truncate",children:q.name})]}):a.jsx("p",{className:"text-sm font-medium truncate",children:K.chat_name||Mm(K.chat_id.replace("@c.us","").replace("@g.us",""))})}),a.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[q&&a.jsxs("div",{className:"text-right hidden sm:block",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:Mm(K.chat_id.replace("@c.us","").replace("@g.us",""))}),a.jsx("p",{className:"text-[10px] text-neutral-600",children:K.chat_id})]}),p.length>0&&a.jsx("button",{onClick:()=>_(z?null:K.chat_id),className:"text-neutral-500 hover:text-white transition-colors p-1",title:q?"Edit link":"Link to contact or teammate",children:a.jsx(so,{size:13})}),a.jsx("button",{onClick:()=>k(K.chat_id),className:"text-neutral-500 hover:text-critical transition-colors p-1",children:a.jsx(Yt,{size:14})})]})]}),a.jsx(la,{children:z&&a.jsx(He.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:a.jsx(VX,{chat:K,people:p,onSave:(I,te)=>Y(K.chat_id,I,te),onCancel:()=>_(null),saving:H})})})]},K.id)})}),a.jsx("div",{className:"mb-3",children:a.jsx(_X,{countryCode:E,phone:j,onCountryChange:A,onPhoneChange:N,linkValue:C,onLinkChange:M,people:p,onSubmit:J,onCancel:()=>{N(""),M({contactId:null,teamMemberId:null})},submitting:S})}),a.jsx("p",{className:"text-xs text-neutral-500",children:"Agents only respond to allowed numbers. Leave empty to allow all chats."})]})]})]})}function VX({chat:e,people:t,onSave:s,onCancel:l,saving:o}){const[c,d]=r.useState({contactId:e.contact_id,teamMemberId:e.team_member_id});return a.jsxs("div",{className:"flex gap-2 mt-2 pt-2 border-t border-white/[0.06]",children:[a.jsx("div",{className:"flex-1",children:a.jsx(yH,{people:t,value:c,onChange:d})}),a.jsx("button",{onClick:()=>s(c.contactId,c.teamMemberId),disabled:o,className:"px-3 py-2 text-xs font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors whitespace-nowrap",children:o?"Saving…":"Save"}),a.jsx("button",{onClick:l,className:"text-neutral-500 hover:text-white transition-colors px-2",children:a.jsx(Yt,{size:14})})]})}const TX=[{slug:"agents",label:"Agents"},{slug:"peers",label:"Peers"},{slug:"connections",label:"Connections"},{slug:"messaging",label:"Messaging"}];function LX(){return bs("agents"),a.jsx(ys,{tabs:TX,pageId:"people",children:e=>a.jsxs("div",{className:"flex-1 min-h-0 overflow-auto",children:[e==="agents"&&a.jsx(fH,{}),e==="peers"&&a.jsx(pH,{}),e==="connections"&&a.jsx(uH,{}),e==="messaging"&&a.jsx(wH,{})]})})}const kX=[{slug:"overview",label:"Overview"},{slug:"activity",label:"Activity"},{slug:"approvals",label:"Approvals"}];function RX(){return bs("overview"),a.jsx(ys,{tabs:kX,pageId:"intelligence",children:e=>a.jsxs("div",{className:"flex-1 min-h-0 overflow-auto",children:[e==="overview"&&a.jsx(IC,{}),e==="activity"&&a.jsx(GC,{}),e==="approvals"&&a.jsx(PC,{})]})})}const Bj={low:"bg-neutral-500/15 text-neutral-400",medium:"bg-blue-500/15 text-blue-400",high:"bg-warning/15 text-warning",critical:"bg-critical/15 text-critical"},Pj=["#3b82f6","#8b5cf6","#ec4899","#f59e0b","#10b981","#06b6d4","#ef4444","#84cc16","#f97316"],DX=[{status:"active",label:"Active",defaultOpen:!0},{status:"paused",label:"Paused",defaultOpen:!1},{status:"completed",label:"Completed",defaultOpen:!1},{status:"archived",label:"Archived",defaultOpen:!1}];function AH(){const{data:e,loading:t,refetch:s}=ye("/api/goals"),[l,o]=r.useState(!1),[c,d]=r.useState(null),[h,m]=r.useState(null),[p,x]=r.useState(!1),[g,b]=r.useState({active:!0,paused:!1,completed:!1,archived:!1}),w=r.useMemo(()=>{var C;if(!e)return{};const A={};for(const M of e)(A[C=M.status]??(A[C]=[])).push(M);return A},[e]),j=async()=>{if(h){x(!0);try{await me(`/api/goals/${h.id}`,{method:"DELETE"}),ue("success","Goal deleted"),s()}catch{ue("error","Couldn't delete goal")}finally{x(!1),m(null)}}},N=A=>{b(C=>({...C,[A]:!C[A]}))},E=!t&&(!e||e.length===0);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Goals",subtitle:"Track objectives and measure progress",action:a.jsxs("button",{onClick:()=>{d(null),o(!0)},className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Zt,{size:14})," New goal"]})}),t?a.jsx(We,{count:4}):E?a.jsx(dn,{icon:u9,title:"No goals yet",description:"Set goals to track your progress toward business objectives.",capabilities:[{icon:u9,label:"Objectives",description:"Define what you want to achieve"},{icon:of,label:"Progress tracking",description:"Monitor current vs target"},{icon:uI,label:"Priority levels",description:"Focus on what matters most"},{icon:Jq,label:"Deadlines",description:"Stay on track with due dates"}],action:{label:"Create your first goal",onClick:()=>{d(null),o(!0)}}}):a.jsx("div",{className:"space-y-4",children:DX.map(A=>{const C=w[A.status]||[];if(C.length===0)return null;const M=g[A.status];return a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>N(A.status),className:"flex items-center gap-2 mb-2 text-sm text-neutral-400 hover:text-white transition-colors",children:[M?a.jsx(xa,{size:12}):a.jsx(hs,{size:12}),a.jsx("span",{className:"font-medium capitalize",children:A.label}),a.jsx("span",{className:"text-xs text-neutral-600",children:C.length})]}),a.jsx(la,{children:M&&a.jsx(He.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"space-y-2 overflow-hidden",children:C.map(S=>a.jsx(FX,{goal:S,onEdit:()=>{d(S),o(!0)},onDelete:()=>m(S)},S.id))})})]},A.status)})}),l&&a.jsx(OX,{goal:c,onClose:()=>{o(!1),d(null)},onSuccess:()=>{s(),o(!1),d(null)}}),a.jsx(w0,{open:!!h,onClose:()=>m(null),onConfirm:j,title:"Delete goal",message:`Delete "${h==null?void 0:h.name}"? This can't be undone.`,confirmLabel:"Delete",loading:p})]})}function FX({goal:e,onEdit:t,onDelete:s}){const l=e.target_value&&e.current_value!=null?Math.min(100,Math.round(e.current_value/e.target_value*100)):null;return a.jsxs(He.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4",children:[a.jsxs("div",{className:"flex items-start justify-between mb-2",children:[a.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.color&&a.jsx("div",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:e.color}}),a.jsx("h4",{className:"text-sm font-medium truncate",children:e.name}),a.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded capitalize ${Bj[e.priority]||Bj.medium}`,children:e.priority})]}),a.jsxs("div",{className:"flex items-center gap-1.5 shrink-0 ml-2",children:[a.jsx("button",{onClick:t,className:"text-neutral-500 hover:text-white transition-colors",children:a.jsx(yo,{size:13})}),a.jsx("button",{onClick:s,className:"text-neutral-500 hover:text-critical transition-colors",children:a.jsx(Kt,{size:13})})]})]}),e.description&&a.jsx("p",{className:"text-xs text-neutral-400 mb-3",children:e.description}),l!==null&&a.jsxs("div",{className:"mb-2",children:[a.jsxs("div",{className:"flex justify-between text-[10px] text-neutral-500 mb-1",children:[a.jsx("span",{children:e.target_metric||"Progress"}),a.jsxs("span",{children:[e.current_value," / ",e.target_value," ",e.unit||"",a.jsxs("span",{className:"ml-1.5 text-neutral-400",children:[l,"%"]})]})]}),a.jsx("div",{className:"h-1.5 bg-white/[0.06] rounded-full overflow-hidden",children:a.jsx(He.div,{initial:{width:0},animate:{width:`${l}%`},transition:{duration:.6,ease:"easeOut"},className:"h-full rounded-full",style:{backgroundColor:e.color||"#3b82f6"}})})]}),e.due_date&&a.jsxs("p",{className:"text-[10px] text-neutral-500",children:["Due ",new Date(e.due_date).toLocaleDateString()]})]})}function OX({goal:e,onClose:t,onSuccess:s}){var D,F,P;const[l,o]=r.useState((e==null?void 0:e.name)||""),[c,d]=r.useState((e==null?void 0:e.description)||""),[h,m]=r.useState((e==null?void 0:e.priority)||"medium"),[p,x]=r.useState((e==null?void 0:e.status)||"active"),[g,b]=r.useState((e==null?void 0:e.target_metric)||""),[w,j]=r.useState(((D=e==null?void 0:e.target_value)==null?void 0:D.toString())||""),[N,E]=r.useState(((F=e==null?void 0:e.current_value)==null?void 0:F.toString())||"0"),[A,C]=r.useState((e==null?void 0:e.unit)||""),[M,S]=r.useState(((P=e==null?void 0:e.due_date)==null?void 0:P.split("T")[0])||""),[L,V]=r.useState((e==null?void 0:e.color)||Pj[0]),[_,H]=r.useState(!1),T=async U=>{if(U.preventDefault(),!!l.trim()){H(!0);try{const W={name:l.trim(),description:c.trim()||null,priority:h,status:p,target_metric:g.trim()||null,target_value:w?Number(w):null,current_value:N?Number(N):null,unit:A.trim()||null,due_date:M||null,color:L};e?(await me(`/api/goals/${e.id}`,{method:"PUT",body:JSON.stringify(W)}),ue("success","Goal updated")):(await me("/api/goals",{method:"POST",body:JSON.stringify(W)}),ue("success","Goal created")),s()}catch{ue("error",e?"Couldn't update goal":"Couldn't create goal")}finally{H(!1)}}};return a.jsx(ba,{open:!0,onClose:t,title:e?"Edit goal":"New goal",maxWidth:"max-w-md",children:a.jsxs("form",{onSubmit:T,className:"space-y-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),a.jsx("input",{value:l,onChange:U=>o(U.target.value),placeholder:"Reach 100 customers",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20",autoFocus:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description"}),a.jsx("textarea",{value:c,onChange:U=>d(U.target.value),placeholder:"What does achieving this goal look like?",rows:2,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none"})]}),a.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Metric"}),a.jsx("input",{value:g,onChange:U=>b(U.target.value),placeholder:"Revenue",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Target"}),a.jsx("input",{type:"number",value:w,onChange:U=>j(U.target.value),placeholder:"100",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Unit"}),a.jsx("input",{value:A,onChange:U=>C(U.target.value),placeholder:"users",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),e&&a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Current value"}),a.jsx("input",{type:"number",value:N,onChange:U=>E(U.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Priority"}),a.jsxs("select",{value:h,onChange:U=>m(U.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"low",children:"Low"}),a.jsx("option",{value:"medium",children:"Medium"}),a.jsx("option",{value:"high",children:"High"}),a.jsx("option",{value:"critical",children:"Critical"})]})]}),e&&a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Status"}),a.jsxs("select",{value:p,onChange:U=>x(U.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"active",children:"Active"}),a.jsx("option",{value:"paused",children:"Paused"}),a.jsx("option",{value:"completed",children:"Completed"}),a.jsx("option",{value:"archived",children:"Archived"})]})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Due date"}),a.jsx("input",{type:"date",value:M,onChange:U=>S(U.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Color"}),a.jsx("div",{className:"flex gap-2",children:Pj.map(U=>a.jsx("button",{type:"button",onClick:()=>V(U),className:`w-6 h-6 rounded-full transition-all ${L===U?"ring-2 ring-white ring-offset-2 ring-offset-black scale-110":"hover:scale-110"}`,style:{backgroundColor:U}},U))})]}),a.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[a.jsx("button",{type:"button",onClick:t,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:_||!l.trim(),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:_?e?"Updating...":"Creating...":e?"Update goal":"Create goal"})]})]})})}const jH=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function NH(){const{data:e,loading:t,refetch:s}=ye("/api/revenue"),[l,o]=r.useState(!1),[c,d]=r.useState(null),[h,m]=r.useState(null),[p,x]=r.useState(!1),g=r.useMemo(()=>{if(!e||e.length===0)return 0;const N=new Date;return e.filter(A=>A.month===N.getMonth()+1&&A.year===N.getFullYear()).reduce((A,C)=>A+C.amount_cents,0)},[e]),b=r.useMemo(()=>e?[...e].sort((N,E)=>N.year!==E.year?E.year-N.year:E.month-N.month):[],[e]),w=async()=>{if(h){x(!0);try{await me(`/api/revenue/${h.id}`,{method:"DELETE"}),ue("success","Entry deleted"),s()}catch{ue("error","Couldn't delete entry")}finally{x(!1),m(null)}}},j=!t&&(!e||e.length===0);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Revenue",subtitle:"Track monthly revenue and growth",action:a.jsxs("div",{className:"flex items-center gap-3",children:[g>0&&a.jsxs("div",{className:"flex items-center gap-1.5 text-success",children:[a.jsx(of,{size:14,weight:"bold"}),a.jsxs("span",{className:"text-sm font-semibold",children:["$",(g/100).toLocaleString()," MRR"]})]}),a.jsxs("button",{onClick:()=>{d(null),o(!0)},className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Zt,{size:14})," Add entry"]})]})}),a.jsx(la,{children:l&&a.jsx(zX,{entry:c,onClose:()=>{o(!1),d(null)},onSuccess:()=>{s(),o(!1),d(null)}})}),t?a.jsx(We,{count:4}):j?a.jsx(dn,{icon:GM,title:"No revenue entries yet",description:"Start tracking monthly revenue to measure growth over time.",capabilities:[{icon:tI,label:"Monthly tracking",description:"Record revenue each month"},{icon:of,label:"MRR calculation",description:"See current monthly recurring revenue"},{icon:HI,label:"Revenue sources",description:"Tag where revenue comes from"},{icon:yI,label:"Notes",description:"Add context to each entry"}],action:{label:"Add your first entry",onClick:()=>{d(null),o(!0)}}}):a.jsxs("div",{className:"border border-white/[0.08] rounded-lg overflow-hidden",children:[a.jsxs("div",{className:"grid grid-cols-[1fr_1fr_1fr_1fr_auto] gap-4 px-4 py-2 text-[10px] uppercase tracking-wider text-neutral-500 border-b border-white/[0.08] bg-white/[0.02]",children:[a.jsx("span",{children:"Period"}),a.jsx("span",{children:"Source"}),a.jsx("span",{className:"text-right",children:"Amount"}),a.jsx("span",{children:"Notes"}),a.jsx("span",{className:"w-16"})]}),a.jsx("div",{className:"divide-y divide-white/[0.06]",children:b.map(N=>a.jsxs(He.div,{layout:!0,initial:{opacity:0},animate:{opacity:1},className:"grid grid-cols-[1fr_1fr_1fr_1fr_auto] gap-4 px-4 py-3 items-center hover:bg-white/[0.02] transition-colors group",children:[a.jsxs("span",{className:"text-sm font-medium",children:[jH[N.month-1]," ",N.year]}),a.jsx("span",{className:"text-sm text-neutral-400 truncate",children:N.source||"No source"}),a.jsxs("span",{className:"text-sm font-semibold text-right text-success",children:["$",(N.amount_cents/100).toLocaleString(void 0,{minimumFractionDigits:2})]}),a.jsx("span",{className:"text-xs text-neutral-500 truncate",children:N.notes||""}),a.jsxs("div",{className:"flex items-center gap-1.5 w-16 justify-end opacity-0 group-hover:opacity-100 transition-opacity",children:[a.jsx("button",{onClick:()=>{d(N),o(!0)},className:"text-neutral-500 hover:text-white transition-colors",children:a.jsx(yo,{size:13})}),a.jsx("button",{onClick:()=>m(N),className:"text-neutral-500 hover:text-critical transition-colors",children:a.jsx(Kt,{size:13})})]})]},N.id))})]}),a.jsx(w0,{open:!!h,onClose:()=>m(null),onConfirm:w,title:"Delete entry",message:"Delete this revenue entry? This can't be undone.",confirmLabel:"Delete",loading:p})]})}function zX({entry:e,onClose:t,onSuccess:s}){var A,C;const l=new Date,[o,c]=r.useState(e?(e.amount_cents/100).toString():""),[d,h]=r.useState((e==null?void 0:e.source)||""),[m,p]=r.useState(((A=e==null?void 0:e.month)==null?void 0:A.toString())||(l.getMonth()+1).toString()),[x,g]=r.useState(((C=e==null?void 0:e.year)==null?void 0:C.toString())||l.getFullYear().toString()),[b,w]=r.useState((e==null?void 0:e.notes)||""),[j,N]=r.useState(!1),E=async M=>{if(M.preventDefault(),!!o){N(!0);try{const S={amount_cents:Math.round(Number(o)*100),month:Number(m),year:Number(x),source:d.trim()||null,notes:b.trim()||null};e?(await me(`/api/revenue/${e.id}`,{method:"PUT",body:JSON.stringify(S)}),ue("success","Entry updated")):(await me("/api/revenue",{method:"POST",body:JSON.stringify(S)}),ue("success","Entry added")),s()}catch{ue("error",e?"Couldn't update entry":"Couldn't add entry")}finally{N(!1)}}};return a.jsx(He.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mb-4 overflow-hidden",children:a.jsxs("form",{onSubmit:E,className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4 space-y-3",children:[a.jsxs("div",{className:"flex items-center justify-between mb-1",children:[a.jsx("span",{className:"text-sm font-medium",children:e?"Edit entry":"New entry"}),a.jsx("button",{type:"button",onClick:t,className:"text-neutral-500 hover:text-white transition-colors",children:a.jsx(Yt,{size:14})})]}),a.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Amount ($)"}),a.jsx("input",{type:"number",step:"0.01",value:o,onChange:M=>c(M.target.value),placeholder:"500.00",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20",autoFocus:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Source"}),a.jsx("input",{value:d,onChange:M=>h(M.target.value),placeholder:"Subscription",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Month"}),a.jsx("select",{value:m,onChange:M=>p(M.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:jH.map((M,S)=>a.jsx("option",{value:S+1,children:M},S))})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Year"}),a.jsx("input",{type:"number",value:x,onChange:M=>g(M.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20"})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Notes"}),a.jsx("textarea",{value:b,onChange:M=>w(M.target.value),placeholder:"Optional notes",rows:2,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none"})]}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx("button",{type:"button",onClick:t,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:j||!o,className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:j?"Saving...":e?"Update":"Add entry"})]})]})})}const Uj={delivered:{bg:"bg-success/10",text:"text-success",label:"Delivered"},approved:{bg:"bg-info/10",text:"text-info",label:"Approved"},pending_review:{bg:"bg-warning/10",text:"text-warning",label:"Pending"},rejected:{bg:"bg-critical/10",text:"text-critical",label:"Rejected"}},qX={x:TC,email:r9,gmail:r9,dm:J0},Gj=50;function EH(e){return e?/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"):new Date(NaN)}function IX(e){const t=Date.now()-EH(e).getTime();if(t<0)return"just now";const s=Math.floor(t/1e3);if(s<30)return"just now";if(s<60)return`${s}s ago`;const l=Math.floor(s/60);if(l<60)return`${l}m ago`;const o=Math.floor(l/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function $X(e){if(e==="all")return null;const t=new Date;return e==="today"?(t.setHours(0,0,0,0),t):e==="7d"?(t.setDate(t.getDate()-7),t):(t.setDate(t.getDate()-30),t)}function BX({provider:e}){const t=qX[e??""]??e3,s=e==="x"?"X":e==="gmail"?"Email":e??"Post";return a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[11px] bg-white/5 text-neutral-400",children:[a.jsx(t,{size:12,weight:"bold"}),s]})}function PX({ok:e,error:t}){return e===!0?a.jsx(y0,{size:16,weight:"fill",className:"text-success shrink-0"}):e===!1?a.jsx("span",{title:t??"Failed",children:a.jsx(ms,{size:16,weight:"fill",className:"text-critical shrink-0"})}):a.jsx(Q0,{size:16,className:"text-neutral-500 shrink-0"})}function MH(){const e=va(["task:completed","task:failed"]),[t,s]=r.useState("all"),[l,o]=r.useState("all"),[c,d]=r.useState("all"),[h,m]=r.useState(""),[p,x]=r.useState(null),[g,b]=r.useState(0),[w,j]=r.useState({}),[N,E]=r.useState(!0),[A,C]=r.useState(!1),M=r.useCallback(_=>{const H=[`limit=${Gj}`,`offset=${_}`];return t!=="all"&&H.push(`status=${t}`),l!=="all"&&H.push(`provider=${l}`),`/api/marketing/posts?${H.join("&")}`},[t,l]);r.useEffect(()=>{let _=!1;return E(!0),me(M(0)).then(H=>{_||(x(H.data),b(H.total),j(H.statusCounts))}).catch(()=>{_||(x([]),b(0))}).finally(()=>{_||E(!1)}),()=>{_=!0}},[M,e]);const S=async()=>{if(!(!p||A||p.length>=g)){C(!0);try{const _=await me(M(p.length));x([...p,..._.data]),b(_.total)}finally{C(!1)}}},L=r.useMemo(()=>{if(!p)return[];let _=p;const H=$X(c);if(H&&(_=_.filter(T=>EH(T.created_at)>=H)),h.trim()){const T=h.toLowerCase();_=_.filter(D=>D.text_preview.toLowerCase().includes(T)||(D.title??"").toLowerCase().includes(T)||(D.agent_name??"").toLowerCase().includes(T))}return _},[p,c,h]),V=(w.delivered??0)+(w.approved??0)+(w.rejected??0)+(w.pending_review??0);return a.jsxs("div",{className:"p-6 max-w-5xl",children:[a.jsx(ze,{title:"Marketing",subtitle:g>0?`${(p==null?void 0:p.length)??0} of ${g} posts shown`:"All outbound content across channels"}),a.jsx("div",{className:"grid grid-cols-4 gap-3 mb-5",children:[{label:"Total",value:V,color:"text-white"},{label:"Delivered",value:w.delivered??0,color:"text-success"},{label:"Pending",value:(w.approved??0)+(w.pending_review??0),color:"text-warning"},{label:"Rejected",value:w.rejected??0,color:"text-critical"}].map(_=>a.jsxs("div",{className:"px-4 py-3 rounded-lg border border-white/[0.06] bg-white/[0.02]",children:[a.jsx("p",{className:"text-xs text-neutral-500",children:_.label}),a.jsx("p",{className:`text-2xl font-semibold ${_.color}`,children:_.value})]},_.label))}),a.jsx("div",{className:"flex gap-1 mb-3 overflow-x-auto",children:[{key:"all",label:"All",count:V},{key:"delivered",label:"Delivered",count:w.delivered??0},{key:"approved",label:"Approved",count:w.approved??0},{key:"pending_review",label:"Pending",count:w.pending_review??0},{key:"rejected",label:"Rejected",count:w.rejected??0}].map(_=>a.jsxs("button",{onClick:()=>s(_.key),className:`px-3 py-1 rounded text-xs whitespace-nowrap transition-colors ${t===_.key?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:[_.label," ",a.jsx("span",{className:"text-neutral-500",children:_.count})]},_.key))}),a.jsxs("div",{className:"flex items-center gap-3 mb-4 flex-wrap",children:[a.jsx("div",{className:"flex gap-1",children:[{key:"all",label:"All channels"},{key:"x",label:"X"},{key:"gmail",label:"Email"}].map(_=>a.jsx("button",{onClick:()=>o(_.key),className:`px-2.5 py-1 rounded text-xs transition-colors ${l===_.key?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:_.label},_.key))}),a.jsx("div",{className:"w-px h-5 bg-white/10"}),a.jsx("div",{className:"flex gap-1",children:["all","today","7d","30d"].map(_=>a.jsx("button",{onClick:()=>d(_),className:`px-2.5 py-1 rounded text-xs transition-colors ${c===_?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:_==="all"?"All time":_==="today"?"Today":_==="7d"?"7 days":"30 days"},_))}),a.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[a.jsx(ga,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:h,onChange:_=>m(_.target.value),placeholder:"Search content...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),N?a.jsx(We,{count:8}):L.length?a.jsxs("div",{className:"space-y-1",children:[L.map((_,H)=>{const T=Uj[_.status]??Uj.pending_review;return a.jsxs(He.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:Math.min(H*.02,.3)},className:"flex items-start gap-3 px-4 py-3 rounded-lg border border-white/[0.06] bg-white/[0.02] hover:bg-white/[0.04] transition-colors",children:[a.jsxs("div",{className:"flex flex-col items-center gap-1 shrink-0 pt-0.5",children:[a.jsx("span",{className:`px-2 py-0.5 rounded text-[10px] font-medium ${T.bg} ${T.text}`,children:T.label}),a.jsx(BX,{provider:_.provider})]}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"text-sm text-white leading-relaxed",children:_.text_preview||_.title||"No content"}),a.jsxs("div",{className:"flex items-center gap-3 mt-1.5",children:[_.agent_name&&a.jsxs("span",{className:"text-[11px] text-neutral-500",children:["by ",_.agent_name]}),_.auto_created&&a.jsxs("span",{className:"inline-flex items-center gap-0.5 text-[11px] text-neutral-600",children:[a.jsx(us,{size:10})," auto"]})]})]}),a.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[a.jsx(PX,{ok:_.delivery_ok,error:_.delivery_error}),a.jsx("span",{className:"text-xs text-neutral-500 w-16 text-right",children:IX(_.delivered_at??_.created_at)})]})]},_.id)}),!N&&p&&p.length<g&&!h&&c==="all"&&a.jsx("div",{className:"flex justify-center pt-3",children:a.jsx("button",{onClick:S,disabled:A,className:"px-4 py-2 text-xs text-neutral-300 border border-white/10 rounded-md hover:bg-white/5 transition-colors disabled:opacity-50",children:A?"Loading...":`Load ${Math.min(Gj,g-p.length)} more`})})]}):a.jsx(bt,{icon:a.jsx(e3,{size:32}),title:"No posts yet",description:h||t!=="all"||l!=="all"||c!=="all"?"No posts matching your filters.":"Content will appear here as agents post across channels."})]})}const Yj=50;function SH(e){return e?/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"):new Date(NaN)}function UX(e){const t=Date.now()-SH(e).getTime();if(t<0)return"just now";const s=Math.floor(t/1e3);if(s<30)return"just now";if(s<60)return`${s}s ago`;const l=Math.floor(s/60);if(l<60)return`${l}m ago`;const o=Math.floor(l/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function GX(e){if(e==="all")return null;const t=new Date;return e==="today"?(t.setHours(0,0,0,0),t):e==="7d"?(t.setDate(t.getDate()-7),t):(t.setDate(t.getDate()-30),t)}function k1(e){return e<1e3?String(e):e<1e4?`${(e/1e3).toFixed(1).replace(/\.0$/,"")}k`:e<1e6?`${Math.round(e/1e3)}k`:`${(e/1e6).toFixed(1).replace(/\.0$/,"")}m`}function YX(e){try{return new URL(e).pathname.replace(/^\//,"")}catch{return e}}function KX({platform:e}){return e==="x"?a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[11px] bg-white/5 text-neutral-300",children:[a.jsx(TC,{size:11,weight:"bold"})," X"]}):a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[11px] bg-white/5 text-neutral-300",children:[a.jsx(_I,{size:12,weight:"bold"})," Threads"]})}function XX({kind:e}){return e==="reply"?a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[10px] font-medium bg-info/10 text-info",children:[a.jsx(J0,{size:10,weight:"bold"})," Reply"]}):a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[10px] font-medium bg-white/5 text-neutral-300",children:[a.jsx(e3,{size:10,weight:"bold"})," Post"]})}function QX({eng:e}){return a.jsxs("div",{className:"flex items-center gap-3 text-[11px] text-neutral-500",children:[a.jsxs("span",{className:"inline-flex items-center gap-1",title:`${e.likes} likes`,children:[a.jsx(bo,{size:11,weight:"bold"})," ",k1(e.likes)]}),a.jsxs("span",{className:"inline-flex items-center gap-1",title:`${e.replies} replies`,children:[a.jsx(J0,{size:11,weight:"bold"})," ",k1(e.replies)]}),a.jsxs("span",{className:"inline-flex items-center gap-1",title:`${e.reposts} reposts`,children:[a.jsx(Kq,{size:11,weight:"bold"})," ",k1(e.reposts)]}),a.jsxs("span",{className:"inline-flex items-center gap-1",title:`${e.views} views`,children:[a.jsx(v0,{size:11,weight:"bold"})," ",k1(e.views)]}),a.jsxs("a",{href:e.permalink.startsWith("http")?e.permalink:`https://x.com${e.permalink}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-0.5 text-neutral-500 hover:text-white transition-colors",children:[a.jsx(mM,{size:10,weight:"bold"})," view"]})]})}function CH(){const e=va(["task:completed","task:failed"]),[t,s]=r.useState("all"),[l,o]=r.useState("all"),[c,d]=r.useState("all"),[h,m]=r.useState(""),[p,x]=r.useState(null),[g,b]=r.useState(0),[w,j]=r.useState({x:0,threads:0}),[N,E]=r.useState({post:0,reply:0}),[A,C]=r.useState(!0),[M,S]=r.useState(!1),L=r.useCallback(T=>{const D=[`limit=${Yj}`,`offset=${T}`];return t!=="all"&&D.push(`platform=${t}`),l!=="all"&&D.push(`kind=${l}`),`/api/social/posts?${D.join("&")}`},[t,l]);r.useEffect(()=>{let T=!1;return C(!0),me(L(0)).then(D=>{T||(x(D.data),b(D.total),j(D.platformCounts),E(D.kindCounts))}).catch(()=>{T||(x([]),b(0))}).finally(()=>{T||C(!1)}),()=>{T=!0}},[L,e]);const V=async()=>{if(!(!p||M||p.length>=g)){S(!0);try{const T=await me(L(p.length));x([...p,...T.data]),b(T.total)}finally{S(!1)}}},_=r.useMemo(()=>{if(!p)return[];let T=p;const D=GX(c);if(D&&(T=T.filter(F=>SH(F.posted_at)>=D)),h.trim()){const F=h.toLowerCase();T=T.filter(P=>P.text_preview.toLowerCase().includes(F)||(P.task_title??"").toLowerCase().includes(F)||(P.reply_to_url??"").toLowerCase().includes(F))}return T},[p,c,h]),H=w.x+w.threads;return a.jsxs("div",{className:"p-6 max-w-5xl",children:[a.jsx(ze,{title:"Social",subtitle:g>0?`${(p==null?void 0:p.length)??0} of ${g} shown`:"Every posted X + Threads item, including replies"}),a.jsx("div",{className:"grid grid-cols-4 gap-3 mb-5",children:[{label:"Total",value:H,color:"text-white"},{label:"X",value:w.x,color:"text-white"},{label:"Threads",value:w.threads,color:"text-white"},{label:"Replies",value:N.reply,color:"text-info"}].map(T=>a.jsxs("div",{className:"px-4 py-3 rounded-lg border border-white/[0.06] bg-white/[0.02]",children:[a.jsx("p",{className:"text-xs text-neutral-500",children:T.label}),a.jsx("p",{className:`text-2xl font-semibold ${T.color}`,children:T.value})]},T.label))}),a.jsx("div",{className:"flex gap-1 mb-3 overflow-x-auto",children:[{key:"all",label:"All",count:H},{key:"x",label:"X",count:w.x},{key:"threads",label:"Threads",count:w.threads}].map(T=>a.jsxs("button",{onClick:()=>s(T.key),className:`px-3 py-1 rounded text-xs whitespace-nowrap transition-colors ${t===T.key?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:[T.label," ",a.jsx("span",{className:"text-neutral-500",children:T.count})]},T.key))}),a.jsxs("div",{className:"flex items-center gap-3 mb-4 flex-wrap",children:[a.jsx("div",{className:"flex gap-1",children:[{key:"all",label:"All kinds"},{key:"post",label:`Posts (${N.post})`},{key:"reply",label:`Replies (${N.reply})`}].map(T=>a.jsx("button",{onClick:()=>o(T.key),className:`px-2.5 py-1 rounded text-xs transition-colors ${l===T.key?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:T.label},T.key))}),a.jsx("div",{className:"w-px h-5 bg-white/10"}),a.jsx("div",{className:"flex gap-1",children:["all","today","7d","30d"].map(T=>a.jsx("button",{onClick:()=>d(T),className:`px-2.5 py-1 rounded text-xs transition-colors ${c===T?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:T==="all"?"All time":T==="today"?"Today":T==="7d"?"7 days":"30 days"},T))}),a.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[a.jsx(ga,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:h,onChange:T=>m(T.target.value),placeholder:"Search text, task, reply target...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),A?a.jsx(We,{count:8}):_.length?a.jsxs("div",{className:"space-y-1",children:[_.map((T,D)=>a.jsxs(He.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:Math.min(D*.02,.3)},className:"flex items-start gap-3 px-4 py-3 rounded-lg border border-white/[0.06] bg-white/[0.02] hover:bg-white/[0.04] transition-colors",children:[a.jsxs("div",{className:"flex flex-col items-start gap-1 shrink-0 pt-0.5 w-24",children:[a.jsx(XX,{kind:T.kind}),a.jsx(KX,{platform:T.platform})]}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"text-sm text-white leading-relaxed whitespace-pre-wrap",children:T.text_preview||"(no preview)"}),a.jsxs("div",{className:"flex items-center gap-3 mt-1.5 flex-wrap",children:[T.kind==="reply"&&T.reply_to_url&&a.jsxs("a",{href:T.reply_to_url,target:"_blank",rel:"noopener noreferrer",className:"text-[11px] text-info hover:underline inline-flex items-center gap-0.5",title:T.reply_to_url,children:[a.jsx(mM,{size:10,weight:"bold"}),"to ",YX(T.reply_to_url)]}),T.task_title&&a.jsx("span",{className:"text-[11px] text-neutral-500 truncate max-w-[240px]",children:T.task_title}),T.engagement&&a.jsx(QX,{eng:T.engagement})]})]}),a.jsx("div",{className:"flex items-center gap-3 shrink-0",children:a.jsx("span",{className:"text-xs text-neutral-500 w-16 text-right",children:UX(T.posted_at)})})]},T.id)),!A&&p&&p.length<g&&!h&&c==="all"&&a.jsx("div",{className:"flex justify-center pt-3",children:a.jsx("button",{onClick:V,disabled:M,className:"px-4 py-2 text-xs text-neutral-300 border border-white/10 rounded-md hover:bg-white/5 transition-colors disabled:opacity-50",children:M?"Loading...":`Load ${Math.min(Yj,g-p.length)} more`})})]}):a.jsx(bt,{icon:a.jsx(aI,{size:32}),title:"Nothing posted yet",description:h||t!=="all"||l!=="all"||c!=="all"?"No posts matching your filters.":"Published X and Threads content will show up here."})]})}const JX=[{slug:"goals",label:"Goals"},{slug:"revenue",label:"Revenue"},{slug:"marketing",label:"Marketing"},{slug:"social",label:"Social"}];function WX(){return bs("goals"),a.jsx(ys,{tabs:JX,pageId:"growth",children:e=>a.jsxs("div",{className:"flex-1 min-h-0 overflow-auto",children:[e==="goals"&&a.jsx(AH,{}),e==="revenue"&&a.jsx(NH,{}),e==="marketing"&&a.jsx(MH,{}),e==="social"&&a.jsx(CH,{})]})})}function eQ(e){const t=Date.now()-new Date(e).getTime(),s=Math.floor(t/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const l=Math.floor(s/60);return l<24?`${l}h ago`:`${Math.floor(l/24)}d ago`}function Kj(e){try{return JSON.parse(e)}catch{return e}}function ZH(){const[e,t]=r.useState("all"),[s,l]=r.useState(null),{data:o,loading:c,refetch:d}=ye("/api/webhook-events"),h=o?e==="all"?o:e==="processed"?o.filter(p=>p.processed===1):o.filter(p=>p.processed===0):[],m=[{key:"all",label:"All"},{key:"pending",label:"Pending"},{key:"processed",label:"Processed"}];return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Webhook Events",subtitle:"Audit log of incoming webhooks",action:a.jsxs("button",{onClick:d,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-neutral-400 border border-white/10 rounded-md hover:bg-white/5 hover:text-white transition-colors",children:[a.jsx(us,{size:14})," Refresh"]})}),a.jsxs("div",{className:"flex items-center gap-1 mb-4",children:[a.jsx(hI,{size:14,className:"text-neutral-500 mr-1"}),m.map(p=>a.jsx("button",{onClick:()=>t(p.key),className:`px-3 py-1 rounded-full text-xs transition-colors ${e===p.key?"bg-white/10 text-white border border-white/20":"text-neutral-500 hover:text-white border border-transparent"}`,children:p.label},p.key))]}),c?a.jsx(We,{count:6}):h.length?a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:h.map(p=>a.jsxs("button",{onClick:()=>l(p),className:"flex items-center justify-between w-full px-4 py-3 text-left hover:bg-white/[0.02] transition-colors",children:[a.jsxs("div",{className:"min-w-0 mr-3 flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:p.event_type||"Unknown event"}),a.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded ${p.processed?"bg-success/15 text-success":"bg-warning/15 text-warning"}`,children:p.processed?"processed":"pending"})]}),a.jsxs("p",{className:"text-xs text-neutral-400 mt-0.5",children:[p.source,a.jsx("span",{className:"mx-1.5",children:"·"}),eQ(p.created_at)]})]}),a.jsx(v0,{size:14,className:"text-neutral-500 shrink-0"})]},p.id))}):a.jsx(bt,{icon:a.jsx(IS,{size:32}),title:"No webhook events yet",description:"Events will appear here when webhooks are received by your triggers."}),s&&a.jsx(ba,{open:!0,onClose:()=>l(null),title:"Webhook event",maxWidth:"max-w-lg",children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("h4",{className:"text-sm font-semibold",children:s.event_type}),a.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded ${s.processed?"bg-success/15 text-success":"bg-warning/15 text-warning"}`,children:s.processed?"processed":"pending"})]}),a.jsxs("div",{className:"bg-white/5 rounded-lg p-3 space-y-2 text-sm",children:[a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-neutral-400",children:"Source"}),a.jsx("span",{className:"font-medium",children:s.source})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-neutral-400",children:"Event type"}),a.jsx("span",{className:"font-medium",children:s.event_type})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-neutral-400",children:"Received"}),a.jsx("span",{className:"font-medium",children:new Date(s.created_at).toLocaleString()})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Payload"}),a.jsx("pre",{className:"bg-white/[0.04] border border-white/[0.08] rounded-lg p-3 text-xs text-neutral-400 overflow-x-auto max-h-64 whitespace-pre-wrap font-mono",children:JSON.stringify(Kj(s.payload),null,2)})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Headers"}),a.jsx("pre",{className:"bg-white/[0.04] border border-white/[0.08] rounded-lg p-3 text-xs text-neutral-500 overflow-x-auto max-h-32 whitespace-pre-wrap font-mono",children:JSON.stringify(Kj(s.headers),null,2)})]})]})})]})}function HH(){const[e,t]=r.useState(null),[s,l]=r.useState(!0),[o,c]=r.useState(null),[d,h]=r.useState(null),[m,p]=r.useState(!1),[x,g]=r.useState(!1),b=async()=>{try{const N=await fetch("/browser/health");if(N.ok){const E=await N.json();t({active:!0,url:E.url,title:E.title})}else t({active:!1})}catch{t({active:!1})}finally{l(!1)}};r.useEffect(()=>{b()},[]);const w=async()=>{p(!0);try{const N=await fetch("/browser/session/screenshot");if(N.ok){const E=await N.blob(),A=URL.createObjectURL(E);c(A)}else ue("error","Couldn't capture screenshot")}catch{ue("error","Browser session not active")}finally{p(!1)}},j=async()=>{g(!0);try{const N=await me("/browser/session/snapshot");h(typeof N.data=="string"?N.data:JSON.stringify(N.data,null,2))}catch{ue("error","Couldn't get accessibility snapshot")}finally{g(!1)}};return s?a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Browser",subtitle:"Browser automation viewer"}),a.jsxs("div",{className:"flex items-center gap-2 text-neutral-400 text-sm",children:[a.jsx(it,{size:14,className:"animate-spin"})," Checking browser status..."]})]}):a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Browser",subtitle:"Browser automation viewer",action:a.jsxs("button",{onClick:b,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-neutral-400 border border-white/10 rounded-md hover:bg-white/5 hover:text-white transition-colors",children:[a.jsx(us,{size:14})," Refresh"]})}),e!=null&&e.active?a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[a.jsx("span",{className:"w-2 h-2 rounded-full bg-success animate-pulse"}),a.jsx("span",{className:"text-sm font-medium",children:"Active session"})]}),e.url&&a.jsx("p",{className:"text-xs text-neutral-400 truncate ml-5",children:e.url}),e.title&&a.jsx("p",{className:"text-xs text-neutral-500 ml-5",children:e.title})]}),a.jsxs("div",{className:"flex gap-3",children:[a.jsxs("button",{onClick:w,disabled:m,className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:[m?a.jsx(it,{size:14,className:"animate-spin"}):a.jsx(rf,{size:14}),"Capture screenshot"]}),a.jsxs("button",{onClick:j,disabled:x,className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white/5 border border-white/10 text-white rounded-md hover:bg-white/10 disabled:opacity-50 transition-colors",children:[x?a.jsx(it,{size:14,className:"animate-spin"}):a.jsx(d9,{size:14}),"Accessibility tree"]})]}),o&&a.jsxs("div",{children:[a.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-2",children:"Screenshot"}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg overflow-hidden",children:a.jsx("img",{src:o,alt:"Browser screenshot",className:"w-full"})})]}),d&&a.jsxs("div",{children:[a.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-2",children:"Accessibility tree"}),a.jsx("pre",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4 text-xs text-neutral-400 overflow-x-auto max-h-96 whitespace-pre-wrap font-mono",children:d})]})]}):a.jsx(dn,{icon:a9,title:"No active browser session",description:"Browser sessions are started automatically when agents need web access. Launch a task that requires browsing to see it here.",capabilities:[{icon:rf,label:"Screenshots",description:"Capture the current page"},{icon:d9,label:"Accessibility tree",description:"View page structure"},{icon:a9,label:"Live view",description:"See what your agent sees"}]})]})}const tQ=3e3,aQ=3e4,nQ=500,rQ=8,sQ=.6,lQ=.2,iQ=2e3;function oQ(e){const{confirmMs:t=tQ,absentMs:s=aQ,frameIntervalMs:l=nQ}=e,[o,c]=r.useState(!1),[d,h]=r.useState("inactive"),[m,p]=r.useState(0),[x,g]=r.useState(null),b=r.useRef(null),w=r.useRef(null),j=r.useRef(null),N=r.useRef(null),E=r.useRef(null),A=r.useRef(null),C=r.useRef(null),M=r.useRef(null),S=r.useRef(null),L=r.useRef(!1),V=r.useRef(null),_=r.useRef(null),H=r.useRef(null),T=r.useRef("inactive"),D=r.useRef(0),F=r.useRef(0),P=r.useRef(e.onPresenceChange);r.useEffect(()=>{P.current=e.onPresenceChange});const U=r.useCallback(()=>{if(typeof globalThis.FaceDetector<"u")try{return C.current=new FaceDetector({fastMode:!0,maxDetectedFaces:1}),!0}catch{console.warn("[CameraPresence] FaceDetector API not available")}return!1},[]),W=r.useCallback(Q=>{const J=Q.data,k=A.current;if(!k)return A.current=new Uint8ClampedArray(J),!0;let Y=0,K=0;for(let z=0;z<J.length;z+=64){const I=J[z]*.299+J[z+1]*.587+J[z+2]*.114,te=k[z]*.299+k[z+1]*.587+k[z+2]*.114;Y+=Math.abs(I-te),K++}return A.current=new Uint8ClampedArray(J),Y/K>rQ},[]),se=r.useCallback(async()=>{const Q=b.current;if(!Q||Q.readyState<2)return;w.current||(w.current=document.createElement("canvas"));const J=w.current,k=J.getContext("2d",{willReadFrequently:!0});if(!k)return;J.width=160,J.height=120,k.drawImage(Q,0,0,160,120);const Y=k.getImageData(0,0,160,120);if(!W(Y)){const I=Date.now();T.current!=="absent"&&T.current!=="inactive"&&I-F.current>s&&(T.current="absent",h("absent"),p(0),P.current({type:"departure",confidence:0}));return}let K=!1,q=0;if(C.current)try{const I=await createImageBitmap(J),te=await C.current.detect(I);if(I.close(),te.length>0){K=!0;const fe=te[0],pe=fe.boundingBox.width*fe.boundingBox.height/19200;q=Math.min(1,pe*10+.5)}}catch{K=!0,q=.4}else K=!0,q=.5;if(!K||q<sQ){const I=Date.now();T.current!=="absent"&&T.current!=="inactive"&&I-F.current>s&&(T.current="absent",h("absent"),p(0),P.current({type:"departure",confidence:0}));return}const z=Date.now();F.current=z,p(q),T.current==="absent"||T.current==="inactive"?(T.current="detected",h("detected"),D.current=z):T.current==="detected"&&z-D.current>=t&&(T.current="confirmed",h("confirmed"),P.current({type:"arrival",confidence:q}))},[W,t,s]),O=r.useCallback(async()=>{try{if(j.current)for(const J of j.current.getTracks())J.stop();const Q=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user",width:{ideal:320},height:{ideal:240}},audio:!1});j.current=Q,b.current&&(b.current.srcObject=Q,await b.current.play());try{"wakeLock"in navigator&&(N.current=await navigator.wakeLock.request("screen"))}catch{}console.info("[CameraPresence] Camera restarted after background")}catch(Q){console.error({err:Q},"[CameraPresence] Camera restart failed")}},[]),$=r.useCallback(async()=>{try{g(null);const Q=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user",width:{ideal:320},height:{ideal:240}},audio:!1});j.current=Q,b.current&&(b.current.srcObject=Q,await b.current.play());try{"wakeLock"in navigator&&(N.current=await navigator.wakeLock.request("screen"))}catch{console.warn("[CameraPresence] Wake lock not available")}U();let J=l;try{"getBattery"in navigator&&(await navigator.getBattery()).level<lQ&&(J=iQ)}catch{}T.current="absent",h("absent"),c(!0),E.current=setInterval(()=>{se().catch(()=>{})},J);const k=()=>{document.hidden&&b.current&&document.pictureInPictureEnabled&&(document.pictureInPictureElement||b.current.requestPictureInPicture().catch(()=>{}))};document.addEventListener("visibilitychange",k),V.current=()=>document.removeEventListener("visibilitychange",k),"locks"in navigator&&navigator.locks.request("eye-camera-lock",{mode:"exclusive"},()=>new Promise(K=>{H.current=K})).catch(()=>{}),M.current=setInterval(()=>{if(j.current){const K=j.current.getVideoTracks()[0];K&&K.readyState==="ended"&&(L.current=!0,console.warn("[CameraPresence] Camera stream died in background"))}},1e4);const Y=()=>{!document.hidden&&L.current&&T.current!=="inactive"&&(L.current=!1,console.info("[CameraPresence] Restarting camera after background death"),O())};document.addEventListener("visibilitychange",Y),_.current=()=>document.removeEventListener("visibilitychange",Y),S.current=setInterval(()=>{(T.current==="confirmed"||T.current==="detected")&&P.current({type:"still_here",confidence:.5})},3e4)}catch(Q){const J=Q instanceof Error?Q.message:"Camera access denied";g(J),console.error({err:Q},"[CameraPresence] Start failed")}},[l,U,se,O]),B=r.useCallback(()=>{var Q,J;if(E.current&&(clearInterval(E.current),E.current=null),j.current){for(const k of j.current.getTracks())k.stop();j.current=null}N.current&&(N.current.release().catch(()=>{}),N.current=null),M.current&&(clearInterval(M.current),M.current=null),S.current&&(clearInterval(S.current),S.current=null),(Q=V.current)==null||Q.call(V),V.current=null,(J=_.current)==null||J.call(_),_.current=null,H.current&&(H.current(),H.current=null),L.current=!1,document.pictureInPictureElement&&document.exitPictureInPicture().catch(()=>{}),A.current=null,T.current="inactive",h("inactive"),c(!1),p(0)},[]);return r.useEffect(()=>()=>{B()},[B]),{isActive:o,phase:d,confidence:m,error:x,start:$,stop:B,videoRef:b}}const cQ="modulepreload",uQ=function(e){return"/ui/"+e},Xj={},dQ=function(t,s,l){let o=Promise.resolve();if(s&&s.length>0){let d=function(p){return Promise.all(p.map(x=>Promise.resolve(x).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));o=d(s.map(p=>{if(p=uQ(p),p in Xj)return;Xj[p]=!0;const x=p.endsWith(".css"),g=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const b=document.createElement("link");if(b.rel=x?"stylesheet":cQ,x||(b.as="script"),b.crossOrigin="",b.href=p,m&&b.setAttribute("nonce",m),document.head.appendChild(b),x)return new Promise((w,j)=>{b.addEventListener("load",w),b.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${p}`)))})}))}function c(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return o.then(d=>{for(const h of d||[])h.status==="rejected"&&c(h.reason);return t().catch(c)})},hQ=10,mQ=.65,fQ=3,pQ={Open_Palm:1500,Thumb_Up:3e3,Thumb_Down:3e3,Pointing_Up:2e3,Victory:5e3,ILoveYou:5e3},xQ=2e3,gQ=120,Qj=3,vQ="https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.32/wasm",bQ="https://storage.googleapis.com/mediapipe-models/gesture_recognizer/gesture_recognizer/float16/latest/gesture_recognizer.task";let _n=null,R1=!1,Ml=null;const bl=[];async function yQ(){if(_n)return _n;if(Ml)throw new Error(Ml);if(R1)return new Promise((e,t)=>{bl.push(()=>{_n?e(_n):t(new Error(Ml||"Load failed"))})});R1=!0;try{const e=await dQ(()=>import("./vision_bundle-CCf8DAA1.js"),[]),t=await e.FilesetResolver.forVisionTasks(vQ);return _n=await e.GestureRecognizer.createFromModelPath(t,bQ),await _n.setOptions({runningMode:"VIDEO"}),R1=!1,console.info("[HandGestures] GestureRecognizer loaded"),bl.forEach(s=>s()),bl.length=0,_n}catch(e){throw Ml=e instanceof Error?e.message:"Failed to load gesture model",R1=!1,bl.forEach(s=>s()),bl.length=0,e}}function wQ(e){const{videoRef:t,enabled:s=!1,targetFps:l=hQ,minConfidence:o=mQ,onGesture:c}=e,[d,h]=r.useState(!!_n),[m,p]=r.useState(null),[x,g]=r.useState(null),[b,w]=r.useState(Ml),j=r.useRef(null),N=r.useRef(0),E=r.useRef(l),A=r.useRef(c),C=r.useRef(o),M=r.useRef({name:"",count:0}),S=r.useRef({});r.useEffect(()=>{A.current=c}),r.useEffect(()=>{C.current=o},[o]),r.useEffect(()=>{E.current=l},[l]);const L=r.useCallback(()=>{const _=_n;if(!_)return;const H=()=>{var K,q,z;if(!t.current||document.hidden){j.current=requestAnimationFrame(H);return}const T=performance.now(),D=1e3/E.current;if(T-N.current<D){j.current=requestAnimationFrame(H);return}const F=t.current;if(F.readyState<2){j.current=requestAnimationFrame(H);return}const P=performance.now();let U;try{U=_.recognizeForVideo(F,T)}catch{j.current=requestAnimationFrame(H);return}const W=performance.now()-P;N.current=T,W>gQ&&E.current>Qj&&(E.current=Math.max(Qj,Math.floor(E.current/2)),console.warn(`[HandGestures] Slowing down — inference ${Math.round(W)}ms, new FPS: ${E.current}`));const se=U.landmarks??[];g(se.length>0?se:null);const O=U.gestures,$=U.handedness;if(!O||O.length===0||!O[0]||O[0].length===0){p(null),M.current={name:"",count:0},j.current=requestAnimationFrame(H);return}const B=O[0][0],Q=B.categoryName??B.displayName??"",J=B.score??0;if(Q==="None"||J<C.current){p(null),M.current={name:"",count:0},j.current=requestAnimationFrame(H);return}const k=((q=(K=$==null?void 0:$[0])==null?void 0:K[0])==null?void 0:q.categoryName)==="Right"?"Right":"Left",Y={name:Q,confidence:J,handedness:k,landmarks:se[0]??[]};if(p(Y),M.current.name===Q?M.current.count++:M.current={name:Q,count:1},M.current.count>=fQ){const I=S.current[Q]||0,te=pQ[Q]??xQ;T-I>te&&(S.current[Q]=T,(z=A.current)==null||z.call(A,Y))}j.current=requestAnimationFrame(H)};j.current=requestAnimationFrame(H)},[t]),V=r.useCallback(()=>{j.current!==null&&(cancelAnimationFrame(j.current),j.current=null),queueMicrotask(()=>{p(null),g(null)}),M.current={name:"",count:0}},[]);return r.useEffect(()=>{if(!s){V();return}let _=!1;return(async()=>{try{if(await yQ(),_)return;h(!0),w(null),L()}catch(H){if(_)return;const T=H instanceof Error?H.message:"Gesture model failed to load";w(T),console.error("[HandGestures] Failed to initialize",H)}})(),()=>{_=!0,V()}},[s,L,V]),{isReady:d,currentGesture:m,landmarks:x,error:b}}const AQ=[[0,1],[1,2],[2,3],[3,4],[0,5],[5,6],[6,7],[7,8],[0,9],[9,10],[10,11],[11,12],[0,13],[13,14],[14,15],[15,16],[0,17],[17,18],[18,19],[19,20],[5,9],[9,13],[13,17]];function jQ({landmarks:e,videoRef:t}){const s=r.useRef(null);return r.useEffect(()=>{const l=t.current,o=s.current;if(!l||!o)return;const c=()=>{const h=l.clientWidth,m=l.clientHeight;o.width!==h&&(o.width=h),o.height!==m&&(o.height=m)};c();const d=new ResizeObserver(c);return d.observe(l),()=>d.disconnect()},[t]),r.useEffect(()=>{const l=s.current,o=t.current;if(!l||!o)return;const c=l.getContext("2d");if(!c||(c.clearRect(0,0,l.width,l.height),!e||e.length===0))return;const d=l.width,h=l.height,m=o.videoWidth||d,p=o.videoHeight||h,x=Math.max(d/m,h/p),g=m*x,b=p*x,w=(g-d)/2,j=(b-h)/2,N=E=>[d-(E.x*g-w),E.y*b-j];for(const E of e){if(E.length<21)continue;c.strokeStyle="rgba(0, 220, 255, 0.3)",c.lineWidth=1.5,c.lineCap="round";for(const[C,M]of AQ){const[S,L]=N(E[C]),[V,_]=N(E[M]);c.beginPath(),c.moveTo(S,L),c.lineTo(V,_),c.stroke()}for(const C of E){const[M,S]=N(C);c.beginPath(),c.arc(M,S,2.5,0,Math.PI*2),c.fillStyle="rgba(0, 220, 255, 0.5)",c.fill()}const A=[4,8,12,16,20];for(const C of A){const[M,S]=N(E[C]);c.beginPath(),c.arc(M,S,4,0,Math.PI*2),c.fillStyle="rgba(0, 220, 255, 0.6)",c.fill()}}},[e,t]),a.jsx("canvas",{ref:s,className:"absolute inset-0 w-full h-full pointer-events-none z-[7]"})}const NQ={Open_Palm:{label:"Open Palm",icon:a.jsx(pS,{size:14,weight:"fill"}),color:"text-cyan-400"},Closed_Fist:{label:"Fist",icon:a.jsx(fI,{size:14,weight:"fill"}),color:"text-neutral-400"},Pointing_Up:{label:"Raise Hand",icon:a.jsx(kn,{size:14,weight:"fill"}),color:"text-amber-400"},Thumb_Up:{label:"Thumbs Up",icon:a.jsx(n3,{size:14,weight:"fill"}),color:"text-green-400"},Thumb_Down:{label:"Thumbs Down",icon:a.jsx(a3,{size:14,weight:"fill"}),color:"text-red-400"},Victory:{label:"Peace",icon:a.jsx(kn,{size:14,weight:"fill"}),color:"text-violet-400"},ILoveYou:{label:"Love",icon:a.jsx(bo,{size:14,weight:"fill"}),color:"text-pink-400"}},EQ={mute:{icon:a.jsx(Fl,{size:32,weight:"fill"}),color:"text-red-400",bg:"bg-red-500/10"},unmute:{icon:a.jsx(Vn,{size:32,weight:"fill"}),color:"text-green-400",bg:"bg-green-500/10"},"thumbs-up":{icon:a.jsx(n3,{size:32,weight:"fill"}),color:"text-green-400",bg:"bg-green-500/10"},"thumbs-down":{icon:a.jsx(a3,{size:32,weight:"fill"}),color:"text-red-400",bg:"bg-red-500/10"},interrupt:{icon:a.jsx(kn,{size:32,weight:"fill"}),color:"text-amber-400",bg:"bg-amber-500/10"},peace:{icon:a.jsx(kn,{size:32,weight:"fill"}),color:"text-violet-400",bg:"bg-violet-500/10"},love:{icon:a.jsx(bo,{size:32,weight:"fill"}),color:"text-pink-400",bg:"bg-pink-500/10"}};function MQ({gesture:e,action:t}){const[s,l]=r.useState(null);r.useEffect(()=>{if(!t)return;queueMicrotask(()=>l({action:t,fading:!1}));const d=setTimeout(()=>{l(m=>m?{...m,fading:!0}:null)},1e3),h=setTimeout(()=>{l(null)},1500);return()=>{clearTimeout(d),clearTimeout(h)}},[t==null?void 0:t.ts]);const o=e?NQ[e]:null,c=s?EQ[s.action.type]:null;return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"fixed top-16 right-4 z-20 flex flex-col items-end gap-2",children:o&&a.jsxs("div",{className:`flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-black/40 backdrop-blur-sm border border-white/[0.08] transition-all duration-300 ${o.color}`,children:[o.icon,a.jsx("span",{className:"text-[11px] font-medium",children:o.label})]})}),c&&s&&a.jsx("div",{className:`fixed inset-0 z-30 flex items-center justify-center pointer-events-none transition-opacity duration-500 ${s.fading?"opacity-0":"opacity-100"}`,children:a.jsxs("div",{className:`flex flex-col items-center gap-2 p-6 rounded-3xl ${c.bg} backdrop-blur-sm border border-white/[0.06] gesture-pop`,style:{animation:s.fading?"none":"gesture-pop 0.3s ease-out"},children:[a.jsx("div",{className:c.color,children:c.icon}),a.jsx("span",{className:`text-xs font-medium ${c.color} opacity-70`,children:s.action.type.replace("-"," ")})]})})]})}const SQ=5e3,CQ=8e3;function ZQ(){return""}function _H(){const[e,t]=r.useState(!0),[s,l]=r.useState(null),[o,c]=r.useState(!1),d=r.useRef(0),h=r.useRef(null),m=r.useRef(0),p=r.useRef(!1),x=r.useRef(null),g=2,b=r.useCallback(async J=>{const k=Date.now();if(k-d.current<SQ)return;d.current=k;const Y=cn();try{await fetch(`${ZQ()}/api/presence/event`,{method:"POST",headers:{"Content-Type":"application/json",...Y?{Authorization:`Bearer ${Y}`}:{}},body:JSON.stringify({eventType:J.type,confidence:J.confidence})})}catch{}},[]),{isActive:w,phase:j,confidence:N,error:E,start:A,stop:C,videoRef:M}=oQ({onPresenceChange:b}),S=QC("orchestrator"),{tier:L}=wo(),V=S.state!=="idle",_=S.state==="speaking",H=r.useCallback(J=>{switch(J.name){case"Open_Palm":V&&S.toggleMute(),l({type:S.isMuted?"unmute":"mute",ts:Date.now()});break;case"Thumb_Up":l({type:"thumbs-up",ts:Date.now()});break;case"Thumb_Down":l({type:"thumbs-down",ts:Date.now()});break;case"Pointing_Up":_&&S.toggleMute(),l({type:"interrupt",ts:Date.now()});break;case"Victory":l({type:"peace",ts:Date.now()});break;case"ILoveYou":l({type:"love",ts:Date.now()});break}},[V,_,S]),{currentGesture:T,landmarks:D,isReady:F,error:P}=wQ({videoRef:M,enabled:w,onGesture:H}),U=r.useMemo(()=>w?_?"speaking":S.state==="connecting"?"processing":S.state==="listening"?"listening":"watching":"inactive",[w,_,S.state]);r.useEffect(()=>{(S.transcript||S.response)&&(c(!0),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>c(!1),CQ))},[S.transcript,S.response]);const W=r.useRef(0);r.useEffect(()=>{V?(W.current=Date.now(),p.current=!1):(W.current>0&&Date.now()-W.current>5e3&&(m.current=0),W.current=0,p.current=!1)},[V]),r.useEffect(()=>{j!=="confirmed"&&(p.current=!1,m.current=0)},[j]);const se=r.useRef(S.startCall);r.useEffect(()=>{se.current=S.startCall},[S.startCall]),r.useEffect(()=>{e&&j==="confirmed"&&!V&&!p.current&&!S.error&&m.current<g&&(p.current=!0,m.current++,se.current().catch(()=>{p.current=!1}))},[j,e,V,S.error]);const O=async()=>{w?(S.endCall(),C()):await A()},$=()=>{V?S.endCall():S.startCall()},B=E||S.error||P,Q=!!(S.transcript||S.response);return a.jsxs("div",{className:"fixed inset-0 bg-black flex flex-col select-none touch-manipulation overflow-hidden",children:[a.jsx("video",{ref:M,autoPlay:!0,playsInline:!0,muted:!0,className:"absolute inset-0 w-full h-full object-cover transition-opacity duration-700",style:{filter:"brightness(0.18) saturate(0.6)",opacity:w?1:0,transform:"scaleX(-1)"}}),w&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/60 via-transparent to-black/70 pointer-events-none z-[5]"}),a.jsx("div",{className:"absolute inset-0 bg-black/20 pointer-events-none z-[5]"})]}),a.jsx(jQ,{landmarks:D,videoRef:M}),a.jsx(MQ,{gesture:(T==null?void 0:T.name)??null,action:s}),a.jsxs("div",{className:"relative z-10 shrink-0 flex items-center gap-3 px-4 pt-[env(safe-area-inset-top,12px)] pb-2",children:[a.jsxs("button",{onClick:O,className:`relative w-12 h-12 shrink-0 rounded-full flex items-center justify-center border transition-all duration-500 ${j==="confirmed"?"border-green-500/30 bg-green-500/[0.08]":j==="detected"?"border-amber-500/30 bg-amber-500/[0.06]":w?"border-white/10 bg-white/[0.04]":"border-white/[0.06] bg-white/[0.02]"}`,children:[a.jsx(HQ,{state:U,size:20}),j==="detected"&&a.jsx("div",{className:"absolute inset-0 rounded-full border border-amber-400/30 animate-ping"})]}),a.jsxs("div",{className:"flex flex-col min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(_Q,{phase:j,isActive:w}),V&&a.jsx("span",{className:"text-[10px] text-violet-400/60 shrink-0",children:S.isMuted?"muted":_?"speaking":S.state==="connecting"?"thinking":"live"}),V&&S.isMuted&&a.jsx(Fl,{size:12,weight:"fill",className:"text-red-400/70 shrink-0"})]}),B&&a.jsx("p",{className:"text-[10px] text-red-400/70 truncate mt-0.5",children:B})]}),a.jsxs("div",{className:"ml-auto flex items-center gap-1.5 shrink-0",children:[F&&a.jsx("span",{className:"px-2 py-0.5 text-[10px] text-cyan-400/60 rounded-full border border-cyan-500/15 bg-cyan-500/[0.04]",children:"gestures"}),w&&a.jsxs("button",{onClick:()=>t(J=>!J),className:`px-2 py-0.5 text-[10px] rounded-full border transition-colors ${e?"text-green-400/70 border-green-500/20 bg-green-500/[0.06]":"text-neutral-600 border-white/[0.06]"}`,children:["auto ",e?"on":"off"]})]})]}),w&&j!=="inactive"&&a.jsx("div",{className:"relative z-10 shrink-0 h-px bg-white/[0.04] mx-4",children:a.jsx("div",{className:`h-full transition-all duration-500 ${j==="confirmed"?"bg-green-500/40":j==="detected"?"bg-amber-500/40":"bg-white/[0.06]"}`,style:{width:`${Math.round(N*100)}%`}})}),a.jsxs("div",{ref:x,className:"relative z-10 flex-1 overflow-y-auto overscroll-contain px-4 py-3 space-y-1",children:[!Q&&a.jsx(a.Fragment,{children:w?a.jsx(VQ,{gesturesReady:F,isVoiceActive:V,gestureError:P}):a.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center px-8",children:[a.jsx(tS,{size:32,weight:"light",className:"text-white/10 mb-3"}),a.jsx("p",{className:"text-sm text-neutral-600",children:"Tap the eye to start"})]})}),Q&&a.jsxs("div",{className:`flex flex-col gap-2 transition-opacity duration-500 ${o?"opacity-100":"opacity-30"}`,children:[S.transcript&&a.jsx("div",{className:"flex justify-end",children:a.jsxs("div",{className:"max-w-[85%] px-3 py-2 rounded-2xl rounded-br-md bg-white/[0.08] text-neutral-300 text-sm",children:[S.transcript,a.jsx("span",{className:"inline-block w-1 h-3 ml-0.5 bg-neutral-500 animate-pulse rounded-full"})]})}),S.response&&a.jsx("div",{className:"flex justify-start",children:a.jsxs("div",{className:"max-w-[85%] px-3 py-2 rounded-2xl rounded-bl-md bg-violet-500/[0.08] text-neutral-200 text-sm leading-relaxed",children:[S.response,_&&a.jsx("span",{className:"inline-block w-1 h-3 ml-0.5 bg-violet-400 animate-pulse rounded-full"})]})})]})]}),a.jsxs("div",{className:"relative z-10 shrink-0 border-t border-white/[0.04] bg-black/60 backdrop-blur-md pb-[env(safe-area-inset-bottom,8px)]",children:[a.jsxs("div",{className:"flex items-center justify-center gap-5 py-3 px-4",children:[a.jsx("button",{onClick:O,className:`w-14 h-14 rounded-full flex items-center justify-center transition-all duration-300 ${w?"bg-violet-600/20 border-2 border-violet-500/40 active:bg-violet-600/40":"bg-white/5 border-2 border-white/10 active:bg-white/10"}`,children:w?a.jsx(v0,{size:24,weight:"fill",className:"text-violet-400"}):a.jsx(v0,{size:24,weight:"light",className:"text-neutral-500"})}),w&&a.jsx("button",{onClick:$,className:`w-14 h-14 rounded-full flex items-center justify-center transition-all duration-300 ${V&&S.isMuted?"bg-red-600/20 border-2 border-red-500/40 active:bg-red-600/40":V?"bg-green-600/20 border-2 border-green-500/40 active:bg-green-600/40":"bg-white/5 border-2 border-white/10 active:bg-white/10"}`,children:V&&S.isMuted?a.jsx(Fl,{size:24,weight:"fill",className:"text-red-400"}):V?a.jsx(Vn,{size:24,weight:"fill",className:"text-green-400"}):a.jsx(Vn,{size:24,weight:"light",className:"text-neutral-500"})})]}),a.jsxs("div",{className:"flex items-center justify-between px-4 pb-1",children:[a.jsxs("div",{className:"flex items-center gap-1.5",children:[w?a.jsx(SC,{size:12,className:"text-green-500/50"}):a.jsx(zI,{size:12,className:"text-neutral-700"}),a.jsxs("span",{className:"text-[10px] text-neutral-700",children:[a.jsx("span",{className:"text-green-500/50",children:L==="free"?"local":"cloud"}),S.mode?` · ${S.mode}`:""]})]}),a.jsx("span",{className:"text-[10px] text-neutral-800",children:w?V&&S.isMuted?"muted · open palm to unmute":V?"tap mic to stop":"tap mic to talk":"tap eye to start"})]})]})]})}function HQ({state:e,size:t}){switch(e){case"speaking":return a.jsx(SI,{size:t,weight:"fill",className:"text-violet-400 animate-pulse"});case"processing":return a.jsx(it,{size:t,weight:"bold",className:"text-violet-400 animate-spin"});case"listening":return a.jsx(v0,{size:t,weight:"fill",className:"text-green-400"});case"watching":return a.jsx(v0,{size:t,weight:"light",className:"text-white/30 animate-pulse"});default:return a.jsx(tS,{size:t,weight:"light",className:"text-white/15"})}}function _Q({phase:e,isActive:t}){if(!t)return a.jsx("span",{className:"text-xs text-neutral-600",children:"Inactive"});switch(e){case"confirmed":return a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx(kI,{size:14,weight:"fill",className:"text-green-400"}),a.jsx("span",{className:"text-xs text-green-400/80",children:"Present"})]});case"detected":return a.jsxs("div",{className:"flex items-center gap-1.5 animate-pulse",children:[a.jsx(K0,{size:14,weight:"fill",className:"text-amber-400"}),a.jsx("span",{className:"text-xs text-amber-400/80",children:"Detecting..."})]});case"absent":return a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx(RI,{size:14,weight:"light",className:"text-neutral-600"}),a.jsx("span",{className:"text-xs text-neutral-600",children:"No one here"})]});default:return a.jsx("span",{className:"text-xs text-neutral-600",children:"Starting..."})}}function VQ({gesturesReady:e,isVoiceActive:t,gestureError:s}){const l=[{icon:a.jsx(pS,{size:16,weight:"fill",className:"text-cyan-400"}),label:"Open palm",action:"Mute / unmute"},{icon:a.jsx(n3,{size:16,weight:"fill",className:"text-green-400"}),label:"Thumbs up",action:"Good response"},{icon:a.jsx(a3,{size:16,weight:"fill",className:"text-red-400"}),label:"Thumbs down",action:"Bad response"},{icon:a.jsx(kn,{size:16,weight:"fill",className:"text-amber-400"}),label:"Point up",action:"Interrupt AI"},{icon:a.jsx(kn,{size:16,weight:"fill",className:"text-violet-400"}),label:"Peace sign",action:"Easter egg"},{icon:a.jsx(bo,{size:16,weight:"fill",className:"text-pink-400"}),label:"I love you",action:"Easter egg"}];return a.jsxs("div",{className:"h-full flex flex-col items-center justify-center px-6",children:[a.jsx("p",{className:"text-sm text-neutral-500 mb-4",children:t?"Speak naturally or use gestures":"Tap mic to talk, or use gestures"}),a.jsx("div",{className:"w-full max-w-xs space-y-1.5",children:l.map(o=>a.jsxs("div",{className:"flex items-center gap-3 px-3 py-1.5 rounded-lg bg-white/[0.02] border border-white/[0.04]",children:[a.jsx("div",{className:"w-6 flex justify-center shrink-0",children:o.icon}),a.jsx("span",{className:"text-xs text-neutral-400 flex-1",children:o.label}),a.jsx("span",{className:"text-[10px] text-neutral-600",children:o.action})]},o.label))}),!e&&a.jsx("div",{className:"flex items-center gap-2 mt-4",children:s?a.jsx("span",{className:"text-[10px] text-neutral-600",children:"Gestures unavailable"}):a.jsxs(a.Fragment,{children:[a.jsx(it,{size:12,className:"text-cyan-400/40 animate-spin"}),a.jsx("span",{className:"text-[10px] text-neutral-600",children:"Loading gesture model..."})]})}),a.jsx("p",{className:"text-[10px] text-neutral-700 mt-4 text-center max-w-xs",children:"Hold any gesture steady for a moment"})]})}const TQ=[{slug:"webhooks",label:"Webhooks"},{slug:"browser",label:"Browser"},{slug:"eye",label:"Eye"},{slug:"settings",label:"Settings"}];function LQ(){return bs("webhooks"),a.jsx(ys,{tabs:TQ,pageId:"control-room",children:e=>a.jsxs("div",{className:"flex-1 min-h-0 overflow-auto",children:[e==="webhooks"&&a.jsx(ZH,{}),e==="browser"&&a.jsx(HH,{}),e==="eye"&&a.jsx(_H,{}),e==="settings"&&a.jsx(eZ,{})]})})}const kQ=[{to:"/schedules",icon:vo,color:"blue",title:"Schedules",description:"Set up recurring tasks on a cron schedule. Agents run automatically at the times you define.",features:[{icon:VI,label:"Cron expressions"},{icon:IM,label:"Run history"}]},{to:"/automations",icon:ka,color:"amber",title:"Automations",description:"Build event-driven flows triggered by webhooks, schedules, or manual input. Chain multiple steps together.",features:[{icon:IS,label:"Webhook triggers"},{icon:uS,label:"Visual builder"}]}],RQ={blue:{border:"border-blue-500/20 hover:border-blue-500/30",bg:"hover:bg-blue-500/[0.03]",iconBg:"bg-blue-500/10"},amber:{border:"border-amber-500/20 hover:border-amber-500/30",bg:"hover:bg-amber-500/[0.03]",iconBg:"bg-amber-500/10"}};function DQ(){const{data:e}=ye("/api/schedules"),{data:t}=ye("/api/automations"),s={"/schedules":(e==null?void 0:e.length)??0,"/automations":(t==null?void 0:t.length)??0};return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Workflows",subtitle:"Automate recurring tasks and event-driven flows"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:kQ.map((l,o)=>{const c=RQ[l.color],d=s[l.to]??0;return a.jsx(He.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3,delay:o*.08},children:a.jsxs(Be,{to:l.to,className:`block border ${c.border} ${c.bg} bg-white/[0.02] rounded-lg p-5 transition-all group`,children:[a.jsxs("div",{className:"flex items-start justify-between mb-3",children:[a.jsx("div",{className:`w-10 h-10 rounded-lg ${c.iconBg} flex items-center justify-center`,children:a.jsx(l.icon,{size:20,weight:"bold",className:"text-white"})}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("span",{className:"text-xs text-neutral-400",children:[d," ",d===1?"item":"items"]}),a.jsx(go,{size:16,className:"text-neutral-500 group-hover:text-white group-hover:translate-x-0.5 transition-all"})]})]}),a.jsx("h3",{className:"text-sm font-semibold text-white mb-1",children:l.title}),a.jsx("p",{className:"text-xs text-neutral-400 mb-4 leading-relaxed",children:l.description}),a.jsx("div",{className:"flex gap-2",children:l.features.map(h=>a.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] bg-white/[0.04] border border-white/[0.06] px-2 py-1 rounded-full text-neutral-400",children:[a.jsx(h.icon,{size:10}),h.label]},h.label))})]})},l.to)})})]})}function Hn(e){return Number.isFinite(e)?Math.abs(e)>=1e6?`${(e/1e6).toFixed(1)}M`:Math.abs(e)>=1e3?`${(e/1e3).toFixed(1)}K`:String(e):"0"}function Pt(e){return e>=1e5?`$${(e/1e5).toFixed(1)}K`:`$${(e/100).toFixed(e>=1e3?0:2)}`}function VH(e){if(e===null||!Number.isFinite(e))return".";const t=Math.floor(e/1e3);if(t<60)return`${t}s ago`;const s=Math.floor(t/60);if(s<60)return`${s}m ago`;const l=Math.floor(s/60);return l<48?`${l}h ago`:`${Math.floor(l/24)}d ago`}function Pr(e){const t=/[zZ]|[+-]\d{2}:?\d{2}$/.test(e)?e:e.replace(" ","T")+"Z",s=new Date(t).getTime();return Number.isFinite(s)?VH(Date.now()-s):"."}function FQ(e){return e==="pass"?"text-success":e==="warning"?"text-warning":e==="fail"||e==="error"?"text-critical":"text-neutral-400"}function mf(e){return e==="pass"?"bg-success":e==="warning"?"bg-warning":e==="fail"||e==="error"?"bg-critical":"bg-neutral-500"}function OQ(e){return e?e.replace(/-/g," "):"unattributed"}function TH(e){return e?e.replace(/[-_]/g," "):"unsourced"}const zQ={"x:qualified":{color:"bg-info",label:"qualified"},"x:reached":{color:"bg-sky-400",label:"reached"},"demo:booked":{color:"bg-violet-400",label:"demo"},"trial:started":{color:"bg-amber-400",label:"trial"},"plan:paid":{color:"bg-success",label:"paid"}};function qQ({heartbeat:e,ageMs:t}){const s=e==="live"?"bg-success":e==="slow"?"bg-warning":"bg-critical",l=e==="live"?"LOOP LIVE":e==="slow"?"LOOP SLOW":"LOOP IDLE";return a.jsxs("div",{className:"inline-flex items-center gap-2",children:[a.jsxs("span",{className:"relative inline-flex w-2.5 h-2.5",children:[a.jsx(He.span,{className:`absolute inset-0 rounded-full ${s}`,animate:{opacity:e==="live"?[1,.4,1]:1},transition:{duration:1.6,repeat:e==="live"?1/0:0}}),e==="live"&&a.jsx("span",{className:`absolute inset-0 rounded-full ${s} opacity-40 animate-ping`})]}),a.jsx("span",{className:"text-[10px] uppercase tracking-widest text-neutral-400",children:l}),a.jsxs("span",{className:"text-[10px] text-neutral-600",children:["· last call ",VH(t)]})]})}function h0({label:e,value:t,sub:s,accent:l="text-white",hint:o}){return a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 bg-white/[0.01]",children:[a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:e}),o&&a.jsx("span",{className:"text-[10px] text-neutral-600",title:o,children:"ⓘ"})]}),a.jsx("p",{className:`text-2xl font-semibold mt-1 tabular-nums ${l}`,children:t}),s&&a.jsx("p",{className:"text-[11px] text-neutral-500 mt-0.5",children:s})]})}function IQ({funnel:e}){const t=[{key:"leads",label:"CRM leads",total:e.leads.total,h24:e.leads.h24,color:"bg-neutral-400"},{key:"qualified",label:"Qualified",total:e.qualified.total,h24:e.qualified.h24,color:"bg-info"},{key:"contacted",label:"Contacted",total:e.contacted.total,h24:e.contacted.h24,color:"bg-teal-400"},{key:"reached",label:"Engaged",total:e.reached.total,h24:e.reached.h24,color:"bg-sky-400"},{key:"demos",label:"Demo booked",total:e.demos.total,h24:e.demos.h24,color:"bg-violet-400"},{key:"trials",label:"Trial started",total:e.trials.total,h24:e.trials.h24,color:"bg-amber-400"},{key:"paid",label:"Paid",total:e.paid.total,h24:e.paid.h24,color:"bg-success"}],s=Math.max(1,...t.map(l=>l.total));return a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:"Sales funnel"}),a.jsxs("p",{className:"text-[10px] text-neutral-600 mt-0.5",children:["Lead → Qualified → Contacted → Engaged → Demo → Trial → Paid · counts = all time · ",a.jsx("span",{className:"text-success",children:"24h delta shown in green"})]})]}),a.jsx(Be,{to:"/contacts",className:"text-xs text-neutral-400 hover:text-white transition-colors",children:"Browse contacts →"})]}),a.jsx("div",{className:"space-y-1.5",children:t.map((l,o)=>{const c=l.total/s*100,d=o===0?null:t[o-1],h=d&&d.total>0?l.total/d.total*100:null;return a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-28 text-xs text-neutral-400 truncate",children:l.label}),a.jsxs("div",{className:"flex-1 relative h-6 rounded bg-white/[0.03] overflow-hidden",children:[a.jsx(He.div,{initial:{width:0},animate:{width:`${c}%`},transition:{duration:.5,ease:"easeOut"},className:`h-full ${l.color} opacity-60`}),a.jsxs("div",{className:"absolute inset-0 flex items-center px-2 text-xs tabular-nums",children:[a.jsx("span",{className:"text-white font-medium",children:l.total}),l.h24>0&&a.jsxs("span",{className:"text-success ml-2",children:["+",l.h24," · 24h"]}),h!==null&&l.total>0&&a.jsxs("span",{className:"ml-auto text-[10px] text-neutral-400",children:[h.toFixed(0),"% from ",d==null?void 0:d.label.toLowerCase()]})]})]})]},l.key)})})]})}function $Q({rows:e}){const t=e.reduce((l,o)=>l+o.c,0)||1,s=["bg-info","bg-success","bg-warning","bg-violet-400","bg-sky-400","bg-neutral-500"];return a.jsxs("div",{children:[a.jsx("div",{className:"flex h-2 rounded-full overflow-hidden bg-white/[0.04]",children:e.map((l,o)=>a.jsx("div",{style:{width:`${l.c/t*100}%`},className:s[o%s.length],title:`${l.source}: ${l.c}`},l.source))}),a.jsx("div",{className:"flex flex-wrap gap-x-4 gap-y-1 mt-2 text-[11px]",children:e.map((l,o)=>a.jsxs("span",{className:"text-neutral-300",children:[a.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full mr-1 align-middle ${s[o%s.length]}`}),TH(l.source)," ",a.jsx("span",{className:"text-neutral-500 ml-1",children:l.c})]},l.source))})]})}function BQ(e){const t=[];for(const s of e.pipeline.nextSteps.slice(0,6)){const l=s.stepType==="bug_report"?"bg-critical":s.stepType==="feature_request"?"bg-violet-400":s.stepType==="question"||s.stepType==="follow_up"?"bg-info":"bg-neutral-500",o=s.status==="dispatched"&&s.dispatchedKind?`${s.status} → ${s.dispatchedKind}`:s.status;t.push({ts:s.createdAt,kind:"next_step",color:l,label:`next_step · ${s.stepType.replace(/_/g," ")}`,title:`${s.contactName??"contact"} · ${o}`,body:s.text})}for(const s of e.pipeline.crmMilestones){const l=zQ[s.kind??""]??{color:"bg-info",label:s.kind??"event"};t.push({ts:s.ts,kind:"milestone",color:l.color,label:l.label,title:s.contact_name??s.title,body:s.title})}for(const s of e.findings.recent.slice(0,8))t.push({ts:s.created_at,kind:"finding",color:mf(s.verdict),label:s.experiment_id??"finding",title:s.subject??s.experiment_id??"finding",body:s.summary??""});for(const s of e.patches.recent.slice(0,5))t.push({ts:s.proposed_at,kind:"patch",color:s.outcome==="held"?"bg-success":s.outcome==="reverted"?"bg-critical":"bg-info",label:`patch · ${s.patch_mode??s.tier??""}`.trim(),title:s.commit_sha?s.commit_sha.substring(0,8):s.id.substring(0,8),body:`${s.outcome} · finding ${s.finding_id.substring(0,8)}`});for(const s of e.business.recentReflexes)t.push({ts:s.created_at,kind:"reflex",color:"bg-orange-400",label:`reflex · ${s.metric}`,title:s.action_type,body:s.outcome??`severity ${s.severity.toFixed(2)}`});return t.sort((s,l)=>s.ts<l.ts?1:-1).slice(0,20)}function PQ(){var A,C,M,S,L,V,_;const[e,t]=r.useState(0);r.useEffect(()=>{const H=setInterval(()=>t(T=>T+1),5e3);return()=>clearInterval(H)},[]);const{data:s,loading:l,error:o}=ye("/api/pulse",[e]),c=r.useMemo(()=>s?BQ(s):[],[s]);if(o)return a.jsxs("div",{className:"p-6 max-w-6xl",children:[a.jsx("h1",{className:"text-2xl font-semibold mb-2",children:"Pulse"}),a.jsxs("div",{className:"border border-critical/30 bg-critical/5 rounded-lg p-4 text-sm text-critical",children:["Couldn't load pulse. ",o]})]});if(l&&!s)return a.jsxs("div",{className:"p-6 max-w-6xl",children:[a.jsx("h1",{className:"text-2xl font-semibold mb-2",children:"Pulse"}),a.jsx("p",{className:"text-sm text-neutral-500",children:"Warming up."})]});if(!s)return null;const{pipeline:d}=s,h=s.findings.activeByVerdict,m=((A=s.patches.byOutcome.find(H=>H.outcome==="held"))==null?void 0:A.c)??0,p=((C=s.patches.byOutcome.find(H=>H.outcome==="reverted"))==null?void 0:C.c)??0,x=((M=s.patches.byOutcome.find(H=>H.outcome==="pending"))==null?void 0:M.c)??0,g=m+p+x,b=s.llm.h24.cost_cents,w=d.revenue.h24,j=b>0?w/b:0,N=((S=d.outbound.dmMessages24h.find(H=>H.direction==="inbound"))==null?void 0:S.c)??0,E=((L=d.outbound.dmMessages24h.find(H=>H.direction==="outbound"))==null?void 0:L.c)??0;return a.jsxs("div",{className:"p-6 max-w-6xl",children:[a.jsxs("div",{className:"flex items-center justify-between mb-6",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-2xl font-semibold",children:"Pulse"}),a.jsx("p",{className:"text-sm text-neutral-500 mt-0.5",children:"The system's goal is revenue. Every cycle below is measured against it."})]}),a.jsx(qQ,{heartbeat:s.heartbeat,ageMs:s.heartbeatAgeMs})]}),a.jsxs("div",{className:"border border-success/20 bg-success/[0.03] rounded-lg p-5 mb-6",children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsx("p",{className:"text-[11px] text-success uppercase tracking-wider",children:"Revenue · the north star"}),a.jsx(Be,{to:"/revenue",className:"text-xs text-neutral-400 hover:text-white transition-colors",children:"Ledger →"})]}),a.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"Last 24h"}),a.jsx("p",{className:"text-3xl font-semibold tabular-nums text-success mt-1",children:Pt(d.revenue.h24)}),a.jsxs("p",{className:"text-[11px] text-neutral-500 mt-0.5",children:["burn ",Pt(b)," · ",j>0?`${j.toFixed(2)}×`:"0×"," ratio"]})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"7 days"}),a.jsx("p",{className:"text-2xl font-semibold tabular-nums mt-1",children:Pt(d.revenue.d7)}),a.jsxs("p",{className:"text-[11px] text-neutral-500 mt-0.5",children:["avg ",Pt(Math.round(d.revenue.d7/7))," / day"]})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"30 days"}),a.jsx("p",{className:"text-2xl font-semibold tabular-nums mt-1",children:Pt(d.revenue.d30)}),a.jsxs("p",{className:"text-[11px] text-neutral-500 mt-0.5",children:[d.funnel.paid.total," paid contacts"]})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"Lifetime"}),a.jsx("p",{className:"text-2xl font-semibold tabular-nums mt-1",children:Pt(d.revenue.total)}),a.jsxs("p",{className:"text-[11px] text-neutral-500 mt-0.5",children:["MRR ",((V=s.business.latestVitals)==null?void 0:V.mrr)!==null&&((_=s.business.latestVitals)==null?void 0:_.mrr)!==void 0?`$${s.business.latestVitals.mrr.toLocaleString()}`:"not set"]})]})]})]}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg p-5 mb-6 bg-white/[0.01]",children:a.jsx(IQ,{funnel:d.funnel})}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6",children:[a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 bg-white/[0.01]",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-3",children:"Where leads come from"}),d.contactsBySource.length===0?a.jsx("p",{className:"text-xs text-neutral-600",children:"No contacts yet."}):a.jsx($Q,{rows:d.contactsBySource})]}),a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 bg-white/[0.01]",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-3",children:"Outbound dispatch · 24h"}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"X posts"}),a.jsx("p",{className:"text-xl font-semibold tabular-nums mt-1",children:d.outbound.postsLast24h.reduce((H,T)=>H+T.c,0)}),a.jsxs("p",{className:"text-[11px] text-neutral-500 mt-0.5",children:[d.outbound.postsAllTime," all time"]})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"DM msgs"}),a.jsx("p",{className:"text-xl font-semibold tabular-nums mt-1",children:N+E}),a.jsxs("p",{className:"text-[11px] text-neutral-500 mt-0.5",children:[N," in · ",E," out"]})]}),a.jsxs("div",{className:"col-span-2",children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider mb-1",children:"DM threads linked to CRM"}),a.jsx("div",{className:"h-1.5 rounded-full bg-white/[0.04] overflow-hidden",children:a.jsx("div",{className:"h-full bg-success/60",style:{width:`${d.outbound.dmThreads>0?d.outbound.dmThreadsWithContact/d.outbound.dmThreads*100:0}%`}})}),a.jsxs("p",{className:"text-[11px] text-neutral-500 mt-1",children:[d.outbound.dmThreadsWithContact," of ",d.outbound.dmThreads," threads attributed"]})]})]})]}),a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 bg-white/[0.01]",children:[a.jsxs("div",{className:"flex items-start justify-between mb-3",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:"Human-in-the-loop"}),a.jsx(Be,{to:"/approvals",className:"text-[10px] text-neutral-400 hover:text-white transition-colors",children:"Queue →"})]}),a.jsx("p",{className:`text-3xl font-semibold tabular-nums ${d.approvalsPending>0?"text-warning":"text-neutral-400"}`,children:d.approvalsPending}),a.jsx("p",{className:"text-[11px] text-neutral-500 mt-1",children:"tasks awaiting approval. The loop stalls on the slowest human."})]})]}),a.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-6",children:[a.jsx(h0,{label:"Cost per lead",value:Pt(d.efficiency.costPerLeadCents),sub:`${d.funnel.leads.total} leads · ${Pt(d.efficiency.totalBurnCents)} total burn`,hint:"All-time LLM burn ÷ all-time CRM leads. The loop's cost of discovering one human."}),a.jsx(h0,{label:"Cost per qualified",value:d.funnel.qualified.total>0?Pt(d.efficiency.costPerQualifiedCents):".",sub:`${d.funnel.qualified.total} qualified`,accent:d.funnel.qualified.total>0?"text-info":"text-neutral-500",hint:"Cost to produce a buyer-intent-qualified lead."}),a.jsx(h0,{label:"Cost per paid",value:d.funnel.paid.total>0?Pt(d.efficiency.costPerPaidCents):".",sub:d.funnel.paid.total>0?`${d.funnel.paid.total} paid`:"no paid conversions yet",accent:d.funnel.paid.total>0?"text-success":"text-neutral-500",hint:"Total burn ÷ paid conversions. This is the number that has to shrink."}),a.jsx(h0,{label:"DM threads unlinked",value:d.dmHealth.threadsUnlinked,sub:`${d.dmHealth.threadsLinked} of ${d.dmHealth.threadsTotal} linked to a contact`,accent:d.dmHealth.threadsUnlinked>0?"text-warning":"text-success",hint:"Every unlinked DM thread is a lead the loop is talking to but can't route revenue events back to."})]}),d.unlinkedThreads.length>0&&a.jsxs("div",{className:"border border-warning/20 bg-warning/[0.02] rounded-lg p-5 mb-6",children:[a.jsx("div",{className:"flex items-center justify-between mb-3",children:a.jsxs("div",{children:[a.jsx("p",{className:"text-[11px] text-warning uppercase tracking-wider",children:"Unlinked DM threads · leak"}),a.jsx("p",{className:"text-[10px] text-neutral-500 mt-0.5",children:"These conversations aren't bound to a CRM contact. Without a contact row, the funnel doesn't count them and revenue can't attribute."})]})}),a.jsx("ul",{className:"divide-y divide-white/[0.04]",children:d.unlinkedThreads.map(H=>a.jsxs("li",{className:"flex items-start gap-3 py-2 text-xs",children:[a.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full mt-1.5 bg-warning flex-none"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("p",{className:"text-neutral-200 truncate font-medium",children:[H.primary_name??"Unknown sender",H.counterparty_user_id?a.jsxs("span",{className:"text-[10px] text-neutral-500 ml-2",children:["uid ",H.counterparty_user_id]}):a.jsx("span",{className:"text-[10px] text-critical ml-2",children:"no user id"})]}),H.last_preview&&a.jsxs("p",{className:"text-neutral-500 truncate mt-0.5",children:['"',H.last_preview,'"']})]}),a.jsx("span",{className:"text-[10px] text-neutral-600 flex-none tabular-nums",children:Pr(H.last_seen_at)})]},H.id))})]}),a.jsxs("div",{className:"border border-info/20 bg-info/[0.03] rounded-lg p-5 mb-6",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-[11px] text-info uppercase tracking-wider",children:"Next steps · conversation → loop"}),a.jsx("p",{className:"text-[10px] text-neutral-500 mt-0.5",children:"The analyst reads each contact's DM thread (with screenshots via vision) and extracts actionable items. The dispatcher routes them — bugs → proposal findings, follow-ups/questions → approval tasks."})]}),a.jsxs("div",{className:"flex items-center gap-3 text-[11px]",children:[a.jsxs("span",{className:"text-warning",children:["open ",d.nextStepsRollup.open]}),a.jsxs("span",{className:"text-info",children:["dispatched ",d.nextStepsRollup.dispatched]}),a.jsxs("span",{className:"text-success",children:["shipped ",d.nextStepsRollup.shipped]}),d.nextStepsRollup.confirmed>0&&a.jsxs("span",{className:"text-success font-medium",children:["· ",d.nextStepsRollup.confirmed," confirmed"]}),d.nextStepsRollup.unconfirmed>0&&a.jsxs("span",{className:"text-critical",children:["unconfirmed ",d.nextStepsRollup.unconfirmed]}),a.jsxs("span",{className:"text-neutral-500",children:["ignored ",d.nextStepsRollup.ignored]})]})]}),d.nextSteps.length===0?a.jsx("p",{className:"text-xs text-neutral-600",children:"No next-steps extracted yet. Waiting for the analyst's first tick."}):a.jsx("ul",{className:"divide-y divide-white/[0.04]",children:d.nextSteps.slice(0,12).map(H=>{const T=H.sendConfirmed===!0?"bg-success":H.sendConfirmed===!1?"bg-critical":H.status==="open"?"bg-warning":H.status==="dispatched"?"bg-info":H.status==="shipped"?"bg-success":"bg-neutral-600",D=H.urgency==="high"?"!":H.urgency==="medium"?"·":" ";return a.jsxs("li",{className:"flex items-start gap-3 py-2.5 text-xs",children:[a.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full mt-1.5 flex-none ${T}`}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[a.jsxs("span",{className:"text-[10px] uppercase tracking-wider text-neutral-500",children:[D," ",H.stepType.replace(/_/g," ")]}),H.contactId?a.jsx(Be,{to:`/contacts/${H.contactId}`,className:"text-neutral-300 font-medium truncate hover:text-white hover:underline",children:H.contactName??"Unknown"}):a.jsx("span",{className:"text-neutral-300 font-medium truncate",children:H.contactName??"Unknown"}),a.jsx("span",{className:`text-[10px] uppercase tracking-wider ${H.status==="open"?"text-warning":H.status==="dispatched"?"text-info":H.status==="shipped"?"text-success":"text-neutral-500"}`,children:H.status}),H.dispatchedKind&&a.jsxs("span",{className:"text-[10px] text-neutral-500",children:["→ ",H.dispatchedKind.replace(/_/g," ")]}),H.sendConfirmed===!0&&a.jsx("span",{className:"text-[10px] text-success uppercase tracking-wider font-medium",title:H.realMessageId,children:"✓ confirmed"}),H.sendConfirmed===!1&&a.jsx("span",{className:"text-[10px] text-critical uppercase tracking-wider font-medium",children:"✗ never landed"})]}),a.jsx("p",{className:"text-neutral-400 mt-0.5 line-clamp-2",children:H.text}),H.draftReply?a.jsxs("p",{className:"text-neutral-300 mt-1 italic line-clamp-2 border-l-2 border-info/30 pl-2",children:['"',H.draftReply,'"']}):H.suggestedAction?a.jsxs("p",{className:"text-neutral-500 mt-0.5 italic line-clamp-1",children:["→ ",H.suggestedAction]}):null]}),a.jsx("span",{className:"text-[10px] text-neutral-600 flex-none tabular-nums",children:Pr(H.createdAt)})]},H.id)})})]}),d.replyQueue.counts.pending+d.replyQueue.counts.approved+d.replyQueue.counts.autoApplied+d.replyQueue.counts.applied>0&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 mb-6 bg-white/[0.01]",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:"DM reply queue"}),a.jsx("p",{className:"text-[10px] text-neutral-600 mt-0.5",children:"Dispatched next-steps land here as x_dm_outbound approvals. The reply dispatcher consumes approved rows and sends the DM via the authenticated browser."})]}),d.replyQueue.lastShippedAt&&a.jsxs("span",{className:"text-[10px] text-success",children:["last shipped ",Pr(d.replyQueue.lastShippedAt)]})]}),a.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-2 mb-4",children:[a.jsxs("div",{className:"border border-warning/20 bg-warning/[0.04] rounded px-3 py-2",children:[a.jsx("p",{className:"text-[10px] text-warning uppercase tracking-wider",children:"Pending"}),a.jsx("p",{className:"text-lg font-semibold tabular-nums mt-0.5",children:d.replyQueue.counts.pending})]}),a.jsxs("div",{className:"border border-info/20 bg-info/[0.04] rounded px-3 py-2",children:[a.jsx("p",{className:"text-[10px] text-info uppercase tracking-wider",children:"Approved"}),a.jsx("p",{className:"text-lg font-semibold tabular-nums mt-0.5",children:d.replyQueue.counts.approved})]}),a.jsxs("div",{className:"border border-info/20 bg-info/[0.04] rounded px-3 py-2",children:[a.jsx("p",{className:"text-[10px] text-info uppercase tracking-wider",children:"Auto-applied"}),a.jsx("p",{className:"text-lg font-semibold tabular-nums mt-0.5",children:d.replyQueue.counts.autoApplied})]}),a.jsxs("div",{className:"border border-success/20 bg-success/[0.04] rounded px-3 py-2",children:[a.jsx("p",{className:"text-[10px] text-success uppercase tracking-wider",children:"Shipped"}),a.jsx("p",{className:"text-lg font-semibold tabular-nums mt-0.5",children:d.replyQueue.counts.applied})]}),a.jsxs("div",{className:"border border-critical/20 bg-critical/[0.04] rounded px-3 py-2",children:[a.jsx("p",{className:"text-[10px] text-critical uppercase tracking-wider",children:"Rejected"}),a.jsx("p",{className:"text-lg font-semibold tabular-nums mt-0.5",children:d.replyQueue.counts.rejected})]})]}),d.replyQueue.recent.length>0&&a.jsx("ul",{className:"divide-y divide-white/[0.04]",children:d.replyQueue.recent.map(H=>{const T=H.status==="pending"?"bg-warning":H.status==="approved"||H.status==="auto_applied"?"bg-info":H.status==="applied"?"bg-success":H.status==="rejected"?"bg-critical":"bg-neutral-500",D=H.status==="pending"?"text-warning":H.status==="approved"||H.status==="auto_applied"?"text-info":H.status==="applied"?"text-success":H.status==="rejected"?"text-critical":"text-neutral-500",F=a.jsxs(a.Fragment,{children:[a.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full mt-1.5 flex-none ${T}`}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:`text-[10px] uppercase tracking-wider ${D}`,children:H.status.replace("_"," ")}),a.jsx("span",{className:"text-neutral-300 truncate",children:H.contactName??"contact"})]}),a.jsxs("p",{className:"text-neutral-500 truncate mt-0.5",children:['"',H.textPreview,'"']})]}),a.jsx("span",{className:"text-[10px] text-neutral-600 flex-none tabular-nums",children:Pr(H.ts)})]});return H.conversationPair?a.jsx("li",{className:"text-xs",children:a.jsx(Be,{to:`/messages?pair=${encodeURIComponent(H.conversationPair)}`,className:"flex items-start gap-3 py-2 hover:bg-white/[0.02] -mx-2 px-2 rounded",children:F})},H.approvalId):a.jsx("li",{className:"flex items-start gap-3 py-2 text-xs",children:F},H.approvalId)})})]}),d.eventsByKind.length>0&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 mb-6 bg-white/[0.01]",children:[a.jsx("div",{className:"flex items-center justify-between mb-3",children:a.jsxs("div",{children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:"Contact events · last 30 days"}),a.jsx("p",{className:"text-[10px] text-neutral-600 mt-0.5",children:"Every meaningful pipeline interaction, whether or not it maps to a funnel stage."})]})}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-2",children:d.eventsByKind.map(H=>a.jsxs("div",{className:"border border-white/[0.06] rounded px-3 py-2 bg-white/[0.01]",children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider truncate",children:H.kind}),a.jsx("p",{className:"text-lg font-semibold tabular-nums mt-0.5",children:H.c})]},H.kind))})]}),d.revenueByContact.length>0&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 mb-6 bg-white/[0.01]",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-3",children:"Top revenue contributors"}),a.jsx("div",{className:"divide-y divide-white/[0.04]",children:d.revenueByContact.map(H=>a.jsxs(Be,{to:H.contact_id?`/contacts/${H.contact_id}`:"/contacts",className:"flex items-center justify-between py-2 text-sm hover:bg-white/[0.02] transition-colors px-2 -mx-2 rounded",children:[a.jsxs("span",{className:"truncate",children:[a.jsx("span",{className:"text-neutral-200",children:H.name??"Unknown"}),H.source&&a.jsx("span",{className:"text-[10px] text-neutral-500 ml-2 uppercase tracking-wider",children:TH(H.source)})]}),a.jsx("span",{className:"tabular-nums text-success ml-4",children:Pt(H.cents)})]},H.contact_id??H.name??"unknown"))})]}),a.jsx("div",{className:"mb-3 flex items-center justify-between",children:a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:"Autonomous loop · the engine behind the funnel"})}),a.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-6",children:[a.jsx(h0,{label:"Loop Calls · 5m",value:Hn(s.llm.m5.calls),sub:`${Pt(s.llm.m5.cost_cents)} · ${Hn(s.llm.m5.tokens)} tok`,hint:"LLM calls the runtime made in the last 5 minutes"}),a.jsx(h0,{label:"Loop Calls · 1h",value:Hn(s.llm.h1.calls),sub:`${Pt(s.llm.h1.cost_cents)} · ${Hn(s.llm.h1.tokens)} tok`,accent:"text-info"}),a.jsx(h0,{label:"Findings · Active",value:Hn(s.findings.activeTotal),sub:`${Hn(s.findings.rate5m)} new/5m`,hint:"Self-bench experiments writing verdicts into the ledger"}),a.jsx(h0,{label:"Autonomous Patches",value:g,sub:`${m} held · ${p} reverted · ${x} pending`,accent:g>0?"text-success":"text-neutral-400",hint:"Patches the loop authored against its own source. Layer 5 reverts bad ones."})]}),a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 mb-6 bg-white/[0.01]",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:"Findings verdict distribution"}),a.jsx("p",{className:"text-[10px] text-neutral-600 mt-0.5",children:"active, all-time · warnings dominate when the loop is proposing, pass dominates when it's validating"})]}),a.jsx(Be,{to:"/activity",className:"text-xs text-neutral-400 hover:text-white transition-colors",children:"Browse →"})]}),a.jsx("div",{className:"flex h-2 rounded-full overflow-hidden bg-white/[0.04]",children:["pass","warning","fail","error"].map(H=>{const T=h.find(F=>F.verdict===H);if(!T)return null;const D=h.reduce((F,P)=>F+P.c,0)||1;return a.jsx("div",{style:{width:`${T.c/D*100}%`},className:mf(H),title:`${H}: ${T.c}`},H)})}),a.jsx("div",{className:"flex items-center gap-4 mt-2 text-[11px]",children:h.map(H=>a.jsxs("span",{className:FQ(H.verdict),children:[a.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full mr-1 align-middle ${mf(H.verdict)}`}),H.verdict," ",Hn(H.c)]},H.verdict))})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 mb-6",children:[a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 bg-white/[0.01]",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-1",children:"Top models · last hour"}),a.jsx("p",{className:"text-[10px] text-neutral-600 mb-3",children:"Where the LLM budget actually went."}),s.llm.topModels.length===0?a.jsx("p",{className:"text-xs text-neutral-600",children:"No calls in the last hour."}):a.jsx("div",{className:"space-y-2",children:s.llm.topModels.map(H=>{const T=Math.max(...s.llm.topModels.map(F=>F.calls)),D=H.calls/T*100;return a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between text-xs mb-1",children:[a.jsx("span",{className:"truncate mr-2 text-neutral-300",children:H.model}),a.jsxs("span",{className:"text-neutral-500 tabular-nums",children:[Hn(H.calls)," · ",Pt(H.cost_cents)]})]}),a.jsx("div",{className:"h-1 rounded-full bg-white/[0.04] overflow-hidden",children:a.jsx("div",{className:"h-full bg-info/60",style:{width:`${D}%`}})})]},H.model)})})]}),a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 bg-white/[0.01]",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-1",children:"Experiment burn · last hour"}),a.jsx("p",{className:"text-[10px] text-neutral-600 mb-3",children:"Cost attributed per self-bench experiment. Unattributed = system calls."}),s.llm.topExperiments.length===0?a.jsx("p",{className:"text-xs text-neutral-600",children:"No attributed experiment activity."}):a.jsx("div",{className:"space-y-2",children:s.llm.topExperiments.map(H=>{const T=Math.max(...s.llm.topExperiments.map(F=>F.cost_cents||F.c)),D=(H.cost_cents||H.c)/T*100;return a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between text-xs mb-1",children:[a.jsx("span",{className:"truncate mr-2 text-neutral-300",children:OQ(H.experiment_id)}),a.jsxs("span",{className:"text-neutral-500 tabular-nums",children:[Hn(H.c)," · ",Pt(H.cost_cents)]})]}),a.jsx("div",{className:"h-1 rounded-full bg-white/[0.04] overflow-hidden",children:a.jsx("div",{className:"h-full bg-warning/60",style:{width:`${D}%`}})})]},H.experiment_id)})})]})]}),a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 mb-6 bg-white/[0.01]",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-1",children:"Homeostasis reflexes"}),a.jsx("p",{className:"text-[10px] text-neutral-600 mb-3",children:"The biological layer fires when revenue-vs-burn, bios, or load cross a threshold. Silence here means vitals are in range."}),s.business.recentReflexes.length===0?a.jsx("p",{className:"text-xs text-neutral-600",children:"No reflexes fired recently."}):a.jsx("ul",{className:"space-y-2",children:s.business.recentReflexes.map((H,T)=>a.jsxs("li",{className:"flex items-start gap-3 text-xs",children:[a.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full mt-1.5 bg-orange-400"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("p",{className:"text-neutral-200 truncate",children:[a.jsx("span",{className:"font-medium",children:H.metric}),a.jsxs("span",{className:"text-neutral-500",children:[" · ",H.action_type]})]}),a.jsxs("p",{className:"text-neutral-500 truncate",children:[H.outcome??`severity ${H.severity.toFixed(2)}`," · ",Pr(H.created_at)]})]})]},`${H.metric}-${H.created_at}-${T}`))})]}),a.jsxs("div",{className:"border border-white/[0.08] rounded-lg bg-white/[0.01]",children:[a.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-b border-white/[0.06]",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:"Live stream"}),a.jsx("p",{className:"text-[10px] text-neutral-600 mt-0.5",children:"CRM milestones · findings · patches · reflexes. newest first"})]}),a.jsx("span",{className:"text-[10px] text-neutral-600",children:"auto-refresh · 5s"})]}),a.jsx("div",{className:"divide-y divide-white/[0.04]",children:a.jsx(la,{initial:!1,children:c.map((H,T)=>a.jsxs(He.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0},className:"flex items-start gap-3 px-5 py-2.5 text-xs hover:bg-white/[0.02] transition-colors",children:[a.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full mt-1.5 flex-none ${H.color}`}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"text-neutral-500 uppercase tracking-wider text-[10px]",children:H.label}),a.jsx("span",{className:"text-neutral-300 truncate",children:H.title})]}),H.body&&a.jsx("p",{className:"text-neutral-500 truncate mt-0.5",children:H.body})]}),a.jsx("span",{className:"text-[10px] text-neutral-600 flex-none tabular-nums",children:Pr(H.ts)})]},`${H.kind}-${H.ts}-${T}`))})})]})]})}function Sm(){return a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 space-y-3",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx(nn,{className:"h-4 w-32"}),a.jsx(nn,{className:"h-5 w-16 rounded"})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(nn,{className:"h-2 w-2 rounded-full"}),a.jsx(nn,{className:"h-3 w-20"})]}),a.jsx(nn,{className:"h-8 w-24 rounded"})]})}function UQ(){const[e,t]=r.useState(0);r.useEffect(()=>{const o=setInterval(()=>t(c=>c+1),5e3);return()=>clearInterval(o)},[]);const{data:s,loading:l}=ye("/api/workspaces",[e]);return a.jsxs("div",{className:"p-6",children:[a.jsx(ze,{title:"Businesses",action:a.jsx(Be,{to:"/new-business",className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md text-sm font-medium bg-white/[0.06] hover:bg-white/[0.10] text-neutral-200 transition-colors",children:"+ New Business"})}),l&&!s?a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[a.jsx(Sm,{}),a.jsx(Sm,{}),a.jsx(Sm,{})]}):!s||s.length===0?a.jsx(bt,{title:"No businesses yet.",description:"Each business runs its own AI team on its own port. Create one to get started.",action:a.jsx(Be,{to:"/new-business",className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md text-sm font-medium bg-white/[0.06] hover:bg-white/[0.10] text-neutral-200 transition-colors",children:"+ New Business"})}):a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:s.map(o=>{const c=o.port?`http://localhost:${o.port}/ui/`:null;return a.jsxs("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-5 flex flex-col gap-3",children:[a.jsxs("div",{className:"flex items-start justify-between gap-2",children:[a.jsx("span",{className:"text-sm font-semibold text-neutral-100 leading-snug",children:o.displayName}),a.jsx("span",{className:"shrink-0 inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-white/5 text-neutral-400 capitalize",children:o.mode})]}),a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx("span",{className:`inline-block h-2 w-2 rounded-full ${o.running?"bg-green-500":"bg-neutral-600"}`}),a.jsx("span",{className:"text-xs text-neutral-400",children:o.running?"Running":"Stopped"})]}),a.jsx("div",{className:"mt-auto pt-1",children:o.isActive?a.jsx("span",{className:"text-xs font-medium text-green-400",children:"You're here"}):c?a.jsx("a",{href:c,className:"inline-flex items-center px-3 py-1.5 rounded-md text-xs font-medium bg-white/[0.06] hover:bg-white/[0.10] text-neutral-200 transition-colors",children:"Switch"}):a.jsx("span",{className:"text-xs text-neutral-600",children:"Not started"})})]},o.name)})})]})}function GQ(){const e=Ka(),t=kC({mode:"new-workspace",onWorkspaceCreated:()=>e("/portfolio")}),s=async()=>{await t.completeOnboarding()};switch(t.screen){case"business_info":return a.jsx(RC,{businessName:t.businessName,businessType:t.businessType,businessDescription:t.businessDescription,onChangeName:t.setBusinessName,onChangeType:t.setBusinessType,onChangeDescription:t.setBusinessDescription,onContinue:t.goToFounderStage,onBack:()=>e("/portfolio")});case"founder_stage":return a.jsx(DC,{founderPath:t.founderPath,founderFocus:t.founderFocus,onChangePath:t.setFounderPath,onChangeFocus:t.setFounderFocus,onContinue:t.goToAgentDiscovery,onBack:t.goToBusinessInfo});case"agent_discovery":return a.jsx(FC,{modelAvailable:t.modelAvailable,businessType:t.businessType,founderPath:t.founderPath,founderFocus:t.founderFocus,chatMessages:t.chatMessages,presets:t.presets,discoveredGoal:t.discoveredGoal,onSendMessage:t.sendChatMessage,onContinue:t.goToAgentSelection,onBack:t.goToFounderStage,streaming:t.chatStreaming});case"agent_selection":return a.jsx(OC,{presets:t.presets,selectedIds:t.selectedAgentIds,onToggle:t.toggleAgent,onContinue:t.goToIntegrationSetup,onBack:t.goToAgentDiscovery});case"integration_setup":return a.jsx(zC,{integrations:t.integrations,integrationValues:t.integrationValues,onSetValue:t.setIntegrationValue,onSkipIntegration:t.skipIntegration,skippedIds:t.skippedIntegrationIds,onContinue:t.goToReady,onBack:t.goToAgentSelection});case"ready":return a.jsx(qC,{selectedModel:t.selectedModel,loading:t.loading,error:t.error,onLaunch:s,businessName:t.businessName,agentCount:t.selectedAgentIds.size,launchLabel:"Create Business"});default:return null}}function YQ({children:e}){return cn()?a.jsx(a.Fragment,{children:e}):a.jsx(Zm,{to:"/login",replace:!0})}function KQ(){return a.jsxs(yN,{children:[a.jsxs(iL,{children:[a.jsx(Ne,{path:"/login",element:a.jsx(JI,{})}),a.jsx(Ne,{path:"/onboarding",element:a.jsx(c$,{})}),a.jsx(Ne,{path:"/new-business",element:a.jsx(GQ,{})}),a.jsxs(Ne,{path:"/*",element:a.jsx(YQ,{children:a.jsx(QI,{})}),children:[a.jsx(Ne,{index:!0,element:a.jsx(PQ,{})}),a.jsx(Ne,{path:"chat",element:a.jsx(hB,{})}),a.jsx(Ne,{path:"dashboard",element:a.jsx(IC,{})}),a.jsx(Ne,{path:"agents",element:a.jsx(v$,{})}),a.jsx(Ne,{path:"agents/:id",element:a.jsx(N$,{})}),a.jsx(Ne,{path:"tasks",element:a.jsx(BC,{})}),a.jsx(Ne,{path:"tasks/:id",element:a.jsx(L$,{})}),a.jsx(Ne,{path:"contacts",element:a.jsx(FB,{})}),a.jsx(Ne,{path:"contacts/:id",element:a.jsx(PB,{})}),a.jsx(Ne,{path:"projects",element:a.jsx(tZ,{})}),a.jsx(Ne,{path:"projects/:id",element:a.jsx(JB,{})}),a.jsx(Ne,{path:"templates",element:a.jsx(mH,{})}),a.jsx(Ne,{path:"automations",element:a.jsx(aZ,{})}),a.jsx(Ne,{path:"automations/new",element:a.jsx(dj,{})}),a.jsx(Ne,{path:"automations/:id/edit",element:a.jsx(dj,{})}),a.jsx(Ne,{path:"connections",element:a.jsx(uH,{})}),a.jsx(Ne,{path:"approvals",element:a.jsx(PC,{})}),a.jsx(Ne,{path:"activity",element:a.jsx(GC,{})}),a.jsx(Ne,{path:"schedules",element:a.jsx(KC,{})}),a.jsx(Ne,{path:"knowledge",element:a.jsx(DK,{})}),a.jsx(Ne,{path:"work",element:a.jsx(IK,{})}),a.jsx(Ne,{path:"people",element:a.jsx(LX,{})}),a.jsx(Ne,{path:"intelligence",element:a.jsx(RX,{})}),a.jsx(Ne,{path:"growth",element:a.jsx(WX,{})}),a.jsx(Ne,{path:"control-room",element:a.jsx(LQ,{})}),a.jsx(Ne,{path:"messages",element:a.jsx(xB,{})}),a.jsx(Ne,{path:"conversations",element:a.jsx(Zm,{to:"/messages",replace:!0})}),a.jsx(Ne,{path:"conversations/:pair",element:a.jsx(Zm,{to:"/messages",replace:!0})}),a.jsx(Ne,{path:"workflows",element:a.jsx(DQ,{})}),a.jsx(Ne,{path:"webhook-events",element:a.jsx(ZH,{})}),a.jsx(Ne,{path:"goals",element:a.jsx(AH,{})}),a.jsx(Ne,{path:"revenue",element:a.jsx(NH,{})}),a.jsx(Ne,{path:"messaging",element:a.jsx(wH,{})}),a.jsx(Ne,{path:"peers",element:a.jsx(pH,{})}),a.jsx(Ne,{path:"team",element:a.jsx(fH,{})}),a.jsx(Ne,{path:"browser",element:a.jsx(HH,{})}),a.jsx(Ne,{path:"briefings",element:a.jsx(dH,{})}),a.jsx(Ne,{path:"podcast",element:a.jsx(hH,{})}),a.jsx(Ne,{path:"eye",element:a.jsx(_H,{})}),a.jsx(Ne,{path:"marketing",element:a.jsx(MH,{})}),a.jsx(Ne,{path:"social",element:a.jsx(CH,{})}),a.jsx(Ne,{path:"portfolio",element:a.jsx(UQ,{})}),a.jsx(Ne,{path:"settings",element:a.jsx(eZ,{})})]})]}),a.jsx($I,{})]})}iT.createRoot(document.getElementById("root")).render(a.jsx(r.StrictMode,{children:a.jsx(VL,{basename:"/ui",children:a.jsx(KQ,{})})}));