ohwow 0.4.3 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.js +1 -1
- package/dist/index.js +702 -667
- package/dist/mcp-server/index.js +4 -4
- package/dist/migrations/069-rag-corpus-stats.sql +16 -0
- package/dist/migrations/070-connectors.sql +25 -0
- package/dist/migrations/071-embedding-columns.sql +9 -0
- package/dist/migrations/072-biological-org.sql +45 -0
- package/dist/migrations/072-document-processing-queue.sql +17 -0
- package/dist/migrations/073-knowledge-graph.sql +31 -0
- package/dist/migrations/074-peer-knowledge-count.sql +3 -0
- package/dist/migrations/075-bpp-wiring.sql +39 -0
- package/dist/web/assets/index-BvOfuQPF.js +100 -0
- package/dist/web/assets/index-C47z59TE.css +1 -0
- package/dist/web/index.html +2 -2
- package/package.json +3 -3
- package/dist/web/assets/index-CzPQPzpE.js +0 -100
- package/dist/web/assets/index-D_dz8KjO.css +0 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
var XC=Object.defineProperty;var QC=(e,a,l)=>a in e?XC(e,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[a]=l;var ja=(e,a,l)=>QC(e,typeof a!="symbol"?a+"":a,l);(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))i(c);new MutationObserver(c=>{for(const u of c)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function l(c){const u={};return c.integrity&&(u.integrity=c.integrity),c.referrerPolicy&&(u.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?u.credentials="include":c.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(c){if(c.ep)return;c.ep=!0;const u=l(c);fetch(c.href,u)}})();var Wi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function JC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var b2={exports:{}},Ys={};/**
|
|
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 vg;function WC(){if(vg)return Ys;vg=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function l(i,c,u){var d=null;if(u!==void 0&&(d=""+u),c.key!==void 0&&(d=""+c.key),"key"in c){u={};for(var h in c)h!=="key"&&(u[h]=c[h])}else u=c;return c=u.ref,{$$typeof:e,type:i,key:d,ref:c!==void 0?c:null,props:u}}return Ys.Fragment=a,Ys.jsx=l,Ys.jsxs=l,Ys}var bg;function eH(){return bg||(bg=1,b2.exports=WC()),b2.exports}var s=eH(),y2={exports:{}},Ee={};/**
|
|
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 yg;function tH(){if(yg)return Ee;yg=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),y=Symbol.iterator;function w(D){return D===null||typeof D!="object"?null:(D=y&&D[y]||D["@@iterator"],typeof D=="function"?D:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,A={};function j(D,te,re){this.props=D,this.context=te,this.refs=A,this.updater=re||N}j.prototype.isReactComponent={},j.prototype.setState=function(D,te){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,te,"setState")},j.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function S(){}S.prototype=j.prototype;function Z(D,te,re){this.props=D,this.context=te,this.refs=A,this.updater=re||N}var C=Z.prototype=new S;C.constructor=Z,E(C,j.prototype),C.isPureReactComponent=!0;var H=Array.isArray;function V(){}var T={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function R(D,te,re){var z=re.ref;return{$$typeof:e,type:D,key:te,ref:z!==void 0?z:null,props:re}}function O(D,te){return R(D.type,te,D.props)}function U(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function X(D){var te={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(re){return te[re]})}var K=/\/+/g;function $(D,te){return typeof D=="object"&&D!==null&&D.key!=null?X(""+D.key):te.toString(36)}function Y(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(V,V):(D.status="pending",D.then(function(te){D.status==="pending"&&(D.status="fulfilled",D.value=te)},function(te){D.status==="pending"&&(D.status="rejected",D.reason=te)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function L(D,te,re,z,q){var P=typeof D;(P==="undefined"||P==="boolean")&&(D=null);var oe=!1;if(D===null)oe=!0;else switch(P){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(D.$$typeof){case e:case a:oe=!0;break;case g:return oe=D._init,L(oe(D._payload),te,re,z,q)}}if(oe)return q=q(D),oe=z===""?"."+$(D,0):z,H(q)?(re="",oe!=null&&(re=oe.replace(K,"$&/")+"/"),L(q,te,re,"",function(Le){return Le})):q!=null&&(U(q)&&(q=O(q,re+(q.key==null||D&&D.key===q.key?"":(""+q.key).replace(K,"$&/")+"/")+oe)),te.push(q)),1;oe=0;var fe=z===""?".":z+":";if(H(D))for(var ye=0;ye<D.length;ye++)z=D[ye],P=fe+$(z,ye),oe+=L(z,te,re,P,q);else if(ye=w(D),typeof ye=="function")for(D=ye.call(D),ye=0;!(z=D.next()).done;)z=z.value,P=fe+$(z,ye++),oe+=L(z,te,re,P,q);else if(P==="object"){if(typeof D.then=="function")return L(Y(D),te,re,z,q);throw te=String(D),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return oe}function B(D,te,re){if(D==null)return D;var z=[],q=0;return L(D,z,"","",function(P){return te.call(re,P,q++)}),z}function Q(D){if(D._status===-1){var te=D._result;te=te(),te.then(function(re){(D._status===0||D._status===-1)&&(D._status=1,D._result=re)},function(re){(D._status===0||D._status===-1)&&(D._status=2,D._result=re)}),D._status===-1&&(D._status=0,D._result=te)}if(D._status===1)return D._result.default;throw D._result}var he=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},ce={map:B,forEach:function(D,te,re){B(D,function(){te.apply(this,arguments)},re)},count:function(D){var te=0;return B(D,function(){te++}),te},toArray:function(D){return B(D,function(te){return te})||[]},only:function(D){if(!U(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Ee.Activity=x,Ee.Children=ce,Ee.Component=j,Ee.Fragment=l,Ee.Profiler=c,Ee.PureComponent=Z,Ee.StrictMode=i,Ee.Suspense=f,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(D){return T.H.useMemoCache(D)}},Ee.cache=function(D){return function(){return D.apply(null,arguments)}},Ee.cacheSignal=function(){return null},Ee.cloneElement=function(D,te,re){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var z=E({},D.props),q=D.key;if(te!=null)for(P in te.key!==void 0&&(q=""+te.key),te)!k.call(te,P)||P==="key"||P==="__self"||P==="__source"||P==="ref"&&te.ref===void 0||(z[P]=te[P]);var P=arguments.length-2;if(P===1)z.children=re;else if(1<P){for(var oe=Array(P),fe=0;fe<P;fe++)oe[fe]=arguments[fe+2];z.children=oe}return R(D.type,q,z)},Ee.createContext=function(D){return D={$$typeof:d,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:u,_context:D},D},Ee.createElement=function(D,te,re){var z,q={},P=null;if(te!=null)for(z in te.key!==void 0&&(P=""+te.key),te)k.call(te,z)&&z!=="key"&&z!=="__self"&&z!=="__source"&&(q[z]=te[z]);var oe=arguments.length-2;if(oe===1)q.children=re;else if(1<oe){for(var fe=Array(oe),ye=0;ye<oe;ye++)fe[ye]=arguments[ye+2];q.children=fe}if(D&&D.defaultProps)for(z in oe=D.defaultProps,oe)q[z]===void 0&&(q[z]=oe[z]);return R(D,P,q)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(D){return{$$typeof:h,render:D}},Ee.isValidElement=U,Ee.lazy=function(D){return{$$typeof:g,_payload:{_status:-1,_result:D},_init:Q}},Ee.memo=function(D,te){return{$$typeof:p,type:D,compare:te===void 0?null:te}},Ee.startTransition=function(D){var te=T.T,re={};T.T=re;try{var z=D(),q=T.S;q!==null&&q(re,z),typeof z=="object"&&z!==null&&typeof z.then=="function"&&z.then(V,he)}catch(P){he(P)}finally{te!==null&&re.types!==null&&(te.types=re.types),T.T=te}},Ee.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},Ee.use=function(D){return T.H.use(D)},Ee.useActionState=function(D,te,re){return T.H.useActionState(D,te,re)},Ee.useCallback=function(D,te){return T.H.useCallback(D,te)},Ee.useContext=function(D){return T.H.useContext(D)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(D,te){return T.H.useDeferredValue(D,te)},Ee.useEffect=function(D,te){return T.H.useEffect(D,te)},Ee.useEffectEvent=function(D){return T.H.useEffectEvent(D)},Ee.useId=function(){return T.H.useId()},Ee.useImperativeHandle=function(D,te,re){return T.H.useImperativeHandle(D,te,re)},Ee.useInsertionEffect=function(D,te){return T.H.useInsertionEffect(D,te)},Ee.useLayoutEffect=function(D,te){return T.H.useLayoutEffect(D,te)},Ee.useMemo=function(D,te){return T.H.useMemo(D,te)},Ee.useOptimistic=function(D,te){return T.H.useOptimistic(D,te)},Ee.useReducer=function(D,te,re){return T.H.useReducer(D,te,re)},Ee.useRef=function(D){return T.H.useRef(D)},Ee.useState=function(D){return T.H.useState(D)},Ee.useSyncExternalStore=function(D,te,re){return T.H.useSyncExternalStore(D,te,re)},Ee.useTransition=function(){return T.H.useTransition()},Ee.version="19.2.4",Ee}var wg;function im(){return wg||(wg=1,y2.exports=tH()),y2.exports}var n=im(),w2={exports:{}},Ks={},A2={exports:{}},j2={};/**
|
|
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 Ag;function aH(){return Ag||(Ag=1,(function(e){function a(L,B){var Q=L.length;L.push(B);e:for(;0<Q;){var he=Q-1>>>1,ce=L[he];if(0<c(ce,B))L[he]=B,L[Q]=ce,Q=he;else break e}}function l(L){return L.length===0?null:L[0]}function i(L){if(L.length===0)return null;var B=L[0],Q=L.pop();if(Q!==B){L[0]=Q;e:for(var he=0,ce=L.length,D=ce>>>1;he<D;){var te=2*(he+1)-1,re=L[te],z=te+1,q=L[z];if(0>c(re,Q))z<ce&&0>c(q,re)?(L[he]=q,L[z]=Q,he=z):(L[he]=re,L[te]=Q,he=te);else if(z<ce&&0>c(q,Q))L[he]=q,L[z]=Q,he=z;else break e}}return B}function c(L,B){var Q=L.sortIndex-B.sortIndex;return Q!==0?Q:L.id-B.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,h=d.now();e.unstable_now=function(){return d.now()-h}}var f=[],p=[],g=1,x=null,y=3,w=!1,N=!1,E=!1,A=!1,j=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function C(L){for(var B=l(p);B!==null;){if(B.callback===null)i(p);else if(B.startTime<=L)i(p),B.sortIndex=B.expirationTime,a(f,B);else break;B=l(p)}}function H(L){if(E=!1,C(L),!N)if(l(f)!==null)N=!0,V||(V=!0,X());else{var B=l(p);B!==null&&Y(H,B.startTime-L)}}var V=!1,T=-1,k=5,R=-1;function O(){return A?!0:!(e.unstable_now()-R<k)}function U(){if(A=!1,V){var L=e.unstable_now();R=L;var B=!0;try{e:{N=!1,E&&(E=!1,S(T),T=-1),w=!0;var Q=y;try{t:{for(C(L),x=l(f);x!==null&&!(x.expirationTime>L&&O());){var he=x.callback;if(typeof he=="function"){x.callback=null,y=x.priorityLevel;var ce=he(x.expirationTime<=L);if(L=e.unstable_now(),typeof ce=="function"){x.callback=ce,C(L),B=!0;break t}x===l(f)&&i(f),C(L)}else i(f);x=l(f)}if(x!==null)B=!0;else{var D=l(p);D!==null&&Y(H,D.startTime-L),B=!1}}break e}finally{x=null,y=Q,w=!1}B=void 0}}finally{B?X():V=!1}}}var X;if(typeof Z=="function")X=function(){Z(U)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,$=K.port2;K.port1.onmessage=U,X=function(){$.postMessage(null)}}else X=function(){j(U,0)};function Y(L,B){T=j(function(){L(e.unstable_now())},B)}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(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(L){switch(y){case 1:case 2:case 3:var B=3;break;default:B=y}var Q=y;y=B;try{return L()}finally{y=Q}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(L,B){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var Q=y;y=L;try{return B()}finally{y=Q}},e.unstable_scheduleCallback=function(L,B,Q){var he=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?he+Q:he):Q=he,L){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=Q+ce,L={id:g++,callback:B,priorityLevel:L,startTime:Q,expirationTime:ce,sortIndex:-1},Q>he?(L.sortIndex=Q,a(p,L),l(f)===null&&L===l(p)&&(E?(S(T),T=-1):E=!0,Y(H,Q-he))):(L.sortIndex=ce,a(f,L),N||w||(N=!0,V||(V=!0,X()))),L},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(L){var B=y;return function(){var Q=y;y=B;try{return L.apply(this,arguments)}finally{y=Q}}}})(j2)),j2}var jg;function nH(){return jg||(jg=1,A2.exports=aH()),A2.exports}var E2={exports:{}},Ft={};/**
|
|
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 Eg;function rH(){if(Eg)return Ft;Eg=1;var e=im();function a(f){var p="https://react.dev/errors/"+f;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+f+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var i={d:{f:l,r:function(){throw Error(a(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal");function u(f,p,g){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:f,containerInfo:p,implementation:g}}var d=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(f,p){if(f==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ft.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Ft.createPortal=function(f,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return u(f,p,null,g)},Ft.flushSync=function(f){var p=d.T,g=i.p;try{if(d.T=null,i.p=2,f)return f()}finally{d.T=p,i.p=g,i.d.f()}},Ft.preconnect=function(f,p){typeof f=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(f,p))},Ft.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},Ft.preinit=function(f,p){if(typeof f=="string"&&p&&typeof p.as=="string"){var g=p.as,x=h(g,p.crossOrigin),y=typeof p.integrity=="string"?p.integrity:void 0,w=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?i.d.S(f,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:y,fetchPriority:w}):g==="script"&&i.d.X(f,{crossOrigin:x,integrity:y,fetchPriority:w,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ft.preinitModule=function(f,p){if(typeof f=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=h(p.as,p.crossOrigin);i.d.M(f,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(f)},Ft.preload=function(f,p){if(typeof f=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,x=h(g,p.crossOrigin);i.d.L(f,g,{crossOrigin:x,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})}},Ft.preloadModule=function(f,p){if(typeof f=="string")if(p){var g=h(p.as,p.crossOrigin);i.d.m(f,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(f)},Ft.requestFormReset=function(f){i.d.r(f)},Ft.unstable_batchedUpdates=function(f,p){return f(p)},Ft.useFormState=function(f,p,g){return d.H.useFormState(f,p,g)},Ft.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ft.version="19.2.4",Ft}var Ng;function sH(){if(Ng)return E2.exports;Ng=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(a){console.error(a)}}return e(),E2.exports=rH(),E2.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 Mg;function lH(){if(Mg)return Ks;Mg=1;var e=nH(),a=im(),l=sH();function i(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var r=t,o=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(o=r.return),t=r.return;while(t)}return r.tag===3?o:null}function d(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function h(t){if(t.tag===31){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function f(t){if(u(t)!==t)throw Error(i(188))}function p(t){var r=t.alternate;if(!r){if(r=u(t),r===null)throw Error(i(188));return r!==t?null:t}for(var o=t,m=r;;){var v=o.return;if(v===null)break;var b=v.alternate;if(b===null){if(m=v.return,m!==null){o=m;continue}break}if(v.child===b.child){for(b=v.child;b;){if(b===o)return f(v),t;if(b===m)return f(v),r;b=b.sibling}throw Error(i(188))}if(o.return!==m.return)o=v,m=b;else{for(var M=!1,_=v.child;_;){if(_===o){M=!0,o=v,m=b;break}if(_===m){M=!0,m=v,o=b;break}_=_.sibling}if(!M){for(_=b.child;_;){if(_===o){M=!0,o=b,m=v;break}if(_===m){M=!0,m=b,o=v;break}_=_.sibling}if(!M)throw Error(i(189))}}if(o.alternate!==m)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?t:r}function g(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=g(t),r!==null)return r;t=t.sibling}return null}var x=Object.assign,y=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),O=Symbol.for("react.memo_cache_sentinel"),U=Symbol.iterator;function X(t){return t===null||typeof t!="object"?null:(t=U&&t[U]||t["@@iterator"],typeof t=="function"?t:null)}var K=Symbol.for("react.client.reference");function $(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===K?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case E:return"Fragment";case j:return"Profiler";case A:return"StrictMode";case H:return"Suspense";case V:return"SuspenseList";case R:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case N:return"Portal";case Z:return t.displayName||"Context";case S:return(t._context.displayName||"Context")+".Consumer";case C:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case T:return r=t.displayName||null,r!==null?r:$(t.type)||"Memo";case k:r=t._payload,t=t._init;try{return $(t(r))}catch{}}return null}var Y=Array.isArray,L=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},he=[],ce=-1;function D(t){return{current:t}}function te(t){0>ce||(t.current=he[ce],he[ce]=null,ce--)}function re(t,r){ce++,he[ce]=t.current,t.current=r}var z=D(null),q=D(null),P=D(null),oe=D(null);function fe(t,r){switch(re(P,r),re(q,t),re(z,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?z5(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=z5(r),t=B5(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}te(z),re(z,t)}function ye(){te(z),te(q),te(P)}function Le(t){t.memoizedState!==null&&re(oe,t);var r=z.current,o=B5(r,t.type);r!==o&&(re(q,t),re(z,o))}function Ie(t){q.current===t&&(te(z),te(q)),oe.current===t&&(te(oe),Is._currentValue=Q)}var Ue,it;function qe(t){if(Ue===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);Ue=r&&r[1]||"",it=-1<o.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Ue+t+it}var ve=!1;function ze(t,r){if(!t||ve)return"";ve=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(r){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(ae){var ee=ae}Reflect.construct(t,[],ie)}else{try{ie.call()}catch(ae){ee=ae}t.call(ie.prototype)}}else{try{throw Error()}catch(ae){ee=ae}(ie=t())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(ae){if(ae&&ee&&typeof ae.stack=="string")return[ae.stack,ee.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=m.DetermineComponentFrameRoot(),M=b[0],_=b[1];if(M&&_){var F=M.split(`
|
|
44
|
+
`),W=_.split(`
|
|
45
|
+
`);for(v=m=0;m<F.length&&!F[m].includes("DetermineComponentFrameRoot");)m++;for(;v<W.length&&!W[v].includes("DetermineComponentFrameRoot");)v++;if(m===F.length||v===W.length)for(m=F.length-1,v=W.length-1;1<=m&&0<=v&&F[m]!==W[v];)v--;for(;1<=m&&0<=v;m--,v--)if(F[m]!==W[v]){if(m!==1||v!==1)do if(m--,v--,0>v||F[m]!==W[v]){var ne=`
|
|
46
|
+
`+F[m].replace(" at new "," at ");return t.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",t.displayName)),ne}while(1<=m&&0<=v);break}}}finally{ve=!1,Error.prepareStackTrace=o}return(o=t?t.displayName||t.name:"")?qe(o):""}function je(t,r){switch(t.tag){case 26:case 27:case 5:return qe(t.type);case 16:return qe("Lazy");case 13:return t.child!==r&&r!==null?qe("Suspense Fallback"):qe("Suspense");case 19:return qe("SuspenseList");case 0:case 15:return ze(t.type,!1);case 11:return ze(t.type.render,!1);case 1:return ze(t.type,!0);case 31:return qe("Activity");default:return""}}function ha(t){try{var r="",o=null;do r+=je(t,o),o=t,t=t.return;while(t);return r}catch(m){return`
|
|
47
|
+
Error generating stack: `+m.message+`
|
|
48
|
+
`+m.stack}}var se=Object.prototype.hasOwnProperty,At=e.unstable_scheduleCallback,Re=e.unstable_cancelCallback,mt=e.unstable_shouldYield,St=e.unstable_requestPaint,ot=e.unstable_now,Cn=e.unstable_getCurrentPriorityLevel,I0=e.unstable_ImmediatePriority,jt=e.unstable_UserBlockingPriority,_t=e.unstable_NormalPriority,Rl=e.unstable_LowPriority,as=e.unstable_IdlePriority,so=e.log,kl=e.unstable_setDisableYieldValue,Ut=null,ct=null;function Hn(t){if(typeof so=="function"&&kl(t),ct&&typeof ct.setStrictMode=="function")try{ct.setStrictMode(Ut,t)}catch{}}var ta=Math.clz32?Math.clz32:kS,LS=Math.log,RS=Math.LN2;function kS(t){return t>>>=0,t===0?32:31-(LS(t)/RS|0)|0}var Dl=256,Ol=262144,Fl=4194304;function d0(t){var r=t&42;if(r!==0)return r;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function ql(t,r,o){var m=t.pendingLanes;if(m===0)return 0;var v=0,b=t.suspendedLanes,M=t.pingedLanes;t=t.warmLanes;var _=m&134217727;return _!==0?(m=_&~b,m!==0?v=d0(m):(M&=_,M!==0?v=d0(M):o||(o=_&~t,o!==0&&(v=d0(o))))):(_=m&~b,_!==0?v=d0(_):M!==0?v=d0(M):o||(o=m&~t,o!==0&&(v=d0(o)))),v===0?0:r!==0&&r!==v&&(r&b)===0&&(b=v&-v,o=r&-r,b>=o||b===32&&(o&4194048)!==0)?r:v}function ns(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function DS(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 Af(){var t=Fl;return Fl<<=1,(Fl&62914560)===0&&(Fl=4194304),t}function lo(t){for(var r=[],o=0;31>o;o++)r.push(t);return r}function rs(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function OS(t,r,o,m,v,b){var M=t.pendingLanes;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=o,t.entangledLanes&=o,t.errorRecoveryDisabledLanes&=o,t.shellSuspendCounter=0;var _=t.entanglements,F=t.expirationTimes,W=t.hiddenUpdates;for(o=M&~o;0<o;){var ne=31-ta(o),ie=1<<ne;_[ne]=0,F[ne]=-1;var ee=W[ne];if(ee!==null)for(W[ne]=null,ne=0;ne<ee.length;ne++){var ae=ee[ne];ae!==null&&(ae.lane&=-536870913)}o&=~ie}m!==0&&jf(t,m,0),b!==0&&v===0&&t.tag!==0&&(t.suspendedLanes|=b&~(M&~r))}function jf(t,r,o){t.pendingLanes|=r,t.suspendedLanes&=~r;var m=31-ta(r);t.entangledLanes|=r,t.entanglements[m]=t.entanglements[m]|1073741824|o&261930}function Ef(t,r){var o=t.entangledLanes|=r;for(t=t.entanglements;o;){var m=31-ta(o),v=1<<m;v&r|t[m]&r&&(t[m]|=r),o&=~v}}function Nf(t,r){var o=r&-r;return o=(o&42)!==0?1:io(o),(o&(t.suspendedLanes|r))!==0?0:o}function io(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function oo(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Mf(){var t=B.p;return t!==0?t:(t=window.event,t===void 0?32:dg(t.type))}function Sf(t,r){var o=B.p;try{return B.p=t,r()}finally{B.p=o}}var Vn=Math.random().toString(36).slice(2),Tt="__reactFiber$"+Vn,Pt="__reactProps$"+Vn,U0="__reactContainer$"+Vn,co="__reactEvents$"+Vn,FS="__reactListeners$"+Vn,qS="__reactHandles$"+Vn,Zf="__reactResources$"+Vn,ss="__reactMarker$"+Vn;function uo(t){delete t[Tt],delete t[Pt],delete t[co],delete t[FS],delete t[qS]}function P0(t){var r=t[Tt];if(r)return r;for(var o=t.parentNode;o;){if(r=o[U0]||o[Tt]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(t=K5(t);t!==null;){if(o=t[Tt])return o;t=K5(t)}return r}t=o,o=t.parentNode}return null}function G0(t){if(t=t[Tt]||t[U0]){var r=t.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return t}return null}function ls(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(i(33))}function Y0(t){var r=t[Zf];return r||(r=t[Zf]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Zt(t){t[ss]=!0}var Cf=new Set,Hf={};function h0(t,r){K0(t,r),K0(t+"Capture",r)}function K0(t,r){for(Hf[t]=r,t=0;t<r.length;t++)Cf.add(r[t])}var zS=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]*$"),Vf={},_f={};function BS(t){return se.call(_f,t)?!0:se.call(Vf,t)?!1:zS.test(t)?_f[t]=!0:(Vf[t]=!0,!1)}function zl(t,r,o){if(BS(r))if(o===null)t.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var m=r.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+o)}}function Bl(t,r,o){if(o===null)t.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+o)}}function rn(t,r,o,m){if(m===null)t.removeAttribute(o);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(o);return}t.setAttributeNS(r,o,""+m)}}function ma(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Tf(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function $S(t,r,o){var m=Object.getOwnPropertyDescriptor(t.constructor.prototype,r);if(!t.hasOwnProperty(r)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var v=m.get,b=m.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return v.call(this)},set:function(M){o=""+M,b.call(this,M)}}),Object.defineProperty(t,r,{enumerable:m.enumerable}),{getValue:function(){return o},setValue:function(M){o=""+M},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function ho(t){if(!t._valueTracker){var r=Tf(t)?"checked":"value";t._valueTracker=$S(t,r,""+t[r])}}function Lf(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var o=r.getValue(),m="";return t&&(m=Tf(t)?t.checked?"true":"false":t.value),t=m,t!==o?(r.setValue(t),!0):!1}function $l(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var IS=/[\n"\\]/g;function fa(t){return t.replace(IS,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function mo(t,r,o,m,v,b,M,_){t.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?t.type=M:t.removeAttribute("type"),r!=null?M==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+ma(r)):t.value!==""+ma(r)&&(t.value=""+ma(r)):M!=="submit"&&M!=="reset"||t.removeAttribute("value"),r!=null?fo(t,M,ma(r)):o!=null?fo(t,M,ma(o)):m!=null&&t.removeAttribute("value"),v==null&&b!=null&&(t.defaultChecked=!!b),v!=null&&(t.checked=v&&typeof v!="function"&&typeof v!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?t.name=""+ma(_):t.removeAttribute("name")}function Rf(t,r,o,m,v,b,M,_){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(t.type=b),r!=null||o!=null){if(!(b!=="submit"&&b!=="reset"||r!=null)){ho(t);return}o=o!=null?""+ma(o):"",r=r!=null?""+ma(r):o,_||r===t.value||(t.value=r),t.defaultValue=r}m=m??v,m=typeof m!="function"&&typeof m!="symbol"&&!!m,t.checked=_?t.checked:!!m,t.defaultChecked=!!m,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(t.name=M),ho(t)}function fo(t,r,o){r==="number"&&$l(t.ownerDocument)===t||t.defaultValue===""+o||(t.defaultValue=""+o)}function X0(t,r,o,m){if(t=t.options,r){r={};for(var v=0;v<o.length;v++)r["$"+o[v]]=!0;for(o=0;o<t.length;o++)v=r.hasOwnProperty("$"+t[o].value),t[o].selected!==v&&(t[o].selected=v),v&&m&&(t[o].defaultSelected=!0)}else{for(o=""+ma(o),r=null,v=0;v<t.length;v++){if(t[v].value===o){t[v].selected=!0,m&&(t[v].defaultSelected=!0);return}r!==null||t[v].disabled||(r=t[v])}r!==null&&(r.selected=!0)}}function kf(t,r,o){if(r!=null&&(r=""+ma(r),r!==t.value&&(t.value=r),o==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=o!=null?""+ma(o):""}function Df(t,r,o,m){if(r==null){if(m!=null){if(o!=null)throw Error(i(92));if(Y(m)){if(1<m.length)throw Error(i(93));m=m[0]}o=m}o==null&&(o=""),r=o}o=ma(r),t.defaultValue=o,m=t.textContent,m===o&&m!==""&&m!==null&&(t.value=m),ho(t)}function Q0(t,r){if(r){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=r;return}}t.textContent=r}var US=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 Of(t,r,o){var m=r.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?m?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":m?t.setProperty(r,o):typeof o!="number"||o===0||US.has(r)?r==="float"?t.cssFloat=o:t[r]=(""+o).trim():t[r]=o+"px"}function Ff(t,r,o){if(r!=null&&typeof r!="object")throw Error(i(62));if(t=t.style,o!=null){for(var m in o)!o.hasOwnProperty(m)||r!=null&&r.hasOwnProperty(m)||(m.indexOf("--")===0?t.setProperty(m,""):m==="float"?t.cssFloat="":t[m]="");for(var v in r)m=r[v],r.hasOwnProperty(v)&&o[v]!==m&&Of(t,v,m)}else for(var b in r)r.hasOwnProperty(b)&&Of(t,b,r[b])}function po(t){if(t.indexOf("-")===-1)return!1;switch(t){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 PS=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"]]),GS=/^[\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 Il(t){return GS.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function sn(){}var go=null;function xo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var J0=null,W0=null;function qf(t){var r=G0(t);if(r&&(t=r.stateNode)){var o=t[Pt]||null;e:switch(t=r.stateNode,r.type){case"input":if(mo(t,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),r=o.name,o.type==="radio"&&r!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+fa(""+r)+'"][type="radio"]'),r=0;r<o.length;r++){var m=o[r];if(m!==t&&m.form===t.form){var v=m[Pt]||null;if(!v)throw Error(i(90));mo(m,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(r=0;r<o.length;r++)m=o[r],m.form===t.form&&Lf(m)}break e;case"textarea":kf(t,o.value,o.defaultValue);break e;case"select":r=o.value,r!=null&&X0(t,!!o.multiple,r,!1)}}}var vo=!1;function zf(t,r,o){if(vo)return t(r,o);vo=!0;try{var m=t(r);return m}finally{if(vo=!1,(J0!==null||W0!==null)&&(Vi(),J0&&(r=J0,t=W0,W0=J0=null,qf(r),t)))for(r=0;r<t.length;r++)qf(t[r])}}function is(t,r){var o=t.stateNode;if(o===null)return null;var m=o[Pt]||null;if(m===null)return null;o=m[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(t=t.type,m=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!m;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(i(231,r,typeof o));return o}var ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bo=!1;if(ln)try{var os={};Object.defineProperty(os,"passive",{get:function(){bo=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{bo=!1}var _n=null,yo=null,Ul=null;function Bf(){if(Ul)return Ul;var t,r=yo,o=r.length,m,v="value"in _n?_n.value:_n.textContent,b=v.length;for(t=0;t<o&&r[t]===v[t];t++);var M=o-t;for(m=1;m<=M&&r[o-m]===v[b-m];m++);return Ul=v.slice(t,1<m?1-m:void 0)}function Pl(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Gl(){return!0}function $f(){return!1}function Gt(t){function r(o,m,v,b,M){this._reactName=o,this._targetInst=v,this.type=m,this.nativeEvent=b,this.target=M,this.currentTarget=null;for(var _ in t)t.hasOwnProperty(_)&&(o=t[_],this[_]=o?o(b):b[_]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Gl:$f,this.isPropagationStopped=$f,this}return x(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Gl)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Gl)},persist:function(){},isPersistent:Gl}),r}var m0={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yl=Gt(m0),cs=x({},m0,{view:0,detail:0}),YS=Gt(cs),wo,Ao,us,Kl=x({},cs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Eo,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==us&&(us&&t.type==="mousemove"?(wo=t.screenX-us.screenX,Ao=t.screenY-us.screenY):Ao=wo=0,us=t),wo)},movementY:function(t){return"movementY"in t?t.movementY:Ao}}),If=Gt(Kl),KS=x({},Kl,{dataTransfer:0}),XS=Gt(KS),QS=x({},cs,{relatedTarget:0}),jo=Gt(QS),JS=x({},m0,{animationName:0,elapsedTime:0,pseudoElement:0}),WS=Gt(JS),eZ=x({},m0,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),tZ=Gt(eZ),aZ=x({},m0,{data:0}),Uf=Gt(aZ),nZ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rZ={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"},sZ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lZ(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=sZ[t])?!!r[t]:!1}function Eo(){return lZ}var iZ=x({},cs,{key:function(t){if(t.key){var r=nZ[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Pl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?rZ[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Eo,charCode:function(t){return t.type==="keypress"?Pl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Pl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),oZ=Gt(iZ),cZ=x({},Kl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pf=Gt(cZ),uZ=x({},cs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Eo}),dZ=Gt(uZ),hZ=x({},m0,{propertyName:0,elapsedTime:0,pseudoElement:0}),mZ=Gt(hZ),fZ=x({},Kl,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),pZ=Gt(fZ),gZ=x({},m0,{newState:0,oldState:0}),xZ=Gt(gZ),vZ=[9,13,27,32],No=ln&&"CompositionEvent"in window,ds=null;ln&&"documentMode"in document&&(ds=document.documentMode);var bZ=ln&&"TextEvent"in window&&!ds,Gf=ln&&(!No||ds&&8<ds&&11>=ds),Yf=" ",Kf=!1;function Xf(t,r){switch(t){case"keyup":return vZ.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var er=!1;function yZ(t,r){switch(t){case"compositionend":return Qf(r);case"keypress":return r.which!==32?null:(Kf=!0,Yf);case"textInput":return t=r.data,t===Yf&&Kf?null:t;default:return null}}function wZ(t,r){if(er)return t==="compositionend"||!No&&Xf(t,r)?(t=Bf(),Ul=yo=_n=null,er=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Gf&&r.locale!=="ko"?null:r.data;default:return null}}var AZ={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 Jf(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!AZ[t.type]:r==="textarea"}function Wf(t,r,o,m){J0?W0?W0.push(m):W0=[m]:J0=m,r=Oi(r,"onChange"),0<r.length&&(o=new Yl("onChange","change",null,o,m),t.push({event:o,listeners:r}))}var hs=null,ms=null;function jZ(t){R5(t,0)}function Xl(t){var r=ls(t);if(Lf(r))return t}function e3(t,r){if(t==="change")return r}var t3=!1;if(ln){var Mo;if(ln){var So="oninput"in document;if(!So){var a3=document.createElement("div");a3.setAttribute("oninput","return;"),So=typeof a3.oninput=="function"}Mo=So}else Mo=!1;t3=Mo&&(!document.documentMode||9<document.documentMode)}function n3(){hs&&(hs.detachEvent("onpropertychange",r3),ms=hs=null)}function r3(t){if(t.propertyName==="value"&&Xl(ms)){var r=[];Wf(r,ms,t,xo(t)),zf(jZ,r)}}function EZ(t,r,o){t==="focusin"?(n3(),hs=r,ms=o,hs.attachEvent("onpropertychange",r3)):t==="focusout"&&n3()}function NZ(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Xl(ms)}function MZ(t,r){if(t==="click")return Xl(r)}function SZ(t,r){if(t==="input"||t==="change")return Xl(r)}function ZZ(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var aa=typeof Object.is=="function"?Object.is:ZZ;function fs(t,r){if(aa(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var o=Object.keys(t),m=Object.keys(r);if(o.length!==m.length)return!1;for(m=0;m<o.length;m++){var v=o[m];if(!se.call(r,v)||!aa(t[v],r[v]))return!1}return!0}function s3(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function l3(t,r){var o=s3(t);t=0;for(var m;o;){if(o.nodeType===3){if(m=t+o.textContent.length,t<=r&&m>=r)return{node:o,offset:r-t};t=m}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=s3(o)}}function i3(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?i3(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function o3(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=$l(t.document);r instanceof t.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)t=r.contentWindow;else break;r=$l(t.document)}return r}function Zo(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var CZ=ln&&"documentMode"in document&&11>=document.documentMode,tr=null,Co=null,ps=null,Ho=!1;function c3(t,r,o){var m=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Ho||tr==null||tr!==$l(m)||(m=tr,"selectionStart"in m&&Zo(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),ps&&fs(ps,m)||(ps=m,m=Oi(Co,"onSelect"),0<m.length&&(r=new Yl("onSelect","select",null,r,o),t.push({event:r,listeners:m}),r.target=tr)))}function f0(t,r){var o={};return o[t.toLowerCase()]=r.toLowerCase(),o["Webkit"+t]="webkit"+r,o["Moz"+t]="moz"+r,o}var ar={animationend:f0("Animation","AnimationEnd"),animationiteration:f0("Animation","AnimationIteration"),animationstart:f0("Animation","AnimationStart"),transitionrun:f0("Transition","TransitionRun"),transitionstart:f0("Transition","TransitionStart"),transitioncancel:f0("Transition","TransitionCancel"),transitionend:f0("Transition","TransitionEnd")},Vo={},u3={};ln&&(u3=document.createElement("div").style,"AnimationEvent"in window||(delete ar.animationend.animation,delete ar.animationiteration.animation,delete ar.animationstart.animation),"TransitionEvent"in window||delete ar.transitionend.transition);function p0(t){if(Vo[t])return Vo[t];if(!ar[t])return t;var r=ar[t],o;for(o in r)if(r.hasOwnProperty(o)&&o in u3)return Vo[t]=r[o];return t}var d3=p0("animationend"),h3=p0("animationiteration"),m3=p0("animationstart"),HZ=p0("transitionrun"),VZ=p0("transitionstart"),_Z=p0("transitioncancel"),f3=p0("transitionend"),p3=new Map,_o="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(" ");_o.push("scrollEnd");function Va(t,r){p3.set(t,r),h0(r,[t])}var Ql=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},pa=[],nr=0,To=0;function Jl(){for(var t=nr,r=To=nr=0;r<t;){var o=pa[r];pa[r++]=null;var m=pa[r];pa[r++]=null;var v=pa[r];pa[r++]=null;var b=pa[r];if(pa[r++]=null,m!==null&&v!==null){var M=m.pending;M===null?v.next=v:(v.next=M.next,M.next=v),m.pending=v}b!==0&&g3(o,v,b)}}function Wl(t,r,o,m){pa[nr++]=t,pa[nr++]=r,pa[nr++]=o,pa[nr++]=m,To|=m,t.lanes|=m,t=t.alternate,t!==null&&(t.lanes|=m)}function Lo(t,r,o,m){return Wl(t,r,o,m),ei(t)}function g0(t,r){return Wl(t,null,null,r),ei(t)}function g3(t,r,o){t.lanes|=o;var m=t.alternate;m!==null&&(m.lanes|=o);for(var v=!1,b=t.return;b!==null;)b.childLanes|=o,m=b.alternate,m!==null&&(m.childLanes|=o),b.tag===22&&(t=b.stateNode,t===null||t._visibility&1||(v=!0)),t=b,b=b.return;return t.tag===3?(b=t.stateNode,v&&r!==null&&(v=31-ta(o),t=b.hiddenUpdates,m=t[v],m===null?t[v]=[r]:m.push(r),r.lane=o|536870912),b):null}function ei(t){if(50<Ds)throw Ds=0,$c=null,Error(i(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var rr={};function TZ(t,r,o,m){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function na(t,r,o,m){return new TZ(t,r,o,m)}function Ro(t){return t=t.prototype,!(!t||!t.isReactComponent)}function on(t,r){var o=t.alternate;return o===null?(o=na(t.tag,r,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=r,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&65011712,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,r=t.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o.refCleanup=t.refCleanup,o}function x3(t,r){t.flags&=65011714;var o=t.alternate;return o===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=o.childLanes,t.lanes=o.lanes,t.child=o.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=o.memoizedProps,t.memoizedState=o.memoizedState,t.updateQueue=o.updateQueue,t.type=o.type,r=o.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function ti(t,r,o,m,v,b){var M=0;if(m=t,typeof t=="function")Ro(t)&&(M=1);else if(typeof t=="string")M=OC(t,o,z.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case R:return t=na(31,o,r,v),t.elementType=R,t.lanes=b,t;case E:return x0(o.children,v,b,r);case A:M=8,v|=24;break;case j:return t=na(12,o,r,v|2),t.elementType=j,t.lanes=b,t;case H:return t=na(13,o,r,v),t.elementType=H,t.lanes=b,t;case V:return t=na(19,o,r,v),t.elementType=V,t.lanes=b,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Z:M=10;break e;case S:M=9;break e;case C:M=11;break e;case T:M=14;break e;case k:M=16,m=null;break e}M=29,o=Error(i(130,t===null?"null":typeof t,"")),m=null}return r=na(M,o,r,v),r.elementType=t,r.type=m,r.lanes=b,r}function x0(t,r,o,m){return t=na(7,t,m,r),t.lanes=o,t}function ko(t,r,o){return t=na(6,t,null,r),t.lanes=o,t}function v3(t){var r=na(18,null,null,0);return r.stateNode=t,r}function Do(t,r,o){return r=na(4,t.children!==null?t.children:[],t.key,r),r.lanes=o,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var b3=new WeakMap;function ga(t,r){if(typeof t=="object"&&t!==null){var o=b3.get(t);return o!==void 0?o:(r={value:t,source:r,stack:ha(r)},b3.set(t,r),r)}return{value:t,source:r,stack:ha(r)}}var sr=[],lr=0,ai=null,gs=0,xa=[],va=0,Tn=null,Ia=1,Ua="";function cn(t,r){sr[lr++]=gs,sr[lr++]=ai,ai=t,gs=r}function y3(t,r,o){xa[va++]=Ia,xa[va++]=Ua,xa[va++]=Tn,Tn=t;var m=Ia;t=Ua;var v=32-ta(m)-1;m&=~(1<<v),o+=1;var b=32-ta(r)+v;if(30<b){var M=v-v%5;b=(m&(1<<M)-1).toString(32),m>>=M,v-=M,Ia=1<<32-ta(r)+v|o<<v|m,Ua=b+t}else Ia=1<<b|o<<v|m,Ua=t}function Oo(t){t.return!==null&&(cn(t,1),y3(t,1,0))}function Fo(t){for(;t===ai;)ai=sr[--lr],sr[lr]=null,gs=sr[--lr],sr[lr]=null;for(;t===Tn;)Tn=xa[--va],xa[va]=null,Ua=xa[--va],xa[va]=null,Ia=xa[--va],xa[va]=null}function w3(t,r){xa[va++]=Ia,xa[va++]=Ua,xa[va++]=Tn,Ia=r.id,Ua=r.overflow,Tn=t}var Lt=null,Qe=null,_e=!1,Ln=null,ba=!1,qo=Error(i(519));function Rn(t){var r=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xs(ga(r,t)),qo}function A3(t){var r=t.stateNode,o=t.type,m=t.memoizedProps;switch(r[Tt]=t,r[Pt]=m,o){case"dialog":Ze("cancel",r),Ze("close",r);break;case"iframe":case"object":case"embed":Ze("load",r);break;case"video":case"audio":for(o=0;o<Fs.length;o++)Ze(Fs[o],r);break;case"source":Ze("error",r);break;case"img":case"image":case"link":Ze("error",r),Ze("load",r);break;case"details":Ze("toggle",r);break;case"input":Ze("invalid",r),Rf(r,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":Ze("invalid",r);break;case"textarea":Ze("invalid",r),Df(r,m.value,m.defaultValue,m.children)}o=m.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||r.textContent===""+o||m.suppressHydrationWarning===!0||F5(r.textContent,o)?(m.popover!=null&&(Ze("beforetoggle",r),Ze("toggle",r)),m.onScroll!=null&&Ze("scroll",r),m.onScrollEnd!=null&&Ze("scrollend",r),m.onClick!=null&&(r.onclick=sn),r=!0):r=!1,r||Rn(t,!0)}function j3(t){for(Lt=t.return;Lt;)switch(Lt.tag){case 5:case 31:case 13:ba=!1;return;case 27:case 3:ba=!0;return;default:Lt=Lt.return}}function ir(t){if(t!==Lt)return!1;if(!_e)return j3(t),_e=!0,!1;var r=t.tag,o;if((o=r!==3&&r!==27)&&((o=r===5)&&(o=t.type,o=!(o!=="form"&&o!=="button")||r2(t.type,t.memoizedProps)),o=!o),o&&Qe&&Rn(t),j3(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));Qe=Y5(t)}else if(r===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));Qe=Y5(t)}else r===27?(r=Qe,Kn(t.type)?(t=c2,c2=null,Qe=t):Qe=r):Qe=Lt?wa(t.stateNode.nextSibling):null;return!0}function v0(){Qe=Lt=null,_e=!1}function zo(){var t=Ln;return t!==null&&(Qt===null?Qt=t:Qt.push.apply(Qt,t),Ln=null),t}function xs(t){Ln===null?Ln=[t]:Ln.push(t)}var Bo=D(null),b0=null,un=null;function kn(t,r,o){re(Bo,r._currentValue),r._currentValue=o}function dn(t){t._currentValue=Bo.current,te(Bo)}function $o(t,r,o){for(;t!==null;){var m=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,m!==null&&(m.childLanes|=r)):m!==null&&(m.childLanes&r)!==r&&(m.childLanes|=r),t===o)break;t=t.return}}function Io(t,r,o,m){var v=t.child;for(v!==null&&(v.return=t);v!==null;){var b=v.dependencies;if(b!==null){var M=v.child;b=b.firstContext;e:for(;b!==null;){var _=b;b=v;for(var F=0;F<r.length;F++)if(_.context===r[F]){b.lanes|=o,_=b.alternate,_!==null&&(_.lanes|=o),$o(b.return,o,t),m||(M=null);break e}b=_.next}}else if(v.tag===18){if(M=v.return,M===null)throw Error(i(341));M.lanes|=o,b=M.alternate,b!==null&&(b.lanes|=o),$o(M,o,t),M=null}else M=v.child;if(M!==null)M.return=v;else for(M=v;M!==null;){if(M===t){M=null;break}if(v=M.sibling,v!==null){v.return=M.return,M=v;break}M=M.return}v=M}}function or(t,r,o,m){t=null;for(var v=r,b=!1;v!==null;){if(!b){if((v.flags&524288)!==0)b=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var M=v.alternate;if(M===null)throw Error(i(387));if(M=M.memoizedProps,M!==null){var _=v.type;aa(v.pendingProps.value,M.value)||(t!==null?t.push(_):t=[_])}}else if(v===oe.current){if(M=v.alternate,M===null)throw Error(i(387));M.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(t!==null?t.push(Is):t=[Is])}v=v.return}t!==null&&Io(r,t,o,m),r.flags|=262144}function ni(t){for(t=t.firstContext;t!==null;){if(!aa(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function y0(t){b0=t,un=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Rt(t){return E3(b0,t)}function ri(t,r){return b0===null&&y0(t),E3(t,r)}function E3(t,r){var o=r._currentValue;if(r={context:r,memoizedValue:o,next:null},un===null){if(t===null)throw Error(i(308));un=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else un=un.next=r;return o}var LZ=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(o,m){t.push(m)}};this.abort=function(){r.aborted=!0,t.forEach(function(o){return o()})}},RZ=e.unstable_scheduleCallback,kZ=e.unstable_NormalPriority,ft={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Uo(){return{controller:new LZ,data:new Map,refCount:0}}function vs(t){t.refCount--,t.refCount===0&&RZ(kZ,function(){t.controller.abort()})}var bs=null,Po=0,cr=0,ur=null;function DZ(t,r){if(bs===null){var o=bs=[];Po=0,cr=Kc(),ur={status:"pending",value:void 0,then:function(m){o.push(m)}}}return Po++,r.then(N3,N3),r}function N3(){if(--Po===0&&bs!==null){ur!==null&&(ur.status="fulfilled");var t=bs;bs=null,cr=0,ur=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function OZ(t,r){var o=[],m={status:"pending",value:null,reason:null,then:function(v){o.push(v)}};return t.then(function(){m.status="fulfilled",m.value=r;for(var v=0;v<o.length;v++)(0,o[v])(r)},function(v){for(m.status="rejected",m.reason=v,v=0;v<o.length;v++)(0,o[v])(void 0)}),m}var M3=L.S;L.S=function(t,r){c5=ot(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&DZ(t,r),M3!==null&&M3(t,r)};var w0=D(null);function Go(){var t=w0.current;return t!==null?t:Ke.pooledCache}function si(t,r){r===null?re(w0,w0.current):re(w0,r.pool)}function S3(){var t=Go();return t===null?null:{parent:ft._currentValue,pool:t}}var dr=Error(i(460)),Yo=Error(i(474)),li=Error(i(542)),ii={then:function(){}};function Z3(t){return t=t.status,t==="fulfilled"||t==="rejected"}function C3(t,r,o){switch(o=t[o],o===void 0?t.push(r):o!==r&&(r.then(sn,sn),r=o),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,V3(t),t;default:if(typeof r.status=="string")r.then(sn,sn);else{if(t=Ke,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=r,t.status="pending",t.then(function(m){if(r.status==="pending"){var v=r;v.status="fulfilled",v.value=m}},function(m){if(r.status==="pending"){var v=r;v.status="rejected",v.reason=m}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,V3(t),t}throw j0=r,dr}}function A0(t){try{var r=t._init;return r(t._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(j0=o,dr):o}}var j0=null;function H3(){if(j0===null)throw Error(i(459));var t=j0;return j0=null,t}function V3(t){if(t===dr||t===li)throw Error(i(483))}var hr=null,ys=0;function oi(t){var r=ys;return ys+=1,hr===null&&(hr=[]),C3(hr,t,r)}function ws(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function ci(t,r){throw r.$$typeof===y?Error(i(525)):(t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function _3(t){function r(G,I){if(t){var J=G.deletions;J===null?(G.deletions=[I],G.flags|=16):J.push(I)}}function o(G,I){if(!t)return null;for(;I!==null;)r(G,I),I=I.sibling;return null}function m(G){for(var I=new Map;G!==null;)G.key!==null?I.set(G.key,G):I.set(G.index,G),G=G.sibling;return I}function v(G,I){return G=on(G,I),G.index=0,G.sibling=null,G}function b(G,I,J){return G.index=J,t?(J=G.alternate,J!==null?(J=J.index,J<I?(G.flags|=67108866,I):J):(G.flags|=67108866,I)):(G.flags|=1048576,I)}function M(G){return t&&G.alternate===null&&(G.flags|=67108866),G}function _(G,I,J,le){return I===null||I.tag!==6?(I=ko(J,G.mode,le),I.return=G,I):(I=v(I,J),I.return=G,I)}function F(G,I,J,le){var be=J.type;return be===E?ne(G,I,J.props.children,le,J.key):I!==null&&(I.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===k&&A0(be)===I.type)?(I=v(I,J.props),ws(I,J),I.return=G,I):(I=ti(J.type,J.key,J.props,null,G.mode,le),ws(I,J),I.return=G,I)}function W(G,I,J,le){return I===null||I.tag!==4||I.stateNode.containerInfo!==J.containerInfo||I.stateNode.implementation!==J.implementation?(I=Do(J,G.mode,le),I.return=G,I):(I=v(I,J.children||[]),I.return=G,I)}function ne(G,I,J,le,be){return I===null||I.tag!==7?(I=x0(J,G.mode,le,be),I.return=G,I):(I=v(I,J),I.return=G,I)}function ie(G,I,J){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=ko(""+I,G.mode,J),I.return=G,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case w:return J=ti(I.type,I.key,I.props,null,G.mode,J),ws(J,I),J.return=G,J;case N:return I=Do(I,G.mode,J),I.return=G,I;case k:return I=A0(I),ie(G,I,J)}if(Y(I)||X(I))return I=x0(I,G.mode,J,null),I.return=G,I;if(typeof I.then=="function")return ie(G,oi(I),J);if(I.$$typeof===Z)return ie(G,ri(G,I),J);ci(G,I)}return null}function ee(G,I,J,le){var be=I!==null?I.key:null;if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return be!==null?null:_(G,I,""+J,le);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case w:return J.key===be?F(G,I,J,le):null;case N:return J.key===be?W(G,I,J,le):null;case k:return J=A0(J),ee(G,I,J,le)}if(Y(J)||X(J))return be!==null?null:ne(G,I,J,le,null);if(typeof J.then=="function")return ee(G,I,oi(J),le);if(J.$$typeof===Z)return ee(G,I,ri(G,J),le);ci(G,J)}return null}function ae(G,I,J,le,be){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return G=G.get(J)||null,_(I,G,""+le,be);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case w:return G=G.get(le.key===null?J:le.key)||null,F(I,G,le,be);case N:return G=G.get(le.key===null?J:le.key)||null,W(I,G,le,be);case k:return le=A0(le),ae(G,I,J,le,be)}if(Y(le)||X(le))return G=G.get(J)||null,ne(I,G,le,be,null);if(typeof le.then=="function")return ae(G,I,J,oi(le),be);if(le.$$typeof===Z)return ae(G,I,J,ri(I,le),be);ci(I,le)}return null}function pe(G,I,J,le){for(var be=null,ke=null,xe=I,Me=I=0,He=null;xe!==null&&Me<J.length;Me++){xe.index>Me?(He=xe,xe=null):He=xe.sibling;var De=ee(G,xe,J[Me],le);if(De===null){xe===null&&(xe=He);break}t&&xe&&De.alternate===null&&r(G,xe),I=b(De,I,Me),ke===null?be=De:ke.sibling=De,ke=De,xe=He}if(Me===J.length)return o(G,xe),_e&&cn(G,Me),be;if(xe===null){for(;Me<J.length;Me++)xe=ie(G,J[Me],le),xe!==null&&(I=b(xe,I,Me),ke===null?be=xe:ke.sibling=xe,ke=xe);return _e&&cn(G,Me),be}for(xe=m(xe);Me<J.length;Me++)He=ae(xe,G,Me,J[Me],le),He!==null&&(t&&He.alternate!==null&&xe.delete(He.key===null?Me:He.key),I=b(He,I,Me),ke===null?be=He:ke.sibling=He,ke=He);return t&&xe.forEach(function(e0){return r(G,e0)}),_e&&cn(G,Me),be}function we(G,I,J,le){if(J==null)throw Error(i(151));for(var be=null,ke=null,xe=I,Me=I=0,He=null,De=J.next();xe!==null&&!De.done;Me++,De=J.next()){xe.index>Me?(He=xe,xe=null):He=xe.sibling;var e0=ee(G,xe,De.value,le);if(e0===null){xe===null&&(xe=He);break}t&&xe&&e0.alternate===null&&r(G,xe),I=b(e0,I,Me),ke===null?be=e0:ke.sibling=e0,ke=e0,xe=He}if(De.done)return o(G,xe),_e&&cn(G,Me),be;if(xe===null){for(;!De.done;Me++,De=J.next())De=ie(G,De.value,le),De!==null&&(I=b(De,I,Me),ke===null?be=De:ke.sibling=De,ke=De);return _e&&cn(G,Me),be}for(xe=m(xe);!De.done;Me++,De=J.next())De=ae(xe,G,Me,De.value,le),De!==null&&(t&&De.alternate!==null&&xe.delete(De.key===null?Me:De.key),I=b(De,I,Me),ke===null?be=De:ke.sibling=De,ke=De);return t&&xe.forEach(function(KC){return r(G,KC)}),_e&&cn(G,Me),be}function Ye(G,I,J,le){if(typeof J=="object"&&J!==null&&J.type===E&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case w:e:{for(var be=J.key;I!==null;){if(I.key===be){if(be=J.type,be===E){if(I.tag===7){o(G,I.sibling),le=v(I,J.props.children),le.return=G,G=le;break e}}else if(I.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===k&&A0(be)===I.type){o(G,I.sibling),le=v(I,J.props),ws(le,J),le.return=G,G=le;break e}o(G,I);break}else r(G,I);I=I.sibling}J.type===E?(le=x0(J.props.children,G.mode,le,J.key),le.return=G,G=le):(le=ti(J.type,J.key,J.props,null,G.mode,le),ws(le,J),le.return=G,G=le)}return M(G);case N:e:{for(be=J.key;I!==null;){if(I.key===be)if(I.tag===4&&I.stateNode.containerInfo===J.containerInfo&&I.stateNode.implementation===J.implementation){o(G,I.sibling),le=v(I,J.children||[]),le.return=G,G=le;break e}else{o(G,I);break}else r(G,I);I=I.sibling}le=Do(J,G.mode,le),le.return=G,G=le}return M(G);case k:return J=A0(J),Ye(G,I,J,le)}if(Y(J))return pe(G,I,J,le);if(X(J)){if(be=X(J),typeof be!="function")throw Error(i(150));return J=be.call(J),we(G,I,J,le)}if(typeof J.then=="function")return Ye(G,I,oi(J),le);if(J.$$typeof===Z)return Ye(G,I,ri(G,J),le);ci(G,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,I!==null&&I.tag===6?(o(G,I.sibling),le=v(I,J),le.return=G,G=le):(o(G,I),le=ko(J,G.mode,le),le.return=G,G=le),M(G)):o(G,I)}return function(G,I,J,le){try{ys=0;var be=Ye(G,I,J,le);return hr=null,be}catch(xe){if(xe===dr||xe===li)throw xe;var ke=na(29,xe,null,G.mode);return ke.lanes=le,ke.return=G,ke}finally{}}}var E0=_3(!0),T3=_3(!1),Dn=!1;function Ko(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xo(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function On(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Fn(t,r,o){var m=t.updateQueue;if(m===null)return null;if(m=m.shared,(Oe&2)!==0){var v=m.pending;return v===null?r.next=r:(r.next=v.next,v.next=r),m.pending=r,r=ei(t),g3(t,null,o),r}return Wl(t,m,r,o),ei(t)}function As(t,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var m=r.lanes;m&=t.pendingLanes,o|=m,r.lanes=o,Ef(t,o)}}function Qo(t,r){var o=t.updateQueue,m=t.alternate;if(m!==null&&(m=m.updateQueue,o===m)){var v=null,b=null;if(o=o.firstBaseUpdate,o!==null){do{var M={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};b===null?v=b=M:b=b.next=M,o=o.next}while(o!==null);b===null?v=b=r:b=b.next=r}else v=b=r;o={baseState:m.baseState,firstBaseUpdate:v,lastBaseUpdate:b,shared:m.shared,callbacks:m.callbacks},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=r:t.next=r,o.lastBaseUpdate=r}var Jo=!1;function js(){if(Jo){var t=ur;if(t!==null)throw t}}function Es(t,r,o,m){Jo=!1;var v=t.updateQueue;Dn=!1;var b=v.firstBaseUpdate,M=v.lastBaseUpdate,_=v.shared.pending;if(_!==null){v.shared.pending=null;var F=_,W=F.next;F.next=null,M===null?b=W:M.next=W,M=F;var ne=t.alternate;ne!==null&&(ne=ne.updateQueue,_=ne.lastBaseUpdate,_!==M&&(_===null?ne.firstBaseUpdate=W:_.next=W,ne.lastBaseUpdate=F))}if(b!==null){var ie=v.baseState;M=0,ne=W=F=null,_=b;do{var ee=_.lane&-536870913,ae=ee!==_.lane;if(ae?(Ce&ee)===ee:(m&ee)===ee){ee!==0&&ee===cr&&(Jo=!0),ne!==null&&(ne=ne.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var pe=t,we=_;ee=r;var Ye=o;switch(we.tag){case 1:if(pe=we.payload,typeof pe=="function"){ie=pe.call(Ye,ie,ee);break e}ie=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=we.payload,ee=typeof pe=="function"?pe.call(Ye,ie,ee):pe,ee==null)break e;ie=x({},ie,ee);break e;case 2:Dn=!0}}ee=_.callback,ee!==null&&(t.flags|=64,ae&&(t.flags|=8192),ae=v.callbacks,ae===null?v.callbacks=[ee]:ae.push(ee))}else ae={lane:ee,tag:_.tag,payload:_.payload,callback:_.callback,next:null},ne===null?(W=ne=ae,F=ie):ne=ne.next=ae,M|=ee;if(_=_.next,_===null){if(_=v.shared.pending,_===null)break;ae=_,_=ae.next,ae.next=null,v.lastBaseUpdate=ae,v.shared.pending=null}}while(!0);ne===null&&(F=ie),v.baseState=F,v.firstBaseUpdate=W,v.lastBaseUpdate=ne,b===null&&(v.shared.lanes=0),In|=M,t.lanes=M,t.memoizedState=ie}}function L3(t,r){if(typeof t!="function")throw Error(i(191,t));t.call(r)}function R3(t,r){var o=t.callbacks;if(o!==null)for(t.callbacks=null,t=0;t<o.length;t++)L3(o[t],r)}var mr=D(null),ui=D(0);function k3(t,r){t=yn,re(ui,t),re(mr,r),yn=t|r.baseLanes}function Wo(){re(ui,yn),re(mr,mr.current)}function ec(){yn=ui.current,te(mr),te(ui)}var ra=D(null),ya=null;function qn(t){var r=t.alternate;re(ut,ut.current&1),re(ra,t),ya===null&&(r===null||mr.current!==null||r.memoizedState!==null)&&(ya=t)}function tc(t){re(ut,ut.current),re(ra,t),ya===null&&(ya=t)}function D3(t){t.tag===22?(re(ut,ut.current),re(ra,t),ya===null&&(ya=t)):zn()}function zn(){re(ut,ut.current),re(ra,ra.current)}function sa(t){te(ra),ya===t&&(ya=null),te(ut)}var ut=D(0);function di(t){for(var r=t;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||i2(o)||o2(o)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var hn=0,Ne=null,Pe=null,pt=null,hi=!1,fr=!1,N0=!1,mi=0,Ns=0,pr=null,FZ=0;function rt(){throw Error(i(321))}function ac(t,r){if(r===null)return!1;for(var o=0;o<r.length&&o<t.length;o++)if(!aa(t[o],r[o]))return!1;return!0}function nc(t,r,o,m,v,b){return hn=b,Ne=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,L.H=t===null||t.memoizedState===null?yp:vc,N0=!1,b=o(m,v),N0=!1,fr&&(b=F3(r,o,m,v)),O3(t),b}function O3(t){L.H=Zs;var r=Pe!==null&&Pe.next!==null;if(hn=0,pt=Pe=Ne=null,hi=!1,Ns=0,pr=null,r)throw Error(i(300));t===null||gt||(t=t.dependencies,t!==null&&ni(t)&&(gt=!0))}function F3(t,r,o,m){Ne=t;var v=0;do{if(fr&&(pr=null),Ns=0,fr=!1,25<=v)throw Error(i(301));if(v+=1,pt=Pe=null,t.updateQueue!=null){var b=t.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}L.H=wp,b=r(o,m)}while(fr);return b}function qZ(){var t=L.H,r=t.useState()[0];return r=typeof r.then=="function"?Ms(r):r,t=t.useState()[0],(Pe!==null?Pe.memoizedState:null)!==t&&(Ne.flags|=1024),r}function rc(){var t=mi!==0;return mi=0,t}function sc(t,r,o){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~o}function lc(t){if(hi){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}hi=!1}hn=0,pt=Pe=Ne=null,fr=!1,Ns=mi=0,pr=null}function zt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?Ne.memoizedState=pt=t:pt=pt.next=t,pt}function dt(){if(Pe===null){var t=Ne.alternate;t=t!==null?t.memoizedState:null}else t=Pe.next;var r=pt===null?Ne.memoizedState:pt.next;if(r!==null)pt=r,Pe=t;else{if(t===null)throw Ne.alternate===null?Error(i(467)):Error(i(310));Pe=t,t={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},pt===null?Ne.memoizedState=pt=t:pt=pt.next=t}return pt}function fi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ms(t){var r=Ns;return Ns+=1,pr===null&&(pr=[]),t=C3(pr,t,r),r=Ne,(pt===null?r.memoizedState:pt.next)===null&&(r=r.alternate,L.H=r===null||r.memoizedState===null?yp:vc),t}function pi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ms(t);if(t.$$typeof===Z)return Rt(t)}throw Error(i(438,String(t)))}function ic(t){var r=null,o=Ne.updateQueue;if(o!==null&&(r=o.memoCache),r==null){var m=Ne.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(r={data:m.data.map(function(v){return v.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),o===null&&(o=fi(),Ne.updateQueue=o),o.memoCache=r,o=r.data[r.index],o===void 0)for(o=r.data[r.index]=Array(t),m=0;m<t;m++)o[m]=O;return r.index++,o}function mn(t,r){return typeof r=="function"?r(t):r}function gi(t){var r=dt();return oc(r,Pe,t)}function oc(t,r,o){var m=t.queue;if(m===null)throw Error(i(311));m.lastRenderedReducer=o;var v=t.baseQueue,b=m.pending;if(b!==null){if(v!==null){var M=v.next;v.next=b.next,b.next=M}r.baseQueue=v=b,m.pending=null}if(b=t.baseState,v===null)t.memoizedState=b;else{r=v.next;var _=M=null,F=null,W=r,ne=!1;do{var ie=W.lane&-536870913;if(ie!==W.lane?(Ce&ie)===ie:(hn&ie)===ie){var ee=W.revertLane;if(ee===0)F!==null&&(F=F.next={lane:0,revertLane:0,gesture:null,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),ie===cr&&(ne=!0);else if((hn&ee)===ee){W=W.next,ee===cr&&(ne=!0);continue}else ie={lane:0,revertLane:W.revertLane,gesture:null,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},F===null?(_=F=ie,M=b):F=F.next=ie,Ne.lanes|=ee,In|=ee;ie=W.action,N0&&o(b,ie),b=W.hasEagerState?W.eagerState:o(b,ie)}else ee={lane:ie,revertLane:W.revertLane,gesture:W.gesture,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},F===null?(_=F=ee,M=b):F=F.next=ee,Ne.lanes|=ie,In|=ie;W=W.next}while(W!==null&&W!==r);if(F===null?M=b:F.next=_,!aa(b,t.memoizedState)&&(gt=!0,ne&&(o=ur,o!==null)))throw o;t.memoizedState=b,t.baseState=M,t.baseQueue=F,m.lastRenderedState=b}return v===null&&(m.lanes=0),[t.memoizedState,m.dispatch]}function cc(t){var r=dt(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var m=o.dispatch,v=o.pending,b=r.memoizedState;if(v!==null){o.pending=null;var M=v=v.next;do b=t(b,M.action),M=M.next;while(M!==v);aa(b,r.memoizedState)||(gt=!0),r.memoizedState=b,r.baseQueue===null&&(r.baseState=b),o.lastRenderedState=b}return[b,m]}function q3(t,r,o){var m=Ne,v=dt(),b=_e;if(b){if(o===void 0)throw Error(i(407));o=o()}else o=r();var M=!aa((Pe||v).memoizedState,o);if(M&&(v.memoizedState=o,gt=!0),v=v.queue,hc($3.bind(null,m,v,t),[t]),v.getSnapshot!==r||M||pt!==null&&pt.memoizedState.tag&1){if(m.flags|=2048,gr(9,{destroy:void 0},B3.bind(null,m,v,o,r),null),Ke===null)throw Error(i(349));b||(hn&127)!==0||z3(m,r,o)}return o}function z3(t,r,o){t.flags|=16384,t={getSnapshot:r,value:o},r=Ne.updateQueue,r===null?(r=fi(),Ne.updateQueue=r,r.stores=[t]):(o=r.stores,o===null?r.stores=[t]:o.push(t))}function B3(t,r,o,m){r.value=o,r.getSnapshot=m,I3(r)&&U3(t)}function $3(t,r,o){return o(function(){I3(r)&&U3(t)})}function I3(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!aa(t,o)}catch{return!0}}function U3(t){var r=g0(t,2);r!==null&&Jt(r,t,2)}function uc(t){var r=zt();if(typeof t=="function"){var o=t;if(t=o(),N0){Hn(!0);try{o()}finally{Hn(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:t},r}function P3(t,r,o,m){return t.baseState=o,oc(t,Pe,typeof m=="function"?m:mn)}function zZ(t,r,o,m,v){if(bi(t))throw Error(i(485));if(t=r.action,t!==null){var b={payload:v,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){b.listeners.push(M)}};L.T!==null?o(!0):b.isTransition=!1,m(b),o=r.pending,o===null?(b.next=r.pending=b,G3(r,b)):(b.next=o.next,r.pending=o.next=b)}}function G3(t,r){var o=r.action,m=r.payload,v=t.state;if(r.isTransition){var b=L.T,M={};L.T=M;try{var _=o(v,m),F=L.S;F!==null&&F(M,_),Y3(t,r,_)}catch(W){dc(t,r,W)}finally{b!==null&&M.types!==null&&(b.types=M.types),L.T=b}}else try{b=o(v,m),Y3(t,r,b)}catch(W){dc(t,r,W)}}function Y3(t,r,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(m){K3(t,r,m)},function(m){return dc(t,r,m)}):K3(t,r,o)}function K3(t,r,o){r.status="fulfilled",r.value=o,X3(r),t.state=o,r=t.pending,r!==null&&(o=r.next,o===r?t.pending=null:(o=o.next,r.next=o,G3(t,o)))}function dc(t,r,o){var m=t.pending;if(t.pending=null,m!==null){m=m.next;do r.status="rejected",r.reason=o,X3(r),r=r.next;while(r!==m)}t.action=null}function X3(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function Q3(t,r){return r}function J3(t,r){if(_e){var o=Ke.formState;if(o!==null){e:{var m=Ne;if(_e){if(Qe){t:{for(var v=Qe,b=ba;v.nodeType!==8;){if(!b){v=null;break t}if(v=wa(v.nextSibling),v===null){v=null;break t}}b=v.data,v=b==="F!"||b==="F"?v:null}if(v){Qe=wa(v.nextSibling),m=v.data==="F!";break e}}Rn(m)}m=!1}m&&(r=o[0])}}return o=zt(),o.memoizedState=o.baseState=r,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Q3,lastRenderedState:r},o.queue=m,o=xp.bind(null,Ne,m),m.dispatch=o,m=uc(!1),b=xc.bind(null,Ne,!1,m.queue),m=zt(),v={state:r,dispatch:null,action:t,pending:null},m.queue=v,o=zZ.bind(null,Ne,v,b,o),v.dispatch=o,m.memoizedState=t,[r,o,!1]}function W3(t){var r=dt();return ep(r,Pe,t)}function ep(t,r,o){if(r=oc(t,r,Q3)[0],t=gi(mn)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var m=Ms(r)}catch(M){throw M===dr?li:M}else m=r;r=dt();var v=r.queue,b=v.dispatch;return o!==r.memoizedState&&(Ne.flags|=2048,gr(9,{destroy:void 0},BZ.bind(null,v,o),null)),[m,b,t]}function BZ(t,r){t.action=r}function tp(t){var r=dt(),o=Pe;if(o!==null)return ep(r,o,t);dt(),r=r.memoizedState,o=dt();var m=o.queue.dispatch;return o.memoizedState=t,[r,m,!1]}function gr(t,r,o,m){return t={tag:t,create:o,deps:m,inst:r,next:null},r=Ne.updateQueue,r===null&&(r=fi(),Ne.updateQueue=r),o=r.lastEffect,o===null?r.lastEffect=t.next=t:(m=o.next,o.next=t,t.next=m,r.lastEffect=t),t}function ap(){return dt().memoizedState}function xi(t,r,o,m){var v=zt();Ne.flags|=t,v.memoizedState=gr(1|r,{destroy:void 0},o,m===void 0?null:m)}function vi(t,r,o,m){var v=dt();m=m===void 0?null:m;var b=v.memoizedState.inst;Pe!==null&&m!==null&&ac(m,Pe.memoizedState.deps)?v.memoizedState=gr(r,b,o,m):(Ne.flags|=t,v.memoizedState=gr(1|r,b,o,m))}function np(t,r){xi(8390656,8,t,r)}function hc(t,r){vi(2048,8,t,r)}function $Z(t){Ne.flags|=4;var r=Ne.updateQueue;if(r===null)r=fi(),Ne.updateQueue=r,r.events=[t];else{var o=r.events;o===null?r.events=[t]:o.push(t)}}function rp(t){var r=dt().memoizedState;return $Z({ref:r,nextImpl:t}),function(){if((Oe&2)!==0)throw Error(i(440));return r.impl.apply(void 0,arguments)}}function sp(t,r){return vi(4,2,t,r)}function lp(t,r){return vi(4,4,t,r)}function ip(t,r){if(typeof r=="function"){t=t();var o=r(t);return function(){typeof o=="function"?o():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function op(t,r,o){o=o!=null?o.concat([t]):null,vi(4,4,ip.bind(null,r,t),o)}function mc(){}function cp(t,r){var o=dt();r=r===void 0?null:r;var m=o.memoizedState;return r!==null&&ac(r,m[1])?m[0]:(o.memoizedState=[t,r],t)}function up(t,r){var o=dt();r=r===void 0?null:r;var m=o.memoizedState;if(r!==null&&ac(r,m[1]))return m[0];if(m=t(),N0){Hn(!0);try{t()}finally{Hn(!1)}}return o.memoizedState=[m,r],m}function fc(t,r,o){return o===void 0||(hn&1073741824)!==0&&(Ce&261930)===0?t.memoizedState=r:(t.memoizedState=o,t=d5(),Ne.lanes|=t,In|=t,o)}function dp(t,r,o,m){return aa(o,r)?o:mr.current!==null?(t=fc(t,o,m),aa(t,r)||(gt=!0),t):(hn&42)===0||(hn&1073741824)!==0&&(Ce&261930)===0?(gt=!0,t.memoizedState=o):(t=d5(),Ne.lanes|=t,In|=t,r)}function hp(t,r,o,m,v){var b=B.p;B.p=b!==0&&8>b?b:8;var M=L.T,_={};L.T=_,xc(t,!1,r,o);try{var F=v(),W=L.S;if(W!==null&&W(_,F),F!==null&&typeof F=="object"&&typeof F.then=="function"){var ne=OZ(F,m);Ss(t,r,ne,oa(t))}else Ss(t,r,m,oa(t))}catch(ie){Ss(t,r,{then:function(){},status:"rejected",reason:ie},oa())}finally{B.p=b,M!==null&&_.types!==null&&(M.types=_.types),L.T=M}}function IZ(){}function pc(t,r,o,m){if(t.tag!==5)throw Error(i(476));var v=mp(t).queue;hp(t,v,r,Q,o===null?IZ:function(){return fp(t),o(m)})}function mp(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:Q},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:o},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function fp(t){var r=mp(t);r.next===null&&(r=t.alternate.memoizedState),Ss(t,r.next.queue,{},oa())}function gc(){return Rt(Is)}function pp(){return dt().memoizedState}function gp(){return dt().memoizedState}function UZ(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var o=oa();t=On(o);var m=Fn(r,t,o);m!==null&&(Jt(m,r,o),As(m,r,o)),r={cache:Uo()},t.payload=r;return}r=r.return}}function PZ(t,r,o){var m=oa();o={lane:m,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},bi(t)?vp(r,o):(o=Lo(t,r,o,m),o!==null&&(Jt(o,t,m),bp(o,r,m)))}function xp(t,r,o){var m=oa();Ss(t,r,o,m)}function Ss(t,r,o,m){var v={lane:m,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(bi(t))vp(r,v);else{var b=t.alternate;if(t.lanes===0&&(b===null||b.lanes===0)&&(b=r.lastRenderedReducer,b!==null))try{var M=r.lastRenderedState,_=b(M,o);if(v.hasEagerState=!0,v.eagerState=_,aa(_,M))return Wl(t,r,v,0),Ke===null&&Jl(),!1}catch{}finally{}if(o=Lo(t,r,v,m),o!==null)return Jt(o,t,m),bp(o,r,m),!0}return!1}function xc(t,r,o,m){if(m={lane:2,revertLane:Kc(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},bi(t)){if(r)throw Error(i(479))}else r=Lo(t,o,m,2),r!==null&&Jt(r,t,2)}function bi(t){var r=t.alternate;return t===Ne||r!==null&&r===Ne}function vp(t,r){fr=hi=!0;var o=t.pending;o===null?r.next=r:(r.next=o.next,o.next=r),t.pending=r}function bp(t,r,o){if((o&4194048)!==0){var m=r.lanes;m&=t.pendingLanes,o|=m,r.lanes=o,Ef(t,o)}}var Zs={readContext:Rt,use:pi,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};Zs.useEffectEvent=rt;var yp={readContext:Rt,use:pi,useCallback:function(t,r){return zt().memoizedState=[t,r===void 0?null:r],t},useContext:Rt,useEffect:np,useImperativeHandle:function(t,r,o){o=o!=null?o.concat([t]):null,xi(4194308,4,ip.bind(null,r,t),o)},useLayoutEffect:function(t,r){return xi(4194308,4,t,r)},useInsertionEffect:function(t,r){xi(4,2,t,r)},useMemo:function(t,r){var o=zt();r=r===void 0?null:r;var m=t();if(N0){Hn(!0);try{t()}finally{Hn(!1)}}return o.memoizedState=[m,r],m},useReducer:function(t,r,o){var m=zt();if(o!==void 0){var v=o(r);if(N0){Hn(!0);try{o(r)}finally{Hn(!1)}}}else v=r;return m.memoizedState=m.baseState=v,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:v},m.queue=t,t=t.dispatch=PZ.bind(null,Ne,t),[m.memoizedState,t]},useRef:function(t){var r=zt();return t={current:t},r.memoizedState=t},useState:function(t){t=uc(t);var r=t.queue,o=xp.bind(null,Ne,r);return r.dispatch=o,[t.memoizedState,o]},useDebugValue:mc,useDeferredValue:function(t,r){var o=zt();return fc(o,t,r)},useTransition:function(){var t=uc(!1);return t=hp.bind(null,Ne,t.queue,!0,!1),zt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,o){var m=Ne,v=zt();if(_e){if(o===void 0)throw Error(i(407));o=o()}else{if(o=r(),Ke===null)throw Error(i(349));(Ce&127)!==0||z3(m,r,o)}v.memoizedState=o;var b={value:o,getSnapshot:r};return v.queue=b,np($3.bind(null,m,b,t),[t]),m.flags|=2048,gr(9,{destroy:void 0},B3.bind(null,m,b,o,r),null),o},useId:function(){var t=zt(),r=Ke.identifierPrefix;if(_e){var o=Ua,m=Ia;o=(m&~(1<<32-ta(m)-1)).toString(32)+o,r="_"+r+"R_"+o,o=mi++,0<o&&(r+="H"+o.toString(32)),r+="_"}else o=FZ++,r="_"+r+"r_"+o.toString(32)+"_";return t.memoizedState=r},useHostTransitionStatus:gc,useFormState:J3,useActionState:J3,useOptimistic:function(t){var r=zt();r.memoizedState=r.baseState=t;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=o,r=xc.bind(null,Ne,!0,o),o.dispatch=r,[t,r]},useMemoCache:ic,useCacheRefresh:function(){return zt().memoizedState=UZ.bind(null,Ne)},useEffectEvent:function(t){var r=zt(),o={impl:t};return r.memoizedState=o,function(){if((Oe&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}},vc={readContext:Rt,use:pi,useCallback:cp,useContext:Rt,useEffect:hc,useImperativeHandle:op,useInsertionEffect:sp,useLayoutEffect:lp,useMemo:up,useReducer:gi,useRef:ap,useState:function(){return gi(mn)},useDebugValue:mc,useDeferredValue:function(t,r){var o=dt();return dp(o,Pe.memoizedState,t,r)},useTransition:function(){var t=gi(mn)[0],r=dt().memoizedState;return[typeof t=="boolean"?t:Ms(t),r]},useSyncExternalStore:q3,useId:pp,useHostTransitionStatus:gc,useFormState:W3,useActionState:W3,useOptimistic:function(t,r){var o=dt();return P3(o,Pe,t,r)},useMemoCache:ic,useCacheRefresh:gp};vc.useEffectEvent=rp;var wp={readContext:Rt,use:pi,useCallback:cp,useContext:Rt,useEffect:hc,useImperativeHandle:op,useInsertionEffect:sp,useLayoutEffect:lp,useMemo:up,useReducer:cc,useRef:ap,useState:function(){return cc(mn)},useDebugValue:mc,useDeferredValue:function(t,r){var o=dt();return Pe===null?fc(o,t,r):dp(o,Pe.memoizedState,t,r)},useTransition:function(){var t=cc(mn)[0],r=dt().memoizedState;return[typeof t=="boolean"?t:Ms(t),r]},useSyncExternalStore:q3,useId:pp,useHostTransitionStatus:gc,useFormState:tp,useActionState:tp,useOptimistic:function(t,r){var o=dt();return Pe!==null?P3(o,Pe,t,r):(o.baseState=t,[t,o.queue.dispatch])},useMemoCache:ic,useCacheRefresh:gp};wp.useEffectEvent=rp;function bc(t,r,o,m){r=t.memoizedState,o=o(m,r),o=o==null?r:x({},r,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var yc={enqueueSetState:function(t,r,o){t=t._reactInternals;var m=oa(),v=On(m);v.payload=r,o!=null&&(v.callback=o),r=Fn(t,v,m),r!==null&&(Jt(r,t,m),As(r,t,m))},enqueueReplaceState:function(t,r,o){t=t._reactInternals;var m=oa(),v=On(m);v.tag=1,v.payload=r,o!=null&&(v.callback=o),r=Fn(t,v,m),r!==null&&(Jt(r,t,m),As(r,t,m))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var o=oa(),m=On(o);m.tag=2,r!=null&&(m.callback=r),r=Fn(t,m,o),r!==null&&(Jt(r,t,o),As(r,t,o))}};function Ap(t,r,o,m,v,b,M){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(m,b,M):r.prototype&&r.prototype.isPureReactComponent?!fs(o,m)||!fs(v,b):!0}function jp(t,r,o,m){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,m),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,m),r.state!==t&&yc.enqueueReplaceState(r,r.state,null)}function M0(t,r){var o=r;if("ref"in r){o={};for(var m in r)m!=="ref"&&(o[m]=r[m])}if(t=t.defaultProps){o===r&&(o=x({},o));for(var v in t)o[v]===void 0&&(o[v]=t[v])}return o}function Ep(t){Ql(t)}function Np(t){console.error(t)}function Mp(t){Ql(t)}function yi(t,r){try{var o=t.onUncaughtError;o(r.value,{componentStack:r.stack})}catch(m){setTimeout(function(){throw m})}}function Sp(t,r,o){try{var m=t.onCaughtError;m(o.value,{componentStack:o.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function wc(t,r,o){return o=On(o),o.tag=3,o.payload={element:null},o.callback=function(){yi(t,r)},o}function Zp(t){return t=On(t),t.tag=3,t}function Cp(t,r,o,m){var v=o.type.getDerivedStateFromError;if(typeof v=="function"){var b=m.value;t.payload=function(){return v(b)},t.callback=function(){Sp(r,o,m)}}var M=o.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(t.callback=function(){Sp(r,o,m),typeof v!="function"&&(Un===null?Un=new Set([this]):Un.add(this));var _=m.stack;this.componentDidCatch(m.value,{componentStack:_!==null?_:""})})}function GZ(t,r,o,m,v){if(o.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(r=o.alternate,r!==null&&or(r,o,v,!0),o=ra.current,o!==null){switch(o.tag){case 31:case 13:return ya===null?_i():o.alternate===null&&st===0&&(st=3),o.flags&=-257,o.flags|=65536,o.lanes=v,m===ii?o.flags|=16384:(r=o.updateQueue,r===null?o.updateQueue=new Set([m]):r.add(m),Pc(t,m,v)),!1;case 22:return o.flags|=65536,m===ii?o.flags|=16384:(r=o.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([m])},o.updateQueue=r):(o=r.retryQueue,o===null?r.retryQueue=new Set([m]):o.add(m)),Pc(t,m,v)),!1}throw Error(i(435,o.tag))}return Pc(t,m,v),_i(),!1}if(_e)return r=ra.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=v,m!==qo&&(t=Error(i(422),{cause:m}),xs(ga(t,o)))):(m!==qo&&(r=Error(i(423),{cause:m}),xs(ga(r,o))),t=t.current.alternate,t.flags|=65536,v&=-v,t.lanes|=v,m=ga(m,o),v=wc(t.stateNode,m,v),Qo(t,v),st!==4&&(st=2)),!1;var b=Error(i(520),{cause:m});if(b=ga(b,o),ks===null?ks=[b]:ks.push(b),st!==4&&(st=2),r===null)return!0;m=ga(m,o),o=r;do{switch(o.tag){case 3:return o.flags|=65536,t=v&-v,o.lanes|=t,t=wc(o.stateNode,m,t),Qo(o,t),!1;case 1:if(r=o.type,b=o.stateNode,(o.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Un===null||!Un.has(b))))return o.flags|=65536,v&=-v,o.lanes|=v,v=Zp(v),Cp(v,t,o,m),Qo(o,v),!1}o=o.return}while(o!==null);return!1}var Ac=Error(i(461)),gt=!1;function kt(t,r,o,m){r.child=t===null?T3(r,null,o,m):E0(r,t.child,o,m)}function Hp(t,r,o,m,v){o=o.render;var b=r.ref;if("ref"in m){var M={};for(var _ in m)_!=="ref"&&(M[_]=m[_])}else M=m;return y0(r),m=nc(t,r,o,M,b,v),_=rc(),t!==null&&!gt?(sc(t,r,v),fn(t,r,v)):(_e&&_&&Oo(r),r.flags|=1,kt(t,r,m,v),r.child)}function Vp(t,r,o,m,v){if(t===null){var b=o.type;return typeof b=="function"&&!Ro(b)&&b.defaultProps===void 0&&o.compare===null?(r.tag=15,r.type=b,_p(t,r,b,m,v)):(t=ti(o.type,null,m,r,r.mode,v),t.ref=r.ref,t.return=r,r.child=t)}if(b=t.child,!Hc(t,v)){var M=b.memoizedProps;if(o=o.compare,o=o!==null?o:fs,o(M,m)&&t.ref===r.ref)return fn(t,r,v)}return r.flags|=1,t=on(b,m),t.ref=r.ref,t.return=r,r.child=t}function _p(t,r,o,m,v){if(t!==null){var b=t.memoizedProps;if(fs(b,m)&&t.ref===r.ref)if(gt=!1,r.pendingProps=m=b,Hc(t,v))(t.flags&131072)!==0&&(gt=!0);else return r.lanes=t.lanes,fn(t,r,v)}return jc(t,r,o,m,v)}function Tp(t,r,o,m){var v=m.children,b=t!==null?t.memoizedState:null;if(t===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((r.flags&128)!==0){if(b=b!==null?b.baseLanes|o:o,t!==null){for(m=r.child=t.child,v=0;m!==null;)v=v|m.lanes|m.childLanes,m=m.sibling;m=v&~b}else m=0,r.child=null;return Lp(t,r,b,o,m)}if((o&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&si(r,b!==null?b.cachePool:null),b!==null?k3(r,b):Wo(),D3(r);else return m=r.lanes=536870912,Lp(t,r,b!==null?b.baseLanes|o:o,o,m)}else b!==null?(si(r,b.cachePool),k3(r,b),zn(),r.memoizedState=null):(t!==null&&si(r,null),Wo(),zn());return kt(t,r,v,o),r.child}function Cs(t,r){return t!==null&&t.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function Lp(t,r,o,m,v){var b=Go();return b=b===null?null:{parent:ft._currentValue,pool:b},r.memoizedState={baseLanes:o,cachePool:b},t!==null&&si(r,null),Wo(),D3(r),t!==null&&or(t,r,m,!0),r.childLanes=v,null}function wi(t,r){return r=ji({mode:r.mode,children:r.children},t.mode),r.ref=t.ref,t.child=r,r.return=t,r}function Rp(t,r,o){return E0(r,t.child,null,o),t=wi(r,r.pendingProps),t.flags|=2,sa(r),r.memoizedState=null,t}function YZ(t,r,o){var m=r.pendingProps,v=(r.flags&128)!==0;if(r.flags&=-129,t===null){if(_e){if(m.mode==="hidden")return t=wi(r,m),r.lanes=536870912,Cs(null,t);if(tc(r),(t=Qe)?(t=G5(t,ba),t=t!==null&&t.data==="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:Tn!==null?{id:Ia,overflow:Ua}:null,retryLane:536870912,hydrationErrors:null},o=v3(t),o.return=r,r.child=o,Lt=r,Qe=null)):t=null,t===null)throw Rn(r);return r.lanes=536870912,null}return wi(r,m)}var b=t.memoizedState;if(b!==null){var M=b.dehydrated;if(tc(r),v)if(r.flags&256)r.flags&=-257,r=Rp(t,r,o);else if(r.memoizedState!==null)r.child=t.child,r.flags|=128,r=null;else throw Error(i(558));else if(gt||or(t,r,o,!1),v=(o&t.childLanes)!==0,gt||v){if(m=Ke,m!==null&&(M=Nf(m,o),M!==0&&M!==b.retryLane))throw b.retryLane=M,g0(t,M),Jt(m,t,M),Ac;_i(),r=Rp(t,r,o)}else t=b.treeContext,Qe=wa(M.nextSibling),Lt=r,_e=!0,Ln=null,ba=!1,t!==null&&w3(r,t),r=wi(r,m),r.flags|=4096;return r}return t=on(t.child,{mode:m.mode,children:m.children}),t.ref=r.ref,r.child=t,t.return=r,t}function Ai(t,r){var o=r.ref;if(o===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(t===null||t.ref!==o)&&(r.flags|=4194816)}}function jc(t,r,o,m,v){return y0(r),o=nc(t,r,o,m,void 0,v),m=rc(),t!==null&&!gt?(sc(t,r,v),fn(t,r,v)):(_e&&m&&Oo(r),r.flags|=1,kt(t,r,o,v),r.child)}function kp(t,r,o,m,v,b){return y0(r),r.updateQueue=null,o=F3(r,m,o,v),O3(t),m=rc(),t!==null&&!gt?(sc(t,r,b),fn(t,r,b)):(_e&&m&&Oo(r),r.flags|=1,kt(t,r,o,b),r.child)}function Dp(t,r,o,m,v){if(y0(r),r.stateNode===null){var b=rr,M=o.contextType;typeof M=="object"&&M!==null&&(b=Rt(M)),b=new o(m,b),r.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=yc,r.stateNode=b,b._reactInternals=r,b=r.stateNode,b.props=m,b.state=r.memoizedState,b.refs={},Ko(r),M=o.contextType,b.context=typeof M=="object"&&M!==null?Rt(M):rr,b.state=r.memoizedState,M=o.getDerivedStateFromProps,typeof M=="function"&&(bc(r,o,M,m),b.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(M=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),M!==b.state&&yc.enqueueReplaceState(b,b.state,null),Es(r,m,b,v),js(),b.state=r.memoizedState),typeof b.componentDidMount=="function"&&(r.flags|=4194308),m=!0}else if(t===null){b=r.stateNode;var _=r.memoizedProps,F=M0(o,_);b.props=F;var W=b.context,ne=o.contextType;M=rr,typeof ne=="object"&&ne!==null&&(M=Rt(ne));var ie=o.getDerivedStateFromProps;ne=typeof ie=="function"||typeof b.getSnapshotBeforeUpdate=="function",_=r.pendingProps!==_,ne||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(_||W!==M)&&jp(r,b,m,M),Dn=!1;var ee=r.memoizedState;b.state=ee,Es(r,m,b,v),js(),W=r.memoizedState,_||ee!==W||Dn?(typeof ie=="function"&&(bc(r,o,ie,m),W=r.memoizedState),(F=Dn||Ap(r,o,F,m,ee,W,M))?(ne||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(r.flags|=4194308)):(typeof b.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=m,r.memoizedState=W),b.props=m,b.state=W,b.context=M,m=F):(typeof b.componentDidMount=="function"&&(r.flags|=4194308),m=!1)}else{b=r.stateNode,Xo(t,r),M=r.memoizedProps,ne=M0(o,M),b.props=ne,ie=r.pendingProps,ee=b.context,W=o.contextType,F=rr,typeof W=="object"&&W!==null&&(F=Rt(W)),_=o.getDerivedStateFromProps,(W=typeof _=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(M!==ie||ee!==F)&&jp(r,b,m,F),Dn=!1,ee=r.memoizedState,b.state=ee,Es(r,m,b,v),js();var ae=r.memoizedState;M!==ie||ee!==ae||Dn||t!==null&&t.dependencies!==null&&ni(t.dependencies)?(typeof _=="function"&&(bc(r,o,_,m),ae=r.memoizedState),(ne=Dn||Ap(r,o,ne,m,ee,ae,F)||t!==null&&t.dependencies!==null&&ni(t.dependencies))?(W||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(m,ae,F),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(m,ae,F)),typeof b.componentDidUpdate=="function"&&(r.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof b.componentDidUpdate!="function"||M===t.memoizedProps&&ee===t.memoizedState||(r.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||M===t.memoizedProps&&ee===t.memoizedState||(r.flags|=1024),r.memoizedProps=m,r.memoizedState=ae),b.props=m,b.state=ae,b.context=F,m=ne):(typeof b.componentDidUpdate!="function"||M===t.memoizedProps&&ee===t.memoizedState||(r.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||M===t.memoizedProps&&ee===t.memoizedState||(r.flags|=1024),m=!1)}return b=m,Ai(t,r),m=(r.flags&128)!==0,b||m?(b=r.stateNode,o=m&&typeof o.getDerivedStateFromError!="function"?null:b.render(),r.flags|=1,t!==null&&m?(r.child=E0(r,t.child,null,v),r.child=E0(r,null,o,v)):kt(t,r,o,v),r.memoizedState=b.state,t=r.child):t=fn(t,r,v),t}function Op(t,r,o,m){return v0(),r.flags|=256,kt(t,r,o,m),r.child}var Ec={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nc(t){return{baseLanes:t,cachePool:S3()}}function Mc(t,r,o){return t=t!==null?t.childLanes&~o:0,r&&(t|=ia),t}function Fp(t,r,o){var m=r.pendingProps,v=!1,b=(r.flags&128)!==0,M;if((M=b)||(M=t!==null&&t.memoizedState===null?!1:(ut.current&2)!==0),M&&(v=!0,r.flags&=-129),M=(r.flags&32)!==0,r.flags&=-33,t===null){if(_e){if(v?qn(r):zn(),(t=Qe)?(t=G5(t,ba),t=t!==null&&t.data!=="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:Tn!==null?{id:Ia,overflow:Ua}:null,retryLane:536870912,hydrationErrors:null},o=v3(t),o.return=r,r.child=o,Lt=r,Qe=null)):t=null,t===null)throw Rn(r);return o2(t)?r.lanes=32:r.lanes=536870912,null}var _=m.children;return m=m.fallback,v?(zn(),v=r.mode,_=ji({mode:"hidden",children:_},v),m=x0(m,v,o,null),_.return=r,m.return=r,_.sibling=m,r.child=_,m=r.child,m.memoizedState=Nc(o),m.childLanes=Mc(t,M,o),r.memoizedState=Ec,Cs(null,m)):(qn(r),Sc(r,_))}var F=t.memoizedState;if(F!==null&&(_=F.dehydrated,_!==null)){if(b)r.flags&256?(qn(r),r.flags&=-257,r=Zc(t,r,o)):r.memoizedState!==null?(zn(),r.child=t.child,r.flags|=128,r=null):(zn(),_=m.fallback,v=r.mode,m=ji({mode:"visible",children:m.children},v),_=x0(_,v,o,null),_.flags|=2,m.return=r,_.return=r,m.sibling=_,r.child=m,E0(r,t.child,null,o),m=r.child,m.memoizedState=Nc(o),m.childLanes=Mc(t,M,o),r.memoizedState=Ec,r=Cs(null,m));else if(qn(r),o2(_)){if(M=_.nextSibling&&_.nextSibling.dataset,M)var W=M.dgst;M=W,m=Error(i(419)),m.stack="",m.digest=M,xs({value:m,source:null,stack:null}),r=Zc(t,r,o)}else if(gt||or(t,r,o,!1),M=(o&t.childLanes)!==0,gt||M){if(M=Ke,M!==null&&(m=Nf(M,o),m!==0&&m!==F.retryLane))throw F.retryLane=m,g0(t,m),Jt(M,t,m),Ac;i2(_)||_i(),r=Zc(t,r,o)}else i2(_)?(r.flags|=192,r.child=t.child,r=null):(t=F.treeContext,Qe=wa(_.nextSibling),Lt=r,_e=!0,Ln=null,ba=!1,t!==null&&w3(r,t),r=Sc(r,m.children),r.flags|=4096);return r}return v?(zn(),_=m.fallback,v=r.mode,F=t.child,W=F.sibling,m=on(F,{mode:"hidden",children:m.children}),m.subtreeFlags=F.subtreeFlags&65011712,W!==null?_=on(W,_):(_=x0(_,v,o,null),_.flags|=2),_.return=r,m.return=r,m.sibling=_,r.child=m,Cs(null,m),m=r.child,_=t.child.memoizedState,_===null?_=Nc(o):(v=_.cachePool,v!==null?(F=ft._currentValue,v=v.parent!==F?{parent:F,pool:F}:v):v=S3(),_={baseLanes:_.baseLanes|o,cachePool:v}),m.memoizedState=_,m.childLanes=Mc(t,M,o),r.memoizedState=Ec,Cs(t.child,m)):(qn(r),o=t.child,t=o.sibling,o=on(o,{mode:"visible",children:m.children}),o.return=r,o.sibling=null,t!==null&&(M=r.deletions,M===null?(r.deletions=[t],r.flags|=16):M.push(t)),r.child=o,r.memoizedState=null,o)}function Sc(t,r){return r=ji({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function ji(t,r){return t=na(22,t,null,r),t.lanes=0,t}function Zc(t,r,o){return E0(r,t.child,null,o),t=Sc(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function qp(t,r,o){t.lanes|=r;var m=t.alternate;m!==null&&(m.lanes|=r),$o(t.return,r,o)}function Cc(t,r,o,m,v,b){var M=t.memoizedState;M===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:m,tail:o,tailMode:v,treeForkCount:b}:(M.isBackwards=r,M.rendering=null,M.renderingStartTime=0,M.last=m,M.tail=o,M.tailMode=v,M.treeForkCount=b)}function zp(t,r,o){var m=r.pendingProps,v=m.revealOrder,b=m.tail;m=m.children;var M=ut.current,_=(M&2)!==0;if(_?(M=M&1|2,r.flags|=128):M&=1,re(ut,M),kt(t,r,m,o),m=_e?gs:0,!_&&t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&qp(t,o,r);else if(t.tag===19)qp(t,o,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(v){case"forwards":for(o=r.child,v=null;o!==null;)t=o.alternate,t!==null&&di(t)===null&&(v=o),o=o.sibling;o=v,o===null?(v=r.child,r.child=null):(v=o.sibling,o.sibling=null),Cc(r,!1,v,o,b,m);break;case"backwards":case"unstable_legacy-backwards":for(o=null,v=r.child,r.child=null;v!==null;){if(t=v.alternate,t!==null&&di(t)===null){r.child=v;break}t=v.sibling,v.sibling=o,o=v,v=t}Cc(r,!0,o,null,b,m);break;case"together":Cc(r,!1,null,null,void 0,m);break;default:r.memoizedState=null}return r.child}function fn(t,r,o){if(t!==null&&(r.dependencies=t.dependencies),In|=r.lanes,(o&r.childLanes)===0)if(t!==null){if(or(t,r,o,!1),(o&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,o=on(t,t.pendingProps),r.child=o,o.return=r;t.sibling!==null;)t=t.sibling,o=o.sibling=on(t,t.pendingProps),o.return=r;o.sibling=null}return r.child}function Hc(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&ni(t)))}function KZ(t,r,o){switch(r.tag){case 3:fe(r,r.stateNode.containerInfo),kn(r,ft,t.memoizedState.cache),v0();break;case 27:case 5:Le(r);break;case 4:fe(r,r.stateNode.containerInfo);break;case 10:kn(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,tc(r),null;break;case 13:var m=r.memoizedState;if(m!==null)return m.dehydrated!==null?(qn(r),r.flags|=128,null):(o&r.child.childLanes)!==0?Fp(t,r,o):(qn(r),t=fn(t,r,o),t!==null?t.sibling:null);qn(r);break;case 19:var v=(t.flags&128)!==0;if(m=(o&r.childLanes)!==0,m||(or(t,r,o,!1),m=(o&r.childLanes)!==0),v){if(m)return zp(t,r,o);r.flags|=128}if(v=r.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),re(ut,ut.current),m)break;return null;case 22:return r.lanes=0,Tp(t,r,o,r.pendingProps);case 24:kn(r,ft,t.memoizedState.cache)}return fn(t,r,o)}function Bp(t,r,o){if(t!==null)if(t.memoizedProps!==r.pendingProps)gt=!0;else{if(!Hc(t,o)&&(r.flags&128)===0)return gt=!1,KZ(t,r,o);gt=(t.flags&131072)!==0}else gt=!1,_e&&(r.flags&1048576)!==0&&y3(r,gs,r.index);switch(r.lanes=0,r.tag){case 16:e:{var m=r.pendingProps;if(t=A0(r.elementType),r.type=t,typeof t=="function")Ro(t)?(m=M0(t,m),r.tag=1,r=Dp(null,r,t,m,o)):(r.tag=0,r=jc(null,r,t,m,o));else{if(t!=null){var v=t.$$typeof;if(v===C){r.tag=11,r=Hp(null,r,t,m,o);break e}else if(v===T){r.tag=14,r=Vp(null,r,t,m,o);break e}}throw r=$(t)||t,Error(i(306,r,""))}}return r;case 0:return jc(t,r,r.type,r.pendingProps,o);case 1:return m=r.type,v=M0(m,r.pendingProps),Dp(t,r,m,v,o);case 3:e:{if(fe(r,r.stateNode.containerInfo),t===null)throw Error(i(387));m=r.pendingProps;var b=r.memoizedState;v=b.element,Xo(t,r),Es(r,m,null,o);var M=r.memoizedState;if(m=M.cache,kn(r,ft,m),m!==b.cache&&Io(r,[ft],o,!0),js(),m=M.element,b.isDehydrated)if(b={element:m,isDehydrated:!1,cache:M.cache},r.updateQueue.baseState=b,r.memoizedState=b,r.flags&256){r=Op(t,r,m,o);break e}else if(m!==v){v=ga(Error(i(424)),r),xs(v),r=Op(t,r,m,o);break e}else{switch(t=r.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Qe=wa(t.firstChild),Lt=r,_e=!0,Ln=null,ba=!0,o=T3(r,null,m,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(v0(),m===v){r=fn(t,r,o);break e}kt(t,r,m,o)}r=r.child}return r;case 26:return Ai(t,r),t===null?(o=W5(r.type,null,r.pendingProps,null))?r.memoizedState=o:_e||(o=r.type,t=r.pendingProps,m=Fi(P.current).createElement(o),m[Tt]=r,m[Pt]=t,Dt(m,o,t),Zt(m),r.stateNode=m):r.memoizedState=W5(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return Le(r),t===null&&_e&&(m=r.stateNode=X5(r.type,r.pendingProps,P.current),Lt=r,ba=!0,v=Qe,Kn(r.type)?(c2=v,Qe=wa(m.firstChild)):Qe=v),kt(t,r,r.pendingProps.children,o),Ai(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&_e&&((v=m=Qe)&&(m=NC(m,r.type,r.pendingProps,ba),m!==null?(r.stateNode=m,Lt=r,Qe=wa(m.firstChild),ba=!1,v=!0):v=!1),v||Rn(r)),Le(r),v=r.type,b=r.pendingProps,M=t!==null?t.memoizedProps:null,m=b.children,r2(v,b)?m=null:M!==null&&r2(v,M)&&(r.flags|=32),r.memoizedState!==null&&(v=nc(t,r,qZ,null,null,o),Is._currentValue=v),Ai(t,r),kt(t,r,m,o),r.child;case 6:return t===null&&_e&&((t=o=Qe)&&(o=MC(o,r.pendingProps,ba),o!==null?(r.stateNode=o,Lt=r,Qe=null,t=!0):t=!1),t||Rn(r)),null;case 13:return Fp(t,r,o);case 4:return fe(r,r.stateNode.containerInfo),m=r.pendingProps,t===null?r.child=E0(r,null,m,o):kt(t,r,m,o),r.child;case 11:return Hp(t,r,r.type,r.pendingProps,o);case 7:return kt(t,r,r.pendingProps,o),r.child;case 8:return kt(t,r,r.pendingProps.children,o),r.child;case 12:return kt(t,r,r.pendingProps.children,o),r.child;case 10:return m=r.pendingProps,kn(r,r.type,m.value),kt(t,r,m.children,o),r.child;case 9:return v=r.type._context,m=r.pendingProps.children,y0(r),v=Rt(v),m=m(v),r.flags|=1,kt(t,r,m,o),r.child;case 14:return Vp(t,r,r.type,r.pendingProps,o);case 15:return _p(t,r,r.type,r.pendingProps,o);case 19:return zp(t,r,o);case 31:return YZ(t,r,o);case 22:return Tp(t,r,o,r.pendingProps);case 24:return y0(r),m=Rt(ft),t===null?(v=Go(),v===null&&(v=Ke,b=Uo(),v.pooledCache=b,b.refCount++,b!==null&&(v.pooledCacheLanes|=o),v=b),r.memoizedState={parent:m,cache:v},Ko(r),kn(r,ft,v)):((t.lanes&o)!==0&&(Xo(t,r),Es(r,null,null,o),js()),v=t.memoizedState,b=r.memoizedState,v.parent!==m?(v={parent:m,cache:m},r.memoizedState=v,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=v),kn(r,ft,m)):(m=b.cache,kn(r,ft,m),m!==v.cache&&Io(r,[ft],o,!0))),kt(t,r,r.pendingProps.children,o),r.child;case 29:throw r.pendingProps}throw Error(i(156,r.tag))}function pn(t){t.flags|=4}function Vc(t,r,o,m,v){if((r=(t.mode&32)!==0)&&(r=!1),r){if(t.flags|=16777216,(v&335544128)===v)if(t.stateNode.complete)t.flags|=8192;else if(p5())t.flags|=8192;else throw j0=ii,Yo}else t.flags&=-16777217}function $p(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!rg(r))if(p5())t.flags|=8192;else throw j0=ii,Yo}function Ei(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Af():536870912,t.lanes|=r,yr|=r)}function Hs(t,r){if(!_e)switch(t.tailMode){case"hidden":r=t.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var m=null;o!==null;)o.alternate!==null&&(m=o),o=o.sibling;m===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:m.sibling=null}}function Je(t){var r=t.alternate!==null&&t.alternate.child===t.child,o=0,m=0;if(r)for(var v=t.child;v!==null;)o|=v.lanes|v.childLanes,m|=v.subtreeFlags&65011712,m|=v.flags&65011712,v.return=t,v=v.sibling;else for(v=t.child;v!==null;)o|=v.lanes|v.childLanes,m|=v.subtreeFlags,m|=v.flags,v.return=t,v=v.sibling;return t.subtreeFlags|=m,t.childLanes=o,r}function XZ(t,r,o){var m=r.pendingProps;switch(Fo(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(r),null;case 1:return Je(r),null;case 3:return o=r.stateNode,m=null,t!==null&&(m=t.memoizedState.cache),r.memoizedState.cache!==m&&(r.flags|=2048),dn(ft),ye(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(ir(r)?pn(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,zo())),Je(r),null;case 26:var v=r.type,b=r.memoizedState;return t===null?(pn(r),b!==null?(Je(r),$p(r,b)):(Je(r),Vc(r,v,null,m,o))):b?b!==t.memoizedState?(pn(r),Je(r),$p(r,b)):(Je(r),r.flags&=-16777217):(t=t.memoizedProps,t!==m&&pn(r),Je(r),Vc(r,v,t,m,o)),null;case 27:if(Ie(r),o=P.current,v=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==m&&pn(r);else{if(!m){if(r.stateNode===null)throw Error(i(166));return Je(r),null}t=z.current,ir(r)?A3(r):(t=X5(v,m,o),r.stateNode=t,pn(r))}return Je(r),null;case 5:if(Ie(r),v=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==m&&pn(r);else{if(!m){if(r.stateNode===null)throw Error(i(166));return Je(r),null}if(b=z.current,ir(r))A3(r);else{var M=Fi(P.current);switch(b){case 1:b=M.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:b=M.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":b=M.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":b=M.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":b=M.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof m.is=="string"?M.createElement("select",{is:m.is}):M.createElement("select"),m.multiple?b.multiple=!0:m.size&&(b.size=m.size);break;default:b=typeof m.is=="string"?M.createElement(v,{is:m.is}):M.createElement(v)}}b[Tt]=r,b[Pt]=m;e:for(M=r.child;M!==null;){if(M.tag===5||M.tag===6)b.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===r)break e;for(;M.sibling===null;){if(M.return===null||M.return===r)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}r.stateNode=b;e:switch(Dt(b,v,m),v){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&pn(r)}}return Je(r),Vc(r,r.type,t===null?null:t.memoizedProps,r.pendingProps,o),null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==m&&pn(r);else{if(typeof m!="string"&&r.stateNode===null)throw Error(i(166));if(t=P.current,ir(r)){if(t=r.stateNode,o=r.memoizedProps,m=null,v=Lt,v!==null)switch(v.tag){case 27:case 5:m=v.memoizedProps}t[Tt]=r,t=!!(t.nodeValue===o||m!==null&&m.suppressHydrationWarning===!0||F5(t.nodeValue,o)),t||Rn(r,!0)}else t=Fi(t).createTextNode(m),t[Tt]=r,r.stateNode=t}return Je(r),null;case 31:if(o=r.memoizedState,t===null||t.memoizedState!==null){if(m=ir(r),o!==null){if(t===null){if(!m)throw Error(i(318));if(t=r.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(557));t[Tt]=r}else v0(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Je(r),t=!1}else o=zo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),t=!0;if(!t)return r.flags&256?(sa(r),r):(sa(r),null);if((r.flags&128)!==0)throw Error(i(558))}return Je(r),null;case 13:if(m=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(v=ir(r),m!==null&&m.dehydrated!==null){if(t===null){if(!v)throw Error(i(318));if(v=r.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(i(317));v[Tt]=r}else v0(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Je(r),v=!1}else v=zo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=v),v=!0;if(!v)return r.flags&256?(sa(r),r):(sa(r),null)}return sa(r),(r.flags&128)!==0?(r.lanes=o,r):(o=m!==null,t=t!==null&&t.memoizedState!==null,o&&(m=r.child,v=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(v=m.alternate.memoizedState.cachePool.pool),b=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(b=m.memoizedState.cachePool.pool),b!==v&&(m.flags|=2048)),o!==t&&o&&(r.child.flags|=8192),Ei(r,r.updateQueue),Je(r),null);case 4:return ye(),t===null&&Wc(r.stateNode.containerInfo),Je(r),null;case 10:return dn(r.type),Je(r),null;case 19:if(te(ut),m=r.memoizedState,m===null)return Je(r),null;if(v=(r.flags&128)!==0,b=m.rendering,b===null)if(v)Hs(m,!1);else{if(st!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(b=di(t),b!==null){for(r.flags|=128,Hs(m,!1),t=b.updateQueue,r.updateQueue=t,Ei(r,t),r.subtreeFlags=0,t=o,o=r.child;o!==null;)x3(o,t),o=o.sibling;return re(ut,ut.current&1|2),_e&&cn(r,m.treeForkCount),r.child}t=t.sibling}m.tail!==null&&ot()>Ci&&(r.flags|=128,v=!0,Hs(m,!1),r.lanes=4194304)}else{if(!v)if(t=di(b),t!==null){if(r.flags|=128,v=!0,t=t.updateQueue,r.updateQueue=t,Ei(r,t),Hs(m,!0),m.tail===null&&m.tailMode==="hidden"&&!b.alternate&&!_e)return Je(r),null}else 2*ot()-m.renderingStartTime>Ci&&o!==536870912&&(r.flags|=128,v=!0,Hs(m,!1),r.lanes=4194304);m.isBackwards?(b.sibling=r.child,r.child=b):(t=m.last,t!==null?t.sibling=b:r.child=b,m.last=b)}return m.tail!==null?(t=m.tail,m.rendering=t,m.tail=t.sibling,m.renderingStartTime=ot(),t.sibling=null,o=ut.current,re(ut,v?o&1|2:o&1),_e&&cn(r,m.treeForkCount),t):(Je(r),null);case 22:case 23:return sa(r),ec(),m=r.memoizedState!==null,t!==null?t.memoizedState!==null!==m&&(r.flags|=8192):m&&(r.flags|=8192),m?(o&536870912)!==0&&(r.flags&128)===0&&(Je(r),r.subtreeFlags&6&&(r.flags|=8192)):Je(r),o=r.updateQueue,o!==null&&Ei(r,o.retryQueue),o=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),m=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(m=r.memoizedState.cachePool.pool),m!==o&&(r.flags|=2048),t!==null&&te(w0),null;case 24:return o=null,t!==null&&(o=t.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),dn(ft),Je(r),null;case 25:return null;case 30:return null}throw Error(i(156,r.tag))}function QZ(t,r){switch(Fo(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return dn(ft),ye(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return Ie(r),null;case 31:if(r.memoizedState!==null){if(sa(r),r.alternate===null)throw Error(i(340));v0()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 13:if(sa(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));v0()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return te(ut),null;case 4:return ye(),null;case 10:return dn(r.type),null;case 22:case 23:return sa(r),ec(),t!==null&&te(w0),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return dn(ft),null;case 25:return null;default:return null}}function Ip(t,r){switch(Fo(r),r.tag){case 3:dn(ft),ye();break;case 26:case 27:case 5:Ie(r);break;case 4:ye();break;case 31:r.memoizedState!==null&&sa(r);break;case 13:sa(r);break;case 19:te(ut);break;case 10:dn(r.type);break;case 22:case 23:sa(r),ec(),t!==null&&te(w0);break;case 24:dn(ft)}}function Vs(t,r){try{var o=r.updateQueue,m=o!==null?o.lastEffect:null;if(m!==null){var v=m.next;o=v;do{if((o.tag&t)===t){m=void 0;var b=o.create,M=o.inst;m=b(),M.destroy=m}o=o.next}while(o!==v)}}catch(_){$e(r,r.return,_)}}function Bn(t,r,o){try{var m=r.updateQueue,v=m!==null?m.lastEffect:null;if(v!==null){var b=v.next;m=b;do{if((m.tag&t)===t){var M=m.inst,_=M.destroy;if(_!==void 0){M.destroy=void 0,v=r;var F=o,W=_;try{W()}catch(ne){$e(v,F,ne)}}}m=m.next}while(m!==b)}}catch(ne){$e(r,r.return,ne)}}function Up(t){var r=t.updateQueue;if(r!==null){var o=t.stateNode;try{R3(r,o)}catch(m){$e(t,t.return,m)}}}function Pp(t,r,o){o.props=M0(t.type,t.memoizedProps),o.state=t.memoizedState;try{o.componentWillUnmount()}catch(m){$e(t,r,m)}}function _s(t,r){try{var o=t.ref;if(o!==null){switch(t.tag){case 26:case 27:case 5:var m=t.stateNode;break;case 30:m=t.stateNode;break;default:m=t.stateNode}typeof o=="function"?t.refCleanup=o(m):o.current=m}}catch(v){$e(t,r,v)}}function Pa(t,r){var o=t.ref,m=t.refCleanup;if(o!==null)if(typeof m=="function")try{m()}catch(v){$e(t,r,v)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(v){$e(t,r,v)}else o.current=null}function Gp(t){var r=t.type,o=t.memoizedProps,m=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&m.focus();break e;case"img":o.src?m.src=o.src:o.srcSet&&(m.srcset=o.srcSet)}}catch(v){$e(t,t.return,v)}}function _c(t,r,o){try{var m=t.stateNode;bC(m,t.type,o,r),m[Pt]=r}catch(v){$e(t,t.return,v)}}function Yp(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Kn(t.type)||t.tag===4}function Tc(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Yp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Kn(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Lc(t,r,o){var m=t.tag;if(m===5||m===6)t=t.stateNode,r?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(t,r):(r=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,r.appendChild(t),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=sn));else if(m!==4&&(m===27&&Kn(t.type)&&(o=t.stateNode,r=null),t=t.child,t!==null))for(Lc(t,r,o),t=t.sibling;t!==null;)Lc(t,r,o),t=t.sibling}function Ni(t,r,o){var m=t.tag;if(m===5||m===6)t=t.stateNode,r?o.insertBefore(t,r):o.appendChild(t);else if(m!==4&&(m===27&&Kn(t.type)&&(o=t.stateNode),t=t.child,t!==null))for(Ni(t,r,o),t=t.sibling;t!==null;)Ni(t,r,o),t=t.sibling}function Kp(t){var r=t.stateNode,o=t.memoizedProps;try{for(var m=t.type,v=r.attributes;v.length;)r.removeAttributeNode(v[0]);Dt(r,m,o),r[Tt]=t,r[Pt]=o}catch(b){$e(t,t.return,b)}}var gn=!1,xt=!1,Rc=!1,Xp=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function JZ(t,r){if(t=t.containerInfo,a2=Pi,t=o3(t),Zo(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var m=o.getSelection&&o.getSelection();if(m&&m.rangeCount!==0){o=m.anchorNode;var v=m.anchorOffset,b=m.focusNode;m=m.focusOffset;try{o.nodeType,b.nodeType}catch{o=null;break e}var M=0,_=-1,F=-1,W=0,ne=0,ie=t,ee=null;t:for(;;){for(var ae;ie!==o||v!==0&&ie.nodeType!==3||(_=M+v),ie!==b||m!==0&&ie.nodeType!==3||(F=M+m),ie.nodeType===3&&(M+=ie.nodeValue.length),(ae=ie.firstChild)!==null;)ee=ie,ie=ae;for(;;){if(ie===t)break t;if(ee===o&&++W===v&&(_=M),ee===b&&++ne===m&&(F=M),(ae=ie.nextSibling)!==null)break;ie=ee,ee=ie.parentNode}ie=ae}o=_===-1||F===-1?null:{start:_,end:F}}else o=null}o=o||{start:0,end:0}}else o=null;for(n2={focusedElem:t,selectionRange:o},Pi=!1,Ct=r;Ct!==null;)if(r=Ct,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,Ct=t;else for(;Ct!==null;){switch(r=Ct,b=r.alternate,t=r.flags,r.tag){case 0:if((t&4)!==0&&(t=r.updateQueue,t=t!==null?t.events:null,t!==null))for(o=0;o<t.length;o++)v=t[o],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&b!==null){t=void 0,o=r,v=b.memoizedProps,b=b.memoizedState,m=o.stateNode;try{var pe=M0(o.type,v);t=m.getSnapshotBeforeUpdate(pe,b),m.__reactInternalSnapshotBeforeUpdate=t}catch(we){$e(o,o.return,we)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,o=t.nodeType,o===9)l2(t);else if(o===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":l2(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(i(163))}if(t=r.sibling,t!==null){t.return=r.return,Ct=t;break}Ct=r.return}}function Qp(t,r,o){var m=o.flags;switch(o.tag){case 0:case 11:case 15:vn(t,o),m&4&&Vs(5,o);break;case 1:if(vn(t,o),m&4)if(t=o.stateNode,r===null)try{t.componentDidMount()}catch(M){$e(o,o.return,M)}else{var v=M0(o.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(v,r,t.__reactInternalSnapshotBeforeUpdate)}catch(M){$e(o,o.return,M)}}m&64&&Up(o),m&512&&_s(o,o.return);break;case 3:if(vn(t,o),m&64&&(t=o.updateQueue,t!==null)){if(r=null,o.child!==null)switch(o.child.tag){case 27:case 5:r=o.child.stateNode;break;case 1:r=o.child.stateNode}try{R3(t,r)}catch(M){$e(o,o.return,M)}}break;case 27:r===null&&m&4&&Kp(o);case 26:case 5:vn(t,o),r===null&&m&4&&Gp(o),m&512&&_s(o,o.return);break;case 12:vn(t,o);break;case 31:vn(t,o),m&4&&e5(t,o);break;case 13:vn(t,o),m&4&&t5(t,o),m&64&&(t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(o=iC.bind(null,o),SC(t,o))));break;case 22:if(m=o.memoizedState!==null||gn,!m){r=r!==null&&r.memoizedState!==null||xt,v=gn;var b=xt;gn=m,(xt=r)&&!b?bn(t,o,(o.subtreeFlags&8772)!==0):vn(t,o),gn=v,xt=b}break;case 30:break;default:vn(t,o)}}function Jp(t){var r=t.alternate;r!==null&&(t.alternate=null,Jp(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&uo(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var et=null,Yt=!1;function xn(t,r,o){for(o=o.child;o!==null;)Wp(t,r,o),o=o.sibling}function Wp(t,r,o){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Ut,o)}catch{}switch(o.tag){case 26:xt||Pa(o,r),xn(t,r,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:xt||Pa(o,r);var m=et,v=Yt;Kn(o.type)&&(et=o.stateNode,Yt=!1),xn(t,r,o),zs(o.stateNode),et=m,Yt=v;break;case 5:xt||Pa(o,r);case 6:if(m=et,v=Yt,et=null,xn(t,r,o),et=m,Yt=v,et!==null)if(Yt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(o.stateNode)}catch(b){$e(o,r,b)}else try{et.removeChild(o.stateNode)}catch(b){$e(o,r,b)}break;case 18:et!==null&&(Yt?(t=et,U5(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,o.stateNode),Zr(t)):U5(et,o.stateNode));break;case 4:m=et,v=Yt,et=o.stateNode.containerInfo,Yt=!0,xn(t,r,o),et=m,Yt=v;break;case 0:case 11:case 14:case 15:Bn(2,o,r),xt||Bn(4,o,r),xn(t,r,o);break;case 1:xt||(Pa(o,r),m=o.stateNode,typeof m.componentWillUnmount=="function"&&Pp(o,r,m)),xn(t,r,o);break;case 21:xn(t,r,o);break;case 22:xt=(m=xt)||o.memoizedState!==null,xn(t,r,o),xt=m;break;default:xn(t,r,o)}}function e5(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Zr(t)}catch(o){$e(r,r.return,o)}}}function t5(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Zr(t)}catch(o){$e(r,r.return,o)}}function WZ(t){switch(t.tag){case 31:case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new Xp),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new Xp),r;default:throw Error(i(435,t.tag))}}function Mi(t,r){var o=WZ(t);r.forEach(function(m){if(!o.has(m)){o.add(m);var v=oC.bind(null,t,m);m.then(v,v)}})}function Kt(t,r){var o=r.deletions;if(o!==null)for(var m=0;m<o.length;m++){var v=o[m],b=t,M=r,_=M;e:for(;_!==null;){switch(_.tag){case 27:if(Kn(_.type)){et=_.stateNode,Yt=!1;break e}break;case 5:et=_.stateNode,Yt=!1;break e;case 3:case 4:et=_.stateNode.containerInfo,Yt=!0;break e}_=_.return}if(et===null)throw Error(i(160));Wp(b,M,v),et=null,Yt=!1,b=v.alternate,b!==null&&(b.return=null),v.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)a5(r,t),r=r.sibling}var _a=null;function a5(t,r){var o=t.alternate,m=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Kt(r,t),Xt(t),m&4&&(Bn(3,t,t.return),Vs(3,t),Bn(5,t,t.return));break;case 1:Kt(r,t),Xt(t),m&512&&(xt||o===null||Pa(o,o.return)),m&64&&gn&&(t=t.updateQueue,t!==null&&(m=t.callbacks,m!==null&&(o=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=o===null?m:o.concat(m))));break;case 26:var v=_a;if(Kt(r,t),Xt(t),m&512&&(xt||o===null||Pa(o,o.return)),m&4){var b=o!==null?o.memoizedState:null;if(m=t.memoizedState,o===null)if(m===null)if(t.stateNode===null){e:{m=t.type,o=t.memoizedProps,v=v.ownerDocument||v;t:switch(m){case"title":b=v.getElementsByTagName("title")[0],(!b||b[ss]||b[Tt]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=v.createElement(m),v.head.insertBefore(b,v.querySelector("head > title"))),Dt(b,m,o),b[Tt]=t,Zt(b),m=b;break e;case"link":var M=ag("link","href",v).get(m+(o.href||""));if(M){for(var _=0;_<M.length;_++)if(b=M[_],b.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&b.getAttribute("rel")===(o.rel==null?null:o.rel)&&b.getAttribute("title")===(o.title==null?null:o.title)&&b.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){M.splice(_,1);break t}}b=v.createElement(m),Dt(b,m,o),v.head.appendChild(b);break;case"meta":if(M=ag("meta","content",v).get(m+(o.content||""))){for(_=0;_<M.length;_++)if(b=M[_],b.getAttribute("content")===(o.content==null?null:""+o.content)&&b.getAttribute("name")===(o.name==null?null:o.name)&&b.getAttribute("property")===(o.property==null?null:o.property)&&b.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&b.getAttribute("charset")===(o.charSet==null?null:o.charSet)){M.splice(_,1);break t}}b=v.createElement(m),Dt(b,m,o),v.head.appendChild(b);break;default:throw Error(i(468,m))}b[Tt]=t,Zt(b),m=b}t.stateNode=m}else ng(v,t.type,t.stateNode);else t.stateNode=tg(v,m,t.memoizedProps);else b!==m?(b===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):b.count--,m===null?ng(v,t.type,t.stateNode):tg(v,m,t.memoizedProps)):m===null&&t.stateNode!==null&&_c(t,t.memoizedProps,o.memoizedProps)}break;case 27:Kt(r,t),Xt(t),m&512&&(xt||o===null||Pa(o,o.return)),o!==null&&m&4&&_c(t,t.memoizedProps,o.memoizedProps);break;case 5:if(Kt(r,t),Xt(t),m&512&&(xt||o===null||Pa(o,o.return)),t.flags&32){v=t.stateNode;try{Q0(v,"")}catch(pe){$e(t,t.return,pe)}}m&4&&t.stateNode!=null&&(v=t.memoizedProps,_c(t,v,o!==null?o.memoizedProps:v)),m&1024&&(Rc=!0);break;case 6:if(Kt(r,t),Xt(t),m&4){if(t.stateNode===null)throw Error(i(162));m=t.memoizedProps,o=t.stateNode;try{o.nodeValue=m}catch(pe){$e(t,t.return,pe)}}break;case 3:if(Bi=null,v=_a,_a=qi(r.containerInfo),Kt(r,t),_a=v,Xt(t),m&4&&o!==null&&o.memoizedState.isDehydrated)try{Zr(r.containerInfo)}catch(pe){$e(t,t.return,pe)}Rc&&(Rc=!1,n5(t));break;case 4:m=_a,_a=qi(t.stateNode.containerInfo),Kt(r,t),Xt(t),_a=m;break;case 12:Kt(r,t),Xt(t);break;case 31:Kt(r,t),Xt(t),m&4&&(m=t.updateQueue,m!==null&&(t.updateQueue=null,Mi(t,m)));break;case 13:Kt(r,t),Xt(t),t.child.flags&8192&&t.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Zi=ot()),m&4&&(m=t.updateQueue,m!==null&&(t.updateQueue=null,Mi(t,m)));break;case 22:v=t.memoizedState!==null;var F=o!==null&&o.memoizedState!==null,W=gn,ne=xt;if(gn=W||v,xt=ne||F,Kt(r,t),xt=ne,gn=W,Xt(t),m&8192)e:for(r=t.stateNode,r._visibility=v?r._visibility&-2:r._visibility|1,v&&(o===null||F||gn||xt||S0(t)),o=null,r=t;;){if(r.tag===5||r.tag===26){if(o===null){F=o=r;try{if(b=F.stateNode,v)M=b.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none";else{_=F.stateNode;var ie=F.memoizedProps.style,ee=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;_.style.display=ee==null||typeof ee=="boolean"?"":(""+ee).trim()}}catch(pe){$e(F,F.return,pe)}}}else if(r.tag===6){if(o===null){F=r;try{F.stateNode.nodeValue=v?"":F.memoizedProps}catch(pe){$e(F,F.return,pe)}}}else if(r.tag===18){if(o===null){F=r;try{var ae=F.stateNode;v?P5(ae,!0):P5(F.stateNode,!1)}catch(pe){$e(F,F.return,pe)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;o===r&&(o=null),r=r.return}o===r&&(o=null),r.sibling.return=r.return,r=r.sibling}m&4&&(m=t.updateQueue,m!==null&&(o=m.retryQueue,o!==null&&(m.retryQueue=null,Mi(t,o))));break;case 19:Kt(r,t),Xt(t),m&4&&(m=t.updateQueue,m!==null&&(t.updateQueue=null,Mi(t,m)));break;case 30:break;case 21:break;default:Kt(r,t),Xt(t)}}function Xt(t){var r=t.flags;if(r&2){try{for(var o,m=t.return;m!==null;){if(Yp(m)){o=m;break}m=m.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var v=o.stateNode,b=Tc(t);Ni(t,b,v);break;case 5:var M=o.stateNode;o.flags&32&&(Q0(M,""),o.flags&=-33);var _=Tc(t);Ni(t,_,M);break;case 3:case 4:var F=o.stateNode.containerInfo,W=Tc(t);Lc(t,W,F);break;default:throw Error(i(161))}}catch(ne){$e(t,t.return,ne)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function n5(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;n5(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function vn(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Qp(t,r.alternate,r),r=r.sibling}function S0(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:Bn(4,r,r.return),S0(r);break;case 1:Pa(r,r.return);var o=r.stateNode;typeof o.componentWillUnmount=="function"&&Pp(r,r.return,o),S0(r);break;case 27:zs(r.stateNode);case 26:case 5:Pa(r,r.return),S0(r);break;case 22:r.memoizedState===null&&S0(r);break;case 30:S0(r);break;default:S0(r)}t=t.sibling}}function bn(t,r,o){for(o=o&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var m=r.alternate,v=t,b=r,M=b.flags;switch(b.tag){case 0:case 11:case 15:bn(v,b,o),Vs(4,b);break;case 1:if(bn(v,b,o),m=b,v=m.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(W){$e(m,m.return,W)}if(m=b,v=m.updateQueue,v!==null){var _=m.stateNode;try{var F=v.shared.hiddenCallbacks;if(F!==null)for(v.shared.hiddenCallbacks=null,v=0;v<F.length;v++)L3(F[v],_)}catch(W){$e(m,m.return,W)}}o&&M&64&&Up(b),_s(b,b.return);break;case 27:Kp(b);case 26:case 5:bn(v,b,o),o&&m===null&&M&4&&Gp(b),_s(b,b.return);break;case 12:bn(v,b,o);break;case 31:bn(v,b,o),o&&M&4&&e5(v,b);break;case 13:bn(v,b,o),o&&M&4&&t5(v,b);break;case 22:b.memoizedState===null&&bn(v,b,o),_s(b,b.return);break;case 30:break;default:bn(v,b,o)}r=r.sibling}}function kc(t,r){var o=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==o&&(t!=null&&t.refCount++,o!=null&&vs(o))}function Dc(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&vs(t))}function Ta(t,r,o,m){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)r5(t,r,o,m),r=r.sibling}function r5(t,r,o,m){var v=r.flags;switch(r.tag){case 0:case 11:case 15:Ta(t,r,o,m),v&2048&&Vs(9,r);break;case 1:Ta(t,r,o,m);break;case 3:Ta(t,r,o,m),v&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&vs(t)));break;case 12:if(v&2048){Ta(t,r,o,m),t=r.stateNode;try{var b=r.memoizedProps,M=b.id,_=b.onPostCommit;typeof _=="function"&&_(M,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(F){$e(r,r.return,F)}}else Ta(t,r,o,m);break;case 31:Ta(t,r,o,m);break;case 13:Ta(t,r,o,m);break;case 23:break;case 22:b=r.stateNode,M=r.alternate,r.memoizedState!==null?b._visibility&2?Ta(t,r,o,m):Ts(t,r):b._visibility&2?Ta(t,r,o,m):(b._visibility|=2,xr(t,r,o,m,(r.subtreeFlags&10256)!==0||!1)),v&2048&&kc(M,r);break;case 24:Ta(t,r,o,m),v&2048&&Dc(r.alternate,r);break;default:Ta(t,r,o,m)}}function xr(t,r,o,m,v){for(v=v&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var b=t,M=r,_=o,F=m,W=M.flags;switch(M.tag){case 0:case 11:case 15:xr(b,M,_,F,v),Vs(8,M);break;case 23:break;case 22:var ne=M.stateNode;M.memoizedState!==null?ne._visibility&2?xr(b,M,_,F,v):Ts(b,M):(ne._visibility|=2,xr(b,M,_,F,v)),v&&W&2048&&kc(M.alternate,M);break;case 24:xr(b,M,_,F,v),v&&W&2048&&Dc(M.alternate,M);break;default:xr(b,M,_,F,v)}r=r.sibling}}function Ts(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var o=t,m=r,v=m.flags;switch(m.tag){case 22:Ts(o,m),v&2048&&kc(m.alternate,m);break;case 24:Ts(o,m),v&2048&&Dc(m.alternate,m);break;default:Ts(o,m)}r=r.sibling}}var Ls=8192;function vr(t,r,o){if(t.subtreeFlags&Ls)for(t=t.child;t!==null;)s5(t,r,o),t=t.sibling}function s5(t,r,o){switch(t.tag){case 26:vr(t,r,o),t.flags&Ls&&t.memoizedState!==null&&FC(o,_a,t.memoizedState,t.memoizedProps);break;case 5:vr(t,r,o);break;case 3:case 4:var m=_a;_a=qi(t.stateNode.containerInfo),vr(t,r,o),_a=m;break;case 22:t.memoizedState===null&&(m=t.alternate,m!==null&&m.memoizedState!==null?(m=Ls,Ls=16777216,vr(t,r,o),Ls=m):vr(t,r,o));break;default:vr(t,r,o)}}function l5(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function Rs(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var m=r[o];Ct=m,o5(m,t)}l5(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)i5(t),t=t.sibling}function i5(t){switch(t.tag){case 0:case 11:case 15:Rs(t),t.flags&2048&&Bn(9,t,t.return);break;case 3:Rs(t);break;case 12:Rs(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,Si(t)):Rs(t);break;default:Rs(t)}}function Si(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var m=r[o];Ct=m,o5(m,t)}l5(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:Bn(8,r,r.return),Si(r);break;case 22:o=r.stateNode,o._visibility&2&&(o._visibility&=-3,Si(r));break;default:Si(r)}t=t.sibling}}function o5(t,r){for(;Ct!==null;){var o=Ct;switch(o.tag){case 0:case 11:case 15:Bn(8,o,r);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var m=o.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:vs(o.memoizedState.cache)}if(m=o.child,m!==null)m.return=o,Ct=m;else e:for(o=t;Ct!==null;){m=Ct;var v=m.sibling,b=m.return;if(Jp(m),m===o){Ct=null;break e}if(v!==null){v.return=b,Ct=v;break e}Ct=b}}}var eC={getCacheForType:function(t){var r=Rt(ft),o=r.data.get(t);return o===void 0&&(o=t(),r.data.set(t,o)),o},cacheSignal:function(){return Rt(ft).controller.signal}},tC=typeof WeakMap=="function"?WeakMap:Map,Oe=0,Ke=null,Se=null,Ce=0,Be=0,la=null,$n=!1,br=!1,Oc=!1,yn=0,st=0,In=0,Z0=0,Fc=0,ia=0,yr=0,ks=null,Qt=null,qc=!1,Zi=0,c5=0,Ci=1/0,Hi=null,Un=null,Et=0,Pn=null,wr=null,wn=0,zc=0,Bc=null,u5=null,Ds=0,$c=null;function oa(){return(Oe&2)!==0&&Ce!==0?Ce&-Ce:L.T!==null?Kc():Mf()}function d5(){if(ia===0)if((Ce&536870912)===0||_e){var t=Ol;Ol<<=1,(Ol&3932160)===0&&(Ol=262144),ia=t}else ia=536870912;return t=ra.current,t!==null&&(t.flags|=32),ia}function Jt(t,r,o){(t===Ke&&(Be===2||Be===9)||t.cancelPendingCommit!==null)&&(Ar(t,0),Gn(t,Ce,ia,!1)),rs(t,o),((Oe&2)===0||t!==Ke)&&(t===Ke&&((Oe&2)===0&&(Z0|=o),st===4&&Gn(t,Ce,ia,!1)),Ga(t))}function h5(t,r,o){if((Oe&6)!==0)throw Error(i(327));var m=!o&&(r&127)===0&&(r&t.expiredLanes)===0||ns(t,r),v=m?rC(t,r):Uc(t,r,!0),b=m;do{if(v===0){br&&!m&&Gn(t,r,0,!1);break}else{if(o=t.current.alternate,b&&!aC(o)){v=Uc(t,r,!1),b=!1;continue}if(v===2){if(b=r,t.errorRecoveryDisabledLanes&b)var M=0;else M=t.pendingLanes&-536870913,M=M!==0?M:M&536870912?536870912:0;if(M!==0){r=M;e:{var _=t;v=ks;var F=_.current.memoizedState.isDehydrated;if(F&&(Ar(_,M).flags|=256),M=Uc(_,M,!1),M!==2){if(Oc&&!F){_.errorRecoveryDisabledLanes|=b,Z0|=b,v=4;break e}b=Qt,Qt=v,b!==null&&(Qt===null?Qt=b:Qt.push.apply(Qt,b))}v=M}if(b=!1,v!==2)continue}}if(v===1){Ar(t,0),Gn(t,r,0,!0);break}e:{switch(m=t,b=v,b){case 0:case 1:throw Error(i(345));case 4:if((r&4194048)!==r)break;case 6:Gn(m,r,ia,!$n);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((r&62914560)===r&&(v=Zi+300-ot(),10<v)){if(Gn(m,r,ia,!$n),ql(m,0,!0)!==0)break e;wn=r,m.timeoutHandle=$5(m5.bind(null,m,o,Qt,Hi,qc,r,ia,Z0,yr,$n,b,"Throttled",-0,0),v);break e}m5(m,o,Qt,Hi,qc,r,ia,Z0,yr,$n,b,null,-0,0)}}break}while(!0);Ga(t)}function m5(t,r,o,m,v,b,M,_,F,W,ne,ie,ee,ae){if(t.timeoutHandle=-1,ie=r.subtreeFlags,ie&8192||(ie&16785408)===16785408){ie={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:sn},s5(r,b,ie);var pe=(b&62914560)===b?Zi-ot():(b&4194048)===b?c5-ot():0;if(pe=qC(ie,pe),pe!==null){wn=b,t.cancelPendingCommit=pe(w5.bind(null,t,r,b,o,m,v,M,_,F,ne,ie,null,ee,ae)),Gn(t,b,M,!W);return}}w5(t,r,b,o,m,v,M,_,F)}function aC(t){for(var r=t;;){var o=r.tag;if((o===0||o===11||o===15)&&r.flags&16384&&(o=r.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var m=0;m<o.length;m++){var v=o[m],b=v.getSnapshot;v=v.value;try{if(!aa(b(),v))return!1}catch{return!1}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Gn(t,r,o,m){r&=~Fc,r&=~Z0,t.suspendedLanes|=r,t.pingedLanes&=~r,m&&(t.warmLanes|=r),m=t.expirationTimes;for(var v=r;0<v;){var b=31-ta(v),M=1<<b;m[b]=-1,v&=~M}o!==0&&jf(t,o,r)}function Vi(){return(Oe&6)===0?(Os(0),!1):!0}function Ic(){if(Se!==null){if(Be===0)var t=Se.return;else t=Se,un=b0=null,lc(t),hr=null,ys=0,t=Se;for(;t!==null;)Ip(t.alternate,t),t=t.return;Se=null}}function Ar(t,r){var o=t.timeoutHandle;o!==-1&&(t.timeoutHandle=-1,AC(o)),o=t.cancelPendingCommit,o!==null&&(t.cancelPendingCommit=null,o()),wn=0,Ic(),Ke=t,Se=o=on(t.current,null),Ce=r,Be=0,la=null,$n=!1,br=ns(t,r),Oc=!1,yr=ia=Fc=Z0=In=st=0,Qt=ks=null,qc=!1,(r&8)!==0&&(r|=r&32);var m=t.entangledLanes;if(m!==0)for(t=t.entanglements,m&=r;0<m;){var v=31-ta(m),b=1<<v;r|=t[v],m&=~b}return yn=r,Jl(),o}function f5(t,r){Ne=null,L.H=Zs,r===dr||r===li?(r=H3(),Be=3):r===Yo?(r=H3(),Be=4):Be=r===Ac?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,la=r,Se===null&&(st=1,yi(t,ga(r,t.current)))}function p5(){var t=ra.current;return t===null?!0:(Ce&4194048)===Ce?ya===null:(Ce&62914560)===Ce||(Ce&536870912)!==0?t===ya:!1}function g5(){var t=L.H;return L.H=Zs,t===null?Zs:t}function x5(){var t=L.A;return L.A=eC,t}function _i(){st=4,$n||(Ce&4194048)!==Ce&&ra.current!==null||(br=!0),(In&134217727)===0&&(Z0&134217727)===0||Ke===null||Gn(Ke,Ce,ia,!1)}function Uc(t,r,o){var m=Oe;Oe|=2;var v=g5(),b=x5();(Ke!==t||Ce!==r)&&(Hi=null,Ar(t,r)),r=!1;var M=st;e:do try{if(Be!==0&&Se!==null){var _=Se,F=la;switch(Be){case 8:Ic(),M=6;break e;case 3:case 2:case 9:case 6:ra.current===null&&(r=!0);var W=Be;if(Be=0,la=null,jr(t,_,F,W),o&&br){M=0;break e}break;default:W=Be,Be=0,la=null,jr(t,_,F,W)}}nC(),M=st;break}catch(ne){f5(t,ne)}while(!0);return r&&t.shellSuspendCounter++,un=b0=null,Oe=m,L.H=v,L.A=b,Se===null&&(Ke=null,Ce=0,Jl()),M}function nC(){for(;Se!==null;)v5(Se)}function rC(t,r){var o=Oe;Oe|=2;var m=g5(),v=x5();Ke!==t||Ce!==r?(Hi=null,Ci=ot()+500,Ar(t,r)):br=ns(t,r);e:do try{if(Be!==0&&Se!==null){r=Se;var b=la;t:switch(Be){case 1:Be=0,la=null,jr(t,r,b,1);break;case 2:case 9:if(Z3(b)){Be=0,la=null,b5(r);break}r=function(){Be!==2&&Be!==9||Ke!==t||(Be=7),Ga(t)},b.then(r,r);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:Z3(b)?(Be=0,la=null,b5(r)):(Be=0,la=null,jr(t,r,b,7));break;case 5:var M=null;switch(Se.tag){case 26:M=Se.memoizedState;case 5:case 27:var _=Se;if(M?rg(M):_.stateNode.complete){Be=0,la=null;var F=_.sibling;if(F!==null)Se=F;else{var W=_.return;W!==null?(Se=W,Ti(W)):Se=null}break t}}Be=0,la=null,jr(t,r,b,5);break;case 6:Be=0,la=null,jr(t,r,b,6);break;case 8:Ic(),st=6;break e;default:throw Error(i(462))}}sC();break}catch(ne){f5(t,ne)}while(!0);return un=b0=null,L.H=m,L.A=v,Oe=o,Se!==null?0:(Ke=null,Ce=0,Jl(),st)}function sC(){for(;Se!==null&&!mt();)v5(Se)}function v5(t){var r=Bp(t.alternate,t,yn);t.memoizedProps=t.pendingProps,r===null?Ti(t):Se=r}function b5(t){var r=t,o=r.alternate;switch(r.tag){case 15:case 0:r=kp(o,r,r.pendingProps,r.type,void 0,Ce);break;case 11:r=kp(o,r,r.pendingProps,r.type.render,r.ref,Ce);break;case 5:lc(r);default:Ip(o,r),r=Se=x3(r,yn),r=Bp(o,r,yn)}t.memoizedProps=t.pendingProps,r===null?Ti(t):Se=r}function jr(t,r,o,m){un=b0=null,lc(r),hr=null,ys=0;var v=r.return;try{if(GZ(t,v,r,o,Ce)){st=1,yi(t,ga(o,t.current)),Se=null;return}}catch(b){if(v!==null)throw Se=v,b;st=1,yi(t,ga(o,t.current)),Se=null;return}r.flags&32768?(_e||m===1?t=!0:br||(Ce&536870912)!==0?t=!1:($n=t=!0,(m===2||m===9||m===3||m===6)&&(m=ra.current,m!==null&&m.tag===13&&(m.flags|=16384))),y5(r,t)):Ti(r)}function Ti(t){var r=t;do{if((r.flags&32768)!==0){y5(r,$n);return}t=r.return;var o=XZ(r.alternate,r,yn);if(o!==null){Se=o;return}if(r=r.sibling,r!==null){Se=r;return}Se=r=t}while(r!==null);st===0&&(st=5)}function y5(t,r){do{var o=QZ(t.alternate,t);if(o!==null){o.flags&=32767,Se=o;return}if(o=t.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!r&&(t=t.sibling,t!==null)){Se=t;return}Se=t=o}while(t!==null);st=6,Se=null}function w5(t,r,o,m,v,b,M,_,F){t.cancelPendingCommit=null;do Li();while(Et!==0);if((Oe&6)!==0)throw Error(i(327));if(r!==null){if(r===t.current)throw Error(i(177));if(b=r.lanes|r.childLanes,b|=To,OS(t,o,b,M,_,F),t===Ke&&(Se=Ke=null,Ce=0),wr=r,Pn=t,wn=o,zc=b,Bc=v,u5=m,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,cC(_t,function(){return M5(),null})):(t.callbackNode=null,t.callbackPriority=0),m=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||m){m=L.T,L.T=null,v=B.p,B.p=2,M=Oe,Oe|=4;try{JZ(t,r,o)}finally{Oe=M,B.p=v,L.T=m}}Et=1,A5(),j5(),E5()}}function A5(){if(Et===1){Et=0;var t=Pn,r=wr,o=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||o){o=L.T,L.T=null;var m=B.p;B.p=2;var v=Oe;Oe|=4;try{a5(r,t);var b=n2,M=o3(t.containerInfo),_=b.focusedElem,F=b.selectionRange;if(M!==_&&_&&_.ownerDocument&&i3(_.ownerDocument.documentElement,_)){if(F!==null&&Zo(_)){var W=F.start,ne=F.end;if(ne===void 0&&(ne=W),"selectionStart"in _)_.selectionStart=W,_.selectionEnd=Math.min(ne,_.value.length);else{var ie=_.ownerDocument||document,ee=ie&&ie.defaultView||window;if(ee.getSelection){var ae=ee.getSelection(),pe=_.textContent.length,we=Math.min(F.start,pe),Ye=F.end===void 0?we:Math.min(F.end,pe);!ae.extend&&we>Ye&&(M=Ye,Ye=we,we=M);var G=l3(_,we),I=l3(_,Ye);if(G&&I&&(ae.rangeCount!==1||ae.anchorNode!==G.node||ae.anchorOffset!==G.offset||ae.focusNode!==I.node||ae.focusOffset!==I.offset)){var J=ie.createRange();J.setStart(G.node,G.offset),ae.removeAllRanges(),we>Ye?(ae.addRange(J),ae.extend(I.node,I.offset)):(J.setEnd(I.node,I.offset),ae.addRange(J))}}}}for(ie=[],ae=_;ae=ae.parentNode;)ae.nodeType===1&&ie.push({element:ae,left:ae.scrollLeft,top:ae.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<ie.length;_++){var le=ie[_];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}Pi=!!a2,n2=a2=null}finally{Oe=v,B.p=m,L.T=o}}t.current=r,Et=2}}function j5(){if(Et===2){Et=0;var t=Pn,r=wr,o=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||o){o=L.T,L.T=null;var m=B.p;B.p=2;var v=Oe;Oe|=4;try{Qp(t,r.alternate,r)}finally{Oe=v,B.p=m,L.T=o}}Et=3}}function E5(){if(Et===4||Et===3){Et=0,St();var t=Pn,r=wr,o=wn,m=u5;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?Et=5:(Et=0,wr=Pn=null,N5(t,t.pendingLanes));var v=t.pendingLanes;if(v===0&&(Un=null),oo(o),r=r.stateNode,ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(Ut,r,void 0,(r.current.flags&128)===128)}catch{}if(m!==null){r=L.T,v=B.p,B.p=2,L.T=null;try{for(var b=t.onRecoverableError,M=0;M<m.length;M++){var _=m[M];b(_.value,{componentStack:_.stack})}}finally{L.T=r,B.p=v}}(wn&3)!==0&&Li(),Ga(t),v=t.pendingLanes,(o&261930)!==0&&(v&42)!==0?t===$c?Ds++:(Ds=0,$c=t):Ds=0,Os(0)}}function N5(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,vs(r)))}function Li(){return A5(),j5(),E5(),M5()}function M5(){if(Et!==5)return!1;var t=Pn,r=zc;zc=0;var o=oo(wn),m=L.T,v=B.p;try{B.p=32>o?32:o,L.T=null,o=Bc,Bc=null;var b=Pn,M=wn;if(Et=0,wr=Pn=null,wn=0,(Oe&6)!==0)throw Error(i(331));var _=Oe;if(Oe|=4,i5(b.current),r5(b,b.current,M,o),Oe=_,Os(0,!1),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(Ut,b)}catch{}return!0}finally{B.p=v,L.T=m,N5(t,r)}}function S5(t,r,o){r=ga(o,r),r=wc(t.stateNode,r,2),t=Fn(t,r,2),t!==null&&(rs(t,2),Ga(t))}function $e(t,r,o){if(t.tag===3)S5(t,t,o);else for(;r!==null;){if(r.tag===3){S5(r,t,o);break}else if(r.tag===1){var m=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Un===null||!Un.has(m))){t=ga(o,t),o=Zp(2),m=Fn(r,o,2),m!==null&&(Cp(o,m,r,t),rs(m,2),Ga(m));break}}r=r.return}}function Pc(t,r,o){var m=t.pingCache;if(m===null){m=t.pingCache=new tC;var v=new Set;m.set(r,v)}else v=m.get(r),v===void 0&&(v=new Set,m.set(r,v));v.has(o)||(Oc=!0,v.add(o),t=lC.bind(null,t,r,o),r.then(t,t))}function lC(t,r,o){var m=t.pingCache;m!==null&&m.delete(r),t.pingedLanes|=t.suspendedLanes&o,t.warmLanes&=~o,Ke===t&&(Ce&o)===o&&(st===4||st===3&&(Ce&62914560)===Ce&&300>ot()-Zi?(Oe&2)===0&&Ar(t,0):Fc|=o,yr===Ce&&(yr=0)),Ga(t)}function Z5(t,r){r===0&&(r=Af()),t=g0(t,r),t!==null&&(rs(t,r),Ga(t))}function iC(t){var r=t.memoizedState,o=0;r!==null&&(o=r.retryLane),Z5(t,o)}function oC(t,r){var o=0;switch(t.tag){case 31:case 13:var m=t.stateNode,v=t.memoizedState;v!==null&&(o=v.retryLane);break;case 19:m=t.stateNode;break;case 22:m=t.stateNode._retryCache;break;default:throw Error(i(314))}m!==null&&m.delete(r),Z5(t,o)}function cC(t,r){return At(t,r)}var Ri=null,Er=null,Gc=!1,ki=!1,Yc=!1,Yn=0;function Ga(t){t!==Er&&t.next===null&&(Er===null?Ri=Er=t:Er=Er.next=t),ki=!0,Gc||(Gc=!0,dC())}function Os(t,r){if(!Yc&&ki){Yc=!0;do for(var o=!1,m=Ri;m!==null;){if(t!==0){var v=m.pendingLanes;if(v===0)var b=0;else{var M=m.suspendedLanes,_=m.pingedLanes;b=(1<<31-ta(42|t)+1)-1,b&=v&~(M&~_),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(o=!0,_5(m,b))}else b=Ce,b=ql(m,m===Ke?b:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(b&3)===0||ns(m,b)||(o=!0,_5(m,b));m=m.next}while(o);Yc=!1}}function uC(){C5()}function C5(){ki=Gc=!1;var t=0;Yn!==0&&wC()&&(t=Yn);for(var r=ot(),o=null,m=Ri;m!==null;){var v=m.next,b=H5(m,r);b===0?(m.next=null,o===null?Ri=v:o.next=v,v===null&&(Er=o)):(o=m,(t!==0||(b&3)!==0)&&(ki=!0)),m=v}Et!==0&&Et!==5||Os(t),Yn!==0&&(Yn=0)}function H5(t,r){for(var o=t.suspendedLanes,m=t.pingedLanes,v=t.expirationTimes,b=t.pendingLanes&-62914561;0<b;){var M=31-ta(b),_=1<<M,F=v[M];F===-1?((_&o)===0||(_&m)!==0)&&(v[M]=DS(_,r)):F<=r&&(t.expiredLanes|=_),b&=~_}if(r=Ke,o=Ce,o=ql(t,t===r?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),m=t.callbackNode,o===0||t===r&&(Be===2||Be===9)||t.cancelPendingCommit!==null)return m!==null&&m!==null&&Re(m),t.callbackNode=null,t.callbackPriority=0;if((o&3)===0||ns(t,o)){if(r=o&-o,r===t.callbackPriority)return r;switch(m!==null&&Re(m),oo(o)){case 2:case 8:o=jt;break;case 32:o=_t;break;case 268435456:o=as;break;default:o=_t}return m=V5.bind(null,t),o=At(o,m),t.callbackPriority=r,t.callbackNode=o,r}return m!==null&&m!==null&&Re(m),t.callbackPriority=2,t.callbackNode=null,2}function V5(t,r){if(Et!==0&&Et!==5)return t.callbackNode=null,t.callbackPriority=0,null;var o=t.callbackNode;if(Li()&&t.callbackNode!==o)return null;var m=Ce;return m=ql(t,t===Ke?m:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),m===0?null:(h5(t,m,r),H5(t,ot()),t.callbackNode!=null&&t.callbackNode===o?V5.bind(null,t):null)}function _5(t,r){if(Li())return null;h5(t,r,!0)}function dC(){jC(function(){(Oe&6)!==0?At(I0,uC):C5()})}function Kc(){if(Yn===0){var t=cr;t===0&&(t=Dl,Dl<<=1,(Dl&261888)===0&&(Dl=256)),Yn=t}return Yn}function T5(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Il(""+t)}function L5(t,r){var o=r.ownerDocument.createElement("input");return o.name=r.name,o.value=r.value,t.id&&o.setAttribute("form",t.id),r.parentNode.insertBefore(o,r),t=new FormData(t),o.parentNode.removeChild(o),t}function hC(t,r,o,m,v){if(r==="submit"&&o&&o.stateNode===v){var b=T5((v[Pt]||null).action),M=m.submitter;M&&(r=(r=M[Pt]||null)?T5(r.formAction):M.getAttribute("formAction"),r!==null&&(b=r,M=null));var _=new Yl("action","action",null,m,v);t.push({event:_,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Yn!==0){var F=M?L5(v,M):new FormData(v);pc(o,{pending:!0,data:F,method:v.method,action:b},null,F)}}else typeof b=="function"&&(_.preventDefault(),F=M?L5(v,M):new FormData(v),pc(o,{pending:!0,data:F,method:v.method,action:b},b,F))},currentTarget:v}]})}}for(var Xc=0;Xc<_o.length;Xc++){var Qc=_o[Xc],mC=Qc.toLowerCase(),fC=Qc[0].toUpperCase()+Qc.slice(1);Va(mC,"on"+fC)}Va(d3,"onAnimationEnd"),Va(h3,"onAnimationIteration"),Va(m3,"onAnimationStart"),Va("dblclick","onDoubleClick"),Va("focusin","onFocus"),Va("focusout","onBlur"),Va(HZ,"onTransitionRun"),Va(VZ,"onTransitionStart"),Va(_Z,"onTransitionCancel"),Va(f3,"onTransitionEnd"),K0("onMouseEnter",["mouseout","mouseover"]),K0("onMouseLeave",["mouseout","mouseover"]),K0("onPointerEnter",["pointerout","pointerover"]),K0("onPointerLeave",["pointerout","pointerover"]),h0("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h0("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h0("onBeforeInput",["compositionend","keypress","textInput","paste"]),h0("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h0("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h0("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fs="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(" "),pC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fs));function R5(t,r){r=(r&4)!==0;for(var o=0;o<t.length;o++){var m=t[o],v=m.event;m=m.listeners;e:{var b=void 0;if(r)for(var M=m.length-1;0<=M;M--){var _=m[M],F=_.instance,W=_.currentTarget;if(_=_.listener,F!==b&&v.isPropagationStopped())break e;b=_,v.currentTarget=W;try{b(v)}catch(ne){Ql(ne)}v.currentTarget=null,b=F}else for(M=0;M<m.length;M++){if(_=m[M],F=_.instance,W=_.currentTarget,_=_.listener,F!==b&&v.isPropagationStopped())break e;b=_,v.currentTarget=W;try{b(v)}catch(ne){Ql(ne)}v.currentTarget=null,b=F}}}}function Ze(t,r){var o=r[co];o===void 0&&(o=r[co]=new Set);var m=t+"__bubble";o.has(m)||(k5(r,t,2,!1),o.add(m))}function Jc(t,r,o){var m=0;r&&(m|=4),k5(o,t,m,r)}var Di="_reactListening"+Math.random().toString(36).slice(2);function Wc(t){if(!t[Di]){t[Di]=!0,Cf.forEach(function(o){o!=="selectionchange"&&(pC.has(o)||Jc(o,!1,t),Jc(o,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[Di]||(r[Di]=!0,Jc("selectionchange",!1,r))}}function k5(t,r,o,m){switch(dg(r)){case 2:var v=$C;break;case 8:v=IC;break;default:v=f2}o=v.bind(null,r,o,t),v=void 0,!bo||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(v=!0),m?v!==void 0?t.addEventListener(r,o,{capture:!0,passive:v}):t.addEventListener(r,o,!0):v!==void 0?t.addEventListener(r,o,{passive:v}):t.addEventListener(r,o,!1)}function e2(t,r,o,m,v){var b=m;if((r&1)===0&&(r&2)===0&&m!==null)e:for(;;){if(m===null)return;var M=m.tag;if(M===3||M===4){var _=m.stateNode.containerInfo;if(_===v)break;if(M===4)for(M=m.return;M!==null;){var F=M.tag;if((F===3||F===4)&&M.stateNode.containerInfo===v)return;M=M.return}for(;_!==null;){if(M=P0(_),M===null)return;if(F=M.tag,F===5||F===6||F===26||F===27){m=b=M;continue e}_=_.parentNode}}m=m.return}zf(function(){var W=b,ne=xo(o),ie=[];e:{var ee=p3.get(t);if(ee!==void 0){var ae=Yl,pe=t;switch(t){case"keypress":if(Pl(o)===0)break e;case"keydown":case"keyup":ae=oZ;break;case"focusin":pe="focus",ae=jo;break;case"focusout":pe="blur",ae=jo;break;case"beforeblur":case"afterblur":ae=jo;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ae=If;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=XS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=dZ;break;case d3:case h3:case m3:ae=WS;break;case f3:ae=mZ;break;case"scroll":case"scrollend":ae=YS;break;case"wheel":ae=pZ;break;case"copy":case"cut":case"paste":ae=tZ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=Pf;break;case"toggle":case"beforetoggle":ae=xZ}var we=(r&4)!==0,Ye=!we&&(t==="scroll"||t==="scrollend"),G=we?ee!==null?ee+"Capture":null:ee;we=[];for(var I=W,J;I!==null;){var le=I;if(J=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||J===null||G===null||(le=is(I,G),le!=null&&we.push(qs(I,le,J))),Ye)break;I=I.return}0<we.length&&(ee=new ae(ee,pe,null,o,ne),ie.push({event:ee,listeners:we}))}}if((r&7)===0){e:{if(ee=t==="mouseover"||t==="pointerover",ae=t==="mouseout"||t==="pointerout",ee&&o!==go&&(pe=o.relatedTarget||o.fromElement)&&(P0(pe)||pe[U0]))break e;if((ae||ee)&&(ee=ne.window===ne?ne:(ee=ne.ownerDocument)?ee.defaultView||ee.parentWindow:window,ae?(pe=o.relatedTarget||o.toElement,ae=W,pe=pe?P0(pe):null,pe!==null&&(Ye=u(pe),we=pe.tag,pe!==Ye||we!==5&&we!==27&&we!==6)&&(pe=null)):(ae=null,pe=W),ae!==pe)){if(we=If,le="onMouseLeave",G="onMouseEnter",I="mouse",(t==="pointerout"||t==="pointerover")&&(we=Pf,le="onPointerLeave",G="onPointerEnter",I="pointer"),Ye=ae==null?ee:ls(ae),J=pe==null?ee:ls(pe),ee=new we(le,I+"leave",ae,o,ne),ee.target=Ye,ee.relatedTarget=J,le=null,P0(ne)===W&&(we=new we(G,I+"enter",pe,o,ne),we.target=J,we.relatedTarget=Ye,le=we),Ye=le,ae&&pe)t:{for(we=gC,G=ae,I=pe,J=0,le=G;le;le=we(le))J++;le=0;for(var be=I;be;be=we(be))le++;for(;0<J-le;)G=we(G),J--;for(;0<le-J;)I=we(I),le--;for(;J--;){if(G===I||I!==null&&G===I.alternate){we=G;break t}G=we(G),I=we(I)}we=null}else we=null;ae!==null&&D5(ie,ee,ae,we,!1),pe!==null&&Ye!==null&&D5(ie,Ye,pe,we,!0)}}e:{if(ee=W?ls(W):window,ae=ee.nodeName&&ee.nodeName.toLowerCase(),ae==="select"||ae==="input"&&ee.type==="file")var ke=e3;else if(Jf(ee))if(t3)ke=SZ;else{ke=NZ;var xe=EZ}else ae=ee.nodeName,!ae||ae.toLowerCase()!=="input"||ee.type!=="checkbox"&&ee.type!=="radio"?W&&po(W.elementType)&&(ke=e3):ke=MZ;if(ke&&(ke=ke(t,W))){Wf(ie,ke,o,ne);break e}xe&&xe(t,ee,W),t==="focusout"&&W&&ee.type==="number"&&W.memoizedProps.value!=null&&fo(ee,"number",ee.value)}switch(xe=W?ls(W):window,t){case"focusin":(Jf(xe)||xe.contentEditable==="true")&&(tr=xe,Co=W,ps=null);break;case"focusout":ps=Co=tr=null;break;case"mousedown":Ho=!0;break;case"contextmenu":case"mouseup":case"dragend":Ho=!1,c3(ie,o,ne);break;case"selectionchange":if(CZ)break;case"keydown":case"keyup":c3(ie,o,ne)}var Me;if(No)e:{switch(t){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else er?Xf(t,o)&&(He="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(He="onCompositionStart");He&&(Gf&&o.locale!=="ko"&&(er||He!=="onCompositionStart"?He==="onCompositionEnd"&&er&&(Me=Bf()):(_n=ne,yo="value"in _n?_n.value:_n.textContent,er=!0)),xe=Oi(W,He),0<xe.length&&(He=new Uf(He,t,null,o,ne),ie.push({event:He,listeners:xe}),Me?He.data=Me:(Me=Qf(o),Me!==null&&(He.data=Me)))),(Me=bZ?yZ(t,o):wZ(t,o))&&(He=Oi(W,"onBeforeInput"),0<He.length&&(xe=new Uf("onBeforeInput","beforeinput",null,o,ne),ie.push({event:xe,listeners:He}),xe.data=Me)),hC(ie,t,W,o,ne)}R5(ie,r)})}function qs(t,r,o){return{instance:t,listener:r,currentTarget:o}}function Oi(t,r){for(var o=r+"Capture",m=[];t!==null;){var v=t,b=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||b===null||(v=is(t,o),v!=null&&m.unshift(qs(t,v,b)),v=is(t,r),v!=null&&m.push(qs(t,v,b))),t.tag===3)return m;t=t.return}return[]}function gC(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function D5(t,r,o,m,v){for(var b=r._reactName,M=[];o!==null&&o!==m;){var _=o,F=_.alternate,W=_.stateNode;if(_=_.tag,F!==null&&F===m)break;_!==5&&_!==26&&_!==27||W===null||(F=W,v?(W=is(o,b),W!=null&&M.unshift(qs(o,W,F))):v||(W=is(o,b),W!=null&&M.push(qs(o,W,F)))),o=o.return}M.length!==0&&t.push({event:r,listeners:M})}var xC=/\r\n?/g,vC=/\u0000|\uFFFD/g;function O5(t){return(typeof t=="string"?t:""+t).replace(xC,`
|
|
49
|
+
`).replace(vC,"")}function F5(t,r){return r=O5(r),O5(t)===r}function Ge(t,r,o,m,v,b){switch(o){case"children":typeof m=="string"?r==="body"||r==="textarea"&&m===""||Q0(t,m):(typeof m=="number"||typeof m=="bigint")&&r!=="body"&&Q0(t,""+m);break;case"className":Bl(t,"class",m);break;case"tabIndex":Bl(t,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Bl(t,o,m);break;case"style":Ff(t,m,b);break;case"data":if(r!=="object"){Bl(t,"data",m);break}case"src":case"href":if(m===""&&(r!=="a"||o!=="href")){t.removeAttribute(o);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){t.removeAttribute(o);break}m=Il(""+m),t.setAttribute(o,m);break;case"action":case"formAction":if(typeof m=="function"){t.setAttribute(o,"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 b=="function"&&(o==="formAction"?(r!=="input"&&Ge(t,r,"name",v.name,v,null),Ge(t,r,"formEncType",v.formEncType,v,null),Ge(t,r,"formMethod",v.formMethod,v,null),Ge(t,r,"formTarget",v.formTarget,v,null)):(Ge(t,r,"encType",v.encType,v,null),Ge(t,r,"method",v.method,v,null),Ge(t,r,"target",v.target,v,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){t.removeAttribute(o);break}m=Il(""+m),t.setAttribute(o,m);break;case"onClick":m!=null&&(t.onclick=sn);break;case"onScroll":m!=null&&Ze("scroll",t);break;case"onScrollEnd":m!=null&&Ze("scrollend",t);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(i(61));if(o=m.__html,o!=null){if(v.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"multiple":t.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":t.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){t.removeAttribute("xlink:href");break}o=Il(""+m),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?t.setAttribute(o,""+m):t.removeAttribute(o);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":m&&typeof m!="function"&&typeof m!="symbol"?t.setAttribute(o,""):t.removeAttribute(o);break;case"capture":case"download":m===!0?t.setAttribute(o,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?t.setAttribute(o,m):t.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?t.setAttribute(o,m):t.removeAttribute(o);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?t.removeAttribute(o):t.setAttribute(o,m);break;case"popover":Ze("beforetoggle",t),Ze("toggle",t),zl(t,"popover",m);break;case"xlinkActuate":rn(t,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":rn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":rn(t,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":rn(t,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":rn(t,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":rn(t,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":rn(t,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":rn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":rn(t,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":zl(t,"is",m);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=PS.get(o)||o,zl(t,o,m))}}function t2(t,r,o,m,v,b){switch(o){case"style":Ff(t,m,b);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(i(61));if(o=m.__html,o!=null){if(v.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"children":typeof m=="string"?Q0(t,m):(typeof m=="number"||typeof m=="bigint")&&Q0(t,""+m);break;case"onScroll":m!=null&&Ze("scroll",t);break;case"onScrollEnd":m!=null&&Ze("scrollend",t);break;case"onClick":m!=null&&(t.onclick=sn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hf.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(v=o.endsWith("Capture"),r=o.slice(2,v?o.length-7:void 0),b=t[Pt]||null,b=b!=null?b[o]:null,typeof b=="function"&&t.removeEventListener(r,b,v),typeof m=="function")){typeof b!="function"&&b!==null&&(o in t?t[o]=null:t.hasAttribute(o)&&t.removeAttribute(o)),t.addEventListener(r,m,v);break e}o in t?t[o]=m:m===!0?t.setAttribute(o,""):zl(t,o,m)}}}function Dt(t,r,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ze("error",t),Ze("load",t);var m=!1,v=!1,b;for(b in o)if(o.hasOwnProperty(b)){var M=o[b];if(M!=null)switch(b){case"src":m=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:Ge(t,r,b,M,o,null)}}v&&Ge(t,r,"srcSet",o.srcSet,o,null),m&&Ge(t,r,"src",o.src,o,null);return;case"input":Ze("invalid",t);var _=b=M=v=null,F=null,W=null;for(m in o)if(o.hasOwnProperty(m)){var ne=o[m];if(ne!=null)switch(m){case"name":v=ne;break;case"type":M=ne;break;case"checked":F=ne;break;case"defaultChecked":W=ne;break;case"value":b=ne;break;case"defaultValue":_=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,r));break;default:Ge(t,r,m,ne,o,null)}}Rf(t,b,_,F,W,M,v,!1);return;case"select":Ze("invalid",t),m=M=b=null;for(v in o)if(o.hasOwnProperty(v)&&(_=o[v],_!=null))switch(v){case"value":b=_;break;case"defaultValue":M=_;break;case"multiple":m=_;default:Ge(t,r,v,_,o,null)}r=b,o=M,t.multiple=!!m,r!=null?X0(t,!!m,r,!1):o!=null&&X0(t,!!m,o,!0);return;case"textarea":Ze("invalid",t),b=v=m=null;for(M in o)if(o.hasOwnProperty(M)&&(_=o[M],_!=null))switch(M){case"value":m=_;break;case"defaultValue":v=_;break;case"children":b=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(i(91));break;default:Ge(t,r,M,_,o,null)}Df(t,m,v,b);return;case"option":for(F in o)if(o.hasOwnProperty(F)&&(m=o[F],m!=null))switch(F){case"selected":t.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:Ge(t,r,F,m,o,null)}return;case"dialog":Ze("beforetoggle",t),Ze("toggle",t),Ze("cancel",t),Ze("close",t);break;case"iframe":case"object":Ze("load",t);break;case"video":case"audio":for(m=0;m<Fs.length;m++)Ze(Fs[m],t);break;case"image":Ze("error",t),Ze("load",t);break;case"details":Ze("toggle",t);break;case"embed":case"source":case"link":Ze("error",t),Ze("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(W in o)if(o.hasOwnProperty(W)&&(m=o[W],m!=null))switch(W){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:Ge(t,r,W,m,o,null)}return;default:if(po(r)){for(ne in o)o.hasOwnProperty(ne)&&(m=o[ne],m!==void 0&&t2(t,r,ne,m,o,void 0));return}}for(_ in o)o.hasOwnProperty(_)&&(m=o[_],m!=null&&Ge(t,r,_,m,o,null))}function bC(t,r,o,m){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,b=null,M=null,_=null,F=null,W=null,ne=null;for(ae in o){var ie=o[ae];if(o.hasOwnProperty(ae)&&ie!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":F=ie;default:m.hasOwnProperty(ae)||Ge(t,r,ae,null,m,ie)}}for(var ee in m){var ae=m[ee];if(ie=o[ee],m.hasOwnProperty(ee)&&(ae!=null||ie!=null))switch(ee){case"type":b=ae;break;case"name":v=ae;break;case"checked":W=ae;break;case"defaultChecked":ne=ae;break;case"value":M=ae;break;case"defaultValue":_=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(i(137,r));break;default:ae!==ie&&Ge(t,r,ee,ae,m,ie)}}mo(t,M,_,F,W,ne,b,v);return;case"select":ae=M=_=ee=null;for(b in o)if(F=o[b],o.hasOwnProperty(b)&&F!=null)switch(b){case"value":break;case"multiple":ae=F;default:m.hasOwnProperty(b)||Ge(t,r,b,null,m,F)}for(v in m)if(b=m[v],F=o[v],m.hasOwnProperty(v)&&(b!=null||F!=null))switch(v){case"value":ee=b;break;case"defaultValue":_=b;break;case"multiple":M=b;default:b!==F&&Ge(t,r,v,b,m,F)}r=_,o=M,m=ae,ee!=null?X0(t,!!o,ee,!1):!!m!=!!o&&(r!=null?X0(t,!!o,r,!0):X0(t,!!o,o?[]:"",!1));return;case"textarea":ae=ee=null;for(_ in o)if(v=o[_],o.hasOwnProperty(_)&&v!=null&&!m.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Ge(t,r,_,null,m,v)}for(M in m)if(v=m[M],b=o[M],m.hasOwnProperty(M)&&(v!=null||b!=null))switch(M){case"value":ee=v;break;case"defaultValue":ae=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(i(91));break;default:v!==b&&Ge(t,r,M,v,m,b)}kf(t,ee,ae);return;case"option":for(var pe in o)if(ee=o[pe],o.hasOwnProperty(pe)&&ee!=null&&!m.hasOwnProperty(pe))switch(pe){case"selected":t.selected=!1;break;default:Ge(t,r,pe,null,m,ee)}for(F in m)if(ee=m[F],ae=o[F],m.hasOwnProperty(F)&&ee!==ae&&(ee!=null||ae!=null))switch(F){case"selected":t.selected=ee&&typeof ee!="function"&&typeof ee!="symbol";break;default:Ge(t,r,F,ee,m,ae)}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 o)ee=o[we],o.hasOwnProperty(we)&&ee!=null&&!m.hasOwnProperty(we)&&Ge(t,r,we,null,m,ee);for(W in m)if(ee=m[W],ae=o[W],m.hasOwnProperty(W)&&ee!==ae&&(ee!=null||ae!=null))switch(W){case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(i(137,r));break;default:Ge(t,r,W,ee,m,ae)}return;default:if(po(r)){for(var Ye in o)ee=o[Ye],o.hasOwnProperty(Ye)&&ee!==void 0&&!m.hasOwnProperty(Ye)&&t2(t,r,Ye,void 0,m,ee);for(ne in m)ee=m[ne],ae=o[ne],!m.hasOwnProperty(ne)||ee===ae||ee===void 0&&ae===void 0||t2(t,r,ne,ee,m,ae);return}}for(var G in o)ee=o[G],o.hasOwnProperty(G)&&ee!=null&&!m.hasOwnProperty(G)&&Ge(t,r,G,null,m,ee);for(ie in m)ee=m[ie],ae=o[ie],!m.hasOwnProperty(ie)||ee===ae||ee==null&&ae==null||Ge(t,r,ie,ee,m,ae)}function q5(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function yC(){if(typeof performance.getEntriesByType=="function"){for(var t=0,r=0,o=performance.getEntriesByType("resource"),m=0;m<o.length;m++){var v=o[m],b=v.transferSize,M=v.initiatorType,_=v.duration;if(b&&_&&q5(M)){for(M=0,_=v.responseEnd,m+=1;m<o.length;m++){var F=o[m],W=F.startTime;if(W>_)break;var ne=F.transferSize,ie=F.initiatorType;ne&&q5(ie)&&(F=F.responseEnd,M+=ne*(F<_?1:(_-W)/(F-W)))}if(--m,r+=8*(b+M)/(v.duration/1e3),t++,10<t)break}}if(0<t)return r/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var a2=null,n2=null;function Fi(t){return t.nodeType===9?t:t.ownerDocument}function z5(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function B5(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function r2(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var s2=null;function wC(){var t=window.event;return t&&t.type==="popstate"?t===s2?!1:(s2=t,!0):(s2=null,!1)}var $5=typeof setTimeout=="function"?setTimeout:void 0,AC=typeof clearTimeout=="function"?clearTimeout:void 0,I5=typeof Promise=="function"?Promise:void 0,jC=typeof queueMicrotask=="function"?queueMicrotask:typeof I5<"u"?function(t){return I5.resolve(null).then(t).catch(EC)}:$5;function EC(t){setTimeout(function(){throw t})}function Kn(t){return t==="head"}function U5(t,r){var o=r,m=0;do{var v=o.nextSibling;if(t.removeChild(o),v&&v.nodeType===8)if(o=v.data,o==="/$"||o==="/&"){if(m===0){t.removeChild(v),Zr(r);return}m--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")m++;else if(o==="html")zs(t.ownerDocument.documentElement);else if(o==="head"){o=t.ownerDocument.head,zs(o);for(var b=o.firstChild;b;){var M=b.nextSibling,_=b.nodeName;b[ss]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&b.rel.toLowerCase()==="stylesheet"||o.removeChild(b),b=M}}else o==="body"&&zs(t.ownerDocument.body);o=v}while(o);Zr(r)}function P5(t,r){var o=t;t=0;do{var m=o.nextSibling;if(o.nodeType===1?r?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(r?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),m&&m.nodeType===8)if(o=m.data,o==="/$"){if(t===0)break;t--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||t++;o=m}while(o)}function l2(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var o=r;switch(r=r.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":l2(o),uo(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}t.removeChild(o)}}function NC(t,r,o,m){for(;t.nodeType===1;){var v=o;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!m&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(m){if(!t[ss])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(b=t.getAttribute("rel"),b==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(b!==v.rel||t.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||t.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||t.getAttribute("title")!==(v.title==null?null:v.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(b=t.getAttribute("src"),(b!==(v.src==null?null:v.src)||t.getAttribute("type")!==(v.type==null?null:v.type)||t.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&b&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var b=v.name==null?null:""+v.name;if(v.type==="hidden"&&t.getAttribute("name")===b)return t}else return t;if(t=wa(t.nextSibling),t===null)break}return null}function MC(t,r,o){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!o||(t=wa(t.nextSibling),t===null))return null;return t}function G5(t,r){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=wa(t.nextSibling),t===null))return null;return t}function i2(t){return t.data==="$?"||t.data==="$~"}function o2(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function SC(t,r){var o=t.ownerDocument;if(t.data==="$~")t._reactRetry=r;else if(t.data!=="$?"||o.readyState!=="loading")r();else{var m=function(){r(),o.removeEventListener("DOMContentLoaded",m)};o.addEventListener("DOMContentLoaded",m),t._reactRetry=m}}function wa(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return t}var c2=null;function Y5(t){t=t.nextSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="/$"||o==="/&"){if(r===0)return wa(t.nextSibling);r--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||r++}t=t.nextSibling}return null}function K5(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(r===0)return t;r--}else o!=="/$"&&o!=="/&"||r++}t=t.previousSibling}return null}function X5(t,r,o){switch(r=Fi(o),t){case"html":if(t=r.documentElement,!t)throw Error(i(452));return t;case"head":if(t=r.head,!t)throw Error(i(453));return t;case"body":if(t=r.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}function zs(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);uo(t)}var Aa=new Map,Q5=new Set;function qi(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var An=B.d;B.d={f:ZC,r:CC,D:HC,C:VC,L:_C,m:TC,X:RC,S:LC,M:kC};function ZC(){var t=An.f(),r=Vi();return t||r}function CC(t){var r=G0(t);r!==null&&r.tag===5&&r.type==="form"?fp(r):An.r(t)}var Nr=typeof document>"u"?null:document;function J5(t,r,o){var m=Nr;if(m&&typeof r=="string"&&r){var v=fa(r);v='link[rel="'+t+'"][href="'+v+'"]',typeof o=="string"&&(v+='[crossorigin="'+o+'"]'),Q5.has(v)||(Q5.add(v),t={rel:t,crossOrigin:o,href:r},m.querySelector(v)===null&&(r=m.createElement("link"),Dt(r,"link",t),Zt(r),m.head.appendChild(r)))}}function HC(t){An.D(t),J5("dns-prefetch",t,null)}function VC(t,r){An.C(t,r),J5("preconnect",t,r)}function _C(t,r,o){An.L(t,r,o);var m=Nr;if(m&&t&&r){var v='link[rel="preload"][as="'+fa(r)+'"]';r==="image"&&o&&o.imageSrcSet?(v+='[imagesrcset="'+fa(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(v+='[imagesizes="'+fa(o.imageSizes)+'"]')):v+='[href="'+fa(t)+'"]';var b=v;switch(r){case"style":b=Mr(t);break;case"script":b=Sr(t)}Aa.has(b)||(t=x({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:t,as:r},o),Aa.set(b,t),m.querySelector(v)!==null||r==="style"&&m.querySelector(Bs(b))||r==="script"&&m.querySelector($s(b))||(r=m.createElement("link"),Dt(r,"link",t),Zt(r),m.head.appendChild(r)))}}function TC(t,r){An.m(t,r);var o=Nr;if(o&&t){var m=r&&typeof r.as=="string"?r.as:"script",v='link[rel="modulepreload"][as="'+fa(m)+'"][href="'+fa(t)+'"]',b=v;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Sr(t)}if(!Aa.has(b)&&(t=x({rel:"modulepreload",href:t},r),Aa.set(b,t),o.querySelector(v)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector($s(b)))return}m=o.createElement("link"),Dt(m,"link",t),Zt(m),o.head.appendChild(m)}}}function LC(t,r,o){An.S(t,r,o);var m=Nr;if(m&&t){var v=Y0(m).hoistableStyles,b=Mr(t);r=r||"default";var M=v.get(b);if(!M){var _={loading:0,preload:null};if(M=m.querySelector(Bs(b)))_.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":r},o),(o=Aa.get(b))&&u2(t,o);var F=M=m.createElement("link");Zt(F),Dt(F,"link",t),F._p=new Promise(function(W,ne){F.onload=W,F.onerror=ne}),F.addEventListener("load",function(){_.loading|=1}),F.addEventListener("error",function(){_.loading|=2}),_.loading|=4,zi(M,r,m)}M={type:"stylesheet",instance:M,count:1,state:_},v.set(b,M)}}}function RC(t,r){An.X(t,r);var o=Nr;if(o&&t){var m=Y0(o).hoistableScripts,v=Sr(t),b=m.get(v);b||(b=o.querySelector($s(v)),b||(t=x({src:t,async:!0},r),(r=Aa.get(v))&&d2(t,r),b=o.createElement("script"),Zt(b),Dt(b,"link",t),o.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},m.set(v,b))}}function kC(t,r){An.M(t,r);var o=Nr;if(o&&t){var m=Y0(o).hoistableScripts,v=Sr(t),b=m.get(v);b||(b=o.querySelector($s(v)),b||(t=x({src:t,async:!0,type:"module"},r),(r=Aa.get(v))&&d2(t,r),b=o.createElement("script"),Zt(b),Dt(b,"link",t),o.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},m.set(v,b))}}function W5(t,r,o,m){var v=(v=P.current)?qi(v):null;if(!v)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(r=Mr(o.href),o=Y0(v).hoistableStyles,m=o.get(r),m||(m={type:"style",instance:null,count:0,state:null},o.set(r,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){t=Mr(o.href);var b=Y0(v).hoistableStyles,M=b.get(t);if(M||(v=v.ownerDocument||v,M={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(t,M),(b=v.querySelector(Bs(t)))&&!b._p&&(M.instance=b,M.state.loading=5),Aa.has(t)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Aa.set(t,o),b||DC(v,t,o,M.state))),r&&m===null)throw Error(i(528,""));return M}if(r&&m!==null)throw Error(i(529,""));return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Sr(o),o=Y0(v).hoistableScripts,m=o.get(r),m||(m={type:"script",instance:null,count:0,state:null},o.set(r,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}function Mr(t){return'href="'+fa(t)+'"'}function Bs(t){return'link[rel="stylesheet"]['+t+"]"}function eg(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function DC(t,r,o,m){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?m.loading=1:(r=t.createElement("link"),m.preload=r,r.addEventListener("load",function(){return m.loading|=1}),r.addEventListener("error",function(){return m.loading|=2}),Dt(r,"link",o),Zt(r),t.head.appendChild(r))}function Sr(t){return'[src="'+fa(t)+'"]'}function $s(t){return"script[async]"+t}function tg(t,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var m=t.querySelector('style[data-href~="'+fa(o.href)+'"]');if(m)return r.instance=m,Zt(m),m;var v=x({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return m=(t.ownerDocument||t).createElement("style"),Zt(m),Dt(m,"style",v),zi(m,o.precedence,t),r.instance=m;case"stylesheet":v=Mr(o.href);var b=t.querySelector(Bs(v));if(b)return r.state.loading|=4,r.instance=b,Zt(b),b;m=eg(o),(v=Aa.get(v))&&u2(m,v),b=(t.ownerDocument||t).createElement("link"),Zt(b);var M=b;return M._p=new Promise(function(_,F){M.onload=_,M.onerror=F}),Dt(b,"link",m),r.state.loading|=4,zi(b,o.precedence,t),r.instance=b;case"script":return b=Sr(o.src),(v=t.querySelector($s(b)))?(r.instance=v,Zt(v),v):(m=o,(v=Aa.get(b))&&(m=x({},o),d2(m,v)),t=t.ownerDocument||t,v=t.createElement("script"),Zt(v),Dt(v,"link",m),t.head.appendChild(v),r.instance=v);case"void":return null;default:throw Error(i(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(m=r.instance,r.state.loading|=4,zi(m,o.precedence,t));return r.instance}function zi(t,r,o){for(var m=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=m.length?m[m.length-1]:null,b=v,M=0;M<m.length;M++){var _=m[M];if(_.dataset.precedence===r)b=_;else if(b!==v)break}b?b.parentNode.insertBefore(t,b.nextSibling):(r=o.nodeType===9?o.head:o,r.insertBefore(t,r.firstChild))}function u2(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function d2(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var Bi=null;function ag(t,r,o){if(Bi===null){var m=new Map,v=Bi=new Map;v.set(o,m)}else v=Bi,m=v.get(o),m||(m=new Map,v.set(o,m));if(m.has(t))return m;for(m.set(t,null),o=o.getElementsByTagName(t),v=0;v<o.length;v++){var b=o[v];if(!(b[ss]||b[Tt]||t==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var M=b.getAttribute(r)||"";M=t+M;var _=m.get(M);_?_.push(b):m.set(M,[b])}}return m}function ng(t,r,o){t=t.ownerDocument||t,t.head.insertBefore(o,r==="title"?t.querySelector("head > title"):null)}function OC(t,r,o){if(o===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return t=r.disabled,typeof r.precedence=="string"&&t==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function rg(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function FC(t,r,o,m){if(o.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var v=Mr(m.href),b=r.querySelector(Bs(v));if(b){r=b._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(t.count++,t=$i.bind(t),r.then(t,t)),o.state.loading|=4,o.instance=b,Zt(b);return}b=r.ownerDocument||r,m=eg(m),(v=Aa.get(v))&&u2(m,v),b=b.createElement("link"),Zt(b);var M=b;M._p=new Promise(function(_,F){M.onload=_,M.onerror=F}),Dt(b,"link",m),o.instance=b}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(o,r),(r=o.state.preload)&&(o.state.loading&3)===0&&(t.count++,o=$i.bind(t),r.addEventListener("load",o),r.addEventListener("error",o))}}var h2=0;function qC(t,r){return t.stylesheets&&t.count===0&&Ui(t,t.stylesheets),0<t.count||0<t.imgCount?function(o){var m=setTimeout(function(){if(t.stylesheets&&Ui(t,t.stylesheets),t.unsuspend){var b=t.unsuspend;t.unsuspend=null,b()}},6e4+r);0<t.imgBytes&&h2===0&&(h2=62500*yC());var v=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ui(t,t.stylesheets),t.unsuspend)){var b=t.unsuspend;t.unsuspend=null,b()}},(t.imgBytes>h2?50:800)+r);return t.unsuspend=o,function(){t.unsuspend=null,clearTimeout(m),clearTimeout(v)}}:null}function $i(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ui(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ii=null;function Ui(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ii=new Map,r.forEach(zC,t),Ii=null,$i.call(t))}function zC(t,r){if(!(r.state.loading&4)){var o=Ii.get(t);if(o)var m=o.get(null);else{o=new Map,Ii.set(t,o);for(var v=t.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<v.length;b++){var M=v[b];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(o.set(M.dataset.precedence,M),m=M)}m&&o.set(null,m)}v=r.instance,M=v.getAttribute("data-precedence"),b=o.get(M)||m,b===m&&o.set(null,v),o.set(M,v),this.count++,m=$i.bind(this),v.addEventListener("load",m),v.addEventListener("error",m),b?b.parentNode.insertBefore(v,b.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(v,t.firstChild)),r.state.loading|=4}}var Is={$$typeof:Z,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function BC(t,r,o,m,v,b,M,_,F){this.tag=1,this.containerInfo=t,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=lo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lo(0),this.hiddenUpdates=lo(null),this.identifierPrefix=m,this.onUncaughtError=v,this.onCaughtError=b,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=F,this.incompleteTransitions=new Map}function sg(t,r,o,m,v,b,M,_,F,W,ne,ie){return t=new BC(t,r,o,M,F,W,ne,ie,_),r=1,b===!0&&(r|=24),b=na(3,null,null,r),t.current=b,b.stateNode=t,r=Uo(),r.refCount++,t.pooledCache=r,r.refCount++,b.memoizedState={element:m,isDehydrated:o,cache:r},Ko(b),t}function lg(t){return t?(t=rr,t):rr}function ig(t,r,o,m,v,b){v=lg(v),m.context===null?m.context=v:m.pendingContext=v,m=On(r),m.payload={element:o},b=b===void 0?null:b,b!==null&&(m.callback=b),o=Fn(t,m,r),o!==null&&(Jt(o,t,r),As(o,t,r))}function og(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<r?o:r}}function m2(t,r){og(t,r),(t=t.alternate)&&og(t,r)}function cg(t){if(t.tag===13||t.tag===31){var r=g0(t,67108864);r!==null&&Jt(r,t,67108864),m2(t,67108864)}}function ug(t){if(t.tag===13||t.tag===31){var r=oa();r=io(r);var o=g0(t,r);o!==null&&Jt(o,t,r),m2(t,r)}}var Pi=!0;function $C(t,r,o,m){var v=L.T;L.T=null;var b=B.p;try{B.p=2,f2(t,r,o,m)}finally{B.p=b,L.T=v}}function IC(t,r,o,m){var v=L.T;L.T=null;var b=B.p;try{B.p=8,f2(t,r,o,m)}finally{B.p=b,L.T=v}}function f2(t,r,o,m){if(Pi){var v=p2(m);if(v===null)e2(t,r,m,Gi,o),hg(t,m);else if(PC(v,t,r,o,m))m.stopPropagation();else if(hg(t,m),r&4&&-1<UC.indexOf(t)){for(;v!==null;){var b=G0(v);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var M=d0(b.pendingLanes);if(M!==0){var _=b;for(_.pendingLanes|=2,_.entangledLanes|=2;M;){var F=1<<31-ta(M);_.entanglements[1]|=F,M&=~F}Ga(b),(Oe&6)===0&&(Ci=ot()+500,Os(0))}}break;case 31:case 13:_=g0(b,2),_!==null&&Jt(_,b,2),Vi(),m2(b,2)}if(b=p2(m),b===null&&e2(t,r,m,Gi,o),b===v)break;v=b}v!==null&&m.stopPropagation()}else e2(t,r,m,null,o)}}function p2(t){return t=xo(t),g2(t)}var Gi=null;function g2(t){if(Gi=null,t=P0(t),t!==null){var r=u(t);if(r===null)t=null;else{var o=r.tag;if(o===13){if(t=d(r),t!==null)return t;t=null}else if(o===31){if(t=h(r),t!==null)return t;t=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return Gi=t,null}function dg(t){switch(t){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(Cn()){case I0:return 2;case jt:return 8;case _t:case Rl:return 32;case as:return 268435456;default:return 32}default:return 32}}var x2=!1,Xn=null,Qn=null,Jn=null,Us=new Map,Ps=new Map,Wn=[],UC="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 hg(t,r){switch(t){case"focusin":case"focusout":Xn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":Us.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ps.delete(r.pointerId)}}function Gs(t,r,o,m,v,b){return t===null||t.nativeEvent!==b?(t={blockedOn:r,domEventName:o,eventSystemFlags:m,nativeEvent:b,targetContainers:[v]},r!==null&&(r=G0(r),r!==null&&cg(r)),t):(t.eventSystemFlags|=m,r=t.targetContainers,v!==null&&r.indexOf(v)===-1&&r.push(v),t)}function PC(t,r,o,m,v){switch(r){case"focusin":return Xn=Gs(Xn,t,r,o,m,v),!0;case"dragenter":return Qn=Gs(Qn,t,r,o,m,v),!0;case"mouseover":return Jn=Gs(Jn,t,r,o,m,v),!0;case"pointerover":var b=v.pointerId;return Us.set(b,Gs(Us.get(b)||null,t,r,o,m,v)),!0;case"gotpointercapture":return b=v.pointerId,Ps.set(b,Gs(Ps.get(b)||null,t,r,o,m,v)),!0}return!1}function mg(t){var r=P0(t.target);if(r!==null){var o=u(r);if(o!==null){if(r=o.tag,r===13){if(r=d(o),r!==null){t.blockedOn=r,Sf(t.priority,function(){ug(o)});return}}else if(r===31){if(r=h(o),r!==null){t.blockedOn=r,Sf(t.priority,function(){ug(o)});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Yi(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var o=p2(t.nativeEvent);if(o===null){o=t.nativeEvent;var m=new o.constructor(o.type,o);go=m,o.target.dispatchEvent(m),go=null}else return r=G0(o),r!==null&&cg(r),t.blockedOn=o,!1;r.shift()}return!0}function fg(t,r,o){Yi(t)&&o.delete(r)}function GC(){x2=!1,Xn!==null&&Yi(Xn)&&(Xn=null),Qn!==null&&Yi(Qn)&&(Qn=null),Jn!==null&&Yi(Jn)&&(Jn=null),Us.forEach(fg),Ps.forEach(fg)}function Ki(t,r){t.blockedOn===r&&(t.blockedOn=null,x2||(x2=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,GC)))}var Xi=null;function pg(t){Xi!==t&&(Xi=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Xi===t&&(Xi=null);for(var r=0;r<t.length;r+=3){var o=t[r],m=t[r+1],v=t[r+2];if(typeof m!="function"){if(g2(m||o)===null)continue;break}var b=G0(o);b!==null&&(t.splice(r,3),r-=3,pc(b,{pending:!0,data:v,method:o.method,action:m},m,v))}}))}function Zr(t){function r(F){return Ki(F,t)}Xn!==null&&Ki(Xn,t),Qn!==null&&Ki(Qn,t),Jn!==null&&Ki(Jn,t),Us.forEach(r),Ps.forEach(r);for(var o=0;o<Wn.length;o++){var m=Wn[o];m.blockedOn===t&&(m.blockedOn=null)}for(;0<Wn.length&&(o=Wn[0],o.blockedOn===null);)mg(o),o.blockedOn===null&&Wn.shift();if(o=(t.ownerDocument||t).$$reactFormReplay,o!=null)for(m=0;m<o.length;m+=3){var v=o[m],b=o[m+1],M=v[Pt]||null;if(typeof b=="function")M||pg(o);else if(M){var _=null;if(b&&b.hasAttribute("formAction")){if(v=b,M=b[Pt]||null)_=M.formAction;else if(g2(v)!==null)continue}else _=M.action;typeof _=="function"?o[m+1]=_:(o.splice(m,3),m-=3),pg(o)}}}function gg(){function t(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(M){return v=M})},focusReset:"manual",scroll:"manual"})}function r(){v!==null&&(v(),v=null),m||setTimeout(o,20)}function o(){if(!m&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,v=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(o,100),function(){m=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),v!==null&&(v(),v=null)}}}function v2(t){this._internalRoot=t}Qi.prototype.render=v2.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));var o=r.current,m=oa();ig(o,m,t,r,null,null)},Qi.prototype.unmount=v2.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;ig(t.current,2,null,t,null,null),Vi(),r[U0]=null}};function Qi(t){this._internalRoot=t}Qi.prototype.unstable_scheduleHydration=function(t){if(t){var r=Mf();t={blockedOn:null,target:t,priority:r};for(var o=0;o<Wn.length&&r!==0&&r<Wn[o].priority;o++);Wn.splice(o,0,t),o===0&&mg(t)}};var xg=a.version;if(xg!=="19.2.4")throw Error(i(527,xg,"19.2.4"));B.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=p(r),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var YC={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ji=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ji.isDisabled&&Ji.supportsFiber)try{Ut=Ji.inject(YC),ct=Ji}catch{}}return Ks.createRoot=function(t,r){if(!c(t))throw Error(i(299));var o=!1,m="",v=Ep,b=Np,M=Mp;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(m=r.identifierPrefix),r.onUncaughtError!==void 0&&(v=r.onUncaughtError),r.onCaughtError!==void 0&&(b=r.onCaughtError),r.onRecoverableError!==void 0&&(M=r.onRecoverableError)),r=sg(t,1,!1,null,null,o,m,null,v,b,M,gg),t[U0]=r.current,Wc(t),new v2(r)},Ks.hydrateRoot=function(t,r,o){if(!c(t))throw Error(i(299));var m=!1,v="",b=Ep,M=Np,_=Mp,F=null;return o!=null&&(o.unstable_strictMode===!0&&(m=!0),o.identifierPrefix!==void 0&&(v=o.identifierPrefix),o.onUncaughtError!==void 0&&(b=o.onUncaughtError),o.onCaughtError!==void 0&&(M=o.onCaughtError),o.onRecoverableError!==void 0&&(_=o.onRecoverableError),o.formState!==void 0&&(F=o.formState)),r=sg(t,1,!0,r,o??null,m,v,F,b,M,_,gg),r.context=lg(null),o=r.current,m=oa(),m=io(m),v=On(m),v.callback=null,Fn(o,v,m),o=m,r.current.lanes=o,rs(r,o),Ga(r),t[U0]=r.current,Wc(t),new Qi(r)},Ks.version="19.2.4",Ks}var Sg;function iH(){if(Sg)return w2.exports;Sg=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(a){console.error(a)}}return e(),w2.exports=lH(),w2.exports}var oH=iH();/**
|
|
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 Zg="popstate";function Cg(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function cH(e={}){function a(i,c){var p;let u=(p=c.state)==null?void 0:p.masked,{pathname:d,search:h,hash:f}=u||i.location;return yh("",{pathname:d,search:h,hash:f},c.state&&c.state.usr||null,c.state&&c.state.key||"default",u?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function l(i,c){return typeof c=="string"?c:ol(c)}return dH(a,l,null,e)}function tt(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function Fa(e,a){if(!e){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function uH(){return Math.random().toString(36).substring(2,10)}function Hg(e,a){return{usr:e.state,key:e.key,idx:a,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function yh(e,a,l=null,i,c){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof a=="string"?Ir(a):a,state:l,key:a&&a.key||i||uH(),unstable_mask:c}}function ol({pathname:e="/",search:a="",hash:l=""}){return a&&a!=="?"&&(e+=a.charAt(0)==="?"?a:"?"+a),l&&l!=="#"&&(e+=l.charAt(0)==="#"?l:"#"+l),e}function Ir(e){let a={};if(e){let l=e.indexOf("#");l>=0&&(a.hash=e.substring(l),e=e.substring(0,l));let i=e.indexOf("?");i>=0&&(a.search=e.substring(i),e=e.substring(0,i)),e&&(a.pathname=e)}return a}function dH(e,a,l,i={}){let{window:c=document.defaultView,v5Compat:u=!1}=i,d=c.history,h="POP",f=null,p=g();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function g(){return(d.state||{idx:null}).idx}function x(){h="POP";let A=g(),j=A==null?null:A-p;p=A,f&&f({action:h,location:E.location,delta:j})}function y(A,j){h="PUSH";let S=Cg(A)?A:yh(E.location,A,j);p=g()+1;let Z=Hg(S,p),C=E.createHref(S.unstable_mask||S);try{d.pushState(Z,"",C)}catch(H){if(H instanceof DOMException&&H.name==="DataCloneError")throw H;c.location.assign(C)}u&&f&&f({action:h,location:E.location,delta:1})}function w(A,j){h="REPLACE";let S=Cg(A)?A:yh(E.location,A,j);p=g();let Z=Hg(S,p),C=E.createHref(S.unstable_mask||S);d.replaceState(Z,"",C),u&&f&&f({action:h,location:E.location,delta:0})}function N(A){return hH(A)}let E={get action(){return h},get location(){return e(c,d)},listen(A){if(f)throw new Error("A history only accepts one active listener");return c.addEventListener(Zg,x),f=A,()=>{c.removeEventListener(Zg,x),f=null}},createHref(A){return a(c,A)},createURL:N,encodeLocation(A){let j=N(A);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:y,replace:w,go(A){return d.go(A)}};return E}function hH(e,a=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),tt(l,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:ol(e);return i=i.replace(/ $/,"%20"),!a&&i.startsWith("//")&&(i=l+i),new URL(i,l)}function lA(e,a,l="/"){return mH(e,a,l,!1)}function mH(e,a,l,i){let c=typeof a=="string"?Ir(a):a,u=jn(c.pathname||"/",l);if(u==null)return null;let d=iA(e);fH(d);let h=null;for(let f=0;h==null&&f<d.length;++f){let p=NH(u);h=jH(d[f],p,i)}return h}function iA(e,a=[],l=[],i="",c=!1){let u=(d,h,f=c,p)=>{let g={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(i)&&f)return;tt(g.relativePath.startsWith(i),`Absolute route path "${g.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(i.length)}let x=Xa([i,g.relativePath]),y=l.concat(g);d.children&&d.children.length>0&&(tt(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),iA(d.children,a,y,x,f)),!(d.path==null&&!d.index)&&a.push({path:x,score:wH(x,d.index),routesMeta:y})};return e.forEach((d,h)=>{var f;if(d.path===""||!((f=d.path)!=null&&f.includes("?")))u(d,h);else for(let p of oA(d.path))u(d,h,!0,p)}),a}function oA(e){let a=e.split("/");if(a.length===0)return[];let[l,...i]=a,c=l.endsWith("?"),u=l.replace(/\?$/,"");if(i.length===0)return c?[u,""]:[u];let d=oA(i.join("/")),h=[];return h.push(...d.map(f=>f===""?u:[u,f].join("/"))),c&&h.push(...d),h.map(f=>e.startsWith("/")&&f===""?"/":f)}function fH(e){e.sort((a,l)=>a.score!==l.score?l.score-a.score:AH(a.routesMeta.map(i=>i.childrenIndex),l.routesMeta.map(i=>i.childrenIndex)))}var pH=/^:[\w-]+$/,gH=3,xH=2,vH=1,bH=10,yH=-2,Vg=e=>e==="*";function wH(e,a){let l=e.split("/"),i=l.length;return l.some(Vg)&&(i+=yH),a&&(i+=xH),l.filter(c=>!Vg(c)).reduce((c,u)=>c+(pH.test(u)?gH:u===""?vH:bH),i)}function AH(e,a){return e.length===a.length&&e.slice(0,-1).every((i,c)=>i===a[c])?e[e.length-1]-a[a.length-1]:0}function jH(e,a,l=!1){let{routesMeta:i}=e,c={},u="/",d=[];for(let h=0;h<i.length;++h){let f=i[h],p=h===i.length-1,g=u==="/"?a:a.slice(u.length)||"/",x=w1({path:f.relativePath,caseSensitive:f.caseSensitive,end:p},g),y=f.route;if(!x&&p&&l&&!i[i.length-1].route.index&&(x=w1({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},g)),!x)return null;Object.assign(c,x.params),d.push({params:c,pathname:Xa([u,x.pathname]),pathnameBase:CH(Xa([u,x.pathnameBase])),route:y}),x.pathnameBase!=="/"&&(u=Xa([u,x.pathnameBase]))}return d}function w1(e,a){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[l,i]=EH(e.path,e.caseSensitive,e.end),c=a.match(l);if(!c)return null;let u=c[0],d=u.replace(/(.)\/+$/,"$1"),h=c.slice(1);return{params:i.reduce((p,{paramName:g,isOptional:x},y)=>{if(g==="*"){let N=h[y]||"";d=u.slice(0,u.length-N.length).replace(/(.)\/+$/,"$1")}const w=h[y];return x&&!w?p[g]=void 0:p[g]=(w||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:d,pattern:e}}function EH(e,a=!1,l=!0){Fa(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 i=[],c="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,f,p,g)=>{if(i.push({paramName:h,isOptional:f!=null}),f){let x=g.charAt(p+d.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),c+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?c+="\\/*$":e!==""&&e!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,a?void 0:"i"),i]}function NH(e){try{return e.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Fa(!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 (${a}).`),e}}function jn(e,a){if(a==="/")return e;if(!e.toLowerCase().startsWith(a.toLowerCase()))return null;let l=a.endsWith("/")?a.length-1:a.length,i=e.charAt(l);return i&&i!=="/"?null:e.slice(l)||"/"}var MH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function SH(e,a="/"){let{pathname:l,search:i="",hash:c=""}=typeof e=="string"?Ir(e):e,u;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?u=_g(l.substring(1),"/"):u=_g(l,a)):u=a,{pathname:u,search:HH(i),hash:VH(c)}}function _g(e,a){let l=a.replace(/\/+$/,"").split("/");return e.split("/").forEach(c=>{c===".."?l.length>1&&l.pop():c!=="."&&l.push(c)}),l.length>1?l.join("/"):"/"}function N2(e,a,l,i){return`Cannot include a '${e}' character in a manually specified \`to.${a}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ZH(e){return e.filter((a,l)=>l===0||a.route.path&&a.route.path.length>0)}function om(e){let a=ZH(e);return a.map((l,i)=>i===a.length-1?l.pathname:l.pathnameBase)}function T1(e,a,l,i=!1){let c;typeof e=="string"?c=Ir(e):(c={...e},tt(!c.pathname||!c.pathname.includes("?"),N2("?","pathname","search",c)),tt(!c.pathname||!c.pathname.includes("#"),N2("#","pathname","hash",c)),tt(!c.search||!c.search.includes("#"),N2("#","search","hash",c)));let u=e===""||c.pathname==="",d=u?"/":c.pathname,h;if(d==null)h=l;else{let x=a.length-1;if(!i&&d.startsWith("..")){let y=d.split("/");for(;y[0]==="..";)y.shift(),x-=1;c.pathname=y.join("/")}h=x>=0?a[x]:"/"}let f=SH(c,h),p=d&&d!=="/"&&d.endsWith("/"),g=(u||d===".")&&l.endsWith("/");return!f.pathname.endsWith("/")&&(p||g)&&(f.pathname+="/"),f}var Xa=e=>e.join("/").replace(/\/\/+/g,"/"),CH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),HH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,VH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,_H=class{constructor(e,a,l,i=!1){this.status=e,this.statusText=a||"",this.internal=i,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function TH(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function LH(e){return e.map(a=>a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var cA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function uA(e,a){let l=e;if(typeof l!="string"||!MH.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let i=l,c=!1;if(cA)try{let u=new URL(window.location.href),d=l.startsWith("//")?new URL(u.protocol+l):new URL(l),h=jn(d.pathname,a);d.origin===u.origin&&h!=null?l=h+d.search+d.hash:c=!0}catch{Fa(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:c,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var dA=["POST","PUT","PATCH","DELETE"];new Set(dA);var RH=["GET",...dA];new Set(RH);var Ur=n.createContext(null);Ur.displayName="DataRouter";var L1=n.createContext(null);L1.displayName="DataRouterState";var kH=n.createContext(!1),hA=n.createContext({isTransitioning:!1});hA.displayName="ViewTransition";var DH=n.createContext(new Map);DH.displayName="Fetchers";var OH=n.createContext(null);OH.displayName="Await";var ua=n.createContext(null);ua.displayName="Navigation";var gl=n.createContext(null);gl.displayName="Location";var Za=n.createContext({outlet:null,matches:[],isDataRoute:!1});Za.displayName="Route";var cm=n.createContext(null);cm.displayName="RouteError";var mA="REACT_ROUTER_ERROR",FH="REDIRECT",qH="ROUTE_ERROR_RESPONSE";function zH(e){if(e.startsWith(`${mA}:${FH}:{`))try{let a=JSON.parse(e.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function BH(e){if(e.startsWith(`${mA}:${qH}:{`))try{let a=JSON.parse(e.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new _H(a.status,a.statusText,a.data)}catch{}}function $H(e,{relative:a}={}){tt(Pr(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:i}=n.useContext(ua),{hash:c,pathname:u,search:d}=vl(e,{relative:a}),h=u;return l!=="/"&&(h=u==="/"?l:Xa([l,u])),i.createHref({pathname:h,search:d,hash:c})}function Pr(){return n.useContext(gl)!=null}function en(){return tt(Pr(),"useLocation() may be used only in the context of a <Router> component."),n.useContext(gl).location}var fA="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function pA(e){n.useContext(ua).static||n.useLayoutEffect(e)}function i0(){let{isDataRoute:e}=n.useContext(Za);return e?rV():IH()}function IH(){tt(Pr(),"useNavigate() may be used only in the context of a <Router> component.");let e=n.useContext(Ur),{basename:a,navigator:l}=n.useContext(ua),{matches:i}=n.useContext(Za),{pathname:c}=en(),u=JSON.stringify(om(i)),d=n.useRef(!1);return pA(()=>{d.current=!0}),n.useCallback((f,p={})=>{if(Fa(d.current,fA),!d.current)return;if(typeof f=="number"){l.go(f);return}let g=T1(f,JSON.parse(u),c,p.relative==="path");e==null&&a!=="/"&&(g.pathname=g.pathname==="/"?a:Xa([a,g.pathname])),(p.replace?l.replace:l.push)(g,p.state,p)},[a,l,u,c,e])}var UH=n.createContext(null);function PH(e){let a=n.useContext(Za).outlet;return n.useMemo(()=>a&&n.createElement(UH.Provider,{value:e},a),[a,e])}function xl(){let{matches:e}=n.useContext(Za),a=e[e.length-1];return a?a.params:{}}function vl(e,{relative:a}={}){let{matches:l}=n.useContext(Za),{pathname:i}=en(),c=JSON.stringify(om(l));return n.useMemo(()=>T1(e,JSON.parse(c),i,a==="path"),[e,c,i,a])}function GH(e,a){return gA(e,a)}function gA(e,a,l){var A;tt(Pr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=n.useContext(ua),{matches:c}=n.useContext(Za),u=c[c.length-1],d=u?u.params:{},h=u?u.pathname:"/",f=u?u.pathnameBase:"/",p=u&&u.route;{let j=p&&p.path||"";vA(h,!p||j.endsWith("*")||j.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${j}">) 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="${j}"> to <Route path="${j==="/"?"*":`${j}/*`}">.`)}let g=en(),x;if(a){let j=typeof a=="string"?Ir(a):a;tt(f==="/"||((A=j.pathname)==null?void 0:A.startsWith(f)),`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 "${f}" but pathname "${j.pathname}" was given in the \`location\` prop.`),x=j}else x=g;let y=x.pathname||"/",w=y;if(f!=="/"){let j=f.replace(/^\//,"").split("/");w="/"+y.replace(/^\//,"").split("/").slice(j.length).join("/")}let N=lA(e,{pathname:w});Fa(p||N!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Fa(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 E=JH(N&&N.map(j=>Object.assign({},j,{params:Object.assign({},d,j.params),pathname:Xa([f,i.encodeLocation?i.encodeLocation(j.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?f:Xa([f,i.encodeLocation?i.encodeLocation(j.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathnameBase])})),c,l);return a&&E?n.createElement(gl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...x},navigationType:"POP"}},E):E}function YH(){let e=nV(),a=TH(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),l=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:i},u={padding:"2px 4px",backgroundColor:i},d=null;return console.error("Error handled by React Router default ErrorBoundary:",e),d=n.createElement(n.Fragment,null,n.createElement("p",null,"💿 Hey developer 👋"),n.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",n.createElement("code",{style:u},"ErrorBoundary")," or"," ",n.createElement("code",{style:u},"errorElement")," prop on your route.")),n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},a),l?n.createElement("pre",{style:c},l):null,d)}var KH=n.createElement(YH,null),xA=class extends n.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,a){return a.location!==e.location||a.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:a.error,location:a.location,revalidation:e.revalidation||a.revalidation}}componentDidCatch(e,a){this.props.onError?this.props.onError(e,a):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 l=BH(e.digest);l&&(e=l)}let a=e!==void 0?n.createElement(Za.Provider,{value:this.props.routeContext},n.createElement(cm.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?n.createElement(XH,{error:e},a):a}};xA.contextType=kH;var M2=new WeakMap;function XH({children:e,error:a}){let{basename:l}=n.useContext(ua);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let i=zH(a.digest);if(i){let c=M2.get(a);if(c)throw c;let u=uA(i.location,l);if(cA&&!M2.get(a))if(u.isExternal||i.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:i.replace}));throw M2.set(a,d),d}return n.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return e}function QH({routeContext:e,match:a,children:l}){let i=n.useContext(Ur);return i&&i.static&&i.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=a.route.id),n.createElement(Za.Provider,{value:e},l)}function JH(e,a=[],l){let i=l==null?void 0:l.state;if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(a.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let c=e,u=i==null?void 0:i.errors;if(u!=null){let g=c.findIndex(x=>x.route.id&&(u==null?void 0:u[x.route.id])!==void 0);tt(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),c=c.slice(0,Math.min(c.length,g+1))}let d=!1,h=-1;if(l&&i){d=i.renderFallback;for(let g=0;g<c.length;g++){let x=c[g];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(h=g),x.route.id){let{loaderData:y,errors:w}=i,N=x.route.loader&&!y.hasOwnProperty(x.route.id)&&(!w||w[x.route.id]===void 0);if(x.route.lazy||N){l.isStatic&&(d=!0),h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}}let f=l==null?void 0:l.onError,p=i&&f?(g,x)=>{var y,w;f(g,{location:i.location,params:((w=(y=i.matches)==null?void 0:y[0])==null?void 0:w.params)??{},unstable_pattern:LH(i.matches),errorInfo:x})}:void 0;return c.reduceRight((g,x,y)=>{let w,N=!1,E=null,A=null;i&&(w=u&&x.route.id?u[x.route.id]:void 0,E=x.route.errorElement||KH,d&&(h<0&&y===0?(vA("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,A=null):h===y&&(N=!0,A=x.route.hydrateFallbackElement||null)));let j=a.concat(c.slice(0,y+1)),S=()=>{let Z;return w?Z=E:N?Z=A:x.route.Component?Z=n.createElement(x.route.Component,null):x.route.element?Z=x.route.element:Z=g,n.createElement(QH,{match:x,routeContext:{outlet:g,matches:j,isDataRoute:i!=null},children:Z})};return i&&(x.route.ErrorBoundary||x.route.errorElement||y===0)?n.createElement(xA,{location:i.location,revalidation:i.revalidation,component:E,error:w,children:S(),routeContext:{outlet:null,matches:j,isDataRoute:!0},onError:p}):S()},null)}function um(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function WH(e){let a=n.useContext(Ur);return tt(a,um(e)),a}function eV(e){let a=n.useContext(L1);return tt(a,um(e)),a}function tV(e){let a=n.useContext(Za);return tt(a,um(e)),a}function dm(e){let a=tV(e),l=a.matches[a.matches.length-1];return tt(l.route.id,`${e} can only be used on routes that contain a unique "id"`),l.route.id}function aV(){return dm("useRouteId")}function nV(){var i;let e=n.useContext(cm),a=eV("useRouteError"),l=dm("useRouteError");return e!==void 0?e:(i=a.errors)==null?void 0:i[l]}function rV(){let{router:e}=WH("useNavigate"),a=dm("useNavigate"),l=n.useRef(!1);return pA(()=>{l.current=!0}),n.useCallback(async(c,u={})=>{Fa(l.current,fA),l.current&&(typeof c=="number"?await e.navigate(c):await e.navigate(c,{fromRouteId:a,...u}))},[e,a])}var Tg={};function vA(e,a,l){!a&&!Tg[e]&&(Tg[e]=!0,Fa(!1,l))}n.memo(sV);function sV({routes:e,future:a,state:l,isStatic:i,onError:c}){return gA(e,void 0,{state:l,isStatic:i,onError:c})}function bA({to:e,replace:a,state:l,relative:i}){tt(Pr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=n.useContext(ua);Fa(!c,"<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:u}=n.useContext(Za),{pathname:d}=en(),h=i0(),f=T1(e,om(u),d,i==="path"),p=JSON.stringify(f);return n.useEffect(()=>{h(JSON.parse(p),{replace:a,state:l,relative:i})},[h,p,i,a,l]),null}function lV(e){return PH(e.context)}function Ve(e){tt(!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 iV({basename:e="/",children:a=null,location:l,navigationType:i="POP",navigator:c,static:u=!1,unstable_useTransitions:d}){tt(!Pr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=e.replace(/^\/*/,"/"),f=n.useMemo(()=>({basename:h,navigator:c,static:u,unstable_useTransitions:d,future:{}}),[h,c,u,d]);typeof l=="string"&&(l=Ir(l));let{pathname:p="/",search:g="",hash:x="",state:y=null,key:w="default",unstable_mask:N}=l,E=n.useMemo(()=>{let A=jn(p,h);return A==null?null:{location:{pathname:A,search:g,hash:x,state:y,key:w,unstable_mask:N},navigationType:i}},[h,p,g,x,y,w,i,N]);return Fa(E!=null,`<Router basename="${h}"> is not able to match the URL "${p}${g}${x}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:n.createElement(ua.Provider,{value:f},n.createElement(gl.Provider,{children:a,value:E}))}function oV({children:e,location:a}){return GH(wh(e),a)}function wh(e,a=[]){let l=[];return n.Children.forEach(e,(i,c)=>{if(!n.isValidElement(i))return;let u=[...a,c];if(i.type===n.Fragment){l.push.apply(l,wh(i.props.children,u));return}tt(i.type===Ve,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),tt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let d={id:i.props.id||u.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(d.children=wh(i.props.children,u)),l.push(d)}),l}var c1="get",u1="application/x-www-form-urlencoded";function R1(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function cV(e){return R1(e)&&e.tagName.toLowerCase()==="button"}function uV(e){return R1(e)&&e.tagName.toLowerCase()==="form"}function dV(e){return R1(e)&&e.tagName.toLowerCase()==="input"}function hV(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function mV(e,a){return e.button===0&&(!a||a==="_self")&&!hV(e)}var e1=null;function fV(){if(e1===null)try{new FormData(document.createElement("form"),0),e1=!1}catch{e1=!0}return e1}var pV=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function S2(e){return e!=null&&!pV.has(e)?(Fa(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${u1}"`),null):e}function gV(e,a){let l,i,c,u,d;if(uV(e)){let h=e.getAttribute("action");i=h?jn(h,a):null,l=e.getAttribute("method")||c1,c=S2(e.getAttribute("enctype"))||u1,u=new FormData(e)}else if(cV(e)||dV(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 f=e.getAttribute("formaction")||h.getAttribute("action");if(i=f?jn(f,a):null,l=e.getAttribute("formmethod")||h.getAttribute("method")||c1,c=S2(e.getAttribute("formenctype"))||S2(h.getAttribute("enctype"))||u1,u=new FormData(h,e),!fV()){let{name:p,type:g,value:x}=e;if(g==="image"){let y=p?`${p}.`:"";u.append(`${y}x`,"0"),u.append(`${y}y`,"0")}else p&&u.append(p,x)}}else{if(R1(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=c1,i=null,c=u1,d=e}return u&&c==="text/plain"&&(d=u,u=void 0),{action:i,method:l.toLowerCase(),encType:c,formData:u,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function hm(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function xV(e,a,l,i){let c=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return l?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${i}`:c.pathname=`${c.pathname}.${i}`:c.pathname==="/"?c.pathname=`_root.${i}`:a&&jn(c.pathname,a)==="/"?c.pathname=`${a.replace(/\/$/,"")}/_root.${i}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${i}`,c}async function vV(e,a){if(e.id in a)return a[e.id];try{let l=await import(e.module);return a[e.id]=l,l}catch(l){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function bV(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 yV(e,a,l){let i=await Promise.all(e.map(async c=>{let u=a.routes[c.route.id];if(u){let d=await vV(u,l);return d.links?d.links():[]}return[]}));return EV(i.flat(1).filter(bV).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Lg(e,a,l,i,c,u){let d=(f,p)=>l[p]?f.route.id!==l[p].route.id:!0,h=(f,p)=>{var g;return l[p].pathname!==f.pathname||((g=l[p].route.path)==null?void 0:g.endsWith("*"))&&l[p].params["*"]!==f.params["*"]};return u==="assets"?a.filter((f,p)=>d(f,p)||h(f,p)):u==="data"?a.filter((f,p)=>{var x;let g=i.routes[f.route.id];if(!g||!g.hasLoader)return!1;if(d(f,p)||h(f,p))return!0;if(f.route.shouldRevalidate){let y=f.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((x=l[0])==null?void 0:x.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function wV(e,a,{includeHydrateFallback:l}={}){return AV(e.map(i=>{let c=a.routes[i.route.id];if(!c)return[];let u=[c.module];return c.clientActionModule&&(u=u.concat(c.clientActionModule)),c.clientLoaderModule&&(u=u.concat(c.clientLoaderModule)),l&&c.hydrateFallbackModule&&(u=u.concat(c.hydrateFallbackModule)),c.imports&&(u=u.concat(c.imports)),u}).flat(1))}function AV(e){return[...new Set(e)]}function jV(e){let a={},l=Object.keys(e).sort();for(let i of l)a[i]=e[i];return a}function EV(e,a){let l=new Set;return new Set(a),e.reduce((i,c)=>{let u=JSON.stringify(jV(c));return l.has(u)||(l.add(u),i.push({key:u,link:c})),i},[])}function yA(){let e=n.useContext(Ur);return hm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function NV(){let e=n.useContext(L1);return hm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var mm=n.createContext(void 0);mm.displayName="FrameworkContext";function wA(){let e=n.useContext(mm);return hm(e,"You must render this element inside a <HydratedRouter> element"),e}function MV(e,a){let l=n.useContext(mm),[i,c]=n.useState(!1),[u,d]=n.useState(!1),{onFocus:h,onBlur:f,onMouseEnter:p,onMouseLeave:g,onTouchStart:x}=a,y=n.useRef(null);n.useEffect(()=>{if(e==="render"&&d(!0),e==="viewport"){let E=j=>{j.forEach(S=>{d(S.isIntersecting)})},A=new IntersectionObserver(E,{threshold:.5});return y.current&&A.observe(y.current),()=>{A.disconnect()}}},[e]),n.useEffect(()=>{if(i){let E=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(E)}}},[i]);let w=()=>{c(!0)},N=()=>{c(!1),d(!1)};return l?e!=="intent"?[u,y,{}]:[u,y,{onFocus:Xs(h,w),onBlur:Xs(f,N),onMouseEnter:Xs(p,w),onMouseLeave:Xs(g,N),onTouchStart:Xs(x,w)}]:[!1,y,{}]}function Xs(e,a){return l=>{e&&e(l),l.defaultPrevented||a(l)}}function SV({page:e,...a}){let{router:l}=yA(),i=n.useMemo(()=>lA(l.routes,e,l.basename),[l.routes,e,l.basename]);return i?n.createElement(CV,{page:e,matches:i,...a}):null}function ZV(e){let{manifest:a,routeModules:l}=wA(),[i,c]=n.useState([]);return n.useEffect(()=>{let u=!1;return yV(e,a,l).then(d=>{u||c(d)}),()=>{u=!0}},[e,a,l]),i}function CV({page:e,matches:a,...l}){let i=en(),{future:c,manifest:u,routeModules:d}=wA(),{basename:h}=yA(),{loaderData:f,matches:p}=NV(),g=n.useMemo(()=>Lg(e,a,p,u,i,"data"),[e,a,p,u,i]),x=n.useMemo(()=>Lg(e,a,p,u,i,"assets"),[e,a,p,u,i]),y=n.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let E=new Set,A=!1;if(a.forEach(S=>{var C;let Z=u.routes[S.route.id];!Z||!Z.hasLoader||(!g.some(H=>H.route.id===S.route.id)&&S.route.id in f&&((C=d[S.route.id])!=null&&C.shouldRevalidate)||Z.hasClientLoader?A=!0:E.add(S.route.id))}),E.size===0)return[];let j=xV(e,h,c.unstable_trailingSlashAwareDataRequests,"data");return A&&E.size>0&&j.searchParams.set("_routes",a.filter(S=>E.has(S.route.id)).map(S=>S.route.id).join(",")),[j.pathname+j.search]},[h,c.unstable_trailingSlashAwareDataRequests,f,i,u,g,a,e,d]),w=n.useMemo(()=>wV(x,u),[x,u]),N=ZV(x);return n.createElement(n.Fragment,null,y.map(E=>n.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...l})),w.map(E=>n.createElement("link",{key:E,rel:"modulepreload",href:E,...l})),N.map(({key:E,link:A})=>n.createElement("link",{key:E,nonce:l.nonce,...A,crossOrigin:A.crossOrigin??l.crossOrigin})))}function HV(...e){return a=>{e.forEach(l=>{typeof l=="function"?l(a):l!=null&&(l.current=a)})}}var VV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{VV&&(window.__reactRouterVersion="7.13.1")}catch{}function _V({basename:e,children:a,unstable_useTransitions:l,window:i}){let c=n.useRef();c.current==null&&(c.current=cH({window:i,v5Compat:!0}));let u=c.current,[d,h]=n.useState({action:u.action,location:u.location}),f=n.useCallback(p=>{l===!1?h(p):n.startTransition(()=>h(p))},[l]);return n.useLayoutEffect(()=>u.listen(f),[u,f]),n.createElement(iV,{basename:e,children:a,location:d.location,navigationType:d.action,navigator:u,unstable_useTransitions:l})}var AA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mt=n.forwardRef(function({onClick:a,discover:l="render",prefetch:i="none",relative:c,reloadDocument:u,replace:d,unstable_mask:h,state:f,target:p,to:g,preventScrollReset:x,viewTransition:y,unstable_defaultShouldRevalidate:w,...N},E){let{basename:A,navigator:j,unstable_useTransitions:S}=n.useContext(ua),Z=typeof g=="string"&&AA.test(g),C=uA(g,A);g=C.to;let H=$H(g,{relative:c}),V=en(),T=null;if(h){let Y=T1(h,[],V.unstable_mask?V.unstable_mask.pathname:"/",!0);A!=="/"&&(Y.pathname=Y.pathname==="/"?A:Xa([A,Y.pathname])),T=j.createHref(Y)}let[k,R,O]=MV(i,N),U=RV(g,{replace:d,unstable_mask:h,state:f,target:p,preventScrollReset:x,relative:c,viewTransition:y,unstable_defaultShouldRevalidate:w,unstable_useTransitions:S});function X(Y){a&&a(Y),Y.defaultPrevented||U(Y)}let K=!(C.isExternal||u),$=n.createElement("a",{...N,...O,href:(K?T:void 0)||C.absoluteURL||H,onClick:K?X:a,ref:HV(E,R),target:p,"data-discover":!Z&&l==="render"?"true":void 0});return k&&!Z?n.createElement(n.Fragment,null,$,n.createElement(SV,{page:H})):$});Mt.displayName="Link";var k0=n.forwardRef(function({"aria-current":a="page",caseSensitive:l=!1,className:i="",end:c=!1,style:u,to:d,viewTransition:h,children:f,...p},g){let x=vl(d,{relative:p.relative}),y=en(),w=n.useContext(L1),{navigator:N,basename:E}=n.useContext(ua),A=w!=null&&qV(x)&&h===!0,j=N.encodeLocation?N.encodeLocation(x).pathname:x.pathname,S=y.pathname,Z=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;l||(S=S.toLowerCase(),Z=Z?Z.toLowerCase():null,j=j.toLowerCase()),Z&&E&&(Z=jn(Z,E)||Z);const C=j!=="/"&&j.endsWith("/")?j.length-1:j.length;let H=S===j||!c&&S.startsWith(j)&&S.charAt(C)==="/",V=Z!=null&&(Z===j||!c&&Z.startsWith(j)&&Z.charAt(j.length)==="/"),T={isActive:H,isPending:V,isTransitioning:A},k=H?a:void 0,R;typeof i=="function"?R=i(T):R=[i,H?"active":null,V?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let O=typeof u=="function"?u(T):u;return n.createElement(Mt,{...p,"aria-current":k,className:R,ref:g,style:O,to:d,viewTransition:h},typeof f=="function"?f(T):f)});k0.displayName="NavLink";var TV=n.forwardRef(({discover:e="render",fetcherKey:a,navigate:l,reloadDocument:i,replace:c,state:u,method:d=c1,action:h,onSubmit:f,relative:p,preventScrollReset:g,viewTransition:x,unstable_defaultShouldRevalidate:y,...w},N)=>{let{unstable_useTransitions:E}=n.useContext(ua),A=OV(),j=FV(h,{relative:p}),S=d.toLowerCase()==="get"?"get":"post",Z=typeof h=="string"&&AA.test(h),C=H=>{if(f&&f(H),H.defaultPrevented)return;H.preventDefault();let V=H.nativeEvent.submitter,T=(V==null?void 0:V.getAttribute("formmethod"))||d,k=()=>A(V||H.currentTarget,{fetcherKey:a,method:T,navigate:l,replace:c,state:u,relative:p,preventScrollReset:g,viewTransition:x,unstable_defaultShouldRevalidate:y});E&&l!==!1?n.startTransition(()=>k()):k()};return n.createElement("form",{ref:N,method:S,action:j,onSubmit:i?f:C,...w,"data-discover":!Z&&e==="render"?"true":void 0})});TV.displayName="Form";function LV(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jA(e){let a=n.useContext(Ur);return tt(a,LV(e)),a}function RV(e,{target:a,replace:l,unstable_mask:i,state:c,preventScrollReset:u,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:f,unstable_useTransitions:p}={}){let g=i0(),x=en(),y=vl(e,{relative:d});return n.useCallback(w=>{if(mV(w,a)){w.preventDefault();let N=l!==void 0?l:ol(x)===ol(y),E=()=>g(e,{replace:N,unstable_mask:i,state:c,preventScrollReset:u,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:f});p?n.startTransition(()=>E()):E()}},[x,g,y,l,i,c,a,e,u,d,h,f,p])}var kV=0,DV=()=>`__${String(++kV)}__`;function OV(){let{router:e}=jA("useSubmit"),{basename:a}=n.useContext(ua),l=aV(),i=e.fetch,c=e.navigate;return n.useCallback(async(u,d={})=>{let{action:h,method:f,encType:p,formData:g,body:x}=gV(u,a);if(d.navigate===!1){let y=d.fetcherKey||DV();await i(y,l,d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:g,body:x,formMethod:d.method||f,formEncType:d.encType||p,flushSync:d.flushSync})}else await c(d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:g,body:x,formMethod:d.method||f,formEncType:d.encType||p,replace:d.replace,state:d.state,fromRouteId:l,flushSync:d.flushSync,viewTransition:d.viewTransition})},[i,c,a,l])}function FV(e,{relative:a}={}){let{basename:l}=n.useContext(ua),i=n.useContext(Za);tt(i,"useFormAction must be used inside a RouteContext");let[c]=i.matches.slice(-1),u={...vl(e||".",{relative:a})},d=en();if(e==null){u.search=d.search;let h=new URLSearchParams(u.search),f=h.getAll("index");if(f.some(g=>g==="")){h.delete("index"),f.filter(x=>x).forEach(x=>h.append("index",x));let g=h.toString();u.search=g?`?${g}`:""}}return(!e||e===".")&&c.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(u.pathname=u.pathname==="/"?l:Xa([l,u.pathname])),ol(u)}function qV(e,{relative:a}={}){let l=n.useContext(hA);tt(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=jA("useViewTransitionState"),c=vl(e,{relative:a});if(!l.isTransitioning)return!1;let u=jn(l.currentLocation.pathname,i)||l.currentLocation.pathname,d=jn(l.nextLocation.pathname,i)||l.nextLocation.pathname;return w1(c.pathname,d)!=null||w1(c.pathname,u)!=null}const EA="";function Nn(){return localStorage.getItem("ohwow-session-token")}function Ah(e){localStorage.setItem("ohwow-session-token",e)}function NA(){localStorage.removeItem("ohwow-session-token")}async function me(e,a={}){const l=Nn(),i=await fetch(`${EA}${e}`,{...a,headers:{"Content-Type":"application/json",...l?{Authorization:`Bearer ${l}`}:{},...a.headers}});if(i.status===401)throw NA(),window.location.href="/ui/login",new Error("Unauthorized");if(!i.ok){const c=await i.json().catch(()=>({error:i.statusText}));throw new Error(c.error||`HTTP ${i.status}`)}return i.json()}async function*MA(e,a,l){const i=Nn(),c=await fetch(`${EA}/api/chat`,{method:"POST",headers:{"Content-Type":"application/json",...i?{Authorization:`Bearer ${i}`}:{}},body:JSON.stringify({message:e,sessionId:a,model:l})});if(!c.ok||!c.body)throw new Error("Chat request failed");const u=c.body.getReader(),d=new TextDecoder;let h="";for(;;){const{done:f,value:p}=await u.read();if(f)break;h+=d.decode(p,{stream:!0});const g=h.split(`
|
|
61
|
+
`);h=g.pop()||"";for(const x of g)if(x.startsWith("data: ")){const y=x.slice(6).trim();if(y==="[DONE]")return;try{yield JSON.parse(y)}catch{}}}}class SA extends n.Component{constructor(a){super(a),this.state={hasError:!1,error:null}}static getDerivedStateFromError(a){return{hasError:!0,error:a}}componentDidCatch(a,l){console.error("[ErrorBoundary]",a,l.componentStack)}render(){var a;return this.state.hasError?this.props.fallback||s.jsx("div",{className:"flex items-center justify-center h-full p-8",children:s.jsxs("div",{className:"text-center max-w-sm",children:[s.jsx("p",{className:"text-sm font-medium text-critical mb-2",children:"Something went wrong"}),s.jsx("p",{className:"text-xs text-neutral-400 mb-4",children:(a=this.state.error)==null?void 0:a.message}),s.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 fm=n.createContext({});function pm(e){const a=n.useRef(null);return a.current===null&&(a.current=e()),a.current}const ZA=typeof window<"u",CA=ZA?n.useLayoutEffect:n.useEffect,k1=n.createContext(null);function gm(e,a){e.indexOf(a)===-1&&e.push(a)}function A1(e,a){const l=e.indexOf(a);l>-1&&e.splice(l,1)}const Ja=(e,a,l)=>l>a?a:l<e?e:l;let xm=()=>{};const En={},HA=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function VA(e){return typeof e=="object"&&e!==null}const _A=e=>/^0[^.\s]+$/u.test(e);function TA(e){let a;return()=>(a===void 0&&(a=e()),a)}const Ma=e=>e,zV=(e,a)=>l=>a(e(l)),bl=(...e)=>e.reduce(zV),cl=(e,a,l)=>{const i=a-e;return i===0?1:(l-e)/i};class vm{constructor(){this.subscriptions=[]}add(a){return gm(this.subscriptions,a),()=>A1(this.subscriptions,a)}notify(a,l,i){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](a,l,i);else for(let u=0;u<c;u++){const d=this.subscriptions[u];d&&d(a,l,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ka=e=>e*1e3,Na=e=>e/1e3;function LA(e,a){return a?e*(1e3/a):0}const RA=(e,a,l)=>(((1-3*l+3*a)*e+(3*l-6*a))*e+3*a)*e,BV=1e-7,$V=12;function IV(e,a,l,i,c){let u,d,h=0;do d=a+(l-a)/2,u=RA(d,i,c)-e,u>0?l=d:a=d;while(Math.abs(u)>BV&&++h<$V);return d}function yl(e,a,l,i){if(e===a&&l===i)return Ma;const c=u=>IV(u,0,1,e,l);return u=>u===0||u===1?u:RA(c(u),a,i)}const kA=e=>a=>a<=.5?e(2*a)/2:(2-e(2*(1-a)))/2,DA=e=>a=>1-e(1-a),OA=yl(.33,1.53,.69,.99),bm=DA(OA),FA=kA(bm),qA=e=>(e*=2)<1?.5*bm(e):.5*(2-Math.pow(2,-10*(e-1))),ym=e=>1-Math.sin(Math.acos(e)),zA=DA(ym),BA=kA(ym),UV=yl(.42,0,1,1),PV=yl(0,0,.58,1),$A=yl(.42,0,.58,1),GV=e=>Array.isArray(e)&&typeof e[0]!="number",IA=e=>Array.isArray(e)&&typeof e[0]=="number",YV={linear:Ma,easeIn:UV,easeInOut:$A,easeOut:PV,circIn:ym,circInOut:BA,circOut:zA,backIn:bm,backInOut:FA,backOut:OA,anticipate:qA},KV=e=>typeof e=="string",Rg=e=>{if(IA(e)){xm(e.length===4);const[a,l,i,c]=e;return yl(a,l,i,c)}else if(KV(e))return YV[e];return e},t1=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function XV(e,a){let l=new Set,i=new Set,c=!1,u=!1;const d=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function f(g){d.has(g)&&(p.schedule(g),e()),g(h)}const p={schedule:(g,x=!1,y=!1)=>{const N=y&&c?l:i;return x&&d.add(g),N.has(g)||N.add(g),g},cancel:g=>{i.delete(g),d.delete(g)},process:g=>{if(h=g,c){u=!0;return}c=!0,[l,i]=[i,l],l.forEach(f),l.clear(),c=!1,u&&(u=!1,p.process(g))}};return p}const QV=40;function UA(e,a){let l=!1,i=!0;const c={delta:0,timestamp:0,isProcessing:!1},u=()=>l=!0,d=t1.reduce((Z,C)=>(Z[C]=XV(u),Z),{}),{setup:h,read:f,resolveKeyframes:p,preUpdate:g,update:x,preRender:y,render:w,postRender:N}=d,E=()=>{const Z=En.useManualTiming?c.timestamp:performance.now();l=!1,En.useManualTiming||(c.delta=i?1e3/60:Math.max(Math.min(Z-c.timestamp,QV),1)),c.timestamp=Z,c.isProcessing=!0,h.process(c),f.process(c),p.process(c),g.process(c),x.process(c),y.process(c),w.process(c),N.process(c),c.isProcessing=!1,l&&a&&(i=!1,e(E))},A=()=>{l=!0,i=!0,c.isProcessing||e(E)};return{schedule:t1.reduce((Z,C)=>{const H=d[C];return Z[C]=(V,T=!1,k=!1)=>(l||A(),H.schedule(V,T,k)),Z},{}),cancel:Z=>{for(let C=0;C<t1.length;C++)d[t1[C]].cancel(Z)},state:c,steps:d}}const{schedule:Xe,cancel:l0,state:Ot,steps:Z2}=UA(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ma,!0);let d1;function JV(){d1=void 0}const Bt={now:()=>(d1===void 0&&Bt.set(Ot.isProcessing||En.useManualTiming?Ot.timestamp:performance.now()),d1),set:e=>{d1=e,queueMicrotask(JV)}},PA=e=>a=>typeof a=="string"&&a.startsWith(e),GA=PA("--"),WV=PA("var(--"),wm=e=>WV(e)?e_.test(e.split("/*")[0].trim()):!1,e_=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function kg(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Gr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ul={...Gr,transform:e=>Ja(0,1,e)},a1={...Gr,default:1},nl=e=>Math.round(e*1e5)/1e5,Am=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function t_(e){return e==null}const a_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,jm=(e,a)=>l=>!!(typeof l=="string"&&a_.test(l)&&l.startsWith(e)||a&&!t_(l)&&Object.prototype.hasOwnProperty.call(l,a)),YA=(e,a,l)=>i=>{if(typeof i!="string")return i;const[c,u,d,h]=i.match(Am);return{[e]:parseFloat(c),[a]:parseFloat(u),[l]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},n_=e=>Ja(0,255,e),C2={...Gr,transform:e=>Math.round(n_(e))},V0={test:jm("rgb","red"),parse:YA("red","green","blue"),transform:({red:e,green:a,blue:l,alpha:i=1})=>"rgba("+C2.transform(e)+", "+C2.transform(a)+", "+C2.transform(l)+", "+nl(ul.transform(i))+")"};function r_(e){let a="",l="",i="",c="";return e.length>5?(a=e.substring(1,3),l=e.substring(3,5),i=e.substring(5,7),c=e.substring(7,9)):(a=e.substring(1,2),l=e.substring(2,3),i=e.substring(3,4),c=e.substring(4,5),a+=a,l+=l,i+=i,c+=c),{red:parseInt(a,16),green:parseInt(l,16),blue:parseInt(i,16),alpha:c?parseInt(c,16)/255:1}}const jh={test:jm("#"),parse:r_,transform:V0.transform},wl=e=>({test:a=>typeof a=="string"&&a.endsWith(e)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${e}`}),a0=wl("deg"),Qa=wl("%"),ge=wl("px"),s_=wl("vh"),l_=wl("vw"),Dg={...Qa,parse:e=>Qa.parse(e)/100,transform:e=>Qa.transform(e*100)},_r={test:jm("hsl","hue"),parse:YA("hue","saturation","lightness"),transform:({hue:e,saturation:a,lightness:l,alpha:i=1})=>"hsla("+Math.round(e)+", "+Qa.transform(nl(a))+", "+Qa.transform(nl(l))+", "+nl(ul.transform(i))+")"},vt={test:e=>V0.test(e)||jh.test(e)||_r.test(e),parse:e=>V0.test(e)?V0.parse(e):_r.test(e)?_r.parse(e):jh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?V0.transform(e):_r.transform(e),getAnimatableNone:e=>{const a=vt.parse(e);return a.alpha=0,vt.transform(a)}},i_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function o_(e){var a,l;return isNaN(e)&&typeof e=="string"&&(((a=e.match(Am))==null?void 0:a.length)||0)+(((l=e.match(i_))==null?void 0:l.length)||0)>0}const KA="number",XA="color",c_="var",u_="var(",Og="${}",d_=/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 dl(e){const a=e.toString(),l=[],i={color:[],number:[],var:[]},c=[];let u=0;const h=a.replace(d_,f=>(vt.test(f)?(i.color.push(u),c.push(XA),l.push(vt.parse(f))):f.startsWith(u_)?(i.var.push(u),c.push(c_),l.push(f)):(i.number.push(u),c.push(KA),l.push(parseFloat(f))),++u,Og)).split(Og);return{values:l,split:h,indexes:i,types:c}}function QA(e){return dl(e).values}function JA(e){const{split:a,types:l}=dl(e),i=a.length;return c=>{let u="";for(let d=0;d<i;d++)if(u+=a[d],c[d]!==void 0){const h=l[d];h===KA?u+=nl(c[d]):h===XA?u+=vt.transform(c[d]):u+=c[d]}return u}}const h_=e=>typeof e=="number"?0:vt.test(e)?vt.getAnimatableNone(e):e;function m_(e){const a=QA(e);return JA(e)(a.map(h_))}const Da={test:o_,parse:QA,createTransformer:JA,getAnimatableNone:m_};function H2(e,a,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?e+(a-e)*6*l:l<1/2?a:l<2/3?e+(a-e)*(2/3-l)*6:e}function f_({hue:e,saturation:a,lightness:l,alpha:i}){e/=360,a/=100,l/=100;let c=0,u=0,d=0;if(!a)c=u=d=l;else{const h=l<.5?l*(1+a):l+a-l*a,f=2*l-h;c=H2(f,h,e+1/3),u=H2(f,h,e),d=H2(f,h,e-1/3)}return{red:Math.round(c*255),green:Math.round(u*255),blue:Math.round(d*255),alpha:i}}function j1(e,a){return l=>l>0?a:e}const nt=(e,a,l)=>e+(a-e)*l,V2=(e,a,l)=>{const i=e*e,c=l*(a*a-i)+i;return c<0?0:Math.sqrt(c)},p_=[jh,V0,_r],g_=e=>p_.find(a=>a.test(e));function Fg(e){const a=g_(e);if(!a)return!1;let l=a.parse(e);return a===_r&&(l=f_(l)),l}const qg=(e,a)=>{const l=Fg(e),i=Fg(a);if(!l||!i)return j1(e,a);const c={...l};return u=>(c.red=V2(l.red,i.red,u),c.green=V2(l.green,i.green,u),c.blue=V2(l.blue,i.blue,u),c.alpha=nt(l.alpha,i.alpha,u),V0.transform(c))},Eh=new Set(["none","hidden"]);function x_(e,a){return Eh.has(e)?l=>l<=0?e:a:l=>l>=1?a:e}function v_(e,a){return l=>nt(e,a,l)}function Em(e){return typeof e=="number"?v_:typeof e=="string"?wm(e)?j1:vt.test(e)?qg:w_:Array.isArray(e)?WA:typeof e=="object"?vt.test(e)?qg:b_:j1}function WA(e,a){const l=[...e],i=l.length,c=e.map((u,d)=>Em(u)(u,a[d]));return u=>{for(let d=0;d<i;d++)l[d]=c[d](u);return l}}function b_(e,a){const l={...e,...a},i={};for(const c in l)e[c]!==void 0&&a[c]!==void 0&&(i[c]=Em(e[c])(e[c],a[c]));return c=>{for(const u in i)l[u]=i[u](c);return l}}function y_(e,a){const l=[],i={color:0,var:0,number:0};for(let c=0;c<a.values.length;c++){const u=a.types[c],d=e.indexes[u][i[u]],h=e.values[d]??0;l[c]=h,i[u]++}return l}const w_=(e,a)=>{const l=Da.createTransformer(a),i=dl(e),c=dl(a);return i.indexes.var.length===c.indexes.var.length&&i.indexes.color.length===c.indexes.color.length&&i.indexes.number.length>=c.indexes.number.length?Eh.has(e)&&!c.values.length||Eh.has(a)&&!i.values.length?x_(e,a):bl(WA(y_(i,c),c.values),l):j1(e,a)};function ej(e,a,l){return typeof e=="number"&&typeof a=="number"&&typeof l=="number"?nt(e,a,l):Em(e)(e,a)}const A_=e=>{const a=({timestamp:l})=>e(l);return{start:(l=!0)=>Xe.update(a,l),stop:()=>l0(a),now:()=>Ot.isProcessing?Ot.timestamp:Bt.now()}},tj=(e,a,l=10)=>{let i="";const c=Math.max(Math.round(a/l),2);for(let u=0;u<c;u++)i+=Math.round(e(u/(c-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},E1=2e4;function Nm(e){let a=0;const l=50;let i=e.next(a);for(;!i.done&&a<E1;)a+=l,i=e.next(a);return a>=E1?1/0:a}function j_(e,a=100,l){const i=l({...e,keyframes:[0,a]}),c=Math.min(Nm(i),E1);return{type:"keyframes",ease:u=>i.next(c*u).value/a,duration:Na(c)}}const E_=5;function aj(e,a,l){const i=Math.max(a-E_,0);return LA(l-e(i),a-i)}const lt={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},_2=.001;function N_({duration:e=lt.duration,bounce:a=lt.bounce,velocity:l=lt.velocity,mass:i=lt.mass}){let c,u,d=1-a;d=Ja(lt.minDamping,lt.maxDamping,d),e=Ja(lt.minDuration,lt.maxDuration,Na(e)),d<1?(c=p=>{const g=p*d,x=g*e,y=g-l,w=Nh(p,d),N=Math.exp(-x);return _2-y/w*N},u=p=>{const x=p*d*e,y=x*l+l,w=Math.pow(d,2)*Math.pow(p,2)*e,N=Math.exp(-x),E=Nh(Math.pow(p,2),d);return(-c(p)+_2>0?-1:1)*((y-w)*N)/E}):(c=p=>{const g=Math.exp(-p*e),x=(p-l)*e+1;return-_2+g*x},u=p=>{const g=Math.exp(-p*e),x=(l-p)*(e*e);return g*x});const h=5/e,f=S_(c,u,h);if(e=ka(e),isNaN(f))return{stiffness:lt.stiffness,damping:lt.damping,duration:e};{const p=Math.pow(f,2)*i;return{stiffness:p,damping:d*2*Math.sqrt(i*p),duration:e}}}const M_=12;function S_(e,a,l){let i=l;for(let c=1;c<M_;c++)i=i-e(i)/a(i);return i}function Nh(e,a){return e*Math.sqrt(1-a*a)}const Z_=["duration","bounce"],C_=["stiffness","damping","mass"];function zg(e,a){return a.some(l=>e[l]!==void 0)}function H_(e){let a={velocity:lt.velocity,stiffness:lt.stiffness,damping:lt.damping,mass:lt.mass,isResolvedFromDuration:!1,...e};if(!zg(e,C_)&&zg(e,Z_))if(a.velocity=0,e.visualDuration){const l=e.visualDuration,i=2*Math.PI/(l*1.2),c=i*i,u=2*Ja(.05,1,1-(e.bounce||0))*Math.sqrt(c);a={...a,mass:lt.mass,stiffness:c,damping:u}}else{const l=N_({...e,velocity:0});a={...a,...l,mass:lt.mass},a.isResolvedFromDuration=!0}return a}function N1(e=lt.visualDuration,a=lt.bounce){const l=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:a}:e;let{restSpeed:i,restDelta:c}=l;const u=l.keyframes[0],d=l.keyframes[l.keyframes.length-1],h={done:!1,value:u},{stiffness:f,damping:p,mass:g,duration:x,velocity:y,isResolvedFromDuration:w}=H_({...l,velocity:-Na(l.velocity||0)}),N=y||0,E=p/(2*Math.sqrt(f*g)),A=d-u,j=Na(Math.sqrt(f/g)),S=Math.abs(A)<5;i||(i=S?lt.restSpeed.granular:lt.restSpeed.default),c||(c=S?lt.restDelta.granular:lt.restDelta.default);let Z;if(E<1){const H=Nh(j,E);Z=V=>{const T=Math.exp(-E*j*V);return d-T*((N+E*j*A)/H*Math.sin(H*V)+A*Math.cos(H*V))}}else if(E===1)Z=H=>d-Math.exp(-j*H)*(A+(N+j*A)*H);else{const H=j*Math.sqrt(E*E-1);Z=V=>{const T=Math.exp(-E*j*V),k=Math.min(H*V,300);return d-T*((N+E*j*A)*Math.sinh(k)+H*A*Math.cosh(k))/H}}const C={calculatedDuration:w&&x||null,next:H=>{const V=Z(H);if(w)h.done=H>=x;else{let T=H===0?N:0;E<1&&(T=H===0?ka(N):aj(Z,H,V));const k=Math.abs(T)<=i,R=Math.abs(d-V)<=c;h.done=k&&R}return h.value=h.done?d:V,h},toString:()=>{const H=Math.min(Nm(C),E1),V=tj(T=>C.next(H*T).value,H,30);return H+"ms "+V},toTransition:()=>{}};return C}N1.applyToOptions=e=>{const a=j_(e,100,N1);return e.ease=a.ease,e.duration=ka(a.duration),e.type="keyframes",e};function Mh({keyframes:e,velocity:a=0,power:l=.8,timeConstant:i=325,bounceDamping:c=10,bounceStiffness:u=500,modifyTarget:d,min:h,max:f,restDelta:p=.5,restSpeed:g}){const x=e[0],y={done:!1,value:x},w=k=>h!==void 0&&k<h||f!==void 0&&k>f,N=k=>h===void 0?f:f===void 0||Math.abs(h-k)<Math.abs(f-k)?h:f;let E=l*a;const A=x+E,j=d===void 0?A:d(A);j!==A&&(E=j-x);const S=k=>-E*Math.exp(-k/i),Z=k=>j+S(k),C=k=>{const R=S(k),O=Z(k);y.done=Math.abs(R)<=p,y.value=y.done?j:O};let H,V;const T=k=>{w(y.value)&&(H=k,V=N1({keyframes:[y.value,N(y.value)],velocity:aj(Z,k,y.value),damping:c,stiffness:u,restDelta:p,restSpeed:g}))};return T(0),{calculatedDuration:null,next:k=>{let R=!1;return!V&&H===void 0&&(R=!0,C(k),T(k)),H!==void 0&&k>=H?V.next(k-H):(!R&&C(k),y)}}}function V_(e,a,l){const i=[],c=l||En.mix||ej,u=e.length-1;for(let d=0;d<u;d++){let h=c(e[d],e[d+1]);if(a){const f=Array.isArray(a)?a[d]||Ma:a;h=bl(f,h)}i.push(h)}return i}function __(e,a,{clamp:l=!0,ease:i,mixer:c}={}){const u=e.length;if(xm(u===a.length),u===1)return()=>a[0];if(u===2&&a[0]===a[1])return()=>a[1];const d=e[0]===e[1];e[0]>e[u-1]&&(e=[...e].reverse(),a=[...a].reverse());const h=V_(a,i,c),f=h.length,p=g=>{if(d&&g<e[0])return a[0];let x=0;if(f>1)for(;x<e.length-2&&!(g<e[x+1]);x++);const y=cl(e[x],e[x+1],g);return h[x](y)};return l?g=>p(Ja(e[0],e[u-1],g)):p}function T_(e,a){const l=e[e.length-1];for(let i=1;i<=a;i++){const c=cl(0,a,i);e.push(nt(l,1,c))}}function L_(e){const a=[0];return T_(a,e.length-1),a}function R_(e,a){return e.map(l=>l*a)}function k_(e,a){return e.map(()=>a||$A).splice(0,e.length-1)}function rl({duration:e=300,keyframes:a,times:l,ease:i="easeInOut"}){const c=GV(i)?i.map(Rg):Rg(i),u={done:!1,value:a[0]},d=R_(l&&l.length===a.length?l:L_(a),e),h=__(d,a,{ease:Array.isArray(c)?c:k_(a,c)});return{calculatedDuration:e,next:f=>(u.value=h(f),u.done=f>=e,u)}}const D_=e=>e!==null;function Mm(e,{repeat:a,repeatType:l="loop"},i,c=1){const u=e.filter(D_),h=c<0||a&&l!=="loop"&&a%2===1?0:u.length-1;return!h||i===void 0?u[h]:i}const O_={decay:Mh,inertia:Mh,tween:rl,keyframes:rl,spring:N1};function nj(e){typeof e.type=="string"&&(e.type=O_[e.type])}class Sm{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,l){return this.finished.then(a,l)}}const F_=e=>e/100;class Zm extends Sm{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var i,c;const{motionValue:l}=this.options;l&&l.updatedAt!==Bt.now()&&this.tick(Bt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(c=(i=this.options).onStop)==null||c.call(i))},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;nj(a);const{type:l=rl,repeat:i=0,repeatDelay:c=0,repeatType:u,velocity:d=0}=a;let{keyframes:h}=a;const f=l||rl;f!==rl&&typeof h[0]!="number"&&(this.mixKeyframes=bl(F_,ej(h[0],h[1])),h=[0,100]);const p=f({...a,keyframes:h});u==="mirror"&&(this.mirroredGenerator=f({...a,keyframes:[...h].reverse(),velocity:-d})),p.calculatedDuration===null&&(p.calculatedDuration=Nm(p));const{calculatedDuration:g}=p;this.calculatedDuration=g,this.resolvedDuration=g+c,this.totalDuration=this.resolvedDuration*(i+1)-c,this.generator=p}updateTime(a){const l=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(a,l=!1){const{generator:i,totalDuration:c,mixKeyframes:u,mirroredGenerator:d,resolvedDuration:h,calculatedDuration:f}=this;if(this.startTime===null)return i.next(0);const{delay:p=0,keyframes:g,repeat:x,repeatType:y,repeatDelay:w,type:N,onUpdate:E,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-c/this.speed,this.startTime)),l?this.currentTime=a:this.updateTime(a);const j=this.currentTime-p*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?j<0:j>c;this.currentTime=Math.max(j,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let Z=this.currentTime,C=i;if(x){const k=Math.min(this.currentTime,c)/h;let R=Math.floor(k),O=k%1;!O&&k>=1&&(O=1),O===1&&R--,R=Math.min(R,x+1),!!(R%2)&&(y==="reverse"?(O=1-O,w&&(O-=w/h)):y==="mirror"&&(C=d)),Z=Ja(0,1,O)*h}const H=S?{done:!1,value:g[0]}:C.next(Z);u&&(H.value=u(H.value));let{done:V}=H;!S&&f!==null&&(V=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return T&&N!==Mh&&(H.value=Mm(g,this.options,A,this.speed)),E&&E(H.value),T&&this.finish(),H}then(a,l){return this.finished.then(a,l)}get duration(){return Na(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Na(a)}get time(){return Na(this.currentTime)}set time(a){var l;a=ka(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),(l=this.driver)==null||l.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(Bt.now());const l=this.playbackSpeed!==a;this.playbackSpeed=a,l&&(this.time=Na(this.currentTime))}play(){var c,u;if(this.isStopped)return;const{driver:a=A_,startTime:l}=this.options;this.driver||(this.driver=a(d=>this.tick(d))),(u=(c=this.options).onPlay)==null||u.call(c);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=l??i),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(Bt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var a,l;this.notifyFinished(),this.teardown(),this.state="finished",(l=(a=this.options).onComplete)==null||l.call(a)}cancel(){var a,l;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(l=(a=this.options).onCancel)==null||l.call(a)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){var l;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(l=this.driver)==null||l.stop(),a.observe(this)}}function q_(e){for(let a=1;a<e.length;a++)e[a]??(e[a]=e[a-1])}const _0=e=>e*180/Math.PI,Sh=e=>{const a=_0(Math.atan2(e[1],e[0]));return Zh(a)},z_={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Sh,rotateZ:Sh,skewX:e=>_0(Math.atan(e[1])),skewY:e=>_0(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Zh=e=>(e=e%360,e<0&&(e+=360),e),Bg=Sh,$g=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ig=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),B_={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:$g,scaleY:Ig,scale:e=>($g(e)+Ig(e))/2,rotateX:e=>Zh(_0(Math.atan2(e[6],e[5]))),rotateY:e=>Zh(_0(Math.atan2(-e[2],e[0]))),rotateZ:Bg,rotate:Bg,skewX:e=>_0(Math.atan(e[4])),skewY:e=>_0(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ch(e){return e.includes("scale")?1:0}function Hh(e,a){if(!e||e==="none")return Ch(a);const l=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,c;if(l)i=B_,c=l;else{const h=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=z_,c=h}if(!c)return Ch(a);const u=i[a],d=c[1].split(",").map(I_);return typeof u=="function"?u(d):d[u]}const $_=(e,a)=>{const{transform:l="none"}=getComputedStyle(e);return Hh(l,a)};function I_(e){return parseFloat(e.trim())}const Yr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Kr=new Set(Yr),Ug=e=>e===Gr||e===ge,U_=new Set(["x","y","z"]),P_=Yr.filter(e=>!U_.has(e));function G_(e){const a=[];return P_.forEach(l=>{const i=e.getValue(l);i!==void 0&&(a.push([l,i.get()]),i.set(l.startsWith("scale")?1:0))}),a}const r0={width:({x:e},{paddingLeft:a="0",paddingRight:l="0"})=>e.max-e.min-parseFloat(a)-parseFloat(l),height:({y:e},{paddingTop:a="0",paddingBottom:l="0"})=>e.max-e.min-parseFloat(a)-parseFloat(l),top:(e,{top:a})=>parseFloat(a),left:(e,{left:a})=>parseFloat(a),bottom:({y:e},{top:a})=>parseFloat(a)+(e.max-e.min),right:({x:e},{left:a})=>parseFloat(a)+(e.max-e.min),x:(e,{transform:a})=>Hh(a,"x"),y:(e,{transform:a})=>Hh(a,"y")};r0.translateX=r0.x;r0.translateY=r0.y;const D0=new Set;let Vh=!1,_h=!1,Th=!1;function rj(){if(_h){const e=Array.from(D0).filter(i=>i.needsMeasurement),a=new Set(e.map(i=>i.element)),l=new Map;a.forEach(i=>{const c=G_(i);c.length&&(l.set(i,c),i.render())}),e.forEach(i=>i.measureInitialState()),a.forEach(i=>{i.render();const c=l.get(i);c&&c.forEach(([u,d])=>{var h;(h=i.getValue(u))==null||h.set(d)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}_h=!1,Vh=!1,D0.forEach(e=>e.complete(Th)),D0.clear()}function sj(){D0.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(_h=!0)})}function Y_(){Th=!0,sj(),rj(),Th=!1}class Cm{constructor(a,l,i,c,u,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=l,this.name=i,this.motionValue=c,this.element=u,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(D0.add(this),Vh||(Vh=!0,Xe.read(sj),Xe.resolveKeyframes(rj))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:l,element:i,motionValue:c}=this;if(a[0]===null){const u=c==null?void 0:c.get(),d=a[a.length-1];if(u!==void 0)a[0]=u;else if(i&&l){const h=i.readValue(l,d);h!=null&&(a[0]=h)}a[0]===void 0&&(a[0]=d),c&&u===void 0&&c.set(a[0])}q_(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),D0.delete(this)}cancel(){this.state==="scheduled"&&(D0.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const K_=e=>e.startsWith("--");function X_(e,a,l){K_(a)?e.style.setProperty(a,l):e.style[a]=l}const Q_={};function lj(e,a){const l=TA(e);return()=>Q_[a]??l()}const J_=lj(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),ij=lj(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Js=([e,a,l,i])=>`cubic-bezier(${e}, ${a}, ${l}, ${i})`,Pg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Js([0,.65,.55,1]),circOut:Js([.55,0,1,.45]),backIn:Js([.31,.01,.66,-.59]),backOut:Js([.33,1.53,.69,.99])};function oj(e,a){if(e)return typeof e=="function"?ij()?tj(e,a):"ease-out":IA(e)?Js(e):Array.isArray(e)?e.map(l=>oj(l,a)||Pg.easeOut):Pg[e]}function W_(e,a,l,{delay:i=0,duration:c=300,repeat:u=0,repeatType:d="loop",ease:h="easeOut",times:f}={},p=void 0){const g={[a]:l};f&&(g.offset=f);const x=oj(h,c);Array.isArray(x)&&(g.easing=x);const y={delay:i,duration:c,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:u+1,direction:d==="reverse"?"alternate":"normal"};return p&&(y.pseudoElement=p),e.animate(g,y)}function cj(e){return typeof e=="function"&&"applyToOptions"in e}function eT({type:e,...a}){return cj(e)&&ij()?e.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class uj extends Sm{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:l,name:i,keyframes:c,pseudoElement:u,allowFlatten:d=!1,finalKeyframe:h,onComplete:f}=a;this.isPseudoElement=!!u,this.allowFlatten=d,this.options=a,xm(typeof a.type!="string");const p=eT(a);this.animation=W_(l,i,c,p,u),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const g=Mm(c,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(g):X_(l,i,g),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var a,l;(l=(a=this.animation).finish)==null||l.call(a)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var l,i,c;const a=(l=this.options)==null?void 0:l.element;!this.isPseudoElement&&(a!=null&&a.isConnected)&&((c=(i=this.animation).commitStyles)==null||c.call(i))}get duration(){var l,i;const a=((i=(l=this.animation.effect)==null?void 0:l.getComputedTiming)==null?void 0:i.call(l).duration)||0;return Na(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Na(a)}get time(){return Na(Number(this.animation.currentTime)||0)}set time(a){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ka(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,observe:l}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,a&&J_()?(this.animation.timeline=a,Ma):l(this)}}const dj={anticipate:qA,backInOut:FA,circInOut:BA};function tT(e){return e in dj}function aT(e){typeof e.ease=="string"&&tT(e.ease)&&(e.ease=dj[e.ease])}const T2=10;class nT extends uj{constructor(a){aT(a),nj(a),super(a),a.startTime!==void 0&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:l,onUpdate:i,onComplete:c,element:u,...d}=this.options;if(!l)return;if(a!==void 0){l.set(a);return}const h=new Zm({...d,autoplay:!1}),f=Math.max(T2,Bt.now()-this.startTime),p=Ja(0,T2,f-T2);l.setWithVelocity(h.sample(Math.max(0,f-p)).value,h.sample(f).value,p),h.stop()}}const Gg=(e,a)=>a==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Da.test(e)||e==="0")&&!e.startsWith("url("));function rT(e){const a=e[0];if(e.length===1)return!0;for(let l=0;l<e.length;l++)if(e[l]!==a)return!0}function sT(e,a,l,i){const c=e[0];if(c===null)return!1;if(a==="display"||a==="visibility")return!0;const u=e[e.length-1],d=Gg(c,a),h=Gg(u,a);return!d||!h?!1:rT(e)||(l==="spring"||cj(l))&&i}function Lh(e){e.duration=0,e.type="keyframes"}const lT=new Set(["opacity","clipPath","filter","transform"]),iT=TA(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function oT(e){var g;const{motionValue:a,name:l,repeatDelay:i,repeatType:c,damping:u,type:d}=e;if(!(((g=a==null?void 0:a.owner)==null?void 0:g.current)instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:p}=a.owner.getProps();return iT()&&l&&lT.has(l)&&(l!=="transform"||!p)&&!f&&!i&&c!=="mirror"&&u!==0&&d!=="inertia"}const cT=40;class uT extends Sm{constructor({autoplay:a=!0,delay:l=0,type:i="keyframes",repeat:c=0,repeatDelay:u=0,repeatType:d="loop",keyframes:h,name:f,motionValue:p,element:g,...x}){var N;super(),this.stop=()=>{var E,A;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=Bt.now();const y={autoplay:a,delay:l,type:i,repeat:c,repeatDelay:u,repeatType:d,name:f,motionValue:p,element:g,...x},w=(g==null?void 0:g.KeyframeResolver)||Cm;this.keyframeResolver=new w(h,(E,A,j)=>this.onKeyframesResolved(E,A,y,!j),f,p,g),(N=this.keyframeResolver)==null||N.scheduleResolve()}onKeyframesResolved(a,l,i,c){var A,j;this.keyframeResolver=void 0;const{name:u,type:d,velocity:h,delay:f,isHandoff:p,onUpdate:g}=i;this.resolvedAt=Bt.now(),sT(a,u,d,h)||((En.instantAnimations||!f)&&(g==null||g(Mm(a,i,l))),a[0]=a[a.length-1],Lh(i),i.repeat=0);const y={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>cT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...i,keyframes:a},w=!p&&oT(y),N=(j=(A=y.motionValue)==null?void 0:A.owner)==null?void 0:j.current,E=w?new nT({...y,element:N}):new Zm(y);E.finished.then(()=>{this.notifyFinished()}).catch(Ma),this.pendingTimeline&&(this.stopTimeline=E.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=E}get finished(){return this._animation?this.animation.finished:this._finished}then(a,l){return this.finished.finally(a).then(()=>{})}get animation(){var a;return this._animation||((a=this.keyframeResolver)==null||a.resume(),Y_()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var a;this._animation&&this.animation.cancel(),(a=this.keyframeResolver)==null||a.cancel()}}function hj(e,a,l,i=0,c=1){const u=Array.from(e).sort((p,g)=>p.sortNodePosition(g)).indexOf(a),d=e.size,h=(d-1)*i;return typeof l=="function"?l(u,d):c===1?u*i:h-u*i}const dT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function hT(e){const a=dT.exec(e);if(!a)return[,];const[,l,i,c]=a;return[`--${l??i}`,c]}function mj(e,a,l=1){const[i,c]=hT(e);if(!i)return;const u=window.getComputedStyle(a).getPropertyValue(i);if(u){const d=u.trim();return HA(d)?parseFloat(d):d}return wm(c)?mj(c,a,l+1):c}const mT={type:"spring",stiffness:500,damping:25,restSpeed:10},fT=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),pT={type:"keyframes",duration:.8},gT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xT=(e,{keyframes:a})=>a.length>2?pT:Kr.has(e)?e.startsWith("scale")?fT(a[1]):mT:gT,vT=e=>e!==null;function bT(e,{repeat:a,repeatType:l="loop"},i){const c=e.filter(vT),u=a&&l!=="loop"&&a%2===1?0:c.length-1;return c[u]}function fj(e,a){if(e!=null&&e.inherit&&a){const{inherit:l,...i}=e;return{...a,...i}}return e}function Hm(e,a){const l=(e==null?void 0:e[a])??(e==null?void 0:e.default)??e;return l!==e?fj(l,e):l}function yT({when:e,delay:a,delayChildren:l,staggerChildren:i,staggerDirection:c,repeat:u,repeatType:d,repeatDelay:h,from:f,elapsed:p,...g}){return!!Object.keys(g).length}const Vm=(e,a,l,i={},c,u)=>d=>{const h=Hm(i,e)||{},f=h.delay||i.delay||0;let{elapsed:p=0}=i;p=p-ka(f);const g={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-p,onUpdate:y=>{a.set(y),h.onUpdate&&h.onUpdate(y)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:e,motionValue:a,element:u?void 0:c};yT(h)||Object.assign(g,xT(e,g)),g.duration&&(g.duration=ka(g.duration)),g.repeatDelay&&(g.repeatDelay=ka(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let x=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(Lh(g),g.delay===0&&(x=!0)),(En.instantAnimations||En.skipAnimations||c!=null&&c.shouldSkipAnimations)&&(x=!0,Lh(g),g.delay=0),g.allowFlatten=!h.type&&!h.ease,x&&!u&&a.get()!==void 0){const y=bT(g.keyframes,h);if(y!==void 0){Xe.update(()=>{g.onUpdate(y),g.onComplete()});return}}return h.isSync?new Zm(g):new uT(g)};function Yg(e){const a=[{},{}];return e==null||e.values.forEach((l,i)=>{a[0][i]=l.get(),a[1][i]=l.getVelocity()}),a}function _m(e,a,l,i){if(typeof a=="function"){const[c,u]=Yg(i);a=a(l!==void 0?l:e.custom,c,u)}if(typeof a=="string"&&(a=e.variants&&e.variants[a]),typeof a=="function"){const[c,u]=Yg(i);a=a(l!==void 0?l:e.custom,c,u)}return a}function Or(e,a,l){const i=e.getProps();return _m(i,a,l!==void 0?l:i.custom,e)}const pj=new Set(["width","height","top","left","right","bottom",...Yr]),Kg=30,wT=e=>!isNaN(parseFloat(e));class AT{constructor(a,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var u;const c=Bt.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&((u=this.events.change)==null||u.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=l.owner}setCurrent(a){this.current=a,this.updatedAt=Bt.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=wT(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,l){this.events[a]||(this.events[a]=new vm);const i=this.events[a].add(l);return a==="change"?()=>{i(),Xe.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,l){this.passiveEffect=a,this.stopPassiveEffect=l}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,l,i){this.set(l),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-i}jump(a,l=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var a;(a=this.events.change)==null||a.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=Bt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>Kg)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,Kg);return LA(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(a){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=a(l),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 a,l;(a=this.dependents)==null||a.clear(),(l=this.events.destroy)==null||l.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qr(e,a){return new AT(e,a)}const Rh=e=>Array.isArray(e);function jT(e,a,l){e.hasValue(a)?e.getValue(a).set(l):e.addValue(a,qr(l))}function ET(e){return Rh(e)?e[e.length-1]||0:e}function NT(e,a){const l=Or(e,a);let{transitionEnd:i={},transition:c={},...u}=l||{};u={...u,...i};for(const d in u){const h=ET(u[d]);jT(e,d,h)}}const qt=e=>!!(e&&e.getVelocity);function MT(e){return!!(qt(e)&&e.add)}function kh(e,a){const l=e.getValue("willChange");if(MT(l))return l.add(a);if(!l&&En.WillChange){const i=new En.WillChange("auto");e.addValue("willChange",i),i.add(a)}}function Tm(e){return e.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const ST="framerAppearId",gj="data-"+Tm(ST);function xj(e){return e.props[gj]}function ZT({protectedKeys:e,needsAnimating:a},l){const i=e.hasOwnProperty(l)&&a[l]!==!0;return a[l]=!1,i}function vj(e,a,{delay:l=0,transitionOverride:i,type:c}={}){let{transition:u,transitionEnd:d,...h}=a;const f=e.getDefaultTransition();u=u?fj(u,f):f;const p=u==null?void 0:u.reduceMotion;i&&(u=i);const g=[],x=c&&e.animationState&&e.animationState.getState()[c];for(const y in h){const w=e.getValue(y,e.latestValues[y]??null),N=h[y];if(N===void 0||x&&ZT(x,y))continue;const E={delay:l,...Hm(u||{},y)},A=w.get();if(A!==void 0&&!w.isAnimating&&!Array.isArray(N)&&N===A&&!E.velocity)continue;let j=!1;if(window.MotionHandoffAnimation){const C=xj(e);if(C){const H=window.MotionHandoffAnimation(C,y,Xe);H!==null&&(E.startTime=H,j=!0)}}kh(e,y);const S=p??e.shouldReduceMotion;w.start(Vm(y,w,N,S&&pj.has(y)?{type:!1}:E,e,j));const Z=w.animation;Z&&g.push(Z)}if(d){const y=()=>Xe.update(()=>{d&&NT(e,d)});g.length?Promise.all(g).then(y):y()}return g}function Dh(e,a,l={}){var f;const i=Or(e,a,l.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:c=e.getDefaultTransition()||{}}=i||{};l.transitionOverride&&(c=l.transitionOverride);const u=i?()=>Promise.all(vj(e,i,l)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:x,staggerDirection:y}=c;return CT(e,a,p,g,x,y,l)}:()=>Promise.resolve(),{when:h}=c;if(h){const[p,g]=h==="beforeChildren"?[u,d]:[d,u];return p().then(()=>g())}else return Promise.all([u(),d(l.delay)])}function CT(e,a,l=0,i=0,c=0,u=1,d){const h=[];for(const f of e.variantChildren)f.notify("AnimationStart",a),h.push(Dh(f,a,{...d,delay:l+(typeof i=="function"?0:i)+hj(e.variantChildren,f,i,c,u)}).then(()=>f.notify("AnimationComplete",a)));return Promise.all(h)}function HT(e,a,l={}){e.notify("AnimationStart",a);let i;if(Array.isArray(a)){const c=a.map(u=>Dh(e,u,l));i=Promise.all(c)}else if(typeof a=="string")i=Dh(e,a,l);else{const c=typeof a=="function"?Or(e,a,l.custom):a;i=Promise.all(vj(e,c,l))}return i.then(()=>{e.notify("AnimationComplete",a)})}const VT={test:e=>e==="auto",parse:e=>e},bj=e=>a=>a.test(e),yj=[Gr,ge,Qa,a0,l_,s_,VT],Xg=e=>yj.find(bj(e));function _T(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||_A(e):!0}const TT=new Set(["brightness","contrast","saturate","opacity"]);function LT(e){const[a,l]=e.slice(0,-1).split("(");if(a==="drop-shadow")return e;const[i]=l.match(Am)||[];if(!i)return e;const c=l.replace(i,"");let u=TT.has(a)?1:0;return i!==l&&(u*=100),a+"("+u+c+")"}const RT=/\b([a-z-]*)\(.*?\)/gu,Oh={...Da,getAnimatableNone:e=>{const a=e.match(RT);return a?a.map(LT).join(" "):e}},Fh={...Da,getAnimatableNone:e=>{const a=Da.parse(e);return Da.createTransformer(e)(a.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}},Qg={...Gr,transform:Math.round},kT={rotate:a0,rotateX:a0,rotateY:a0,rotateZ:a0,scale:a1,scaleX:a1,scaleY:a1,scaleZ:a1,skew:a0,skewX:a0,skewY:a0,distance:ge,translateX:ge,translateY:ge,translateZ:ge,x:ge,y:ge,z:ge,perspective:ge,transformPerspective:ge,opacity:ul,originX:Dg,originY:Dg,originZ:ge},Lm={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,...kT,zIndex:Qg,fillOpacity:ul,strokeOpacity:ul,numOctaves:Qg},DT={...Lm,color:vt,backgroundColor:vt,outlineColor:vt,fill:vt,stroke:vt,borderColor:vt,borderTopColor:vt,borderRightColor:vt,borderBottomColor:vt,borderLeftColor:vt,filter:Oh,WebkitFilter:Oh,mask:Fh,WebkitMask:Fh},wj=e=>DT[e],OT=new Set([Oh,Fh]);function Aj(e,a){let l=wj(e);return OT.has(l)||(l=Da),l.getAnimatableNone?l.getAnimatableNone(a):void 0}const FT=new Set(["auto","none","0"]);function qT(e,a,l){let i=0,c;for(;i<e.length&&!c;){const u=e[i];typeof u=="string"&&!FT.has(u)&&dl(u).values.length&&(c=e[i]),i++}if(c&&l)for(const u of a)e[u]=Aj(l,c)}class zT extends Cm{constructor(a,l,i,c,u){super(a,l,i,c,u,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:l,name:i}=this;if(!l||!l.current)return;super.readKeyframes();for(let g=0;g<a.length;g++){let x=a[g];if(typeof x=="string"&&(x=x.trim(),wm(x))){const y=mj(x,l.current);y!==void 0&&(a[g]=y),g===a.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!pj.has(i)||a.length!==2)return;const[c,u]=a,d=Xg(c),h=Xg(u),f=kg(c),p=kg(u);if(f!==p&&r0[i]){this.needsMeasurement=!0;return}if(d!==h)if(Ug(d)&&Ug(h))for(let g=0;g<a.length;g++){const x=a[g];typeof x=="string"&&(a[g]=parseFloat(x))}else r0[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:l}=this,i=[];for(let c=0;c<a.length;c++)(a[c]===null||_T(a[c]))&&i.push(c);i.length&&qT(a,i,l)}measureInitialState(){const{element:a,unresolvedKeyframes:l,name:i}=this;if(!a||!a.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=r0[i](a.measureViewportBox(),window.getComputedStyle(a.current)),l[0]=this.measuredOrigin;const c=l[l.length-1];c!==void 0&&a.getValue(i,c).jump(c,!1)}measureEndState(){var h;const{element:a,name:l,unresolvedKeyframes:i}=this;if(!a||!a.current)return;const c=a.getValue(l);c&&c.jump(this.measuredOrigin,!1);const u=i.length-1,d=i[u];i[u]=r0[l](a.measureViewportBox(),window.getComputedStyle(a.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([f,p])=>{a.getValue(f).set(p)}),this.resolveNoneKeyframes()}}const BT=new Set(["opacity","clipPath","filter","transform"]);function jj(e,a,l){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const c=(l==null?void 0:l[e])??i.querySelectorAll(e);return c?Array.from(c):[]}return Array.from(e).filter(i=>i!=null)}const Ej=(e,a)=>a&&typeof e=="number"?a.transform(e):e;function qh(e){return VA(e)&&"offsetHeight"in e}const{schedule:Rm}=UA(queueMicrotask,!1),Ra={x:!1,y:!1};function Nj(){return Ra.x||Ra.y}function $T(e){return e==="x"||e==="y"?Ra[e]?null:(Ra[e]=!0,()=>{Ra[e]=!1}):Ra.x||Ra.y?null:(Ra.x=Ra.y=!0,()=>{Ra.x=Ra.y=!1})}function Mj(e,a){const l=jj(e),i=new AbortController,c={passive:!0,...a,signal:i.signal};return[l,c,()=>i.abort()]}function IT(e){return!(e.pointerType==="touch"||Nj())}function UT(e,a,l={}){const[i,c,u]=Mj(e,l);return i.forEach(d=>{let h=!1,f=!1,p;const g=()=>{d.removeEventListener("pointerleave",N)},x=A=>{p&&(p(A),p=void 0),g()},y=A=>{h=!1,window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",y),f&&(f=!1,x(A))},w=()=>{h=!0,window.addEventListener("pointerup",y,c),window.addEventListener("pointercancel",y,c)},N=A=>{if(A.pointerType!=="touch"){if(h){f=!0;return}x(A)}},E=A=>{if(!IT(A))return;f=!1;const j=a(d,A);typeof j=="function"&&(p=j,d.addEventListener("pointerleave",N,c))};d.addEventListener("pointerenter",E,c),d.addEventListener("pointerdown",w,c)}),u}const Sj=(e,a)=>a?e===a?!0:Sj(e,a.parentElement):!1,km=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,PT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function GT(e){return PT.has(e.tagName)||e.isContentEditable===!0}const YT=new Set(["INPUT","SELECT","TEXTAREA"]);function KT(e){return YT.has(e.tagName)||e.isContentEditable===!0}const h1=new WeakSet;function Jg(e){return a=>{a.key==="Enter"&&e(a)}}function L2(e,a){e.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const XT=(e,a)=>{const l=e.currentTarget;if(!l)return;const i=Jg(()=>{if(h1.has(l))return;L2(l,"down");const c=Jg(()=>{L2(l,"up")}),u=()=>L2(l,"cancel");l.addEventListener("keyup",c,a),l.addEventListener("blur",u,a)});l.addEventListener("keydown",i,a),l.addEventListener("blur",()=>l.removeEventListener("keydown",i),a)};function Wg(e){return km(e)&&!Nj()}const ex=new WeakSet;function QT(e,a,l={}){const[i,c,u]=Mj(e,l),d=h=>{const f=h.currentTarget;if(!Wg(h)||ex.has(h))return;h1.add(f),l.stopPropagation&&ex.add(h);const p=a(f,h),g=(w,N)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",y),h1.has(f)&&h1.delete(f),Wg(w)&&typeof p=="function"&&p(w,{success:N})},x=w=>{g(w,f===window||f===document||l.useGlobalTarget||Sj(f,w.target))},y=w=>{g(w,!1)};window.addEventListener("pointerup",x,c),window.addEventListener("pointercancel",y,c)};return i.forEach(h=>{(l.useGlobalTarget?window:h).addEventListener("pointerdown",d,c),qh(h)&&(h.addEventListener("focus",p=>XT(p,c)),!GT(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),u}function Dm(e){return VA(e)&&"ownerSVGElement"in e}const m1=new WeakMap;let n0;const Zj=(e,a,l)=>(i,c)=>c&&c[0]?c[0][e+"Size"]:Dm(i)&&"getBBox"in i?i.getBBox()[a]:i[l],JT=Zj("inline","width","offsetWidth"),WT=Zj("block","height","offsetHeight");function eL({target:e,borderBoxSize:a}){var l;(l=m1.get(e))==null||l.forEach(i=>{i(e,{get width(){return JT(e,a)},get height(){return WT(e,a)}})})}function tL(e){e.forEach(eL)}function aL(){typeof ResizeObserver>"u"||(n0=new ResizeObserver(tL))}function nL(e,a){n0||aL();const l=jj(e);return l.forEach(i=>{let c=m1.get(i);c||(c=new Set,m1.set(i,c)),c.add(a),n0==null||n0.observe(i)}),()=>{l.forEach(i=>{const c=m1.get(i);c==null||c.delete(a),c!=null&&c.size||n0==null||n0.unobserve(i)})}}const f1=new Set;let Tr;function rL(){Tr=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};f1.forEach(a=>a(e))},window.addEventListener("resize",Tr)}function sL(e){return f1.add(e),Tr||rL(),()=>{f1.delete(e),!f1.size&&typeof Tr=="function"&&(window.removeEventListener("resize",Tr),Tr=void 0)}}function tx(e,a){return typeof e=="function"?sL(e):nL(e,a)}function lL(e){return Dm(e)&&e.tagName==="svg"}const iL=[...yj,vt,Da],oL=e=>iL.find(bj(e)),ax=()=>({translate:0,scale:1,origin:0,originPoint:0}),Lr=()=>({x:ax(),y:ax()}),nx=()=>({min:0,max:0}),Nt=()=>({x:nx(),y:nx()}),cL=new WeakMap;function D1(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function hl(e){return typeof e=="string"||Array.isArray(e)}const Om=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Fm=["initial",...Om];function O1(e){return D1(e.animate)||Fm.some(a=>hl(e[a]))}function Cj(e){return!!(O1(e)||e.variants)}function uL(e,a,l){for(const i in a){const c=a[i],u=l[i];if(qt(c))e.addValue(i,c);else if(qt(u))e.addValue(i,qr(c,{owner:e}));else if(u!==c)if(e.hasValue(i)){const d=e.getValue(i);d.liveStyle===!0?d.jump(c):d.hasAnimated||d.set(c)}else{const d=e.getStaticValue(i);e.addValue(i,qr(d!==void 0?d:c,{owner:e}))}}for(const i in l)a[i]===void 0&&e.removeValue(i);return a}const zh={current:null},Hj={current:!1},dL=typeof window<"u";function hL(){if(Hj.current=!0,!!dL)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),a=()=>zh.current=e.matches;e.addEventListener("change",a),a()}else zh.current=!1}const rx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let M1={};function Vj(e){M1=e}function mL(){return M1}class fL{scrapeMotionValuesFromProps(a,l,i){return{}}constructor({parent:a,props:l,presenceContext:i,reducedMotionConfig:c,skipAnimations:u,blockInitialAnimation:d,visualState:h},f={}){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=Cm,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=Bt.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,Xe.render(this.render,!1,!0))};const{latestValues:p,renderState:g}=h;this.latestValues=p,this.baseTarget={...p},this.initialValues=l.initial?{...p}:{},this.renderState=g,this.parent=a,this.props=l,this.presenceContext=i,this.depth=a?a.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=u,this.options=f,this.blockInitialAnimation=!!d,this.isControllingVariants=O1(l),this.isVariantNode=Cj(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:x,...y}=this.scrapeMotionValuesFromProps(l,{},this);for(const w in y){const N=y[w];p[w]!==void 0&&qt(N)&&N.set(p[w])}}mount(a){var l,i;if(this.hasBeenMounted)for(const c in this.initialValues)(l=this.values.get(c))==null||l.jump(this.initialValues[c]),this.latestValues[c]=this.initialValues[c];this.current=a,cL.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((c,u)=>this.bindToMotionValue(u,c)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Hj.current||hL(),this.shouldReduceMotion=zh.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var a;this.projection&&this.projection.unmount(),l0(this.notifyUpdate),l0(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(a=this.parent)==null||a.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const i=this.features[l];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,l){if(this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)(),l.accelerate&&BT.has(a)&&this.current instanceof HTMLElement){const{factory:d,keyframes:h,times:f,ease:p,duration:g}=l.accelerate,x=new uj({element:this.current,name:a,keyframes:h,times:f,ease:p,duration:ka(g)}),y=d(x);this.valueSubscriptions.set(a,()=>{y(),x.cancel()});return}const i=Kr.has(a);i&&this.onBindTransform&&this.onBindTransform();const c=l.on("change",d=>{this.latestValues[a]=d,this.props.onUpdate&&Xe.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let u;typeof window<"u"&&window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,a,l)),this.valueSubscriptions.set(a,()=>{c(),u&&u(),l.owner&&l.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in M1){const l=M1[a];if(!l)continue;const{isEnabled:i,Feature:c}=l;if(!this.features[a]&&c&&i(this.props)&&(this.features[a]=new c(this)),this.features[a]){const u=this.features[a];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Nt()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,l){this.latestValues[a]=l}update(a,l){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let i=0;i<rx.length;i++){const c=rx[i];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const u="on"+c,d=a[u];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=uL(this,this.scrapeMotionValuesFromProps(a,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]: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(a){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(a),()=>l.variantChildren.delete(a)}addValue(a,l){const i=this.values.get(a);l!==i&&(i&&this.removeValue(a),this.bindToMotionValue(a,l),this.values.set(a,l),this.latestValues[a]=l.get())}removeValue(a){this.values.delete(a);const l=this.valueSubscriptions.get(a);l&&(l(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,l){if(this.props.values&&this.props.values[a])return this.props.values[a];let i=this.values.get(a);return i===void 0&&l!==void 0&&(i=qr(l===null?void 0:l,{owner:this}),this.addValue(a,i)),i}readValue(a,l){let i=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return i!=null&&(typeof i=="string"&&(HA(i)||_A(i))?i=parseFloat(i):!oL(i)&&Da.test(l)&&(i=Aj(a,l)),this.setBaseTarget(a,qt(i)?i.get():i)),qt(i)?i.get():i}setBaseTarget(a,l){this.baseTarget[a]=l}getBaseTarget(a){var u;const{initial:l}=this.props;let i;if(typeof l=="string"||typeof l=="object"){const d=_m(this.props,l,(u=this.presenceContext)==null?void 0:u.custom);d&&(i=d[a])}if(l&&i!==void 0)return i;const c=this.getBaseTargetFromProps(this.props,a);return c!==void 0&&!qt(c)?c:this.initialValues[a]!==void 0&&i===void 0?void 0:this.baseTarget[a]}on(a,l){return this.events[a]||(this.events[a]=new vm),this.events[a].add(l)}notify(a,...l){this.events[a]&&this.events[a].notify(...l)}scheduleRenderMicrotask(){Rm.render(this.render)}}class _j extends fL{constructor(){super(...arguments),this.KeyframeResolver=zT}sortInstanceNodePosition(a,l){return a.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(a,l){const i=a.style;return i?i[l]:void 0}removeValueFromRenderState(a,{vars:l,style:i}){delete l[a],delete i[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;qt(a)&&(this.childSubscription=a.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class o0{constructor(a){this.isMounted=!1,this.node=a}update(){}}function Tj({top:e,left:a,right:l,bottom:i}){return{x:{min:a,max:l},y:{min:e,max:i}}}function pL({x:e,y:a}){return{top:a.min,right:e.max,bottom:a.max,left:e.min}}function gL(e,a){if(!a)return e;const l=a({x:e.left,y:e.top}),i=a({x:e.right,y:e.bottom});return{top:l.y,left:l.x,bottom:i.y,right:i.x}}function R2(e){return e===void 0||e===1}function Bh({scale:e,scaleX:a,scaleY:l}){return!R2(e)||!R2(a)||!R2(l)}function H0(e){return Bh(e)||Lj(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Lj(e){return sx(e.x)||sx(e.y)}function sx(e){return e&&e!=="0%"}function S1(e,a,l){const i=e-l,c=a*i;return l+c}function lx(e,a,l,i,c){return c!==void 0&&(e=S1(e,c,i)),S1(e,l,i)+a}function $h(e,a=0,l=1,i,c){e.min=lx(e.min,a,l,i,c),e.max=lx(e.max,a,l,i,c)}function Rj(e,{x:a,y:l}){$h(e.x,a.translate,a.scale,a.originPoint),$h(e.y,l.translate,l.scale,l.originPoint)}const ix=.999999999999,ox=1.0000000000001;function xL(e,a,l,i=!1){const c=l.length;if(!c)return;a.x=a.y=1;let u,d;for(let h=0;h<c;h++){u=l[h],d=u.projectionDelta;const{visualElement:f}=u.options;f&&f.props.style&&f.props.style.display==="contents"||(i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&kr(e,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),d&&(a.x*=d.x.scale,a.y*=d.y.scale,Rj(e,d)),i&&H0(u.latestValues)&&kr(e,u.latestValues))}a.x<ox&&a.x>ix&&(a.x=1),a.y<ox&&a.y>ix&&(a.y=1)}function Rr(e,a){e.min=e.min+a,e.max=e.max+a}function cx(e,a,l,i,c=.5){const u=nt(e.min,e.max,c);$h(e,a,l,u,i)}function kr(e,a){cx(e.x,a.x,a.scaleX,a.scale,a.originX),cx(e.y,a.y,a.scaleY,a.scale,a.originY)}function kj(e,a){return Tj(gL(e.getBoundingClientRect(),a))}function vL(e,a,l){const i=kj(e,l),{scroll:c}=a;return c&&(Rr(i.x,c.offset.x),Rr(i.y,c.offset.y)),i}const bL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yL=Yr.length;function wL(e,a,l){let i="",c=!0;for(let u=0;u<yL;u++){const d=Yr[u],h=e[d];if(h===void 0)continue;let f=!0;if(typeof h=="number")f=h===(d.startsWith("scale")?1:0);else{const p=parseFloat(h);f=d.startsWith("scale")?p===1:p===0}if(!f||l){const p=Ej(h,Lm[d]);if(!f){c=!1;const g=bL[d]||d;i+=`${g}(${p}) `}l&&(a[d]=p)}}return i=i.trim(),l?i=l(a,c?"":i):c&&(i="none"),i}function qm(e,a,l){const{style:i,vars:c,transformOrigin:u}=e;let d=!1,h=!1;for(const f in a){const p=a[f];if(Kr.has(f)){d=!0;continue}else if(GA(f)){c[f]=p;continue}else{const g=Ej(p,Lm[f]);f.startsWith("origin")?(h=!0,u[f]=g):i[f]=g}}if(a.transform||(d||l?i.transform=wL(a,e.transform,l):i.transform&&(i.transform="none")),h){const{originX:f="50%",originY:p="50%",originZ:g=0}=u;i.transformOrigin=`${f} ${p} ${g}`}}function Dj(e,{style:a,vars:l},i,c){const u=e.style;let d;for(d in a)u[d]=a[d];c==null||c.applyProjectionStyles(u,i);for(d in l)u.setProperty(d,l[d])}function ux(e,a){return a.max===a.min?0:e/(a.max-a.min)*100}const Qs={correct:(e,a)=>{if(!a.target)return e;if(typeof e=="string")if(ge.test(e))e=parseFloat(e);else return e;const l=ux(e,a.target.x),i=ux(e,a.target.y);return`${l}% ${i}%`}},AL={correct:(e,{treeScale:a,projectionDelta:l})=>{const i=e,c=Da.parse(e);if(c.length>5)return i;const u=Da.createTransformer(e),d=typeof c[0]!="number"?1:0,h=l.x.scale*a.x,f=l.y.scale*a.y;c[0+d]/=h,c[1+d]/=f;const p=nt(h,f,.5);return typeof c[2+d]=="number"&&(c[2+d]/=p),typeof c[3+d]=="number"&&(c[3+d]/=p),u(c)}},Ih={borderRadius:{...Qs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qs,borderTopRightRadius:Qs,borderBottomLeftRadius:Qs,borderBottomRightRadius:Qs,boxShadow:AL};function Oj(e,{layout:a,layoutId:l}){return Kr.has(e)||e.startsWith("origin")||(a||l!==void 0)&&(!!Ih[e]||e==="opacity")}function zm(e,a,l){var d;const i=e.style,c=a==null?void 0:a.style,u={};if(!i)return u;for(const h in i)(qt(i[h])||c&&qt(c[h])||Oj(h,e)||((d=l==null?void 0:l.getValue(h))==null?void 0:d.liveStyle)!==void 0)&&(u[h]=i[h]);return u}function jL(e){return window.getComputedStyle(e)}class EL extends _j{constructor(){super(...arguments),this.type="html",this.renderInstance=Dj}readValueFromInstance(a,l){var i;if(Kr.has(l))return(i=this.projection)!=null&&i.isProjecting?Ch(l):$_(a,l);{const c=jL(a),u=(GA(l)?c.getPropertyValue(l):c[l])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(a,{transformPagePoint:l}){return kj(a,l)}build(a,l,i){qm(a,l,i.transformTemplate)}scrapeMotionValuesFromProps(a,l,i){return zm(a,l,i)}}const NL={offset:"stroke-dashoffset",array:"stroke-dasharray"},ML={offset:"strokeDashoffset",array:"strokeDasharray"};function SL(e,a,l=1,i=0,c=!0){e.pathLength=1;const u=c?NL:ML;e[u.offset]=`${-i}`,e[u.array]=`${a} ${l}`}const ZL=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Fj(e,{attrX:a,attrY:l,attrScale:i,pathLength:c,pathSpacing:u=1,pathOffset:d=0,...h},f,p,g){if(qm(e,h,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:x,style:y}=e;x.transform&&(y.transform=x.transform,delete x.transform),(y.transform||x.transformOrigin)&&(y.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),y.transform&&(y.transformBox=(g==null?void 0:g.transformBox)??"fill-box",delete x.transformBox);for(const w of ZL)x[w]!==void 0&&(y[w]=x[w],delete x[w]);a!==void 0&&(x.x=a),l!==void 0&&(x.y=l),i!==void 0&&(x.scale=i),c!==void 0&&SL(x,c,u,d,!1)}const qj=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"]),zj=e=>typeof e=="string"&&e.toLowerCase()==="svg";function CL(e,a,l,i){Dj(e,a,void 0,i);for(const c in a.attrs)e.setAttribute(qj.has(c)?c:Tm(c),a.attrs[c])}function Bj(e,a,l){const i=zm(e,a,l);for(const c in e)if(qt(e[c])||qt(a[c])){const u=Yr.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;i[u]=e[c]}return i}class HL extends _j{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Nt}getBaseTargetFromProps(a,l){return a[l]}readValueFromInstance(a,l){if(Kr.has(l)){const i=wj(l);return i&&i.default||0}return l=qj.has(l)?l:Tm(l),a.getAttribute(l)}scrapeMotionValuesFromProps(a,l,i){return Bj(a,l,i)}build(a,l,i){Fj(a,l,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(a,l,i,c){CL(a,l,i,c)}mount(a){this.isSVGTag=zj(a.tagName),super.mount(a)}}const VL=Fm.length;function $j(e){if(!e)return;if(!e.isControllingVariants){const l=e.parent?$j(e.parent)||{}:{};return e.props.initial!==void 0&&(l.initial=e.props.initial),l}const a={};for(let l=0;l<VL;l++){const i=Fm[l],c=e.props[i];(hl(c)||c===!1)&&(a[i]=c)}return a}function Ij(e,a){if(!Array.isArray(a))return!1;const l=a.length;if(l!==e.length)return!1;for(let i=0;i<l;i++)if(a[i]!==e[i])return!1;return!0}const _L=[...Om].reverse(),TL=Om.length;function LL(e){return a=>Promise.all(a.map(({animation:l,options:i})=>HT(e,l,i)))}function RL(e){let a=LL(e),l=dx(),i=!0;const c=f=>(p,g)=>{var y;const x=Or(e,g,f==="exit"?(y=e.presenceContext)==null?void 0:y.custom:void 0);if(x){const{transition:w,transitionEnd:N,...E}=x;p={...p,...E,...N}}return p};function u(f){a=f(e)}function d(f){const{props:p}=e,g=$j(e.parent)||{},x=[],y=new Set;let w={},N=1/0;for(let A=0;A<TL;A++){const j=_L[A],S=l[j],Z=p[j]!==void 0?p[j]:g[j],C=hl(Z),H=j===f?S.isActive:null;H===!1&&(N=A);let V=Z===g[j]&&Z!==p[j]&&C;if(V&&i&&e.manuallyAnimateOnMount&&(V=!1),S.protectedKeys={...w},!S.isActive&&H===null||!Z&&!S.prevProp||D1(Z)||typeof Z=="boolean")continue;if(j==="exit"&&S.isActive&&H!==!0){S.prevResolvedValues&&(w={...w,...S.prevResolvedValues});continue}const T=kL(S.prevProp,Z);let k=T||j===f&&S.isActive&&!V&&C||A>N&&C,R=!1;const O=Array.isArray(Z)?Z:[Z];let U=O.reduce(c(j),{});H===!1&&(U={});const{prevResolvedValues:X={}}=S,K={...X,...U},$=B=>{k=!0,y.has(B)&&(R=!0,y.delete(B)),S.needsAnimating[B]=!0;const Q=e.getValue(B);Q&&(Q.liveStyle=!1)};for(const B in K){const Q=U[B],he=X[B];if(w.hasOwnProperty(B))continue;let ce=!1;Rh(Q)&&Rh(he)?ce=!Ij(Q,he):ce=Q!==he,ce?Q!=null?$(B):y.add(B):Q!==void 0&&y.has(B)?$(B):S.protectedKeys[B]=!0}S.prevProp=Z,S.prevResolvedValues=U,S.isActive&&(w={...w,...U}),i&&e.blockInitialAnimation&&(k=!1);const Y=V&&T;k&&(!Y||R)&&x.push(...O.map(B=>{const Q={type:j};if(typeof B=="string"&&i&&!Y&&e.manuallyAnimateOnMount&&e.parent){const{parent:he}=e,ce=Or(he,B);if(he.enteringChildren&&ce){const{delayChildren:D}=ce.transition||{};Q.delay=hj(he.enteringChildren,e,D)}}return{animation:B,options:Q}}))}if(y.size){const A={};if(typeof p.initial!="boolean"){const j=Or(e,Array.isArray(p.initial)?p.initial[0]:p.initial);j&&j.transition&&(A.transition=j.transition)}y.forEach(j=>{const S=e.getBaseTarget(j),Z=e.getValue(j);Z&&(Z.liveStyle=!0),A[j]=S??null}),x.push({animation:A})}let E=!!x.length;return i&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(E=!1),i=!1,E?a(x):Promise.resolve()}function h(f,p){var x;if(l[f].isActive===p)return Promise.resolve();(x=e.variantChildren)==null||x.forEach(y=>{var w;return(w=y.animationState)==null?void 0:w.setActive(f,p)}),l[f].isActive=p;const g=d(f);for(const y in l)l[y].protectedKeys={};return g}return{animateChanges:d,setActive:h,setAnimateFunction:u,getState:()=>l,reset:()=>{l=dx()}}}function kL(e,a){return typeof a=="string"?a!==e:Array.isArray(a)?!Ij(a,e):!1}function C0(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dx(){return{animate:C0(!0),whileInView:C0(),whileHover:C0(),whileTap:C0(),whileDrag:C0(),whileFocus:C0(),exit:C0()}}function hx(e,a){e.min=a.min,e.max=a.max}function La(e,a){hx(e.x,a.x),hx(e.y,a.y)}function mx(e,a){e.translate=a.translate,e.scale=a.scale,e.originPoint=a.originPoint,e.origin=a.origin}const Uj=1e-4,DL=1-Uj,OL=1+Uj,Pj=.01,FL=0-Pj,qL=0+Pj;function $t(e){return e.max-e.min}function zL(e,a,l){return Math.abs(e-a)<=l}function fx(e,a,l,i=.5){e.origin=i,e.originPoint=nt(a.min,a.max,e.origin),e.scale=$t(l)/$t(a),e.translate=nt(l.min,l.max,e.origin)-e.originPoint,(e.scale>=DL&&e.scale<=OL||isNaN(e.scale))&&(e.scale=1),(e.translate>=FL&&e.translate<=qL||isNaN(e.translate))&&(e.translate=0)}function sl(e,a,l,i){fx(e.x,a.x,l.x,i?i.originX:void 0),fx(e.y,a.y,l.y,i?i.originY:void 0)}function px(e,a,l){e.min=l.min+a.min,e.max=e.min+$t(a)}function BL(e,a,l){px(e.x,a.x,l.x),px(e.y,a.y,l.y)}function gx(e,a,l){e.min=a.min-l.min,e.max=e.min+$t(a)}function Z1(e,a,l){gx(e.x,a.x,l.x),gx(e.y,a.y,l.y)}function xx(e,a,l,i,c){return e-=a,e=S1(e,1/l,i),c!==void 0&&(e=S1(e,1/c,i)),e}function $L(e,a=0,l=1,i=.5,c,u=e,d=e){if(Qa.test(a)&&(a=parseFloat(a),a=nt(d.min,d.max,a/100)-d.min),typeof a!="number")return;let h=nt(u.min,u.max,i);e===u&&(h-=a),e.min=xx(e.min,a,l,h,c),e.max=xx(e.max,a,l,h,c)}function vx(e,a,[l,i,c],u,d){$L(e,a[l],a[i],a[c],a.scale,u,d)}const IL=["x","scaleX","originX"],UL=["y","scaleY","originY"];function bx(e,a,l,i){vx(e.x,a,IL,l?l.x:void 0,i?i.x:void 0),vx(e.y,a,UL,l?l.y:void 0,i?i.y:void 0)}function yx(e){return e.translate===0&&e.scale===1}function Gj(e){return yx(e.x)&&yx(e.y)}function wx(e,a){return e.min===a.min&&e.max===a.max}function PL(e,a){return wx(e.x,a.x)&&wx(e.y,a.y)}function Ax(e,a){return Math.round(e.min)===Math.round(a.min)&&Math.round(e.max)===Math.round(a.max)}function Yj(e,a){return Ax(e.x,a.x)&&Ax(e.y,a.y)}function jx(e){return $t(e.x)/$t(e.y)}function Ex(e,a){return e.translate===a.translate&&e.scale===a.scale&&e.originPoint===a.originPoint}function Ya(e){return[e("x"),e("y")]}function GL(e,a,l){let i="";const c=e.x.translate/a.x,u=e.y.translate/a.y,d=(l==null?void 0:l.z)||0;if((c||u||d)&&(i=`translate3d(${c}px, ${u}px, ${d}px) `),(a.x!==1||a.y!==1)&&(i+=`scale(${1/a.x}, ${1/a.y}) `),l){const{transformPerspective:p,rotate:g,rotateX:x,rotateY:y,skewX:w,skewY:N}=l;p&&(i=`perspective(${p}px) ${i}`),g&&(i+=`rotate(${g}deg) `),x&&(i+=`rotateX(${x}deg) `),y&&(i+=`rotateY(${y}deg) `),w&&(i+=`skewX(${w}deg) `),N&&(i+=`skewY(${N}deg) `)}const h=e.x.scale*a.x,f=e.y.scale*a.y;return(h!==1||f!==1)&&(i+=`scale(${h}, ${f})`),i||"none"}const Kj=["TopLeft","TopRight","BottomLeft","BottomRight"],YL=Kj.length,Nx=e=>typeof e=="string"?parseFloat(e):e,Mx=e=>typeof e=="number"||ge.test(e);function KL(e,a,l,i,c,u){c?(e.opacity=nt(0,l.opacity??1,XL(i)),e.opacityExit=nt(a.opacity??1,0,QL(i))):u&&(e.opacity=nt(a.opacity??1,l.opacity??1,i));for(let d=0;d<YL;d++){const h=`border${Kj[d]}Radius`;let f=Sx(a,h),p=Sx(l,h);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||Mx(f)===Mx(p)?(e[h]=Math.max(nt(Nx(f),Nx(p),i),0),(Qa.test(p)||Qa.test(f))&&(e[h]+="%")):e[h]=p}(a.rotate||l.rotate)&&(e.rotate=nt(a.rotate||0,l.rotate||0,i))}function Sx(e,a){return e[a]!==void 0?e[a]:e.borderRadius}const XL=Xj(0,.5,zA),QL=Xj(.5,.95,Ma);function Xj(e,a,l){return i=>i<e?0:i>a?1:l(cl(e,a,i))}function JL(e,a,l){const i=qt(e)?e:qr(e);return i.start(Vm("",i,a,l)),i.animation}function ml(e,a,l,i={passive:!0}){return e.addEventListener(a,l,i),()=>e.removeEventListener(a,l)}const WL=(e,a)=>e.depth-a.depth;class eR{constructor(){this.children=[],this.isDirty=!1}add(a){gm(this.children,a),this.isDirty=!0}remove(a){A1(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(WL),this.isDirty=!1,this.children.forEach(a)}}function tR(e,a){const l=Bt.now(),i=({timestamp:c})=>{const u=c-l;u>=a&&(l0(i),e(u-a))};return Xe.setup(i,!0),()=>l0(i)}function p1(e){return qt(e)?e.get():e}class aR{constructor(){this.members=[]}add(a){gm(this.members,a);for(let l=this.members.length-1;l>=0;l--){const i=this.members[l];if(i===a||i===this.lead||i===this.prevLead)continue;const c=i.instance;c&&c.isConnected===!1&&i.isPresent!==!1&&!i.snapshot&&A1(this.members,i)}a.scheduleRender()}remove(a){if(A1(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(a){const l=this.members.findIndex(c=>a===c);if(l===0)return!1;let i;for(let c=l;c>=0;c--){const u=this.members[c],d=u.instance;if(u.isPresent!==!1&&(!d||d.isConnected!==!1)){i=u;break}}return i?(this.promote(i),!0):!1}promote(a,l){const i=this.lead;if(a!==i&&(this.prevLead=i,this.lead=a,a.show(),i)){i.instance&&i.scheduleRender(),a.scheduleRender();const c=i.options.layoutDependency,u=a.options.layoutDependency;if(!(c!==void 0&&u!==void 0&&c===u)){const f=i.instance;f&&f.isConnected===!1&&!i.snapshot||(a.resumeFrom=i,l&&(a.resumeFrom.preserveOpacity=!0),i.snapshot&&(a.snapshot=i.snapshot,a.snapshot.latestValues=i.animationValues||i.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0))}const{crossfade:h}=a.options;h===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:l,resumingFrom:i}=a;l.onExitComplete&&l.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const g1={hasAnimatedSinceResize:!0,hasEverUpdated:!1},k2=["","X","Y","Z"],nR=1e3;let rR=0;function D2(e,a,l,i){const{latestValues:c}=a;c[e]&&(l[e]=c[e],a.setStaticValue(e,0),i&&(i[e]=0))}function Qj(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:a}=e.options;if(!a)return;const l=xj(a);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:c,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(l,"transform",Xe,!(c||u))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&Qj(i)}function Jj({attachResizeListener:e,defaultParent:a,measureScroll:l,checkIsScrollRoot:i,resetTransform:c}){return class{constructor(d={},h=a==null?void 0:a()){this.id=rR++,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(iR),this.nodes.forEach(dR),this.nodes.forEach(hR),this.nodes.forEach(oR)},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 f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new eR)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new vm),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const f=this.eventHandlers.get(d);f&&f.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Dm(d)&&!lL(d),this.instance=d;const{layoutId:h,layout:f,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&&(f||h)&&(this.isLayoutDirty=!0),e){let g,x=0;const y=()=>this.root.updateBlockedByResize=!1;Xe.read(()=>{x=window.innerWidth}),e(d,()=>{const w=window.innerWidth;w!==x&&(x=w,this.root.updateBlockedByResize=!0,g&&g(),g=tR(y,250),g1.hasAnimatedSinceResize&&(g1.hasAnimatedSinceResize=!1,this.nodes.forEach(Hx)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||f)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:x,hasRelativeLayoutChanged:y,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const N=this.options.transition||p.getDefaultTransition()||xR,{onLayoutAnimationStart:E,onLayoutAnimationComplete:A}=p.getProps(),j=!this.targetLayout||!Yj(this.targetLayout,w),S=!x&&y;if(this.options.layoutRoot||this.resumeFrom||S||x&&(j||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const Z={...Hm(N,"layout"),onPlay:E,onComplete:A};(p.shouldReduceMotion||this.options.layoutRoot)&&(Z.delay=0,Z.type=!1),this.startAnimation(Z),this.setAnimationOrigin(g,S)}else x||Hx(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(),l0(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(mR),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&&Qj(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const x=this.path[g];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:h,layout:f}=this.options;if(h===void 0&&!f)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(Zx);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Cx);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(uR),this.nodes.forEach(sR),this.nodes.forEach(lR)):this.nodes.forEach(Cx),this.clearAllSnapshots();const h=Bt.now();Ot.delta=Ja(0,1e3/60,h-Ot.timestamp),Ot.timestamp=h,Ot.isProcessing=!0,Z2.update.process(Ot),Z2.preRender.process(Ot),Z2.render.process(Ot),Ot.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Rm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(cR),this.sharedNodes.forEach(fR)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Xe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Xe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$t(this.snapshot.measuredBox.x)&&!$t(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 f=0;f<this.path.length;f++)this.path[f].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Nt(),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 f=i(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:f,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!c)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!Gj(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;d&&this.instance&&(h||H0(this.latestValues)||g)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let f=this.removeElementScroll(h);return d&&(f=this.removeTransform(f)),vR(f),{animationId:this.root.animationId,measuredBox:h,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:d}=this.options;if(!d)return Nt();const h=d.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(bR))){const{scroll:g}=this.root;g&&(Rr(h.x,g.offset.x),Rr(h.y,g.offset.y))}return h}removeElementScroll(d){var f;const h=Nt();if(La(h,d),(f=this.scroll)!=null&&f.wasRoot)return h;for(let p=0;p<this.path.length;p++){const g=this.path[p],{scroll:x,options:y}=g;g!==this.root&&x&&y.layoutScroll&&(x.wasRoot&&La(h,d),Rr(h.x,x.offset.x),Rr(h.y,x.offset.y))}return h}applyTransform(d,h=!1){const f=Nt();La(f,d);for(let p=0;p<this.path.length;p++){const g=this.path[p];!h&&g.options.layoutScroll&&g.scroll&&g!==g.root&&kr(f,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),H0(g.latestValues)&&kr(f,g.latestValues)}return H0(this.latestValues)&&kr(f,this.latestValues),f}removeTransform(d){const h=Nt();La(h,d);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!H0(p.latestValues))continue;Bh(p.latestValues)&&p.updateSnapshot();const g=Nt(),x=p.measurePageBox();La(g,x),bx(h,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return H0(this.latestValues)&&bx(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!==Ot.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 f=!!this.resumingFrom||this!==h;if(!(d||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:x}=this.options;if(!this.layout||!(g||x))return;this.resolvedRelativeTargetAt=Ot.timestamp;const y=this.getClosestProjectingParent();y&&this.linkedParentVersion!==y.layoutVersion&&!y.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(y&&y.layout?this.createRelativeTarget(y,this.layout.layoutBox,y.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Nt(),this.targetWithTransforms=Nt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),BL(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):La(this.target,this.layout.layoutBox),Rj(this.target,this.targetDelta)):La(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?this.createRelativeTarget(y,this.target,y.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Bh(this.parent.latestValues)||Lj(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,f){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Nt(),this.relativeTargetOrigin=Nt(),Z1(this.relativeTargetOrigin,h,f),La(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var N;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let f=!0;if((this.isProjectionDirty||(N=this.parent)!=null&&N.isProjectionDirty)&&(f=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===Ot.timestamp&&(f=!1),f)return;const{layout:p,layoutId:g}=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||g))return;La(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,y=this.treeScale.y;xL(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=Nt());const{target:w}=d;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(mx(this.prevProjectionDelta.x,this.projectionDelta.x),mx(this.prevProjectionDelta.y,this.projectionDelta.y)),sl(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==y||!Ex(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ex(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 f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Lr(),this.projectionDelta=Lr(),this.projectionDeltaWithTransform=Lr()}setAnimationOrigin(d,h=!1){const f=this.snapshot,p=f?f.latestValues:{},g={...this.latestValues},x=Lr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const y=Nt(),w=f?f.source:void 0,N=this.layout?this.layout.source:void 0,E=w!==N,A=this.getStack(),j=!A||A.members.length<=1,S=!!(E&&!j&&this.options.crossfade===!0&&!this.path.some(gR));this.animationProgress=0;let Z;this.mixTargetDelta=C=>{const H=C/1e3;Vx(x.x,d.x,H),Vx(x.y,d.y,H),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Z1(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox),pR(this.relativeTarget,this.relativeTargetOrigin,y,H),Z&&PL(this.relativeTarget,Z)&&(this.isProjectionDirty=!1),Z||(Z=Nt()),La(Z,this.relativeTarget)),E&&(this.animationValues=g,KL(g,p,this.latestValues,H,S,j)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=H},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){var h,f,p;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(p=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||p.stop(),this.pendingAnimation&&(l0(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xe.update(()=>{g1.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=qr(0)),this.motionValue.jump(0,!1),this.currentAnimation=JL(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),d.onUpdate&&d.onUpdate(g)},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(nR),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:f,layout:p,latestValues:g}=d;if(!(!h||!f||!p)){if(this!==d&&this.layout&&p&&Wj(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||Nt();const x=$t(this.layout.layoutBox.x);f.x.min=d.target.x.min,f.x.max=f.x.min+x;const y=$t(this.layout.layoutBox.y);f.y.min=d.target.y.min,f.y.max=f.y.min+y}La(h,f),kr(h,g),sl(this.projectionDeltaWithTransform,this.layoutCorrected,h,g)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new aR),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:f}={}){const p=this.getStack();p&&p.promote(this,f),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:f}=d;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(h=!0),!h)return;const p={};f.z&&D2("z",d,p,this.animationValues);for(let g=0;g<k2.length;g++)D2(`rotate${k2[g]}`,d,p,this.animationValues),D2(`skew${k2[g]}`,d,p,this.animationValues);d.render();for(const g in p)d.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);d.scheduleRender()}applyProjectionStyles(d,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=p1(h==null?void 0:h.pointerEvents)||"",d.transform=f?f(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=p1(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!H0(this.latestValues)&&(d.transform=f?f({},""):"none",this.hasProjected=!1);return}d.visibility="";const g=p.animationValues||p.latestValues;this.applyTransformsToTarget();let x=GL(this.projectionDeltaWithTransform,this.treeScale,g);f&&(x=f(g,x)),d.transform=x;const{x:y,y:w}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${w.origin*100}% 0`,p.animationValues?d.opacity=p===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:d.opacity=p===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const N in Ih){if(g[N]===void 0)continue;const{correct:E,applyTo:A,isCSSVariable:j}=Ih[N],S=x==="none"?g[N]:E(g[N],p);if(A){const Z=A.length;for(let C=0;C<Z;C++)d[A[C]]=S}else j?this.options.visualElement.renderState.vars[N]=S:d[N]=S}this.options.layoutId&&(d.pointerEvents=p===this?p1(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(Zx),this.root.sharedNodes.clear()}}}function sR(e){e.updateLayout()}function lR(e){var l;const a=((l=e.resumeFrom)==null?void 0:l.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:c}=e.layout,{animationType:u}=e.options,d=a.source!==e.layout.source;u==="size"?Ya(x=>{const y=d?a.measuredBox[x]:a.layoutBox[x],w=$t(y);y.min=i[x].min,y.max=y.min+w}):Wj(u,a.layoutBox,i)&&Ya(x=>{const y=d?a.measuredBox[x]:a.layoutBox[x],w=$t(i[x]);y.max=y.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[x].max=e.relativeTarget[x].min+w)});const h=Lr();sl(h,i,a.layoutBox);const f=Lr();d?sl(f,e.applyTransform(c,!0),a.measuredBox):sl(f,i,a.layoutBox);const p=!Gj(h);let g=!1;if(!e.resumeFrom){const x=e.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:y,layout:w}=x;if(y&&w){const N=Nt();Z1(N,a.layoutBox,y.layoutBox);const E=Nt();Z1(E,i,w.layoutBox),Yj(N,E)||(g=!0),x.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=N,e.relativeParent=x)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:a,delta:f,layoutDelta:h,hasLayoutChanged:p,hasRelativeLayoutChanged:g})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function iR(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 oR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function cR(e){e.clearSnapshot()}function Zx(e){e.clearMeasurements()}function Cx(e){e.isLayoutDirty=!1}function uR(e){const{visualElement:a}=e.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),e.resetTransform()}function Hx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function dR(e){e.resolveTargetDelta()}function hR(e){e.calcProjection()}function mR(e){e.resetSkewAndRotation()}function fR(e){e.removeLeadSnapshot()}function Vx(e,a,l){e.translate=nt(a.translate,0,l),e.scale=nt(a.scale,1,l),e.origin=a.origin,e.originPoint=a.originPoint}function _x(e,a,l,i){e.min=nt(a.min,l.min,i),e.max=nt(a.max,l.max,i)}function pR(e,a,l,i){_x(e.x,a.x,l.x,i),_x(e.y,a.y,l.y,i)}function gR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const xR={duration:.45,ease:[.4,0,.1,1]},Tx=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Lx=Tx("applewebkit/")&&!Tx("chrome/")?Math.round:Ma;function Rx(e){e.min=Lx(e.min),e.max=Lx(e.max)}function vR(e){Rx(e.x),Rx(e.y)}function Wj(e,a,l){return e==="position"||e==="preserve-aspect"&&!zL(jx(a),jx(l),.2)}function bR(e){var a;return e!==e.root&&((a=e.scroll)==null?void 0:a.wasRoot)}const yR=Jj({attachResizeListener:(e,a)=>ml(e,"resize",a),measureScroll:()=>{var e,a;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((a=document.body)==null?void 0:a.scrollTop)||0}},checkIsScrollRoot:()=>!0}),O2={current:void 0},eE=Jj({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!O2.current){const e=new yR({});e.mount(window),e.setOptions({layoutScroll:!0}),O2.current=e}return O2.current},resetTransform:(e,a)=>{e.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Bm=n.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function kx(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function wR(...e){return a=>{let l=!1;const i=e.map(c=>{const u=kx(c,a);return!l&&typeof u=="function"&&(l=!0),u});if(l)return()=>{for(let c=0;c<i.length;c++){const u=i[c];typeof u=="function"?u():kx(e[c],null)}}}}function AR(...e){return n.useCallback(wR(...e),e)}class jR extends n.Component{getSnapshotBeforeUpdate(a){const l=this.props.childRef.current;if(l&&a.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const i=l.offsetParent,c=qh(i)&&i.offsetWidth||0,u=qh(i)&&i.offsetHeight||0,d=this.props.sizeRef.current;d.height=l.offsetHeight||0,d.width=l.offsetWidth||0,d.top=l.offsetTop,d.left=l.offsetLeft,d.right=c-d.width-d.left,d.bottom=u-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function ER({children:e,isPresent:a,anchorX:l,anchorY:i,root:c,pop:u}){var y;const d=n.useId(),h=n.useRef(null),f=n.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=n.useContext(Bm),g=((y=e.props)==null?void 0:y.ref)??(e==null?void 0:e.ref),x=AR(h,g);return n.useInsertionEffect(()=>{const{width:w,height:N,top:E,left:A,right:j,bottom:S}=f.current;if(a||u===!1||!h.current||!w||!N)return;const Z=l==="left"?`left: ${A}`:`right: ${j}`,C=i==="bottom"?`bottom: ${S}`:`top: ${E}`;h.current.dataset.motionPopId=d;const H=document.createElement("style");p&&(H.nonce=p);const V=c??document.head;return V.appendChild(H),H.sheet&&H.sheet.insertRule(`
|
|
62
|
+
[data-motion-pop-id="${d}"] {
|
|
63
|
+
position: absolute !important;
|
|
64
|
+
width: ${w}px !important;
|
|
65
|
+
height: ${N}px !important;
|
|
66
|
+
${Z}px !important;
|
|
67
|
+
${C}px !important;
|
|
68
|
+
}
|
|
69
|
+
`),()=>{V.contains(H)&&V.removeChild(H)}},[a]),s.jsx(jR,{isPresent:a,childRef:h,sizeRef:f,pop:u,children:u===!1?e:n.cloneElement(e,{ref:x})})}const NR=({children:e,initial:a,isPresent:l,onExitComplete:i,custom:c,presenceAffectsLayout:u,mode:d,anchorX:h,anchorY:f,root:p})=>{const g=pm(MR),x=n.useId();let y=!0,w=n.useMemo(()=>(y=!1,{id:x,initial:a,isPresent:l,custom:c,onExitComplete:N=>{g.set(N,!0);for(const E of g.values())if(!E)return;i&&i()},register:N=>(g.set(N,!1),()=>g.delete(N))}),[l,g,i]);return u&&y&&(w={...w}),n.useMemo(()=>{g.forEach((N,E)=>g.set(E,!1))},[l]),n.useEffect(()=>{!l&&!g.size&&i&&i()},[l]),e=s.jsx(ER,{pop:d==="popLayout",isPresent:l,anchorX:h,anchorY:f,root:p,children:e}),s.jsx(k1.Provider,{value:w,children:e})};function MR(){return new Map}function tE(e=!0){const a=n.useContext(k1);if(a===null)return[!0,null];const{isPresent:l,onExitComplete:i,register:c}=a,u=n.useId();n.useEffect(()=>{if(e)return c(u)},[e]);const d=n.useCallback(()=>e&&i&&i(u),[u,i,e]);return!l&&i?[!1,d]:[!0]}const n1=e=>e.key||"";function Dx(e){const a=[];return n.Children.forEach(e,l=>{n.isValidElement(l)&&a.push(l)}),a}const za=({children:e,custom:a,initial:l=!0,onExitComplete:i,presenceAffectsLayout:c=!0,mode:u="sync",propagate:d=!1,anchorX:h="left",anchorY:f="top",root:p})=>{const[g,x]=tE(d),y=n.useMemo(()=>Dx(e),[e]),w=d&&!g?[]:y.map(n1),N=n.useRef(!0),E=n.useRef(y),A=pm(()=>new Map),j=n.useRef(new Set),[S,Z]=n.useState(y),[C,H]=n.useState(y);CA(()=>{N.current=!1,E.current=y;for(let k=0;k<C.length;k++){const R=n1(C[k]);w.includes(R)?(A.delete(R),j.current.delete(R)):A.get(R)!==!0&&A.set(R,!1)}},[C,w.length,w.join("-")]);const V=[];if(y!==S){let k=[...y];for(let R=0;R<C.length;R++){const O=C[R],U=n1(O);w.includes(U)||(k.splice(R,0,O),V.push(O))}return u==="wait"&&V.length&&(k=V),H(Dx(k)),Z(y),null}const{forceRender:T}=n.useContext(fm);return s.jsx(s.Fragment,{children:C.map(k=>{const R=n1(k),O=d&&!g?!1:y===C||w.includes(R),U=()=>{if(j.current.has(R))return;if(j.current.add(R),A.has(R))A.set(R,!0);else return;let X=!0;A.forEach(K=>{K||(X=!1)}),X&&(T==null||T(),H(E.current),d&&(x==null||x()),i&&i())};return s.jsx(NR,{isPresent:O,initial:!N.current||l?void 0:!1,custom:a,presenceAffectsLayout:c,mode:u,root:p,onExitComplete:O?void 0:U,anchorX:h,anchorY:f,children:k},R)})})},aE=n.createContext({strict:!1}),Ox={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 Fx=!1;function SR(){if(Fx)return;const e={};for(const a in Ox)e[a]={isEnabled:l=>Ox[a].some(i=>!!l[i])};Vj(e),Fx=!0}function nE(){return SR(),mL()}function ZR(e){const a=nE();for(const l in e)a[l]={...a[l],...e[l]};Vj(a)}const CR=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 C1(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||CR.has(e)}let rE=e=>!C1(e);function HR(e){typeof e=="function"&&(rE=a=>a.startsWith("on")?!C1(a):e(a))}try{HR(require("@emotion/is-prop-valid").default)}catch{}function VR(e,a,l){const i={};for(const c in e)c==="values"&&typeof e.values=="object"||(rE(c)||l===!0&&C1(c)||!a&&!C1(c)||e.draggable&&c.startsWith("onDrag"))&&(i[c]=e[c]);return i}const F1=n.createContext({});function _R(e,a){if(O1(e)){const{initial:l,animate:i}=e;return{initial:l===!1||hl(l)?l:void 0,animate:hl(i)?i:void 0}}return e.inherit!==!1?a:{}}function TR(e){const{initial:a,animate:l}=_R(e,n.useContext(F1));return n.useMemo(()=>({initial:a,animate:l}),[qx(a),qx(l)])}function qx(e){return Array.isArray(e)?e.join(" "):e}const $m=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sE(e,a,l){for(const i in a)!qt(a[i])&&!Oj(i,l)&&(e[i]=a[i])}function LR({transformTemplate:e},a){return n.useMemo(()=>{const l=$m();return qm(l,a,e),Object.assign({},l.vars,l.style)},[a])}function RR(e,a){const l=e.style||{},i={};return sE(i,l,e),Object.assign(i,LR(e,a)),i}function kR(e,a){const l={},i=RR(e,a);return e.drag&&e.dragListener!==!1&&(l.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(l.tabIndex=0),l.style=i,l}const lE=()=>({...$m(),attrs:{}});function DR(e,a,l,i){const c=n.useMemo(()=>{const u=lE();return Fj(u,a,zj(i),e.transformTemplate,e.style),{...u.attrs,style:{...u.style}}},[a]);if(e.style){const u={};sE(u,e.style,e),c.style={...u,...c.style}}return c}const OR=["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 Im(e){return typeof e!="string"||e.includes("-")?!1:!!(OR.indexOf(e)>-1||/[A-Z]/u.test(e))}function FR(e,a,l,{latestValues:i},c,u=!1,d){const f=(d??Im(e)?DR:kR)(a,i,c,e),p=VR(a,typeof e=="string",u),g=e!==n.Fragment?{...p,...f,ref:l}:{},{children:x}=a,y=n.useMemo(()=>qt(x)?x.get():x,[x]);return n.createElement(e,{...g,children:y})}function qR({scrapeMotionValuesFromProps:e,createRenderState:a},l,i,c){return{latestValues:zR(l,i,c,e),renderState:a()}}function zR(e,a,l,i){const c={},u=i(e,{});for(const y in u)c[y]=p1(u[y]);let{initial:d,animate:h}=e;const f=O1(e),p=Cj(e);a&&p&&!f&&e.inherit!==!1&&(d===void 0&&(d=a.initial),h===void 0&&(h=a.animate));let g=l?l.initial===!1:!1;g=g||d===!1;const x=g?h:d;if(x&&typeof x!="boolean"&&!D1(x)){const y=Array.isArray(x)?x:[x];for(let w=0;w<y.length;w++){const N=_m(e,y[w]);if(N){const{transitionEnd:E,transition:A,...j}=N;for(const S in j){let Z=j[S];if(Array.isArray(Z)){const C=g?Z.length-1:0;Z=Z[C]}Z!==null&&(c[S]=Z)}for(const S in E)c[S]=E[S]}}}return c}const iE=e=>(a,l)=>{const i=n.useContext(F1),c=n.useContext(k1),u=()=>qR(e,a,i,c);return l?u():pm(u)},BR=iE({scrapeMotionValuesFromProps:zm,createRenderState:$m}),$R=iE({scrapeMotionValuesFromProps:Bj,createRenderState:lE}),IR=Symbol.for("motionComponentSymbol");function UR(e,a,l){const i=n.useRef(l);n.useInsertionEffect(()=>{i.current=l});const c=n.useRef(null);return n.useCallback(u=>{var h;u&&((h=e.onMount)==null||h.call(e,u)),a&&(u?a.mount(u):a.unmount());const d=i.current;if(typeof d=="function")if(u){const f=d(u);typeof f=="function"&&(c.current=f)}else c.current?(c.current(),c.current=null):d(u);else d&&(d.current=u)},[a])}const oE=n.createContext({});function Hr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function PR(e,a,l,i,c,u){var Z,C;const{visualElement:d}=n.useContext(F1),h=n.useContext(aE),f=n.useContext(k1),p=n.useContext(Bm),g=p.reducedMotion,x=p.skipAnimations,y=n.useRef(null),w=n.useRef(!1);i=i||h.renderer,!y.current&&i&&(y.current=i(e,{visualState:a,parent:d,props:l,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:g,skipAnimations:x,isSVG:u}),w.current&&y.current&&(y.current.manuallyAnimateOnMount=!0));const N=y.current,E=n.useContext(oE);N&&!N.projection&&c&&(N.type==="html"||N.type==="svg")&&GR(y.current,l,c,E);const A=n.useRef(!1);n.useInsertionEffect(()=>{N&&A.current&&N.update(l,f)});const j=l[gj],S=n.useRef(!!j&&!((Z=window.MotionHandoffIsComplete)!=null&&Z.call(window,j))&&((C=window.MotionHasOptimisedAnimation)==null?void 0:C.call(window,j)));return CA(()=>{w.current=!0,N&&(A.current=!0,window.MotionIsMounted=!0,N.updateFeatures(),N.scheduleRenderMicrotask(),S.current&&N.animationState&&N.animationState.animateChanges())}),n.useEffect(()=>{N&&(!S.current&&N.animationState&&N.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var H;(H=window.MotionHandoffMarkAsComplete)==null||H.call(window,j)}),S.current=!1),N.enteringChildren=void 0)}),N}function GR(e,a,l,i){const{layoutId:c,layout:u,drag:d,dragConstraints:h,layoutScroll:f,layoutRoot:p,layoutCrossfade:g}=a;e.projection=new l(e.latestValues,a["data-framer-portal-id"]?void 0:cE(e.parent)),e.projection.setOptions({layoutId:c,layout:u,alwaysMeasureLayout:!!d||h&&Hr(h),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,crossfade:g,layoutScroll:f,layoutRoot:p})}function cE(e){if(e)return e.options.allowProjection!==!1?e.projection:cE(e.parent)}function F2(e,{forwardMotionProps:a=!1,type:l}={},i,c){i&&ZR(i);const u=l?l==="svg":Im(e),d=u?$R:BR;function h(p,g){let x;const y={...n.useContext(Bm),...p,layoutId:YR(p)},{isStatic:w}=y,N=TR(p),E=d(p,w);if(!w&&ZA){KR();const A=XR(y);x=A.MeasureLayout,N.visualElement=PR(e,E,y,c,A.ProjectionNode,u)}return s.jsxs(F1.Provider,{value:N,children:[x&&N.visualElement?s.jsx(x,{visualElement:N.visualElement,...y}):null,FR(e,p,UR(E,N.visualElement,g),E,w,a,u)]})}h.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=n.forwardRef(h);return f[IR]=e,f}function YR({layoutId:e}){const a=n.useContext(fm).id;return a&&e!==void 0?a+"-"+e:e}function KR(e,a){n.useContext(aE).strict}function XR(e){const a=nE(),{drag:l,layout:i}=a;if(!l&&!i)return{};const c={...l,...i};return{MeasureLayout:l!=null&&l.isEnabled(e)||i!=null&&i.isEnabled(e)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function QR(e,a){if(typeof Proxy>"u")return F2;const l=new Map,i=(u,d)=>F2(u,d,e,a),c=(u,d)=>i(u,d);return new Proxy(c,{get:(u,d)=>d==="create"?i:(l.has(d)||l.set(d,F2(d,void 0,e,a)),l.get(d))})}const JR=(e,a)=>a.isSVG??Im(e)?new HL(a):new EL(a,{allowProjection:e!==n.Fragment});class WR extends o0{constructor(a){super(a),a.animationState||(a.animationState=RL(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();D1(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:l}=this.node.prevProps||{};a!==l&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),(a=this.unmountControls)==null||a.call(this)}}let ek=0;class tk extends o0{constructor(){super(...arguments),this.id=ek++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:l}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===i)return;const c=this.node.animationState.setActive("exit",!a);l&&!a&&c.then(()=>{l(this.id)})}mount(){const{register:a,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const ak={animation:{Feature:WR},exit:{Feature:tk}};function Al(e){return{point:{x:e.pageX,y:e.pageY}}}const nk=e=>a=>km(a)&&e(a,Al(a));function ll(e,a,l,i){return ml(e,a,nk(l),i)}const uE=({current:e})=>e?e.ownerDocument.defaultView:null,zx=(e,a)=>Math.abs(e-a);function rk(e,a){const l=zx(e.x,a.x),i=zx(e.y,a.y);return Math.sqrt(l**2+i**2)}const Bx=new Set(["auto","scroll"]);class dE{constructor(a,l,{transformPagePoint:i,contextWindow:c=window,dragSnapToOrigin:u=!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=z2(this.lastMoveEventInfo,this.history),N=this.startEvent!==null,E=rk(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!N&&!E)return;const{point:A}=w,{timestamp:j}=Ot;this.history.push({...A,timestamp:j});const{onStart:S,onMove:Z}=this.handlers;N||(S&&S(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),Z&&Z(this.lastMoveEvent,w)},this.handlePointerMove=(w,N)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=q2(N,this.transformPagePoint),Xe.update(this.updatePoint,!0)},this.handlePointerUp=(w,N)=>{this.end();const{onEnd:E,onSessionEnd:A,resumeAnimation:j}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&j&&j(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=z2(w.type==="pointercancel"?this.lastMoveEventInfo:q2(N,this.transformPagePoint),this.history);this.startEvent&&E&&E(w,S),A&&A(w,S)},!km(a))return;this.dragSnapToOrigin=u,this.handlers=l,this.transformPagePoint=i,this.distanceThreshold=d,this.contextWindow=c||window;const f=Al(a),p=q2(f,this.transformPagePoint),{point:g}=p,{timestamp:x}=Ot;this.history=[{...g,timestamp:x}];const{onSessionStart:y}=l;y&&y(a,z2(p,this.history)),this.removeListeners=bl(ll(this.contextWindow,"pointermove",this.handlePointerMove),ll(this.contextWindow,"pointerup",this.handlePointerUp),ll(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(a){let l=a.parentElement;for(;l;){const i=getComputedStyle(l);(Bx.has(i.overflowX)||Bx.has(i.overflowY))&&this.scrollPositions.set(l,{x:l.scrollLeft,y:l.scrollTop}),l=l.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(a){const l=this.scrollPositions.get(a);if(!l)return;const i=a===window,c=i?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},u={x:c.x-l.x,y:c.y-l.y};u.x===0&&u.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=u.x,this.lastMoveEventInfo.point.y+=u.y):this.history.length>0&&(this.history[0].x-=u.x,this.history[0].y-=u.y),this.scrollPositions.set(a,c),Xe.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),l0(this.updatePoint)}}function q2(e,a){return a?{point:a(e.point)}:e}function $x(e,a){return{x:e.x-a.x,y:e.y-a.y}}function z2({point:e},a){return{point:e,delta:$x(e,hE(a)),offset:$x(e,sk(a)),velocity:lk(a,.1)}}function sk(e){return e[0]}function hE(e){return e[e.length-1]}function lk(e,a){if(e.length<2)return{x:0,y:0};let l=e.length-1,i=null;const c=hE(e);for(;l>=0&&(i=e[l],!(c.timestamp-i.timestamp>ka(a)));)l--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&c.timestamp-i.timestamp>ka(a)*2&&(i=e[1]);const u=Na(c.timestamp-i.timestamp);if(u===0)return{x:0,y:0};const d={x:(c.x-i.x)/u,y:(c.y-i.y)/u};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function ik(e,{min:a,max:l},i){return a!==void 0&&e<a?e=i?nt(a,e,i.min):Math.max(e,a):l!==void 0&&e>l&&(e=i?nt(l,e,i.max):Math.min(e,l)),e}function Ix(e,a,l){return{min:a!==void 0?e.min+a:void 0,max:l!==void 0?e.max+l-(e.max-e.min):void 0}}function ok(e,{top:a,left:l,bottom:i,right:c}){return{x:Ix(e.x,l,c),y:Ix(e.y,a,i)}}function Ux(e,a){let l=a.min-e.min,i=a.max-e.max;return a.max-a.min<e.max-e.min&&([l,i]=[i,l]),{min:l,max:i}}function ck(e,a){return{x:Ux(e.x,a.x),y:Ux(e.y,a.y)}}function uk(e,a){let l=.5;const i=$t(e),c=$t(a);return c>i?l=cl(a.min,a.max-i,e.min):i>c&&(l=cl(e.min,e.max-c,a.min)),Ja(0,1,l)}function dk(e,a){const l={};return a.min!==void 0&&(l.min=a.min-e.min),a.max!==void 0&&(l.max=a.max-e.min),l}const Uh=.35;function hk(e=Uh){return e===!1?e=0:e===!0&&(e=Uh),{x:Px(e,"left","right"),y:Px(e,"top","bottom")}}function Px(e,a,l){return{min:Gx(e,a),max:Gx(e,l)}}function Gx(e,a){return typeof e=="number"?e:e[a]||0}const mk=new WeakMap;class fk{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Nt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:l=!1,distanceThreshold:i}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const u=x=>{l&&this.snapToCursor(Al(x).point),this.stopAnimation()},d=(x,y)=>{const{drag:w,dragPropagation:N,onDragStart:E}=this.getProps();if(w&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$T(w),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=y,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ya(j=>{let S=this.getAxisMotionValue(j).get()||0;if(Qa.test(S)){const{projection:Z}=this.visualElement;if(Z&&Z.layout){const C=Z.layout.layoutBox[j];C&&(S=$t(C)*(parseFloat(S)/100))}}this.originPoint[j]=S}),E&&Xe.update(()=>E(x,y),!1,!0),kh(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},h=(x,y)=>{this.latestPointerEvent=x,this.latestPanInfo=y;const{dragPropagation:w,dragDirectionLock:N,onDirectionLock:E,onDrag:A}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:j}=y;if(N&&this.currentDirection===null){this.currentDirection=gk(j),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",y.point,j),this.updateAxis("y",y.point,j),this.visualElement.render(),A&&Xe.update(()=>A(x,y),!1,!0)},f=(x,y)=>{this.latestPointerEvent=x,this.latestPanInfo=y,this.stop(x,y),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:g}=this.getProps();this.panSession=new dE(a,{onSessionStart:u,onStart:d,onMove:h,onSessionEnd:f,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:i,contextWindow:uE(this.visualElement),element:this.visualElement.current})}stop(a,l){const i=a||this.latestPointerEvent,c=l||this.latestPanInfo,u=this.isDragging;if(this.cancel(),!u||!c||!i)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:h}=this.getProps();h&&Xe.postRender(()=>h(i,c))}cancel(){this.isDragging=!1;const{projection:a,animationState:l}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,l,i){const{drag:c}=this.getProps();if(!i||!r1(a,c,this.currentDirection))return;const u=this.getAxisMotionValue(a);let d=this.originPoint[a]+i[a];this.constraints&&this.constraints[a]&&(d=ik(d,this.constraints[a],this.elastic[a])),u.set(d)}resolveConstraints(){var u;const{dragConstraints:a,dragElastic:l}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(u=this.visualElement.projection)==null?void 0:u.layout,c=this.constraints;a&&Hr(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&i?this.constraints=ok(i.layoutBox,a):this.constraints=!1,this.elastic=hk(l),c!==this.constraints&&!Hr(a)&&i&&this.constraints&&!this.hasMutatedConstraints&&Ya(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=dk(i.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:l}=this.getProps();if(!a||!Hr(a))return!1;const i=a.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const u=vL(i,c.root,this.visualElement.getTransformPagePoint());let d=ck(c.layout.layoutBox,u);if(l){const h=l(pL(d));this.hasMutatedConstraints=!!h,h&&(d=Tj(h))}return d}startAnimation(a){const{drag:l,dragMomentum:i,dragElastic:c,dragTransition:u,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),f=this.constraints||{},p=Ya(g=>{if(!r1(g,l,this.currentDirection))return;let x=f&&f[g]||{};d&&(x={min:0,max:0});const y=c?200:1e6,w=c?40:1e7,N={type:"inertia",velocity:i?a[g]:0,bounceStiffness:y,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...u,...x};return this.startAxisValueAnimation(g,N)});return Promise.all(p).then(h)}startAxisValueAnimation(a,l){const i=this.getAxisMotionValue(a);return kh(this.visualElement,a),i.start(Vm(a,i,0,l,this.visualElement,!1))}stopAnimation(){Ya(a=>this.getAxisMotionValue(a).stop())}getAxisMotionValue(a){const l=`_drag${a.toUpperCase()}`,i=this.visualElement.getProps(),c=i[l];return c||this.visualElement.getValue(a,(i.initial?i.initial[a]:void 0)||0)}snapToCursor(a){Ya(l=>{const{drag:i}=this.getProps();if(!r1(l,i,this.currentDirection))return;const{projection:c}=this.visualElement,u=this.getAxisMotionValue(l);if(c&&c.layout){const{min:d,max:h}=c.layout.layoutBox[l],f=u.get()||0;u.set(a[l]-nt(d,h,.5)+f)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:l}=this.getProps(),{projection:i}=this.visualElement;if(!Hr(l)||!i||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Ya(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const f=h.get();c[d]=uk({min:f,max:f},this.constraints[d])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),Ya(d=>{if(!r1(d,a,null))return;const h=this.getAxisMotionValue(d),{min:f,max:p}=this.constraints[d];h.set(nt(f,p,c[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;mk.set(this.visualElement,this);const a=this.visualElement.current,l=ll(a,"pointerdown",p=>{const{drag:g,dragListener:x=!0}=this.getProps(),y=p.target,w=y!==a&&KT(y);g&&x&&!w&&this.start(p)});let i;const c=()=>{const{dragConstraints:p}=this.getProps();Hr(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),i||(i=pk(a,p.current,()=>this.scalePositionWithinConstraints())))},{projection:u}=this.visualElement,d=u.addEventListener("measure",c);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),Xe.read(c);const h=ml(window,"resize",()=>this.scalePositionWithinConstraints()),f=u.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:g})=>{this.isDragging&&g&&(Ya(x=>{const y=this.getAxisMotionValue(x);y&&(this.originPoint[x]+=p[x].translate,y.set(y.get()+p[x].translate))}),this.visualElement.render())}));return()=>{h(),l(),d(),f&&f(),i&&i()}}getProps(){const a=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:i=!1,dragPropagation:c=!1,dragConstraints:u=!1,dragElastic:d=Uh,dragMomentum:h=!0}=a;return{...a,drag:l,dragDirectionLock:i,dragPropagation:c,dragConstraints:u,dragElastic:d,dragMomentum:h}}}function Yx(e){let a=!0;return()=>{if(a){a=!1;return}e()}}function pk(e,a,l){const i=tx(e,Yx(l)),c=tx(a,Yx(l));return()=>{i(),c()}}function r1(e,a,l){return(a===!0||a===e)&&(l===null||l===e)}function gk(e,a=10){let l=null;return Math.abs(e.y)>a?l="y":Math.abs(e.x)>a&&(l="x"),l}class xk extends o0{constructor(a){super(a),this.removeGroupControls=Ma,this.removeListeners=Ma,this.controls=new fk(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ma}update(){const{dragControls:a}=this.node.getProps(),{dragControls:l}=this.node.prevProps||{};a!==l&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const B2=e=>(a,l)=>{e&&Xe.update(()=>e(a,l),!1,!0)};class vk extends o0{constructor(){super(...arguments),this.removePointerDownListener=Ma}onPointerDown(a){this.session=new dE(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:uE(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:l,onPan:i,onPanEnd:c}=this.node.getProps();return{onSessionStart:B2(a),onStart:B2(l),onMove:B2(i),onEnd:(u,d)=>{delete this.session,c&&Xe.postRender(()=>c(u,d))}}}mount(){this.removePointerDownListener=ll(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let $2=!1;class bk extends n.Component{componentDidMount(){const{visualElement:a,layoutGroup:l,switchLayoutGroup:i,layoutId:c}=this.props,{projection:u}=a;u&&(l.group&&l.group.add(u),i&&i.register&&c&&i.register(u),$2&&u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),g1.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:l,visualElement:i,drag:c,isPresent:u}=this.props,{projection:d}=i;return d&&(d.isPresent=u,a.layoutDependency!==l&&d.setOptions({...d.options,layoutDependency:l}),$2=!0,c||a.layoutDependency!==l||l===void 0||a.isPresent!==u?d.willUpdate():this.safeToRemove(),a.isPresent!==u&&(u?d.promote():d.relegate()||Xe.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),Rm.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:l,switchLayoutGroup:i}=this.props,{projection:c}=a;$2=!0,c&&(c.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(c),i&&i.deregister&&i.deregister(c))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function mE(e){const[a,l]=tE(),i=n.useContext(fm);return s.jsx(bk,{...e,layoutGroup:i,switchLayoutGroup:n.useContext(oE),isPresent:a,safeToRemove:l})}const yk={pan:{Feature:vk},drag:{Feature:xk,ProjectionNode:eE,MeasureLayout:mE}};function Kx(e,a,l){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",l==="Start");const c="onHover"+l,u=i[c];u&&Xe.postRender(()=>u(a,Al(a)))}class wk extends o0{mount(){const{current:a}=this.node;a&&(this.unmount=UT(a,(l,i)=>(Kx(this.node,i,"Start"),c=>Kx(this.node,c,"End"))))}unmount(){}}class Ak extends o0{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!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(ml(this.node.current,"focus",()=>this.onFocus()),ml(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Xx(e,a,l){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",l==="Start");const c="onTap"+(l==="End"?"":l),u=i[c];u&&Xe.postRender(()=>u(a,Al(a)))}class jk extends o0{mount(){const{current:a}=this.node;if(!a)return;const{globalTapTarget:l,propagate:i}=this.node.props;this.unmount=QT(a,(c,u)=>(Xx(this.node,u,"Start"),(d,{success:h})=>Xx(this.node,d,h?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:(i==null?void 0:i.tap)===!1})}unmount(){}}const Ph=new WeakMap,I2=new WeakMap,Ek=e=>{const a=Ph.get(e.target);a&&a(e)},Nk=e=>{e.forEach(Ek)};function Mk({root:e,...a}){const l=e||document;I2.has(l)||I2.set(l,{});const i=I2.get(l),c=JSON.stringify(a);return i[c]||(i[c]=new IntersectionObserver(Nk,{root:e,...a})),i[c]}function Sk(e,a,l){const i=Mk(a);return Ph.set(e,l),i.observe(e),()=>{Ph.delete(e),i.unobserve(e)}}const Zk={some:0,all:1};class Ck extends o0{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:l,margin:i,amount:c="some",once:u}=a,d={root:l?l.current:void 0,rootMargin:i,threshold:typeof c=="number"?c:Zk[c]},h=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,u&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:x}=this.node.getProps(),y=p?g:x;y&&y(f)};return Sk(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:l}=this.node;["amount","margin","root"].some(Hk(a,l))&&this.startObserver()}unmount(){}}function Hk({viewport:e={}},{viewport:a={}}={}){return l=>e[l]!==a[l]}const Vk={inView:{Feature:Ck},tap:{Feature:jk},focus:{Feature:Ak},hover:{Feature:wk}},_k={layout:{ProjectionNode:eE,MeasureLayout:mE}},Tk={...ak,...Vk,...yk,..._k},Te=QR(Tk,JR),Lk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Rk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,152l-48,48V104Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),kk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Dk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Ok=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,128l-72,72V56Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Fk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,80v96H48V80Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),qk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),zk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Bk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),$k=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,56V96H32V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Ik=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Uk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Pk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Gk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Yk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Kk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Xk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Qk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,160H48l80-80Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Jk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,40V208H152V40Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Wk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,64V208H32V48H208A16,16,0,0,1,224,64Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),eD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),tD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),aD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),nD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),rD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),sD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),lD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),iD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),oD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),cD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,128a32,32,0,1,1-32-32A32,32,0,0,1,160,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),uD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),dD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),hD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),mD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),fD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),pD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),gD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),xD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),vD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,56V176c-64,55.43-112-55.43-176,0V56C112,.57,160,111.43,224,56Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),bD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),yD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M248.49,71.51l-32-32a12,12,0,0,0-17,17L211,68h-3c-52,0-64.8,30.71-75.08,55.38-8.82,21.17-15.45,37.05-42.75,40.09a44,44,0,1,0,.28,24.08c43.34-3.87,55.07-32,64.63-54.93C164.9,109,172,92,208,92h3l-11.52,11.51a12,12,0,0,0,17,17l32-32A12,12,0,0,0,248.49,71.51ZM48,196a20,20,0,1,1,20-20A20,20,0,0,1,48,196Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M80,176a32,32,0,1,1-32-32A32,32,0,0,1,80,176Z",opacity:"0.2"}),n.createElement("path",{d:"M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M245.66,85.66l-32,32a8,8,0,0,1-11.32-11.32L220.69,88H208c-38.67,0-46.59,19-56.62,43.08C141.05,155.88,129.33,184,80,184H79a32,32,0,1,1,0-16h1c38.67,0,46.59-19,56.62-43.08C147,100.12,158.67,72,208,72h12.69L202.34,53.66a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,245.66,85.66Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M244.24,75.76l-32-32a6,6,0,0,0-8.48,8.48L225.51,74H208c-48,0-59.44,27.46-69.54,51.69-9.43,22.64-17.66,42.33-53,44.16a38,38,0,1,0,.06,12c43.34-2.06,54.29-28.29,64-51.55C159.44,106.53,168,86,208,86h17.51l-21.75,21.76a6,6,0,1,0,8.48,8.48l32-32A6,6,0,0,0,244.24,75.76ZM48,202a26,26,0,1,1,26-26A26,26,0,0,1,48,202Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M242.83,77.17l-32-32a4,4,0,0,0-5.66,5.66L230.34,76H208c-46.67,0-57.84,26.81-67.69,50.46-9.46,22.69-18.4,44.16-56.55,45.48a36,36,0,1,0,0,8c43.49-1.42,54.33-27.39,63.91-50.39C157.45,106.12,166.67,84,208,84h22.34l-25.17,25.17a4,4,0,0,0,5.66,5.66l32-32A4,4,0,0,0,242.83,77.17ZM48,204a28,28,0,1,1,28-28A28,28,0,0,1,48,204Z"}))]]),wD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),AD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),jD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),ED=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,64a24,24,0,1,1-24-24A24,24,0,0,1,224,64Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),ND=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),MD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),SD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),ZD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),CD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,56v64H160V56ZM40,208a8,8,0,0,0,8,8H88a8,8,0,0,0,8-8V120H40Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),HD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),VD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),_D=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,64V192H40V64Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),TD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,64V192H128V64Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),LD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),RD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),kD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),DD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),OD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.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"}),n.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"}))],["fill",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128Z"}))]]),FD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),qD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,160l-56,56V160Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),zD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M80,40V216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),BD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),$D=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),ID=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),UD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),PD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),GD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),YD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),KD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),XD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),QD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),JD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),WD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M96,40l33.52,88H56Zm104,88H129.52L160,208Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),eO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),tO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),aO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),nO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),rO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),sO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),lO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),iO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),oO=new Map([["bold",n.createElement(n.Fragment,null,n.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,96H60V60H96ZM200,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-96,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,60H60V160H96Zm104-60H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,200,136Zm-4,60H160V160h36Z"}))],["duotone",n.createElement(n.Fragment,null,n.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,56Zm88-8H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Zm-96,96H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96,0H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,200,144Z",opacity:"0.2"}),n.createElement("path",{d:"M200,136H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48ZM104,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,64H56V56h48v48Zm96-64H152a16,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-96,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,64H56V152h48v48Z"}))],["fill",n.createElement(n.Fragment,null,n.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,56Zm80-16H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm-96,96H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96,0H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Z"}))],["light",n.createElement(n.Fragment,null,n.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,2Zm94-62H152a14,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-98,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,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z"}))],["regular",n.createElement(n.Fragment,null,n.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,64H56V56h48v48Zm96-64H152a16,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-96,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,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z"}))],["thin",n.createElement(n.Fragment,null,n.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,4Zm92-60H152a12,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,4ZM104,140H56a12,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,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,200,140Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Z"}))]]),cO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),uO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),dO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,128a48,48,0,1,1-48-48A48,48,0,0,1,176,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),hO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,136a88,88,0,1,1-88-88A88,88,0,0,1,216,136Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),mO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),fO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),pO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,56v64L168,56Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),gO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),xO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),vO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M168,100a60,60,0,1,1-60-60A60,60,0,0,1,168,100Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),bO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M168,100a60,60,0,1,1-60-60A60,60,0,0,1,168,100Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),yO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M136,108A52,52,0,1,1,84,56,52,52,0,0,1,136,108Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),wO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),AO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),jO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,96v64H48V96Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),EO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),NO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),MO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),SO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),ZO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),CO=n.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),de=n.forwardRef((e,a)=>{const{alt:l,color:i,size:c,weight:u,mirrored:d,children:h,weights:f,...p}=e,{color:g="currentColor",size:x,weight:y="regular",mirrored:w=!1,...N}=n.useContext(CO);return n.createElement("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:c??x,height:c??x,fill:i??g,viewBox:"0 0 256 256",transform:d||w?"scale(-1, 1)":void 0,...N,...p},!!l&&n.createElement("title",null,l),h,f.get(u??y))});de.displayName="IconBase";const fE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:Lk}));fE.displayName="AddressBookIcon";const pE=fE,gE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:Rk}));gE.displayName="ArrowBendDownRightIcon";const HO=gE,xE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:kk}));xE.displayName="ArrowClockwiseIcon";const jl=xE,vE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:Dk}));vE.displayName="ArrowLeftIcon";const Xr=vE,bE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:Ok}));bE.displayName="ArrowRightIcon";const Um=bE,yE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:Fk}));yE.displayName="ArrowsLeftRightIcon";const Gh=yE,wE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:qk}));wE.displayName="BellRingingIcon";const Pm=wE,AE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:zk}));AE.displayName="BookOpenIcon";const jE=AE,EE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:Bk}));EE.displayName="BrainIcon";const VO=EE,NE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:$k}));NE.displayName="BrowserIcon";const Yh=NE,ME=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:Ik}));ME.displayName="BuildingsIcon";const Kh=ME,SE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:Uk}));SE.displayName="CalendarBlankIcon";const El=SE,ZE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:Pk}));ZE.displayName="CalendarIcon";const _O=ZE,CE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:Gk}));CE.displayName="CalendarCheckIcon";const TO=CE,HE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:Yk}));HE.displayName="CameraIcon";const Xh=HE,VE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:Kk}));VE.displayName="CaretDownIcon";const tn=VE,_E=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:Xk}));_E.displayName="CaretRightIcon";const Nl=_E,TE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:Qk}));TE.displayName="CaretUpIcon";const LO=TE,LE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:Jk}));LE.displayName="ChartBarIcon";const RE=LE,kE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:Wk}));kE.displayName="ChartLineUpIcon";const RO=kE,DE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:eD}));DE.displayName="ChatCircleIcon";const H1=DE,OE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:tD}));OE.displayName="ChatCircleDotsIcon";const x1=OE,FE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:aD}));FE.displayName="CheckIcon";const zr=FE,qE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:nD}));qE.displayName="CheckCircleIcon";const F0=qE,zE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:rD}));zE.displayName="CircleNotchIcon";const bt=zE,BE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:sD}));BE.displayName="ClipboardTextIcon";const kO=BE,$E=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:lD}));$E.displayName="ClockIcon";const Br=$E,IE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:iD}));IE.displayName="ClockCounterClockwiseIcon";const UE=IE,PE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:oD}));PE.displayName="CpuIcon";const DO=PE,GE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:cD}));GE.displayName="CrosshairIcon";const OO=GE,YE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:uD}));YE.displayName="CubeIcon";const Qh=YE,KE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:dD}));KE.displayName="CurrencyDollarIcon";const XE=KE,QE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:hD}));QE.displayName="DotsSixVerticalIcon";const FO=QE,JE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:mD}));JE.displayName="DownloadIcon";const qO=JE,WE=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:fD}));WE.displayName="EjectIcon";const zO=WE,eN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:pD}));eN.displayName="EnvelopeIcon";const BO=eN,tN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:gD}));tN.displayName="EyeIcon";const Gm=tN,aN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:xD}));aN.displayName="FileTextIcon";const $O=aN,nN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:vD}));nN.displayName="FlagIcon";const IO=nN,rN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:bD}));rN.displayName="FloppyDiskIcon";const UO=rN,sN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:yD}));sN.displayName="FlowArrowIcon";const PO=sN,lN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:wD}));lN.displayName="FunnelIcon";const GO=lN,iN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:AD}));iN.displayName="GearIcon";const YO=iN,oN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:jD}));oN.displayName="GearSixIcon";const cN=oN,uN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:ED}));uN.displayName="GitBranchIcon";const dN=uN,hN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:ND}));hN.displayName="GlobeIcon";const Ml=hN,mN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:MD}));mN.displayName="HandIcon";const Ym=mN,fN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:SD}));fN.displayName="HandshakeIcon";const KO=fN,pN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:ZD}));pN.displayName="HeadsetIcon";const XO=pN,gN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:CD}));gN.displayName="KanbanIcon";const Km=gN,xN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:HD}));xN.displayName="LightbulbIcon";const Qx=xN,vN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:VD}));vN.displayName="LightningIcon";const ca=vN,bN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:_D}));bN.displayName="ListIcon";const yN=bN,wN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:TD}));wN.displayName="ListChecksIcon";const q1=wN,AN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:LD}));AN.displayName="MagnetIcon";const QO=AN,jN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:RD}));jN.displayName="MagnifyingGlassIcon";const Mn=jN,EN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:kD}));EN.displayName="MicrophoneIcon";const T0=EN,NN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:DD}));NN.displayName="MicrophoneSlashIcon";const MN=NN,SN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:OD}));SN.displayName="MinusIcon";const JO=SN,ZN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:FD}));ZN.displayName="NewspaperIcon";const Jh=ZN,CN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:qD}));CN.displayName="NoteIcon";const WO=CN,HN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:zD}));HN.displayName="NotebookIcon";const eF=HN,VN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:BD}));VN.displayName="PaperPlaneRightIcon";const Wh=VN,_N=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:$D}));_N.displayName="PauseIcon";const tF=_N,TN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:ID}));TN.displayName="PencilIcon";const z1=TN,LN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:UD}));LN.displayName="PencilLineIcon";const aF=LN,RN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:PD}));RN.displayName="PencilSimpleIcon";const em=RN,kN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:GD}));kN.displayName="PhoneDisconnectIcon";const nF=kN,DN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:YD}));DN.displayName="PlayIcon";const Xm=DN,ON=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:KD}));ON.displayName="PlugIcon";const Qm=ON,FN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:XD}));FN.displayName="PlugsConnectedIcon";const $r=FN,qN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:QD}));qN.displayName="PlusIcon";const yt=qN,zN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:JD}));zN.displayName="PowerIcon";const Jx=zN,BN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:WD}));BN.displayName="PulseIcon";const Fr=BN,$N=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:eO}));$N.displayName="QrCodeIcon";const Wx=$N,IN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:tO}));IN.displayName="RobotIcon";const Wa=IN,UN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:aO}));UN.displayName="ShareNetworkIcon";const tm=UN,PN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:nO}));PN.displayName="ShieldCheckIcon";const GN=PN,YN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:rO}));YN.displayName="ShuffleIcon";const rF=YN,KN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:sO}));KN.displayName="SkipForwardIcon";const sF=KN,XN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:lO}));XN.displayName="SpinnerIcon";const QN=XN,JN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:iO}));JN.displayName="SpinnerGapIcon";const lF=JN,WN=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:oO}));WN.displayName="SquaresFourIcon";const iF=WN,eM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:cO}));eM.displayName="StarIcon";const oF=eM,tM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:uO}));tM.displayName="TagIcon";const cF=tM,aM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:dO}));aM.displayName="TargetIcon";const am=aM,nM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:hO}));nM.displayName="TimerIcon";const uF=nM,rM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:mO}));rM.displayName="TrashIcon";const It=rM,sM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:fO}));sM.displayName="TreeStructureIcon";const e7=sM,lM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:pO}));lM.displayName="TrendUpIcon";const nm=lM,iM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:gO}));iM.displayName="UploadIcon";const dF=iM,oM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:xO}));oM.displayName="UserCircleIcon";const t7=oM,cM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:vO}));cM.displayName="UserGearIcon";const hF=cM,uM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:bO}));uM.displayName="UserPlusIcon";const mF=uM,dM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:yO}));dM.displayName="UsersIcon";const fF=dM,hM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:wO}));hM.displayName="UsersThreeIcon";const mM=hM,fM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:AO}));fM.displayName="WarningIcon";const Jm=fM,pM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:jO}));pM.displayName="WaveformIcon";const a7=pM,gM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:EO}));gM.displayName="WebhooksLogoIcon";const pF=gM,xM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:NO}));xM.displayName="WifiHighIcon";const gF=xM,vM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:MO}));vM.displayName="WrenchIcon";const xF=vM,bM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:SO}));bM.displayName="XIcon";const Sa=bM,yM=n.forwardRef((e,a)=>n.createElement(de,{ref:a,...e,weights:ZO}));yM.displayName="XCircleIcon";const Sl=yM,rm=new EventTarget;function ue(e,a){rm.dispatchEvent(new CustomEvent("toast",{detail:{type:e,message:a}}))}const vF={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 bF(){const[e,a]=n.useState([]);n.useEffect(()=>{const i=c=>{const{type:u,message:d}=c.detail,h=crypto.randomUUID();a(f=>[...f.slice(-4),{id:h,type:u,message:d}]),setTimeout(()=>{a(f=>f.filter(p=>p.id!==h))},5e3)};return rm.addEventListener("toast",i),()=>rm.removeEventListener("toast",i)},[]);const l=i=>{a(c=>c.filter(u=>u.id!==i))};return s.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 max-w-sm",children:s.jsx(za,{children:e.map(i=>s.jsxs(Te.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 ${vF[i.type]}`,children:[s.jsx("span",{className:"flex-1",children:i.message}),s.jsx("button",{onClick:()=>l(i.id),className:"opacity-60 hover:opacity-100",children:s.jsx(Sa,{size:14})})]},i.id))})})}function Ae(e,a=[]){const[l,i]=n.useState(null),[c,u]=n.useState(!!e),[d,h]=n.useState(null),[f,p]=n.useState(0),g=n.useCallback(()=>p(x=>x+1),[]);return n.useEffect(()=>{if(!e)return;let x=!1;return u(!0),me(e).then(y=>{x||(i(y.data),h(null))}).catch(y=>{x||h(y.message)}).finally(()=>{x||u(!1)}),()=>{x=!0}},[e,f,...a]),{data:l,loading:c,error:d,refetch:g}}function Wm(){const[e,a]=n.useState("connected"),[l,i]=n.useState(!0),[c,u]=n.useState(!0);return n.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";a(p),i(h.data.modelReady??!0)}}).catch(()=>{}).finally(()=>{d||u(!1)}),()=>{d=!0}},[]),{tier:e,modelReady:l,loading:c}}let Wt=null,U2=null;const sm=new Set,yF=3e3;function wF(){const e=Nn(),a=window.location.protocol==="https:"?"wss:":"ws:",l=window.location.host;return`${a}//${l}/ws?token=${e}`}function ef(){if(!((Wt==null?void 0:Wt.readyState)===WebSocket.OPEN||(Wt==null?void 0:Wt.readyState)===WebSocket.CONNECTING||!Nn()))try{Wt=new WebSocket(wF()),Wt.onmessage=a=>{try{const l=JSON.parse(a.data);for(const i of sm)i(l.type,l.data)}catch{}},Wt.onclose=()=>{Wt=null,n7()},Wt.onerror=()=>{Wt==null||Wt.close()}}catch{n7()}}function n7(){U2||(U2=setTimeout(()=>{U2=null,ef()},yF))}function wM(e){return sm.add(e),()=>sm.delete(e)}function Ba(e){const[a,l]=n.useState(0);return n.useEffect(()=>(ef(),wM(i=>{e.includes(i)&&l(c=>c+1)})),[e.join(",")]),a}function tf(e){const a=n.useRef(e);n.useEffect(()=>{a.current=e}),n.useEffect(()=>(ef(),wM((l,i)=>{a.current(l,i)})),[])}function AF(){tf(n.useCallback((e,a)=>{const l=a;switch(e){case"task:completed":ue("success",`Task completed${l!=null&&l.taskId?` (${l.taskId.slice(0,8)})`:""}`);break;case"task:failed":ue("error",`Task failed: ${(l==null?void 0:l.error)||"Unknown error"}`);break;case"cloud:connected":ue("info","Connected to cloud");break;case"cloud:disconnected":ue("error",`Disconnected: ${(l==null?void 0:l.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 ${(l==null?void 0:l.pct)||"?"}% capacity`);break;case"budget:exceeded":ue("error",`Budget exceeded: ${(l==null?void 0:l.reason)||"Limit reached"}`);break;case"model:switch-started":ue("info",`Switching model to ${(l==null?void 0:l.model)||"new model"}...`);break;case"model:switch-complete":ue("success",`Now using ${(l==null?void 0:l.model)||"model"} via ${(l==null?void 0:l.provider)||"local"}`);break;case"model:switch-failed":ue("error",`Model switch failed: ${(l==null?void 0:l.reason)||"Unknown error"}`);break;case"inference:capabilities-changed":{const i=a;i!=null&&i.turboQuantActive&&ue("info",`TurboQuant ${i.turboQuantBits}-bit active via ${i.provider}`);break}}},[]))}function jF({children:e}){return s.jsx(Te.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 EF=[{path:"/",label:"Chat",icon:H1,group:"primary"},{path:"/dashboard",label:"Overview",icon:iF,group:"primary"},{path:"/tasks",label:"Tasks",icon:q1,group:"primary"},{path:"/activity",label:"Activity",icon:Fr,group:"primary"},{path:"/messages",label:"Messages",icon:H1,group:"primary"},{path:"/agents",label:"Agents",icon:Wa,group:"manage"},{path:"/projects",label:"Projects",icon:Km,group:"manage"},{path:"/workflows",label:"Workflows",icon:PO,group:"manage"},{path:"/automations",label:"Automations",icon:ca,group:"manage"},{path:"/templates",label:"Templates",icon:Qh,group:"manage"},{path:"/schedules",label:"Schedules",icon:El,group:"manage"},{path:"/approvals",label:"Approvals",icon:GN,group:"manage"},{path:"/goals",label:"Goals",icon:am,group:"manage"},{path:"/revenue",label:"Revenue",icon:XE,group:"manage"},{path:"/messaging",label:"Messaging",icon:x1,group:"connect"},{path:"/peers",label:"Peers",icon:tm,group:"connect"},{path:"/team",label:"Team",icon:mM,group:"connect"},{path:"/connections",label:"Connections",icon:$r,group:"connect"},{path:"/webhook-events",label:"Webhooks",icon:Qm,group:"configure"},{path:"/browser",label:"Browser",icon:Yh,group:"configure"},{path:"/briefings",label:"Briefings",icon:Jh,group:"configure"},{path:"/podcast",label:"Podcast",icon:T0,group:"configure"},{path:"/knowledge",label:"Knowledge",icon:jE,group:"configure"},{path:"/settings",label:"Settings",icon:cN,group:"configure"}];function NF(e){const a=Math.floor(e/3600),l=Math.floor(e%3600/60);return a>0?`${a}h ${l}m`:`${l}m`}function MF({label:e,children:a}){return s.jsxs("div",{children:[s.jsx("p",{className:"text-[10px] uppercase tracking-widest text-neutral-600 px-3 mb-1.5",children:e}),s.jsx("div",{className:"space-y-0.5",children:a})]})}function SF({path:e,label:a,icon:l,isActive:i}){return s.jsxs(k0,{to:e,"data-testid":`runtime-nav-${a.toLowerCase()}`,className:`relative flex items-center gap-3 px-3 py-2 text-sm rounded-md transition-colors ${i?"text-white":"text-neutral-400 hover:text-white hover:bg-white/5"}`,children:[i&&s.jsx(Te.div,{layoutId:"sidebar-active",className:"absolute inset-0 bg-white/10 rounded-md",transition:{type:"spring",stiffness:350,damping:30}}),s.jsxs("span",{className:"relative z-10 flex items-center gap-3",children:[s.jsx(l,{size:16,weight:"bold"}),a]})]})}function r7({health:e,tier:a,tierLoading:l,visibleNav:i,pathname:c,onClose:u}){const d=p=>p==="/"?c==="/"||c==="":c.startsWith(p),h=[{key:"primary"},{key:"manage",label:"Manage"},{key:"connect",label:"Connect"},{key:"configure",label:"Configure"}],f=p=>p.map(g=>s.jsx(SF,{path:g.path,label:g.label,icon:g.icon,isActive:d(g.path)},g.path));return s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsxs("div",{className:"p-4 border-b border-white/10 flex items-center justify-between",children:[s.jsxs("span",{className:"text-sm uppercase tracking-widest",children:[s.jsx("span",{className:"font-bold",children:"OHWOW"}),s.jsx("span",{className:"font-light",children:".FUN"})]}),u&&s.jsx("button",{onClick:u,className:"text-neutral-400 hover:text-white transition-colors md:hidden",children:s.jsx(Sa,{size:18})})]}),s.jsx("nav",{className:"flex-1 overflow-y-auto p-3 space-y-5",children:h.map(({key:p,label:g})=>{const x=i.filter(y=>y.group===p);return x.length===0?null:g?s.jsx(MF,{label:g,children:f(x)},p):s.jsx("div",{className:"space-y-0.5",children:f(x)},p)})}),s.jsx("div",{className:"p-3 border-t border-white/10",children:s.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-lg bg-white/[0.03]",children:[s.jsx("div",{className:"flex-1 min-w-0",children:s.jsxs("div",{className:"flex items-center gap-2",children:[e&&s.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full ${e.status==="healthy"?"bg-success":"bg-warning"}`}),s.jsx("span",{className:"text-xs text-neutral-400",children:e?`v${e.version}`:"Starting..."}),e&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-white/10 text-xs",children:"|"}),s.jsx("span",{className:"text-xs text-neutral-500",children:NF(e.uptime)})]})]})}),!l&&s.jsx("span",{"data-testid":"runtime-tier-badge",className:`inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-medium ${a==="free"?"bg-cyan-500/15 text-cyan-400":"bg-success/15 text-success"}`,children:a==="free"?"Local":"Cloud"})]})})]})}function ZF(){const e=en(),{data:a}=Ae("/health"),{tier:l,modelReady:i,loading:c}=Wm();AF();const[u,d]=n.useState(!1),[h,f]=n.useState(()=>{try{return localStorage.getItem("ohwow-model-banner-dismissed")==="1"}catch{return!1}});n.useEffect(()=>{d(!1)},[e.pathname]);const p=!c&&!i&&!h,g=()=>{f(!0);try{localStorage.setItem("ohwow-model-banner-dismissed","1")}catch{}},x=EF;return s.jsxs("div",{className:"flex h-dvh bg-black text-white",children:[s.jsx("aside",{className:"hidden md:flex w-64 border-r border-white/10 flex-col h-dvh sticky top-0",children:s.jsx(r7,{health:a??null,tier:l,tierLoading:c,visibleNav:x,pathname:e.pathname})}),s.jsx(za,{children:u&&s.jsxs(s.Fragment,{children:[s.jsx(Te.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>d(!1),className:"fixed inset-0 bg-black/60 z-40 md:hidden"}),s.jsx(Te.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:s.jsx(r7,{health:a??null,tier:l,tierLoading:c,visibleNav:x,pathname:e.pathname,onClose:()=>d(!1)})})]})}),s.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0",children:[s.jsxs("div",{className:"md:hidden flex items-center gap-3 px-4 py-3 border-b border-white/10",children:[s.jsx("button",{onClick:()=>d(!0),className:"text-neutral-400 hover:text-white transition-colors",children:s.jsx(yN,{size:20})}),s.jsxs("span",{className:"text-sm uppercase tracking-widest",children:[s.jsx("span",{className:"font-bold",children:"OHWOW"}),s.jsx("span",{className:"font-light",children:".FUN"})]})]}),s.jsxs("main",{className:"flex-1 overflow-y-auto min-h-0",children:[p&&s.jsxs("div",{className:"bg-warning/10 border-b border-warning/20 px-6 py-2.5 flex items-center justify-between",children:[s.jsxs("p",{className:"text-sm text-warning",children:["No AI model set up yet. Head to"," ",s.jsx(k0,{to:"/settings",className:"underline hover:text-white",children:"Settings"})," ","to download one."]}),s.jsx("button",{onClick:g,className:"text-warning/60 hover:text-warning text-sm ml-4","aria-label":"Dismiss",children:"✕"})]}),s.jsx(SA,{children:s.jsx(jF,{children:s.jsx(lV,{})},e.pathname)})]})]})]})}function CF(){const[e,a]=n.useState(""),[l,i]=n.useState(""),[c,u]=n.useState(!1),d=i0(),h=async f=>{if(f.preventDefault(),!!e.trim()){u(!0),i("");try{Ah(e.trim()),await me("/api/session"),d("/",{replace:!0})}catch{i("Invalid session token. Check your terminal for the correct token."),Ah("")}finally{u(!1)}}};return s.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center p-4",children:s.jsxs("div",{className:"w-full max-w-sm",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsxs("h1",{className:"text-2xl font-bold",children:[s.jsx("span",{className:"text-white",children:"ohwow"}),s.jsx("span",{className:"text-neutral-400 ml-1",children:"runtime"})]}),s.jsx("p",{className:"text-sm text-neutral-400 mt-2",children:"Enter the session token from your terminal to connect."})]}),s.jsxs("form",{onSubmit:h,className:"space-y-4",children:[s.jsx("div",{children:s.jsx("input",{type:"text",value:e,onChange:f=>a(f.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"})}),l&&s.jsx("p",{className:"text-xs text-critical",children:l}),s.jsx("button",{type:"submit",disabled:c||!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:c?"Connecting...":"Connect"})]})]})})}function HF(e){const a=e.match(/```agents\s*\n?([\s\S]*?)```/);if(a)try{const i=JSON.parse(a[1].trim());if(Array.isArray(i))return i.filter(c=>typeof c=="string")}catch{}const l=e.match(/\[[\s\S]*?\]/);if(l)try{const i=JSON.parse(l[0]);if(Array.isArray(i))return i.filter(c=>typeof c=="string")}catch{}return[]}function VF(e){const a=e.match(/```setup\s*\n?([\s\S]*?)```/);if(a)try{const i=JSON.parse(a[1].trim()),c=i.goal?{title:i.goal,metric:i.goal_metric||void 0,target:i.goal_target!=null?i.goal_target:void 0,unit:i.unit||void 0}:null,u=Array.isArray(i.agents)?i.agents.filter(d=>typeof d=="string"):[];return{goal:c,agentIds:u}}catch{}return{goal:null,agentIds:HF(e)}}function _F(){const[e,a]=n.useState({screen:"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}),l=n.useRef(null);n.useEffect(()=>()=>{var $;($=l.current)==null||$.abort()},[]);const i=n.useCallback(async()=>{a($=>({...$,loading:!0,error:null}));try{const $=await fetch("/api/onboarding/status");if(!$.ok)throw new Error("Could not detect hardware");const{data:Y}=await $.json();return a(L=>({...L,status:Y,selectedModel:Y.recommendation,loading:!1})),Y}catch($){return a(Y=>({...Y,loading:!1,error:$ instanceof Error?$.message:"Something went wrong"})),null}},[]),c=n.useCallback(()=>{a($=>({...$,screen:"tier_choice"}))},[]),u=n.useCallback($=>{a(Y=>({...Y,licenseKey:$,licenseError:null}))},[]),d=n.useCallback(async()=>{a($=>({...$,licenseValidating:!1,screen:"model"})),e.status||await i()},[e.status,i]),h=n.useCallback(async()=>{a($=>({...$,screen:"model",licenseKey:""})),e.status||await i()},[e.status,i]),f=n.useCallback(async()=>{a($=>({...$,screen:"model"})),e.status||await i()},[e.status,i]),p=n.useCallback($=>{a(Y=>({...Y,selectedModel:$}))},[]),g=async($,Y,L)=>{const B=$.body.getReader(),Q=new TextDecoder;let he="";try{for(;;){if(L!=null&&L.aborted){B.cancel();return}const{done:ce,value:D}=await B.read();if(ce)break;he+=Q.decode(D,{stream:!0});const te=he.split(`
|
|
70
|
+
`);he=te.pop()||"";for(const re of te)if(re.startsWith("data: ")){const z=re.slice(6).trim();if(z==="[DONE]")return;try{Y(JSON.parse(z))}catch{}}}}finally{B.releaseLock()}},x=n.useCallback(async()=>{const $=e.selectedModel;if(!$||l.current)return;const Y=new AbortController;l.current=Y,a(L=>({...L,downloading:!0,downloadPercent:0,downloadMessage:"",setupMessage:"Setting things up...",error:null}));try{const L=await fetch("/api/onboarding/ensure-ollama",{method:"POST",signal:Y.signal});if(!L.ok||!L.body)throw new Error("Could not set up Ollama");await g(L,Q=>{if(a(he=>({...he,setupMessage:Q.message})),Q.error)throw new Error(Q.error)},Y.signal),a(Q=>({...Q,setupMessage:"",downloadMessage:"Starting download..."}));const B=await fetch("/api/onboarding/download-model",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tag:$.tag}),signal:Y.signal});if(!B.ok||!B.body)throw new Error("Could not start download");await g(B,Q=>{if(a(he=>({...he,downloadMessage:Q.message,downloadPercent:Q.percent??he.downloadPercent})),Q.error)throw new Error(Q.error)},Y.signal),a(Q=>({...Q,downloading:!1,downloadPercent:100,downloadMessage:"Download complete",modelAvailable:!0,screen:"business_info"}))}catch(L){if(Y.signal.aborted)return;a(B=>({...B,downloading:!1,setupMessage:"",error:L instanceof Error?L.message:"Something went wrong"}))}finally{l.current=null}},[e.selectedModel]),y=n.useCallback(()=>{a($=>({...$,screen:"business_info",selectedModel:null,modelAvailable:!1}))},[]),w=n.useCallback($=>{a(Y=>({...Y,businessName:$}))},[]),N=n.useCallback($=>{a(Y=>({...Y,businessType:$}))},[]),E=n.useCallback($=>{a(Y=>({...Y,businessDescription:$}))},[]),A=n.useCallback(()=>{a($=>({...$,screen:"business_info"}))},[]),j=n.useCallback($=>{a(Y=>({...Y,founderPath:$}))},[]),S=n.useCallback($=>{a(Y=>({...Y,founderFocus:$}))},[]),Z=n.useCallback(()=>{a($=>({...$,screen:"founder_stage"}))},[]),C=n.useCallback(async $=>{a(Y=>({...Y,chatStreaming:!0}));try{const Y=await fetch("/api/onboarding/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:$,businessType:e.businessType||"saas_startup",founderPath:e.founderPath||"exploring",founderFocus:e.founderFocus||""})});if(!Y.ok||!Y.body)throw new Error("Chat unavailable");let L="";const B=Y.body.getReader(),Q=new TextDecoder;let he="";for(;;){const{done:ce,value:D}=await B.read();if(ce)break;he+=Q.decode(D,{stream:!0});const te=he.split(`
|
|
71
|
+
`);he=te.pop()||"";for(const re of te)if(re.startsWith("data: ")){const z=re.slice(6).trim();if(z==="[DONE]")continue;try{const q=JSON.parse(z);q.type==="text"&&q.content&&(L+=q.content)}catch{}}}if(L){a(D=>({...D,chatMessages:[...D.chatMessages,{role:"assistant",content:L}],chatStreaming:!1}));const ce=VF(L);ce.agentIds.length>0?a(D=>({...D,selectedAgentIds:new Set(ce.agentIds.filter(te=>D.presets.some(re=>re.id===te))),discoveredGoal:ce.goal})):ce.goal&&a(D=>({...D,discoveredGoal:ce.goal}))}else a(ce=>({...ce,chatStreaming:!1}))}catch{a(Y=>({...Y,chatStreaming:!1,chatMessages:[...Y.chatMessages,{role:"assistant",content:"I ran into an issue connecting to the model. You can pick your agents manually on the next screen."}]}))}},[e.businessType,e.founderPath,e.founderFocus]),H=n.useCallback(async()=>{const $=e.businessType||"saas_startup";try{const Y=await fetch(`/api/onboarding/presets?businessType=${$}`);if(Y.ok){const{data:L}=await Y.json();a(B=>({...B,screen:"agent_discovery",presets:L.presets,selectedAgentIds:new Set(L.recommended.map(Q=>Q.id))}))}else a(L=>({...L,screen:"agent_discovery"}))}catch{a(Y=>({...Y,screen:"agent_discovery"}))}try{const Y=await fetch("/api/onboarding/model-available");if(Y.ok){const{data:L}=await Y.json();a(B=>({...B,modelAvailable:L.available})),L.available&&e.chatMessages.length===0&&C([])}}catch{}},[e.businessType,e.chatMessages.length,C]),V=n.useCallback($=>{const Y={role:"user",content:$};a(B=>({...B,chatMessages:[...B.chatMessages,Y]}));const L=[...e.chatMessages,Y];C(L)},[e.chatMessages,C]),T=n.useCallback(()=>{a($=>({...$,screen:"agent_selection"}))},[]),k=n.useCallback($=>{a(Y=>{const L=new Set(Y.selectedAgentIds);return L.has($)?L.delete($):L.add($),{...Y,selectedAgentIds:L}})},[]),R=n.useCallback(()=>{a($=>({...$,screen:"integration_setup"}))},[]),O=n.useCallback(($,Y,L)=>{a(B=>({...B,integrationValues:{...B.integrationValues,[$]:{...B.integrationValues[$]||{},[Y]:L}}}))},[]),U=n.useCallback($=>{a(Y=>{const L=new Set(Y.skippedIntegrationIds);return L.add($),{...Y,skippedIntegrationIds:L}})},[]),X=n.useCallback(()=>{a($=>({...$,screen:"ready"}))},[]),K=n.useCallback(async()=>{const $=e.selectedModel,Y=($==null?void 0:$.tag)||"qwen3:4b",L=e.presets.filter(B=>e.selectedAgentIds.has(B.id)).map(B=>({id:B.id,name:B.name,role:B.role,description:B.description,systemPrompt:"",tools:B.tools,department:B.department}));a(B=>({...B,loading:!0,error:null}));try{if(!(await fetch("/api/onboarding/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({modelTag:Y,businessName:e.businessName,businessType:e.businessType,businessDescription:e.businessDescription,founderPath:e.founderPath,founderFocus:e.founderFocus,agents:L,goal:e.discoveredGoal})})).ok)throw new Error("Could not save config");return a(Q=>({...Q,loading:!1,completed:!0})),null}catch(B){const Q=B instanceof Error?B.message:"Something went wrong";return a(he=>({...he,loading:!1,error:Q})),Q}},[e.selectedModel,e.businessName,e.businessType,e.businessDescription,e.founderPath,e.founderFocus,e.presets,e.selectedAgentIds,e.discoveredGoal]);return{...e,fetchStatus:i,goToTierChoice:c,setLicenseKey:u,validateLicenseKey:d,skipTierChoice:h,goToModel:f,selectModel:p,startDownload:x,skipDownload:y,setBusinessName:w,setBusinessType:N,setBusinessDescription:E,goToBusinessInfo:A,setFounderPath:j,setFounderFocus:S,goToFounderStage:Z,goToAgentDiscovery:H,sendChatMessage:V,goToAgentSelection:T,toggleAgent:k,goToIntegrationSetup:R,setIntegrationValue:O,skipIntegration:U,goToReady:X,completeOnboarding:K}}function TF({onGetStarted:e}){return s.jsx("div",{"data-testid":"onboarding-splash",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:s.jsxs("div",{className:"max-w-md w-full text-center space-y-8",children:[s.jsx("div",{children:s.jsx("h1",{className:"text-5xl font-bold tracking-tight",children:s.jsx("span",{className:"text-white",children:"ohwow"})})}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("p",{className:"text-xl text-white font-medium",children:"Your AI team, running on your machine."}),s.jsx("p",{className:"text-sm text-neutral-400",children:"No account needed. No cloud required."})]}),s.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"}),s.jsx("p",{className:"text-xs text-neutral-600",children:"Free forever for local use"})]})})}function LF({licenseKey:e,onChangeLicenseKey:a,onValidate:l,onSkip:i,onBack:c,validating:u,error:d}){const h=f=>{f.preventDefault(),e.trim()&&l()};return s.jsx("div",{className:"min-h-screen bg-black text-white flex flex-col items-center justify-center p-6",children:s.jsxs("div",{className:"w-full max-w-md space-y-8",children:[s.jsxs("div",{className:"flex items-center gap-2 text-xs text-neutral-500",children:[s.jsx("span",{children:"Step 2 of 9"}),s.jsx("div",{className:"flex-1 h-0.5 bg-white/10 rounded-full",children:s.jsx("div",{className:"h-full w-[22%] bg-white/30 rounded-full"})})]}),s.jsxs("div",{className:"text-center space-y-2",children:[s.jsx("h1",{className:"text-2xl font-bold",children:"Connect to the cloud"}),s.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."})]}),s.jsxs("form",{onSubmit:h,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1.5",children:"License key"}),s.jsx("input",{type:"text",value:e,onChange:f=>a(f.target.value),placeholder:"ohwow_lic_...",disabled:u,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&&s.jsx("div",{className:"bg-red-500/10 border border-red-500/20 rounded-lg p-3",children:s.jsx("p",{className:"text-sm text-red-400",children:d})}),s.jsx("button",{type:"submit",disabled:u||!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:u?s.jsxs(s.Fragment,{children:[s.jsx(bt,{size:14,className:"animate-spin"}),"Validating..."]}):"Validate key"})]}),s.jsx("div",{className:"text-center",children:s.jsx("button",{onClick:i,className:"text-sm text-neutral-400 hover:text-white transition-colors",children:"Skip and continue locally (free forever)"})}),s.jsx("div",{className:"text-center",children:s.jsx("button",{onClick:c,className:"text-xs text-neutral-500 hover:text-neutral-300 transition-colors",children:"← Back"})})]})})}function RF({status:e,selectedModel:a,loading:l,downloading:i,downloadPercent:c,downloadMessage:u,setupMessage:d,error:h,onSelectModel:f,onDownload:p,onSkip:g}){const[x,y]=n.useState(!1);if(l||!e)return s.jsx("div",{"data-testid":"onboarding-model-loading",className:"min-h-screen bg-black flex items-center justify-center p-4",children:s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx("div",{className:"w-8 h-8 border-2 border-white/10 border-t-white rounded-full animate-spin mx-auto"}),s.jsx("p",{className:"text-sm text-neutral-400",children:"Detecting your hardware..."})]})});const w=a?Math.ceil(a.sizeGB*1024/50/60*8):null;return s.jsx("div",{"data-testid":"onboarding-model",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:s.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[s.jsx("div",{className:"text-center space-y-2",children:s.jsx("h2",{className:"text-2xl font-bold text-white",children:"Let's download your first AI model"})}),s.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}),a&&!i&&s.jsxs("div",{"data-testid":"onboarding-model-hero",className:"bg-white/5 border border-white/10 rounded-lg p-5 space-y-3",children:[s.jsx("div",{className:"flex items-start justify-between",children:s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("h3",{className:"text-lg font-semibold text-white",children:a.label}),a.recommended&&s.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"})]}),s.jsx("p",{className:"text-sm text-neutral-400 mt-1",children:a.description})]})}),s.jsxs("div",{className:"flex items-center gap-4 text-xs text-neutral-400",children:[s.jsxs("span",{children:[a.sizeGB," GB download"]}),w&&s.jsxs("span",{children:["~",w," min"]}),s.jsx("span",{children:a.features.join(", ")})]})]}),i&&s.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&&s.jsx("p",{className:"text-sm text-neutral-400",children:d}),!d&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center justify-between text-sm",children:[s.jsx("span",{className:"text-white",children:a==null?void 0:a.label}),s.jsxs("span",{className:"text-neutral-400",children:[c,"%"]})]}),s.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-2 overflow-hidden",children:s.jsx("div",{className:"bg-white h-full rounded-full transition-all duration-300",style:{width:`${c}%`}})}),s.jsx("p",{className:"text-xs text-neutral-400 truncate",children:u})]})]}),h&&s.jsx("div",{className:"bg-critical/10 border border-critical/20 rounded-lg px-4 py-3 text-sm text-critical",children:h}),!i&&s.jsxs("div",{className:"space-y-3",children:[s.jsx("button",{"data-testid":"onboarding-download-btn",onClick:p,disabled:!a,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&&s.jsxs("div",{children:[s.jsx("button",{"data-testid":"onboarding-alternatives-toggle",onClick:()=>y(!x),className:"text-sm text-neutral-400 hover:text-white transition-colors",children:x?"Hide other options":"See other options"}),x&&s.jsx("div",{className:"mt-3 space-y-2",children:e.alternatives.map(N=>s.jsxs("button",{onClick:()=>f(N),className:`w-full text-left bg-white/5 border rounded-lg px-4 py-3 text-sm transition-colors ${(a==null?void 0:a.tag)===N.tag?"border-white/10 text-white":"border-white/[0.08] text-neutral-400 hover:border-white/[0.08] hover:text-white"}`,children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"font-medium",children:N.label}),s.jsxs("span",{className:"text-xs",children:[N.sizeGB," GB"]})]}),s.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:N.description})]},N.tag))})]}),s.jsx("div",{className:"text-center",children:s.jsx("button",{"data-testid":"onboarding-skip-btn",onClick:g,className:"text-xs text-neutral-600 hover:text-neutral-400 transition-colors",children:"Skip for now"})})]})]})})}const kF=[{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 DF({businessName:e,businessType:a,businessDescription:l,onChangeName:i,onChangeType:c,onChangeDescription:u,onContinue:d,onBack:h}){const f=e.trim().length>0&&a;return s.jsx("div",{"data-testid":"onboarding-business-info",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:s.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[s.jsxs("div",{className:"text-center space-y-2",children:[s.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 3 of 7"}),s.jsx("h2",{className:"text-2xl font-bold text-white",children:"Tell us about your business"}),s.jsx("p",{className:"text-sm text-neutral-400",children:"This helps us recommend the right AI agents for you."})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"Business name"}),s.jsx("input",{"data-testid":"onboarding-business-name",type:"text",value:e,onChange:p=>i(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})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"Business type"}),s.jsx("div",{className:"grid grid-cols-2 gap-2",children:kF.map(p=>s.jsxs("button",{"data-testid":`onboarding-btype-${p.id}`,onClick:()=>c(p.id),className:`text-left px-3 py-2.5 rounded-lg border text-sm transition-colors ${a===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:[s.jsx("span",{className:"font-medium block",children:p.label}),s.jsx("span",{className:"text-xs text-neutral-400",children:p.tagline})]},p.id))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"What does your business do? (optional)"}),s.jsx("textarea",{"data-testid":"onboarding-business-desc",value:l,onChange:p=>u(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"})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:h,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),s.jsx("button",{"data-testid":"onboarding-business-continue",onClick:d,disabled:!f,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 OF=[{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 FF({founderPath:e,founderFocus:a,onChangePath:l,onChangeFocus:i,onContinue:c,onBack:u}){const d=e.length>0;return s.jsx("div",{"data-testid":"onboarding-founder-stage",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:s.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[s.jsxs("div",{className:"text-center space-y-2",children:[s.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 4 of 7"}),s.jsx("h2",{className:"text-2xl font-bold text-white",children:"Where are you in your journey?"}),s.jsx("p",{className:"text-sm text-neutral-400",children:"This helps us prioritize which agents to recommend."})]}),s.jsx("div",{className:"space-y-2",children:OF.map(h=>s.jsxs("button",{"data-testid":`onboarding-path-${h.id}`,onClick:()=>l(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:[s.jsx("span",{className:"text-lg",children:h.icon}),s.jsxs("div",{children:[s.jsx("span",{className:"font-medium block text-sm",children:h.label}),s.jsx("span",{className:"text-xs text-neutral-400",children:h.description})]})]},h.id))}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"What are you focused on right now? (optional)"}),s.jsx("input",{"data-testid":"onboarding-founder-focus",type:"text",value:a,onChange:h=>i(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"})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:u,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),s.jsx("button",{"data-testid":"onboarding-founder-continue",onClick:c,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 qF({modelAvailable:e,chatMessages:a,presets:l,discoveredGoal:i,onSendMessage:c,onContinue:u,onBack:d,streaming:h}){const[f,p]=n.useState(""),g=n.useRef(null);n.useEffect(()=>{var y;(y=g.current)==null||y.scrollTo({top:g.current.scrollHeight,behavior:"smooth"})},[a]);const x=()=>{!f.trim()||h||(c(f.trim()),p(""))};return e?s.jsx("div",{"data-testid":"onboarding-agent-discovery",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:s.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[s.jsxs("div",{className:"text-center space-y-2",children:[s.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 5 of 7"}),s.jsx("h2",{className:"text-2xl font-bold text-white",children:"Let's define your goal"}),s.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"})]}),i&&s.jsx("div",{className:"px-4 py-2 rounded-lg bg-emerald-500/10 border border-emerald-500/20",children:s.jsxs("span",{className:"text-sm text-emerald-400",children:["Goal: ",i.title]})}),s.jsxs("div",{ref:g,className:"bg-white/5 border border-white/[0.08] rounded-lg p-4 space-y-3 max-h-64 overflow-y-auto",children:[a.map((y,w)=>s.jsx("div",{className:`${y.role==="user"?"text-right":""}`,children:s.jsx("div",{className:`inline-block rounded-lg px-3 py-2 text-sm max-w-[80%] ${y.role==="user"?"bg-white/10 text-white":"bg-neutral-950 border border-white/[0.08] text-white"}`,children:s.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:y.content})})},w)),h&&s.jsx("div",{className:"text-neutral-400 text-sm animate-pulse",children:"Thinking..."})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{"data-testid":"onboarding-chat-input",type:"text",value:f,onChange:y=>p(y.target.value),onKeyDown:y=>{y.key==="Enter"&&x()},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"}),s.jsx("button",{onClick:x,disabled:h||!f.trim(),className:"bg-white text-black rounded-lg px-4 text-sm hover:bg-neutral-200 transition-colors disabled:opacity-40",children:"Send"})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:d,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),s.jsx("button",{"data-testid":"onboarding-discovery-continue",onClick:u,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:a.length>=4?"Set up my workspace":"Skip to selection"})]})]})}):s.jsx("div",{"data-testid":"onboarding-agent-discovery",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:s.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[s.jsxs("div",{className:"text-center space-y-2",children:[s.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 5 of 7"}),s.jsx("h2",{className:"text-2xl font-bold text-white",children:"Your recommended agents"}),s.jsx("p",{className:"text-sm text-neutral-400",children:"Based on your business type. You can adjust on the next screen."})]}),s.jsx("div",{className:"space-y-2",children:l.map(y=>s.jsxs("div",{className:`px-4 py-3 rounded-lg border ${y.recommended?"border-white/[0.12] bg-white/5":"border-white/[0.08] bg-white/5"}`,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[y.recommended&&s.jsx("span",{className:"text-white text-xs",children:"★"}),s.jsx("span",{className:"font-medium text-sm text-white",children:y.name}),s.jsx("span",{className:"text-xs text-neutral-400",children:y.role})]}),s.jsx("p",{className:"text-xs text-neutral-400 mt-1",children:y.description})]},y.id))}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:d,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),s.jsx("button",{"data-testid":"onboarding-discovery-continue",onClick:u,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 zF={web_research:"Web Research",deep_research:"Deep Research",ocr:"OCR",local_crm:"CRM"};function BF({presets:e,selectedIds:a,onToggle:l,onContinue:i,onBack:c}){return s.jsx("div",{"data-testid":"onboarding-agent-selection",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:s.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[s.jsxs("div",{className:"text-center space-y-2",children:[s.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 6 of 7"}),s.jsx("h2",{className:"text-2xl font-bold text-white",children:"Choose your agents"}),s.jsx("p",{className:"text-sm text-neutral-400",children:a.size>0?`${a.size} agent${a.size===1?"":"s"} selected`:"Select the agents you want to create"})]}),s.jsx("div",{className:"space-y-2 max-h-[400px] overflow-y-auto",children:e.map(u=>{const d=a.has(u.id);return s.jsx("button",{"data-testid":`onboarding-agent-${u.id}`,onClick:()=>l(u.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:s.jsxs("div",{className:"flex items-start gap-3",children:[s.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&&s.jsx("svg",{className:"w-2.5 h-2.5 text-black",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"font-medium text-sm text-white",children:u.name}),u.recommended&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/10 text-white border border-white/10",children:"Recommended"})]}),s.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:u.role}),s.jsx("p",{className:"text-xs text-neutral-400/70 mt-1",children:u.description}),u.tools.length>0&&s.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:u.tools.map(h=>s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/5 border border-white/[0.08] text-neutral-400",children:zF[h]||h},h))})]})]})},u.id)})}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:c,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),s.jsxs("button",{"data-testid":"onboarding-selection-continue",onClick:i,disabled:a.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 ",a.size," agent",a.size===1?"":"s"]})]})]})})}function $F({integrations:e,integrationValues:a,onSetValue:l,onSkipIntegration:i,skippedIds:c,onContinue:u,onBack:d}){if(e.length===0)return s.jsx("div",{className:"min-h-screen bg-black text-white flex flex-col items-center justify-center p-6",children:s.jsxs("div",{className:"w-full max-w-md space-y-6 text-center",children:[s.jsx("div",{className:"w-14 h-14 rounded-xl bg-success/10 flex items-center justify-center mx-auto",children:s.jsx(zr,{size:28,className:"text-success"})}),s.jsx("h2",{className:"text-lg font-bold",children:"No integrations needed"}),s.jsx("p",{className:"text-sm text-neutral-400",children:"Your selected agents work out of the box."}),s.jsx("button",{onClick:u,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(f=>c.has(f.id)||f.envVarsRequired.every(p=>{var g;return!!((g=a[f.id])!=null&&g[p.key])}));return s.jsx("div",{className:"min-h-screen bg-black text-white flex flex-col items-center justify-center p-6",children:s.jsxs("div",{className:"w-full max-w-lg space-y-6",children:[s.jsxs("div",{className:"flex items-center gap-2 text-xs text-neutral-500",children:[s.jsx("span",{children:"Step 8 of 9"}),s.jsx("div",{className:"flex-1 h-0.5 bg-white/10 rounded-full",children:s.jsx("div",{className:"h-full w-[89%] bg-white/30 rounded-full"})})]}),s.jsxs("div",{className:"text-center space-y-2",children:[s.jsx("h1",{className:"text-2xl font-bold",children:"Connect integrations"}),s.jsx("p",{className:"text-neutral-400 text-sm",children:"Some agents work best with connected services. You can skip any for now."})]}),s.jsx("div",{className:"space-y-4",children:e.map(f=>{const p=c.has(f.id),g=a[f.id]||{},x=f.envVarsRequired.every(y=>!!g[y.key]);return s.jsxs("div",{className:`border rounded-lg p-4 transition-colors ${x?"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:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx($r,{size:16,className:x?"text-success":"text-neutral-400"}),s.jsx("span",{className:"text-sm font-medium",children:f.name}),x&&s.jsx("span",{className:"text-[10px] bg-success/15 text-success px-1.5 py-0.5 rounded",children:"connected"}),p&&s.jsx("span",{className:"text-[10px] bg-white/[0.06] text-neutral-500 px-1.5 py-0.5 rounded",children:"skipped"})]}),!x&&!p&&s.jsxs("button",{onClick:()=>i(f.id),className:"text-xs text-neutral-500 hover:text-white transition-colors flex items-center gap-1",children:[s.jsx(sF,{size:12})," Skip"]})]}),s.jsx("p",{className:"text-xs text-neutral-500 mb-3",children:f.description}),!p&&s.jsx("div",{className:"space-y-2",children:f.envVarsRequired.map(y=>s.jsxs("div",{children:[s.jsx("label",{className:"text-[10px] text-neutral-400 block mb-1",children:y.label}),s.jsx("input",{type:"password",value:g[y.key]||"",onChange:w=>l(f.id,y.key,w.target.value),placeholder:y.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"})]},y.key))})]},f.id)})}),s.jsxs("div",{className:"flex gap-3",children:[s.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"}),s.jsx("button",{onClick:u,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 IF({selectedModel:e,loading:a,error:l,onLaunch:i,businessName:c,agentCount:u}){return s.jsx("div",{"data-testid":"onboarding-ready",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:s.jsxs("div",{className:"max-w-md w-full text-center space-y-8",children:[s.jsx("div",{className:"space-y-2",children:s.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 7 of 7"})}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("div",{className:"w-12 h-12 rounded-full bg-success/10 border border-success/20 flex items-center justify-center mx-auto",children:s.jsx("svg",{className:"w-6 h-6 text-success",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),s.jsx("h2",{className:"text-2xl font-bold text-white",children:"You're all set."})]}),s.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg px-4 py-3 text-left space-y-2",children:[c&&s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-neutral-400",children:"Business"}),s.jsx("span",{className:"text-white font-medium",children:c})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-neutral-400",children:"Model"}),s.jsx("span",{className:"text-white",children:e?e.label:"None (add later in Settings)"})]}),u!==void 0&&u>0&&s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-neutral-400",children:"Agents"}),s.jsxs("span",{className:"text-white",children:[u," agent",u===1?"":"s"," ready to go"]})]})]}),l&&s.jsx("div",{className:"bg-critical/10 border border-critical/20 rounded-lg px-4 py-3 text-sm text-critical",children:l}),s.jsx("button",{"data-testid":"onboarding-launch-btn",onClick:i,disabled:a,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:a?"Saving...":"Start Chatting"})]})})}function UF({sessionToken:e}){var i;const a=_F();n.useEffect(()=>{a.screen==="model"&&!a.status&&a.fetchStatus()},[a.screen]);const l=async()=>{await a.completeOnboarding()||(e&&Ah(e),window.location.href="/ui/")};switch(a.screen){case"splash":return s.jsx(TF,{onGetStarted:a.goToTierChoice});case"tier_choice":return s.jsx(LF,{licenseKey:a.licenseKey,onChangeLicenseKey:a.setLicenseKey,onValidate:a.validateLicenseKey,onSkip:a.skipTierChoice,onBack:()=>{},validating:a.licenseValidating,error:a.licenseError});case"model":return s.jsx(RF,{status:a.status,selectedModel:a.selectedModel,loading:a.loading,downloading:a.downloading,downloadPercent:a.downloadPercent,downloadMessage:a.downloadMessage,setupMessage:a.setupMessage,error:a.error,estimatedMinutes:((i=a.status)==null?void 0:i.estimatedMinutes)??null,onSelectModel:a.selectModel,onDownload:a.startDownload,onSkip:a.skipDownload});case"business_info":return s.jsx(DF,{businessName:a.businessName,businessType:a.businessType,businessDescription:a.businessDescription,onChangeName:a.setBusinessName,onChangeType:a.setBusinessType,onChangeDescription:a.setBusinessDescription,onContinue:a.goToFounderStage,onBack:a.goToModel});case"founder_stage":return s.jsx(FF,{founderPath:a.founderPath,founderFocus:a.founderFocus,onChangePath:a.setFounderPath,onChangeFocus:a.setFounderFocus,onContinue:a.goToAgentDiscovery,onBack:a.goToBusinessInfo});case"agent_discovery":return s.jsx(qF,{modelAvailable:a.modelAvailable,businessType:a.businessType,founderPath:a.founderPath,founderFocus:a.founderFocus,chatMessages:a.chatMessages,presets:a.presets,discoveredGoal:a.discoveredGoal,onSendMessage:a.sendChatMessage,onContinue:a.goToAgentSelection,onBack:a.goToFounderStage,streaming:a.chatStreaming});case"agent_selection":return s.jsx(BF,{presets:a.presets,selectedIds:a.selectedAgentIds,onToggle:a.toggleAgent,onContinue:a.goToIntegrationSetup,onBack:a.goToAgentDiscovery});case"integration_setup":return s.jsx($F,{integrations:a.integrations,integrationValues:a.integrationValues,onSetValue:a.setIntegrationValue,onSkipIntegration:a.skipIntegration,skippedIds:a.skippedIntegrationIds,onContinue:a.goToReady,onBack:a.goToAgentSelection});case"ready":return s.jsx(IF,{selectedModel:a.selectedModel,loading:a.loading,error:a.error,onLaunch:l,businessName:a.businessName,agentCount:a.selectedAgentIds.size})}}function Ht({label:e,value:a,subtitle:l,color:i="text-white"}){return s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4",children:[s.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:e}),s.jsx("p",{className:`text-2xl font-bold mt-1 ${i}`,children:a}),l&&s.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:l})]})}const PF={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",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 ht({status:e}){const a=PF[e]||"bg-white/5 text-neutral-400",l=e.replace(/_/g," ");return s.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium capitalize ${a}`,children:l})}function fl({className:e=""}){return s.jsx("div",{className:`animate-pulse bg-white/5 rounded ${e}`})}function s1(){return s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 space-y-2",children:[s.jsx(fl,{className:"h-3 w-20"}),s.jsx(fl,{className:"h-7 w-16"})]})}function We({count:e=5}){return s.jsx("div",{className:"space-y-2",children:Array.from({length:e}).map((a,l)=>s.jsx(fl,{className:"h-12 w-full"},l))})}function Fe({title:e,subtitle:a,action:l}){return s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold",children:e}),a&&s.jsx("p",{className:"text-sm text-neutral-400 mt-0.5",children:a})]}),l]})}function GF(e){const a=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],l=[],i=new Date;for(let c=6;c>=0;c--){const u=new Date(i);u.setDate(u.getDate()-c),l.push({label:a[u.getDay()],completed:0,failed:0})}for(const c of e){const u=new Date(c.created_at),d=i.getTime()-u.getTime(),h=Math.floor(d/(1e3*60*60*24));if(h<0||h>6)continue;const f=6-h;c.type==="task_completed"&&l[f].completed++,c.type==="task_failed"&&l[f].failed++}return l}function YF({activity:e}){const a=e?GF(e):[],l=Math.max(1,...a.map(h=>h.completed+h.failed)),i=28,c=12,u=80,d=a.length*(i+c)-c;return e?s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 mb-8",children:[s.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-3",children:"Task Activity (7 days)"}),s.jsx("div",{className:"flex justify-center",children:s.jsx("svg",{width:d,height:u+20,className:"overflow-visible",children:a.map((h,f)=>{const p=f*(i+c),g=(h.completed+h.failed)/l*u,x=h.completed/l*u,y=h.failed/l*u;return s.jsxs("g",{children:[s.jsx("rect",{x:p,y:0,width:i,height:u,rx:4,className:"fill-white/[0.03]"}),h.completed>0&&s.jsx("rect",{x:p,y:u-g,width:i,height:x,rx:4,className:"fill-success/60"}),h.failed>0&&s.jsx("rect",{x:p,y:u-y,width:i,height:y,rx:4,className:"fill-critical/60"}),s.jsx("text",{x:p+i/2,y:u+14,textAnchor:"middle",className:"fill-neutral-500 text-[10px]",children:h.label}),h.completed+h.failed>0&&s.jsx("text",{x:p+i/2,y:u-g-4,textAnchor:"middle",className:"fill-neutral-400 text-[10px]",children:h.completed+h.failed})]},f)})})}),s.jsxs("div",{className:"flex items-center gap-4 mt-3 justify-center",children:[s.jsxs("span",{className:"flex items-center gap-1.5 text-[10px] text-neutral-500",children:[s.jsx("span",{className:"inline-block w-2 h-2 rounded-sm bg-success/60"})," Completed"]}),s.jsxs("span",{className:"flex items-center gap-1.5 text-[10px] text-neutral-500",children:[s.jsx("span",{className:"inline-block w-2 h-2 rounded-sm bg-critical/60"})," Failed"]})]})]}):s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 mb-8",children:[s.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-3",children:"Task Activity (7 days)"}),s.jsx("div",{className:"h-[100px] flex items-center justify-center",children:s.jsx("p",{className:"text-xs text-neutral-600",children:"Loading..."})})]})}function KF({agents:e,tasks:a}){const l=e?e.filter(f=>f.status!=="paused").length:0,i=new Date().toISOString().slice(0,10),c=a?a.filter(f=>f.status==="completed"&&f.created_at.startsWith(i)).length:0,u=a?a.filter(f=>f.status==="completed").length:0,d=a?a.filter(f=>f.status==="failed").length:0,h=u+d>0?Math.round(u/(u+d)*100):100;return s.jsxs("div",{className:"flex gap-3 mb-8",children:[s.jsxs("div",{className:"flex-1 border border-white/[0.06] rounded-lg px-4 py-3 bg-white/[0.02]",children:[s.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"Active Agents"}),s.jsx("p",{className:"text-lg font-semibold text-success mt-0.5",children:l})]}),s.jsxs("div",{className:"flex-1 border border-white/[0.06] rounded-lg px-4 py-3 bg-white/[0.02]",children:[s.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"Completed Today"}),s.jsx("p",{className:"text-lg font-semibold text-white mt-0.5",children:c})]}),s.jsxs("div",{className:"flex-1 border border-white/[0.06] rounded-lg px-4 py-3 bg-white/[0.02]",children:[s.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"Success Rate"}),s.jsxs("p",{className:`text-lg font-semibold mt-0.5 ${h>=80?"text-success":h>=50?"text-warning":"text-critical"}`,children:[h,"%"]})]})]})}function XF(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:String(e)}const s7={animate:{transition:{staggerChildren:.05}}},l7={initial:{opacity:0,y:8},animate:{opacity:1,y:0}};function QF(){const e=Ba(["task:started","task:completed","task:failed"]),{data:a,loading:l}=Ae("/api/system/stats",[e]),{data:i}=Ae("/api/agents",[e]),{data:c}=Ae("/api/tasks?limit=5",[e]),{data:u}=Ae("/api/activity",[e]);return s.jsxs("div",{className:"p-6 max-w-5xl",children:[s.jsx(Fe,{title:"Overview",subtitle:"Runtime at a glance"}),s.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-8",children:l?s.jsxs(s.Fragment,{children:[s.jsx(s1,{}),s.jsx(s1,{}),s.jsx(s1,{}),s.jsx(s1,{})]}):a?s.jsxs(s.Fragment,{children:[s.jsx(Ht,{label:"Agents",value:a.totalAgents}),s.jsx(Ht,{label:"Tasks",value:a.totalTasks,subtitle:`${a.activeTasks} active`}),s.jsx(Ht,{label:"Approvals",value:a.pendingApprovals,color:a.pendingApprovals>0?"text-warning":"text-neutral-400"}),s.jsx(Ht,{label:"Tokens",value:XF(a.totalTokens),subtitle:`$${(a.totalCostCents/100).toFixed(2)}`})]}):null}),s.jsx(YF,{activity:u}),s.jsx(KF,{agents:i,tasks:c}),s.jsxs("div",{className:"mb-8",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider",children:"Agents"}),s.jsx(Mt,{to:"/agents",className:"text-xs text-neutral-400 hover:text-white transition-colors",children:"View all"})]}),i!=null&&i.length?s.jsx(Te.div,{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",variants:s7,initial:"initial",animate:"animate",children:i.slice(0,8).map(d=>{var h;return s.jsx(Te.div,{variants:l7,children:s.jsxs(Mt,{to:`/agents/${d.id}`,className:"block border border-white/[0.08] rounded-lg p-4 hover:bg-white/[0.02] transition-colors",children:[s.jsx("div",{className:"w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-xs font-bold mb-3",children:(h=d.name[0])==null?void 0:h.toUpperCase()}),s.jsx("p",{className:"text-sm font-medium truncate",children:d.name}),s.jsx("p",{className:"text-xs text-neutral-500 truncate mt-0.5",children:d.role}),s.jsx("div",{className:"mt-2",children:s.jsx(ht,{status:d.status})})]})},d.id)})}):s.jsx(We,{count:2})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider",children:"Recent Tasks"}),s.jsx(Mt,{to:"/tasks",className:"text-xs text-neutral-400 hover:text-white transition-colors",children:"View all"})]}),c!=null&&c.length?s.jsx(Te.div,{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",variants:s7,initial:"initial",animate:"animate",children:c.map(d=>s.jsx(Te.div,{variants:l7,children:s.jsxs(Mt,{to:`/tasks/${d.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:d.title}),s.jsx("p",{className:"text-xs text-neutral-500",children:new Date(d.created_at).toLocaleString()})]}),s.jsx(ht,{status:d.status})]})},d.id))}):s.jsx(We,{count:3})]})]})}function Vt({icon:e,title:a,description:l,action:i}){return s.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&&s.jsx("div",{className:"text-neutral-500 mb-3",children:e}),s.jsx("p",{className:"text-sm font-medium text-neutral-200",children:a}),l&&s.jsx("p",{className:"text-xs text-neutral-400 mt-1 max-w-xs",children:l}),i&&s.jsx("div",{className:"mt-4",children:i})]})}function da({open:e,onClose:a,title:l,children:i,maxWidth:c="max-w-md"}){const u=n.useCallback(d=>{d.key==="Escape"&&a()},[a]);return n.useEffect(()=>{if(e)return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[e,u]),s.jsx(za,{children:e&&s.jsx(Te.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:a,children:s.jsxs(Te.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 ${c} max-h-[85vh] overflow-y-auto`,onClick:d=>d.stopPropagation(),children:[l&&s.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-white/10",children:[s.jsx("h3",{className:"text-sm font-semibold",children:l}),s.jsx("button",{onClick:a,className:"text-neutral-400 hover:text-white text-xs transition-colors",children:"Close"})]}),s.jsx("div",{className:"p-6",children:i})]})})})}function JF(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return{}}return e||{}}const WF={animate:{transition:{staggerChildren:.04}}},eq={initial:{opacity:0,y:8},animate:{opacity:1,y:0}};function tq(){const e=Ba(["task:started","task:completed"]),{data:a,loading:l,refetch:i}=Ae("/api/agents",[e]),[c,u]=n.useState(!1);return s.jsxs("div",{className:"p-6 max-w-5xl",children:[s.jsx(Fe,{title:"Agents",subtitle:"Your AI team",action:l?atLimit?s.jsx("span",{className:"text-xs text-neutral-400",children:"Free tier: 1 agent max"}):null:s.jsxs("button",{onClick:()=>u(!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:[s.jsx(yt,{size:14,weight:"bold"}),"Create agent"]})}),l?s.jsx(We,{count:4}):a!=null&&a.length?s.jsx(Te.div,{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",variants:WF,initial:"initial",animate:"animate",children:a.map(d=>{var f;const h=JF(d.stats);return s.jsx(Te.div,{variants:eq,children:s.jsxs(Mt,{to:`/agents/${d.id}`,className:"block border border-white/[0.08] rounded-lg p-4 hover:bg-white/[0.02] transition-colors h-full",children:[s.jsxs("div",{className:"flex items-start justify-between mb-3",children:[s.jsx("div",{className:"w-9 h-9 rounded-full bg-white/10 flex items-center justify-center text-sm font-bold",children:(f=d.name[0])==null?void 0:f.toUpperCase()}),s.jsx(ht,{status:d.status})]}),s.jsx("p",{className:"text-sm font-medium truncate",children:d.name}),s.jsx("p",{className:"text-xs text-neutral-500 truncate mt-0.5",children:d.role}),s.jsxs("p",{className:"text-xs text-neutral-600 mt-2",children:[h.total_tasks||0," ",h.total_tasks===1?"task":"tasks"]})]})},d.id)})}):s.jsx(Vt,{icon:s.jsx(Wa,{size:32}),title:"No agents yet",description:"Create your first agent to get started.",action:s.jsx("button",{onClick:()=>u(!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"})}),s.jsx(aq,{open:c,onClose:()=>u(!1),onCreated:()=>{u(!1),i()}})]})}function aq({open:e,onClose:a,onCreated:l}){const[i,c]=n.useState(""),[u,d]=n.useState(""),[h,f]=n.useState(""),[p,g]=n.useState(""),[x,y]=n.useState(!1),[w,N]=n.useState(""),E=async A=>{if(A.preventDefault(),!i.trim()||!u.trim()||!h.trim()){N("Name, role, and system prompt are required.");return}y(!0),N("");try{await me("/api/agents",{method:"POST",body:JSON.stringify({name:i.trim(),role:u.trim(),system_prompt:h.trim(),description:p.trim()||null})}),l()}catch(j){N(j instanceof Error?j.message:"Something went wrong. Try again?")}finally{y(!1)}};return s.jsx(da,{open:e,onClose:a,title:"Create agent",children:s.jsxs("form",{onSubmit:E,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"Name"}),s.jsx("input",{type:"text",value:i,onChange:A=>c(A.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})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"Role"}),s.jsx("input",{type:"text",value:u,onChange:A=>d(A.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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"System Prompt"}),s.jsx("textarea",{value:h,onChange:A=>f(A.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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"Description (optional)"}),s.jsx("input",{type:"text",value:p,onChange:A=>g(A.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&&s.jsx("p",{className:"text-xs text-critical",children:w}),s.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[s.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:x,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:x?"Creating...":"Create"})]})]})})}function pl({checked:e,onChange:a,disabled:l=!1,size:i="md"}){const c=i==="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 s.jsx("button",{type:"button",role:"switch","aria-checked":e,onClick:()=>!l&&a(!e),disabled:l,className:`relative ${c.track} rounded-full transition-colors disabled:opacity-50 ${e?"bg-success/30":"bg-white/10"}`,children:s.jsx("span",{className:`absolute top-0.5 left-0.5 ${c.thumb} rounded-full transition-transform ${e?`${c.translate} bg-success`:"translate-x-0 bg-neutral-400"}`})})}function Zl({tabs:e,activeTab:a,onTabChange:l,layoutId:i="tab-underline"}){return s.jsx("div",{className:"flex gap-1 border-b border-white/[0.08]",children:e.map(c=>{const u=c.id===a;return s.jsxs("button",{onClick:()=>l(c.id),className:`relative px-4 py-2.5 text-sm font-medium transition-colors ${u?"text-white":"text-neutral-400 hover:text-neutral-200"}`,children:[s.jsxs("span",{className:"relative z-10 flex items-center gap-2",children:[c.label,c.count!=null&&s.jsx("span",{className:"text-[10px] bg-white/10 px-1.5 py-0.5 rounded-full min-w-[18px] text-center",children:c.count})]}),u&&s.jsx(Te.div,{layoutId:i,className:"absolute bottom-0 left-0 right-0 h-0.5 bg-white",transition:{type:"spring",stiffness:350,damping:30}})]},c.id)})})}const nq=[{id:"development",label:"Development"},{id:"files",label:"Files"},{id:"databases",label:"Databases"},{id:"apis",label:"APIs"},{id:"communication",label:"Communication"}],rq=[{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"}],i7={name:"",transport:"stdio",command:"",args:"",env:"",url:""};function AM({servers:e,onChange:a,disabled:l}){const[i,c]=n.useState(!1),[u,d]=n.useState(i7),[h,f]=n.useState(""),[p,g]=n.useState(null),[x,y]=n.useState({}),[w,N]=n.useState(null),[E,A]=n.useState("popular"),j=()=>{d(i7),f(""),A("popular"),c(!0)},S=()=>{if(!u.name.trim()){f("Name is required");return}if(u.transport==="stdio"&&!u.command.trim()){f("Command is required");return}if(u.transport==="http"&&!u.url.trim()){f("URL is required");return}if(e.some(T=>T.name===u.name.trim())){f("A server with that name already exists");return}const V=u.transport==="stdio"?{name:u.name.trim(),transport:"stdio",command:u.command.trim(),args:u.args.trim()?u.args.trim().split(/\s+/):void 0,env:u.env.trim()?sq(u.env.trim()):void 0}:{name:u.name.trim(),transport:"http",url:u.url.trim()};a([...e,V]),c(!1)},Z=V=>{a(e.filter(T=>T.name!==V))},C=async V=>{if(!p){g(V.name);try{const k=await(await fetch("/api/mcp/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(V)})).json();k.success?(ue.success(`Connected. ${k.tools.length===1?"1 tool":`${k.tools.length} tools`} found in ${k.latencyMs}ms`),y(R=>({...R,[V.name]:k.tools})),N(V.name)):ue.error(k.error||"Couldn't connect to this server. Try again?")}catch{ue.error("Couldn't reach the daemon to test the connection")}finally{g(null)}}},H=V=>{N(T=>T===V?null:V)};return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"mt-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("h3",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider",children:"MCP Servers"}),s.jsx("button",{onClick:j,disabled:l,className:"text-xs text-white hover:text-white/80 disabled:opacity-50 transition-colors",children:"+ Add"})]}),e.length===0?s.jsx("p",{className:"text-xs text-neutral-400 py-2",children:"No MCP servers yet. Add one to extend what this agent can do."}):s.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(V=>{var O;const T=x[V.name],k=w===V.name,R=p===V.name;return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{className:"min-w-0 mr-3 flex items-center gap-2",children:[T&&T.length>0&&s.jsx("button",{onClick:()=>H(V.name),className:"text-neutral-400 hover:text-white transition-colors shrink-0",children:k?s.jsx(tn,{size:12}):s.jsx(Nl,{size:12})}),s.jsx("span",{className:"text-sm font-medium",children:V.name}),s.jsx("span",{className:"text-xs text-neutral-400",children:V.transport==="stdio"?`stdio · ${V.command}${(O=V.args)!=null&&O.length?" "+V.args.join(" "):""}`:`http · ${V.url}`}),T&&s.jsx("span",{className:"text-xs text-neutral-500",children:T.length===1?"1 tool":`${T.length} tools`})]}),s.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[s.jsx("button",{onClick:()=>C(V),disabled:l||R,className:`text-neutral-400 hover:text-uplink transition-colors disabled:opacity-50 ${R?"animate-pulse":""}`,title:"Test connection",children:s.jsx(ca,{size:14,weight:R?"fill":"bold"})}),s.jsx("button",{onClick:()=>Z(V.name),disabled:l,className:"text-neutral-400 hover:text-error transition-colors disabled:opacity-50",children:s.jsx(It,{size:14})})]})]}),k&&T&&T.length>0&&s.jsx("div",{className:"px-4 pb-3 pl-10",children:s.jsx("div",{className:"bg-white/[0.03] rounded-md border border-white/[0.06] divide-y divide-white/[0.06]",children:T.map(U=>s.jsxs("div",{className:"px-3 py-2",children:[s.jsx("span",{className:"text-xs font-mono text-white/80",children:U.name}),U.description&&s.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:U.description})]},U.name))})})]},V.name)})})]}),s.jsx(da,{open:i,onClose:()=>c(!1),title:"Add MCP Server",maxWidth:"max-w-lg",children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex gap-1 bg-white/[0.04] rounded-md p-0.5",children:[s.jsx("button",{onClick:()=>A("popular"),className:`flex-1 px-3 py-1.5 text-xs font-medium rounded transition-colors ${E==="popular"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Popular"}),s.jsx("button",{onClick:()=>A("custom"),className:`flex-1 px-3 py-1.5 text-xs font-medium rounded transition-colors ${E==="custom"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Custom"})]}),E==="popular"&&s.jsx("div",{className:"space-y-4",children:nq.map(V=>{const T=rq.filter(k=>k.category===V.id);return T.length===0?null:s.jsxs("div",{children:[s.jsx("h4",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider mb-2",children:V.label}),s.jsx("div",{className:"grid grid-cols-2 gap-2",children:T.map(k=>{const R=e.some(O=>O.name===k.name);return s.jsxs("button",{onClick:()=>{R||(d({name:k.name,transport:k.transport,command:k.command,args:k.args.join(" "),env:k.envVarsRequired.map(O=>`${O.key}=`).join(`
|
|
72
|
+
`),url:""}),f(""),A("custom"))},disabled:R,className:`text-left p-3 rounded-lg border transition-colors ${R?"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:[s.jsxs("div",{className:"flex items-start justify-between gap-1",children:[s.jsx("span",{className:"text-sm font-medium",children:k.name}),s.jsx("span",{className:"text-[10px] text-neutral-500 bg-white/[0.06] px-1.5 py-0.5 rounded shrink-0",children:V.label})]}),s.jsx("p",{className:"text-xs text-neutral-400 mt-1",children:k.description}),R&&s.jsx("p",{className:"text-[10px] text-neutral-500 mt-1",children:"Already added"})]},k.id)})})]},V.id)})}),E==="custom"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Name"}),s.jsx("input",{value:u.name,onChange:V=>d(T=>({...T,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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Transport"}),s.jsxs("select",{value:u.transport,onChange:V=>d(T=>({...T,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:[s.jsx("option",{value:"stdio",children:"stdio (subprocess on this machine)"}),s.jsx("option",{value:"http",children:"http (remote server via URL)"})]})]}),u.transport==="stdio"?s.jsxs(s.Fragment,{children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Command"}),s.jsx("input",{value:u.command,onChange:V=>d(T=>({...T,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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Args (space-separated)"}),s.jsx("input",{value:u.args,onChange:V=>d(T=>({...T,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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Env vars (optional, KEY=VALUE one per line)"}),s.jsx("textarea",{value:u.env,onChange:V=>d(T=>({...T,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"})]})]}):s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"URL"}),s.jsx("input",{value:u.url,onChange:V=>d(T=>({...T,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&&s.jsx("p",{className:"text-xs text-error",children:h}),s.jsxs("div",{className:"flex justify-end gap-2",children:[s.jsx("button",{onClick:()=>c(!1),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{onClick:S,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 sq(e){const a={};for(const l of e.split(`
|
|
73
|
+
`)){const i=l.trim();if(!i)continue;const c=i.indexOf("=");c>0&&(a[i.slice(0,c)]=i.slice(c+1))}return a}function o7(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}const lq=[{id:"overview",label:"Overview"},{id:"tasks",label:"Tasks"},{id:"activity",label:"Activity"},{id:"performance",label:"Performance"},{id:"config",label:"Config"}];function iq(){var ha;const{id:e}=xl(),a=Ba(["task:started","task:completed","task:failed"]),{data:l,loading:i,refetch:c}=Ae(e?`/api/agents/${e}`:null,[a]),{data:u}=Ae(e?`/api/agents/${e}/memory`:null),{data:d}=Ae(e?`/api/tasks?agentId=${e}&limit=50`:null,[a]),{data:h}=Ae("/api/activity",[a]),f=n.useMemo(()=>!h||!e?[]:h.filter(se=>se.agent_id===e),[h,e]),p=n.useMemo(()=>{if(!(d!=null&&d.length))return null;const se=d.filter(jt=>jt.status==="completed").length,At=d.filter(jt=>jt.status==="failed").length,Re=se+At>0?se/(se+At):0,mt=d.filter(jt=>jt.duration_seconds!=null).map(jt=>jt.duration_seconds),St=mt.length>0?mt.reduce((jt,_t)=>jt+_t,0)/mt.length:0,ot=d.reduce((jt,_t)=>jt+(_t.tokens_used||0),0),Cn=d.reduce((jt,_t)=>jt+(_t.cost_cents||0),0),I0=d.length>0?Math.round(ot/d.length):0;return{completed:se,failed:At,successRate:Re,avgDuration:St,totalTokens:ot,totalCostCents:Cn,avgTokens:I0}},[d]),[g,x]=n.useState("overview"),[y,w]=n.useState(!1),[N,E]=n.useState([]),[A,j]=n.useState(!1),[S,Z]=n.useState(!1),[C,H]=n.useState([]),[V,T]=n.useState(!1),[k,R]=n.useState(!1),[O,U]=n.useState([]),[X,K]=n.useState(!1),[$,Y]=n.useState(0),[L,B]=n.useState(0),[Q,he]=n.useState(0);n.useEffect(()=>{me("/api/voice/health").then(()=>(w(!0),me("/api/voice/profiles"))).then(se=>E(se.data||[])).catch(()=>w(!1))},[]);const ce=n.useMemo(()=>l?typeof l.config=="string"?JSON.parse(l.config):l.config||{}:{},[l]),D=n.useMemo(()=>l?typeof l.stats=="string"?JSON.parse(l.stats):l.stats||{}:{},[l]);n.useEffect(()=>{R(ce.mcp_enabled===!0),U(Array.isArray(ce.mcp_servers)?ce.mcp_servers:[])},[ce]),n.useEffect(()=>{if(l!=null&&l.autonomy_budget)try{const se=JSON.parse(l.autonomy_budget);Y(se.perTaskCents||0),B(se.dailyCents||0),he(se.monthlyCents||0)}catch{}},[l==null?void 0:l.autonomy_budget]);const te=ce.local_files_enabled===!0&&ce.bash_enabled===!0,[re,z]=n.useState([]),[q,P]=n.useState(""),[oe,fe]=n.useState("");n.useEffect(()=>{e&&me(`/api/agents/${e}/file-access`).then(se=>z(se.data||[])).catch(()=>{})},[e,ce]);const ye=async()=>{if(!(!e||!q.trim())){fe("");try{await me(`/api/agents/${e}/file-access`,{method:"POST",body:JSON.stringify({path:q.trim()})});const se=await me(`/api/agents/${e}/file-access`);z(se.data||[]),P("")}catch(se){fe(se instanceof Error?se.message:"Could not add path")}}},Le=async se=>{if(e)try{await me(`/api/agents/${e}/file-access/${se}`,{method:"DELETE"}),z(At=>At.filter(Re=>Re.id!==se))}catch{}},Ie=n.useMemo(()=>[{key:"model",label:"Model",value:String(ce.model||"claude-sonnet-4-5")},{key:"temperature",label:"Temperature",value:String(ce.temperature??"0.7")},{key:"max_tokens",label:"Max tokens",value:String(ce.max_tokens||"4096")},{key:"requires_approval",label:"Requires approval",value:String(ce.requires_approval??"no")},{key:"web_search",label:"Web search",value:String(ce.web_search??"no")},{key:"device_access",label:"Device access",value:te?"yes":"no"}],[ce,te]),Ue=n.useCallback(async se=>{if(e){j(!0);try{await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({voice_profile_id:se||null})}),c()}catch{}finally{j(!1)}}},[e,c]),it=n.useCallback(async()=>{if(!e||!l)return;const se=l.status==="paused"?"idle":"paused";try{await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({status:se})}),c()}catch{}},[e,l,c]),qe=n.useCallback(()=>{H(Ie.map(se=>({...se}))),Z(!0)},[Ie]),ve=n.useCallback(async()=>{if(e){T(!0);try{const se={};for(const Re of C){if(Re.key==="device_access"){const mt=Re.value==="true"||Re.value==="yes";se.local_files_enabled=mt,se.bash_enabled=mt;continue}Re.value==="true"||Re.value==="yes"?se[Re.key]=!0:Re.value==="false"||Re.value==="no"?se[Re.key]=!1:!isNaN(Number(Re.value))&&Re.value!==""?se[Re.key]=Number(Re.value):se[Re.key]=Re.value}const At=$||L||Q?JSON.stringify({perTaskCents:$,dailyCents:L,monthlyCents:Q,warnAt:.8}):null;await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({config:se,autonomy_budget:At})}),Z(!1),c()}catch{}finally{T(!1)}}},[e,C,$,L,Q,c]),ze=n.useCallback(async(se,At)=>{if(e){K(!0);try{await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({config:{...ce,mcp_enabled:se,mcp_servers:At}})}),c()}catch{}finally{K(!1)}}},[e,ce,c]);if(i)return s.jsx("div",{className:"p-6",children:s.jsx(We,{count:4})});if(!l)return s.jsx("div",{className:"p-6 text-neutral-400",children:"Agent not found"});const je=lq.map(se=>({...se,count:se.id==="tasks"?d==null?void 0:d.length:void 0}));return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsxs(Mt,{to:"/agents",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4 transition-colors",children:[s.jsx(Xr,{size:14})," Back to agents"]}),s.jsx(Fe,{title:l.name,subtitle:l.role,action:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:it,className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-md border transition-colors ${l.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:[l.status==="paused"?s.jsx(Xm,{size:14}):s.jsx(tF,{size:14}),l.status==="paused"?"Resume":"Pause"]}),s.jsx(ht,{status:l.status})]})}),l.description&&s.jsx("p",{className:"text-sm text-neutral-400 mb-4",children:l.description}),s.jsx(Zl,{tabs:je,activeTab:g,onTabChange:se=>{x(se),Z(!1)},layoutId:"agent-detail-tab"}),s.jsxs("div",{className:"mt-6",children:[g==="overview"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[s.jsx(Ht,{label:"Tasks",value:D.total_tasks||0}),s.jsx(Ht,{label:"Tokens",value:((ha=D.tokens_used)==null?void 0:ha.toLocaleString())||"0"}),s.jsx(Ht,{label:"Cost",value:`$${((D.cost_cents||0)/100).toFixed(2)}`})]}),y&&s.jsxs(s.Fragment,{children:[s.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Voice"}),s.jsx("div",{className:"border border-white/[0.08] rounded-lg px-4 py-3 mb-8",children:s.jsxs("label",{className:"flex items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:"Voice profile"}),s.jsx("p",{className:"text-xs text-neutral-500",children:"Choose which voice this agent uses during calls"})]}),s.jsxs("select",{value:l.voice_profile_id||"",onChange:se=>Ue(se.target.value),disabled:A,className:"bg-black border border-white/10 rounded-md px-3 py-1.5 text-sm min-w-[180px]",children:[s.jsx("option",{value:"",children:"Default voice"}),N.map(se=>s.jsx("option",{value:se.id,children:se.name},se.id))]})]})})]}),s.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Memory"}),u!=null&&u.length?s.jsx("div",{className:"space-y-2",children:u.map(se=>s.jsxs("div",{className:"border border-white/[0.08] rounded-lg px-4 py-3",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"text-xs text-white font-medium",children:se.memory_type}),s.jsx("span",{className:"text-xs text-neutral-500",children:new Date(se.created_at).toLocaleDateString()})]}),s.jsx("p",{className:"text-sm text-neutral-300",children:se.content})]},se.id))}):s.jsx("p",{className:"text-sm text-neutral-500",children:"No memories yet. This agent will learn from completed tasks."}),l.system_prompt&&s.jsxs(s.Fragment,{children:[s.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3 mt-8",children:"System Prompt"}),s.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:s.jsx("pre",{className:"text-sm whitespace-pre-wrap break-words text-neutral-300 max-h-[40vh] overflow-y-auto leading-relaxed",children:l.system_prompt})})]})]}),g==="tasks"&&s.jsx(s.Fragment,{children:d!=null&&d.length?s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:d.map(se=>s.jsxs(Mt,{to:`/tasks/${se.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:se.title}),s.jsx("p",{className:"text-xs text-neutral-500",children:o7(se.created_at)})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[se.tokens_used?s.jsxs("span",{className:"text-xs text-neutral-500",children:[se.tokens_used.toLocaleString()," tok"]}):null,se.priority&&s.jsx("span",{className:"text-xs text-warning",children:se.priority}),s.jsx(ht,{status:se.status})]})]},se.id))}):s.jsx(Vt,{icon:s.jsx(q1,{size:32}),title:"No tasks yet",description:"Tasks will appear here as this agent works."})}),g==="activity"&&s.jsx(s.Fragment,{children:f.length?s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:f.map(se=>s.jsxs("div",{className:"flex items-start gap-3 px-4 py-3",children:[s.jsxs("div",{className:"mt-0.5",children:[se.activity_type==="task_completed"&&s.jsx(F0,{size:16,weight:"fill",className:"text-success"}),se.activity_type==="task_failed"&&s.jsx(Sl,{size:16,weight:"fill",className:"text-critical"}),se.activity_type==="task_started"&&s.jsx(bt,{size:16,className:"text-white animate-spin"}),!["task_completed","task_failed","task_started"].includes(se.activity_type)&&s.jsx(Fr,{size:16,className:"text-neutral-400"})]}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-sm font-medium truncate",children:se.title}),s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/5 text-neutral-500 shrink-0",children:se.activity_type.replace(/_/g," ")})]}),se.description&&s.jsx("p",{className:"text-xs text-neutral-500 mt-0.5 truncate",children:se.description}),s.jsx("p",{className:"text-xs text-neutral-600 mt-1",children:o7(se.created_at)})]})]},se.id))}):s.jsx(Vt,{icon:s.jsx(Fr,{size:32}),title:"No activity yet",description:"Activity will appear here as this agent works on tasks."})}),g==="performance"&&s.jsx(s.Fragment,{children:p?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-6",children:[s.jsx(Ht,{label:"Success rate",value:`${(p.successRate*100).toFixed(0)}%`}),s.jsx(Ht,{label:"Avg duration",value:p.avgDuration>0?`${p.avgDuration.toFixed(1)}s`:"N/A"}),s.jsx(Ht,{label:"Total tokens",value:p.totalTokens.toLocaleString()})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[s.jsx(Ht,{label:"Total cost",value:`$${(p.totalCostCents/100).toFixed(2)}`}),s.jsx(Ht,{label:"Avg tokens/task",value:p.avgTokens.toLocaleString()}),s.jsx(Ht,{label:"Tasks evaluated",value:p.completed+p.failed})]}),s.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Task outcomes"}),s.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:s.jsx("svg",{viewBox:"0 0 300 80",className:"w-full max-w-sm",role:"img","aria-label":"Task outcome chart",children:(()=>{const se=p.completed+p.failed;if(se===0)return null;const At=p.completed/se*260,Re=p.failed/se*260;return s.jsxs(s.Fragment,{children:[s.jsx("rect",{x:20,y:10,width:At,height:24,rx:4,fill:"#22c55e"}),s.jsxs("text",{x:20,y:52,className:"text-[10px]",fill:"#a3a3a3",fontSize:"10",children:["Completed: ",p.completed]}),s.jsx("rect",{x:20,y:56,width:Re,height:24,rx:4,fill:"#ef4444"}),s.jsxs("text",{x:20+Re+8,y:72,className:"text-[10px]",fill:"#a3a3a3",fontSize:"10",children:["Failed: ",p.failed]})]})})()})})]}):s.jsx(Vt,{icon:s.jsx(Fr,{size:32}),title:"No performance data",description:"Complete some tasks first to see performance metrics."})}),g==="config"&&!S&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[Ie.map(se=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsx("span",{className:"text-sm text-neutral-400",children:se.label}),s.jsx("span",{className:"text-sm font-medium",children:se.value})]},se.key)),s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-sm text-neutral-400",children:"MCP tools"}),s.jsx("p",{className:"text-xs text-neutral-600",children:"Allow this agent to use MCP servers"})]}),s.jsx(pl,{checked:k,onChange:async se=>{R(se),await ze(se,O)},disabled:X,size:"sm"})]}),s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-sm text-neutral-400",children:"Device access"}),s.jsx("p",{className:"text-xs text-neutral-600",children:"Allow filesystem and shell access to local directories"})]}),s.jsx(pl,{checked:te,onChange:async se=>{if(e)try{await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({config:{...ce,local_files_enabled:se,bash_enabled:se}})}),c()}catch{}},size:"sm"})]})]}),k&&s.jsx(AM,{servers:O,onChange:async se=>{U(se),await ze(k,se)},disabled:X}),te&&s.jsxs("div",{className:"mt-4",children:[s.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Allowed directories"}),re.length>0?s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:re.map(se=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5",children:[s.jsx("code",{className:"text-sm text-neutral-300",children:se.path}),s.jsx("button",{onClick:()=>Le(se.id),className:"text-xs text-neutral-500 hover:text-red-400 transition-colors",children:"Remove"})]},se.id))}):s.jsx("p",{className:"text-sm text-neutral-500 mb-3",children:"No directories configured yet."}),s.jsxs("div",{className:"flex gap-2 mt-3",children:[s.jsx("input",{value:q,onChange:se=>{P(se.target.value),fe("")},onKeyDown:se=>{se.key==="Enter"&&ye()},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"}),s.jsx("button",{onClick:ye,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"})]}),oe&&s.jsx("p",{className:"text-xs text-red-400 mt-1",children:oe})]}),s.jsxs("div",{className:"mt-6 border-t border-zinc-800 pt-4",children:[s.jsx("h4",{className:"text-sm font-medium text-zinc-400 mb-1",children:"Budget Limits"}),s.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Cost caps for external API providers. Local models are always unlimited."}),s.jsx("div",{className:"text-sm text-zinc-400",children:$||L||Q?s.jsxs("div",{className:"flex gap-4",children:[$>0&&s.jsxs("span",{children:["Per task: ",$,"c"]}),L>0&&s.jsxs("span",{children:["Daily: ",L,"c"]}),Q>0&&s.jsxs("span",{children:["Monthly: ",Q,"c"]})]}):s.jsx("span",{className:"text-zinc-600",children:"No budget limits set"})})]}),s.jsx("div",{className:"mt-4",children:s.jsxs("button",{onClick:qe,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:[s.jsx(YO,{size:14})," Edit config"]})})]}),g==="config"&&S&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:C.map((se,At)=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsx("label",{className:"text-sm text-neutral-400",htmlFor:`config-${se.key}`,children:se.label}),s.jsx("input",{id:`config-${se.key}`,value:se.value,onChange:Re=>{const mt=[...C];mt[At]={...se,value:Re.target.value},H(mt)},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"})]},se.key))}),s.jsxs("div",{className:"mt-6 border-t border-zinc-800 pt-4",children:[s.jsx("h4",{className:"text-sm font-medium text-zinc-400 mb-1",children:"Budget Limits"}),s.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Cost caps for external API providers. Local models are always unlimited."}),s.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-zinc-500 block mb-1",children:"Per task (cents)"}),s.jsx("input",{type:"number",min:"0",value:$,onChange:se=>Y(Number(se.target.value)),className:"w-full bg-zinc-900 border border-zinc-700 rounded px-2 py-1.5 text-sm text-zinc-200"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-zinc-500 block mb-1",children:"Daily (cents)"}),s.jsx("input",{type:"number",min:"0",value:L,onChange:se=>B(Number(se.target.value)),className:"w-full bg-zinc-900 border border-zinc-700 rounded px-2 py-1.5 text-sm text-zinc-200"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-zinc-500 block mb-1",children:"Monthly (cents)"}),s.jsx("input",{type:"number",min:"0",value:Q,onChange:se=>he(Number(se.target.value)),className:"w-full bg-zinc-900 border border-zinc-700 rounded px-2 py-1.5 text-sm text-zinc-200"})]})]})]}),s.jsxs("div",{className:"flex gap-2 mt-4",children:[s.jsx("button",{onClick:()=>Z(!1),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{onClick:ve,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 oq=["all","queued","in_progress","completed","needs_approval","failed"],c7={urgent:0,high:1,normal:2,low:3},u7={in_progress:0,queued:1,needs_approval:2,completed:3,failed:4};function cq(){const e=Ba(["task:started","task:completed","task:failed"]),[a,l]=n.useState("all"),[i,c]=n.useState(!1),[u,d]=n.useState(""),[h,f]=n.useState("date"),p=a==="all"?"":`&status=${a}`,{data:g,loading:x,refetch:y}=Ae(`/api/tasks?limit=50${p}`,[e,a]),{data:w}=Ae("/api/agents"),N=n.useMemo(()=>{const A=new Map;return w==null||w.forEach(j=>A.set(j.id,j.name)),A},[w]),E=n.useMemo(()=>{if(!g)return[];let A=g;if(u.trim()){const j=u.toLowerCase();A=A.filter(S=>S.title.toLowerCase().includes(j)||(N.get(S.agent_id)||"").toLowerCase().includes(j))}return h==="priority"?A=[...A].sort((j,S)=>{const Z=c7[j.priority||"normal"]??2,C=c7[S.priority||"normal"]??2;return Z-C||new Date(S.created_at).getTime()-new Date(j.created_at).getTime()}):h==="status"&&(A=[...A].sort((j,S)=>{const Z=u7[j.status]??5,C=u7[S.status]??5;return Z-C||new Date(S.created_at).getTime()-new Date(j.created_at).getTime()})),A},[g,u,h,N]);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Tasks",subtitle:"All agent tasks",action:s.jsxs("button",{onClick:()=>c(!i),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:[s.jsx(yt,{size:14})," New task"]})}),i&&(w!=null&&w.length)?s.jsx(uq,{agents:w,onClose:()=>c(!1),onSuccess:y}):null,s.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:oq.map(A=>s.jsx("button",{onClick:()=>l(A),className:`px-3 py-1.5 rounded-md text-xs capitalize transition-colors ${a===A?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:A.replace(/_/g," ")},A))}),s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsxs("div",{className:"relative flex-1",children:[s.jsx(Mn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),s.jsx("input",{value:u,onChange:A=>d(A.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"})]}),s.jsxs("select",{value:h,onChange:A=>f(A.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:[s.jsx("option",{value:"date",children:"Sort by date"}),s.jsx("option",{value:"priority",children:"Sort by priority"}),s.jsx("option",{value:"status",children:"Sort by status"})]})]}),x?s.jsx(We,{count:5}):E.length?s.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:E.map(A=>s.jsxs(Mt,{to:`/tasks/${A.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/5 transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:A.title}),s.jsxs("p",{className:"text-xs text-neutral-400",children:[N.get(A.agent_id)&&s.jsx("span",{className:"text-white",children:N.get(A.agent_id)}),N.get(A.agent_id)&&" · ",new Date(A.created_at).toLocaleString()]})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[A.priority&&A.priority!=="normal"&&s.jsx("span",{className:"text-xs text-warning",children:A.priority}),A.tokens_used?s.jsxs("span",{className:"text-xs text-neutral-400",children:[A.tokens_used.toLocaleString()," tok"]}):null,s.jsx(ht,{status:A.status})]})]},A.id))}):s.jsx(Vt,{icon:s.jsx(q1,{size:32}),title:"Nothing here yet",description:u?`No tasks matching "${u}".`:a==="all"?"Tasks will appear as agents work.":`No ${a.replace(/_/g," ")} tasks.`})]})}function uq({agents:e,onClose:a,onSuccess:l}){var y;const[i,c]=n.useState(((y=e[0])==null?void 0:y.id)||""),[u,d]=n.useState(""),[h,f]=n.useState(""),[p,g]=n.useState(!1),x=async w=>{if(w.preventDefault(),!(!i||!u.trim())){g(!0);try{await me("/api/tasks",{method:"POST",body:JSON.stringify({agentId:i,title:u.trim(),description:h.trim()||void 0})}),l(),a()}catch{}finally{g(!1)}}};return s.jsxs("form",{onSubmit:x,className:"bg-white/5 border border-white/[0.08] rounded-lg p-4 mb-4 space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent"}),s.jsx("select",{value:i,onChange:w=>c(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=>s.jsx("option",{value:w.id,children:w.name},w.id))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Title"}),s.jsx("input",{value:u,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"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description (optional)"}),s.jsx("textarea",{value:h,onChange:w=>f(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"})]}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:p||!u.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 d7({title:e,defaultOpen:a=!0,children:l}){const[i,c]=n.useState(a);return s.jsxs("div",{className:"mb-6",children:[s.jsxs("button",{type:"button",onClick:()=>c(u=>!u),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:[i?s.jsx(tn,{size:14,weight:"bold"}):s.jsx(Nl,{size:14,weight:"bold"}),e]}),s.jsx(za,{initial:!1,children:i&&s.jsx(Te.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:l})})]})}function dq(e){return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})}function hq({events:e}){return s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Timeline"}),s.jsxs("div",{className:"relative pl-6",children:[s.jsx("div",{className:"absolute left-[7px] top-1 bottom-1 w-px bg-white/[0.12]"}),s.jsx("div",{className:"space-y-4",children:e.map((a,l)=>s.jsxs("div",{className:"relative flex items-start gap-3",children:[s.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:a.color},children:s.jsx("span",{className:"flex items-center justify-center text-black",children:a.icon})}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-sm font-medium",children:a.label}),s.jsx("p",{className:"text-xs text-neutral-400",children:dq(a.timestamp)})]})]},l))})]})]})}function mq(e){try{const a=JSON.parse(e);if(Array.isArray(a)){const l=a.filter(i=>i.type==="tool_use");if(l.length>0)return l.map(i=>({name:i.name,arguments:i.input??i.arguments??{}}))}if(a.tool_calls&&Array.isArray(a.tool_calls))return a.tool_calls.map(l=>{var i,c,u;return{name:((i=l.function)==null?void 0:i.name)??l.name,arguments:typeof((c=l.function)==null?void 0:c.arguments)=="string"?JSON.parse(l.function.arguments):((u=l.function)==null?void 0:u.arguments)??l.arguments??{}}});if(a.type==="tool_use"&&a.name)return[{name:a.name,arguments:a.input??a.arguments??{}}]}catch{}return null}function fq({call:e}){const[a,l]=n.useState(!1);return s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3 my-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.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}),s.jsxs("button",{type:"button",onClick:()=>l(i=>!i),className:"text-xs text-neutral-400 hover:text-white transition-colors flex items-center gap-0.5",children:[a?s.jsx(tn,{size:12}):s.jsx(Nl,{size:12}),a?"Hide args":"Show args"]})]}),s.jsx(za,{initial:!1,children:a&&s.jsx(Te.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.15},style:{overflow:"hidden"},children:s.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 pq({content:e}){const a=n.useMemo(()=>mq(e),[e]);return a?s.jsx("div",{className:"space-y-1",children:a.map((l,i)=>s.jsx(fq,{call:l},i))}):s.jsx("pre",{className:"whitespace-pre-wrap break-words",children:typeof e=="string"?e:JSON.stringify(e)})}const h7={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 gq({priority:e}){const a=h7[e.toLowerCase()]??h7.low;return s.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium border ${a}`,children:e})}function xq(){const{id:e}=xl(),{data:a,loading:l}=Ae(e?`/api/tasks/${e}`:null),{data:i}=Ae(e?`/api/tasks/${e}/messages`:null),{data:c}=Ae(a!=null&&a.agent_id?`/api/agents/${a.agent_id}`:null),u=n.useMemo(()=>{if(!a)return[];const d=[];if(d.push({label:"Created",timestamp:a.created_at,color:"#737373",icon:s.jsx(Br,{size:9,weight:"bold"})}),a.started_at&&d.push({label:"Started",timestamp:a.started_at,color:"#3b82f6",icon:s.jsx(bt,{size:9,weight:"bold"})}),a.completed_at){const h=a.status==="failed"||a.status==="error";d.push({label:h?"Failed":"Completed",timestamp:a.completed_at,color:h?"#ef4444":"#22c55e",icon:h?s.jsx(Sl,{size:9,weight:"bold"}):s.jsx(F0,{size:9,weight:"bold"})})}return d},[a]);return l?s.jsx("div",{className:"p-6",children:s.jsx(We,{count:6})}):a?s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsxs(Mt,{to:"/tasks",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4",children:[s.jsx(Xr,{size:14})," Back to tasks"]}),s.jsx(Fe,{title:a.title,action:s.jsxs("div",{className:"flex items-center gap-2",children:[a.priority&&s.jsx(gq,{priority:a.priority}),s.jsx(ht,{status:a.status})]})}),a.description&&s.jsx("p",{className:"text-sm text-neutral-400 mb-4",children:a.description}),u.length>0&&s.jsx(hq,{events:u}),s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-6",children:[c&&s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:"Agent"}),s.jsx(Mt,{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})]}),a.model_used&&s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:"Model"}),s.jsx("p",{className:"text-sm font-medium mt-0.5",children:a.model_used})]}),a.tokens_used!=null&&s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:"Tokens"}),s.jsx("p",{className:"text-sm font-medium mt-0.5",children:a.tokens_used.toLocaleString()})]}),a.cost_cents!=null&&s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:"Cost"}),s.jsxs("p",{className:"text-sm font-medium mt-0.5",children:["$",(a.cost_cents/100).toFixed(4)]})]}),a.duration_seconds!=null&&s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:"Duration"}),s.jsxs("p",{className:"text-sm font-medium mt-0.5",children:[a.duration_seconds,"s"]})]})]}),a.error_message&&s.jsx("div",{className:"bg-critical/10 border border-critical/30 rounded-lg p-4 mb-6",children:s.jsx("p",{className:"text-sm text-critical",children:a.error_message})}),a.output&&s.jsx(d7,{title:"Output",children:s.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:s.jsx("pre",{className:"text-sm whitespace-pre-wrap break-words",children:typeof a.output=="string"?a.output:JSON.stringify(a.output,null,2)})})}),i&&i.length>0&&s.jsx(d7,{title:"Conversation",children:s.jsx("div",{className:"space-y-2",children:i.map(d=>s.jsxs("div",{className:`rounded-lg p-3 text-sm ${d.role==="user"?"bg-white/5 border border-white/[0.12]":"border border-white/[0.08]"}`,children:[s.jsx("p",{className:"text-xs text-neutral-400 mb-1 capitalize",children:d.role}),s.jsx(pq,{content:d.content})]},d.id))})})]}):s.jsx("div",{className:"p-6 text-neutral-400",children:"Task not found"})}function vq(e){if(!e)return null;if(typeof e=="string")try{return JSON.parse(e)}catch{return null}return e}function bq(){const e=Ba(["task:completed"]),{data:a,loading:l,refetch:i}=Ae("/api/approvals",[e]),[c,u]=n.useState(null),[d,h]=n.useState(!1),[f,p]=n.useState(null),[g,x]=n.useState(""),y=n.useCallback(async A=>{u(A);try{await me(`/api/approvals/${A}/approve`,{method:"POST"}),i()}catch{}finally{u(null)}},[i]),w=n.useCallback(async()=>{if(f){u(f.id);try{await me(`/api/approvals/${f.id}/reject`,{method:"POST",body:JSON.stringify({reason:g.trim()||void 0})}),p(null),x(""),i()}catch{}finally{u(null)}}},[f,g,i]),N=n.useCallback(async()=>{if(a!=null&&a.length){h(!0);try{for(const A of a)await me(`/api/approvals/${A.id}/approve`,{method:"POST"});i()}catch{}finally{h(!1)}}},[a,i]),E=n.useCallback(async()=>{if(a!=null&&a.length){h(!0);try{for(const A of a)await me(`/api/approvals/${A.id}/reject`,{method:"POST"});i()}catch{}finally{h(!1)}}},[a,i]);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Approvals",subtitle:"Tasks waiting for your review",action:a!=null&&a.length?s.jsxs("div",{className:"flex gap-2",children:[s.jsxs("button",{onClick:E,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:[s.jsx(Sl,{size:14})," Reject all"]}),s.jsxs("button",{onClick:N,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:[s.jsx(F0,{size:14})," Approve all"]})]}):void 0}),l?s.jsx(We,{count:3}):a!=null&&a.length?s.jsx("div",{className:"space-y-3",children:a.map(A=>{const j=vq(A.deferred_action);return s.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:s.jsxs("div",{className:"flex items-start justify-between gap-4",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("p",{className:"text-sm font-medium",children:A.title}),j&&s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs bg-warning/15 text-warning",children:[j.provider==="gmail"?s.jsx(BO,{size:12}):s.jsx(ca,{size:12}),j.type,j.params.to?` → ${j.params.to}`:""]})]}),s.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:new Date(A.created_at).toLocaleString()}),A.output&&s.jsx("pre",{className:"text-xs text-neutral-400 mt-2 whitespace-pre-wrap break-words max-h-32 overflow-y-auto",children:typeof A.output=="string"?A.output.slice(0,500):JSON.stringify(A.output).slice(0,500)})]}),s.jsxs("div",{className:"flex gap-2 shrink-0",children:[s.jsx("button",{onClick:()=>{p(A),x("")},disabled:c===A.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"}),s.jsx("button",{onClick:()=>y(A.id),disabled:c===A.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"})]})]})},A.id)})}):s.jsx(Vt,{icon:s.jsx(GN,{size:32}),title:"All clear",description:"No tasks waiting for approval right now."}),f&&s.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50 p-4",children:s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 w-full max-w-md",children:[s.jsx("h3",{className:"text-sm font-semibold mb-1",children:"Reject task"}),s.jsxs("p",{className:"text-xs text-neutral-400 mb-4",children:["“",f.title,"”"]}),s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Reason (optional)"}),s.jsx("textarea",{value:g,onChange:A=>x(A.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"}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{onClick:()=>p(null),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{onClick:w,disabled:c===f.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:c===f.id?"Rejecting...":"Reject"})]})]})})]})}const yq={task_completed:"text-success",task_failed:"text-critical",task_started:"text-white",task_needs_approval:"text-warning",schedule_fired:"text-warning",agent_created:"text-white",memory_extracted:"text-warning"},wq=["all","task_completed","task_failed","task_started","task_needs_approval","schedule_fired","agent_created","memory_extracted"];function Aq(e){if(e==="all")return null;const a=new Date;return e==="today"?(a.setHours(0,0,0,0),a):e==="7d"?(a.setDate(a.getDate()-7),a):(a.setDate(a.getDate()-30),a)}function jq(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}function Eq(){const e=Ba(["task:started","task:completed","task:failed","memory:extracted"]),{data:a,loading:l}=Ae("/api/activity",[e]),[i,c]=n.useState("all"),[u,d]=n.useState("all"),[h,f]=n.useState(""),p=n.useMemo(()=>{if(!a)return[];let g=a;i!=="all"&&(g=g.filter(y=>y.activity_type===i));const x=Aq(u);if(x&&(g=g.filter(y=>new Date(y.created_at)>=x)),h.trim()){const y=h.toLowerCase();g=g.filter(w=>w.title.toLowerCase().includes(y)||(w.description||"").toLowerCase().includes(y))}return g},[a,i,u,h]);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Activity",subtitle:"Recent events"}),s.jsx("div",{className:"flex gap-1 mb-3 overflow-x-auto",children:wq.map(g=>s.jsx("button",{onClick:()=>c(g),className:`px-3 py-1 rounded text-xs whitespace-nowrap transition-colors ${i===g?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:g==="all"?"All":g.replace(/_/g," ")},g))}),s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{className:"flex gap-1",children:["all","today","7d","30d"].map(g=>s.jsx("button",{onClick:()=>d(g),className:`px-2.5 py-1 rounded text-xs transition-colors ${u===g?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:g==="all"?"All time":g==="today"?"Today":g==="7d"?"7 days":"30 days"},g))}),s.jsxs("div",{className:"relative flex-1",children:[s.jsx(Mn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),s.jsx("input",{value:h,onChange:g=>f(g.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"})]})]}),l?s.jsx(We,{count:8}):p.length?s.jsx("div",{className:"space-y-1",children:p.map((g,x)=>s.jsxs(Te.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:x*.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:[s.jsx("span",{className:`text-xs font-mono mt-0.5 shrink-0 ${yq[g.activity_type]||"text-neutral-400"}`,children:g.activity_type.replace(/_/g," ")}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"text-sm",children:g.title}),g.description&&s.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:g.description})]}),s.jsx("span",{className:"text-xs text-neutral-500 shrink-0",children:jq(g.created_at)})]},g.id))}):s.jsx(Vt,{icon:s.jsx(UE,{size:32}),title:"Quiet so far",description:h||i!=="all"||u!=="all"?"No activity matching your filters.":"Activity will show up here as agents complete tasks."})]})}function c0({open:e,onClose:a,onConfirm:l,title:i="Confirm",message:c,confirmLabel:u="Confirm",confirmColor:d="critical",loading:h=!1}){const f=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 s.jsxs(da,{open:e,onClose:a,title:i,children:[s.jsx("p",{className:"text-sm text-neutral-400 mb-6",children:c}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{onClick:a,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{onClick:l,disabled:h,className:`px-3 py-1.5 border rounded text-xs font-medium transition-colors disabled:opacity-50 ${f}`,children:h?"Working...":u})]})]})}const m7=[{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 jM({value:e,onChange:a}){const[l,i]=n.useState(m7.some(c=>c.cron===e)?"preset":"custom");return s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex gap-1",children:[s.jsx("button",{type:"button",onClick:()=>i("preset"),className:`px-2 py-1 rounded text-xs transition-colors ${l==="preset"?"bg-white/5 text-white":"text-neutral-400 hover:text-white"}`,children:"Presets"}),s.jsx("button",{type:"button",onClick:()=>i("custom"),className:`px-2 py-1 rounded text-xs transition-colors ${l==="custom"?"bg-white/5 text-white":"text-neutral-400 hover:text-white"}`,children:"Custom"})]}),l==="preset"?s.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:m7.map(c=>s.jsxs("button",{type:"button",onClick:()=>a(c.cron),className:`text-left px-3 py-2 rounded text-xs transition-colors border ${e===c.cron?"border-white/20 bg-white/10 text-white":"border-white/[0.08] hover:border-white/20 text-neutral-400 hover:text-white"}`,children:[s.jsx("span",{className:"block",children:c.label}),s.jsx("span",{className:"block font-mono text-[10px] text-neutral-400 mt-0.5",children:c.cron})]},c.cron))}):s.jsxs("div",{children:[s.jsx("input",{type:"text",value:e,onChange:c=>a(c.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"}),s.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:"Format: minute hour day month weekday"})]})]})}function Nq(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}function Mq(e){const a=new Date(e).getTime()-Date.now();if(a<0)return"overdue";const l=Math.floor(a/6e4);if(l<1)return"now";if(l<60)return`in ${l}m`;const i=Math.floor(l/60);return i<24?`in ${i}h`:`in ${Math.floor(i/24)}d`}const f7=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Sq=6,Zq=22;function Cq(e){const a=e.trim().split(/\s+/);if(a.length<5)return{hours:[],dows:[]};const l=a[1],i=a[4],c=(f,p,g)=>{if(f==="*"){const y=[];for(let w=p;w<=g;w++)y.push(w);return y}const x=[];for(const y of f.split(","))if(y.includes("/")){const[w,N]=y.split("/"),E=parseInt(N,10),A=w==="*"?p:parseInt(w,10);for(let j=A;j<=g;j+=E)x.push(j)}else if(y.includes("-")){const[w,N]=y.split("-").map(Number);for(let E=w;E<=N;E++)x.push(E)}else{const w=parseInt(y,10);isNaN(w)||x.push(w)}return x},u=c(l,0,23),h=c(i,0,6).map(f=>f===0?6:f-1);return{hours:u,dows:h}}function Hq(){const e=new Date,a=e.getDay(),l=a===0?-6:1-a,i=new Date(e);i.setDate(e.getDate()+l),i.setHours(0,0,0,0);const c=[];for(let u=0;u<7;u++){const d=new Date(i);d.setDate(i.getDate()+u),c.push(d)}return c}function Vq({schedules:e}){const a=n.useMemo(()=>Hq(),[]),l=n.useMemo(()=>e.filter(f=>f.enabled),[e]),i=n.useMemo(()=>l.map(f=>({label:f.label,...Cq(f.cron_expression||f.cron)})),[l]),c=[];for(let f=Sq;f<=Zq;f++)c.push(f);const u=(f,p)=>i.filter(g=>g.dows.includes(f)&&g.hours.includes(p)),d=new Date,h=d.getDay()===0?6:d.getDay()-1;return s.jsxs(Te.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:[s.jsxs("div",{className:"grid grid-cols-[64px_repeat(7,1fr)]",children:[s.jsx("div",{className:"bg-white/[0.02] border-b border-r border-white/[0.08] p-2"}),f7.map((f,p)=>s.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:[s.jsx("div",{children:f}),s.jsx("div",{className:`text-[10px] mt-0.5 ${p===h?"text-neutral-300":"text-neutral-600"}`,children:a[p].getDate()})]},f))]}),s.jsx("div",{className:"max-h-[480px] overflow-y-auto",children:c.map(f=>s.jsxs("div",{className:"grid grid-cols-[64px_repeat(7,1fr)]",children:[s.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:f===0?"12am":f<12?`${f}am`:f===12?"12pm":`${f-12}pm`}),f7.map((p,g)=>{const x=u(g,f);return s.jsx("div",{className:`border-b border-white/[0.08] min-h-[36px] p-1 ${g<6?"border-r border-white/[0.08]":""} ${x.length>0?"bg-success/15":""}`,children:x.map((y,w)=>s.jsx("div",{className:"text-[10px] text-success leading-tight truncate px-1 py-0.5 rounded",children:y.label},w))},p)})]},f))})]})}function _q(){const{data:e,loading:a,refetch:l}=Ae("/api/schedules"),[i,c]=n.useState(null),[u,d]=n.useState(!1),[h,f]=n.useState(null),[p,g]=n.useState(null),[x,y]=n.useState(!1),[w,N]=n.useState("list"),E=async j=>{c(j);try{await me(`/api/schedules/${j}/toggle`,{method:"POST"}),l()}catch{ue("error","Couldn't toggle schedule. Try again?")}finally{c(null)}},A=async()=>{if(p){y(!0);try{await me(`/api/schedules/${p.id}`,{method:"DELETE"}),ue("success","Schedule deleted"),l()}catch{ue("error","Couldn't delete schedule. Try again?")}finally{y(!1),g(null)}}};return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Schedules",subtitle:"Automated task schedules",action:s.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:[s.jsx(yt,{size:14})," New schedule"]})}),a?s.jsx(We,{count:3}):e!=null&&e.length?s.jsxs(s.Fragment,{children:[s.jsx(Zl,{tabs:[{id:"list",label:"List",count:e.length},{id:"calendar",label:"Calendar"}],activeTab:w,onTabChange:N,layoutId:"schedules-tab"}),s.jsx("div",{className:"mt-4",children:w==="list"?s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(j=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-4",children:[s.jsxs("div",{className:"min-w-0 mr-4 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:`w-2 h-2 rounded-full shrink-0 ${j.enabled?"bg-success":"bg-white/10"}`}),s.jsx("p",{className:"text-sm font-medium truncate",children:j.label})]}),s.jsxs("div",{className:"flex gap-3 mt-1 ml-4",children:[s.jsx("span",{className:"text-xs text-neutral-400 font-mono",children:j.cron_expression||j.cron}),j.next_run_at&&s.jsxs("span",{className:"text-xs text-neutral-400",children:["Next: ",Mq(j.next_run_at)]}),j.last_run_at&&s.jsxs("span",{className:"text-xs text-neutral-400",children:["Last: ",Nq(j.last_run_at)]})]}),j.task_prompt&&s.jsx("p",{className:"text-xs text-neutral-400 mt-1 ml-4 truncate max-w-md",children:j.task_prompt})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[s.jsx("button",{onClick:()=>f(j),className:"text-neutral-400 hover:text-white transition-colors",title:"Edit",children:s.jsx(em,{size:14})}),s.jsx("button",{onClick:()=>g(j),className:"text-neutral-400 hover:text-critical transition-colors",title:"Delete",children:s.jsx(It,{size:14})}),s.jsx(pl,{checked:!!j.enabled,onChange:()=>E(j.id),disabled:i===j.id})]})]},j.id))}):s.jsx(Vq,{schedules:e})})]}):s.jsx(Vt,{icon:s.jsx(_O,{size:32}),title:"Nothing scheduled yet",description:"Set up recurring tasks to keep your agents busy.",action:s.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:[s.jsx(yt,{size:14})," Create your first schedule"]})}),u&&s.jsx(p7,{onClose:()=>d(!1),onSuccess:()=>{l(),d(!1)}}),h&&s.jsx(p7,{schedule:h,onClose:()=>f(null),onSuccess:()=>{l(),f(null)}}),s.jsx(c0,{open:!!p,onClose:()=>g(null),onConfirm:A,title:"Delete schedule",message:`Delete "${p==null?void 0:p.label}"? This can't be undone.`,confirmLabel:"Delete",loading:x})]})}function p7({schedule:e,onClose:a,onSuccess:l}){const i=!!e,{data:c}=Ae("/api/agents"),[u,d]=n.useState((e==null?void 0:e.label)||""),[h,f]=n.useState((e==null?void 0:e.cron_expression)||(e==null?void 0:e.cron)||"0 9 * * *"),[p,g]=n.useState((e==null?void 0:e.agent_id)||""),[x,y]=n.useState((e==null?void 0:e.task_prompt)||""),[w,N]=n.useState(!1),E=async A=>{if(A.preventDefault(),!(!u.trim()||!h.trim())){N(!0);try{i?(await me(`/api/schedules/${e.id}`,{method:"PUT",body:JSON.stringify({label:u.trim(),cron:h.trim(),agent_id:p||null,task_prompt:x})}),ue("success","Schedule updated")):(await me("/api/schedules",{method:"POST",body:JSON.stringify({label:u.trim(),cron:h.trim(),agent_id:p||null,task_prompt:x})}),ue("success","Schedule created")),l()}catch{ue("error",`Couldn't ${i?"update":"create"} schedule. Try again?`)}finally{N(!1)}}};return s.jsx(da,{open:!0,onClose:a,title:i?"Edit schedule":"New schedule",maxWidth:"max-w-lg",children:s.jsxs("form",{onSubmit:E,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Title"}),s.jsx("input",{value:u,onChange:A=>d(A.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})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent"}),s.jsxs("select",{value:p,onChange:A=>g(A.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:[s.jsx("option",{value:"",children:"Orchestrator (default)"}),c==null?void 0:c.map(A=>s.jsx("option",{value:A.id,children:A.name},A.id))]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Schedule"}),s.jsx(jM,{value:h,onChange:f})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Task prompt"}),s.jsx("textarea",{value:x,onChange:A=>y(A.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"})]}),s.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[s.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:w||!u.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...":i?"Save changes":"Create schedule"})]})]})})}const EM={SAMPLE_RATE:16e3,BIT_DEPTH:16,CHANNELS:1};function Tq(e){const{SAMPLE_RATE:a,BIT_DEPTH:l,CHANNELS:i}=EM,c=a*i*(l/8),u=i*(l/8),d=e.byteLength,h=new ArrayBuffer(44+d),f=new DataView(h);return l1(f,0,"RIFF"),f.setUint32(4,36+d,!0),l1(f,8,"WAVE"),l1(f,12,"fmt "),f.setUint32(16,16,!0),f.setUint16(20,1,!0),f.setUint16(22,i,!0),f.setUint32(24,a,!0),f.setUint32(28,c,!0),f.setUint16(32,u,!0),f.setUint16(34,l,!0),l1(f,36,"data"),f.setUint32(40,d,!0),new Int16Array(h,44).set(e),h}function Lq(e){const a=new Int16Array(e.length);for(let l=0;l<e.length;l++){const i=Math.max(-1,Math.min(1,e[l]));a[l]=i<0?i*32768:i*32767}return a}function Rq(e,a,l){if(a===l)return e;const i=a/l,c=Math.round(e.length/i),u=new Float32Array(c);for(let d=0;d<c;d++){const h=Math.round(d*i);u[d]=e[Math.min(h,e.length-1)]}return u}async function kq(e,a){const l=a||new AudioContext,i=await l.decodeAudioData(e.slice(0)),c=l.createBufferSource();return c.buffer=i,c.connect(l.destination),new Promise(u=>{c.onended=()=>u(),c.start(0)})}function Dq(e){const a=new AudioContext;let l=[],i=!1;async function c(){if(l.length===0){i=!1;return}i=!0;const u=l.shift();await kq(u,a),await c()}return{enqueue(u){l.push(u),i||c()},clear(){l=[],i=!1},close(){l=[],i=!1,a.close()},get isPlaying(){return i}}}function l1(e,a,l){for(let i=0;i<l.length;i++)e.setUint8(a+i,l.charCodeAt(i))}class Oq{constructor(a,l={}){ja(this,"threshold");ja(this,"minSpeechMs");ja(this,"silenceMs");ja(this,"onSpeechStart");ja(this,"onSpeechEnd");ja(this,"isSpeaking",!1);ja(this,"speechStartTime",0);ja(this,"lastSpeechTime",0);ja(this,"audioChunks",[]);ja(this,"sampleRate");ja(this,"checkInterval",null);this.sampleRate=a,this.threshold=l.threshold??.01,this.minSpeechMs=l.minSpeechMs??300,this.silenceMs=l.silenceMs??800,this.onSpeechStart=l.onSpeechStart,this.onSpeechEnd=l.onSpeechEnd}processFrame(a){var c;const l=Fq(a),i=Date.now();l>this.threshold&&(this.isSpeaking||(this.isSpeaking=!0,this.speechStartTime=i,this.audioChunks=[],(c=this.onSpeechStart)==null||c.call(this)),this.lastSpeechTime=i),this.isSpeaking&&(this.audioChunks.push(new Float32Array(a)),l<=this.threshold&&i-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 f;const a=Date.now()-this.speechStartTime;if(this.isSpeaking=!1,a<this.minSpeechMs||this.audioChunks.length===0){this.audioChunks=[];return}const l=this.audioChunks.reduce((p,g)=>p+g.length,0),i=new Float32Array(l);let c=0;for(const p of this.audioChunks)i.set(p,c),c+=p.length;this.audioChunks=[];const u=Rq(i,this.sampleRate,EM.SAMPLE_RATE),d=Lq(u),h=Tq(d);(f=this.onSpeechEnd)==null||f.call(this,h)}}function Fq(e){let a=0;for(let l=0;l<e.length;l++)a+=e[l]*e[l];return Math.sqrt(a/e.length)}function qq(){return typeof window>"u"?null:window.SpeechRecognition||window.webkitSpeechRecognition||null}function g7(e="en-US"){const a=qq();if(!a)return{isSupported:!1,start(){},stop(){},onResult(){},onError(){}};const l=new a;l.continuous=!0,l.interimResults=!0,l.lang=e;let i=null,c=null;return l.onresult=u=>{if(!i)return;const d=u.results[u.results.length-1];d&&i(d[0].transcript,d.isFinal)},l.onerror=u=>{u.error!=="no-speech"&&u.error!=="aborted"&&(c==null||c(u.error))},l.onend=()=>{try{l.start()}catch{}},{isSupported:!0,start(){try{l.start()}catch{}},stop(){l.onend=null;try{l.stop()}catch{}},onResult(u){i=u},onError(u){c=u}}}function zq(){if(typeof window>"u"||!window.speechSynthesis)return{isSupported:!1,speak(){},stop(){},isSpeaking:()=>!1,onStart(){},onEnd(){}};const e=window.speechSynthesis;let a=null,l=null;return{isSupported:!0,speak(i){const c=new SpeechSynthesisUtterance(i);c.onstart=()=>a==null?void 0:a(),c.onend=()=>l==null?void 0:l(),c.onerror=()=>l==null?void 0:l(),e.speak(c)},stop(){e.cancel()},isSpeaking:()=>e.speaking,onStart(i){a=i},onEnd(i){l=i}}}function Bq(){const e=Nn(),a=window.location.protocol==="https:"?"wss:":"ws:",l=window.location.host;return`${a}//${l}/ws/voice?token=${e}`}function $q(){return""}async function Iq(){try{const e=Nn(),a=await fetch(`${$q()}/api/voice/providers`,{headers:{Authorization:`Bearer ${e}`},signal:AbortSignal.timeout(3e3)});if(a.ok){const{data:l}=await a.json();if((l==null?void 0:l.recommendedMode)==="full")return"full"}}catch{}return"browser-native"}function Uq(e){const[a,l]=n.useState("idle"),[i,c]=n.useState(""),[u,d]=n.useState(""),[h,f]=n.useState(null),[p,g]=n.useState(!1),[x,y]=n.useState(null),w=n.useRef(null),N=n.useRef(null),E=n.useRef(null),A=n.useRef(null),j=n.useRef(null),S=n.useRef(null),Z=n.useRef(null),C=n.useRef(null),H=n.useCallback(()=>{var U,X,K,$,Y,L,B;(U=E.current)==null||U.stop(),E.current=null,(X=A.current)==null||X.disconnect(),A.current=null,(K=N.current)==null||K.getTracks().forEach(Q=>Q.stop()),N.current=null,($=j.current)==null||$.close(),j.current=null,(Y=S.current)==null||Y.close(),S.current=null,(L=Z.current)==null||L.stop(),Z.current=null,(B=C.current)==null||B.stop(),C.current=null,w.current&&w.current.readyState!==WebSocket.CLOSED&&(w.current.send(JSON.stringify({type:"stop"})),w.current.close()),w.current=null,l("idle"),y(null),f(null)},[]);n.useEffect(()=>H,[H]);const V=n.useCallback(async()=>{f(null),c(""),d("");const U=await Iq();if(U==="browser-native"&&!g7().isSupported){f("Voice requires Chrome, Edge, or Safari. Firefox is not supported yet.");return}y(U);const X=new WebSocket(Bq());w.current=X,X.binaryType="arraybuffer",U==="browser-native"?await T(X,e):await k(X,e)},[e,H]),T=n.useCallback(async(U,X)=>{const K=g7(),$=zq();Z.current=K,C.current=$,$.onStart(()=>l("speaking")),$.onEnd(()=>l("listening")),U.onopen=()=>{U.send(JSON.stringify({type:"start",agentId:X,mode:"browser-native"})),K.onResult((Y,L)=>{c(Y),L&&Y.trim()&&U.readyState===WebSocket.OPEN&&(U.send(JSON.stringify({type:"transcript",text:Y})),l("processing"))}),K.onError(Y=>{f(`Speech recognition error: ${Y}`)}),K.start(),l("listening")},U.onmessage=Y=>{if(!(Y.data instanceof ArrayBuffer))try{const L=JSON.parse(Y.data);switch(L.type){case"response":d(L.text),$.speak(L.text);break;case"transcription":c(L.text);break;case"error":f(L.message);break;case"state":L.state==="processing"&&l("processing");break}}catch{}},U.onerror=()=>{f("Couldn't connect to voice server. Is the runtime running?"),H()},U.onclose=()=>{H()}},[H]),k=n.useCallback(async(U,X)=>{let K;try{K=await navigator.mediaDevices.getUserMedia({audio:{sampleRate:{ideal:16e3},channelCount:1,echoCancellation:!0,noiseSuppression:!0}})}catch{f("Couldn't access microphone. Check your browser permissions.");return}N.current=K;const $=new AudioContext;j.current=$;const Y=$.createMediaStreamSource(K),L=Dq();S.current=L,U.onopen=()=>{U.send(JSON.stringify({type:"start",agentId:X}))},U.onmessage=ce=>{if(ce.data instanceof ArrayBuffer){L.enqueue(ce.data);return}try{const D=JSON.parse(ce.data);switch(D.type){case"state":l(D.state);break;case"transcription":c(D.text);break;case"response":d(D.text);break;case"error":f(D.message);break}}catch{}},U.onerror=()=>{f("Couldn't connect to voice server. Is the runtime running?"),H()},U.onclose=()=>{H()};const Q=$.createScriptProcessor(4096,1,1);A.current=Q;const he=new Oq($.sampleRate,{threshold:.01,minSpeechMs:300,silenceMs:800,onSpeechStart:()=>{l("listening")},onSpeechEnd:ce=>{U.readyState===WebSocket.OPEN&&U.send(ce)}});E.current=he,he.start(),Q.onaudioprocess=ce=>{if(p)return;const D=ce.inputBuffer.getChannelData(0);he.processFrame(D)},Y.connect(Q),Q.connect($.destination)},[p,H]),R=n.useCallback(()=>{H()},[H]),O=n.useCallback(()=>{g(U=>{var K,$,Y;const X=!U;return(K=N.current)==null||K.getAudioTracks().forEach(L=>{L.enabled=!X}),X?($=Z.current)==null||$.stop():(Y=Z.current)==null||Y.start(),X})},[]);return{state:a,transcript:i,response:u,error:h,startCall:V,endCall:R,toggleMute:O,isMuted:p,mode:x}}const v1=24,P2=3,G2=2,Vr=2,L0=32;function Pq({state:e,className:a=""}){const l=n.useRef(null),i=n.useRef(0);return n.useEffect(()=>{const c=l.current;if(!c)return;const u=c.getContext("2d");if(!u)return;const d=v1*(P2+G2)-G2;c.width=d*2,c.height=L0*2,c.style.width=`${d}px`,c.style.height=`${L0}px`,u.scale(2,2);const h=new Float32Array(v1).fill(0);function f(){if(u){u.clearRect(0,0,d,L0);for(let p=0;p<v1;p++){const g=Gq(e,p,Date.now());h[p]+=(g-h[p])*.15;const x=Math.max(Vr,h[p]),y=p*(P2+G2),w=(L0-x)/2;u.fillStyle=Yq(e),u.beginPath(),u.roundRect(y,w,P2,x,1.5),u.fill()}i.current=requestAnimationFrame(f)}}return f(),()=>cancelAnimationFrame(i.current)},[e]),s.jsx("canvas",{ref:l,className:a})}function Gq(e,a,l){switch(e){case"listening":{const i=Math.sin(l/200+a*.5)*.5+.5;return Vr+i*(L0*.6-Vr)}case"processing":{const i=v1/2,c=Math.abs(a-i)/i,u=Math.sin(l/300)*.5+.5;return Vr+(1-c)*u*L0*.4}case"speaking":{const i=Math.sin(l/150+a*.4)*.5+.5,c=Math.sin(l/250+a*.7)*.3+.3;return Vr+(i+c)*(L0*.45)}default:return Vr}}function Yq(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 Kq({isMuted:e,onToggleMute:a,onEndCall:l}){return s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("button",{onClick:a,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?s.jsx(MN,{size:20,weight:"fill"}):s.jsx(T0,{size:20,weight:"fill"})}),s.jsx("button",{onClick:l,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:s.jsx(nF,{size:20,weight:"fill"})})]})}const Xq={idle:"Ready",listening:"Listening...",processing:"Thinking...",speaking:"Speaking..."};function Qq({state:e,transcript:a,response:l,error:i,isMuted:c,onToggleMute:u,onEndCall:d}){return n.useEffect(()=>{const h=f=>{f.key==="Escape"&&d()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[d]),s.jsxs("div",{className:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-black/90 backdrop-blur-sm",children:[s.jsx("div",{className:"absolute inset-0",onClick:d}),s.jsxs("div",{className:"relative z-10 flex flex-col items-center gap-8 max-w-md w-full px-6",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.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"}`}),s.jsx("span",{className:"text-sm text-neutral-400 font-mono",children:Xq[e]})]}),s.jsx(Pq,{state:e}),a&&s.jsxs("div",{className:"w-full text-center",children:[s.jsx("p",{className:"text-xs text-neutral-500 mb-1 font-mono",children:"You said:"}),s.jsx("p",{className:"text-sm text-neutral-300",children:a})]}),l&&s.jsxs("div",{className:"w-full text-center",children:[s.jsx("p",{className:"text-xs text-neutral-500 mb-1 font-mono",children:"Response:"}),s.jsx("p",{className:"text-sm text-white",children:l})]}),i&&s.jsx("div",{className:"w-full text-center",children:s.jsx("p",{className:"text-sm text-red-400",children:i})}),s.jsx(Kq,{isMuted:c,onToggleMute:u,onEndCall:d}),s.jsx("p",{className:"text-xs text-neutral-600",children:"Press Esc to end call"})]})]})}function Jq({toolCall:e}){const[a,l]=n.useState(!1);return s.jsxs("div",{className:"bg-white/[0.04] border border-white/[0.08] rounded-lg overflow-hidden",children:[s.jsxs("button",{onClick:()=>l(!a),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:[s.jsx(xF,{size:14,className:"text-neutral-400 shrink-0"}),s.jsx("span",{className:"font-medium truncate",children:e.name}),a?s.jsx(tn,{size:12,className:"ml-auto shrink-0"}):s.jsx(Nl,{size:12,className:"ml-auto shrink-0"})]}),a&&s.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&&s.jsxs("div",{children:[s.jsx("span",{className:"text-neutral-500 block mb-1",children:"Input"}),s.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&&s.jsxs("div",{children:[s.jsx("span",{className:"text-neutral-500 block mb-1",children:"Output"}),s.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 Wq(){var Y;const[e,a]=n.useState([]),[l,i]=n.useState(""),[c,u]=n.useState(!1),[d,h]=n.useState(()=>crypto.randomUUID()),[f,p]=n.useState(!1),[g,x]=n.useState(!1),y=n.useRef(null),{modelReady:w,loading:N}=Wm(),[E,A]=n.useState([]),[j,S]=n.useState(""),[Z,C]=n.useState(!1),H=Uq("orchestrator");n.useEffect(()=>{me("/api/system/models").then(L=>{A(L.data.models),L.data.currentModel&&S(L.data.currentModel)}).catch(()=>{})},[]),n.useEffect(()=>{let L=!1,B=!1;const Q=()=>{fetch("/api/voice/providers").then(ce=>ce.json()).then(ce=>{var te;if(L)return;x(!0);const D=!!((te=ce==null?void 0:ce.data)!=null&&te.anyAvailable);p(D),D&&(B=!0)}).catch(()=>{})};Q();const he=setInterval(()=>{!L&&!B&&Q()},15e3);return()=>{L=!0,clearInterval(he)}},[]);const V=n.useRef(""),T=n.useRef("");n.useEffect(()=>{H.transcript&&H.transcript!==V.current&&(V.current=H.transcript,a(L=>[...L,{role:"user",content:H.transcript}]))},[H.transcript]),n.useEffect(()=>{H.response&&H.response!==T.current&&(T.current=H.response,a(L=>[...L,{role:"assistant",content:H.response}]))},[H.response]),n.useEffect(()=>{var L;(L=y.current)==null||L.scrollTo({top:y.current.scrollHeight,behavior:"smooth"})},[e]);const k=async()=>{const L=l.trim();if(!L||c)return;i(""),a(he=>[...he,{role:"user",content:L}]),u(!0);let B="",Q=[];a(he=>[...he,{role:"assistant",content:""}]);try{for await(const he of MA(L,d,j||void 0))if(he.type==="text")B+=he.content,a(ce=>{const D=[...ce];return D[D.length-1]={role:"assistant",content:B,toolCalls:Q.length>0?[...Q]:void 0},D});else if(he.type==="tool_use"||he.type==="tool_call"){const ce={name:he.name,input:he.input};Q=[...Q,ce],a(D=>{const te=[...D];return te[te.length-1]={role:"assistant",content:B,toolCalls:[...Q]},te})}else he.type==="tool_result"&&Q.length>0&&(Q=[...Q],Q[Q.length-1]={...Q[Q.length-1],output:he.content},a(ce=>{const D=[...ce];return D[D.length-1]={role:"assistant",content:B,toolCalls:[...Q]},D}))}catch{B+=`
|
|
74
|
+
|
|
75
|
+
[Connection lost. Try sending your message again.]`,a(he=>{const ce=[...he];return ce[ce.length-1]={role:"assistant",content:B,toolCalls:Q.length>0?[...Q]:void 0},ce})}finally{u(!1)}},R=L=>{L.key==="Enter"&&!L.shiftKey&&(L.preventDefault(),k())},O=()=>{h(crypto.randomUUID()),a([]),V.current="",T.current=""},U=L=>{S(L),C(!1)},X=((Y=E.find(L=>L.id===j))==null?void 0:Y.name)||j||"Auto",K=f&&!l.trim()&&!c,$=g&&!f&&!l.trim()&&!c;return!N&&!w&&e.length===0?s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsx("div",{className:"px-6 pt-6 pb-0",children:s.jsx(Fe,{title:"Chat",subtitle:"Talk to your orchestrator"})}),s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsxs("div",{className:"text-center space-y-3 max-w-sm",children:[s.jsx("p",{className:"text-lg text-white font-medium",children:"Your orchestrator needs a brain"}),s.jsx("p",{className:"text-sm text-neutral-400",children:"Download an AI model to start chatting."}),s.jsx(k0,{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"})]})})]}):s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[s.jsx("div",{className:"px-6 pt-6 pb-0 shrink-0",children:s.jsx(Fe,{title:"Chat",subtitle:"Talk to your orchestrator",action:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("div",{className:"relative",children:[s.jsxs("button",{onClick:()=>C(!Z),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:[s.jsx("span",{className:"max-w-[120px] truncate",children:X}),s.jsx(tn,{size:12})]}),Z&&E.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>C(!1)}),s.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:E.map(L=>s.jsxs("button",{onClick:()=>U(L.id),className:`w-full text-left px-3 py-2 text-xs hover:bg-white/[0.06] transition-colors ${j===L.id,"text-white"}`,children:[s.jsx("span",{className:"block",children:L.name}),s.jsx("span",{className:"block text-neutral-400 text-[10px]",children:L.provider})]},L.id))})]})]}),s.jsxs("button",{onClick:O,disabled:c,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:[s.jsx(yt,{size:14})," New chat"]})]})})}),s.jsxs("div",{ref:y,className:"flex-1 overflow-y-auto min-h-0 px-6 py-4 space-y-4",children:[e.length===0&&s.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((L,B)=>s.jsx("div",{className:`max-w-2xl ${L.role==="user"?"ml-auto":""}`,children:s.jsxs("div",{className:`px-4 py-3 text-sm ${L.role==="user"?"bg-white/10 rounded-xl text-white":"text-neutral-200"}`,children:[s.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:L.content||(c&&B===e.length-1?"...":"")}),L.toolCalls&&L.toolCalls.length>0&&s.jsx("div",{className:"flex flex-wrap gap-2 mt-3",children:L.toolCalls.map((Q,he)=>s.jsx(Jq,{toolCall:Q},he))})]})},B))]}),s.jsx("div",{className:"border-t border-white/[0.08] px-6 py-4 shrink-0",children:s.jsxs("div",{className:"flex gap-2 max-w-2xl",children:[s.jsx("textarea",{value:l,onChange:L=>i(L.target.value),onKeyDown:R,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"}),K?s.jsx("button",{onClick:()=>H.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:s.jsx(T0,{size:18})}):$?s.jsxs("div",{className:"flex gap-2",children:[s.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:s.jsx(MN,{size:18})}),s.jsx("button",{onClick:k,disabled:c||!l.trim(),className:"bg-white text-black rounded-xl px-4 hover:bg-neutral-200 transition-colors disabled:opacity-50",children:s.jsx(Wh,{size:18})})]}):s.jsx("button",{onClick:k,disabled:c||!l.trim(),className:"bg-white text-black rounded-xl px-4 hover:bg-neutral-200 transition-colors disabled:opacity-50",children:s.jsx(Wh,{size:18})})]})}),H.state!=="idle"&&s.jsx(Qq,{state:H.state,transcript:H.transcript,response:H.response,error:H.error,isMuted:H.isMuted,onToggleMute:H.toggleMute,onEndCall:H.endCall})]})}let ez=0;function Y2(){return`lmsg-${++ez}-${Date.now()}`}function tz(e){return typeof e=="string"?e:Array.isArray(e)?e.map(a=>a.type==="text"&&typeof a.text=="string"?a.text:a.type==="tool_use"?`[Tool: ${a.name||"unknown"}]`:a.type==="tool_result"&&typeof a.content=="string"?a.content:"").filter(Boolean).join(`
|
|
76
|
+
`):String(e||"")}function az(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"Just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);if(i<24)return`${i}h ago`;const c=Math.floor(i/24);return c<7?`${c}d ago`:new Date(e).toLocaleDateString()}function nz(){var k;const[e,a]=n.useState([]),[l,i]=n.useState([]),[c,u]=n.useState(null),[d,h]=n.useState([]),[f,p]=n.useState(!1),[g,x]=n.useState(!0),[y,w]=n.useState(!1),N=n.useRef([]),E=n.useRef({type:"orchestrator",id:null}),A=n.useRef(null);n.useEffect(()=>{me("/api/orchestrator/sessions").then(R=>a(R.sessions||[])).catch(()=>{}).finally(()=>x(!1)),me("/api/agents").then(R=>i(R.data||[])).catch(()=>{})},[]);const j=e.find(R=>R.id===c),S=(j==null?void 0:j.target_type)||"orchestrator",Z=S==="agent"?((k=l.find(R=>R.id===(j==null?void 0:j.target_id)))==null?void 0:k.name)||"Agent":"Orchestrator",C=n.useCallback(async R=>{var O;try{(O=A.current)==null||O.abort();const U=await me(`/api/orchestrator/sessions/${R}`),K=(Array.isArray(U.messages)?U.messages:[]).map($=>({role:$.role==="user"?"user":"assistant",content:tz($.content)}));N.current=K,E.current={type:U.target_type||"orchestrator",id:U.target_id||null},u(R),p(!1),h(K.map($=>({id:Y2(),role:$.role,content:$.content}))),w(!1)}catch{}},[]),H=n.useCallback(async(R,O,U)=>{try{const X=R==="agent"&&U?`Chat with ${U}`:"New conversation",K=await me("/api/orchestrator/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:X,messages:[],target_type:R,target_id:O})}),$={id:K.id,title:K.title||X,message_count:0,target_type:R,target_id:O,updated_at:new Date().toISOString()};a(Y=>[$,...Y]),u(K.id),E.current={type:R,id:O},N.current=[],h([]),p(!1),w(!1)}catch{}},[]),V=n.useCallback(async R=>{try{await me(`/api/orchestrator/sessions/${R}`,{method:"DELETE"}),a(O=>O.filter(U=>U.id!==R)),c===R&&(u(null),h([]),N.current=[])}catch{}},[c]);n.useCallback(async()=>{var U;const R=c,O=N.current;if(!(!R||O.length===0))try{const X=((U=O.find(K=>K.role==="user"))==null?void 0:U.content)||"Untitled";await me(`/api/orchestrator/sessions/${R}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:O,title:X.slice(0,60)})}),a(K=>K.map($=>$.id===R?{...$,message_count:O.length,title:X.slice(0,60),updated_at:new Date().toISOString()}:$))}catch{}},[c]);const T=n.useCallback(async R=>{var K;if(f||!c)return;N.current.push({role:"user",content:R});const O=Y2(),U=Y2();h($=>[...$,{id:O,role:"user",content:R},{id:U,role:"assistant",content:"",isStreaming:!0}]),p(!0);let X="";try{for await(const $ of MA(R,c))$.type==="text"&&(X+=$.content,h(Y=>Y.map(L=>L.id===U?{...L,content:X}:L)))}catch{X+=`
|
|
77
|
+
|
|
78
|
+
[Connection lost. Try again.]`}finally{h(L=>L.map(B=>B.id===U?{...B,content:X||"No response.",isStreaming:!1}:B)),N.current.push({role:"assistant",content:X}),p(!1);const $=c,Y=N.current;if($&&Y.length>0){const L=((K=Y.find(B=>B.role==="user"))==null?void 0:K.content)||"Untitled";a(B=>B.map(Q=>Q.id===$?{...Q,message_count:Y.length,title:L.slice(0,60),updated_at:new Date().toISOString()}:Q))}}},[f,c]);return s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsx("div",{className:"px-6 pt-6 pb-0",children:s.jsx(Fe,{title:"Messages",subtitle:"Conversations with your agents and orchestrator"})}),s.jsxs("div",{className:"flex flex-1 min-h-0 mx-6 mb-6 border border-white/[0.08] rounded-xl overflow-hidden",children:[s.jsx("div",{className:"hidden md:flex w-72 flex-shrink-0",children:s.jsx(x7,{sessions:e,activeSessionId:c,isLoading:g,agents:l,onSelect:C,onNewConversation:H,onDelete:V})}),s.jsxs("div",{className:"md:hidden",children:[s.jsx("button",{onClick:()=>w(!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:s.jsx(yN,{size:18})}),s.jsx(za,{children:y&&s.jsxs(s.Fragment,{children:[s.jsx(Te.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>w(!1),className:"fixed inset-0 bg-black/60 z-40"}),s.jsx(Te.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:s.jsx(x7,{sessions:e,activeSessionId:c,isLoading:g,agents:l,onSelect:C,onNewConversation:H,onDelete:V,onClose:()=>w(!1)})})]})})]}),s.jsx(rz,{messages:d,streaming:f,activeSessionId:c,targetType:S,targetName:Z,onSend:T})]})]})}function x7({sessions:e,activeSessionId:a,isLoading:l,agents:i,onSelect:c,onNewConversation:u,onDelete:d,onClose:h}){var A;const[f,p]=n.useState(!1),[g,x]=n.useState(null),y=e.filter(j=>j.target_type==="orchestrator"),w=e.filter(j=>j.target_type==="agent"),N=new Map;for(const j of w){const S=j.target_id||"unknown";N.has(S)||N.set(S,{name:((A=i.find(Z=>Z.id===S))==null?void 0:A.name)||"Agent",sessions:[]}),N.get(S).sessions.push(j)}const E=j=>{g===j?(d(j),x(null)):(x(j),setTimeout(()=>x(null),3e3))};return s.jsxs("div",{className:"flex flex-col h-full border-r border-white/[0.08] bg-black/40 w-full",children:[s.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-white/[0.08]",children:[s.jsx("span",{className:"text-sm font-medium text-white",children:"Conversations"}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("button",{onClick:()=>p(!f),className:"p-1.5 text-neutral-500 hover:text-white transition-colors rounded-md hover:bg-white/5",children:s.jsx(yt,{size:16,weight:"bold"})}),h&&s.jsx("button",{onClick:h,className:"p-1.5 text-neutral-500 hover:text-white transition-colors md:hidden",children:s.jsx(Sa,{size:16,weight:"bold"})})]})]}),s.jsx(za,{children:f&&s.jsx(Te.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:s.jsxs("div",{className:"p-2 space-y-0.5",children:[s.jsx("p",{className:"text-[10px] uppercase tracking-widest text-neutral-600 px-2 py-1",children:"New conversation with"}),s.jsxs("button",{onClick:()=>{u("orchestrator",null),p(!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:[s.jsx(ca,{size:14,weight:"bold",className:"text-uplink"}),"Orchestrator"]}),i.filter(j=>j.status==="active").map(j=>s.jsxs("button",{onClick:()=>{u("agent",j.id,j.name),p(!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:[s.jsx(Wa,{size:14,weight:"bold",className:"text-terminal"}),s.jsxs("div",{className:"text-left min-w-0",children:[s.jsx("span",{className:"block truncate",children:j.name}),s.jsx("span",{className:"block text-[10px] text-neutral-600 truncate",children:j.role})]})]},j.id))]})})}),s.jsxs("div",{className:"flex-1 overflow-y-auto",children:[l&&s.jsx("div",{className:"space-y-2 p-3",children:[...Array(4)].map((j,S)=>s.jsx("div",{className:"h-14 bg-white/[0.04] rounded-lg animate-pulse"},S))}),!l&&e.length===0&&s.jsxs("div",{className:"flex flex-col items-center justify-center h-40 text-center px-4",children:[s.jsx(H1,{size:24,className:"text-neutral-600 mb-2"}),s.jsx("p",{className:"text-xs text-neutral-600",children:"No conversations yet"}),s.jsx("button",{onClick:()=>p(!0),className:"mt-2 text-xs text-neutral-500 hover:text-white transition-colors",children:"Start one"})]}),!l&&y.length>0&&s.jsx(v7,{label:"Orchestrator",icon:s.jsx(ca,{size:12,weight:"bold",className:"text-uplink"}),sessions:y,activeId:a,confirmId:g,onSelect:c,onDelete:E}),!l&&[...N.entries()].map(([j,S])=>s.jsx(v7,{label:S.name,icon:s.jsx(Wa,{size:12,weight:"bold",className:"text-terminal"}),sessions:S.sessions,activeId:a,confirmId:g,onSelect:c,onDelete:E},j))]})]})}function v7({label:e,icon:a,sessions:l,activeId:i,confirmId:c,onSelect:u,onDelete:d}){return s.jsxs("div",{className:"py-1",children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-4 py-1.5",children:[a,s.jsx("span",{className:"text-[10px] uppercase tracking-widest text-neutral-600",children:e})]}),l.map(h=>s.jsxs("div",{className:`group flex items-center px-3 mx-1 rounded-md transition-colors cursor-pointer ${h.id===i?"bg-white/[0.08]":"hover:bg-white/[0.04]"}`,children:[s.jsxs("button",{onClick:()=>u(h.id),className:"flex-1 text-left py-2.5 min-w-0",children:[s.jsx("p",{className:"text-sm text-white truncate leading-snug",children:h.title}),s.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[s.jsx("span",{className:"text-[11px] text-neutral-600",children:az(h.updated_at)}),s.jsxs("span",{className:"text-[11px] text-neutral-600",children:[h.message_count," msg",h.message_count!==1?"s":""]})]})]}),s.jsx("button",{onClick:f=>{f.stopPropagation(),d(h.id)},className:`p-1 rounded transition-colors shrink-0 ${c===h.id?"text-critical bg-critical/10":"text-neutral-700 hover:text-critical opacity-0 group-hover:opacity-100"}`,title:c===h.id?"Click again to confirm":"Delete",children:s.jsx(It,{size:14})})]},h.id))]})}function rz({messages:e,streaming:a,activeSessionId:l,targetType:i,targetName:c,onSend:u}){const d=n.useRef(null),[h,f]=n.useState("");n.useEffect(()=>{var x;(x=d.current)==null||x.scrollTo({top:d.current.scrollHeight,behavior:"smooth"})},[e]);const p=()=>{const x=h.trim();!x||a||(u(x),f(""))},g=x=>{x.key==="Enter"&&!x.shiftKey&&(x.preventDefault(),p())};return l?s.jsxs("div",{className:"flex-1 flex flex-col min-h-0",children:[s.jsxs("div",{className:"flex items-center gap-2.5 px-5 py-3 border-b border-white/[0.08]",children:[i==="agent"?s.jsx(Wa,{size:16,weight:"bold",className:"text-terminal"}):s.jsx(ca,{size:16,weight:"bold",className:"text-uplink"}),s.jsx("span",{className:"text-sm font-medium text-white",children:c}),a&&s.jsx("span",{className:"text-[11px] text-uplink ml-auto animate-pulse",children:"Responding..."})]}),s.jsxs("div",{ref:d,className:"flex-1 overflow-y-auto px-5 py-4 space-y-4",children:[e.length===0&&s.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(x=>s.jsxs("div",{className:`flex gap-3 ${x.role==="user"?"flex-row-reverse":""}`,children:[s.jsx("div",{className:`w-7 h-7 rounded-full flex-shrink-0 flex items-center justify-center text-xs font-bold ${x.role==="user"?"bg-white/10 text-white":"bg-uplink/10 text-uplink"}`,children:x.role==="user"?"You":c[0]||"O"}),s.jsxs("div",{className:`max-w-[80%] rounded-xl px-4 py-3 text-sm ${x.role==="user"?"bg-white/[0.08] text-white":"bg-white/[0.03] border border-white/[0.08] text-neutral-200"}`,children:[s.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:x.content||(x.isStreaming?"...":"")}),x.isStreaming&&s.jsx("span",{className:"inline-block w-1.5 h-4 bg-uplink/70 animate-pulse ml-0.5 align-text-bottom rounded-sm"})]})]},x.id))]}),s.jsx("div",{className:"border-t border-white/[0.08] px-5 py-3",children:s.jsxs("div",{className:"flex gap-2 max-w-2xl",children:[s.jsx("textarea",{value:h,onChange:x=>f(x.target.value),onKeyDown:g,placeholder:"Type a message...",rows:1,disabled:a,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"}),s.jsx("button",{onClick:p,disabled:a||!h.trim(),className:"bg-white text-black rounded-xl px-4 hover:bg-neutral-200 transition-colors disabled:opacity-50",children:s.jsx(Wh,{size:18})})]})})]}):s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsxs("div",{className:"text-center space-y-3",children:[s.jsx("div",{className:"w-14 h-14 rounded-full bg-white/[0.06] flex items-center justify-center mx-auto",children:s.jsx(H1,{size:28,weight:"duotone",className:"text-neutral-500"})}),s.jsx("h3",{className:"text-lg font-semibold text-white",children:"Messages"}),s.jsx("p",{className:"text-sm text-neutral-500 max-w-xs",children:"Select a conversation or start a new one."})]})})}function NM(e){const a=Math.floor(e/86400),l=Math.floor(e%86400/3600),i=Math.floor(e%3600/60),c=[];return a&&c.push(`${a}d`),l&&c.push(`${l}h`),c.push(`${i}m`),c.join(" ")}function sz(){const{data:e}=Ae("/health"),{data:a}=Ae("/api/system/stats");return s.jsxs(s.Fragment,{children:[e&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Runtime"}),s.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[s.jsx(Ea,{label:"Status",value:e.status,valueColor:e.status==="healthy"?"text-success":"text-warning"}),s.jsx(Ea,{label:"Version",value:`v${e.version}`}),s.jsx(Ea,{label:"Uptime",value:NM(e.uptime)}),s.jsx(Ea,{label:"Database",value:e.database}),a&&s.jsx(Ea,{label:"Memory",value:`${a.memoryMb} MB`})]})]}),a&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Stats"}),s.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:[s.jsx(i1,{label:"Agents",value:String(a.totalAgents)}),s.jsx(i1,{label:"Tasks",value:String(a.totalTasks)}),s.jsx(i1,{label:"Tokens",value:a.totalTokens.toLocaleString()}),s.jsx(i1,{label:"Cost",value:`$${(a.totalCostCents/100).toFixed(2)}`})]})]})]})}function Ea({label:e,value:a,valueColor:l}){return s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsx("span",{className:"text-sm text-neutral-400",children:e}),s.jsx("span",{className:`text-sm font-medium ${l||""}`,children:a})]})}function i1({label:e,value:a}){return s.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:e}),s.jsx("p",{className:"text-lg font-bold",children:a})]})}function lz(){const{data:e}=Ae("/api/settings/tunnel_url"),{data:a}=Ae("/api/settings/cloud_url"),{data:l,refetch:i}=Ae("/api/settings/notification_channels"),{data:c,refetch:u}=Ae("/api/settings/global_mcp_servers"),d=e==null?void 0:e.value,[h,f]=n.useState(!1),[p,g]=n.useState(!1),x=(()=>{try{return c!=null&&c.value?JSON.parse(c.value):[]}catch{return[]}})(),y=(()=>{try{return l!=null&&l.value?JSON.parse(l.value):{email:!1,slack:!1,telegram:!1,whatsapp:!1}}catch{return{email:!1,slack:!1,telegram:!1,whatsapp:!1}}})(),w=n.useCallback(async E=>{g(!0);try{await me("/api/settings/global_mcp_servers",{method:"PUT",body:JSON.stringify({value:JSON.stringify(E)})}),u(),ue("success","Global MCP servers updated")}catch{ue("error","Couldn't update MCP servers")}finally{g(!1)}},[u]),N=n.useCallback(async E=>{f(!0);const A={...y,[E]:!y[E]};try{await me("/api/settings/notification_channels",{method:"PUT",body:JSON.stringify({value:JSON.stringify(A)})}),i(),ue("success",`${E} notifications ${A[E]?"enabled":"disabled"}`)}catch{ue("error","Couldn't update notification settings")}finally{f(!1)}},[y,i]);return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Webhooks"}),s.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[s.jsx(Ea,{label:"Tunnel",value:d?"Active":"Not connected",valueColor:d?"text-success":"text-neutral-400"}),d&&s.jsxs(s.Fragment,{children:[s.jsx(Ea,{label:"URL",value:d}),s.jsx(Ea,{label:"GHL Hook",value:`${d}/webhooks/ghl`})]}),!d&&(a==null?void 0:a.value)&&s.jsx(Ea,{label:"Cloud proxy",value:a.value,valueColor:"text-success"})]})]}),s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-1",children:"MCP Servers"}),s.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."}),s.jsx(AM,{servers:x,onChange:w,disabled:p})]}),s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Notifications"}),s.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(E=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsx("span",{className:"text-sm capitalize",children:E}),s.jsx(pl,{checked:y[E],onChange:()=>N(E),disabled:h,size:"sm"})]},E))})]})]})}async function K2(e,a,l){const i=e.body.getReader(),c=new TextDecoder;let u="";try{for(;;){if(l!=null&&l.aborted){i.cancel();return}const{done:d,value:h}=await i.read();if(d)break;u+=c.decode(h,{stream:!0});const f=u.split(`
|
|
79
|
+
`);u=f.pop()||"";for(const p of f)if(p.startsWith("data: ")){const g=p.slice(6).trim();if(g==="[DONE]")return;let x;try{x=JSON.parse(g)}catch{continue}a(x)}}}finally{i.releaseLock()}}function iz(){const[e,a]=n.useState({installed:[],catalog:[],activeModel:"",orchestratorModel:"",device:null,memoryTier:"",ollamaRunning:!1,loading:!0,catalogLoading:!1,catalogLoaded:!1,downloading:null,openRouterKey:"",openRouterModel:"",openRouterConnected:!1}),l=n.useRef(null);n.useEffect(()=>()=>{var E;(E=l.current)==null||E.abort()},[]);const i=n.useCallback(async()=>{a(E=>({...E,loading:!0}));try{const E=await me("/api/models/installed");a(A=>({...A,installed:E.data.models,activeModel:E.data.activeModel,orchestratorModel:E.data.orchestratorModel||"",ollamaRunning:E.data.ollamaRunning,loading:!1}))}catch{a(E=>({...E,loading:!1}))}},[]),c=n.useCallback(async()=>{a(E=>({...E,catalogLoading:!0}));try{const E=await me("/api/models/catalog");a(A=>({...A,catalog:E.data.catalog,device:E.data.device,memoryTier:E.data.memoryTier,catalogLoading:!1,catalogLoaded:!0}))}catch{a(E=>({...E,catalogLoading:!1}))}},[]),u=n.useCallback(async E=>{let A="";a(j=>(A=j.activeModel,{...j,activeModel:E,installed:j.installed.map(S=>({...S,isActive:S.tag===E}))}));try{await me("/api/models/active",{method:"PUT",body:JSON.stringify({model:E})}),ue("success","Active model updated")}catch{a(j=>({...j,activeModel:A,installed:j.installed.map(S=>({...S,isActive:S.tag===A}))})),ue("error","Couldn't update active model")}},[]),d=n.useCallback(async E=>{let A="";a(j=>(A=j.orchestratorModel,{...j,orchestratorModel:E,installed:j.installed.map(S=>({...S,isOrchestrator:E?S.tag===E:!1}))}));try{await me("/api/models/orchestrator",{method:"PUT",body:JSON.stringify({model:E})}),ue("success",E?"Orchestrator model updated":"Orchestrator reset to auto")}catch{a(j=>({...j,orchestratorModel:A,installed:j.installed.map(S=>({...S,isOrchestrator:A?S.tag===A:!1}))})),ue("error","Couldn't update orchestrator model")}},[]),h=n.useCallback(async E=>{a(A=>({...A,installed:A.installed.map(j=>j.tag===E?{...j,status:"installed"}:j)}));try{await me(`/api/models/${encodeURIComponent(E)}/unload`,{method:"POST"}),ue("success","Model unloaded from memory")}catch{await i(),ue("error","Couldn't unload model")}},[i]),f=n.useCallback(async E=>{if(l.current)return;const A=new AbortController;l.current=A,a(j=>({...j,downloading:{tag:E,percent:0,message:"Setting things up..."}}));try{const j=await fetch("/api/onboarding/ensure-ollama",{method:"POST",signal:A.signal});if(!j.ok||!j.body)throw new Error("Couldn't start Ollama");await K2(j,H=>{if(a(V=>V.downloading?{...V,downloading:{...V.downloading,message:H.message}}:V),H.error)throw new Error(H.error)},A.signal),a(H=>H.downloading?{...H,downloading:{...H.downloading,percent:0,message:"Starting download..."}}:H);const S=Nn(),Z=await fetch("/api/onboarding/download-model",{method:"POST",headers:{"Content-Type":"application/json",...S?{Authorization:`Bearer ${S}`}:{}},body:JSON.stringify({tag:E}),signal:A.signal});if(!Z.ok||!Z.body)throw new Error("Couldn't start download");await K2(Z,H=>{if(a(V=>V.downloading?{...V,downloading:{...V.downloading,message:H.message,percent:H.percent??V.downloading.percent}}:V),H.error)throw new Error(H.error)},A.signal),a(H=>({...H,downloading:null})),ue("success","Model installed");const C=await me("/api/models/installed");a(H=>({...H,installed:C.data.models,activeModel:C.data.activeModel,orchestratorModel:C.data.orchestratorModel||"",ollamaRunning:C.data.ollamaRunning,catalog:H.catalog.map(V=>V.tag===E?{...V,installed:!0}:V)}))}catch(j){if(A.signal.aborted)return;a(S=>({...S,downloading:null})),ue("error",j instanceof Error?j.message:"Download failed")}finally{l.current=null}},[]),p=n.useCallback(()=>{var E;(E=l.current)==null||E.abort(),a(A=>({...A,downloading:null}))},[]),g=n.useCallback(async E=>{try{await me(`/api/models/${encodeURIComponent(E)}`,{method:"DELETE"}),ue("success","Model deleted");const A=await me("/api/models/installed");return a(j=>({...j,installed:A.data.models,activeModel:A.data.activeModel,orchestratorModel:A.data.orchestratorModel||"",ollamaRunning:A.data.ollamaRunning,catalog:j.catalog.map(S=>S.tag===E?{...S,installed:!1}:S)})),!0}catch{return ue("error","Couldn't delete model"),!1}},[]),x=n.useCallback(async()=>{a(E=>({...E,downloading:{tag:"",percent:0,message:"Starting Ollama..."}}));try{const E=await fetch("/api/onboarding/ensure-ollama",{method:"POST"});if(!E.ok||!E.body)throw new Error("Couldn't start Ollama");await K2(E,A=>{if(a(j=>j.downloading?{...j,downloading:{...j.downloading,message:A.message}}:j),A.error)throw new Error(A.error)}),a(A=>({...A,downloading:null,ollamaRunning:!0})),ue("success","Ollama is running"),await i()}catch(E){a(A=>({...A,downloading:null})),ue("error",E instanceof Error?E.message:"Couldn't start Ollama")}},[i]),y=n.useCallback(async()=>{try{const[E,A]=await Promise.all([me("/api/settings/openrouter_api_key"),me("/api/settings/openrouter_model")]);a(j=>{var S,Z,C;return{...j,openRouterKey:((S=E.data)==null?void 0:S.value)||"",openRouterModel:((Z=A.data)==null?void 0:Z.value)||"",openRouterConnected:!!((C=E.data)!=null&&C.value)}})}catch{}},[]),w=n.useCallback(async E=>{try{await me("/api/settings/openrouter_api_key",{method:"PUT",body:JSON.stringify({value:E})}),a(A=>({...A,openRouterKey:E?"****"+E.slice(-4):"",openRouterConnected:!!E})),ue("success",E?"OpenRouter API key saved":"OpenRouter API key removed")}catch{ue("error","Couldn't save OpenRouter API key")}},[]),N=n.useCallback(async E=>{try{await me("/api/settings/openrouter_model",{method:"PUT",body:JSON.stringify({value:E})}),a(A=>({...A,openRouterModel:E})),ue("success","OpenRouter model updated")}catch{ue("error","Couldn't update OpenRouter model")}},[]);return{...e,fetchInstalled:i,fetchCatalog:c,setActiveModel:u,setOrchestratorModel:d,unloadModel:h,installModel:f,cancelDownload:p,deleteModel:g,startOllama:x,fetchOpenRouter:y,saveOpenRouterKey:w,setOpenRouterModel:N}}const oz=1e4;function cz(){const[e,a]=n.useState(null),[l,i]=n.useState(!0),c=n.useRef(0),u=n.useCallback(async()=>{try{const d=await me("/api/inference/status");a(d)}catch{}finally{i(!1)}},[]);return n.useEffect(()=>{u();const d=setInterval(u,oz);return()=>clearInterval(d)},[u]),tf(n.useCallback(d=>{(d==="model:switch-started"||d==="model:switch-complete"||d==="model:switch-failed"||d==="inference:capabilities-changed")&&(c.current++,u())},[u])),{status:e,loading:l,refetch:u}}function uz(e){return e<1e3?`${e}ms`:`${(e/1e3).toFixed(1)}s`}function X2({label:e,color:a}){return s.jsx("span",{className:`inline-flex items-center gap-0.5 px-1.5 py-0.5 text-[10px] font-medium rounded ${a}`,children:e})}function dz({models:e,downloading:a,onSetActive:l,onSetOrchestrator:i,onUnload:c,onDelete:u,onCancelDownload:d}){return e.length===0&&!a?s.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg p-6 text-center",children:[s.jsx("p",{className:"text-sm text-neutral-400 mb-1",children:"No models installed yet"}),s.jsx("p",{className:"text-xs text-neutral-400/70",children:"Browse the catalog below to install your first model"})]}):s.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[a&&!e.some(h=>h.tag===a.tag)&&s.jsxs("div",{className:"px-4 py-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-sm font-medium",children:a.tag}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(bt,{size:14,className:"animate-spin text-white"}),s.jsxs("span",{className:"text-xs text-neutral-400",children:[a.percent,"%"]}),s.jsx("button",{onClick:d,className:"text-[11px] text-neutral-400 hover:text-critical transition-colors",children:"Cancel"})]})]}),s.jsxs("div",{className:"mt-2",children:[s.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-1.5",children:s.jsx("div",{className:"bg-white h-1.5 rounded-full transition-all duration-300",style:{width:`${a.percent}%`}})}),s.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:a.message})]})]}),e.map(h=>{const f=(a==null?void 0:a.tag)===h.tag,p=h.totalRequests>0?uz(Math.round(h.totalDurationMs/h.totalRequests)):null;return s.jsxs("div",{className:`px-4 py-3 ${h.isActive?"border-l-2 border-l-white bg-white/5":""}`,children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s.jsx("span",{className:"text-sm font-medium truncate",children:h.label}),h.family&&s.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&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/10 text-white rounded font-medium",children:"Active"}),h.isOrchestrator&&s.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"&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-success/20 text-success rounded",children:"Loaded"})]}),s.jsxs("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[h.mlxModelId&&s.jsx(X2,{label:"MLX",color:"bg-emerald-500/20 text-emerald-400"}),h.vision&&s.jsx(X2,{label:"Vision",color:"bg-purple-500/20 text-purple-400"}),h.toolCalling&&s.jsx(X2,{label:"Tools",color:"bg-white/10 text-neutral-300"}),h.sizeGB&&s.jsxs("span",{className:"text-[10px] text-neutral-400",children:[h.sizeGB," GB"]}),h.tag!==h.label&&s.jsx("span",{className:"text-[10px] text-neutral-600 font-mono",children:h.tag})]})]}),s.jsxs("div",{className:"hidden sm:flex items-center gap-4 text-[11px] text-neutral-400 shrink-0",children:[h.totalRequests>0&&s.jsxs("span",{children:[h.totalRequests.toLocaleString()," ",h.totalRequests===1?"request":"requests"]}),p&&s.jsxs("span",{children:["avg ",p]})]}),s.jsx("div",{className:"flex items-center gap-1.5 shrink-0",children:f?s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(bt,{size:14,className:"animate-spin text-white"}),s.jsxs("span",{className:"text-xs text-neutral-400",children:[a.percent,"%"]}),s.jsx("button",{onClick:d,className:"text-[11px] text-neutral-400 hover:text-critical transition-colors",children:"Cancel"})]}):s.jsxs(s.Fragment,{children:[!h.isActive&&s.jsx("button",{onClick:()=>l(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:s.jsx(oF,{size:14})}),s.jsx("button",{onClick:()=>i(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:s.jsx(VO,{size:14})}),h.status==="loaded"&&!h.isActive&&!h.isOrchestrator&&s.jsx("button",{onClick:()=>c(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:s.jsx(zO,{size:14})}),s.jsx("button",{onClick:()=>u(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:s.jsx(It,{size:14})})]})})]}),f&&s.jsxs("div",{className:"mt-2",children:[s.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-1.5",children:s.jsx("div",{className:"bg-white h-1.5 rounded-full transition-all duration-300",style:{width:`${a.percent}%`}})}),s.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:a.message})]})]},h.tag)})]})}const b7={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 hz({capacity:e}){const a=e.totalVramGB>0?Math.min(100,Math.round(e.usedVramGB/e.totalVramGB*100)):0,l=a>80?"bg-red-500":a>60?"bg-amber-500":"bg-emerald-500";return s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-[10px] text-neutral-500 whitespace-nowrap",children:"VRAM"}),s.jsx("div",{className:"w-20 bg-white/[0.06] rounded-full h-1.5",children:s.jsx("div",{className:`${l} h-1.5 rounded-full transition-all duration-500`,style:{width:`${a}%`}})}),s.jsxs("span",{className:"text-[10px] text-neutral-500 whitespace-nowrap",children:[e.usedVramGB.toFixed(1),"/",e.totalVramGB.toFixed(0)," GB"]})]})}function mz({activeProvider:e,mlxModel:a,switchInProgress:l,switchState:i,capacity:c}){const u=b7[e]||b7.ollama;return s.jsx("div",{className:"bg-white/[0.03] border border-white/[0.06] rounded-lg px-3 py-2 mb-3",children:s.jsxs("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("div",{className:`flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-medium ${u.bg} ${u.color}`,children:[e==="mlx"?s.jsx(ca,{size:10,weight:"fill"}):s.jsx(DO,{size:10}),u.label]}),a&&s.jsx("span",{className:"text-[10px] text-neutral-500 font-mono truncate max-w-[200px]",children:a})]}),(l||i)&&s.jsx("div",{className:"flex items-center gap-1.5",children:(i==null?void 0:i.status)==="switching"||l?s.jsxs(s.Fragment,{children:[s.jsx(bt,{size:12,className:"animate-spin text-sky-400"}),s.jsxs("span",{className:"text-[10px] text-sky-400",children:["Switching to ",(i==null?void 0:i.model)||"new model","..."]})]}):(i==null?void 0:i.status)==="complete"?s.jsxs(s.Fragment,{children:[s.jsx(F0,{size:12,className:"text-emerald-400"}),s.jsxs("span",{className:"text-[10px] text-emerald-400",children:["Now using ",i.model," via ",i.provider]})]}):(i==null?void 0:i.status)==="failed"?s.jsxs(s.Fragment,{children:[s.jsx(Sl,{size:12,className:"text-red-400"}),s.jsxs("span",{className:"text-[10px] text-red-400",children:["Switch failed: ",i.reason]})]}):null}),c&&c.totalVramGB>0&&s.jsx(hz,{capacity:c})]})})}const fz=[{value:"all",label:"All"},{value:"fits",label:"Fits your device"},{value:"vision",label:"Vision"},{value:"tools",label:"Tool calling"}];function pz(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 gz({catalog:e,device:a,memoryTier:l,loading:i,loaded:c,downloading:u,onInstall:d,onCancelDownload:h,onFetchCatalog:f}){const[p,g]=n.useState(!1),[x,y]=n.useState("all"),w=()=>{!p&&!c&&f(),g(j=>!j)},N=e.filter(j=>x==="fits"?j.fits:x==="vision"?j.vision:x==="tools"?j.toolCalling:!0),A=["tiny","small","medium","large","xlarge"].map(j=>({tier:j,models:N.filter(S=>S.tier===j)})).filter(j=>j.models.length>0);return s.jsxs("div",{children:[s.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?s.jsx(LO,{size:14}):s.jsx(tn,{size:14})]}),p&&s.jsxs(s.Fragment,{children:[a&&s.jsxs("div",{className:"bg-white/5 rounded-lg p-3 mb-4 text-xs text-neutral-400",children:[s.jsx("span",{children:a.cpuModel}),s.jsx("span",{className:"mx-1.5",children:"·"}),s.jsxs("span",{children:[a.totalMemoryGB," GB RAM"]}),s.jsx("span",{className:"mx-1.5",children:"·"}),s.jsxs("span",{children:[l," tier"]})]}),s.jsx("div",{className:"flex gap-1.5 mb-4 flex-wrap",children:fz.map(j=>s.jsx("button",{onClick:()=>y(j.value),className:`px-2.5 py-1 text-[11px] rounded-full border transition-colors ${x===j.value?"border-white/20 bg-white/10 text-white":"border-white/[0.08] text-neutral-400 hover:border-white/20"}`,children:j.label},j.value))}),i?s.jsxs("div",{className:"flex items-center justify-center py-8 gap-2 text-sm text-neutral-400",children:[s.jsx(bt,{size:16,className:"animate-spin"})," Loading catalog..."]}):s.jsxs("div",{className:"space-y-4",children:[A.map(j=>s.jsxs("div",{children:[s.jsx("h4",{className:"text-[11px] font-medium text-neutral-400/70 uppercase tracking-wider mb-2",children:pz(j.tier)}),s.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:j.models.map(S=>{const Z=(u==null?void 0:u.tag)===S.tag,C=!u&&!S.installed;return s.jsxs("div",{className:`px-4 py-3 ${S.fits?"":"opacity-50"}`,children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s.jsx("span",{className:"text-sm font-medium",children:S.label}),s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/[0.06] rounded text-neutral-400 font-mono",children:S.family}),S.recommended&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-success/20 text-success rounded font-medium",children:"Recommended"})]}),s.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:S.description}),s.jsxs("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[S.vision&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-purple-500/20 text-purple-400 rounded",children:"Vision"}),S.toolCalling&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/10 text-neutral-300 rounded",children:"Tools"}),s.jsxs("span",{className:"text-[10px] text-neutral-400",children:[S.sizeGB," GB"]}),!S.fits&&s.jsxs("span",{className:"text-[10px] text-warning",children:["Needs ",S.minRAM," GB RAM"]})]})]}),s.jsx("div",{className:"shrink-0",children:S.installed?s.jsx("span",{className:"text-[11px] text-success px-2 py-1",children:"Installed"}):Z?s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(bt,{size:14,className:"animate-spin text-white"}),s.jsxs("span",{className:"text-xs text-neutral-400",children:[u.percent,"%"]}),s.jsx("button",{onClick:h,className:"text-[11px] text-neutral-400 hover:text-critical transition-colors",children:"Cancel"})]}):s.jsxs("button",{onClick:()=>d(S.tag),disabled:!C||!S.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:[s.jsx(qO,{size:12})," Install"]})})]}),Z&&s.jsxs("div",{className:"mt-2",children:[s.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-1.5",children:s.jsx("div",{className:"bg-white h-1.5 rounded-full transition-all duration-300",style:{width:`${u.percent}%`}})}),s.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:u.message})]})]},S.tag)})})]},j.tier)),N.length===0&&s.jsx("p",{className:"text-sm text-neutral-400 text-center py-4",children:"No models match this filter"})]})]})]})}function xz({open:e,modelTag:a,modelLabel:l,isActive:i,isOrchestrator:c,loading:u,onConfirm:d,onClose:h}){return s.jsxs(da,{open:e,onClose:h,title:"Delete model",children:[s.jsxs("p",{className:"text-sm mb-3",children:["Remove ",s.jsx("strong",{children:l})," ",s.jsxs("span",{className:"text-neutral-400 font-mono text-xs",children:["(",a,")"]})," from your machine?"]}),i&&s.jsx("div",{className:"bg-warning/10 border border-warning/30 rounded-lg p-3 mb-3",children:s.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."})}),c&&s.jsx("div",{className:"bg-purple-500/10 border border-purple-500/30 rounded-lg p-3 mb-3",children:s.jsx("p",{className:"text-xs text-purple-400",children:"This is your orchestrator model. Deleting it will reset the orchestrator to auto mode."})}),s.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."}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{onClick:h,disabled:u,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors disabled:opacity-50",children:"Cancel"}),s.jsxs("button",{onClick:d,disabled:u,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:[u&&s.jsx(bt,{size:12,className:"animate-spin"}),u?"Deleting...":"Delete"]})]})]})}function vz(){var qe;const{data:e,refetch:a}=Ae("/api/settings/anthropic_api_key"),[l,i]=n.useState(!1),[c,u]=n.useState(""),[d,h]=n.useState(!1),[f,p]=n.useState(null),[g,x]=n.useState(!1),[y,w]=n.useState(!1),[N,E]=n.useState(""),[A,j]=n.useState(!1),{installed:S,catalog:Z,device:C,memoryTier:H,ollamaRunning:V,loading:T,catalogLoading:k,catalogLoaded:R,downloading:O,openRouterKey:U,openRouterModel:X,openRouterConnected:K,fetchInstalled:$,fetchCatalog:Y,setActiveModel:L,setOrchestratorModel:B,unloadModel:Q,installModel:he,cancelDownload:ce,deleteModel:D,startOllama:te,fetchOpenRouter:re,saveOpenRouterKey:z,setOpenRouterModel:q}=iz(),{status:P}=cz(),[oe,fe]=n.useState(null);tf(n.useCallback((ve,ze)=>{const je=ze;ve==="model:switch-started"?fe({model:je.model,status:"switching"}):ve==="model:switch-complete"?(fe({model:je.model,status:"complete",provider:je.provider}),$(),setTimeout(()=>fe(null),3e3)):ve==="model:switch-failed"&&(fe({model:je.model,status:"failed",reason:je.reason}),setTimeout(()=>fe(null),5e3))},[$])),n.useEffect(()=>{$(),re()},[$,re]);const ye=(ve,ze=8)=>ve?ve.slice(0,ze)+"•".repeat(Math.max(0,Math.min(ve.length-ze,20))):"Not set",Le=async()=>{if(c.trim()){h(!0);try{await me("/api/settings/anthropic_api_key",{method:"PUT",body:JSON.stringify({value:c.trim()})}),ue("success","API key updated"),i(!1),u(""),a()}catch{ue("error","Couldn't save API key")}finally{h(!1)}}},Ie=async()=>{j(!0);try{await z(N.trim()),w(!1),E("")}catch{ue("error","Couldn't save OpenRouter key")}finally{j(!1)}},Ue=ve=>{const ze=S.find(je=>je.tag===ve);p({tag:ve,label:(ze==null?void 0:ze.label)||ve,isActive:(ze==null?void 0:ze.isActive)||!1,isOrchestrator:(ze==null?void 0:ze.isOrchestrator)||!1})},it=n.useCallback(async()=>{if(!f||g)return;x(!0);const ve=await D(f.tag);x(!1),ve&&p(null)},[f,g,D]);return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Anthropic API"}),s.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:l?s.jsxs("div",{className:"px-4 py-3",children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"API Key"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{type:"password",value:c,onChange:ve=>u(ve.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}),s.jsx("button",{onClick:Le,disabled:d||!c.trim(),className:"text-success hover:text-success/80 transition-colors disabled:opacity-50",children:s.jsx(zr,{size:16})}),s.jsx("button",{onClick:()=>{i(!1),u("")},className:"text-neutral-400 hover:text-white transition-colors",children:s.jsx(Sa,{size:16})})]})]}):s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-sm text-neutral-400",children:"API Key"}),s.jsx("span",{className:"text-sm font-medium ml-3",children:ye(e==null?void 0:e.value,12)})]}),s.jsx("button",{onClick:()=>i(!0),className:"text-neutral-400 hover:text-white transition-colors",children:s.jsx(em,{size:14})})]})})]}),s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:s.jsxs("span",{className:"flex items-center gap-1.5",children:["OpenRouter",K&&s.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full bg-success"})]})}),s.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[y?s.jsxs("div",{className:"px-4 py-3",children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"API Key"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{type:"password",value:N,onChange:ve=>E(ve.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}),s.jsx("button",{onClick:Ie,disabled:A,className:"text-success hover:text-success/80 transition-colors disabled:opacity-50",children:s.jsx(zr,{size:16})}),s.jsx("button",{onClick:()=>{w(!1),E("")},className:"text-neutral-400 hover:text-white transition-colors",children:s.jsx(Sa,{size:16})})]}),s.jsx("p",{className:"text-[10px] text-neutral-500 mt-1.5",children:"Free frontier models. Leave empty to remove."})]}):s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-sm text-neutral-400",children:"API Key"}),s.jsx("span",{className:"text-sm font-medium ml-3",children:ye(U,8)})]}),s.jsx("button",{onClick:()=>w(!0),className:"text-neutral-400 hover:text-white transition-colors",children:s.jsx(em,{size:14})})]}),K&&s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ca,{size:14,className:"text-amber-400"}),s.jsx("span",{className:"text-sm text-neutral-400",children:"Model"})]}),s.jsxs("select",{value:X||"openrouter/optimus-alpha",onChange:ve=>q(ve.target.value),className:"bg-white/[0.06] border border-white/[0.08] rounded px-2 py-1 text-sm text-white focus:outline-none focus:border-white/20 cursor-pointer",children:[s.jsx("option",{value:"openrouter/optimus-alpha",children:"Hunter Alpha (reasoning, 1M ctx)"}),s.jsx("option",{value:"openrouter/optimus-alpha",children:"Healer Alpha (multimodal, 262K ctx)"})]})]})]})]}),s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Local Models"}),P&&s.jsx(mz,{activeProvider:P.activeProvider,mlxModel:(qe=P.mlx)==null?void 0:qe.model,switchInProgress:P.switchInProgress,switchState:oe,capacity:P.capacity}),!T&&!V&&s.jsxs("div",{className:"bg-warning/10 border border-warning/30 rounded-lg p-3 mb-3 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Jm,{size:16,className:"text-warning shrink-0"}),s.jsx("p",{className:"text-xs text-warning",children:"Ollama is not running"})]}),s.jsx("button",{onClick:te,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"})]}),T?s.jsxs("div",{className:"flex items-center justify-center py-8 gap-2 text-sm text-neutral-400",children:[s.jsx(bt,{size:16,className:"animate-spin"})," Loading models..."]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"mb-4",children:[s.jsx("div",{className:"flex items-center justify-between mb-2",children:s.jsxs("h3",{className:"text-xs text-neutral-400",children:["Installed Models",S.length>0&&s.jsxs("span",{className:"ml-1.5 text-neutral-600",children:["(",S.length,")"]})]})}),s.jsx(dz,{models:S,downloading:O,onSetActive:L,onSetOrchestrator:B,onUnload:Q,onDelete:Ue,onCancelDownload:ce})]}),s.jsx(gz,{catalog:Z,device:C,memoryTier:H,loading:k,loaded:R,downloading:O,onInstall:he,onCancelDownload:ce,onFetchCatalog:Y})]})]}),s.jsx(xz,{open:!!f,modelTag:(f==null?void 0:f.tag)||"",modelLabel:(f==null?void 0:f.label)||"",isActive:(f==null?void 0:f.isActive)||!1,isOrchestrator:(f==null?void 0:f.isOrchestrator)||!1,loading:g,onConfirm:it,onClose:()=>{g||p(null)}})]})}function bz(){const[e,a]=n.useState(null),[l,i]=n.useState([]),[c,u]=n.useState(""),[d,h]=n.useState(!1),[f,p]=n.useState(!1),g=n.useCallback(async()=>{var N;try{const E=await me("/api/voice/providers");if(a(E.data),E.data.voiceboxAvailable){const[A,j]=await Promise.all([me("/api/voice/profiles"),me("/api/settings/orchestrator_voice_profile_id")]);i(A.data||[]),u(((N=j.data)==null?void 0:N.value)||"")}}catch{a(null)}},[]),x=n.useRef(!1);n.useEffect(()=>{e!=null&&e.voiceboxAvailable&&(x.current=!0)},[e==null?void 0:e.voiceboxAvailable]),n.useEffect(()=>{let N=!1,E;return(async()=>{await g(),!N&&!x.current&&(E=setInterval(async()=>{if(N||x.current){E&&clearInterval(E);return}await g()},1e4))})(),()=>{N=!0,E&&clearInterval(E)}},[g]);const y=n.useCallback(async()=>{p(!0);try{await me("/api/voice/enable",{method:"POST"}),await g()}catch{}finally{p(!1)}},[g]),w=n.useCallback(async N=>{h(!0),u(N);try{await me("/api/settings/orchestrator_voice_profile_id",{method:"PUT",body:JSON.stringify({value:N})})}catch{u("")}finally{h(!1)}},[]);return s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Voice"}),s.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[e&&s.jsx("div",{className:"px-4 py-3",children:s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[s.jsx("span",{className:`w-2 h-2 rounded-full ${e.voiceboxAvailable?"bg-success":"bg-white/10"}`}),s.jsx("span",{className:e.voiceboxAvailable?"":"text-neutral-400",children:e.voiceboxAvailable?"Voicebox is running":"Voicebox is not running"})]})}),e&&!e.voiceboxAvailable&&s.jsxs("div",{className:"px-4 py-3",children:[s.jsx("button",{onClick:y,disabled:f,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:f?s.jsxs(s.Fragment,{children:[s.jsx(bt,{size:14,className:"animate-spin"})," Starting Voicebox..."]}):"Enable Voicebox"}),s.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)&&s.jsx("div",{className:"px-4 py-3",children:s.jsxs("label",{className:"flex items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:"Orchestrator voice"}),s.jsx("p",{className:"text-xs text-neutral-400",children:"Voice used when chatting from the main conversation"})]}),s.jsxs("select",{value:c,onChange:N=>w(N.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:[s.jsx("option",{value:"",children:"Default voice"}),l.map(N=>s.jsx("option",{value:N.id,children:N.name},N.id))]})]})})]})]})}const yz=["Cloud sync across devices","Cloud task dispatch","OAuth integrations (Gmail, Slack)","Webhook relay","Cloud dashboard at ohwow.fun","Team management"];function wz(){const{tier:e,loading:a}=Wm(),l=i0(),[i,c]=n.useState("general"),u=e!=="free",{data:d}=Ae("/health"),{data:h}=Ae("/api/settings/license_key"),{data:f}=Ae("/api/settings/cloud_url"),p=()=>{NA(),l("/login",{replace:!0})},g=(x,y=8)=>x?x.slice(0,y)+"•".repeat(Math.max(0,Math.min(x.length-y,20))):"Not set";return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Settings",subtitle:"Runtime configuration"}),!a&&s.jsx("div",{className:"mb-6",children:s.jsx("span",{"data-testid":"runtime-settings-tier-badge",className:`inline-flex items-center px-2.5 py-1 rounded-md text-xs font-semibold ${u?"bg-success/15 text-success":"bg-cyan-500/15 text-cyan-400"}`,children:u?"Connected":"Local"})}),d&&s.jsxs("div",{className:"mb-2 text-xs text-neutral-400",children:[s.jsx("span",{className:d.status==="healthy"?"text-success":"text-warning",children:"●"})," ","Connected · Running on v",d.version," · Up ",NM(d.uptime)]}),s.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(x=>s.jsx("button",{onClick:()=>c(x.key),className:`px-3 py-2 text-xs font-medium border-b-2 transition-colors ${i===x.key?"border-white text-white":"border-transparent text-neutral-400 hover:text-white"}`,children:x.label},x.key))}),i==="general"&&s.jsxs(s.Fragment,{children:[u&&!a&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Connection"}),s.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[s.jsx(Ea,{label:"Cloud URL",value:(f==null?void 0:f.value)||"Not configured"}),s.jsx(Ea,{label:"Status",value:"Connected",valueColor:"text-success"}),s.jsx(Ea,{label:"License key",value:g(h==null?void 0:h.value)})]})]}),s.jsx(sz,{}),s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Quick links"}),s.jsxs("div",{className:"flex gap-2 flex-wrap",children:[s.jsx(k0,{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"}),s.jsx(k0,{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"}),s.jsx(k0,{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"})]})]}),!u&&!a&&s.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:[s.jsx("h3",{className:"text-sm font-semibold text-white mb-2",children:"Connect to ohwow.fun cloud"}),s.jsx("p",{className:"text-xs text-neutral-400 mb-4",children:"Add cloud features to your local runtime:"}),s.jsx("ul",{className:"space-y-1.5 mb-4",children:yz.map(x=>s.jsxs("li",{className:"flex items-center gap-2 text-xs text-neutral-400",children:[s.jsx("span",{className:"text-white",children:"+"}),x]},x))}),s.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"})]}),s.jsx("div",{className:"mb-6",children:s.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"})})]}),i==="integrations"&&s.jsx(lz,{}),i==="models"&&s.jsx(vz,{}),i==="integrations"&&s.jsx(bz,{})]})}const Az=["all","lead","client","partner","vendor"];function jz(){const e=Ba(["contact:upserted","contact:removed"]),[a,l]=n.useState("all"),[i,c]=n.useState(""),[u,d]=n.useState(!1),{data:h,loading:f,refetch:p}=Ae("/api/contacts",[e]),g=n.useMemo(()=>{if(!h)return[];let x=h;if(a!=="all"&&(x=x.filter(y=>y.contact_type===a)),i.trim()){const y=i.toLowerCase();x=x.filter(w=>w.name.toLowerCase().includes(y)||(w.email||"").toLowerCase().includes(y)||(w.company||"").toLowerCase().includes(y))}return x},[h,a,i]);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Contacts",subtitle:"People and companies your agents interact with",action:s.jsxs("button",{onClick:()=>d(!u),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:[s.jsx(yt,{size:14})," New contact"]})}),u&&s.jsx(Ez,{onClose:()=>d(!1),onSuccess:p}),s.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:Az.map(x=>s.jsx("button",{onClick:()=>l(x),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${a===x?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:x},x))}),s.jsxs("div",{className:"relative mb-4",children:[s.jsx(Mn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),s.jsx("input",{value:i,onChange:x=>c(x.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"})]}),f?s.jsx(We,{count:5}):g.length?s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:g.map(x=>s.jsxs(Mt,{to:`/contacts/${x.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:x.name}),s.jsxs("p",{className:"text-xs text-neutral-400",children:[x.email&&s.jsx("span",{children:x.email}),x.email&&x.company&&" · ",x.company&&s.jsx("span",{className:"text-white",children:x.company})]})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[s.jsx("span",{className:"text-xs text-neutral-400 capitalize",children:x.contact_type}),s.jsx(ht,{status:x.status})]})]},x.id))}):s.jsx(Vt,{icon:s.jsx(pE,{size:32}),title:"No contacts yet",description:i?`No contacts matching "${i}".`:"Add your first contact to get started."})]})}function Ez({onClose:e,onSuccess:a}){const[l,i]=n.useState(""),[c,u]=n.useState(""),[d,h]=n.useState(""),[f,p]=n.useState("lead"),[g,x]=n.useState(!1),y=async w=>{if(w.preventDefault(),!!l.trim()){x(!0);try{await me("/api/contacts",{method:"POST",body:JSON.stringify({name:l.trim(),email:c.trim()||void 0,company:d.trim()||void 0,contact_type:f})}),a(),e()}catch{}finally{x(!1)}}};return s.jsxs("form",{onSubmit:y,className:"border border-white/[0.08] rounded-lg p-4 mb-4 space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),s.jsx("input",{value:l,onChange:w=>i(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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Email"}),s.jsx("input",{value:c,onChange:w=>u(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"})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Company"}),s.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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Type"}),s.jsxs("select",{value:f,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:[s.jsx("option",{value:"lead",children:"Lead"}),s.jsx("option",{value:"client",children:"Client"}),s.jsx("option",{value:"partner",children:"Partner"}),s.jsx("option",{value:"vendor",children:"Vendor"})]})]})]}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:g||!l.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:g?"Creating...":"Create contact"})]})]})}function Nz(){const{id:e}=xl(),a=i0(),l=Ba(["contact:upserted"]),{data:i,loading:c,refetch:u}=Ae(e?`/api/contacts/${e}`:null,[l]),{data:d}=Ae(e?`/api/contacts/${e}/timeline`:null,[l]),[h,f]=n.useState(!1),[p,g]=n.useState(""),[x,y]=n.useState(""),[w,N]=n.useState(""),[E,A]=n.useState(""),[j,S]=n.useState(""),[Z,C]=n.useState(!1),[H,V]=n.useState(!1),T=n.useCallback(()=>{i&&(g(i.name),y(i.email||""),N(i.phone||""),A(i.company||""),S(i.notes||""),f(!0))},[i]),k=n.useCallback(async()=>{if(!(!e||!p.trim())){C(!0);try{await me(`/api/contacts/${e}`,{method:"PUT",body:JSON.stringify({name:p.trim(),email:x.trim()||null,phone:w.trim()||null,company:E.trim()||null,notes:j.trim()||null})}),f(!1),u()}catch{}finally{C(!1)}}},[e,p,x,w,E,j,u]),R=n.useCallback(async()=>{if(!(!e||!confirm("Delete this contact? This cannot be undone."))){V(!0);try{await me(`/api/contacts/${e}`,{method:"DELETE"}),a("/contacts")}catch{V(!1)}}},[e,a]);return c?s.jsx("div",{className:"p-6",children:s.jsx(We,{count:4})}):i?s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsxs(Mt,{to:"/contacts",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4",children:[s.jsx(Xr,{size:14})," Back to contacts"]}),s.jsx(Fe,{title:i.name,subtitle:`${i.contact_type} · Added ${new Date(i.created_at).toLocaleDateString()}`,action:s.jsxs("div",{className:"flex items-center gap-2",children:[!h&&s.jsx("button",{onClick:T,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 transition-colors",children:"Edit"}),s.jsxs("button",{onClick:R,disabled:H,className:"flex items-center gap-1 px-3 py-1.5 text-xs font-medium bg-critical/10 border border-critical/30 text-critical rounded-lg hover:bg-critical/20 disabled:opacity-50 transition-colors",children:[s.jsx(It,{size:14})," ",H?"Deleting...":"Delete"]}),s.jsx(ht,{status:i.status})]})}),h?s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 mb-6 space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),s.jsx("input",{value:p,onChange:O=>g(O.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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Email"}),s.jsx("input",{value:x,onChange:O=>y(O.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"})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Phone"}),s.jsx("input",{value:w,onChange:O=>N(O.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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Company"}),s.jsx("input",{value:E,onChange:O=>A(O.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"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Notes"}),s.jsx("textarea",{value:j,onChange:O=>S(O.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"})]}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{onClick:()=>f(!1),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{onClick:k,disabled:Z||!p.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:Z?"Saving...":"Save"})]})]}):s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08] mb-6",children:[{label:"Email",value:i.email},{label:"Phone",value:i.phone},{label:"Company",value:i.company},{label:"Notes",value:i.notes}].map(O=>O.value?s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsx("span",{className:"text-sm text-neutral-400",children:O.label}),s.jsx("span",{className:"text-sm font-medium",children:O.value})]},O.label):null)}),s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Timeline"}),d!=null&&d.length?s.jsx("div",{className:"space-y-2",children:d.map(O=>s.jsxs("div",{className:"border border-white/[0.08] rounded-lg px-4 py-3",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"text-xs text-white font-medium",children:O.event_type.replace(/_/g," ")}),s.jsx("span",{className:"text-xs text-neutral-400",children:new Date(O.created_at).toLocaleString()})]}),O.description&&s.jsx("p",{className:"text-sm",children:O.description})]},O.id))}):s.jsx(Vt,{icon:s.jsx(pE,{size:32}),title:"No activity yet",description:"Events will appear here as agents interact with this contact."})]}):s.jsx("div",{className:"p-6 text-neutral-400",children:"Contact not found"})}const Mz=["all","active","completed","archived"],y7={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 Sz(){const e=Ba(["project:created","project:updated"]),[a,l]=n.useState("all"),[i,c]=n.useState(""),[u,d]=n.useState(!1),{data:h,loading:f,refetch:p}=Ae("/api/projects",[e]),g=n.useMemo(()=>{if(!h)return[];let x=h;if(a!=="all"&&(x=x.filter(y=>y.status===a)),i.trim()){const y=i.toLowerCase();x=x.filter(w=>w.name.toLowerCase().includes(y)||(w.description||"").toLowerCase().includes(y))}return x},[h,a,i]);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Projects",subtitle:"Organize work into projects",action:s.jsxs("button",{onClick:()=>d(!u),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:[s.jsx(yt,{size:14})," New project"]})}),u&&s.jsx(Zz,{onClose:()=>d(!1),onSuccess:p}),s.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:Mz.map(x=>s.jsx("button",{onClick:()=>l(x),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${a===x?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:x},x))}),s.jsxs("div",{className:"relative mb-4",children:[s.jsx(Mn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),s.jsx("input",{value:i,onChange:x=>c(x.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"})]}),f?s.jsx(We,{count:4}):g.length?s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:g.map(x=>s.jsxs(Mt,{to:`/projects/${x.id}`,className:`border rounded-lg p-4 hover:bg-white/[0.02] transition-colors ${x.color&&y7[x.color]?y7[x.color]:"border-white/[0.08]"}`,children:[s.jsxs("div",{className:"flex items-start justify-between mb-2",children:[s.jsx("h3",{className:"text-sm font-medium truncate",children:x.name}),s.jsx(ht,{status:x.status})]}),x.description&&s.jsx("p",{className:"text-xs text-neutral-400 line-clamp-2",children:x.description}),s.jsx("p",{className:"text-xs text-neutral-400 mt-2",children:new Date(x.created_at).toLocaleDateString()})]},x.id))}):s.jsx(Vt,{icon:s.jsx(Km,{size:32}),title:"No projects yet",description:i?`No projects matching "${i}".`:"Create your first project to organize work."})]})}function Zz({onClose:e,onSuccess:a}){const[l,i]=n.useState(""),[c,u]=n.useState(""),[d,h]=n.useState(""),[f,p]=n.useState(!1),g=async x=>{if(x.preventDefault(),!!l.trim()){p(!0);try{await me("/api/projects",{method:"POST",body:JSON.stringify({name:l.trim(),description:c.trim()||void 0,color:d||void 0})}),a(),e()}catch{}finally{p(!1)}}};return s.jsxs("form",{onSubmit:g,className:"border border-white/[0.08] rounded-lg p-4 mb-4 space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),s.jsx("input",{value:l,onChange:x=>i(x.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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Color"}),s.jsxs("select",{value:d,onChange:x=>h(x.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:[s.jsx("option",{value:"",children:"None"}),s.jsx("option",{value:"blue",children:"Blue"}),s.jsx("option",{value:"green",children:"Green"}),s.jsx("option",{value:"red",children:"Red"}),s.jsx("option",{value:"yellow",children:"Yellow"}),s.jsx("option",{value:"purple",children:"Purple"})]})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description (optional)"}),s.jsx("textarea",{value:c,onChange:x=>u(x.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"})]}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:f||!l.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:f?"Creating...":"Create project"})]})]})}const Cz=[{id:"queued",label:"Queued",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 Hz({task:e}){return s.jsx(Mt,{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:s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(FO,{size:14,className:"text-neutral-600 mt-0.5 shrink-0 opacity-0 group-hover:opacity-100 transition-opacity"}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:e.title}),s.jsxs("div",{className:"flex items-center gap-2 mt-1.5",children:[e.priority&&e.priority!=="normal"&&s.jsx("span",{className:"text-xs text-warning",children:e.priority}),e.tokens_used?s.jsxs("span",{className:"text-xs text-neutral-500",children:[e.tokens_used.toLocaleString()," tok"]}):null]}),s.jsx("p",{className:"text-xs text-neutral-500 mt-1",children:new Date(e.created_at).toLocaleDateString()})]})]})})}function Vz({tasks:e}){const a=n.useMemo(()=>Cz.map(l=>({...l,tasks:e.filter(i=>i.status===l.id)})),[e]);return s.jsx("div",{className:"flex gap-4 overflow-x-auto pb-4",children:a.map(l=>s.jsxs("div",{className:"min-w-[240px] flex-1",children:[s.jsxs("div",{className:`flex items-center justify-between rounded-lg px-3 py-2 mb-3 ${l.bgColor}`,children:[s.jsx("span",{className:`text-xs font-semibold uppercase tracking-wider ${l.textColor}`,children:l.label}),s.jsx("span",{className:`text-xs ${l.textColor} opacity-70`,children:l.tasks.length})]}),s.jsx("div",{className:"space-y-2",children:l.tasks.length===0?s.jsx("p",{className:"text-xs text-neutral-600 text-center py-6",children:"No tasks"}):l.tasks.map(i=>s.jsx(Te.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2},children:s.jsx(Hz,{task:i})},i.id))})]},l.id))})}const _z=[{id:"board",label:"Board"},{id:"list",label:"List"}];function Tz(){const{id:e}=xl(),[a,l]=n.useState("board"),i=Ba(["task:started","task:completed","task:failed"]),{data:c,loading:u}=Ae(e?`/api/projects/${e}`:null),{data:d}=Ae(e?`/api/projects/${e}/tasks`:null,[i]);return u?s.jsx("div",{className:"p-6",children:s.jsx(We,{count:4})}):c?s.jsxs("div",{className:"p-6 max-w-6xl",children:[s.jsxs(Mt,{to:"/projects",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4",children:[s.jsx(Xr,{size:14})," Back to projects"]}),s.jsx(Fe,{title:c.name,subtitle:c.description||`Created ${new Date(c.created_at).toLocaleDateString()}`,action:s.jsx(ht,{status:c.status})}),d&&s.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:"Total tasks"}),s.jsx("p",{className:"text-lg font-bold",children:d.length})]}),s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:"Completed"}),s.jsx("p",{className:"text-lg font-bold",children:d.filter(h=>h.status==="completed").length})]}),s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:"In progress"}),s.jsx("p",{className:"text-lg font-bold",children:d.filter(h=>h.status==="in_progress").length})]})]}),s.jsx("div",{className:"mb-4",children:s.jsx(Zl,{tabs:_z,activeTab:a,onTabChange:h=>l(h),layoutId:"project-view-tabs"})}),d!=null&&d.length?a==="board"?s.jsx(Vz,{tasks:d}):s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:d.map(h=>s.jsxs(Mt,{to:`/tasks/${h.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:h.title}),s.jsx("p",{className:"text-xs text-neutral-400",children:new Date(h.created_at).toLocaleString()})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[h.priority&&h.priority!=="normal"&&s.jsx("span",{className:"text-xs text-warning",children:h.priority}),s.jsx(ht,{status:h.status})]})]},h.id))}):s.jsx(Vt,{icon:s.jsx(q1,{size:32}),title:"No tasks in this project",description:"Tasks assigned to this project will appear here."})]}):s.jsx("div",{className:"p-6 text-neutral-400",children:"Project not found"})}const Lz={webhook:Ml,schedule:El,event:Pm,manual:Ym};function Rz(e){if(!e)return"Never";const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}function kz(){const e=i0(),[a,l]=n.useState([]),[i,c]=n.useState(!0),[u,d]=n.useState(""),[h,f]=n.useState(null),p=async()=>{try{const w=await me("/api/automations");l(w.data||[])}catch{ue("error","Couldn't load automations")}finally{c(!1)}};n.useEffect(()=>{p()},[]);const g=a.filter(w=>w.name.toLowerCase().includes(u.toLowerCase())),x=async(w,N)=>{try{await me(`/api/automations/${w}`,{method:"PATCH",body:JSON.stringify({enabled:N})}),l(E=>E.map(A=>A.id===w?{...A,enabled:N}:A))}catch{ue("error","Couldn't update automation")}},y=async()=>{if(h){try{await me(`/api/automations/${h}`,{method:"DELETE"}),l(w=>w.filter(N=>N.id!==h)),ue("success","Automation deleted")}catch{ue("error","Couldn't delete automation")}f(null)}};return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Automations",subtitle:"Build visual automation flows with triggers, conditions, and actions",action:s.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:[s.jsx(yt,{size:14,weight:"bold"}),"New automation"]})}),a.length>0&&s.jsxs("div",{className:"relative mb-4",children:[s.jsx(Mn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-500"}),s.jsx("input",{type:"text",value:u,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"})]}),i?s.jsx("div",{className:"space-y-2",children:[1,2,3].map(w=>s.jsx(fl,{className:"h-16 rounded-lg"},w))}):a.length===0?s.jsx(Vt,{icon:s.jsx(ca,{size:32}),title:"No automations yet",description:"Create your first automation to connect triggers with actions",action:s.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:[s.jsx(yt,{size:14,weight:"bold"}),"New automation"]})}):g.length===0?s.jsx("p",{className:"text-sm text-neutral-500 text-center py-8",children:"No automations match your search"}):s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:g.map(w=>{const N=Lz[w.trigger_type]||ca;return s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("button",{onClick:()=>e(`/automations/${w.id}/edit`),className:"min-w-0 mr-3 text-left flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(N,{size:14,className:"text-neutral-500 shrink-0"}),s.jsx("p",{className:"text-sm font-medium truncate",children:w.name})]}),s.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 ${Rz(w.last_fired_at)}`]})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[s.jsx(pl,{checked:w.enabled,onChange:E=>x(w.id,E)}),s.jsx("button",{onClick:()=>f(w.id),className:"text-neutral-500 hover:text-red-400 transition-colors",title:"Delete",children:s.jsx(It,{size:14})})]})]},w.id)})}),s.jsx(c0,{open:!!h,title:"Delete automation",message:"This will permanently delete this automation and its history. This action can't be undone.",confirmLabel:"Delete",onConfirm:y,onClose:()=>f(null)})]})}const s0={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"},Dz={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"},MM={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 O0(e){var a;return e.action_type==="transform_data"?(((a=e.action_config)==null?void 0:a.mappings)||[]).map(c=>c.target).filter(Boolean):MM[e.action_type]||[]}function b1(e,a=""){const l={};for(const[i,c]of Object.entries(e)){const u=a?`${a}.${i}`:i;if(c!==null&&typeof c=="object"&&!Array.isArray(c)){const d=b1(c,u);Object.assign(l,d.payload)}else l[u]=c}return{fields:Object.keys(l),payload:l}}function Cl(e){var u;const{sampleFields:a,samplePayload:l,previousSteps:i}=e,c=[];if(a.length>0){const d=a.map(h=>{let f;if(l&&h in l){const p=l[h];f=typeof p=="string"?p:JSON.stringify(p)}return{name:h,path:`trigger.${h}`,value:f}});c.push({label:"Trigger",prefix:"trigger",fields:d})}for(const d of i){let h=MM[d.action_type]||[];if(d.action_type==="transform_data"&&(h=(((u=d.action_config)==null?void 0:u.mappings)||[]).map(p=>p.target).filter(Boolean)),h.length>0){const f=d.label||d.action_type,p=h.map(g=>({name:g,path:`${d.id}.${g}`}));c.push({label:`Step ${d.id.replace("step_","")}: ${f}`,prefix:d.id,fields:p})}}return c}function SM(e){const a=[],l=/\{\{([^}]+)\}\}/g;let i;for(;(i=l.exec(e))!==null;)a.push(i[1].trim());return a}function Oz(e,a){const l=new Set(a);return e.filter(i=>!l.has(i))}const t0={trigger:{width:280,height:80},step:{width:280,height:80},conditional:{width:280,height:100},addStep:{width:200,height:40}},Ka="trigger",R0=e=>`add-after-${e}`;function Fz(e,a){const l=JSON.stringify(e.action_config||{})+(e.prompt||""),i=SM(l);if(i.length===0)return[];const c={};for(const d of i){const h=d.split(".")[0];c[h]=(c[h]||0)+1}const u=[];for(const[d,h]of Object.entries(c))if(d==="trigger")u.push({label:"Trigger",count:h});else{const f=a.find(p=>p.id===d);u.push({label:(f==null?void 0:f.label)||d,count:h})}return u}function ZM(e){const a=[],l=[],i=e.node_positions;a.push({id:Ka,type:"trigger",position:(i==null?void 0:i[Ka])||{x:0,y:0},...t0.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 c=Ka;const u=[];for(let h=0;h<e.steps.length;h++){const f=e.steps[h],p=f.id;if(f.step_type==="conditional"){const g=f.action_config||{},x=g.condition||{field:"",operator:"equals",value:""};a.push({id:p,type:"conditional",position:(i==null?void 0:i[p])||{x:0,y:0},...t0.conditional,data:{stepIndex:h,stepId:f.id,stepType:f.step_type,label:f.label||"Conditional",actionConfig:g,outputFields:["branch","branch_output"],condition:x}}),l.push({id:`${c}->${p}`,source:c,target:p,type:"dataFlow"});const y=g.then_actions||[];let w=p;for(let S=0;S<y.length;S++){const Z=y[S],C=`${p}-then-${S}`;a.push({id:C,type:"step",position:(i==null?void 0:i[C])||{x:0,y:0},...t0.step,data:{stepIndex:-1,stepId:Z.id,stepType:Z.action_type,label:Z.label||s0[Z.action_type]||Z.action_type,actionConfig:Z.action_config||{},outputFields:O0(Z),branchType:"then",parentConditionalId:p,branchIndex:S}}),l.push({id:`${w}->${C}`,source:w,sourceHandle:w===p?"then":void 0,target:C,type:"dataFlow",data:{branchType:"then"}}),w=C}const N=R0(`${p}-then`);a.push({id:N,type:"addStep",position:(i==null?void 0:i[N])||{x:0,y:0},...t0.addStep,data:{parentNodeId:w,insertIndex:y.length,branchType:"then",conditionalNodeId:p}}),l.push({id:`${w}->${N}`,source:w,sourceHandle:w===p?"then":void 0,target:N,type:"addStepEdge",data:{branchType:"then"}});const E=g.else_actions||[];let A=p;for(let S=0;S<E.length;S++){const Z=E[S],C=`${p}-else-${S}`;a.push({id:C,type:"step",position:(i==null?void 0:i[C])||{x:0,y:0},...t0.step,data:{stepIndex:-1,stepId:Z.id,stepType:Z.action_type,label:Z.label||s0[Z.action_type]||Z.action_type,actionConfig:Z.action_config||{},outputFields:O0(Z),branchType:"else",parentConditionalId:p,branchIndex:S}}),l.push({id:`${A}->${C}`,source:A,sourceHandle:A===p?"else":void 0,target:C,type:"dataFlow",data:{branchType:"else"}}),A=C}const j=R0(`${p}-else`);a.push({id:j,type:"addStep",position:(i==null?void 0:i[j])||{x:0,y:0},...t0.addStep,data:{parentNodeId:A,insertIndex:E.length,branchType:"else",conditionalNodeId:p}}),l.push({id:`${A}->${j}`,source:A,sourceHandle:A===p?"else":void 0,target:j,type:"addStepEdge",data:{branchType:"else"}}),u.push({id:f.id,label:f.label||"Conditional"}),c=p}else{const g={id:f.id,action_type:f.step_type,action_config:f.action_config||{},label:f.label},x=f.label||s0[f.step_type]||f.step_type,y=Fz(f,u);a.push({id:p,type:"step",position:(i==null?void 0:i[p])||{x:0,y:0},...t0.step,data:{stepIndex:h,stepId:f.id,stepType:f.step_type,label:x,actionConfig:f.action_config||{},outputFields:O0(g),inputSources:y,agentId:f.agent_id,agentName:f.agent_name,prompt:f.prompt,requiredIntegrations:f.required_integrations,connectionId:f.connection_id}}),l.push({id:`${c}->${p}`,source:c,target:p,type:"dataFlow"}),u.push({id:f.id,label:x}),c=p}}const d=R0(c);return a.push({id:d,type:"addStep",position:(i==null?void 0:i[d])||{x:0,y:0},...t0.addStep,data:{parentNodeId:c,insertIndex:e.steps.length}}),l.push({id:`${c}->${d}`,source:c,target:d,type:"addStepEdge"}),{nodes:a,edges:l,hasCustomPositions:!!i&&Object.keys(i).length>0}}function qz(e,a){var d;const l=e.find(h=>h.type==="trigger");if(!l)throw new Error("No trigger node found");const i=l.data,c=zz(e,a),u={};for(const h of e)h.type!=="addStep"&&(u[h.id]={x:h.position.x,y:h.position.y});return{name:i.name,description:i.description||void 0,trigger_type:i.triggerType,trigger_config:i.triggerConfig,steps:c,variables:(d=i.variables)!=null&&d.length?i.variables:void 0,cooldown_seconds:i.cooldownSeconds,node_positions:u}}function zz(e,a){const l=[],i=a.filter(d=>!d.sourceHandle||d.sourceHandle!=="then"&&d.sourceHandle!=="else");let c=Ka;const u=new Set;for(;;){u.add(c);const d=i.find(f=>f.source===c&&!u.has(f.target));if(!d)break;const h=e.find(f=>f.id===d.target);if(!h||h.type==="addStep")break;if(h.type==="conditional"){const f=h.data,p=w7(e,a,h.id,"then"),g=w7(e,a,h.id,"else");l.push({id:f.stepId,step_type:"conditional",label:f.label,action_config:{...f.actionConfig,condition:f.condition,then_actions:p,else_actions:g}})}else if(h.type==="step"){const f=h.data;l.push(Bz(f))}c=h.id}return l.map((d,h)=>({...d,id:`step_${h+1}`}))}function w7(e,a,l,i){const c=[];let u=l;const d=new Set;for(;;){d.add(u);const h=a.find(p=>p.source===u&&!d.has(p.target)&&(u===l?p.sourceHandle===i:!0));if(!h)break;const f=e.find(p=>p.id===h.target);if(!f||f.type==="addStep")break;if(f.type==="step"){const p=f.data;c.push({id:p.stepId,action_type:p.stepType,action_config:p.actionConfig,label:p.label})}u=f.id}return c.map((h,f)=>({...h,id:`${i}_step_${f+1}`}))}function Bz(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 $z(){return ZM({name:"",description:null,trigger_type:"webhook",trigger_config:{},steps:[],variables:[],cooldown_seconds:0,sample_payload:null,sample_fields:null})}function af(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 Q2,A7;function Iz(){if(A7)return Q2;A7=1;function e(){this.__data__=[],this.size=0}return Q2=e,Q2}var J2,j7;function Qr(){if(j7)return J2;j7=1;function e(a,l){return a===l||a!==a&&l!==l}return J2=e,J2}var W2,E7;function B1(){if(E7)return W2;E7=1;var e=Qr();function a(l,i){for(var c=l.length;c--;)if(e(l[c][0],i))return c;return-1}return W2=a,W2}var eu,N7;function Uz(){if(N7)return eu;N7=1;var e=B1(),a=Array.prototype,l=a.splice;function i(c){var u=this.__data__,d=e(u,c);if(d<0)return!1;var h=u.length-1;return d==h?u.pop():l.call(u,d,1),--this.size,!0}return eu=i,eu}var tu,M7;function Pz(){if(M7)return tu;M7=1;var e=B1();function a(l){var i=this.__data__,c=e(i,l);return c<0?void 0:i[c][1]}return tu=a,tu}var au,S7;function Gz(){if(S7)return au;S7=1;var e=B1();function a(l){return e(this.__data__,l)>-1}return au=a,au}var nu,Z7;function Yz(){if(Z7)return nu;Z7=1;var e=B1();function a(l,i){var c=this.__data__,u=e(c,l);return u<0?(++this.size,c.push([l,i])):c[u][1]=i,this}return nu=a,nu}var ru,C7;function $1(){if(C7)return ru;C7=1;var e=Iz(),a=Uz(),l=Pz(),i=Gz(),c=Yz();function u(d){var h=-1,f=d==null?0:d.length;for(this.clear();++h<f;){var p=d[h];this.set(p[0],p[1])}}return u.prototype.clear=e,u.prototype.delete=a,u.prototype.get=l,u.prototype.has=i,u.prototype.set=c,ru=u,ru}var su,H7;function Kz(){if(H7)return su;H7=1;var e=$1();function a(){this.__data__=new e,this.size=0}return su=a,su}var lu,V7;function Xz(){if(V7)return lu;V7=1;function e(a){var l=this.__data__,i=l.delete(a);return this.size=l.size,i}return lu=e,lu}var iu,_7;function Qz(){if(_7)return iu;_7=1;function e(a){return this.__data__.get(a)}return iu=e,iu}var ou,T7;function Jz(){if(T7)return ou;T7=1;function e(a){return this.__data__.has(a)}return ou=e,ou}var cu,L7;function CM(){if(L7)return cu;L7=1;var e=typeof Wi=="object"&&Wi&&Wi.Object===Object&&Wi;return cu=e,cu}var uu,R7;function $a(){if(R7)return uu;R7=1;var e=CM(),a=typeof self=="object"&&self&&self.Object===Object&&self,l=e||a||Function("return this")();return uu=l,uu}var du,k7;function Jr(){if(k7)return du;k7=1;var e=$a(),a=e.Symbol;return du=a,du}var hu,D7;function Wz(){if(D7)return hu;D7=1;var e=Jr(),a=Object.prototype,l=a.hasOwnProperty,i=a.toString,c=e?e.toStringTag:void 0;function u(d){var h=l.call(d,c),f=d[c];try{d[c]=void 0;var p=!0}catch{}var g=i.call(d);return p&&(h?d[c]=f:delete d[c]),g}return hu=u,hu}var mu,O7;function eB(){if(O7)return mu;O7=1;var e=Object.prototype,a=e.toString;function l(i){return a.call(i)}return mu=l,mu}var fu,F7;function q0(){if(F7)return fu;F7=1;var e=Jr(),a=Wz(),l=eB(),i="[object Null]",c="[object Undefined]",u=e?e.toStringTag:void 0;function d(h){return h==null?h===void 0?c:i:u&&u in Object(h)?a(h):l(h)}return fu=d,fu}var pu,q7;function Ca(){if(q7)return pu;q7=1;function e(a){var l=typeof a;return a!=null&&(l=="object"||l=="function")}return pu=e,pu}var gu,z7;function Hl(){if(z7)return gu;z7=1;var e=q0(),a=Ca(),l="[object AsyncFunction]",i="[object Function]",c="[object GeneratorFunction]",u="[object Proxy]";function d(h){if(!a(h))return!1;var f=e(h);return f==i||f==c||f==l||f==u}return gu=d,gu}var xu,B7;function tB(){if(B7)return xu;B7=1;var e=$a(),a=e["__core-js_shared__"];return xu=a,xu}var vu,$7;function aB(){if($7)return vu;$7=1;var e=tB(),a=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function l(i){return!!a&&a in i}return vu=l,vu}var bu,I7;function HM(){if(I7)return bu;I7=1;var e=Function.prototype,a=e.toString;function l(i){if(i!=null){try{return a.call(i)}catch{}try{return i+""}catch{}}return""}return bu=l,bu}var yu,U7;function nB(){if(U7)return yu;U7=1;var e=Hl(),a=aB(),l=Ca(),i=HM(),c=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,d=Function.prototype,h=Object.prototype,f=d.toString,p=h.hasOwnProperty,g=RegExp("^"+f.call(p).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function x(y){if(!l(y)||a(y))return!1;var w=e(y)?g:u;return w.test(i(y))}return yu=x,yu}var wu,P7;function rB(){if(P7)return wu;P7=1;function e(a,l){return a==null?void 0:a[l]}return wu=e,wu}var Au,G7;function z0(){if(G7)return Au;G7=1;var e=nB(),a=rB();function l(i,c){var u=a(i,c);return e(u)?u:void 0}return Au=l,Au}var ju,Y7;function nf(){if(Y7)return ju;Y7=1;var e=z0(),a=$a(),l=e(a,"Map");return ju=l,ju}var Eu,K7;function I1(){if(K7)return Eu;K7=1;var e=z0(),a=e(Object,"create");return Eu=a,Eu}var Nu,X7;function sB(){if(X7)return Nu;X7=1;var e=I1();function a(){this.__data__=e?e(null):{},this.size=0}return Nu=a,Nu}var Mu,Q7;function lB(){if(Q7)return Mu;Q7=1;function e(a){var l=this.has(a)&&delete this.__data__[a];return this.size-=l?1:0,l}return Mu=e,Mu}var Su,J7;function iB(){if(J7)return Su;J7=1;var e=I1(),a="__lodash_hash_undefined__",l=Object.prototype,i=l.hasOwnProperty;function c(u){var d=this.__data__;if(e){var h=d[u];return h===a?void 0:h}return i.call(d,u)?d[u]:void 0}return Su=c,Su}var Zu,W7;function oB(){if(W7)return Zu;W7=1;var e=I1(),a=Object.prototype,l=a.hasOwnProperty;function i(c){var u=this.__data__;return e?u[c]!==void 0:l.call(u,c)}return Zu=i,Zu}var Cu,ev;function cB(){if(ev)return Cu;ev=1;var e=I1(),a="__lodash_hash_undefined__";function l(i,c){var u=this.__data__;return this.size+=this.has(i)?0:1,u[i]=e&&c===void 0?a:c,this}return Cu=l,Cu}var Hu,tv;function uB(){if(tv)return Hu;tv=1;var e=sB(),a=lB(),l=iB(),i=oB(),c=cB();function u(d){var h=-1,f=d==null?0:d.length;for(this.clear();++h<f;){var p=d[h];this.set(p[0],p[1])}}return u.prototype.clear=e,u.prototype.delete=a,u.prototype.get=l,u.prototype.has=i,u.prototype.set=c,Hu=u,Hu}var Vu,av;function dB(){if(av)return Vu;av=1;var e=uB(),a=$1(),l=nf();function i(){this.size=0,this.__data__={hash:new e,map:new(l||a),string:new e}}return Vu=i,Vu}var _u,nv;function hB(){if(nv)return _u;nv=1;function e(a){var l=typeof a;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?a!=="__proto__":a===null}return _u=e,_u}var Tu,rv;function U1(){if(rv)return Tu;rv=1;var e=hB();function a(l,i){var c=l.__data__;return e(i)?c[typeof i=="string"?"string":"hash"]:c.map}return Tu=a,Tu}var Lu,sv;function mB(){if(sv)return Lu;sv=1;var e=U1();function a(l){var i=e(this,l).delete(l);return this.size-=i?1:0,i}return Lu=a,Lu}var Ru,lv;function fB(){if(lv)return Ru;lv=1;var e=U1();function a(l){return e(this,l).get(l)}return Ru=a,Ru}var ku,iv;function pB(){if(iv)return ku;iv=1;var e=U1();function a(l){return e(this,l).has(l)}return ku=a,ku}var Du,ov;function gB(){if(ov)return Du;ov=1;var e=U1();function a(l,i){var c=e(this,l),u=c.size;return c.set(l,i),this.size+=c.size==u?0:1,this}return Du=a,Du}var Ou,cv;function rf(){if(cv)return Ou;cv=1;var e=dB(),a=mB(),l=fB(),i=pB(),c=gB();function u(d){var h=-1,f=d==null?0:d.length;for(this.clear();++h<f;){var p=d[h];this.set(p[0],p[1])}}return u.prototype.clear=e,u.prototype.delete=a,u.prototype.get=l,u.prototype.has=i,u.prototype.set=c,Ou=u,Ou}var Fu,uv;function xB(){if(uv)return Fu;uv=1;var e=$1(),a=nf(),l=rf(),i=200;function c(u,d){var h=this.__data__;if(h instanceof e){var f=h.__data__;if(!a||f.length<i-1)return f.push([u,d]),this.size=++h.size,this;h=this.__data__=new l(f)}return h.set(u,d),this.size=h.size,this}return Fu=c,Fu}var qu,dv;function P1(){if(dv)return qu;dv=1;var e=$1(),a=Kz(),l=Xz(),i=Qz(),c=Jz(),u=xB();function d(h){var f=this.__data__=new e(h);this.size=f.size}return d.prototype.clear=a,d.prototype.delete=l,d.prototype.get=i,d.prototype.has=c,d.prototype.set=u,qu=d,qu}var zu,hv;function sf(){if(hv)return zu;hv=1;function e(a,l){for(var i=-1,c=a==null?0:a.length;++i<c&&l(a[i],i,a)!==!1;);return a}return zu=e,zu}var Bu,mv;function VM(){if(mv)return Bu;mv=1;var e=z0(),a=(function(){try{var l=e(Object,"defineProperty");return l({},"",{}),l}catch{}})();return Bu=a,Bu}var $u,fv;function G1(){if(fv)return $u;fv=1;var e=VM();function a(l,i,c){i=="__proto__"&&e?e(l,i,{configurable:!0,enumerable:!0,value:c,writable:!0}):l[i]=c}return $u=a,$u}var Iu,pv;function Y1(){if(pv)return Iu;pv=1;var e=G1(),a=Qr(),l=Object.prototype,i=l.hasOwnProperty;function c(u,d,h){var f=u[d];(!(i.call(u,d)&&a(f,h))||h===void 0&&!(d in u))&&e(u,d,h)}return Iu=c,Iu}var Uu,gv;function Vl(){if(gv)return Uu;gv=1;var e=Y1(),a=G1();function l(i,c,u,d){var h=!u;u||(u={});for(var f=-1,p=c.length;++f<p;){var g=c[f],x=d?d(u[g],i[g],g,u,i):void 0;x===void 0&&(x=i[g]),h?a(u,g,x):e(u,g,x)}return u}return Uu=l,Uu}var Pu,xv;function vB(){if(xv)return Pu;xv=1;function e(a,l){for(var i=-1,c=Array(a);++i<a;)c[i]=l(i);return c}return Pu=e,Pu}var Gu,vv;function an(){if(vv)return Gu;vv=1;function e(a){return a!=null&&typeof a=="object"}return Gu=e,Gu}var Yu,bv;function bB(){if(bv)return Yu;bv=1;var e=q0(),a=an(),l="[object Arguments]";function i(c){return a(c)&&e(c)==l}return Yu=i,Yu}var Ku,yv;function _l(){if(yv)return Ku;yv=1;var e=bB(),a=an(),l=Object.prototype,i=l.hasOwnProperty,c=l.propertyIsEnumerable,u=e((function(){return arguments})())?e:function(d){return a(d)&&i.call(d,"callee")&&!c.call(d,"callee")};return Ku=u,Ku}var Xu,wv;function wt(){if(wv)return Xu;wv=1;var e=Array.isArray;return Xu=e,Xu}var Ws={exports:{}},Qu,Av;function yB(){if(Av)return Qu;Av=1;function e(){return!1}return Qu=e,Qu}Ws.exports;var jv;function Wr(){return jv||(jv=1,(function(e,a){var l=$a(),i=yB(),c=a&&!a.nodeType&&a,u=c&&!0&&e&&!e.nodeType&&e,d=u&&u.exports===c,h=d?l.Buffer:void 0,f=h?h.isBuffer:void 0,p=f||i;e.exports=p})(Ws,Ws.exports)),Ws.exports}var Ju,Ev;function K1(){if(Ev)return Ju;Ev=1;var e=9007199254740991,a=/^(?:0|[1-9]\d*)$/;function l(i,c){var u=typeof i;return c=c??e,!!c&&(u=="number"||u!="symbol"&&a.test(i))&&i>-1&&i%1==0&&i<c}return Ju=l,Ju}var Wu,Nv;function lf(){if(Nv)return Wu;Nv=1;var e=9007199254740991;function a(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=e}return Wu=a,Wu}var ed,Mv;function wB(){if(Mv)return ed;Mv=1;var e=q0(),a=lf(),l=an(),i="[object Arguments]",c="[object Array]",u="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",p="[object Map]",g="[object Number]",x="[object Object]",y="[object RegExp]",w="[object Set]",N="[object String]",E="[object WeakMap]",A="[object ArrayBuffer]",j="[object DataView]",S="[object Float32Array]",Z="[object Float64Array]",C="[object Int8Array]",H="[object Int16Array]",V="[object Int32Array]",T="[object Uint8Array]",k="[object Uint8ClampedArray]",R="[object Uint16Array]",O="[object Uint32Array]",U={};U[S]=U[Z]=U[C]=U[H]=U[V]=U[T]=U[k]=U[R]=U[O]=!0,U[i]=U[c]=U[A]=U[u]=U[j]=U[d]=U[h]=U[f]=U[p]=U[g]=U[x]=U[y]=U[w]=U[N]=U[E]=!1;function X(K){return l(K)&&a(K.length)&&!!U[e(K)]}return ed=X,ed}var td,Sv;function X1(){if(Sv)return td;Sv=1;function e(a){return function(l){return a(l)}}return td=e,td}var el={exports:{}};el.exports;var Zv;function of(){return Zv||(Zv=1,(function(e,a){var l=CM(),i=a&&!a.nodeType&&a,c=i&&!0&&e&&!e.nodeType&&e,u=c&&c.exports===i,d=u&&l.process,h=(function(){try{var f=c&&c.require&&c.require("util").types;return f||d&&d.binding&&d.binding("util")}catch{}})();e.exports=h})(el,el.exports)),el.exports}var ad,Cv;function Tl(){if(Cv)return ad;Cv=1;var e=wB(),a=X1(),l=of(),i=l&&l.isTypedArray,c=i?a(i):e;return ad=c,ad}var nd,Hv;function _M(){if(Hv)return nd;Hv=1;var e=vB(),a=_l(),l=wt(),i=Wr(),c=K1(),u=Tl(),d=Object.prototype,h=d.hasOwnProperty;function f(p,g){var x=l(p),y=!x&&a(p),w=!x&&!y&&i(p),N=!x&&!y&&!w&&u(p),E=x||y||w||N,A=E?e(p.length,String):[],j=A.length;for(var S in p)(g||h.call(p,S))&&!(E&&(S=="length"||w&&(S=="offset"||S=="parent")||N&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||c(S,j)))&&A.push(S);return A}return nd=f,nd}var rd,Vv;function Q1(){if(Vv)return rd;Vv=1;var e=Object.prototype;function a(l){var i=l&&l.constructor,c=typeof i=="function"&&i.prototype||e;return l===c}return rd=a,rd}var sd,_v;function TM(){if(_v)return sd;_v=1;function e(a,l){return function(i){return a(l(i))}}return sd=e,sd}var ld,Tv;function AB(){if(Tv)return ld;Tv=1;var e=TM(),a=e(Object.keys,Object);return ld=a,ld}var id,Lv;function cf(){if(Lv)return id;Lv=1;var e=Q1(),a=AB(),l=Object.prototype,i=l.hasOwnProperty;function c(u){if(!e(u))return a(u);var d=[];for(var h in Object(u))i.call(u,h)&&h!="constructor"&&d.push(h);return d}return id=c,id}var od,Rv;function Sn(){if(Rv)return od;Rv=1;var e=Hl(),a=lf();function l(i){return i!=null&&a(i.length)&&!e(i)}return od=l,od}var cd,kv;function u0(){if(kv)return cd;kv=1;var e=_M(),a=cf(),l=Sn();function i(c){return l(c)?e(c):a(c)}return cd=i,cd}var ud,Dv;function jB(){if(Dv)return ud;Dv=1;var e=Vl(),a=u0();function l(i,c){return i&&e(c,a(c),i)}return ud=l,ud}var dd,Ov;function EB(){if(Ov)return dd;Ov=1;function e(a){var l=[];if(a!=null)for(var i in Object(a))l.push(i);return l}return dd=e,dd}var hd,Fv;function NB(){if(Fv)return hd;Fv=1;var e=Ca(),a=Q1(),l=EB(),i=Object.prototype,c=i.hasOwnProperty;function u(d){if(!e(d))return l(d);var h=a(d),f=[];for(var p in d)p=="constructor"&&(h||!c.call(d,p))||f.push(p);return f}return hd=u,hd}var md,qv;function B0(){if(qv)return md;qv=1;var e=_M(),a=NB(),l=Sn();function i(c){return l(c)?e(c,!0):a(c)}return md=i,md}var fd,zv;function MB(){if(zv)return fd;zv=1;var e=Vl(),a=B0();function l(i,c){return i&&e(c,a(c),i)}return fd=l,fd}var tl={exports:{}};tl.exports;var Bv;function LM(){return Bv||(Bv=1,(function(e,a){var l=$a(),i=a&&!a.nodeType&&a,c=i&&!0&&e&&!e.nodeType&&e,u=c&&c.exports===i,d=u?l.Buffer:void 0,h=d?d.allocUnsafe:void 0;function f(p,g){if(g)return p.slice();var x=p.length,y=h?h(x):new p.constructor(x);return p.copy(y),y}e.exports=f})(tl,tl.exports)),tl.exports}var pd,$v;function RM(){if($v)return pd;$v=1;function e(a,l){var i=-1,c=a.length;for(l||(l=Array(c));++i<c;)l[i]=a[i];return l}return pd=e,pd}var gd,Iv;function kM(){if(Iv)return gd;Iv=1;function e(a,l){for(var i=-1,c=a==null?0:a.length,u=0,d=[];++i<c;){var h=a[i];l(h,i,a)&&(d[u++]=h)}return d}return gd=e,gd}var xd,Uv;function DM(){if(Uv)return xd;Uv=1;function e(){return[]}return xd=e,xd}var vd,Pv;function uf(){if(Pv)return vd;Pv=1;var e=kM(),a=DM(),l=Object.prototype,i=l.propertyIsEnumerable,c=Object.getOwnPropertySymbols,u=c?function(d){return d==null?[]:(d=Object(d),e(c(d),function(h){return i.call(d,h)}))}:a;return vd=u,vd}var bd,Gv;function SB(){if(Gv)return bd;Gv=1;var e=Vl(),a=uf();function l(i,c){return e(i,a(i),c)}return bd=l,bd}var yd,Yv;function df(){if(Yv)return yd;Yv=1;function e(a,l){for(var i=-1,c=l.length,u=a.length;++i<c;)a[u+i]=l[i];return a}return yd=e,yd}var wd,Kv;function J1(){if(Kv)return wd;Kv=1;var e=TM(),a=e(Object.getPrototypeOf,Object);return wd=a,wd}var Ad,Xv;function OM(){if(Xv)return Ad;Xv=1;var e=df(),a=J1(),l=uf(),i=DM(),c=Object.getOwnPropertySymbols,u=c?function(d){for(var h=[];d;)e(h,l(d)),d=a(d);return h}:i;return Ad=u,Ad}var jd,Qv;function ZB(){if(Qv)return jd;Qv=1;var e=Vl(),a=OM();function l(i,c){return e(i,a(i),c)}return jd=l,jd}var Ed,Jv;function FM(){if(Jv)return Ed;Jv=1;var e=df(),a=wt();function l(i,c,u){var d=c(i);return a(i)?d:e(d,u(i))}return Ed=l,Ed}var Nd,Wv;function qM(){if(Wv)return Nd;Wv=1;var e=FM(),a=uf(),l=u0();function i(c){return e(c,l,a)}return Nd=i,Nd}var Md,e9;function CB(){if(e9)return Md;e9=1;var e=FM(),a=OM(),l=B0();function i(c){return e(c,l,a)}return Md=i,Md}var Sd,t9;function HB(){if(t9)return Sd;t9=1;var e=z0(),a=$a(),l=e(a,"DataView");return Sd=l,Sd}var Zd,a9;function VB(){if(a9)return Zd;a9=1;var e=z0(),a=$a(),l=e(a,"Promise");return Zd=l,Zd}var Cd,n9;function zM(){if(n9)return Cd;n9=1;var e=z0(),a=$a(),l=e(a,"Set");return Cd=l,Cd}var Hd,r9;function _B(){if(r9)return Hd;r9=1;var e=z0(),a=$a(),l=e(a,"WeakMap");return Hd=l,Hd}var Vd,s9;function es(){if(s9)return Vd;s9=1;var e=HB(),a=nf(),l=VB(),i=zM(),c=_B(),u=q0(),d=HM(),h="[object Map]",f="[object Object]",p="[object Promise]",g="[object Set]",x="[object WeakMap]",y="[object DataView]",w=d(e),N=d(a),E=d(l),A=d(i),j=d(c),S=u;return(e&&S(new e(new ArrayBuffer(1)))!=y||a&&S(new a)!=h||l&&S(l.resolve())!=p||i&&S(new i)!=g||c&&S(new c)!=x)&&(S=function(Z){var C=u(Z),H=C==f?Z.constructor:void 0,V=H?d(H):"";if(V)switch(V){case w:return y;case N:return h;case E:return p;case A:return g;case j:return x}return C}),Vd=S,Vd}var _d,l9;function TB(){if(l9)return _d;l9=1;var e=Object.prototype,a=e.hasOwnProperty;function l(i){var c=i.length,u=new i.constructor(c);return c&&typeof i[0]=="string"&&a.call(i,"index")&&(u.index=i.index,u.input=i.input),u}return _d=l,_d}var Td,i9;function BM(){if(i9)return Td;i9=1;var e=$a(),a=e.Uint8Array;return Td=a,Td}var Ld,o9;function hf(){if(o9)return Ld;o9=1;var e=BM();function a(l){var i=new l.constructor(l.byteLength);return new e(i).set(new e(l)),i}return Ld=a,Ld}var Rd,c9;function LB(){if(c9)return Rd;c9=1;var e=hf();function a(l,i){var c=i?e(l.buffer):l.buffer;return new l.constructor(c,l.byteOffset,l.byteLength)}return Rd=a,Rd}var kd,u9;function RB(){if(u9)return kd;u9=1;var e=/\w*$/;function a(l){var i=new l.constructor(l.source,e.exec(l));return i.lastIndex=l.lastIndex,i}return kd=a,kd}var Dd,d9;function kB(){if(d9)return Dd;d9=1;var e=Jr(),a=e?e.prototype:void 0,l=a?a.valueOf:void 0;function i(c){return l?Object(l.call(c)):{}}return Dd=i,Dd}var Od,h9;function $M(){if(h9)return Od;h9=1;var e=hf();function a(l,i){var c=i?e(l.buffer):l.buffer;return new l.constructor(c,l.byteOffset,l.length)}return Od=a,Od}var Fd,m9;function DB(){if(m9)return Fd;m9=1;var e=hf(),a=LB(),l=RB(),i=kB(),c=$M(),u="[object Boolean]",d="[object Date]",h="[object Map]",f="[object Number]",p="[object RegExp]",g="[object Set]",x="[object String]",y="[object Symbol]",w="[object ArrayBuffer]",N="[object DataView]",E="[object Float32Array]",A="[object Float64Array]",j="[object Int8Array]",S="[object Int16Array]",Z="[object Int32Array]",C="[object Uint8Array]",H="[object Uint8ClampedArray]",V="[object Uint16Array]",T="[object Uint32Array]";function k(R,O,U){var X=R.constructor;switch(O){case w:return e(R);case u:case d:return new X(+R);case N:return a(R,U);case E:case A:case j:case S:case Z:case C:case H:case V:case T:return c(R,U);case h:return new X;case f:case x:return new X(R);case p:return l(R);case g:return new X;case y:return i(R)}}return Fd=k,Fd}var qd,f9;function IM(){if(f9)return qd;f9=1;var e=Ca(),a=Object.create,l=(function(){function i(){}return function(c){if(!e(c))return{};if(a)return a(c);i.prototype=c;var u=new i;return i.prototype=void 0,u}})();return qd=l,qd}var zd,p9;function UM(){if(p9)return zd;p9=1;var e=IM(),a=J1(),l=Q1();function i(c){return typeof c.constructor=="function"&&!l(c)?e(a(c)):{}}return zd=i,zd}var Bd,g9;function OB(){if(g9)return Bd;g9=1;var e=es(),a=an(),l="[object Map]";function i(c){return a(c)&&e(c)==l}return Bd=i,Bd}var $d,x9;function FB(){if(x9)return $d;x9=1;var e=OB(),a=X1(),l=of(),i=l&&l.isMap,c=i?a(i):e;return $d=c,$d}var Id,v9;function qB(){if(v9)return Id;v9=1;var e=es(),a=an(),l="[object Set]";function i(c){return a(c)&&e(c)==l}return Id=i,Id}var Ud,b9;function zB(){if(b9)return Ud;b9=1;var e=qB(),a=X1(),l=of(),i=l&&l.isSet,c=i?a(i):e;return Ud=c,Ud}var Pd,y9;function PM(){if(y9)return Pd;y9=1;var e=P1(),a=sf(),l=Y1(),i=jB(),c=MB(),u=LM(),d=RM(),h=SB(),f=ZB(),p=qM(),g=CB(),x=es(),y=TB(),w=DB(),N=UM(),E=wt(),A=Wr(),j=FB(),S=Ca(),Z=zB(),C=u0(),H=B0(),V=1,T=2,k=4,R="[object Arguments]",O="[object Array]",U="[object Boolean]",X="[object Date]",K="[object Error]",$="[object Function]",Y="[object GeneratorFunction]",L="[object Map]",B="[object Number]",Q="[object Object]",he="[object RegExp]",ce="[object Set]",D="[object String]",te="[object Symbol]",re="[object WeakMap]",z="[object ArrayBuffer]",q="[object DataView]",P="[object Float32Array]",oe="[object Float64Array]",fe="[object Int8Array]",ye="[object Int16Array]",Le="[object Int32Array]",Ie="[object Uint8Array]",Ue="[object Uint8ClampedArray]",it="[object Uint16Array]",qe="[object Uint32Array]",ve={};ve[R]=ve[O]=ve[z]=ve[q]=ve[U]=ve[X]=ve[P]=ve[oe]=ve[fe]=ve[ye]=ve[Le]=ve[L]=ve[B]=ve[Q]=ve[he]=ve[ce]=ve[D]=ve[te]=ve[Ie]=ve[Ue]=ve[it]=ve[qe]=!0,ve[K]=ve[$]=ve[re]=!1;function ze(je,ha,se,At,Re,mt){var St,ot=ha&V,Cn=ha&T,I0=ha&k;if(se&&(St=Re?se(je,At,Re,mt):se(je)),St!==void 0)return St;if(!S(je))return je;var jt=E(je);if(jt){if(St=y(je),!ot)return d(je,St)}else{var _t=x(je),Rl=_t==$||_t==Y;if(A(je))return u(je,ot);if(_t==Q||_t==R||Rl&&!Re){if(St=Cn||Rl?{}:N(je),!ot)return Cn?f(je,c(St,je)):h(je,i(St,je))}else{if(!ve[_t])return Re?je:{};St=w(je,_t,ot)}}mt||(mt=new e);var as=mt.get(je);if(as)return as;mt.set(je,St),Z(je)?je.forEach(function(Ut){St.add(ze(Ut,ha,se,Ut,je,mt))}):j(je)&&je.forEach(function(Ut,ct){St.set(ct,ze(Ut,ha,se,ct,je,mt))});var so=I0?Cn?g:p:Cn?H:C,kl=jt?void 0:so(je);return a(kl||je,function(Ut,ct){kl&&(ct=Ut,Ut=je[ct]),l(St,ct,ze(Ut,ha,se,ct,je,mt))}),St}return Pd=ze,Pd}var Gd,w9;function BB(){if(w9)return Gd;w9=1;var e=PM(),a=4;function l(i){return e(i,a)}return Gd=l,Gd}var Yd,A9;function mf(){if(A9)return Yd;A9=1;function e(a){return function(){return a}}return Yd=e,Yd}var Kd,j9;function $B(){if(j9)return Kd;j9=1;function e(a){return function(l,i,c){for(var u=-1,d=Object(l),h=c(l),f=h.length;f--;){var p=h[a?f:++u];if(i(d[p],p,d)===!1)break}return l}}return Kd=e,Kd}var Xd,E9;function ff(){if(E9)return Xd;E9=1;var e=$B(),a=e();return Xd=a,Xd}var Qd,N9;function pf(){if(N9)return Qd;N9=1;var e=ff(),a=u0();function l(i,c){return i&&e(i,c,a)}return Qd=l,Qd}var Jd,M9;function IB(){if(M9)return Jd;M9=1;var e=Sn();function a(l,i){return function(c,u){if(c==null)return c;if(!e(c))return l(c,u);for(var d=c.length,h=i?d:-1,f=Object(c);(i?h--:++h<d)&&u(f[h],h,f)!==!1;);return c}}return Jd=a,Jd}var Wd,S9;function W1(){if(S9)return Wd;S9=1;var e=pf(),a=IB(),l=a(e);return Wd=l,Wd}var e8,Z9;function $0(){if(Z9)return e8;Z9=1;function e(a){return a}return e8=e,e8}var t8,C9;function GM(){if(C9)return t8;C9=1;var e=$0();function a(l){return typeof l=="function"?l:e}return t8=a,t8}var a8,H9;function YM(){if(H9)return a8;H9=1;var e=sf(),a=W1(),l=GM(),i=wt();function c(u,d){var h=i(u)?e:a;return h(u,l(d))}return a8=c,a8}var n8,V9;function KM(){return V9||(V9=1,n8=YM()),n8}var r8,_9;function UB(){if(_9)return r8;_9=1;var e=W1();function a(l,i){var c=[];return e(l,function(u,d,h){i(u,d,h)&&c.push(u)}),c}return r8=a,r8}var s8,T9;function PB(){if(T9)return s8;T9=1;var e="__lodash_hash_undefined__";function a(l){return this.__data__.set(l,e),this}return s8=a,s8}var l8,L9;function GB(){if(L9)return l8;L9=1;function e(a){return this.__data__.has(a)}return l8=e,l8}var i8,R9;function XM(){if(R9)return i8;R9=1;var e=rf(),a=PB(),l=GB();function i(c){var u=-1,d=c==null?0:c.length;for(this.__data__=new e;++u<d;)this.add(c[u])}return i.prototype.add=i.prototype.push=a,i.prototype.has=l,i8=i,i8}var o8,k9;function YB(){if(k9)return o8;k9=1;function e(a,l){for(var i=-1,c=a==null?0:a.length;++i<c;)if(l(a[i],i,a))return!0;return!1}return o8=e,o8}var c8,D9;function QM(){if(D9)return c8;D9=1;function e(a,l){return a.has(l)}return c8=e,c8}var u8,O9;function JM(){if(O9)return u8;O9=1;var e=XM(),a=YB(),l=QM(),i=1,c=2;function u(d,h,f,p,g,x){var y=f&i,w=d.length,N=h.length;if(w!=N&&!(y&&N>w))return!1;var E=x.get(d),A=x.get(h);if(E&&A)return E==h&&A==d;var j=-1,S=!0,Z=f&c?new e:void 0;for(x.set(d,h),x.set(h,d);++j<w;){var C=d[j],H=h[j];if(p)var V=y?p(H,C,j,h,d,x):p(C,H,j,d,h,x);if(V!==void 0){if(V)continue;S=!1;break}if(Z){if(!a(h,function(T,k){if(!l(Z,k)&&(C===T||g(C,T,f,p,x)))return Z.push(k)})){S=!1;break}}else if(!(C===H||g(C,H,f,p,x))){S=!1;break}}return x.delete(d),x.delete(h),S}return u8=u,u8}var d8,F9;function KB(){if(F9)return d8;F9=1;function e(a){var l=-1,i=Array(a.size);return a.forEach(function(c,u){i[++l]=[u,c]}),i}return d8=e,d8}var h8,q9;function gf(){if(q9)return h8;q9=1;function e(a){var l=-1,i=Array(a.size);return a.forEach(function(c){i[++l]=c}),i}return h8=e,h8}var m8,z9;function XB(){if(z9)return m8;z9=1;var e=Jr(),a=BM(),l=Qr(),i=JM(),c=KB(),u=gf(),d=1,h=2,f="[object Boolean]",p="[object Date]",g="[object Error]",x="[object Map]",y="[object Number]",w="[object RegExp]",N="[object Set]",E="[object String]",A="[object Symbol]",j="[object ArrayBuffer]",S="[object DataView]",Z=e?e.prototype:void 0,C=Z?Z.valueOf:void 0;function H(V,T,k,R,O,U,X){switch(k){case S:if(V.byteLength!=T.byteLength||V.byteOffset!=T.byteOffset)return!1;V=V.buffer,T=T.buffer;case j:return!(V.byteLength!=T.byteLength||!U(new a(V),new a(T)));case f:case p:case y:return l(+V,+T);case g:return V.name==T.name&&V.message==T.message;case w:case E:return V==T+"";case x:var K=c;case N:var $=R&d;if(K||(K=u),V.size!=T.size&&!$)return!1;var Y=X.get(V);if(Y)return Y==T;R|=h,X.set(V,T);var L=i(K(V),K(T),R,O,U,X);return X.delete(V),L;case A:if(C)return C.call(V)==C.call(T)}return!1}return m8=H,m8}var f8,B9;function QB(){if(B9)return f8;B9=1;var e=qM(),a=1,l=Object.prototype,i=l.hasOwnProperty;function c(u,d,h,f,p,g){var x=h&a,y=e(u),w=y.length,N=e(d),E=N.length;if(w!=E&&!x)return!1;for(var A=w;A--;){var j=y[A];if(!(x?j in d:i.call(d,j)))return!1}var S=g.get(u),Z=g.get(d);if(S&&Z)return S==d&&Z==u;var C=!0;g.set(u,d),g.set(d,u);for(var H=x;++A<w;){j=y[A];var V=u[j],T=d[j];if(f)var k=x?f(T,V,j,d,u,g):f(V,T,j,u,d,g);if(!(k===void 0?V===T||p(V,T,h,f,g):k)){C=!1;break}H||(H=j=="constructor")}if(C&&!H){var R=u.constructor,O=d.constructor;R!=O&&"constructor"in u&&"constructor"in d&&!(typeof R=="function"&&R instanceof R&&typeof O=="function"&&O instanceof O)&&(C=!1)}return g.delete(u),g.delete(d),C}return f8=c,f8}var p8,$9;function JB(){if($9)return p8;$9=1;var e=P1(),a=JM(),l=XB(),i=QB(),c=es(),u=wt(),d=Wr(),h=Tl(),f=1,p="[object Arguments]",g="[object Array]",x="[object Object]",y=Object.prototype,w=y.hasOwnProperty;function N(E,A,j,S,Z,C){var H=u(E),V=u(A),T=H?g:c(E),k=V?g:c(A);T=T==p?x:T,k=k==p?x:k;var R=T==x,O=k==x,U=T==k;if(U&&d(E)){if(!d(A))return!1;H=!0,R=!1}if(U&&!R)return C||(C=new e),H||h(E)?a(E,A,j,S,Z,C):l(E,A,T,j,S,Z,C);if(!(j&f)){var X=R&&w.call(E,"__wrapped__"),K=O&&w.call(A,"__wrapped__");if(X||K){var $=X?E.value():E,Y=K?A.value():A;return C||(C=new e),Z($,Y,j,S,C)}}return U?(C||(C=new e),i(E,A,j,S,Z,C)):!1}return p8=N,p8}var g8,I9;function WM(){if(I9)return g8;I9=1;var e=JB(),a=an();function l(i,c,u,d,h){return i===c?!0:i==null||c==null||!a(i)&&!a(c)?i!==i&&c!==c:e(i,c,u,d,l,h)}return g8=l,g8}var x8,U9;function WB(){if(U9)return x8;U9=1;var e=P1(),a=WM(),l=1,i=2;function c(u,d,h,f){var p=h.length,g=p,x=!f;if(u==null)return!g;for(u=Object(u);p--;){var y=h[p];if(x&&y[2]?y[1]!==u[y[0]]:!(y[0]in u))return!1}for(;++p<g;){y=h[p];var w=y[0],N=u[w],E=y[1];if(x&&y[2]){if(N===void 0&&!(w in u))return!1}else{var A=new e;if(f)var j=f(N,E,w,u,d,A);if(!(j===void 0?a(E,N,l|i,f,A):j))return!1}}return!0}return x8=c,x8}var v8,P9;function eS(){if(P9)return v8;P9=1;var e=Ca();function a(l){return l===l&&!e(l)}return v8=a,v8}var b8,G9;function e$(){if(G9)return b8;G9=1;var e=eS(),a=u0();function l(i){for(var c=a(i),u=c.length;u--;){var d=c[u],h=i[d];c[u]=[d,h,e(h)]}return c}return b8=l,b8}var y8,Y9;function tS(){if(Y9)return y8;Y9=1;function e(a,l){return function(i){return i==null?!1:i[a]===l&&(l!==void 0||a in Object(i))}}return y8=e,y8}var w8,K9;function t$(){if(K9)return w8;K9=1;var e=WB(),a=e$(),l=tS();function i(c){var u=a(c);return u.length==1&&u[0][2]?l(u[0][0],u[0][1]):function(d){return d===c||e(d,c,u)}}return w8=i,w8}var A8,X9;function ts(){if(X9)return A8;X9=1;var e=q0(),a=an(),l="[object Symbol]";function i(c){return typeof c=="symbol"||a(c)&&e(c)==l}return A8=i,A8}var j8,Q9;function xf(){if(Q9)return j8;Q9=1;var e=wt(),a=ts(),l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function c(u,d){if(e(u))return!1;var h=typeof u;return h=="number"||h=="symbol"||h=="boolean"||u==null||a(u)?!0:i.test(u)||!l.test(u)||d!=null&&u in Object(d)}return j8=c,j8}var E8,J9;function a$(){if(J9)return E8;J9=1;var e=rf(),a="Expected a function";function l(i,c){if(typeof i!="function"||c!=null&&typeof c!="function")throw new TypeError(a);var u=function(){var d=arguments,h=c?c.apply(this,d):d[0],f=u.cache;if(f.has(h))return f.get(h);var p=i.apply(this,d);return u.cache=f.set(h,p)||f,p};return u.cache=new(l.Cache||e),u}return l.Cache=e,E8=l,E8}var N8,W9;function n$(){if(W9)return N8;W9=1;var e=a$(),a=500;function l(i){var c=e(i,function(d){return u.size===a&&u.clear(),d}),u=c.cache;return c}return N8=l,N8}var M8,eb;function r$(){if(eb)return M8;eb=1;var e=n$(),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,i=e(function(c){var u=[];return c.charCodeAt(0)===46&&u.push(""),c.replace(a,function(d,h,f,p){u.push(f?p.replace(l,"$1"):h||d)}),u});return M8=i,M8}var S8,tb;function eo(){if(tb)return S8;tb=1;function e(a,l){for(var i=-1,c=a==null?0:a.length,u=Array(c);++i<c;)u[i]=l(a[i],i,a);return u}return S8=e,S8}var Z8,ab;function s$(){if(ab)return Z8;ab=1;var e=Jr(),a=eo(),l=wt(),i=ts(),c=e?e.prototype:void 0,u=c?c.toString:void 0;function d(h){if(typeof h=="string")return h;if(l(h))return a(h,d)+"";if(i(h))return u?u.call(h):"";var f=h+"";return f=="0"&&1/h==-1/0?"-0":f}return Z8=d,Z8}var C8,nb;function aS(){if(nb)return C8;nb=1;var e=s$();function a(l){return l==null?"":e(l)}return C8=a,C8}var H8,rb;function to(){if(rb)return H8;rb=1;var e=wt(),a=xf(),l=r$(),i=aS();function c(u,d){return e(u)?u:a(u,d)?[u]:l(i(u))}return H8=c,H8}var V8,sb;function Ll(){if(sb)return V8;sb=1;var e=ts();function a(l){if(typeof l=="string"||e(l))return l;var i=l+"";return i=="0"&&1/l==-1/0?"-0":i}return V8=a,V8}var _8,lb;function ao(){if(lb)return _8;lb=1;var e=to(),a=Ll();function l(i,c){c=e(c,i);for(var u=0,d=c.length;i!=null&&u<d;)i=i[a(c[u++])];return u&&u==d?i:void 0}return _8=l,_8}var T8,ib;function l$(){if(ib)return T8;ib=1;var e=ao();function a(l,i,c){var u=l==null?void 0:e(l,i);return u===void 0?c:u}return T8=a,T8}var L8,ob;function i$(){if(ob)return L8;ob=1;function e(a,l){return a!=null&&l in Object(a)}return L8=e,L8}var R8,cb;function nS(){if(cb)return R8;cb=1;var e=to(),a=_l(),l=wt(),i=K1(),c=lf(),u=Ll();function d(h,f,p){f=e(f,h);for(var g=-1,x=f.length,y=!1;++g<x;){var w=u(f[g]);if(!(y=h!=null&&p(h,w)))break;h=h[w]}return y||++g!=x?y:(x=h==null?0:h.length,!!x&&c(x)&&i(w,x)&&(l(h)||a(h)))}return R8=d,R8}var k8,ub;function rS(){if(ub)return k8;ub=1;var e=i$(),a=nS();function l(i,c){return i!=null&&a(i,c,e)}return k8=l,k8}var D8,db;function o$(){if(db)return D8;db=1;var e=WM(),a=l$(),l=rS(),i=xf(),c=eS(),u=tS(),d=Ll(),h=1,f=2;function p(g,x){return i(g)&&c(x)?u(d(g),x):function(y){var w=a(y,g);return w===void 0&&w===x?l(y,g):e(x,w,h|f)}}return D8=p,D8}var O8,hb;function sS(){if(hb)return O8;hb=1;function e(a){return function(l){return l==null?void 0:l[a]}}return O8=e,O8}var F8,mb;function c$(){if(mb)return F8;mb=1;var e=ao();function a(l){return function(i){return e(i,l)}}return F8=a,F8}var q8,fb;function u$(){if(fb)return q8;fb=1;var e=sS(),a=c$(),l=xf(),i=Ll();function c(u){return l(u)?e(i(u)):a(u)}return q8=c,q8}var z8,pb;function Zn(){if(pb)return z8;pb=1;var e=t$(),a=o$(),l=$0(),i=wt(),c=u$();function u(d){return typeof d=="function"?d:d==null?l:typeof d=="object"?i(d)?a(d[0],d[1]):e(d):c(d)}return z8=u,z8}var B8,gb;function lS(){if(gb)return B8;gb=1;var e=kM(),a=UB(),l=Zn(),i=wt();function c(u,d){var h=i(u)?e:a;return h(u,l(d,3))}return B8=c,B8}var $8,xb;function d$(){if(xb)return $8;xb=1;var e=Object.prototype,a=e.hasOwnProperty;function l(i,c){return i!=null&&a.call(i,c)}return $8=l,$8}var I8,vb;function iS(){if(vb)return I8;vb=1;var e=d$(),a=nS();function l(i,c){return i!=null&&a(i,c,e)}return I8=l,I8}var U8,bb;function h$(){if(bb)return U8;bb=1;var e=cf(),a=es(),l=_l(),i=wt(),c=Sn(),u=Wr(),d=Q1(),h=Tl(),f="[object Map]",p="[object Set]",g=Object.prototype,x=g.hasOwnProperty;function y(w){if(w==null)return!0;if(c(w)&&(i(w)||typeof w=="string"||typeof w.splice=="function"||u(w)||h(w)||l(w)))return!w.length;var N=a(w);if(N==f||N==p)return!w.size;if(d(w))return!e(w).length;for(var E in w)if(x.call(w,E))return!1;return!0}return U8=y,U8}var P8,yb;function oS(){if(yb)return P8;yb=1;function e(a){return a===void 0}return P8=e,P8}var G8,wb;function cS(){if(wb)return G8;wb=1;var e=W1(),a=Sn();function l(i,c){var u=-1,d=a(i)?Array(i.length):[];return e(i,function(h,f,p){d[++u]=c(h,f,p)}),d}return G8=l,G8}var Y8,Ab;function uS(){if(Ab)return Y8;Ab=1;var e=eo(),a=Zn(),l=cS(),i=wt();function c(u,d){var h=i(u)?e:l;return h(u,a(d,3))}return Y8=c,Y8}var K8,jb;function m$(){if(jb)return K8;jb=1;function e(a,l,i,c){var u=-1,d=a==null?0:a.length;for(c&&d&&(i=a[++u]);++u<d;)i=l(i,a[u],u,a);return i}return K8=e,K8}var X8,Eb;function f$(){if(Eb)return X8;Eb=1;function e(a,l,i,c,u){return u(a,function(d,h,f){i=c?(c=!1,d):l(i,d,h,f)}),i}return X8=e,X8}var Q8,Nb;function dS(){if(Nb)return Q8;Nb=1;var e=m$(),a=W1(),l=Zn(),i=f$(),c=wt();function u(d,h,f){var p=c(d)?e:i,g=arguments.length<3;return p(d,l(h,4),f,g,a)}return Q8=u,Q8}var J8,Mb;function p$(){if(Mb)return J8;Mb=1;var e=q0(),a=wt(),l=an(),i="[object String]";function c(u){return typeof u=="string"||!a(u)&&l(u)&&e(u)==i}return J8=c,J8}var W8,Sb;function g$(){if(Sb)return W8;Sb=1;var e=sS(),a=e("length");return W8=a,W8}var e4,Zb;function x$(){if(Zb)return e4;Zb=1;var e="\\ud800-\\udfff",a="\\u0300-\\u036f",l="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",c=a+l+i,u="\\ufe0e\\ufe0f",d="\\u200d",h=RegExp("["+d+e+c+u+"]");function f(p){return h.test(p)}return e4=f,e4}var t4,Cb;function v$(){if(Cb)return t4;Cb=1;var e="\\ud800-\\udfff",a="\\u0300-\\u036f",l="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",c=a+l+i,u="\\ufe0e\\ufe0f",d="["+e+"]",h="["+c+"]",f="\\ud83c[\\udffb-\\udfff]",p="(?:"+h+"|"+f+")",g="[^"+e+"]",x="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",w="\\u200d",N=p+"?",E="["+u+"]?",A="(?:"+w+"(?:"+[g,x,y].join("|")+")"+E+N+")*",j=E+N+A,S="(?:"+[g+h+"?",h,x,y,d].join("|")+")",Z=RegExp(f+"(?="+f+")|"+S+j,"g");function C(H){for(var V=Z.lastIndex=0;Z.test(H);)++V;return V}return t4=C,t4}var a4,Hb;function b$(){if(Hb)return a4;Hb=1;var e=g$(),a=x$(),l=v$();function i(c){return a(c)?l(c):e(c)}return a4=i,a4}var n4,Vb;function y$(){if(Vb)return n4;Vb=1;var e=cf(),a=es(),l=Sn(),i=p$(),c=b$(),u="[object Map]",d="[object Set]";function h(f){if(f==null)return 0;if(l(f))return i(f)?c(f):f.length;var p=a(f);return p==u||p==d?f.size:e(f).length}return n4=h,n4}var r4,_b;function w$(){if(_b)return r4;_b=1;var e=sf(),a=IM(),l=pf(),i=Zn(),c=J1(),u=wt(),d=Wr(),h=Hl(),f=Ca(),p=Tl();function g(x,y,w){var N=u(x),E=N||d(x)||p(x);if(y=i(y,4),w==null){var A=x&&x.constructor;E?w=N?new A:[]:f(x)?w=h(A)?a(c(x)):{}:w={}}return(E?e:l)(x,function(j,S,Z){return y(w,j,S,Z)}),w}return r4=g,r4}var s4,Tb;function A$(){if(Tb)return s4;Tb=1;var e=Jr(),a=_l(),l=wt(),i=e?e.isConcatSpreadable:void 0;function c(u){return l(u)||a(u)||!!(i&&u&&u[i])}return s4=c,s4}var l4,Lb;function vf(){if(Lb)return l4;Lb=1;var e=df(),a=A$();function l(i,c,u,d,h){var f=-1,p=i.length;for(u||(u=a),h||(h=[]);++f<p;){var g=i[f];c>0&&u(g)?c>1?l(g,c-1,u,d,h):e(h,g):d||(h[h.length]=g)}return h}return l4=l,l4}var i4,Rb;function j$(){if(Rb)return i4;Rb=1;function e(a,l,i){switch(i.length){case 0:return a.call(l);case 1:return a.call(l,i[0]);case 2:return a.call(l,i[0],i[1]);case 3:return a.call(l,i[0],i[1],i[2])}return a.apply(l,i)}return i4=e,i4}var o4,kb;function hS(){if(kb)return o4;kb=1;var e=j$(),a=Math.max;function l(i,c,u){return c=a(c===void 0?i.length-1:c,0),function(){for(var d=arguments,h=-1,f=a(d.length-c,0),p=Array(f);++h<f;)p[h]=d[c+h];h=-1;for(var g=Array(c+1);++h<c;)g[h]=d[h];return g[c]=u(p),e(i,this,g)}}return o4=l,o4}var c4,Db;function E$(){if(Db)return c4;Db=1;var e=mf(),a=VM(),l=$0(),i=a?function(c,u){return a(c,"toString",{configurable:!0,enumerable:!1,value:e(u),writable:!0})}:l;return c4=i,c4}var u4,Ob;function N$(){if(Ob)return u4;Ob=1;var e=800,a=16,l=Date.now;function i(c){var u=0,d=0;return function(){var h=l(),f=a-(h-d);if(d=h,f>0){if(++u>=e)return arguments[0]}else u=0;return c.apply(void 0,arguments)}}return u4=i,u4}var d4,Fb;function mS(){if(Fb)return d4;Fb=1;var e=E$(),a=N$(),l=a(e);return d4=l,d4}var h4,qb;function no(){if(qb)return h4;qb=1;var e=$0(),a=hS(),l=mS();function i(c,u){return l(a(c,u,e),c+"")}return h4=i,h4}var m4,zb;function fS(){if(zb)return m4;zb=1;function e(a,l,i,c){for(var u=a.length,d=i+(c?1:-1);c?d--:++d<u;)if(l(a[d],d,a))return d;return-1}return m4=e,m4}var f4,Bb;function M$(){if(Bb)return f4;Bb=1;function e(a){return a!==a}return f4=e,f4}var p4,$b;function S$(){if($b)return p4;$b=1;function e(a,l,i){for(var c=i-1,u=a.length;++c<u;)if(a[c]===l)return c;return-1}return p4=e,p4}var g4,Ib;function Z$(){if(Ib)return g4;Ib=1;var e=fS(),a=M$(),l=S$();function i(c,u,d){return u===u?l(c,u,d):e(c,a,d)}return g4=i,g4}var x4,Ub;function C$(){if(Ub)return x4;Ub=1;var e=Z$();function a(l,i){var c=l==null?0:l.length;return!!c&&e(l,i,0)>-1}return x4=a,x4}var v4,Pb;function H$(){if(Pb)return v4;Pb=1;function e(a,l,i){for(var c=-1,u=a==null?0:a.length;++c<u;)if(i(l,a[c]))return!0;return!1}return v4=e,v4}var b4,Gb;function V$(){if(Gb)return b4;Gb=1;function e(){}return b4=e,b4}var y4,Yb;function _$(){if(Yb)return y4;Yb=1;var e=zM(),a=V$(),l=gf(),i=1/0,c=e&&1/l(new e([,-0]))[1]==i?function(u){return new e(u)}:a;return y4=c,y4}var w4,Kb;function T$(){if(Kb)return w4;Kb=1;var e=XM(),a=C$(),l=H$(),i=QM(),c=_$(),u=gf(),d=200;function h(f,p,g){var x=-1,y=a,w=f.length,N=!0,E=[],A=E;if(g)N=!1,y=l;else if(w>=d){var j=p?null:c(f);if(j)return u(j);N=!1,y=i,A=new e}else A=p?[]:E;e:for(;++x<w;){var S=f[x],Z=p?p(S):S;if(S=g||S!==0?S:0,N&&Z===Z){for(var C=A.length;C--;)if(A[C]===Z)continue e;p&&A.push(Z),E.push(S)}else y(A,Z,g)||(A!==E&&A.push(Z),E.push(S))}return E}return w4=h,w4}var A4,Xb;function pS(){if(Xb)return A4;Xb=1;var e=Sn(),a=an();function l(i){return a(i)&&e(i)}return A4=l,A4}var j4,Qb;function L$(){if(Qb)return j4;Qb=1;var e=vf(),a=no(),l=T$(),i=pS(),c=a(function(u){return l(e(u,1,i,!0))});return j4=c,j4}var E4,Jb;function R$(){if(Jb)return E4;Jb=1;var e=eo();function a(l,i){return e(i,function(c){return l[c]})}return E4=a,E4}var N4,Wb;function gS(){if(Wb)return N4;Wb=1;var e=R$(),a=u0();function l(i){return i==null?[]:e(i,a(i))}return N4=l,N4}var M4,ey;function Ha(){if(ey)return M4;ey=1;var e;if(typeof af=="function")try{e={clone:BB(),constant:mf(),each:KM(),filter:lS(),has:iS(),isArray:wt(),isEmpty:h$(),isFunction:Hl(),isUndefined:oS(),keys:u0(),map:uS(),reduce:dS(),size:y$(),transform:w$(),union:L$(),values:gS()}}catch{}return e||(e=window._),M4=e,M4}var S4,ty;function bf(){if(ty)return S4;ty=1;var e=Ha();S4=c;var a="\0",l="\0",i="";function c(g){this._isDirected=e.has(g,"directed")?g.directed:!0,this._isMultigraph=e.has(g,"multigraph")?g.multigraph:!1,this._isCompound=e.has(g,"compound")?g.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[l]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}c.prototype._nodeCount=0,c.prototype._edgeCount=0,c.prototype.isDirected=function(){return this._isDirected},c.prototype.isMultigraph=function(){return this._isMultigraph},c.prototype.isCompound=function(){return this._isCompound},c.prototype.setGraph=function(g){return this._label=g,this},c.prototype.graph=function(){return this._label},c.prototype.setDefaultNodeLabel=function(g){return e.isFunction(g)||(g=e.constant(g)),this._defaultNodeLabelFn=g,this},c.prototype.nodeCount=function(){return this._nodeCount},c.prototype.nodes=function(){return e.keys(this._nodes)},c.prototype.sources=function(){var g=this;return e.filter(this.nodes(),function(x){return e.isEmpty(g._in[x])})},c.prototype.sinks=function(){var g=this;return e.filter(this.nodes(),function(x){return e.isEmpty(g._out[x])})},c.prototype.setNodes=function(g,x){var y=arguments,w=this;return e.each(g,function(N){y.length>1?w.setNode(N,x):w.setNode(N)}),this},c.prototype.setNode=function(g,x){return e.has(this._nodes,g)?(arguments.length>1&&(this._nodes[g]=x),this):(this._nodes[g]=arguments.length>1?x:this._defaultNodeLabelFn(g),this._isCompound&&(this._parent[g]=l,this._children[g]={},this._children[l][g]=!0),this._in[g]={},this._preds[g]={},this._out[g]={},this._sucs[g]={},++this._nodeCount,this)},c.prototype.node=function(g){return this._nodes[g]},c.prototype.hasNode=function(g){return e.has(this._nodes,g)},c.prototype.removeNode=function(g){var x=this;if(e.has(this._nodes,g)){var y=function(w){x.removeEdge(x._edgeObjs[w])};delete this._nodes[g],this._isCompound&&(this._removeFromParentsChildList(g),delete this._parent[g],e.each(this.children(g),function(w){x.setParent(w)}),delete this._children[g]),e.each(e.keys(this._in[g]),y),delete this._in[g],delete this._preds[g],e.each(e.keys(this._out[g]),y),delete this._out[g],delete this._sucs[g],--this._nodeCount}return this},c.prototype.setParent=function(g,x){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(x))x=l;else{x+="";for(var y=x;!e.isUndefined(y);y=this.parent(y))if(y===g)throw new Error("Setting "+x+" as parent of "+g+" would create a cycle");this.setNode(x)}return this.setNode(g),this._removeFromParentsChildList(g),this._parent[g]=x,this._children[x][g]=!0,this},c.prototype._removeFromParentsChildList=function(g){delete this._children[this._parent[g]][g]},c.prototype.parent=function(g){if(this._isCompound){var x=this._parent[g];if(x!==l)return x}},c.prototype.children=function(g){if(e.isUndefined(g)&&(g=l),this._isCompound){var x=this._children[g];if(x)return e.keys(x)}else{if(g===l)return this.nodes();if(this.hasNode(g))return[]}},c.prototype.predecessors=function(g){var x=this._preds[g];if(x)return e.keys(x)},c.prototype.successors=function(g){var x=this._sucs[g];if(x)return e.keys(x)},c.prototype.neighbors=function(g){var x=this.predecessors(g);if(x)return e.union(x,this.successors(g))},c.prototype.isLeaf=function(g){var x;return this.isDirected()?x=this.successors(g):x=this.neighbors(g),x.length===0},c.prototype.filterNodes=function(g){var x=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});x.setGraph(this.graph());var y=this;e.each(this._nodes,function(E,A){g(A)&&x.setNode(A,E)}),e.each(this._edgeObjs,function(E){x.hasNode(E.v)&&x.hasNode(E.w)&&x.setEdge(E,y.edge(E))});var w={};function N(E){var A=y.parent(E);return A===void 0||x.hasNode(A)?(w[E]=A,A):A in w?w[A]:N(A)}return this._isCompound&&e.each(x.nodes(),function(E){x.setParent(E,N(E))}),x},c.prototype.setDefaultEdgeLabel=function(g){return e.isFunction(g)||(g=e.constant(g)),this._defaultEdgeLabelFn=g,this},c.prototype.edgeCount=function(){return this._edgeCount},c.prototype.edges=function(){return e.values(this._edgeObjs)},c.prototype.setPath=function(g,x){var y=this,w=arguments;return e.reduce(g,function(N,E){return w.length>1?y.setEdge(N,E,x):y.setEdge(N,E),E}),this},c.prototype.setEdge=function(){var g,x,y,w,N=!1,E=arguments[0];typeof E=="object"&&E!==null&&"v"in E?(g=E.v,x=E.w,y=E.name,arguments.length===2&&(w=arguments[1],N=!0)):(g=E,x=arguments[1],y=arguments[3],arguments.length>2&&(w=arguments[2],N=!0)),g=""+g,x=""+x,e.isUndefined(y)||(y=""+y);var A=h(this._isDirected,g,x,y);if(e.has(this._edgeLabels,A))return N&&(this._edgeLabels[A]=w),this;if(!e.isUndefined(y)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(g),this.setNode(x),this._edgeLabels[A]=N?w:this._defaultEdgeLabelFn(g,x,y);var j=f(this._isDirected,g,x,y);return g=j.v,x=j.w,Object.freeze(j),this._edgeObjs[A]=j,u(this._preds[x],g),u(this._sucs[g],x),this._in[x][A]=j,this._out[g][A]=j,this._edgeCount++,this},c.prototype.edge=function(g,x,y){var w=arguments.length===1?p(this._isDirected,arguments[0]):h(this._isDirected,g,x,y);return this._edgeLabels[w]},c.prototype.hasEdge=function(g,x,y){var w=arguments.length===1?p(this._isDirected,arguments[0]):h(this._isDirected,g,x,y);return e.has(this._edgeLabels,w)},c.prototype.removeEdge=function(g,x,y){var w=arguments.length===1?p(this._isDirected,arguments[0]):h(this._isDirected,g,x,y),N=this._edgeObjs[w];return N&&(g=N.v,x=N.w,delete this._edgeLabels[w],delete this._edgeObjs[w],d(this._preds[x],g),d(this._sucs[g],x),delete this._in[x][w],delete this._out[g][w],this._edgeCount--),this},c.prototype.inEdges=function(g,x){var y=this._in[g];if(y){var w=e.values(y);return x?e.filter(w,function(N){return N.v===x}):w}},c.prototype.outEdges=function(g,x){var y=this._out[g];if(y){var w=e.values(y);return x?e.filter(w,function(N){return N.w===x}):w}},c.prototype.nodeEdges=function(g,x){var y=this.inEdges(g,x);if(y)return y.concat(this.outEdges(g,x))};function u(g,x){g[x]?g[x]++:g[x]=1}function d(g,x){--g[x]||delete g[x]}function h(g,x,y,w){var N=""+x,E=""+y;if(!g&&N>E){var A=N;N=E,E=A}return N+i+E+i+(e.isUndefined(w)?a:w)}function f(g,x,y,w){var N=""+x,E=""+y;if(!g&&N>E){var A=N;N=E,E=A}var j={v:N,w:E};return w&&(j.name=w),j}function p(g,x){return h(g,x.v,x.w,x.name)}return S4}var Z4,ay;function k$(){return ay||(ay=1,Z4="2.1.8"),Z4}var C4,ny;function D$(){return ny||(ny=1,C4={Graph:bf(),version:k$()}),C4}var H4,ry;function O$(){if(ry)return H4;ry=1;var e=Ha(),a=bf();H4={write:l,read:u};function l(d){var h={options:{directed:d.isDirected(),multigraph:d.isMultigraph(),compound:d.isCompound()},nodes:i(d),edges:c(d)};return e.isUndefined(d.graph())||(h.value=e.clone(d.graph())),h}function i(d){return e.map(d.nodes(),function(h){var f=d.node(h),p=d.parent(h),g={v:h};return e.isUndefined(f)||(g.value=f),e.isUndefined(p)||(g.parent=p),g})}function c(d){return e.map(d.edges(),function(h){var f=d.edge(h),p={v:h.v,w:h.w};return e.isUndefined(h.name)||(p.name=h.name),e.isUndefined(f)||(p.value=f),p})}function u(d){var h=new a(d.options).setGraph(d.value);return e.each(d.nodes,function(f){h.setNode(f.v,f.value),f.parent&&h.setParent(f.v,f.parent)}),e.each(d.edges,function(f){h.setEdge({v:f.v,w:f.w,name:f.name},f.value)}),h}return H4}var V4,sy;function F$(){if(sy)return V4;sy=1;var e=Ha();V4=a;function a(l){var i={},c=[],u;function d(h){e.has(i,h)||(i[h]=!0,u.push(h),e.each(l.successors(h),d),e.each(l.predecessors(h),d))}return e.each(l.nodes(),function(h){u=[],d(h),u.length&&c.push(u)}),c}return V4}var _4,ly;function xS(){if(ly)return _4;ly=1;var e=Ha();_4=a;function a(){this._arr=[],this._keyIndices={}}return a.prototype.size=function(){return this._arr.length},a.prototype.keys=function(){return this._arr.map(function(l){return l.key})},a.prototype.has=function(l){return e.has(this._keyIndices,l)},a.prototype.priority=function(l){var i=this._keyIndices[l];if(i!==void 0)return this._arr[i].priority},a.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},a.prototype.add=function(l,i){var c=this._keyIndices;if(l=String(l),!e.has(c,l)){var u=this._arr,d=u.length;return c[l]=d,u.push({key:l,priority:i}),this._decrease(d),!0}return!1},a.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var l=this._arr.pop();return delete this._keyIndices[l.key],this._heapify(0),l.key},a.prototype.decrease=function(l,i){var c=this._keyIndices[l];if(i>this._arr[c].priority)throw new Error("New priority is greater than current priority. Key: "+l+" Old: "+this._arr[c].priority+" New: "+i);this._arr[c].priority=i,this._decrease(c)},a.prototype._heapify=function(l){var i=this._arr,c=2*l,u=c+1,d=l;c<i.length&&(d=i[c].priority<i[d].priority?c:d,u<i.length&&(d=i[u].priority<i[d].priority?u:d),d!==l&&(this._swap(l,d),this._heapify(d)))},a.prototype._decrease=function(l){for(var i=this._arr,c=i[l].priority,u;l!==0&&(u=l>>1,!(i[u].priority<c));)this._swap(l,u),l=u},a.prototype._swap=function(l,i){var c=this._arr,u=this._keyIndices,d=c[l],h=c[i];c[l]=h,c[i]=d,u[h.key]=l,u[d.key]=i},_4}var T4,iy;function vS(){if(iy)return T4;iy=1;var e=Ha(),a=xS();T4=i;var l=e.constant(1);function i(u,d,h,f){return c(u,String(d),h||l,f||function(p){return u.outEdges(p)})}function c(u,d,h,f){var p={},g=new a,x,y,w=function(N){var E=N.v!==x?N.v:N.w,A=p[E],j=h(N),S=y.distance+j;if(j<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+N+" Weight: "+j);S<A.distance&&(A.distance=S,A.predecessor=x,g.decrease(E,S))};for(u.nodes().forEach(function(N){var E=N===d?0:Number.POSITIVE_INFINITY;p[N]={distance:E},g.add(N,E)});g.size()>0&&(x=g.removeMin(),y=p[x],y.distance!==Number.POSITIVE_INFINITY);)f(x).forEach(w);return p}return T4}var L4,oy;function q$(){if(oy)return L4;oy=1;var e=vS(),a=Ha();L4=l;function l(i,c,u){return a.transform(i.nodes(),function(d,h){d[h]=e(i,h,c,u)},{})}return L4}var R4,cy;function bS(){if(cy)return R4;cy=1;var e=Ha();R4=a;function a(l){var i=0,c=[],u={},d=[];function h(f){var p=u[f]={onStack:!0,lowlink:i,index:i++};if(c.push(f),l.successors(f).forEach(function(y){e.has(u,y)?u[y].onStack&&(p.lowlink=Math.min(p.lowlink,u[y].index)):(h(y),p.lowlink=Math.min(p.lowlink,u[y].lowlink))}),p.lowlink===p.index){var g=[],x;do x=c.pop(),u[x].onStack=!1,g.push(x);while(f!==x);d.push(g)}}return l.nodes().forEach(function(f){e.has(u,f)||h(f)}),d}return R4}var k4,uy;function z$(){if(uy)return k4;uy=1;var e=Ha(),a=bS();k4=l;function l(i){return e.filter(a(i),function(c){return c.length>1||c.length===1&&i.hasEdge(c[0],c[0])})}return k4}var D4,dy;function B$(){if(dy)return D4;dy=1;var e=Ha();D4=l;var a=e.constant(1);function l(c,u,d){return i(c,u||a,d||function(h){return c.outEdges(h)})}function i(c,u,d){var h={},f=c.nodes();return f.forEach(function(p){h[p]={},h[p][p]={distance:0},f.forEach(function(g){p!==g&&(h[p][g]={distance:Number.POSITIVE_INFINITY})}),d(p).forEach(function(g){var x=g.v===p?g.w:g.v,y=u(g);h[p][x]={distance:y,predecessor:p}})}),f.forEach(function(p){var g=h[p];f.forEach(function(x){var y=h[x];f.forEach(function(w){var N=y[p],E=g[w],A=y[w],j=N.distance+E.distance;j<A.distance&&(A.distance=j,A.predecessor=E.predecessor)})})}),h}return D4}var O4,hy;function yS(){if(hy)return O4;hy=1;var e=Ha();O4=a,a.CycleException=l;function a(i){var c={},u={},d=[];function h(f){if(e.has(u,f))throw new l;e.has(c,f)||(u[f]=!0,c[f]=!0,e.each(i.predecessors(f),h),delete u[f],d.push(f))}if(e.each(i.sinks(),h),e.size(c)!==i.nodeCount())throw new l;return d}function l(){}return l.prototype=new Error,O4}var F4,my;function $$(){if(my)return F4;my=1;var e=yS();F4=a;function a(l){try{e(l)}catch(i){if(i instanceof e.CycleException)return!1;throw i}return!0}return F4}var q4,fy;function wS(){if(fy)return q4;fy=1;var e=Ha();q4=a;function a(i,c,u){e.isArray(c)||(c=[c]);var d=(i.isDirected()?i.successors:i.neighbors).bind(i),h=[],f={};return e.each(c,function(p){if(!i.hasNode(p))throw new Error("Graph does not have node: "+p);l(i,p,u==="post",f,d,h)}),h}function l(i,c,u,d,h,f){e.has(d,c)||(d[c]=!0,u||f.push(c),e.each(h(c),function(p){l(i,p,u,d,h,f)}),u&&f.push(c))}return q4}var z4,py;function I$(){if(py)return z4;py=1;var e=wS();z4=a;function a(l,i){return e(l,i,"post")}return z4}var B4,gy;function U$(){if(gy)return B4;gy=1;var e=wS();B4=a;function a(l,i){return e(l,i,"pre")}return B4}var $4,xy;function P$(){if(xy)return $4;xy=1;var e=Ha(),a=bf(),l=xS();$4=i;function i(c,u){var d=new a,h={},f=new l,p;function g(y){var w=y.v===p?y.w:y.v,N=f.priority(w);if(N!==void 0){var E=u(y);E<N&&(h[w]=p,f.decrease(w,E))}}if(c.nodeCount()===0)return d;e.each(c.nodes(),function(y){f.add(y,Number.POSITIVE_INFINITY),d.setNode(y)}),f.decrease(c.nodes()[0],0);for(var x=!1;f.size()>0;){if(p=f.removeMin(),e.has(h,p))d.setEdge(p,h[p]);else{if(x)throw new Error("Input graph is not connected: "+c);x=!0}c.nodeEdges(p).forEach(g)}return d}return $4}var I4,vy;function G$(){return vy||(vy=1,I4={components:F$(),dijkstra:vS(),dijkstraAll:q$(),findCycles:z$(),floydWarshall:B$(),isAcyclic:$$(),postorder:I$(),preorder:U$(),prim:P$(),tarjan:bS(),topsort:yS()}),I4}var U4,by;function Y$(){if(by)return U4;by=1;var e=D$();return U4={Graph:e.Graph,json:O$(),alg:G$(),version:e.version},U4}var P4,yy;function qa(){if(yy)return P4;yy=1;var e;if(typeof af=="function")try{e=Y$()}catch{}return e||(e=window.graphlib),P4=e,P4}var G4,wy;function K$(){if(wy)return G4;wy=1;var e=PM(),a=1,l=4;function i(c){return e(c,a|l)}return G4=i,G4}var Y4,Ay;function ro(){if(Ay)return Y4;Ay=1;var e=Qr(),a=Sn(),l=K1(),i=Ca();function c(u,d,h){if(!i(h))return!1;var f=typeof d;return(f=="number"?a(h)&&l(d,h.length):f=="string"&&d in h)?e(h[d],u):!1}return Y4=c,Y4}var K4,jy;function X$(){if(jy)return K4;jy=1;var e=no(),a=Qr(),l=ro(),i=B0(),c=Object.prototype,u=c.hasOwnProperty,d=e(function(h,f){h=Object(h);var p=-1,g=f.length,x=g>2?f[2]:void 0;for(x&&l(f[0],f[1],x)&&(g=1);++p<g;)for(var y=f[p],w=i(y),N=-1,E=w.length;++N<E;){var A=w[N],j=h[A];(j===void 0||a(j,c[A])&&!u.call(h,A))&&(h[A]=y[A])}return h});return K4=d,K4}var X4,Ey;function Q$(){if(Ey)return X4;Ey=1;var e=Zn(),a=Sn(),l=u0();function i(c){return function(u,d,h){var f=Object(u);if(!a(u)){var p=e(d,3);u=l(u),d=function(x){return p(f[x],x,f)}}var g=c(u,d,h);return g>-1?f[p?u[g]:g]:void 0}}return X4=i,X4}var Q4,Ny;function J$(){if(Ny)return Q4;Ny=1;var e=/\s/;function a(l){for(var i=l.length;i--&&e.test(l.charAt(i)););return i}return Q4=a,Q4}var J4,My;function W$(){if(My)return J4;My=1;var e=J$(),a=/^\s+/;function l(i){return i&&i.slice(0,e(i)+1).replace(a,"")}return J4=l,J4}var W4,Sy;function eI(){if(Sy)return W4;Sy=1;var e=W$(),a=Ca(),l=ts(),i=NaN,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function f(p){if(typeof p=="number")return p;if(l(p))return i;if(a(p)){var g=typeof p.valueOf=="function"?p.valueOf():p;p=a(g)?g+"":g}if(typeof p!="string")return p===0?p:+p;p=e(p);var x=u.test(p);return x||d.test(p)?h(p.slice(2),x?2:8):c.test(p)?i:+p}return W4=f,W4}var e6,Zy;function AS(){if(Zy)return e6;Zy=1;var e=eI(),a=1/0,l=17976931348623157e292;function i(c){if(!c)return c===0?c:0;if(c=e(c),c===a||c===-a){var u=c<0?-1:1;return u*l}return c===c?c:0}return e6=i,e6}var t6,Cy;function tI(){if(Cy)return t6;Cy=1;var e=AS();function a(l){var i=e(l),c=i%1;return i===i?c?i-c:i:0}return t6=a,t6}var a6,Hy;function aI(){if(Hy)return a6;Hy=1;var e=fS(),a=Zn(),l=tI(),i=Math.max;function c(u,d,h){var f=u==null?0:u.length;if(!f)return-1;var p=h==null?0:l(h);return p<0&&(p=i(f+p,0)),e(u,a(d,3),p)}return a6=c,a6}var n6,Vy;function nI(){if(Vy)return n6;Vy=1;var e=Q$(),a=aI(),l=e(a);return n6=l,n6}var r6,_y;function jS(){if(_y)return r6;_y=1;var e=vf();function a(l){var i=l==null?0:l.length;return i?e(l,1):[]}return r6=a,r6}var s6,Ty;function rI(){if(Ty)return s6;Ty=1;var e=ff(),a=GM(),l=B0();function i(c,u){return c==null?c:e(c,a(u),l)}return s6=i,s6}var l6,Ly;function sI(){if(Ly)return l6;Ly=1;function e(a){var l=a==null?0:a.length;return l?a[l-1]:void 0}return l6=e,l6}var i6,Ry;function lI(){if(Ry)return i6;Ry=1;var e=G1(),a=pf(),l=Zn();function i(c,u){var d={};return u=l(u,3),a(c,function(h,f,p){e(d,f,u(h,f,p))}),d}return i6=i,i6}var o6,ky;function yf(){if(ky)return o6;ky=1;var e=ts();function a(l,i,c){for(var u=-1,d=l.length;++u<d;){var h=l[u],f=i(h);if(f!=null&&(p===void 0?f===f&&!e(f):c(f,p)))var p=f,g=h}return g}return o6=a,o6}var c6,Dy;function iI(){if(Dy)return c6;Dy=1;function e(a,l){return a>l}return c6=e,c6}var u6,Oy;function oI(){if(Oy)return u6;Oy=1;var e=yf(),a=iI(),l=$0();function i(c){return c&&c.length?e(c,l,a):void 0}return u6=i,u6}var d6,Fy;function ES(){if(Fy)return d6;Fy=1;var e=G1(),a=Qr();function l(i,c,u){(u!==void 0&&!a(i[c],u)||u===void 0&&!(c in i))&&e(i,c,u)}return d6=l,d6}var h6,qy;function cI(){if(qy)return h6;qy=1;var e=q0(),a=J1(),l=an(),i="[object Object]",c=Function.prototype,u=Object.prototype,d=c.toString,h=u.hasOwnProperty,f=d.call(Object);function p(g){if(!l(g)||e(g)!=i)return!1;var x=a(g);if(x===null)return!0;var y=h.call(x,"constructor")&&x.constructor;return typeof y=="function"&&y instanceof y&&d.call(y)==f}return h6=p,h6}var m6,zy;function NS(){if(zy)return m6;zy=1;function e(a,l){if(!(l==="constructor"&&typeof a[l]=="function")&&l!="__proto__")return a[l]}return m6=e,m6}var f6,By;function uI(){if(By)return f6;By=1;var e=Vl(),a=B0();function l(i){return e(i,a(i))}return f6=l,f6}var p6,$y;function dI(){if($y)return p6;$y=1;var e=ES(),a=LM(),l=$M(),i=RM(),c=UM(),u=_l(),d=wt(),h=pS(),f=Wr(),p=Hl(),g=Ca(),x=cI(),y=Tl(),w=NS(),N=uI();function E(A,j,S,Z,C,H,V){var T=w(A,S),k=w(j,S),R=V.get(k);if(R){e(A,S,R);return}var O=H?H(T,k,S+"",A,j,V):void 0,U=O===void 0;if(U){var X=d(k),K=!X&&f(k),$=!X&&!K&&y(k);O=k,X||K||$?d(T)?O=T:h(T)?O=i(T):K?(U=!1,O=a(k,!0)):$?(U=!1,O=l(k,!0)):O=[]:x(k)||u(k)?(O=T,u(T)?O=N(T):(!g(T)||p(T))&&(O=c(k))):U=!1}U&&(V.set(k,O),C(O,k,Z,H,V),V.delete(k)),e(A,S,O)}return p6=E,p6}var g6,Iy;function hI(){if(Iy)return g6;Iy=1;var e=P1(),a=ES(),l=ff(),i=dI(),c=Ca(),u=B0(),d=NS();function h(f,p,g,x,y){f!==p&&l(p,function(w,N){if(y||(y=new e),c(w))i(f,p,N,g,h,x,y);else{var E=x?x(d(f,N),w,N+"",f,p,y):void 0;E===void 0&&(E=w),a(f,N,E)}},u)}return g6=h,g6}var x6,Uy;function mI(){if(Uy)return x6;Uy=1;var e=no(),a=ro();function l(i){return e(function(c,u){var d=-1,h=u.length,f=h>1?u[h-1]:void 0,p=h>2?u[2]:void 0;for(f=i.length>3&&typeof f=="function"?(h--,f):void 0,p&&a(u[0],u[1],p)&&(f=h<3?void 0:f,h=1),c=Object(c);++d<h;){var g=u[d];g&&i(c,g,d,f)}return c})}return x6=l,x6}var v6,Py;function fI(){if(Py)return v6;Py=1;var e=hI(),a=mI(),l=a(function(i,c,u){e(i,c,u)});return v6=l,v6}var b6,Gy;function MS(){if(Gy)return b6;Gy=1;function e(a,l){return a<l}return b6=e,b6}var y6,Yy;function pI(){if(Yy)return y6;Yy=1;var e=yf(),a=MS(),l=$0();function i(c){return c&&c.length?e(c,l,a):void 0}return y6=i,y6}var w6,Ky;function gI(){if(Ky)return w6;Ky=1;var e=yf(),a=Zn(),l=MS();function i(c,u){return c&&c.length?e(c,a(u,2),l):void 0}return w6=i,w6}var A6,Xy;function xI(){if(Xy)return A6;Xy=1;var e=$a(),a=function(){return e.Date.now()};return A6=a,A6}var j6,Qy;function vI(){if(Qy)return j6;Qy=1;var e=Y1(),a=to(),l=K1(),i=Ca(),c=Ll();function u(d,h,f,p){if(!i(d))return d;h=a(h,d);for(var g=-1,x=h.length,y=x-1,w=d;w!=null&&++g<x;){var N=c(h[g]),E=f;if(N==="__proto__"||N==="constructor"||N==="prototype")return d;if(g!=y){var A=w[N];E=p?p(A,N,w):void 0,E===void 0&&(E=i(A)?A:l(h[g+1])?[]:{})}e(w,N,E),w=w[N]}return d}return j6=u,j6}var E6,Jy;function bI(){if(Jy)return E6;Jy=1;var e=ao(),a=vI(),l=to();function i(c,u,d){for(var h=-1,f=u.length,p={};++h<f;){var g=u[h],x=e(c,g);d(x,g)&&a(p,l(g,c),x)}return p}return E6=i,E6}var N6,Wy;function yI(){if(Wy)return N6;Wy=1;var e=bI(),a=rS();function l(i,c){return e(i,c,function(u,d){return a(i,d)})}return N6=l,N6}var M6,ew;function wI(){if(ew)return M6;ew=1;var e=jS(),a=hS(),l=mS();function i(c){return l(a(c,void 0,e),c+"")}return M6=i,M6}var S6,tw;function AI(){if(tw)return S6;tw=1;var e=yI(),a=wI(),l=a(function(i,c){return i==null?{}:e(i,c)});return S6=l,S6}var Z6,aw;function jI(){if(aw)return Z6;aw=1;var e=Math.ceil,a=Math.max;function l(i,c,u,d){for(var h=-1,f=a(e((c-i)/(u||1)),0),p=Array(f);f--;)p[d?f:++h]=i,i+=u;return p}return Z6=l,Z6}var C6,nw;function EI(){if(nw)return C6;nw=1;var e=jI(),a=ro(),l=AS();function i(c){return function(u,d,h){return h&&typeof h!="number"&&a(u,d,h)&&(d=h=void 0),u=l(u),d===void 0?(d=u,u=0):d=l(d),h=h===void 0?u<d?1:-1:l(h),e(u,d,h,c)}}return C6=i,C6}var H6,rw;function NI(){if(rw)return H6;rw=1;var e=EI(),a=e();return H6=a,H6}var V6,sw;function MI(){if(sw)return V6;sw=1;function e(a,l){var i=a.length;for(a.sort(l);i--;)a[i]=a[i].value;return a}return V6=e,V6}var _6,lw;function SI(){if(lw)return _6;lw=1;var e=ts();function a(l,i){if(l!==i){var c=l!==void 0,u=l===null,d=l===l,h=e(l),f=i!==void 0,p=i===null,g=i===i,x=e(i);if(!p&&!x&&!h&&l>i||h&&f&&g&&!p&&!x||u&&f&&g||!c&&g||!d)return 1;if(!u&&!h&&!x&&l<i||x&&c&&d&&!u&&!h||p&&c&&d||!f&&d||!g)return-1}return 0}return _6=a,_6}var T6,iw;function ZI(){if(iw)return T6;iw=1;var e=SI();function a(l,i,c){for(var u=-1,d=l.criteria,h=i.criteria,f=d.length,p=c.length;++u<f;){var g=e(d[u],h[u]);if(g){if(u>=p)return g;var x=c[u];return g*(x=="desc"?-1:1)}}return l.index-i.index}return T6=a,T6}var L6,ow;function CI(){if(ow)return L6;ow=1;var e=eo(),a=ao(),l=Zn(),i=cS(),c=MI(),u=X1(),d=ZI(),h=$0(),f=wt();function p(g,x,y){x.length?x=e(x,function(E){return f(E)?function(A){return a(A,E.length===1?E[0]:E)}:E}):x=[h];var w=-1;x=e(x,u(l));var N=i(g,function(E,A,j){var S=e(x,function(Z){return Z(E)});return{criteria:S,index:++w,value:E}});return c(N,function(E,A){return d(E,A,y)})}return L6=p,L6}var R6,cw;function HI(){if(cw)return R6;cw=1;var e=vf(),a=CI(),l=no(),i=ro(),c=l(function(u,d){if(u==null)return[];var h=d.length;return h>1&&i(u,d[0],d[1])?d=[]:h>2&&i(d[0],d[1],d[2])&&(d=[d[0]]),a(u,e(d,1),[])});return R6=c,R6}var k6,uw;function VI(){if(uw)return k6;uw=1;var e=aS(),a=0;function l(i){var c=++a;return e(i)+c}return k6=l,k6}var D6,dw;function _I(){if(dw)return D6;dw=1;function e(a,l,i){for(var c=-1,u=a.length,d=l.length,h={};++c<u;){var f=c<d?l[c]:void 0;i(h,a[c],f)}return h}return D6=e,D6}var O6,hw;function TI(){if(hw)return O6;hw=1;var e=Y1(),a=_I();function l(i,c){return a(i||[],c||[],e)}return O6=l,O6}var F6,mw;function at(){if(mw)return F6;mw=1;var e;if(typeof af=="function")try{e={cloneDeep:K$(),constant:mf(),defaults:X$(),each:KM(),filter:lS(),find:nI(),flatten:jS(),forEach:YM(),forIn:rI(),has:iS(),isUndefined:oS(),last:sI(),map:uS(),mapValues:lI(),max:oI(),merge:fI(),min:pI(),minBy:gI(),now:xI(),pick:AI(),range:NI(),reduce:dS(),sortBy:HI(),uniqueId:VI(),values:gS(),zipObject:TI()}}catch{}return e||(e=window._),F6=e,F6}var q6,fw;function LI(){if(fw)return q6;fw=1,q6=e;function e(){var i={};i._next=i._prev=i,this._sentinel=i}e.prototype.dequeue=function(){var i=this._sentinel,c=i._prev;if(c!==i)return a(c),c},e.prototype.enqueue=function(i){var c=this._sentinel;i._prev&&i._next&&a(i),i._next=c._next,c._next._prev=i,c._next=i,i._prev=c},e.prototype.toString=function(){for(var i=[],c=this._sentinel,u=c._prev;u!==c;)i.push(JSON.stringify(u,l)),u=u._prev;return"["+i.join(", ")+"]"};function a(i){i._prev._next=i._next,i._next._prev=i._prev,delete i._next,delete i._prev}function l(i,c){if(i!=="_next"&&i!=="_prev")return c}return q6}var z6,pw;function RI(){if(pw)return z6;pw=1;var e=at(),a=qa().Graph,l=LI();z6=c;var i=e.constant(1);function c(p,g){if(p.nodeCount()<=1)return[];var x=h(p,g||i),y=u(x.graph,x.buckets,x.zeroIdx);return e.flatten(e.map(y,function(w){return p.outEdges(w.v,w.w)}),!0)}function u(p,g,x){for(var y=[],w=g[g.length-1],N=g[0],E;p.nodeCount();){for(;E=N.dequeue();)d(p,g,x,E);for(;E=w.dequeue();)d(p,g,x,E);if(p.nodeCount()){for(var A=g.length-2;A>0;--A)if(E=g[A].dequeue(),E){y=y.concat(d(p,g,x,E,!0));break}}}return y}function d(p,g,x,y,w){var N=w?[]:void 0;return e.forEach(p.inEdges(y.v),function(E){var A=p.edge(E),j=p.node(E.v);w&&N.push({v:E.v,w:E.w}),j.out-=A,f(g,x,j)}),e.forEach(p.outEdges(y.v),function(E){var A=p.edge(E),j=E.w,S=p.node(j);S.in-=A,f(g,x,S)}),p.removeNode(y.v),N}function h(p,g){var x=new a,y=0,w=0;e.forEach(p.nodes(),function(A){x.setNode(A,{v:A,in:0,out:0})}),e.forEach(p.edges(),function(A){var j=x.edge(A.v,A.w)||0,S=g(A),Z=j+S;x.setEdge(A.v,A.w,Z),w=Math.max(w,x.node(A.v).out+=S),y=Math.max(y,x.node(A.w).in+=S)});var N=e.range(w+y+3).map(function(){return new l}),E=y+1;return e.forEach(x.nodes(),function(A){f(N,E,x.node(A))}),{graph:x,buckets:N,zeroIdx:E}}function f(p,g,x){x.out?x.in?p[x.out-x.in+g].enqueue(x):p[p.length-1].enqueue(x):p[0].enqueue(x)}return z6}var B6,gw;function kI(){if(gw)return B6;gw=1;var e=at(),a=RI();B6={run:l,undo:c};function l(u){var d=u.graph().acyclicer==="greedy"?a(u,h(u)):i(u);e.forEach(d,function(f){var p=u.edge(f);u.removeEdge(f),p.forwardName=f.name,p.reversed=!0,u.setEdge(f.w,f.v,p,e.uniqueId("rev"))});function h(f){return function(p){return f.edge(p).weight}}}function i(u){var d=[],h={},f={};function p(g){e.has(f,g)||(f[g]=!0,h[g]=!0,e.forEach(u.outEdges(g),function(x){e.has(h,x.w)?d.push(x):p(x.w)}),delete h[g])}return e.forEach(u.nodes(),p),d}function c(u){e.forEach(u.edges(),function(d){var h=u.edge(d);if(h.reversed){u.removeEdge(d);var f=h.forwardName;delete h.reversed,delete h.forwardName,u.setEdge(d.w,d.v,h,f)}})}return B6}var $6,xw;function ea(){if(xw)return $6;xw=1;var e=at(),a=qa().Graph;$6={addDummyNode:l,simplify:i,asNonCompoundGraph:c,successorWeights:u,predecessorWeights:d,intersectRect:h,buildLayerMatrix:f,normalizeRanks:p,removeEmptyRanks:g,addBorderNode:x,maxRank:y,partition:w,time:N,notime:E};function l(A,j,S,Z){var C;do C=e.uniqueId(Z);while(A.hasNode(C));return S.dummy=j,A.setNode(C,S),C}function i(A){var j=new a().setGraph(A.graph());return e.forEach(A.nodes(),function(S){j.setNode(S,A.node(S))}),e.forEach(A.edges(),function(S){var Z=j.edge(S.v,S.w)||{weight:0,minlen:1},C=A.edge(S);j.setEdge(S.v,S.w,{weight:Z.weight+C.weight,minlen:Math.max(Z.minlen,C.minlen)})}),j}function c(A){var j=new a({multigraph:A.isMultigraph()}).setGraph(A.graph());return e.forEach(A.nodes(),function(S){A.children(S).length||j.setNode(S,A.node(S))}),e.forEach(A.edges(),function(S){j.setEdge(S,A.edge(S))}),j}function u(A){var j=e.map(A.nodes(),function(S){var Z={};return e.forEach(A.outEdges(S),function(C){Z[C.w]=(Z[C.w]||0)+A.edge(C).weight}),Z});return e.zipObject(A.nodes(),j)}function d(A){var j=e.map(A.nodes(),function(S){var Z={};return e.forEach(A.inEdges(S),function(C){Z[C.v]=(Z[C.v]||0)+A.edge(C).weight}),Z});return e.zipObject(A.nodes(),j)}function h(A,j){var S=A.x,Z=A.y,C=j.x-S,H=j.y-Z,V=A.width/2,T=A.height/2;if(!C&&!H)throw new Error("Not possible to find intersection inside of the rectangle");var k,R;return Math.abs(H)*V>Math.abs(C)*T?(H<0&&(T=-T),k=T*C/H,R=T):(C<0&&(V=-V),k=V,R=V*H/C),{x:S+k,y:Z+R}}function f(A){var j=e.map(e.range(y(A)+1),function(){return[]});return e.forEach(A.nodes(),function(S){var Z=A.node(S),C=Z.rank;e.isUndefined(C)||(j[C][Z.order]=S)}),j}function p(A){var j=e.min(e.map(A.nodes(),function(S){return A.node(S).rank}));e.forEach(A.nodes(),function(S){var Z=A.node(S);e.has(Z,"rank")&&(Z.rank-=j)})}function g(A){var j=e.min(e.map(A.nodes(),function(H){return A.node(H).rank})),S=[];e.forEach(A.nodes(),function(H){var V=A.node(H).rank-j;S[V]||(S[V]=[]),S[V].push(H)});var Z=0,C=A.graph().nodeRankFactor;e.forEach(S,function(H,V){e.isUndefined(H)&&V%C!==0?--Z:Z&&e.forEach(H,function(T){A.node(T).rank+=Z})})}function x(A,j,S,Z){var C={width:0,height:0};return arguments.length>=4&&(C.rank=S,C.order=Z),l(A,"border",C,j)}function y(A){return e.max(e.map(A.nodes(),function(j){var S=A.node(j).rank;if(!e.isUndefined(S))return S}))}function w(A,j){var S={lhs:[],rhs:[]};return e.forEach(A,function(Z){j(Z)?S.lhs.push(Z):S.rhs.push(Z)}),S}function N(A,j){var S=e.now();try{return j()}finally{console.log(A+" time: "+(e.now()-S)+"ms")}}function E(A,j){return j()}return $6}var I6,vw;function DI(){if(vw)return I6;vw=1;var e=at(),a=ea();I6={run:l,undo:c};function l(u){u.graph().dummyChains=[],e.forEach(u.edges(),function(d){i(u,d)})}function i(u,d){var h=d.v,f=u.node(h).rank,p=d.w,g=u.node(p).rank,x=d.name,y=u.edge(d),w=y.labelRank;if(g!==f+1){u.removeEdge(d);var N,E,A;for(A=0,++f;f<g;++A,++f)y.points=[],E={width:0,height:0,edgeLabel:y,edgeObj:d,rank:f},N=a.addDummyNode(u,"edge",E,"_d"),f===w&&(E.width=y.width,E.height=y.height,E.dummy="edge-label",E.labelpos=y.labelpos),u.setEdge(h,N,{weight:y.weight},x),A===0&&u.graph().dummyChains.push(N),h=N;u.setEdge(h,p,{weight:y.weight},x)}}function c(u){e.forEach(u.graph().dummyChains,function(d){var h=u.node(d),f=h.edgeLabel,p;for(u.setEdge(h.edgeObj,f);h.dummy;)p=u.successors(d)[0],u.removeNode(d),f.points.push({x:h.x,y:h.y}),h.dummy==="edge-label"&&(f.x=h.x,f.y=h.y,f.width=h.width,f.height=h.height),d=p,h=u.node(d)})}return I6}var U6,bw;function V1(){if(bw)return U6;bw=1;var e=at();U6={longestPath:a,slack:l};function a(i){var c={};function u(d){var h=i.node(d);if(e.has(c,d))return h.rank;c[d]=!0;var f=e.min(e.map(i.outEdges(d),function(p){return u(p.w)-i.edge(p).minlen}));return(f===Number.POSITIVE_INFINITY||f===void 0||f===null)&&(f=0),h.rank=f}e.forEach(i.sources(),u)}function l(i,c){return i.node(c.w).rank-i.node(c.v).rank-i.edge(c).minlen}return U6}var P6,yw;function SS(){if(yw)return P6;yw=1;var e=at(),a=qa().Graph,l=V1().slack;P6=i;function i(h){var f=new a({directed:!1}),p=h.nodes()[0],g=h.nodeCount();f.setNode(p,{});for(var x,y;c(f,h)<g;)x=u(f,h),y=f.hasNode(x.v)?l(h,x):-l(h,x),d(f,h,y);return f}function c(h,f){function p(g){e.forEach(f.nodeEdges(g),function(x){var y=x.v,w=g===y?x.w:y;!h.hasNode(w)&&!l(f,x)&&(h.setNode(w,{}),h.setEdge(g,w,{}),p(w))})}return e.forEach(h.nodes(),p),h.nodeCount()}function u(h,f){return e.minBy(f.edges(),function(p){if(h.hasNode(p.v)!==h.hasNode(p.w))return l(f,p)})}function d(h,f,p){e.forEach(h.nodes(),function(g){f.node(g).rank+=p})}return P6}var G6,ww;function OI(){if(ww)return G6;ww=1;var e=at(),a=SS(),l=V1().slack,i=V1().longestPath,c=qa().alg.preorder,u=qa().alg.postorder,d=ea().simplify;G6=h,h.initLowLimValues=x,h.initCutValues=f,h.calcCutValue=g,h.leaveEdge=w,h.enterEdge=N,h.exchangeEdges=E;function h(Z){Z=d(Z),i(Z);var C=a(Z);x(C),f(C,Z);for(var H,V;H=w(C);)V=N(C,Z,H),E(C,Z,H,V)}function f(Z,C){var H=u(Z,Z.nodes());H=H.slice(0,H.length-1),e.forEach(H,function(V){p(Z,C,V)})}function p(Z,C,H){var V=Z.node(H),T=V.parent;Z.edge(H,T).cutvalue=g(Z,C,H)}function g(Z,C,H){var V=Z.node(H),T=V.parent,k=!0,R=C.edge(H,T),O=0;return R||(k=!1,R=C.edge(T,H)),O=R.weight,e.forEach(C.nodeEdges(H),function(U){var X=U.v===H,K=X?U.w:U.v;if(K!==T){var $=X===k,Y=C.edge(U).weight;if(O+=$?Y:-Y,j(Z,H,K)){var L=Z.edge(H,K).cutvalue;O+=$?-L:L}}}),O}function x(Z,C){arguments.length<2&&(C=Z.nodes()[0]),y(Z,{},1,C)}function y(Z,C,H,V,T){var k=H,R=Z.node(V);return C[V]=!0,e.forEach(Z.neighbors(V),function(O){e.has(C,O)||(H=y(Z,C,H,O,V))}),R.low=k,R.lim=H++,T?R.parent=T:delete R.parent,H}function w(Z){return e.find(Z.edges(),function(C){return Z.edge(C).cutvalue<0})}function N(Z,C,H){var V=H.v,T=H.w;C.hasEdge(V,T)||(V=H.w,T=H.v);var k=Z.node(V),R=Z.node(T),O=k,U=!1;k.lim>R.lim&&(O=R,U=!0);var X=e.filter(C.edges(),function(K){return U===S(Z,Z.node(K.v),O)&&U!==S(Z,Z.node(K.w),O)});return e.minBy(X,function(K){return l(C,K)})}function E(Z,C,H,V){var T=H.v,k=H.w;Z.removeEdge(T,k),Z.setEdge(V.v,V.w,{}),x(Z),f(Z,C),A(Z,C)}function A(Z,C){var H=e.find(Z.nodes(),function(T){return!C.node(T).parent}),V=c(Z,H);V=V.slice(1),e.forEach(V,function(T){var k=Z.node(T).parent,R=C.edge(T,k),O=!1;R||(R=C.edge(k,T),O=!0),C.node(T).rank=C.node(k).rank+(O?R.minlen:-R.minlen)})}function j(Z,C,H){return Z.hasEdge(C,H)}function S(Z,C,H){return H.low<=C.lim&&C.lim<=H.lim}return G6}var Y6,Aw;function FI(){if(Aw)return Y6;Aw=1;var e=V1(),a=e.longestPath,l=SS(),i=OI();Y6=c;function c(f){switch(f.graph().ranker){case"network-simplex":h(f);break;case"tight-tree":d(f);break;case"longest-path":u(f);break;default:h(f)}}var u=a;function d(f){a(f),l(f)}function h(f){i(f)}return Y6}var K6,jw;function qI(){if(jw)return K6;jw=1;var e=at();K6=a;function a(c){var u=i(c);e.forEach(c.graph().dummyChains,function(d){for(var h=c.node(d),f=h.edgeObj,p=l(c,u,f.v,f.w),g=p.path,x=p.lca,y=0,w=g[y],N=!0;d!==f.w;){if(h=c.node(d),N){for(;(w=g[y])!==x&&c.node(w).maxRank<h.rank;)y++;w===x&&(N=!1)}if(!N){for(;y<g.length-1&&c.node(w=g[y+1]).minRank<=h.rank;)y++;w=g[y]}c.setParent(d,w),d=c.successors(d)[0]}})}function l(c,u,d,h){var f=[],p=[],g=Math.min(u[d].low,u[h].low),x=Math.max(u[d].lim,u[h].lim),y,w;y=d;do y=c.parent(y),f.push(y);while(y&&(u[y].low>g||x>u[y].lim));for(w=y,y=h;(y=c.parent(y))!==w;)p.push(y);return{path:f.concat(p.reverse()),lca:w}}function i(c){var u={},d=0;function h(f){var p=d;e.forEach(c.children(f),h),u[f]={low:p,lim:d++}}return e.forEach(c.children(),h),u}return K6}var X6,Ew;function zI(){if(Ew)return X6;Ew=1;var e=at(),a=ea();X6={run:l,cleanup:d};function l(h){var f=a.addDummyNode(h,"root",{},"_root"),p=c(h),g=e.max(e.values(p))-1,x=2*g+1;h.graph().nestingRoot=f,e.forEach(h.edges(),function(w){h.edge(w).minlen*=x});var y=u(h)+1;e.forEach(h.children(),function(w){i(h,f,x,y,g,p,w)}),h.graph().nodeRankFactor=x}function i(h,f,p,g,x,y,w){var N=h.children(w);if(!N.length){w!==f&&h.setEdge(f,w,{weight:0,minlen:p});return}var E=a.addBorderNode(h,"_bt"),A=a.addBorderNode(h,"_bb"),j=h.node(w);h.setParent(E,w),j.borderTop=E,h.setParent(A,w),j.borderBottom=A,e.forEach(N,function(S){i(h,f,p,g,x,y,S);var Z=h.node(S),C=Z.borderTop?Z.borderTop:S,H=Z.borderBottom?Z.borderBottom:S,V=Z.borderTop?g:2*g,T=C!==H?1:x-y[w]+1;h.setEdge(E,C,{weight:V,minlen:T,nestingEdge:!0}),h.setEdge(H,A,{weight:V,minlen:T,nestingEdge:!0})}),h.parent(w)||h.setEdge(f,E,{weight:0,minlen:x+y[w]})}function c(h){var f={};function p(g,x){var y=h.children(g);y&&y.length&&e.forEach(y,function(w){p(w,x+1)}),f[g]=x}return e.forEach(h.children(),function(g){p(g,1)}),f}function u(h){return e.reduce(h.edges(),function(f,p){return f+h.edge(p).weight},0)}function d(h){var f=h.graph();h.removeNode(f.nestingRoot),delete f.nestingRoot,e.forEach(h.edges(),function(p){var g=h.edge(p);g.nestingEdge&&h.removeEdge(p)})}return X6}var Q6,Nw;function BI(){if(Nw)return Q6;Nw=1;var e=at(),a=ea();Q6=l;function l(c){function u(d){var h=c.children(d),f=c.node(d);if(h.length&&e.forEach(h,u),e.has(f,"minRank")){f.borderLeft=[],f.borderRight=[];for(var p=f.minRank,g=f.maxRank+1;p<g;++p)i(c,"borderLeft","_bl",d,f,p),i(c,"borderRight","_br",d,f,p)}}e.forEach(c.children(),u)}function i(c,u,d,h,f,p){var g={width:0,height:0,rank:p,borderType:u},x=f[u][p-1],y=a.addDummyNode(c,"border",g,d);f[u][p]=y,c.setParent(y,h),x&&c.setEdge(x,y,{weight:1})}return Q6}var J6,Mw;function $I(){if(Mw)return J6;Mw=1;var e=at();J6={adjust:a,undo:l};function a(p){var g=p.graph().rankdir.toLowerCase();(g==="lr"||g==="rl")&&i(p)}function l(p){var g=p.graph().rankdir.toLowerCase();(g==="bt"||g==="rl")&&u(p),(g==="lr"||g==="rl")&&(h(p),i(p))}function i(p){e.forEach(p.nodes(),function(g){c(p.node(g))}),e.forEach(p.edges(),function(g){c(p.edge(g))})}function c(p){var g=p.width;p.width=p.height,p.height=g}function u(p){e.forEach(p.nodes(),function(g){d(p.node(g))}),e.forEach(p.edges(),function(g){var x=p.edge(g);e.forEach(x.points,d),e.has(x,"y")&&d(x)})}function d(p){p.y=-p.y}function h(p){e.forEach(p.nodes(),function(g){f(p.node(g))}),e.forEach(p.edges(),function(g){var x=p.edge(g);e.forEach(x.points,f),e.has(x,"x")&&f(x)})}function f(p){var g=p.x;p.x=p.y,p.y=g}return J6}var W6,Sw;function II(){if(Sw)return W6;Sw=1;var e=at();W6=a;function a(l){var i={},c=e.filter(l.nodes(),function(p){return!l.children(p).length}),u=e.max(e.map(c,function(p){return l.node(p).rank})),d=e.map(e.range(u+1),function(){return[]});function h(p){if(!e.has(i,p)){i[p]=!0;var g=l.node(p);d[g.rank].push(p),e.forEach(l.successors(p),h)}}var f=e.sortBy(c,function(p){return l.node(p).rank});return e.forEach(f,h),d}return W6}var eh,Zw;function UI(){if(Zw)return eh;Zw=1;var e=at();eh=a;function a(i,c){for(var u=0,d=1;d<c.length;++d)u+=l(i,c[d-1],c[d]);return u}function l(i,c,u){for(var d=e.zipObject(u,e.map(u,function(y,w){return w})),h=e.flatten(e.map(c,function(y){return e.sortBy(e.map(i.outEdges(y),function(w){return{pos:d[w.w],weight:i.edge(w).weight}}),"pos")}),!0),f=1;f<u.length;)f<<=1;var p=2*f-1;f-=1;var g=e.map(new Array(p),function(){return 0}),x=0;return e.forEach(h.forEach(function(y){var w=y.pos+f;g[w]+=y.weight;for(var N=0;w>0;)w%2&&(N+=g[w+1]),w=w-1>>1,g[w]+=y.weight;x+=y.weight*N})),x}return eh}var th,Cw;function PI(){if(Cw)return th;Cw=1;var e=at();th=a;function a(l,i){return e.map(i,function(c){var u=l.inEdges(c);if(u.length){var d=e.reduce(u,function(h,f){var p=l.edge(f),g=l.node(f.v);return{sum:h.sum+p.weight*g.order,weight:h.weight+p.weight}},{sum:0,weight:0});return{v:c,barycenter:d.sum/d.weight,weight:d.weight}}else return{v:c}})}return th}var ah,Hw;function GI(){if(Hw)return ah;Hw=1;var e=at();ah=a;function a(c,u){var d={};e.forEach(c,function(f,p){var g=d[f.v]={indegree:0,in:[],out:[],vs:[f.v],i:p};e.isUndefined(f.barycenter)||(g.barycenter=f.barycenter,g.weight=f.weight)}),e.forEach(u.edges(),function(f){var p=d[f.v],g=d[f.w];!e.isUndefined(p)&&!e.isUndefined(g)&&(g.indegree++,p.out.push(d[f.w]))});var h=e.filter(d,function(f){return!f.indegree});return l(h)}function l(c){var u=[];function d(p){return function(g){g.merged||(e.isUndefined(g.barycenter)||e.isUndefined(p.barycenter)||g.barycenter>=p.barycenter)&&i(p,g)}}function h(p){return function(g){g.in.push(p),--g.indegree===0&&c.push(g)}}for(;c.length;){var f=c.pop();u.push(f),e.forEach(f.in.reverse(),d(f)),e.forEach(f.out,h(f))}return e.map(e.filter(u,function(p){return!p.merged}),function(p){return e.pick(p,["vs","i","barycenter","weight"])})}function i(c,u){var d=0,h=0;c.weight&&(d+=c.barycenter*c.weight,h+=c.weight),u.weight&&(d+=u.barycenter*u.weight,h+=u.weight),c.vs=u.vs.concat(c.vs),c.barycenter=d/h,c.weight=h,c.i=Math.min(u.i,c.i),u.merged=!0}return ah}var nh,Vw;function YI(){if(Vw)return nh;Vw=1;var e=at(),a=ea();nh=l;function l(u,d){var h=a.partition(u,function(E){return e.has(E,"barycenter")}),f=h.lhs,p=e.sortBy(h.rhs,function(E){return-E.i}),g=[],x=0,y=0,w=0;f.sort(c(!!d)),w=i(g,p,w),e.forEach(f,function(E){w+=E.vs.length,g.push(E.vs),x+=E.barycenter*E.weight,y+=E.weight,w=i(g,p,w)});var N={vs:e.flatten(g,!0)};return y&&(N.barycenter=x/y,N.weight=y),N}function i(u,d,h){for(var f;d.length&&(f=e.last(d)).i<=h;)d.pop(),u.push(f.vs),h++;return h}function c(u){return function(d,h){return d.barycenter<h.barycenter?-1:d.barycenter>h.barycenter?1:u?h.i-d.i:d.i-h.i}}return nh}var rh,_w;function KI(){if(_w)return rh;_w=1;var e=at(),a=PI(),l=GI(),i=YI();rh=c;function c(h,f,p,g){var x=h.children(f),y=h.node(f),w=y?y.borderLeft:void 0,N=y?y.borderRight:void 0,E={};w&&(x=e.filter(x,function(H){return H!==w&&H!==N}));var A=a(h,x);e.forEach(A,function(H){if(h.children(H.v).length){var V=c(h,H.v,p,g);E[H.v]=V,e.has(V,"barycenter")&&d(H,V)}});var j=l(A,p);u(j,E);var S=i(j,g);if(w&&(S.vs=e.flatten([w,S.vs,N],!0),h.predecessors(w).length)){var Z=h.node(h.predecessors(w)[0]),C=h.node(h.predecessors(N)[0]);e.has(S,"barycenter")||(S.barycenter=0,S.weight=0),S.barycenter=(S.barycenter*S.weight+Z.order+C.order)/(S.weight+2),S.weight+=2}return S}function u(h,f){e.forEach(h,function(p){p.vs=e.flatten(p.vs.map(function(g){return f[g]?f[g].vs:g}),!0)})}function d(h,f){e.isUndefined(h.barycenter)?(h.barycenter=f.barycenter,h.weight=f.weight):(h.barycenter=(h.barycenter*h.weight+f.barycenter*f.weight)/(h.weight+f.weight),h.weight+=f.weight)}return rh}var sh,Tw;function XI(){if(Tw)return sh;Tw=1;var e=at(),a=qa().Graph;sh=l;function l(c,u,d){var h=i(c),f=new a({compound:!0}).setGraph({root:h}).setDefaultNodeLabel(function(p){return c.node(p)});return e.forEach(c.nodes(),function(p){var g=c.node(p),x=c.parent(p);(g.rank===u||g.minRank<=u&&u<=g.maxRank)&&(f.setNode(p),f.setParent(p,x||h),e.forEach(c[d](p),function(y){var w=y.v===p?y.w:y.v,N=f.edge(w,p),E=e.isUndefined(N)?0:N.weight;f.setEdge(w,p,{weight:c.edge(y).weight+E})}),e.has(g,"minRank")&&f.setNode(p,{borderLeft:g.borderLeft[u],borderRight:g.borderRight[u]}))}),f}function i(c){for(var u;c.hasNode(u=e.uniqueId("_root")););return u}return sh}var lh,Lw;function QI(){if(Lw)return lh;Lw=1;var e=at();lh=a;function a(l,i,c){var u={},d;e.forEach(c,function(h){for(var f=l.parent(h),p,g;f;){if(p=l.parent(f),p?(g=u[p],u[p]=f):(g=d,d=f),g&&g!==f){i.setEdge(g,f);return}f=p}})}return lh}var ih,Rw;function JI(){if(Rw)return ih;Rw=1;var e=at(),a=II(),l=UI(),i=KI(),c=XI(),u=QI(),d=qa().Graph,h=ea();ih=f;function f(y){var w=h.maxRank(y),N=p(y,e.range(1,w+1),"inEdges"),E=p(y,e.range(w-1,-1,-1),"outEdges"),A=a(y);x(y,A);for(var j=Number.POSITIVE_INFINITY,S,Z=0,C=0;C<4;++Z,++C){g(Z%2?N:E,Z%4>=2),A=h.buildLayerMatrix(y);var H=l(y,A);H<j&&(C=0,S=e.cloneDeep(A),j=H)}x(y,S)}function p(y,w,N){return e.map(w,function(E){return c(y,E,N)})}function g(y,w){var N=new d;e.forEach(y,function(E){var A=E.graph().root,j=i(E,A,N,w);e.forEach(j.vs,function(S,Z){E.node(S).order=Z}),u(E,N,j.vs)})}function x(y,w){e.forEach(w,function(N){e.forEach(N,function(E,A){y.node(E).order=A})})}return ih}var oh,kw;function WI(){if(kw)return oh;kw=1;var e=at(),a=qa().Graph,l=ea();oh={positionX:N,findType1Conflicts:i,findType2Conflicts:c,addConflict:d,hasConflict:h,verticalAlignment:f,horizontalCompaction:p,alignCoordinates:y,findSmallestWidthAlignment:x,balance:w};function i(j,S){var Z={};function C(H,V){var T=0,k=0,R=H.length,O=e.last(V);return e.forEach(V,function(U,X){var K=u(j,U),$=K?j.node(K).order:R;(K||U===O)&&(e.forEach(V.slice(k,X+1),function(Y){e.forEach(j.predecessors(Y),function(L){var B=j.node(L),Q=B.order;(Q<T||$<Q)&&!(B.dummy&&j.node(Y).dummy)&&d(Z,L,Y)})}),k=X+1,T=$)}),V}return e.reduce(S,C),Z}function c(j,S){var Z={};function C(V,T,k,R,O){var U;e.forEach(e.range(T,k),function(X){U=V[X],j.node(U).dummy&&e.forEach(j.predecessors(U),function(K){var $=j.node(K);$.dummy&&($.order<R||$.order>O)&&d(Z,K,U)})})}function H(V,T){var k=-1,R,O=0;return e.forEach(T,function(U,X){if(j.node(U).dummy==="border"){var K=j.predecessors(U);K.length&&(R=j.node(K[0]).order,C(T,O,X,k,R),O=X,k=R)}C(T,O,T.length,R,V.length)}),T}return e.reduce(S,H),Z}function u(j,S){if(j.node(S).dummy)return e.find(j.predecessors(S),function(Z){return j.node(Z).dummy})}function d(j,S,Z){if(S>Z){var C=S;S=Z,Z=C}var H=j[S];H||(j[S]=H={}),H[Z]=!0}function h(j,S,Z){if(S>Z){var C=S;S=Z,Z=C}return e.has(j[S],Z)}function f(j,S,Z,C){var H={},V={},T={};return e.forEach(S,function(k){e.forEach(k,function(R,O){H[R]=R,V[R]=R,T[R]=O})}),e.forEach(S,function(k){var R=-1;e.forEach(k,function(O){var U=C(O);if(U.length){U=e.sortBy(U,function(L){return T[L]});for(var X=(U.length-1)/2,K=Math.floor(X),$=Math.ceil(X);K<=$;++K){var Y=U[K];V[O]===O&&R<T[Y]&&!h(Z,O,Y)&&(V[Y]=O,V[O]=H[O]=H[Y],R=T[Y])}}})}),{root:H,align:V}}function p(j,S,Z,C,H){var V={},T=g(j,S,Z,H),k=H?"borderLeft":"borderRight";function R(X,K){for(var $=T.nodes(),Y=$.pop(),L={};Y;)L[Y]?X(Y):(L[Y]=!0,$.push(Y),$=$.concat(K(Y))),Y=$.pop()}function O(X){V[X]=T.inEdges(X).reduce(function(K,$){return Math.max(K,V[$.v]+T.edge($))},0)}function U(X){var K=T.outEdges(X).reduce(function(Y,L){return Math.min(Y,V[L.w]-T.edge(L))},Number.POSITIVE_INFINITY),$=j.node(X);K!==Number.POSITIVE_INFINITY&&$.borderType!==k&&(V[X]=Math.max(V[X],K))}return R(O,T.predecessors.bind(T)),R(U,T.successors.bind(T)),e.forEach(C,function(X){V[X]=V[Z[X]]}),V}function g(j,S,Z,C){var H=new a,V=j.graph(),T=E(V.nodesep,V.edgesep,C);return e.forEach(S,function(k){var R;e.forEach(k,function(O){var U=Z[O];if(H.setNode(U),R){var X=Z[R],K=H.edge(X,U);H.setEdge(X,U,Math.max(T(j,O,R),K||0))}R=O})}),H}function x(j,S){return e.minBy(e.values(S),function(Z){var C=Number.NEGATIVE_INFINITY,H=Number.POSITIVE_INFINITY;return e.forIn(Z,function(V,T){var k=A(j,T)/2;C=Math.max(V+k,C),H=Math.min(V-k,H)}),C-H})}function y(j,S){var Z=e.values(S),C=e.min(Z),H=e.max(Z);e.forEach(["u","d"],function(V){e.forEach(["l","r"],function(T){var k=V+T,R=j[k],O;if(R!==S){var U=e.values(R);O=T==="l"?C-e.min(U):H-e.max(U),O&&(j[k]=e.mapValues(R,function(X){return X+O}))}})})}function w(j,S){return e.mapValues(j.ul,function(Z,C){if(S)return j[S.toLowerCase()][C];var H=e.sortBy(e.map(j,C));return(H[1]+H[2])/2})}function N(j){var S=l.buildLayerMatrix(j),Z=e.merge(i(j,S),c(j,S)),C={},H;e.forEach(["u","d"],function(T){H=T==="u"?S:e.values(S).reverse(),e.forEach(["l","r"],function(k){k==="r"&&(H=e.map(H,function(X){return e.values(X).reverse()}));var R=(T==="u"?j.predecessors:j.successors).bind(j),O=f(j,H,Z,R),U=p(j,H,O.root,O.align,k==="r");k==="r"&&(U=e.mapValues(U,function(X){return-X})),C[T+k]=U})});var V=x(j,C);return y(C,V),w(C,j.graph().align)}function E(j,S,Z){return function(C,H,V){var T=C.node(H),k=C.node(V),R=0,O;if(R+=T.width/2,e.has(T,"labelpos"))switch(T.labelpos.toLowerCase()){case"l":O=-T.width/2;break;case"r":O=T.width/2;break}if(O&&(R+=Z?O:-O),O=0,R+=(T.dummy?S:j)/2,R+=(k.dummy?S:j)/2,R+=k.width/2,e.has(k,"labelpos"))switch(k.labelpos.toLowerCase()){case"l":O=k.width/2;break;case"r":O=-k.width/2;break}return O&&(R+=Z?O:-O),O=0,R}}function A(j,S){return j.node(S).width}return oh}var ch,Dw;function eU(){if(Dw)return ch;Dw=1;var e=at(),a=ea(),l=WI().positionX;ch=i;function i(u){u=a.asNonCompoundGraph(u),c(u),e.forEach(l(u),function(d,h){u.node(h).x=d})}function c(u){var d=a.buildLayerMatrix(u),h=u.graph().ranksep,f=0;e.forEach(d,function(p){var g=e.max(e.map(p,function(x){return u.node(x).height}));e.forEach(p,function(x){u.node(x).y=f+g/2}),f+=g+h})}return ch}var uh,Ow;function tU(){if(Ow)return uh;Ow=1;var e=at(),a=kI(),l=DI(),i=FI(),c=ea().normalizeRanks,u=qI(),d=ea().removeEmptyRanks,h=zI(),f=BI(),p=$I(),g=JI(),x=eU(),y=ea(),w=qa().Graph;uh=N;function N(z,q){var P=q&&q.debugTiming?y.time:y.notime;P("layout",function(){var oe=P(" buildLayoutGraph",function(){return R(z)});P(" runLayout",function(){E(oe,P)}),P(" updateInputGraph",function(){A(z,oe)})})}function E(z,q){q(" makeSpaceForEdgeLabels",function(){O(z)}),q(" removeSelfEdges",function(){he(z)}),q(" acyclic",function(){a.run(z)}),q(" nestingGraph.run",function(){h.run(z)}),q(" rank",function(){i(y.asNonCompoundGraph(z))}),q(" injectEdgeLabelProxies",function(){U(z)}),q(" removeEmptyRanks",function(){d(z)}),q(" nestingGraph.cleanup",function(){h.cleanup(z)}),q(" normalizeRanks",function(){c(z)}),q(" assignRankMinMax",function(){X(z)}),q(" removeEdgeLabelProxies",function(){K(z)}),q(" normalize.run",function(){l.run(z)}),q(" parentDummyChains",function(){u(z)}),q(" addBorderSegments",function(){f(z)}),q(" order",function(){g(z)}),q(" insertSelfEdges",function(){ce(z)}),q(" adjustCoordinateSystem",function(){p.adjust(z)}),q(" position",function(){x(z)}),q(" positionSelfEdges",function(){D(z)}),q(" removeBorderNodes",function(){Q(z)}),q(" normalize.undo",function(){l.undo(z)}),q(" fixupEdgeLabelCoords",function(){L(z)}),q(" undoCoordinateSystem",function(){p.undo(z)}),q(" translateGraph",function(){$(z)}),q(" assignNodeIntersects",function(){Y(z)}),q(" reversePoints",function(){B(z)}),q(" acyclic.undo",function(){a.undo(z)})}function A(z,q){e.forEach(z.nodes(),function(P){var oe=z.node(P),fe=q.node(P);oe&&(oe.x=fe.x,oe.y=fe.y,q.children(P).length&&(oe.width=fe.width,oe.height=fe.height))}),e.forEach(z.edges(),function(P){var oe=z.edge(P),fe=q.edge(P);oe.points=fe.points,e.has(fe,"x")&&(oe.x=fe.x,oe.y=fe.y)}),z.graph().width=q.graph().width,z.graph().height=q.graph().height}var j=["nodesep","edgesep","ranksep","marginx","marginy"],S={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Z=["acyclicer","ranker","rankdir","align"],C=["width","height"],H={width:0,height:0},V=["minlen","weight","width","height","labeloffset"],T={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function R(z){var q=new w({multigraph:!0,compound:!0}),P=re(z.graph());return q.setGraph(e.merge({},S,te(P,j),e.pick(P,Z))),e.forEach(z.nodes(),function(oe){var fe=re(z.node(oe));q.setNode(oe,e.defaults(te(fe,C),H)),q.setParent(oe,z.parent(oe))}),e.forEach(z.edges(),function(oe){var fe=re(z.edge(oe));q.setEdge(oe,e.merge({},T,te(fe,V),e.pick(fe,k)))}),q}function O(z){var q=z.graph();q.ranksep/=2,e.forEach(z.edges(),function(P){var oe=z.edge(P);oe.minlen*=2,oe.labelpos.toLowerCase()!=="c"&&(q.rankdir==="TB"||q.rankdir==="BT"?oe.width+=oe.labeloffset:oe.height+=oe.labeloffset)})}function U(z){e.forEach(z.edges(),function(q){var P=z.edge(q);if(P.width&&P.height){var oe=z.node(q.v),fe=z.node(q.w),ye={rank:(fe.rank-oe.rank)/2+oe.rank,e:q};y.addDummyNode(z,"edge-proxy",ye,"_ep")}})}function X(z){var q=0;e.forEach(z.nodes(),function(P){var oe=z.node(P);oe.borderTop&&(oe.minRank=z.node(oe.borderTop).rank,oe.maxRank=z.node(oe.borderBottom).rank,q=e.max(q,oe.maxRank))}),z.graph().maxRank=q}function K(z){e.forEach(z.nodes(),function(q){var P=z.node(q);P.dummy==="edge-proxy"&&(z.edge(P.e).labelRank=P.rank,z.removeNode(q))})}function $(z){var q=Number.POSITIVE_INFINITY,P=0,oe=Number.POSITIVE_INFINITY,fe=0,ye=z.graph(),Le=ye.marginx||0,Ie=ye.marginy||0;function Ue(it){var qe=it.x,ve=it.y,ze=it.width,je=it.height;q=Math.min(q,qe-ze/2),P=Math.max(P,qe+ze/2),oe=Math.min(oe,ve-je/2),fe=Math.max(fe,ve+je/2)}e.forEach(z.nodes(),function(it){Ue(z.node(it))}),e.forEach(z.edges(),function(it){var qe=z.edge(it);e.has(qe,"x")&&Ue(qe)}),q-=Le,oe-=Ie,e.forEach(z.nodes(),function(it){var qe=z.node(it);qe.x-=q,qe.y-=oe}),e.forEach(z.edges(),function(it){var qe=z.edge(it);e.forEach(qe.points,function(ve){ve.x-=q,ve.y-=oe}),e.has(qe,"x")&&(qe.x-=q),e.has(qe,"y")&&(qe.y-=oe)}),ye.width=P-q+Le,ye.height=fe-oe+Ie}function Y(z){e.forEach(z.edges(),function(q){var P=z.edge(q),oe=z.node(q.v),fe=z.node(q.w),ye,Le;P.points?(ye=P.points[0],Le=P.points[P.points.length-1]):(P.points=[],ye=fe,Le=oe),P.points.unshift(y.intersectRect(oe,ye)),P.points.push(y.intersectRect(fe,Le))})}function L(z){e.forEach(z.edges(),function(q){var P=z.edge(q);if(e.has(P,"x"))switch((P.labelpos==="l"||P.labelpos==="r")&&(P.width-=P.labeloffset),P.labelpos){case"l":P.x-=P.width/2+P.labeloffset;break;case"r":P.x+=P.width/2+P.labeloffset;break}})}function B(z){e.forEach(z.edges(),function(q){var P=z.edge(q);P.reversed&&P.points.reverse()})}function Q(z){e.forEach(z.nodes(),function(q){if(z.children(q).length){var P=z.node(q),oe=z.node(P.borderTop),fe=z.node(P.borderBottom),ye=z.node(e.last(P.borderLeft)),Le=z.node(e.last(P.borderRight));P.width=Math.abs(Le.x-ye.x),P.height=Math.abs(fe.y-oe.y),P.x=ye.x+P.width/2,P.y=oe.y+P.height/2}}),e.forEach(z.nodes(),function(q){z.node(q).dummy==="border"&&z.removeNode(q)})}function he(z){e.forEach(z.edges(),function(q){if(q.v===q.w){var P=z.node(q.v);P.selfEdges||(P.selfEdges=[]),P.selfEdges.push({e:q,label:z.edge(q)}),z.removeEdge(q)}})}function ce(z){var q=y.buildLayerMatrix(z);e.forEach(q,function(P){var oe=0;e.forEach(P,function(fe,ye){var Le=z.node(fe);Le.order=ye+oe,e.forEach(Le.selfEdges,function(Ie){y.addDummyNode(z,"selfedge",{width:Ie.label.width,height:Ie.label.height,rank:Le.rank,order:ye+ ++oe,e:Ie.e,label:Ie.label},"_se")}),delete Le.selfEdges})})}function D(z){e.forEach(z.nodes(),function(q){var P=z.node(q);if(P.dummy==="selfedge"){var oe=z.node(P.e.v),fe=oe.x+oe.width/2,ye=oe.y,Le=P.x-fe,Ie=oe.height/2;z.setEdge(P.e,P.label),z.removeNode(q),P.label.points=[{x:fe+2*Le/3,y:ye-Ie},{x:fe+5*Le/6,y:ye-Ie},{x:fe+Le,y:ye},{x:fe+5*Le/6,y:ye+Ie},{x:fe+2*Le/3,y:ye+Ie}],P.label.x=P.x,P.label.y=P.y}})}function te(z,q){return e.mapValues(e.pick(z,q),Number)}function re(z){var q={};return e.forEach(z,function(P,oe){q[oe.toLowerCase()]=P}),q}return uh}var dh,Fw;function aU(){if(Fw)return dh;Fw=1;var e=at(),a=ea(),l=qa().Graph;dh={debugOrdering:i};function i(c){var u=a.buildLayerMatrix(c),d=new l({compound:!0,multigraph:!0}).setGraph({});return e.forEach(c.nodes(),function(h){d.setNode(h,{label:h}),d.setParent(h,"layer"+c.node(h).rank)}),e.forEach(c.edges(),function(h){d.setEdge(h.v,h.w,{},h.name)}),e.forEach(u,function(h,f){var p="layer"+f;d.setNode(p,{rank:"same"}),e.reduce(h,function(g,x){return d.setEdge(g,x,{style:"invis"}),x})}),d}return dh}var hh,qw;function nU(){return qw||(qw=1,hh="0.8.5"),hh}var mh,zw;function rU(){return zw||(zw=1,mh={graphlib:qa(),layout:tU(),debug:aU(),util:{time:ea().time,notime:ea().notime},version:nU()}),mh}var sU=rU();const _1=JC(sU),fh=280,ph=80,gh=200,Bw=40,lU=80,iU=100,oU=60;function cU(e,a){const l=new _1.graphlib.Graph;l.setDefaultEdgeLabel(()=>({})),l.setGraph({rankdir:"TB",nodesep:lU,ranksep:iU,marginx:40,marginy:40});for(const d of e){const h=d.type==="addStep";l.setNode(d.id,{width:h?gh:fh,height:h?Bw:ph})}for(const d of a)l.setEdge(d.source,d.target);_1.layout(l);const i=new Map;for(const d of a){const h=e.find(f=>f.id===d.target);(h==null?void 0:h.type)==="addStep"&&i.set(d.target,d.source)}const c=e.map(d=>{const h=l.node(d.id);if(!h)return d;const f=d.type==="addStep",p=f?gh:fh,g=f?Bw:ph;return{...d,position:{x:h.x-p/2,y:h.y-g/2}}}),u=new Map(c.map(d=>[d.id,d]));for(const d of c){if(d.type!=="addStep")continue;const h=i.get(d.id);if(!h)continue;const f=u.get(h);if(!f)continue;const p=f.type==="conditional"?{width:280,height:100}:{width:fh,height:ph};d.position={x:f.position.x+(p.width-gh)/2,y:f.position.y+p.height+oU}}return c}function uU(){return{applyLayout:n.useCallback((a,l)=>a.length===0?a:cU(a,l),[])}}const y1=280,al=80,dU=100,il=200,$w=40,hU=80,ZS=60;function mU(e,a){const l=new Map;for(const c of a){const u=e.find(d=>d.id===c.target);(u==null?void 0:u.type)==="addStep"&&l.set(c.target,c.source)}const i=new Map(e.map(c=>[c.id,c]));return e.map(c=>{if(c.type!=="addStep")return c;const u=l.get(c.id);if(!u)return c;const d=i.get(u);if(!d)return c;const h=d.type==="conditional"?dU:al,f=d.type==="addStep"?il:y1;return{...c,position:{x:d.position.x+(f-il)/2,y:d.position.y+h+ZS}}})}function Iw(e){let a=0;for(const l of e)if(l.type==="step"||l.type==="conditional"){const i=l.id.match(/^step_(\d+)$/);i&&(a=Math.max(a,parseInt(i[1],10)))}return`step_${a+1}`}function o1(e,a){const l=new Set(e.map(c=>c.id)),i=new Set;return a.filter(c=>{if(!l.has(c.source)||!l.has(c.target))return!1;const u=`${c.source}|${c.sourceHandle??""}|${c.target}`;return i.has(u)?!1:(i.add(u),!0)})}function fU(e,a){const l=new Set,i=[e];for(;i.length>0;){const c=i.shift();for(const u of a)u.source===c&&!l.has(u.target)&&(l.add(u.target),i.push(u.target))}return l}function pU(e,a,l){const{applyLayout:i}=uU(),[c]=n.useState(()=>l!=null&&l.hasCustomPositions?mU(e,a):i(e,a)),[u,d]=n.useState(c),[h,f]=n.useState(a),[p,g]=n.useState(null),x=n.useRef(a),y=n.useRef(c);n.useEffect(()=>{x.current=h},[h]),n.useEffect(()=>{y.current=u},[u]);const w=u.find(V=>V.id===p)||null,N=n.useCallback((V,T)=>{d(k=>k.map(R=>R.id===V?{...R,position:T}:R))},[d]),E=n.useCallback((V,T)=>{d(k=>k.map(R=>R.id===V?{...R,data:{...R.data,...T}}:R))},[d]),A=n.useCallback((V,T="run_agent")=>{const k=y.current,R=x.current,O=R0(V),U=k.find(Ue=>Ue.id===O),X=U==null?void 0:U.data,K=X==null?void 0:X.branchType,$=X==null?void 0:X.conditionalNodeId,Y=k.filter(Ue=>Ue.type==="step"||Ue.type==="conditional").length,L=Iw(k),B={action_type:T,action_config:{}},Q={stepIndex:K?-1:Y,stepId:L,stepType:T,label:s0[T]||T,actionConfig:{},outputFields:O0(B)};K&&$&&(Q.branchType=K,Q.parentConditionalId=$);const he=(U==null?void 0:U.position)??{x:0,y:0},ce=he.x+(il-y1)/2,D=he.y+($w-al)/2,te={id:L,type:"step",position:{x:ce,y:D},data:Q},re=R.find(Ue=>Ue.source===V&&Ue.target===O),z=re==null?void 0:re.sourceHandle;let q=R.filter(Ue=>!(Ue.source===V&&Ue.target===O));q.push({id:`${V}->${L}`,source:V,sourceHandle:z||void 0,target:L,type:"dataFlow",data:K?{branchType:K}:void 0});const P=R0(L),oe=ce+(y1-il)/2,fe=D+al+ZS,ye={id:P,type:"addStep",position:{x:oe,y:fe},data:{parentNodeId:L,insertIndex:Y+1,...K?{branchType:K,conditionalNodeId:$}:{}}};q.push({id:`${L}->${P}`,source:L,target:P,type:"addStepEdge",data:K?{branchType:K}:void 0});const Le=k.filter(Ue=>Ue.id!==O);q=q.filter(Ue=>Ue.source!==O&&Ue.target!==O);const Ie=[...Le,te,ye];d(Ie),f(o1(Ie,q)),g(L)},[d,f]),j=n.useCallback(V=>{var L;const T=y.current,k=x.current,R=T.find(B=>B.id===V);if(!R||R.type==="trigger")return;const O=k.find(B=>B.target===V),U=k.filter(B=>B.source===V),X=O==null?void 0:O.source;let K=k.filter(B=>B.source!==V&&B.target!==V);const $=R0(V);K=K.filter(B=>B.source!==$&&B.target!==$);let Y=T.filter(B=>B.id!==V&&B.id!==$);if(X){const B=O==null?void 0:O.sourceHandle,Q=(L=O==null?void 0:O.data)==null?void 0:L.branchType,he=U.find(ce=>{const D=T.find(te=>te.id===ce.target);return D&&D.type!=="addStep"});if(he)K.push({id:`${X}->${he.target}`,source:X,sourceHandle:B,target:he.target,type:"dataFlow",data:Q?{branchType:Q}:void 0});else{const ce=R.position,D=R0(X),te={id:D,type:"addStep",position:{x:ce.x+(y1-il)/2,y:ce.y+(al-$w)/2},data:{parentNodeId:X,insertIndex:0,...Q?{branchType:Q,conditionalNodeId:X}:{}}};K.push({id:`${X}->${D}`,source:X,sourceHandle:B,target:D,type:"addStepEdge",data:Q?{branchType:Q}:void 0}),Y=[...Y,te]}}d(Y),f(o1(Y,K)),g(null)},[d,f]),S=n.useCallback((V,T,k,R)=>{const O=y.current,U=x.current,X=O.find(B=>B.id===V),K=O.find(B=>B.id===k);if(!X||!K||U.find(B=>B.source===V&&B.sourceHandle===(T==="source"?void 0:T)&&B.target===k))return;let Y=U.filter(B=>B.source!==V?!0:(B.sourceHandle||"source")!==T);Y=Y.filter(B=>B.target!==k||B.type==="addStepEdge");const L=T==="then"||T==="else"?T:void 0;Y.push({id:`${V}->${k}`,source:V,sourceHandle:T==="source"?void 0:T,target:k,type:"dataFlow",data:L?{branchType:L}:void 0}),f(o1(O,Y))},[]),Z=n.useCallback((V,T)=>{var q;const k=y.current,R=x.current,O=k.find(P=>P.id===V),U=k.find(P=>P.id===T);if(!O||!U)return;const X=Iw(k),K=R.find(P=>P.source===V&&P.target===T),$=(q=K==null?void 0:K.data)==null?void 0:q.branchType,Y={action_type:"run_agent",action_config:{}},L=(O.position.x+U.position.x)/2,B=(O.position.y+U.position.y)/2,Q={stepIndex:$?-1:k.filter(P=>P.type==="step"||P.type==="conditional").length,stepId:X,stepType:"run_agent",label:s0.run_agent,actionConfig:{},outputFields:O0(Y)};$&&V&&(Q.branchType=$,Q.parentConditionalId=V);const he={id:X,type:"step",position:{x:L,y:B},data:Q},ce=al+hU,D=fU(T,R);D.add(T);const te=k.map(P=>D.has(P.id)?{...P,position:{x:P.position.x,y:P.position.y+ce}}:P),re=[...R.filter(P=>!(P.source===V&&P.target===T)),{id:`${V}->${X}`,source:V,sourceHandle:K==null?void 0:K.sourceHandle,target:X,type:"dataFlow",data:$?{branchType:$}:void 0},{id:`${X}->${T}`,source:X,target:T,type:"dataFlow",data:$?{branchType:$}:void 0}],z=[...te,he];d(z),f(o1(z,re)),g(X)},[d,f]),C=n.useCallback((V,T)=>{if(T.type==="addStep"){const k=T.data;A(k.parentNodeId)}else g(T.id)},[A]),H=n.useCallback(()=>{g(null)},[]);return{nodes:u,edges:h,selectedNodeId:p,selectedNode:w,onNodeClick:C,onPaneClick:H,updateNodeData:E,updateNodePosition:N,addStep:A,deleteStep:j,connectNodes:S,insertStepBetween:Z,setSelectedNodeId:g,setNodes:d,setEdges:f}}const gU={trigger:{width:280,height:80},step:{width:280,height:80},conditional:{width:280,height:100},addStep:{width:200,height:40}};function xU(e){return e.width&&e.height?{width:e.width,height:e.height}:gU[e.type||"step"]||{width:280,height:80}}function vU(e){const a=new Map;for(const l of e){const{width:i,height:c}=xU(l),u=l.position.x+i/2;switch(l.type){case"trigger":a.set(`${l.id}:source`,{nodeId:l.id,handleId:"source",type:"source",x:u,y:l.position.y+c});break;case"step":a.set(`${l.id}:target`,{nodeId:l.id,handleId:"target",type:"target",x:u,y:l.position.y}),a.set(`${l.id}:source`,{nodeId:l.id,handleId:"source",type:"source",x:u,y:l.position.y+c});break;case"conditional":a.set(`${l.id}:target`,{nodeId:l.id,handleId:"target",type:"target",x:u,y:l.position.y}),a.set(`${l.id}:then`,{nodeId:l.id,handleId:"then",type:"source",x:l.position.x+i*.35,y:l.position.y+c}),a.set(`${l.id}:else`,{nodeId:l.id,handleId:"else",type:"source",x:l.position.x+i*.65,y:l.position.y+c}),a.set(`${l.id}:source`,{nodeId:l.id,handleId:"source",type:"source",x:u,y:l.position.y+c});break;case"addStep":a.set(`${l.id}:target`,{nodeId:l.id,handleId:"target",type:"target",x:u,y:l.position.y});break;default:a.set(`${l.id}:target`,{nodeId:l.id,handleId:"target",type:"target",x:u,y:l.position.y}),a.set(`${l.id}:source`,{nodeId:l.id,handleId:"source",type:"source",x:u,y:l.position.y+c});break}}return a}function bU(e,a){const l=e.sourceHandle||"source",i=`${e.source}:${l}`,c=a.get(i),u=e.targetHandle||"target",d=`${e.target}:${u}`,h=a.get(d);return!c||!h?null:{sourceX:c.x,sourceY:c.y,targetX:h.x,targetY:h.y}}function Uw(e,a,l,i,c=16){const u=l-e,d=i-a;if(Math.abs(u)<1)return`M ${e} ${a} L ${l} ${i}`;const h=a+d/2,f=Math.min(c,Math.abs(u)/2,Math.abs(d)/4),p=u>0?1:-1;return[`M ${e} ${a}`,`L ${e} ${h-f}`,`Q ${e} ${h} ${e+p*f} ${h}`,`L ${l-p*f} ${h}`,`Q ${l} ${h} ${l} ${h+f}`,`L ${l} ${i}`].join(" ")}const xh=.3,vh=2,Pw=.2,yU=.002;function wU(e,a={}){const{fitViewOnMount:l=!0,fitViewPadding:i=.3}=a,[c,u]=n.useState({x:0,y:0,zoom:1}),[d,h]=n.useState(!1),f=n.useRef(null),p=n.useRef(!1),g=n.useRef({x:0,y:0}),x=n.useRef({x:0,y:0}),y=n.useRef(!1),w=n.useCallback(H=>{if(H.length===0)return{minX:0,minY:0,maxX:100,maxY:100};let V=1/0,T=1/0,k=-1/0,R=-1/0;for(const O of H){const U=O.width||280,X=O.height||80;V=Math.min(V,O.position.x),T=Math.min(T,O.position.y),k=Math.max(k,O.position.x+U),R=Math.max(R,O.position.y+X)}return{minX:V,minY:T,maxX:k,maxY:R}},[]),N=n.useCallback(H=>{const V=f.current;if(!V)return;const T=H||e;if(T.length===0)return;const{minX:k,minY:R,maxX:O,maxY:U}=w(T),X=O-k,K=U-R,$=V.clientWidth,Y=V.clientHeight;if($===0||Y===0)return;const L=$/(X*(1+i)),B=Y/(K*(1+i)),Q=Math.min(Math.max(Math.min(L,B),xh),vh),he=(k+O)/2,ce=(R+U)/2;u({x:$/2-he*Q,y:Y/2-ce*Q,zoom:Q})},[e,w,i]);n.useEffect(()=>{if(l&&!y.current&&e.length>0){const H=setTimeout(()=>{N(),y.current=!0},50);return()=>clearTimeout(H)}},[l,e.length,N]);const E=n.useCallback(H=>{H.preventDefault();const V=f.current;if(!V)return;const T=V.getBoundingClientRect(),k=H.clientX-T.left,R=H.clientY-T.top;u(O=>{const U=-H.deltaY*yU,X=Math.min(Math.max(O.zoom+U*O.zoom,xh),vh),K=X/O.zoom;return{x:k-(k-O.x)*K,y:R-(R-O.y)*K,zoom:X}})},[]),A=n.useCallback(H=>{H.button===0&&(p.current=!0,h(!0),g.current={x:H.clientX,y:H.clientY},x.current={x:c.x,y:c.y},H.target.setPointerCapture(H.pointerId))},[c.x,c.y]),j=n.useCallback(H=>{if(!p.current)return;const V=H.clientX-g.current.x,T=H.clientY-g.current.y;u(k=>({...k,x:x.current.x+V,y:x.current.y+T}))},[]),S=n.useCallback(()=>{p.current=!1,h(!1)},[]),Z=n.useCallback(()=>{u(H=>{const V=f.current;if(!V)return H;const T=V.clientWidth/2,k=V.clientHeight/2,R=Math.min(H.zoom+Pw,vh),O=R/H.zoom;return{x:T-(T-H.x)*O,y:k-(k-H.y)*O,zoom:R}})},[]),C=n.useCallback(()=>{u(H=>{const V=f.current;if(!V)return H;const T=V.clientWidth/2,k=V.clientHeight/2,R=Math.max(H.zoom-Pw,xh),O=R/H.zoom;return{x:T-(T-H.x)*O,y:k-(k-H.y)*O,zoom:R}})},[]);return{viewport:c,isPanning:d,containerRef:f,onWheel:E,onPointerDown:A,onPointerMove:j,onPointerUp:S,fitView:N,zoomIn:Z,zoomOut:C}}const AU=20;function jU({containerRef:e,viewport:a,handleMap:l,onConnect:i}){const[c,u]=n.useState(null),[d,h]=n.useState(null),f=n.useRef(null),p=n.useRef(null),g=n.useRef(null),x=n.useCallback((j,S)=>{var C;const Z=(C=e.current)==null?void 0:C.getBoundingClientRect();return Z?{x:(j-Z.left-a.x)/a.zoom,y:(S-Z.top-a.y)/a.zoom}:{x:j,y:S}},[e,a]),y=n.useCallback((j,S,Z)=>{const C=Z.sourceType==="source"?"target":"source";let H=AU,V=null;for(const T of l.values()){if(T.type!==C||T.nodeId===Z.sourceNodeId)continue;const k=T.x-j,R=T.y-S,O=Math.sqrt(k*k+R*R);O<H&&(H=O,V={nodeId:T.nodeId,handleId:T.handleId})}return V},[l]),w=n.useCallback((j,S,Z,C)=>{var T;j.stopPropagation(),j.preventDefault();const H=x(j.clientX,j.clientY),V={sourceNodeId:S,sourceHandleId:Z,sourceType:C,cursorX:H.x,cursorY:H.y};f.current=V,u(V),(T=e.current)==null||T.setPointerCapture(j.pointerId),g.current=j.pointerId},[x,e]),N=n.useCallback(j=>{if(!f.current)return;const S=x(j.clientX,j.clientY),Z={...f.current,cursorX:S.x,cursorY:S.y};f.current=Z,u(Z);const C=y(S.x,S.y,Z);p.current=C,h(C)},[x,y]),E=n.useCallback(j=>{var C;const S=f.current;let Z=p.current;if(S&&!Z&&j){const H=x(j.clientX,j.clientY);Z=y(H.x,H.y,S)}S&&Z&&i&&(S.sourceType==="source"?i(S.sourceNodeId,S.sourceHandleId,Z.nodeId,Z.handleId):i(Z.nodeId,Z.handleId,S.sourceNodeId,S.sourceHandleId)),g.current!==null&&((C=e.current)==null||C.releasePointerCapture(g.current),g.current=null),f.current=null,p.current=null,u(null),h(null)},[i,e,x,y]);return{connectionDrag:c,handleInteractionProps:{onPointerDown:w,activeDropTarget:d},onDragPointerMove:N,onDragPointerUp:E,isDragging:c!==null}}const EU=5;function NU({containerRef:e,viewport:a}){const l=n.useRef(null),i=n.useRef(a);n.useEffect(()=>{i.current=a},[a]);const c=n.useCallback((h,f,p)=>{h.button===0&&(h.target.closest("[data-handle]")||(h.stopPropagation(),l.current={nodeId:f,startPointerX:h.clientX,startPointerY:h.clientY,startNodeX:p.x,startNodeY:p.y,isDragging:!1}))},[]),u=n.useCallback(h=>{var y;const f=l.current;if(!f)return null;const p=h.clientX-f.startPointerX,g=h.clientY-f.startPointerY;if(!f.isDragging){if(Math.sqrt(p*p+g*g)<EU)return null;f.isDragging=!0,(y=e.current)==null||y.setPointerCapture(h.pointerId)}const x=i.current;return{nodeId:f.nodeId,x:f.startNodeX+p/x.zoom,y:f.startNodeY+g/x.zoom}},[e]),d=n.useCallback(()=>{const h=l.current;if(!h)return!1;const f=h.isDragging;return l.current=null,f},[]);return{onNodePointerDown:c,onNodeDragMove:u,onNodeDragUp:d,isDragging:()=>{var h;return((h=l.current)==null?void 0:h.isDragging)??!1}}}const MU=n.memo(function({edges:a,edgeTypes:l,onInsertStep:i}){return s.jsx("svg",{className:"absolute left-0 top-0 overflow-visible",style:{width:1,height:1,pointerEvents:"none"},children:a.map(({edge:c,path:u,sourceX:d,sourceY:h,targetX:f,targetY:p})=>{const g=l[c.type||"dataFlow"];if(!g)return null;const x={id:c.id,path:u,source:c.source,target:c.target,data:c.data,sourceX:d,sourceY:h,targetX:f,targetY:p,onInsertStep:c.type==="dataFlow"?i:void 0};return s.jsx(g,{...x},c.id)})})}),SU=n.memo(function({viewport:a,gap:l=20,size:i=1,color:c="rgba(255, 255, 255, 0.03)"}){const u=l*a.zoom;return s.jsx("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:`radial-gradient(circle, ${c} ${i}px, transparent ${i}px)`,backgroundSize:`${u}px ${u}px`,backgroundPosition:`${a.x%u}px ${a.y%u}px`}})}),ZU=n.memo(function({onZoomIn:a,onZoomOut:l,onFitView:i}){return s.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:[s.jsx("button",{onClick:a,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:s.jsx(yt,{size:14,weight:"bold"})}),s.jsx("button",{onClick:l,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:s.jsx(JO,{size:14,weight:"bold"})}),s.jsx("button",{onClick:i,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:s.jsx(OO,{size:14,weight:"bold"})})]})}),Gw={trigger:"#60a5fa",conditional:"#fb923c",addStep:"rgba(255,255,255,0.1)",step:"rgba(255,255,255,0.2)"},Yw=160,Kw=100,CU=n.memo(function({nodes:a,viewport:l,containerWidth:i,containerHeight:c}){const{rects:u,viewBox:d,viewportRect:h}=n.useMemo(()=>{if(a.length===0)return{rects:[],viewBox:"0 0 100 100",viewportRect:{x:0,y:0,width:100,height:100}};let f=1/0,p=1/0,g=-1/0,x=-1/0;for(const C of a){const H=C.width||280,V=C.height||80;f=Math.min(f,C.position.x),p=Math.min(p,C.position.y),g=Math.max(g,C.position.x+H),x=Math.max(x,C.position.y+V)}const y=50;f-=y,p-=y,g+=y,x+=y;const w=g-f,N=x-p,E=a.map(C=>({id:C.id,x:C.position.x,y:C.position.y,width:C.width||(C.type==="addStep"?40:280),height:C.height||(C.type==="addStep"?40:C.type==="conditional"?100:80),color:Gw[C.type||"step"]||Gw.step})),A=-l.x/l.zoom,j=-l.y/l.zoom,S=i/l.zoom,Z=c/l.zoom;return{rects:E,viewBox:`${f} ${p} ${w} ${N}`,viewportRect:{x:A,y:j,width:S,height:Z}}},[a,l,i,c]);return s.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:Yw,height:Kw},children:s.jsxs("svg",{width:Yw,height:Kw,viewBox:d,preserveAspectRatio:"xMidYMid meet",children:[u.map(f=>s.jsx("rect",{x:f.x,y:f.y,width:f.width,height:f.height,fill:f.color,rx:4},f.id)),s.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})]})})}),CS=n.memo(function({nodes:a,edges:l,selectedNodeId:i,nodeTypes:c,edgeTypes:u,onNodeClick:d,onPaneClick:h,onConnect:f,onNodeDrag:p,onInsertStep:g,fitViewOnMount:x=!0}){const{viewport:y,isPanning:w,containerRef:N,onWheel:E,onPointerDown:A,onPointerMove:j,onPointerUp:S,fitView:Z,zoomIn:C,zoomOut:H}=wU(a,{fitViewOnMount:x}),[V,T]=n.useState({width:0,height:0});n.useEffect(()=>{const q=N.current;if(!q)return;const P=new ResizeObserver(oe=>{const fe=oe[0];fe&&T({width:fe.contentRect.width,height:fe.contentRect.height})});return P.observe(q),()=>P.disconnect()},[N]);const k=n.useMemo(()=>vU(a),[a]),{connectionDrag:R,handleInteractionProps:O,onDragPointerMove:U,onDragPointerUp:X,isDragging:K}=jU({containerRef:N,viewport:y,handleMap:k,onConnect:f}),{onNodePointerDown:$,onNodeDragMove:Y,onNodeDragUp:L,isDragging:B}=NU({containerRef:N,viewport:y}),Q=n.useMemo(()=>l.map(q=>{const P=bU(q,k);if(!P)return null;const oe=Uw(P.sourceX,P.sourceY,P.targetX,P.targetY);return{edge:q,path:oe,sourceX:P.sourceX,sourceY:P.sourceY,targetX:P.targetX,targetY:P.targetY}}).filter(q=>q!==null),[l,k]),he=n.useCallback(q=>{const P=Y(q);if(P){p==null||p(P.nodeId,{x:P.x,y:P.y});return}U(q),j(q)},[Y,p,U,j]),ce=n.useCallback(q=>{L()&&(re.current=!0),X(q),S()},[L,X,S]),D=n.useCallback(q=>{(q.target===q.currentTarget||q.target.dataset.paneTarget)&&A(q)},[A]),te=n.useCallback(q=>{(q.target===q.currentTarget||q.target.dataset.paneTarget)&&(h==null||h())},[h]),re=n.useRef(!1),z=n.useCallback((q,P,oe)=>{if(re.current){queueMicrotask(()=>{re.current=!1}),q.stopPropagation();return}q.stopPropagation(),d==null||d(P,oe)},[d]);return s.jsxs("div",{ref:N,className:"relative h-full w-full overflow-hidden",onWheel:E,onPointerMove:he,onPointerUp:ce,onPointerDown:D,onClick:te,style:{touchAction:"none",cursor:B()?"grabbing":K?"crosshair":w?"grabbing":"default"},"data-testid":"flow-canvas",children:[s.jsx(SU,{viewport:y}),s.jsxs("div",{className:"absolute origin-top-left",style:{transform:`translate(${y.x}px, ${y.y}px) scale(${y.zoom})`,willChange:"transform"},"data-pane-target":"true",children:[s.jsx(MU,{edges:Q,edgeTypes:u,onInsertStep:g}),R&&(()=>{const q=`${R.sourceNodeId}:${R.sourceHandleId}`,P=k.get(q);if(!P)return null;const oe=Uw(P.x,P.y,R.cursorX,R.cursorY);return s.jsx("svg",{className:"pointer-events-none absolute left-0 top-0 overflow-visible",style:{width:1,height:1},children:s.jsx("path",{d:oe,fill:"none",stroke:"rgba(255,255,255,0.4)",strokeWidth:2,strokeDasharray:"6 4"})})})(),a.map(q=>{const P=c[q.type||"step"];if(!P)return null;const oe=q.type!=="addStep";return s.jsx("div",{className:"absolute",style:{left:q.position.x,top:q.position.y,cursor:B()?"grabbing":"pointer"},"data-testid":`flow-node-${q.id}`,onClick:fe=>z(fe,q.id,q),onPointerDown:oe?fe=>$(fe,q.id,q.position):void 0,children:s.jsx(P,{id:q.id,data:q.data,selected:q.id===i,handleProps:O})},q.id)})]}),s.jsx(ZU,{onZoomIn:C,onZoomOut:H,onFitView:Z}),s.jsx(CU,{nodes:a,viewport:y,containerWidth:V.width,containerHeight:V.height})]})}),HU={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"},VU={webhook:"#60a5fa",schedule:"#a78bfa",event:"#fbbf24",manual:"#34d399"},Oa=n.memo(function({nodeId:a,handleId:l,type:i,position:c,left:u,colorClass:d="bg-white/30",handleProps:h}){var y,w;const f=((y=h==null?void 0:h.activeDropTarget)==null?void 0:y.nodeId)===a&&((w=h==null?void 0:h.activeDropTarget)==null?void 0:w.handleId)===l,p=n.useCallback(N=>{h==null||h.onPointerDown(N,a,l,i)},[h,a,l,i]),g=c==="top"?"-top-1.5":"-bottom-1.5",x=u??"50%";return s.jsx("div",{className:`
|
|
80
|
+
absolute ${g} h-3 w-3 -translate-x-1/2 rounded-full border-2 border-[#0a0a0a]
|
|
81
|
+
${d}
|
|
82
|
+
transition-transform duration-100
|
|
83
|
+
${f?"scale-150 ring-2 ring-white/40":""}
|
|
84
|
+
${h?"cursor-crosshair":""}
|
|
85
|
+
`,style:{left:x},onPointerDown:h?p:void 0,"data-handle":!0,"data-handle-node":a,"data-handle-id":l,"data-handle-type":i})}),_U={webhook:Ml,schedule:El,event:Pm,manual:Ym},TU={webhook:"Webhook",schedule:"Schedule",event:"Event",manual:"Manual"},LU=n.memo(function({id:a,data:l,selected:i,handleProps:c}){const u=l,d=_U[u.triggerType]||Ml,h=VU[u.triggerType]||"#60a5fa",f=TU[u.triggerType]||"Trigger";return s.jsxs("div",{className:`
|
|
86
|
+
relative w-[280px] rounded-xl border-2 bg-[#0a0a0a] px-4 py-3
|
|
87
|
+
transition-all duration-150
|
|
88
|
+
${i?"ring-2 ring-white/20 shadow-lg shadow-white/5":"hover:border-white/20"}
|
|
89
|
+
`,style:{borderColor:i?h:`${h}40`},children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg",style:{backgroundColor:`${h}15`},children:s.jsx(d,{size:20,weight:"fill",style:{color:h}})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"text-[11px] font-medium uppercase tracking-wider",style:{color:h},children:[f," Trigger"]}),s.jsx("div",{className:"truncate text-sm font-medium text-white",children:u.name||"Untitled automation"})]})]}),u.sampleFields&&u.sampleFields.length>0&&s.jsxs("div",{className:"mt-1.5 text-[10px] text-neutral-500",children:["Emits ",u.sampleFields.length," ",u.sampleFields.length===1?"field":"fields"]}),s.jsx(Oa,{nodeId:a,handleId:"source",type:"source",position:"bottom",handleProps:c})]})}),HS=n.createContext({overlayRun:null,getStepResult:()=>{}}),RU=HS.Provider;function VS(){return n.useContext(HS)}const kU={agent_prompt:Wa,run_agent:Wa,a2a_call:$r,save_contact:mF,update_contact:hF,log_contact_event:WO,webhook_forward:pF,transform_data:rF,create_task:Km,take_screenshot:Xh,generate_chart:RE},DU=n.memo(function({id:a,data:l,selected:i,handleProps:c}){const u=l,d=kU[u.stepType]||Wa,h=HU[u.stepType]||"#818cf8",f=s0[u.stepType]||u.stepType,{overlayRun:p,getStepResult:g}=VS(),x=p?g(u.stepId):void 0;return s.jsxs("div",{className:`
|
|
90
|
+
relative w-[280px] rounded-xl border bg-[#0a0a0a] px-4 py-3
|
|
91
|
+
transition-all duration-150
|
|
92
|
+
${i?"border-white/30 ring-2 ring-white/10 shadow-lg shadow-white/5":"border-white/[0.08] hover:border-white/20"}
|
|
93
|
+
`,children:[s.jsx(Oa,{nodeId:a,handleId:"target",type:"target",position:"top",handleProps:c}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${h}15`},children:s.jsx(d,{size:18,weight:"duotone",style:{color:h}})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("div",{className:"text-[10px] font-medium uppercase tracking-wider text-neutral-500",children:f}),s.jsx("div",{className:"truncate text-sm text-white",children:u.label||f})]}),u.outputFields.length>0&&s.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[u.outputFields.slice(0,2).map(y=>s.jsx("span",{className:"rounded bg-white/[0.06] px-1.5 py-0.5 font-mono text-[9px] text-neutral-500",children:y},y)),u.outputFields.length>2&&s.jsxs("span",{className:"text-[9px] text-neutral-600",children:["+",u.outputFields.length-2]})]})]}),u.inputSources&&u.inputSources.length>0&&s.jsxs("div",{className:"mt-1.5 flex items-center gap-1 text-[9px] text-neutral-600",children:[s.jsx(HO,{size:10,className:"shrink-0 text-neutral-600"}),s.jsxs("span",{className:"truncate",children:["from"," ",u.inputSources.map(y=>`${y.label}(${y.count})`).join(", ")]})]}),x&&s.jsxs("div",{className:"mt-2 border-t border-white/[0.06] pt-2",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[x.status==="completed"&&s.jsx(F0,{size:12,className:"text-emerald-400",weight:"fill"}),x.status==="failed"&&s.jsx(Sl,{size:12,className:"text-red-400",weight:"fill"}),x.status==="running"&&s.jsx(QN,{size:12,className:"animate-spin text-blue-400",weight:"bold"}),s.jsx("span",{className:`text-[10px] ${x.status==="completed"?"text-emerald-400":x.status==="failed"?"text-red-400":"text-blue-400"}`,children:x.status})]}),x.status==="completed"&&x.text_output&&s.jsxs("p",{className:"mt-1 truncate text-[9px] text-neutral-500",children:[x.text_output.slice(0,60),x.text_output.length>60?"...":""]}),x.status==="completed"&&x.output&&!x.text_output&&s.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:Object.entries(x.output).slice(0,2).map(([y,w])=>s.jsxs("span",{className:"font-mono text-[9px] text-neutral-500",children:[y,"=",String(w).slice(0,20)]},y))}),x.status==="failed"&&x.error&&s.jsx("p",{className:"mt-1 truncate text-[9px] text-red-400/80",children:x.error.slice(0,60)})]}),s.jsx(Oa,{nodeId:a,handleId:"source",type:"source",position:"bottom",handleProps:c})]})}),OU={equals:"=",not_equals:"!=",contains:"contains",not_contains:"!contains",greater_than:">",less_than:"<",exists:"exists",not_exists:"!exists"},FU=n.memo(function({id:a,data:l,selected:i,handleProps:c}){const u=l,{condition:d}=u,h=OU[d.operator]||d.operator,f=d.field?`${d.field} ${h}${d.value?` ${d.value}`:""}`:"No condition set";return s.jsxs("div",{className:`
|
|
94
|
+
relative w-[280px] rounded-xl border bg-[#0a0a0a] px-4 py-3
|
|
95
|
+
transition-all duration-150
|
|
96
|
+
${i?"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"}
|
|
97
|
+
`,children:[s.jsx(Oa,{nodeId:a,handleId:"target",type:"target",position:"top",handleProps:c}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-orange-500/10",children:s.jsx(dN,{size:18,weight:"duotone",className:"text-orange-400"})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("div",{className:"text-[10px] font-medium uppercase tracking-wider text-orange-400",children:"Conditional"}),s.jsx("div",{className:"truncate text-sm text-white/70 font-mono text-xs",children:f})]})]}),s.jsx(Oa,{nodeId:a,handleId:"then",type:"source",position:"bottom",left:"35%",colorClass:"bg-emerald-400",handleProps:c}),s.jsx("div",{className:"pointer-events-none absolute text-[9px] font-medium text-emerald-400",style:{bottom:-16,left:"35%",transform:"translateX(-50%)"},children:"Then"}),s.jsx(Oa,{nodeId:a,handleId:"else",type:"source",position:"bottom",left:"65%",colorClass:"bg-amber-400",handleProps:c}),s.jsx("div",{className:"pointer-events-none absolute text-[9px] font-medium text-amber-400",style:{bottom:-16,left:"65%",transform:"translateX(-50%)"},children:"Else"})]})}),qU=n.memo(function({id:a,data:l,handleProps:i}){return s.jsxs("div",{className:"group relative flex h-10 w-[200px] items-center justify-center",children:[s.jsx(Oa,{nodeId:a,handleId:"target",type:"target",position:"top",handleProps:i}),s.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:s.jsx(yt,{size:14,weight:"bold"})})]})}),zU=n.memo(function(a){const{path:l,source:i,target:c,data:u,sourceX:d,sourceY:h,targetX:f,targetY:p,onInsertStep:g}=a,[x,y]=n.useState(!1),{overlayRun:w,getStepResult:N}=VS(),E=u==null?void 0:u.branchType;let A;if(w){const V=N(c);(V==null?void 0:V.status)==="completed"?A="rgba(52, 211, 153, 0.5)":(V==null?void 0:V.status)==="failed"?A="rgba(248, 113, 113, 0.5)":(V==null?void 0:V.status)==="running"?A="rgba(96, 165, 250, 0.5)":A="rgba(255, 255, 255, 0.12)"}else A=E==="then"?"rgba(52, 211, 153, 0.3)":E==="else"?"rgba(251, 191, 36, 0.3)":"rgba(255, 255, 255, 0.2)";const j=n.useCallback(V=>{V.stopPropagation(),g==null||g(i,c)},[g,i,c]),S=g&&d!=null&&h!=null&&f!=null&&p!=null,Z=S?(d+f)/2:0,C=S?(h+p)/2:0,H=24;return s.jsxs("g",{onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[s.jsx("path",{d:l,fill:"none",stroke:"transparent",strokeWidth:20,style:{pointerEvents:"stroke"}}),s.jsx("path",{d:l,fill:"none",stroke:A,strokeWidth:2,style:{pointerEvents:"none"}}),S&&x&&s.jsx("foreignObject",{x:Z-H/2,y:C-H/2,width:H,height:H,style:{overflow:"visible",pointerEvents:"all"},children:s.jsx("button",{type:"button",onClick:j,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:"+"})})]})}),BU=n.memo(function(a){const{path:l}=a;return s.jsx("path",{d:l,fill:"none",stroke:"rgba(255, 255, 255, 0.15)",strokeWidth:1.5,strokeDasharray:"6 4"})}),$U=n.memo(function({nodes:a,edges:l,selectedNodeId:i,onNodeClick:c,onPaneClick:u,onConnect:d,onNodeDrag:h,onInsertStep:f}){const p=n.useMemo(()=>({trigger:LU,step:DU,conditional:FU,addStep:qU}),[]),g=n.useMemo(()=>({dataFlow:zU,addStepEdge:BU}),[]);return s.jsx("div",{className:"h-full w-full","data-testid":"flow-canvas-wrapper",children:s.jsx(CS,{nodes:a,edges:l,selectedNodeId:i,nodeTypes:p,edgeTypes:g,onNodeClick:c,onPaneClick:u,onConnect:d,onNodeDrag:h,onInsertStep:f,fitViewOnMount:!0})})});function IU({name:e,onNameChange:a,description:l,onDescriptionChange:i,onSave:c,onRun:u,saving:d,isNew:h}){const f=i0(),p=()=>{f("/automations")};return s.jsxs("div",{className:"flex h-14 shrink-0 items-center gap-3 border-b border-white/[0.06] px-4",children:[s.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:s.jsx(Xr,{size:18})}),s.jsx("div",{className:"h-5 w-px bg-white/[0.06]"}),s.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[s.jsx("input",{type:"text",value:e,onChange:g=>a(g.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"}),s.jsx("input",{type:"text",value:l,onChange:g=>i(g.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"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[u&&!h&&s.jsxs("button",{onClick:u,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:[s.jsx(Xm,{size:12,weight:"fill"}),"Run"]}),s.jsxs("button",{onClick:c,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:[s.jsx(UO,{size:14,weight:"bold"}),d?"Saving...":h?"Create":"Save"]})]})]})}function UU({onSampleParsed:e,existingSamplePayload:a}){const[l,i]=n.useState(a?"history":"paste"),[c,u]=n.useState(""),[d,h]=n.useState(null),[f,p]=n.useState([]),[g,x]=n.useState(null);function y(A){if(u(A),h(null),p([]),x(null),!!A.trim())try{const j=JSON.parse(A);if(typeof j!="object"||j===null||Array.isArray(j)){h("Must be a JSON object (not an array or primitive)");return}const{fields:S,payload:Z}=b1(j);p(S),x(Z)}catch{h("Invalid JSON")}}function w(){g&&f.length>0&&e(f,g)}function N(){if(!a)return;const{fields:A,payload:j}=b1(a);e(A,j)}const E=[{id:"paste",label:"Paste JSON",icon:kO},...a?[{id:"history",label:"Previous data",icon:Br}]:[]];return s.jsxs("div",{className:"space-y-3",children:[E.length>1&&s.jsx("div",{className:"flex gap-1 rounded-lg bg-white/[0.03] p-0.5",children:E.map(({id:A,label:j,icon:S})=>s.jsxs("button",{onClick:()=>i(A),className:`flex flex-1 items-center justify-center gap-1.5 rounded-md px-3 py-1.5 text-[11px] font-medium transition-colors ${l===A?"bg-white/[0.08] text-white":"text-neutral-500 hover:text-neutral-400"}`,children:[s.jsx(S,{size:13}),j]},A))}),l==="paste"&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("textarea",{value:c,onChange:A=>y(A.target.value),placeholder:`{
|
|
98
|
+
"email": "jane@example.com",
|
|
99
|
+
"name": "Jane Smith"
|
|
100
|
+
}`,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&&s.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] text-red-400",children:[s.jsx(Jm,{size:12}),d]}),f.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex flex-wrap gap-1",children:[f.slice(0,12).map(A=>s.jsx("span",{className:"rounded bg-white/[0.06] px-1.5 py-0.5 font-mono text-[10px] text-neutral-400",children:A},A)),f.length>12&&s.jsxs("span",{className:"px-1 text-[10px] text-neutral-600",children:["+",f.length-12," more"]})]}),s.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:[s.jsx(zr,{size:14}),"Use these ",f.length," ",f.length===1?"field":"fields"]})]})]}),l==="history"&&a&&s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"rounded-lg border border-white/[0.06] bg-white/[0.02] p-3",children:[s.jsx("p",{className:"mb-2 text-[10px] uppercase tracking-wider text-neutral-500",children:"Previously captured data"}),s.jsx("div",{className:"flex flex-wrap gap-1",children:Object.keys(b1(a).payload).slice(0,12).map(A=>s.jsx("span",{className:"rounded bg-white/[0.06] px-1.5 py-0.5 font-mono text-[10px] text-neutral-400",children:A},A))})]}),s.jsxs("button",{onClick:N,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:[s.jsx(zr,{size:14}),"Reuse this data"]})]})]})}const _S=[{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 PU(e){return _S.some(a=>a.seconds===e)}const GU=[{type:"webhook",label:"Webhook",description:"Triggered by incoming data",icon:Ml},{type:"schedule",label:"Schedule",description:"Runs on a timer",icon:El},{type:"event",label:"Event",description:"Listens for system events",icon:Pm},{type:"manual",label:"Manual",description:"Run on demand",icon:Ym}];function YU({data:e,onChange:a}){var d;const l=!PU(e.cooldownSeconds),[i,c]=n.useState(!1),u=(((d=e.sampleFields)==null?void 0:d.length)??0)>0;return s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx("label",{className:"mb-2 block text-xs uppercase tracking-wider text-neutral-400",children:"Trigger Type"}),s.jsx("div",{className:"grid grid-cols-2 gap-2",children:GU.map(({type:h,label:f,description:p,icon:g})=>s.jsxs("button",{onClick:()=>a({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:[s.jsx(g,{size:18,weight:e.triggerType===h?"fill":"regular",className:e.triggerType===h?"text-white":"text-neutral-500"}),s.jsx("span",{className:`mt-1.5 text-xs font-medium ${e.triggerType===h?"text-white":"text-neutral-400"}`,children:f}),s.jsx("span",{className:"mt-0.5 text-[10px] text-neutral-600",children:p})]},h))})]}),e.triggerType==="webhook"&&s.jsxs("div",{className:"space-y-3",children:[u&&s.jsxs("div",{className:"rounded-lg border border-emerald-500/20 bg-emerald-500/[0.05] p-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(F0,{size:14,className:"text-emerald-400",weight:"fill"}),s.jsxs("span",{className:"text-xs font-medium text-emerald-400",children:[e.sampleFields.length," ",e.sampleFields.length===1?"field":"fields"," loaded"]})]}),s.jsx("button",{onClick:()=>a({sampleFields:[],samplePayload:null}),className:"text-neutral-500 hover:text-neutral-400",children:s.jsx(Sa,{size:14})})]}),s.jsxs("div",{className:"mt-2 flex flex-wrap gap-1",children:[e.sampleFields.slice(0,8).map(h=>s.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&&s.jsxs("span",{className:"px-1 text-[10px] text-neutral-600",children:["+",e.sampleFields.length-8," more"]})]})]}),s.jsxs("div",{children:[s.jsxs("button",{onClick:()=>c(!i),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:[s.jsx("span",{children:u?"Change sample data":"Load sample data"}),s.jsx(tn,{size:12,className:`transition-transform ${i?"rotate-180":""}`})]}),i&&s.jsx("div",{className:"mt-2",children:s.jsx(UU,{existingSamplePayload:e.samplePayload,onSampleParsed:(h,f)=>{a({sampleFields:h,samplePayload:f}),c(!1)}})})]})]}),e.triggerType==="schedule"&&s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Schedule"}),s.jsx(jM,{value:e.triggerConfig.cron||"",onChange:h=>a({triggerConfig:{...e.triggerConfig,cron:h}})})]}),e.triggerType==="event"&&s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"System Event"}),s.jsxs("select",{value:e.triggerConfig.event_name||"",onChange:h=>a({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:[s.jsx("option",{value:"",className:"bg-black",children:"Select event..."}),s.jsx("option",{value:"task_completed",className:"bg-black",children:"Task Completed"}),s.jsx("option",{value:"agent_error",className:"bg-black",children:"Agent Error"}),s.jsx("option",{value:"contact_created",className:"bg-black",children:"Contact Created"})]})]}),(e.triggerType==="webhook"||e.triggerType==="event")&&s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Run at most every"}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("select",{value:l?-1:e.cooldownSeconds,onChange:h=>{const f=parseInt(h.target.value,10);a(f===-1?{cooldownSeconds:e.cooldownSeconds||120}:{cooldownSeconds:f})},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:[_S.map(h=>s.jsx("option",{value:h.seconds,className:"bg-black",children:h.label},h.seconds)),s.jsx("option",{value:-1,className:"bg-black",children:"Custom"})]}),l&&s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("input",{type:"number",value:e.cooldownSeconds,onChange:h=>a({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"}),s.jsx("span",{className:"text-xs text-neutral-500",children:"seconds"})]})]}),s.jsx("p",{className:"mt-1 text-[10px] text-neutral-600",children:"Prevents this automation from running too often"})]})]})}function Dr({value:e,onChange:a,placeholder:l,fieldGroups:i,mode:c="path",className:u}){const[d,h]=n.useState(!1),f=n.useRef(null),p=n.useRef(null);n.useEffect(()=>{if(!d)return;const y=w=>{f.current&&!f.current.contains(w.target)&&h(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[d]);const g=y=>{a(c==="template"?`{{${y}}}`:y),h(!1)},x=i.some(y=>y.fields.length>0);return s.jsxs("div",{ref:f,className:"relative",children:[s.jsxs("div",{className:"flex",children:[s.jsx("input",{ref:p,type:"text",value:e,onChange:y=>a(y.target.value),placeholder:l,className:u||"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:()=>x&&h(!0)}),x&&s.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:s.jsx(tn,{size:12})})]}),d&&x&&s.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:i.map(y=>y.fields.length===0?null:s.jsxs("div",{children:[s.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:y.label}),y.fields.map(w=>s.jsxs("button",{type:"button",onClick:()=>g(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:[s.jsx("span",{className:"font-mono text-neutral-300",children:w.name}),w.value&&s.jsx("span",{className:"text-neutral-600 truncate",children:w.value})]},w.path))]},y.prefix))})]})}function lm({fieldGroups:e,textareaRef:a,onInsert:l}){const[i,c]=n.useState(!1),u=n.useRef(null);n.useEffect(()=>{if(!i)return;const f=p=>{u.current&&!u.current.contains(p.target)&&c(!1)};return document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)},[i]);const d=f=>{const p=a.current;if(!p)return;const g=p.selectionStart??p.value.length,x=p.selectionEnd??g,y=p.value,w=`{{${f}}}`,N=y.substring(0,g)+w+y.substring(x);l(N),c(!1),requestAnimationFrame(()=>{p.focus();const E=g+w.length;p.setSelectionRange(E,E)})};return e.some(f=>f.fields.length>0)?s.jsxs("div",{ref:u,className:"relative inline-block",children:[s.jsx("button",{type:"button",onClick:()=>c(!i),className:"text-[10px] text-neutral-500 hover:text-neutral-300 transition-colors",children:"+ Insert field"}),i&&s.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(f=>f.fields.length===0?null:s.jsxs("div",{children:[s.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:f.label}),f.fields.map(p=>s.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:[s.jsx("span",{className:"font-mono text-neutral-300",children:p.name}),p.value&&s.jsx("span",{className:"text-neutral-600 truncate",children:p.value})]},p.path))]},f.prefix))})]}):null}function KU({config:e,onChange:a,previousSteps:l,sampleFields:i,samplePayload:c}){const[u,d]=n.useState([]),h=n.useRef(null),f=n.useRef(null);n.useEffect(()=>{me("/api/agents").then(j=>d(j.data)).catch(()=>{})},[]);const p=e.agent_id||"",g=e.agent_name||"",x=e.task_prompt||"",y=e.image_url||"",w=Cl({sampleFields:i,samplePayload:c,previousSteps:l}),N=n.useMemo(()=>w.flatMap(j=>j.fields.map(S=>S.path)),[w]),E=n.useMemo(()=>{if(!y||i.length===0)return[];const j=SM(y);return Oz(j,N)},[y,i,N]),A=j=>{const S=u.find(Z=>Z.id===j);a({...e,agent_id:j,agent_name:(S==null?void 0:S.name)||""})};return s.jsxs("div",{className:"space-y-3","data-testid":"agent-prompt-config",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent"}),s.jsxs("select",{value:p,onChange:j=>A(j.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:[s.jsx("option",{value:"",className:"bg-black",children:"Select an agent..."}),u.map(j=>s.jsxs("option",{value:j.id,className:"bg-black",children:[j.name," (",j.role,")"]},j.id))]}),g&&p&&s.jsxs("p",{className:"text-[10px] text-neutral-600 mt-1",children:["Selected: ",g]})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsxs("label",{className:"text-xs text-neutral-400",children:["Task Prompt",s.jsxs("span",{className:"text-neutral-600 ml-1",children:["Use ","{{trigger.field}}"," or ","{{step_1.field}}"," for variables"]})]}),s.jsx(lm,{fieldGroups:w,textareaRef:h,onInsert:j=>a({...e,task_prompt:j})})]}),s.jsx("textarea",{ref:h,value:x,onChange:j=>a({...e,task_prompt:j.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"})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsxs("label",{className:"text-xs text-neutral-400",children:["Image URL",s.jsx("span",{className:"text-neutral-600 ml-1",children:"(optional)"})]}),s.jsx(lm,{fieldGroups:w,textareaRef:f,onInsert:j=>a({...e,image_url:j})})]}),s.jsx("input",{ref:f,type:"text",value:y,onChange:j=>a({...e,image_url:j.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"}),E.length>0&&s.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:[s.jsx(Jm,{size:12,className:"text-amber-400 mt-0.5 flex-shrink-0"}),s.jsxs("p",{className:"text-[10px] text-amber-400",children:["Unknown ",E.length===1?"field":"fields",":"," ",E.map(j=>`{{${j}}}`).join(", "),"."," ","This may not resolve at runtime."]})]})]})]})}const XU=[{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 QU({config:e,onChange:a,previousSteps:l,sampleFields:i,samplePayload:c}){const u=e.mappings||[],d=(g,x,y)=>{const w=u.map((N,E)=>E===g?{...N,[x]:y||void 0}:N);a({...e,mappings:w})},h=()=>{a({...e,mappings:[...u,{target:"",source:""}]})},f=g=>{a({...e,mappings:u.filter((x,y)=>y!==g)})},p=Cl({sampleFields:i,samplePayload:c,previousSteps:l});return s.jsxs("div",{className:"space-y-3","data-testid":"transform-data-config",children:[s.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."}),u.map((g,x)=>s.jsxs("div",{className:"grid grid-cols-[1fr_1fr_auto_auto] gap-2 items-end",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Source"}),s.jsx(Dr,{value:g.source||"",onChange:y=>d(x,"source",y),placeholder:"trigger.email",fieldGroups:p})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Target Field"}),s.jsx("input",{type:"text",value:g.target||"",onChange:y=>d(x,"target",y.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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Transform"}),s.jsx("select",{value:g.transform||"",onChange:y=>d(x,"transform",y.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:XU.map(({value:y,label:w})=>s.jsx("option",{value:y,className:"bg-black",children:w},y))})]}),s.jsx("button",{onClick:()=>f(x),className:"p-2 text-neutral-600 hover:text-red-400 transition-colors",children:s.jsx(It,{size:14})})]},x)),s.jsxs("button",{onClick:h,className:"flex items-center gap-1 text-xs text-neutral-400 hover:text-white transition-colors",children:[s.jsx(yt,{size:12,weight:"bold"}),"Add Mapping"]})]})}function JU({stepType:e,config:a,onChange:l,previousSteps:i,sampleFields:c,samplePayload:u}){const d=Cl({sampleFields:c,samplePayload:u,previousSteps:i});return e==="save_contact"?s.jsxs("div",{className:"space-y-3",children:[s.jsx("p",{className:"text-xs text-neutral-500",children:"Map incoming data to contact fields."}),["name","email","phone","company"].map(h=>s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1 capitalize",children:h}),s.jsx(Dr,{value:a[h]||"",onChange:f=>l({...a,[h]:f}),placeholder:`trigger.${h}`,fieldGroups:d})]},h)),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Tags"}),s.jsx("input",{type:"text",value:a.tags||"",onChange:h=>l({...a,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"}),s.jsx("p",{className:"text-[10px] text-neutral-600 mt-1",children:"Comma-separated tags"})]})]}):e==="update_contact"?s.jsxs("div",{className:"space-y-3",children:[s.jsx("p",{className:"text-xs text-neutral-500",children:"Find a contact and update their fields."}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Find by email"}),s.jsx(Dr,{value:a.lookup_email||"",onChange:h=>l({...a,lookup_email:h}),placeholder:"trigger.email",fieldGroups:d})]}),["name","phone","company"].map(h=>s.jsxs("div",{children:[s.jsxs("label",{className:"text-xs text-neutral-400 block mb-1 capitalize",children:["New ",h]}),s.jsx(Dr,{value:a[h]||"",onChange:f=>l({...a,[h]:f}),placeholder:`trigger.${h}`,fieldGroups:d})]},h))]}):s.jsxs("div",{className:"space-y-3",children:[s.jsx("p",{className:"text-xs text-neutral-500",children:"Log an event to a contact's timeline."}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Contact email"}),s.jsx(Dr,{value:a.contact_email||"",onChange:h=>l({...a,contact_email:h}),placeholder:"trigger.email",fieldGroups:d})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Event type"}),s.jsx("input",{type:"text",value:a.event_type||"",onChange:h=>l({...a,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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description"}),s.jsx("input",{type:"text",value:a.description||"",onChange:h=>l({...a,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 WU({config:e,onChange:a,previousSteps:l,sampleFields:i,samplePayload:c}){const u=n.useRef(null),d=Cl({sampleFields:i,samplePayload:c,previousSteps:l});return s.jsxs("div",{className:"space-y-3","data-testid":"webhook-forward-config",children:[s.jsx("p",{className:"text-xs text-neutral-500",children:"Forward data to an external URL."}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsx("label",{className:"text-xs text-neutral-400",children:"URL"}),s.jsx(lm,{fieldGroups:d,textareaRef:u,onInsert:h=>a({...e,url:h})})]}),s.jsx("input",{ref:u,type:"text",value:e.url||"",onChange:h=>a({...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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Method"}),s.jsxs("select",{value:e.method||"POST",onChange:h=>a({...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:[s.jsx("option",{value:"POST",className:"bg-black",children:"POST"}),s.jsx("option",{value:"PUT",className:"bg-black",children:"PUT"}),s.jsx("option",{value:"PATCH",className:"bg-black",children:"PATCH"})]})]}),s.jsx("div",{children:s.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[s.jsx("input",{type:"checkbox",checked:e.include_all_data??!0,onChange:h=>a({...e,include_all_data:h.target.checked}),className:"rounded border-white/20 bg-white/[0.03]"}),s.jsx("span",{className:"text-xs text-neutral-400",children:"Include all trigger and step data"})]})})]})}const eP=[{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 tP({config:e,onChange:a,previousSteps:l,sampleFields:i,samplePayload:c}){const u=e.condition||{field:"",operator:"equals",value:""},d=!["exists","not_exists"].includes(u.operator),h=Cl({sampleFields:i,samplePayload:c,previousSteps:l}),f=(p,g)=>{const x={...u,[p]:g};a({...e,condition:x})};return s.jsxs("div",{className:"space-y-3","data-testid":"condition-form",children:[s.jsx("p",{className:"text-xs text-neutral-500",children:"Branch execution based on a condition. Pick a field or type a path manually."}),s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Field"}),s.jsx(Dr,{value:u.field,onChange:p=>f("field",p),placeholder:"trigger.country",fieldGroups:h})]}),s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Operator"}),s.jsx("select",{value:u.operator,onChange:p=>f("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:eP.map(({value:p,label:g})=>s.jsx("option",{value:p,className:"bg-black",children:g},p))})]}),d&&s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Value"}),s.jsx("input",{type:"text",value:u.value||"",onChange:p=>f("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 aP=Object.entries(s0);function nP({data:e,node:a,onChange:l,nodes:i}){const c=rP(a,i),u=sP(i),d=lP(i),h=g=>{const x={id:e.stepId,action_type:g,action_config:{}};l({stepType:g,label:s0[g]||g,actionConfig:{},outputFields:O0(x)})},f=g=>{const x={id:e.stepId,action_type:e.stepType,action_config:g};l({actionConfig:g,outputFields:O0(x)})},p=g=>{l({label:g})};return s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Label"}),s.jsx("input",{type:"text",value:e.label,onChange:g=>p(g.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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Step Type"}),s.jsx("select",{value:e.stepType,onChange:g=>h(g.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:aP.map(([g,x])=>s.jsx("option",{value:g,className:"bg-black",children:x},g))}),s.jsx("p",{className:"mt-1 text-[10px] text-neutral-600",children:Dz[e.stepType]||""})]}),s.jsxs("div",{className:"border-t border-white/[0.06] pt-4",children:[(e.stepType==="agent_prompt"||e.stepType==="run_agent")&&s.jsx(KU,{config:e.actionConfig,onChange:f,previousSteps:c,sampleFields:u,samplePayload:d}),e.stepType==="transform_data"&&s.jsx(QU,{config:e.actionConfig,onChange:f,previousSteps:c,sampleFields:u,samplePayload:d}),e.stepType==="conditional"&&s.jsx(tP,{config:e.actionConfig,onChange:f,previousSteps:c,sampleFields:u,samplePayload:d}),(e.stepType==="save_contact"||e.stepType==="update_contact"||e.stepType==="log_contact_event")&&s.jsx(JU,{stepType:e.stepType,config:e.actionConfig,onChange:f,previousSteps:c,sampleFields:u}),e.stepType==="webhook_forward"&&s.jsx(WU,{config:e.actionConfig,onChange:f,previousSteps:c,sampleFields:u})]})]})}function rP(e,a){const l=a.filter(c=>(c.type==="step"||c.type==="conditional")&&c.id!==e.id),i=e.data;return l.filter(c=>{const u=c.data;return u.stepIndex>=0&&u.stepIndex<i.stepIndex}).sort((c,u)=>{const d=c.data,h=u.data;return d.stepIndex-h.stepIndex}).map(c=>{const u=c.data;return{id:u.stepId,action_type:u.stepType,action_config:u.actionConfig,label:u.label}})}function sP(e){const a=e.find(i=>i.id===Ka);return a?a.data.sampleFields||[]:[]}function lP(e){const a=e.find(i=>i.id===Ka);return a&&a.data.samplePayload||null}function iP({selectedNode:e,onClose:a,onUpdateNodeData:l,onDeleteStep:i,nodes:c,automationId:u}){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 s.jsx(za,{children:e&&s.jsx(Te.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:s.jsxs("div",{className:"flex h-full w-[400px] flex-col",children:[s.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b border-white/[0.06] px-4",children:[s.jsx("h3",{className:"text-sm font-medium text-white",children:d?"Trigger":"Step Configuration"}),s.jsxs("div",{className:"flex items-center gap-1",children:[h&&!d&&s.jsx("button",{onClick:()=>i(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:s.jsx(It,{size:14})}),s.jsx("button",{onClick:a,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:s.jsx(Sa,{size:14})})]})]}),s.jsxs("div",{className:"flex-1 overflow-y-auto p-4 pb-6",children:[d&&s.jsx(YU,{data:e.data,onChange:f=>l(e.id,f)}),h&&!d&&s.jsx(nP,{data:e.data,node:e,onChange:f=>l(e.id,f),nodes:c,automationId:u})]})]})})})}const Xw={completed:zr,failed:Sa,running:QN,pending:Br,cancelled:Sa},Qw={completed:"text-emerald-400",failed:"text-red-400",running:"text-blue-400",pending:"text-neutral-400",cancelled:"text-neutral-500"};function Jw(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}function oP({runs:e,selectedRun:a,onSelectRun:l,overlayEnabled:i,onToggleOverlay:c}){const[u,d]=n.useState(!1),h=a||e[0]||null,f=e.length>0;return s.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:[s.jsx(ca,{size:14,className:"text-neutral-500",weight:"fill"}),f?s.jsxs(s.Fragment,{children:[s.jsx("button",{onClick:()=>c(!i),className:`relative h-5 w-9 rounded-full transition-colors ${i?"bg-white/20":"bg-white/[0.06]"}`,children:s.jsx("div",{className:`absolute top-0.5 h-4 w-4 rounded-full bg-white transition-all ${i?"left-[18px]":"left-0.5"}`})}),s.jsxs("div",{className:"relative",children:[s.jsxs("button",{onClick:()=>d(!u),className:"flex items-center gap-1.5 text-[11px] text-neutral-400 hover:text-neutral-300",children:[h&&(()=>{const p=Xw[h.status]||Br;return s.jsx(p,{size:12,className:`${Qw[h.status]||"text-neutral-400"} ${h.status==="running"?"animate-spin":""}`,weight:h.status==="running"?"bold":"fill"})})(),s.jsx("span",{children:h?Jw(h.created_at):"Select run"}),s.jsx(tn,{size:10})]}),u&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>d(!1)}),s.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 x;const g=Xw[p.status]||Br;return s.jsxs("button",{onClick:()=>{l(p),c(!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] ${(a==null?void 0:a.id)===p.id?"bg-white/[0.05] text-white":"text-neutral-400"}`,children:[s.jsx(g,{size:11,className:`${Qw[p.status]} ${p.status==="running"?"animate-spin":""}`,weight:p.status==="running"?"bold":"fill"}),s.jsx("span",{className:"flex-1",children:Jw(p.created_at)}),s.jsxs("span",{className:"text-[10px] text-neutral-600",children:[((x=p.step_results)==null?void 0:x.length)||0,"/",p.total_steps," steps"]})]},p.id)})})]})]})]}):s.jsx("span",{className:"text-[11px] text-neutral-600",children:"No runs yet"})]})}const cP=[];function uP({automation:e}){const a=i0(),l=!e,[i,c]=n.useState(cP),[u,d]=n.useState(!1),[h,f]=n.useState(null),p=n.useMemo(()=>u&&(h||i[0])||null,[u,h,i]),g=n.useCallback(re=>{var z;if(p)return(z=p.step_results)==null?void 0:z.find(q=>q.step_id===re)},[p]),x=n.useMemo(()=>({overlayRun:p,getStepResult:g}),[p,g]);n.useEffect(()=>{e!=null&&e.id&&me(`/api/automations/${e.id}/runs`).then(re=>{var z;return c(((z=re.data)==null?void 0:z.runs)||[])}).catch(()=>{})},[e==null?void 0:e.id]);const{nodes:y,edges:w,hasCustomPositions:N}=n.useMemo(()=>e?ZM(e):$z(),[e==null?void 0:e.id]),{nodes:E,edges:A,selectedNode:j,selectedNodeId:S,onNodeClick:Z,onPaneClick:C,updateNodeData:H,updateNodePosition:V,deleteStep:T,connectNodes:k,insertStepBetween:R,setSelectedNodeId:O}=pU(y,w,{hasCustomPositions:N}),[U,X]=n.useState(!1),K=E.find(re=>re.id===Ka),$=K==null?void 0:K.data,Y=($==null?void 0:$.name)||"",L=($==null?void 0:$.description)||"",B=n.useCallback(re=>{H(Ka,{name:re})},[H]),Q=n.useCallback(re=>{H(Ka,{description:re})},[H]),he=n.useCallback(async()=>{var re,z;if(!Y.trim()){ue("error","Give it a name first");return}X(!0);try{const q=qz(E,A),P=((re=E.find(fe=>fe.id===Ka))==null?void 0:re.data)??{},oe={name:q.name,description:q.description,trigger_type:q.trigger_type,trigger_config:q.trigger_config,steps:q.steps,variables:q.variables,cooldown_seconds:q.cooldown_seconds,node_positions:q.node_positions,sample_payload:P.samplePayload??null,sample_fields:(z=P.sampleFields)!=null&&z.length?P.sampleFields:null};if(l){const fe=await me("/api/automations",{method:"POST",body:JSON.stringify(oe)});ue("success","Automation created"),a(`/automations/${fe.data.id}/edit`)}else await me(`/api/automations/${e.id}`,{method:"PATCH",body:JSON.stringify(oe)}),ue("success","Automation updated")}catch(q){ue("error",q instanceof Error?q.message:"Something went wrong")}finally{X(!1)}},[Y,E,A,l,e,a]),ce=n.useCallback(async()=>{if(e!=null&&e.id)try{await me(`/api/automations/${e.id}/execute`,{method:"POST"}),ue("success","Automation started")}catch(re){ue("error",re instanceof Error?re.message:"Couldn't run automation. Try again?")}},[e==null?void 0:e.id]),D=n.useCallback((re,z)=>{V(re,z)},[V]),te=n.useCallback(()=>{O(null)},[O]);return n.useEffect(()=>{const re=z=>{const q=z.target.tagName;q==="INPUT"||q==="TEXTAREA"||q==="SELECT"||(z.key==="Escape"&&O(null),(z.key==="Delete"||z.key==="Backspace")&&j&&j.type!=="trigger"&&T(j.id),(z.metaKey||z.ctrlKey)&&z.key==="s"&&(z.preventDefault(),he()))};return window.addEventListener("keydown",re),()=>window.removeEventListener("keydown",re)},[j,T,he,O]),s.jsxs("div",{className:"flex h-full flex-col","data-testid":"flow-builder",children:[s.jsx(IU,{name:Y,onNameChange:B,description:L,onDescriptionChange:Q,onSave:he,onRun:(e==null?void 0:e.trigger_type)==="manual"?ce:void 0,saving:U,isNew:l}),s.jsx(RU,{value:x,children:s.jsxs("div",{className:"flex min-h-0 flex-1",children:[s.jsxs("div",{className:"relative min-w-0 flex-1",children:[s.jsx($U,{nodes:E,edges:A,selectedNodeId:S,onNodeClick:Z,onPaneClick:C,onConnect:k,onNodeDrag:D,onInsertStep:R}),!l&&s.jsx(oP,{runs:i,selectedRun:h,onSelectRun:f,overlayEnabled:u,onToggleOverlay:d})]}),s.jsx(iP,{selectedNode:j,onClose:te,onUpdateNodeData:H,onDeleteStep:T,nodes:E,automationId:e==null?void 0:e.id})]})})]})}function Ww(){const{id:e}=xl(),[a,l]=n.useState(null),[i,c]=n.useState(!!e);return n.useEffect(()=>{e&&me(`/api/automations/${e}`).then(u=>l(u.data)).catch(()=>{}).finally(()=>c(!1))},[e]),i?s.jsx("div",{className:"flex h-full items-center justify-center",children:s.jsx("div",{className:"text-sm text-neutral-500",children:"Loading..."})}):s.jsx("div",{className:"h-full",children:s.jsx(uP,{automation:e?a:void 0})})}function nn({icon:e,title:a,description:l,capabilities:i,action:c,variant:u="full"}){if(u==="compact")return s.jsxs("div",{className:"border border-white/[0.06] bg-white/[0.02] rounded-lg p-4 flex items-center gap-4",children:[s.jsx("div",{className:"shrink-0 w-10 h-10 rounded-lg bg-white/[0.04] flex items-center justify-center",children:s.jsx(e,{size:20,className:"text-neutral-400"})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium text-neutral-300",children:a}),s.jsx("div",{className:"flex gap-2 mt-1.5 flex-wrap",children:i.map(h=>s.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))})]}),c&&s.jsxs("button",{onClick:c.onClick,className:"text-xs text-neutral-400 hover:text-white transition-colors shrink-0",children:[c.label," →"]})]});const d=i.length<=2?"grid-cols-2":i.length===3?"grid-cols-3":"grid-cols-2 md:grid-cols-4";return s.jsxs(Te.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:[s.jsxs("div",{className:"flex flex-col items-center text-center max-w-lg mx-auto",children:[s.jsx("div",{className:"w-14 h-14 rounded-xl bg-white/[0.04] flex items-center justify-center mb-4",children:s.jsx(e,{size:28,className:"text-neutral-400"})}),s.jsx("h3",{className:"text-sm font-medium text-neutral-300",children:a}),l&&s.jsx("p",{className:"text-xs text-neutral-500 mt-1.5 max-w-sm",children:l})]}),s.jsx("div",{className:`grid ${d} gap-3 mt-8 max-w-2xl mx-auto`,children:i.map((h,f)=>s.jsxs(Te.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3,delay:.05*f},className:"border border-white/[0.06] bg-white/[0.02] rounded-lg p-3",children:[s.jsx(h.icon,{size:16,className:"text-neutral-500 mb-2"}),s.jsx("p",{className:"text-xs font-medium text-neutral-300",children:h.label}),h.description&&s.jsx("p",{className:"text-[10px] text-neutral-500 mt-0.5",children:h.description})]},h.label))}),c&&s.jsx("div",{className:"flex justify-center mt-6",children:s.jsx("button",{onClick:c.onClick,className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:c.label})})]})}function wf(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}const dP=[{id:"overview",label:"Overview"},{id:"outbound",label:"Outbound"},{id:"activity",label:"Activity"}];function hP(){const[e,a]=n.useState("overview"),[l,i]=n.useState(""),[c,u]=n.useState(!1),[d,h]=n.useState(null),[f,p]=n.useState(null),[g,x]=n.useState(null),[y,w]=n.useState(!1),{data:N,loading:E,refetch:A}=Ae("/api/a2a/connections"),j=n.useMemo(()=>{if(!N)return[];if(!l.trim())return N;const V=l.toLowerCase();return N.filter(T=>T.name.toLowerCase().includes(V)||T.endpoint_url.toLowerCase().includes(V))},[N,l]),S=n.useMemo(()=>N?{total:N.length,active:N.filter(V=>V.status==="active").length,error:N.filter(V=>V.status==="error").length}:{total:0,active:0,error:0},[N]),Z=async V=>{h(V);try{await me(`/api/a2a/connections/${V}/test`,{method:"POST"}),ue("success","Connection is healthy"),A()}catch{ue("error","Connection test failed"),A()}finally{h(null)}},C=async()=>{if(g){w(!0);try{await me(`/api/a2a/connections/${g.id}`,{method:"DELETE"}),ue("success","Connection deleted"),A()}catch{ue("error","Couldn't delete connection")}finally{w(!1),x(null)}}},H=!E&&(!N||N.length===0);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Connections",subtitle:"Agent-to-Agent protocol connections",action:s.jsxs("button",{onClick:()=>{u(!c),a("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:[s.jsx(yt,{size:14})," New connection"]})}),s.jsx("div",{className:"mb-6",children:s.jsx(Zl,{tabs:dP,activeTab:e,onTabChange:a,layoutId:"connections-tab"})}),e==="overview"&&s.jsx(mP,{stats:S,connections:N||[],loading:E,isEmpty:H,onAddConnection:()=>{u(!0),a("outbound")}}),e==="outbound"&&s.jsx(fP,{connections:j,loading:E,search:l,onSearchChange:i,testing:d,onTest:Z,onView:p,onDelete:x,showForm:c,onToggleForm:()=>u(!c),onFormSuccess:()=>{A(),u(!1)}}),e==="activity"&&s.jsx(pP,{connections:N||[],loading:E}),f&&s.jsx(xP,{connection:f,onClose:()=>p(null),onTest:()=>Z(f.id),testing:d===f.id}),s.jsx(c0,{open:!!g,onClose:()=>x(null),onConfirm:C,title:"Delete connection",message:`Delete "${g==null?void 0:g.name}"? This can't be undone.`,confirmLabel:"Delete",loading:y})]})}function mP({stats:e,connections:a,loading:l,isEmpty:i,onAddConnection:c}){return l?s.jsx(We,{count:4}):i?s.jsx(nn,{icon:$r,title:"No connections yet",description:"Connect to external A2A agents to delegate tasks and share capabilities.",capabilities:[{icon:Um,label:"Outbound calls",description:"Delegate tasks to remote agents"},{icon:Xr,label:"Inbound requests",description:"Receive tasks from other workspaces"},{icon:Gh,label:"Bidirectional",description:"Full two-way communication"},{icon:Fr,label:"Health monitoring",description:"Track connection status"}],action:{label:"Add your first connection",onClick:c}}):s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[s.jsx(Ht,{label:"Connections",value:e.total}),s.jsx(Ht,{label:"Active",value:e.active,color:"text-success"}),s.jsx(Ht,{label:"Errors",value:e.error,color:e.error>0?"text-critical":void 0})]}),s.jsx("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-6",children:s.jsxs("div",{className:"flex items-center justify-center gap-8",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("p",{className:"text-[10px] uppercase tracking-wider text-neutral-500 mb-2",children:"Outbound"}),s.jsxs("div",{className:"space-y-1.5",children:[a.slice(0,3).map(u=>s.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[s.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${u.status==="active"?"bg-success":"bg-warning"}`}),s.jsx("span",{className:"text-neutral-300 truncate max-w-[120px]",children:u.name})]},u.id)),a.length>3&&s.jsxs("p",{className:"text-[10px] text-neutral-500",children:["+",a.length-3," more"]})]})]}),s.jsxs("div",{className:"flex flex-col items-center",children:[s.jsx(Gh,{size:20,className:"text-neutral-500 mb-1"}),s.jsx("div",{className:"w-12 h-12 rounded-full border border-white/10 bg-white/[0.04] flex items-center justify-center",children:s.jsx($r,{size:20,className:"text-white"})}),s.jsx("p",{className:"text-[10px] text-neutral-500 mt-1",children:"Your workspace"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("p",{className:"text-[10px] uppercase tracking-wider text-neutral-500 mb-2",children:"Inbound"}),s.jsx("p",{className:"text-xs text-neutral-500",children:"API keys not yet configured"})]})]})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider mb-2",children:"Recent connections"}),s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:a.slice(0,5).map(u=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[s.jsx("span",{className:`w-2 h-2 rounded-full shrink-0 ${u.status==="active"?"bg-success":u.status==="error"?"bg-critical":"bg-warning"}`}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:u.name}),s.jsx("p",{className:"text-xs text-neutral-500 truncate",children:u.endpoint_url})]})]}),s.jsx(ht,{status:u.status})]},u.id))})]})]})}function fP({connections:e,loading:a,search:l,onSearchChange:i,testing:c,onTest:u,onView:d,onDelete:h,showForm:f,onToggleForm:p,onFormSuccess:g}){return s.jsxs("div",{children:[f&&s.jsx("div",{className:"mb-4",children:s.jsx(gP,{onClose:p,onSuccess:g})}),s.jsxs("div",{className:"relative mb-4",children:[s.jsx(Mn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),s.jsx("input",{value:l,onChange:x=>i(x.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"})]}),a?s.jsx(We,{count:4}):e.length?s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(x=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("button",{className:"min-w-0 mr-3 text-left flex-1",onClick:()=>d(x),children:[s.jsx("p",{className:"text-sm font-medium truncate hover:text-white transition-colors",children:x.name}),s.jsxs("p",{className:"text-xs text-neutral-400 truncate",children:[s.jsx("span",{className:"text-white",children:x.endpoint_url}),s.jsxs("span",{className:"ml-2",children:["· ",x.trust_level.replace(/_/g," ")]}),x.last_health_check_at&&s.jsxs("span",{className:"ml-2",children:["· checked ",wf(x.last_health_check_at)]})]}),x.skills&&x.skills.length>0&&s.jsxs("div",{className:"flex gap-1 mt-1",children:[x.skills.slice(0,3).map(y=>s.jsx("span",{className:"text-[10px] bg-white/[0.06] px-1.5 py-0.5 rounded text-neutral-400",children:y},y)),x.skills.length>3&&s.jsxs("span",{className:"text-[10px] text-neutral-400",children:["+",x.skills.length-3]})]})]}),s.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[s.jsx(ht,{status:x.status}),s.jsx("button",{onClick:()=>d(x),className:"text-neutral-400 hover:text-white transition-colors",title:"Details",children:s.jsx(Gm,{size:14})}),s.jsx("button",{onClick:()=>u(x.id),disabled:c===x.id,className:"text-neutral-400 hover:text-white transition-colors disabled:opacity-50",title:"Test connection",children:s.jsx(jl,{size:14,className:c===x.id?"animate-spin":""})}),s.jsx("button",{onClick:()=>h(x),className:"text-neutral-400 hover:text-critical transition-colors",title:"Delete",children:s.jsx(It,{size:14})})]})]},x.id))}):s.jsx(Vt,{icon:s.jsx($r,{size:32}),title:l?"No matches":"No outbound connections",description:l?`Nothing matching "${l}".`:"Add a connection to start delegating tasks."})]})}function pP({connections:e,loading:a}){if(a)return s.jsx(We,{count:4});const l=e.filter(i=>i.last_health_check_at).sort((i,c)=>new Date(c.last_health_check_at).getTime()-new Date(i.last_health_check_at).getTime());return l.length?s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:l.map(i=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:i.name}),s.jsxs("p",{className:"text-xs text-neutral-400",children:["Health check · ",i.last_health_status||"unknown",s.jsxs("span",{className:"ml-2",children:["· ",wf(i.last_health_check_at)]})]})]}),s.jsx(ht,{status:i.last_health_status==="healthy"?"active":"error"})]},i.id))}):s.jsx(Vt,{icon:s.jsx(Fr,{size:32}),title:"No activity yet",description:"Health checks and task delegations will appear here."})}function gP({onClose:e,onSuccess:a}){const[l,i]=n.useState(""),[c,u]=n.useState(""),[d,h]=n.useState(""),[f,p]=n.useState("read_only"),[g,x]=n.useState("none"),[y,w]=n.useState(""),[N,E]=n.useState(!1),[A,j]=n.useState(!1),S=async()=>{if(c.trim()){j(!0);try{const C=await fetch(c.trim());if(C.ok){const H=await C.json();H.name&&!l&&i(H.name),H.url&&!d&&h(H.url),ue("success","Agent card loaded")}}catch{ue("error","Couldn't fetch agent card")}finally{j(!1)}}},Z=async C=>{if(C.preventDefault(),!(!l.trim()||!c.trim()||!d.trim())){E(!0);try{await me("/api/a2a/connections",{method:"POST",body:JSON.stringify({name:l.trim(),agent_card_url:c.trim(),endpoint_url:d.trim(),trust_level:f,auth_type:g,...g!=="none"&&y.trim()?{credential:y.trim()}:{}})}),ue("success","Connection created"),a()}catch{ue("error","Couldn't create connection")}finally{E(!1)}}};return s.jsx(Te.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},className:"overflow-hidden",children:s.jsxs("form",{onSubmit:Z,className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4 space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent card URL"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{value:c,onChange:C=>u(C.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"}),s.jsx("button",{type:"button",onClick:S,disabled:A||!c.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:A?s.jsx(bt,{size:14,className:"animate-spin"}):"Discover"})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),s.jsx("input",{value:l,onChange:C=>i(C.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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Trust level"}),s.jsxs("select",{value:f,onChange:C=>p(C.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:[s.jsx("option",{value:"read_only",children:"Read only"}),s.jsx("option",{value:"execute",children:"Execute"}),s.jsx("option",{value:"autonomous",children:"Autonomous"})]})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Endpoint URL"}),s.jsx("input",{value:d,onChange:C=>h(C.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"})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Auth type"}),s.jsxs("select",{value:g,onChange:C=>x(C.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:[s.jsx("option",{value:"none",children:"None"}),s.jsx("option",{value:"bearer_token",children:"Bearer token"}),s.jsx("option",{value:"api_key",children:"API key"})]})]}),g!=="none"&&s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:g==="bearer_token"?"Token":"API Key"}),s.jsx("input",{type:"password",value:y,onChange:C=>w(C.target.value),placeholder:g==="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"})]})]}),s.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[s.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:N||!l.trim()||!c.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:N?"Creating...":"Create connection"})]})]})})}function xP({connection:e,onClose:a,onTest:l,testing:i}){return s.jsx(da,{open:!0,onClose:a,title:"Connection details",maxWidth:"max-w-lg",children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"text-sm font-semibold",children:e.name}),e.description&&s.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:e.description})]}),s.jsx(ht,{status:e.status})]}),s.jsxs("div",{className:"bg-white/5 rounded-lg p-3 space-y-2 text-sm",children:[s.jsx(Cr,{label:"Endpoint",value:e.endpoint_url}),s.jsx(Cr,{label:"Agent card",value:e.agent_card_url}),s.jsx(Cr,{label:"Trust level",value:e.trust_level.replace(/_/g," ")}),s.jsx(Cr,{label:"Auth type",value:e.auth_type==="none"?"None":e.auth_type.replace(/_/g," ")}),e.last_health_check_at&&s.jsx(Cr,{label:"Last health check",value:`${wf(e.last_health_check_at)} (${e.last_health_status||"unknown"})`}),s.jsx(Cr,{label:"Created",value:new Date(e.created_at).toLocaleDateString()})]}),e.skills&&e.skills.length>0&&s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1.5",children:"Skills"}),s.jsx("div",{className:"flex gap-1.5 flex-wrap",children:e.skills.map(c=>s.jsx("span",{className:"text-xs bg-white/5 border border-white/10 px-2 py-1 rounded",children:c},c))})]}),s.jsx("div",{className:"flex gap-2 justify-end pt-2",children:s.jsx("button",{onClick:l,disabled:i,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:i?s.jsxs(s.Fragment,{children:[s.jsx(bt,{size:14,className:"animate-spin"})," Testing..."]}):s.jsxs(s.Fragment,{children:[s.jsx(jl,{size:14})," Test connection"]})})})]})})}function Cr({label:e,value:a}){return s.jsxs("div",{className:"flex justify-between gap-4",children:[s.jsx("span",{className:"text-neutral-400 shrink-0",children:e}),s.jsx("span",{className:"font-medium text-right break-all",children:a})]})}function vP(){const{data:e,loading:a,refetch:l}=Ae("/api/knowledge"),[i,c]=n.useState(""),[u,d]=n.useState(!1),h=e==null?void 0:e.filter(p=>p.title.toLowerCase().includes(i.toLowerCase())),f=n.useCallback(async p=>{try{await me(`/api/knowledge/${p}`,{method:"DELETE"}),ue("success","Document removed"),l()}catch{ue("error","Couldn't remove document")}},[l]);return s.jsxs("div",{className:"p-6 max-w-5xl",children:[s.jsx(Fe,{title:"Knowledge",subtitle:"Documents and context for your agents",action:s.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"})}),s.jsx("div",{className:"mb-4",children:s.jsxs("div",{className:"relative",children:[s.jsx(Mn,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-500"}),s.jsx("input",{type:"text",placeholder:"Search documents...",value:i,onChange:p=>c(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"})]})}),a?s.jsx("div",{className:"space-y-2",children:Array.from({length:3}).map((p,g)=>s.jsx("div",{className:"h-16 bg-white/5 rounded-lg animate-pulse"},g))}):h!=null&&h.length?s.jsx("div",{className:"space-y-2",children:h.map(p=>s.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:[s.jsx("div",{className:"w-8 h-8 rounded-lg bg-white/5 flex items-center justify-center text-neutral-400",children:p.type==="url"?s.jsx(Ml,{size:16}):s.jsx($O,{size:16})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:p.title}),s.jsxs("p",{className:"text-xs text-neutral-500",children:[p.chunk_count!=null?`${p.chunk_count} chunks`:p.type," · ",new Date(p.created_at).toLocaleDateString()]})]}),s.jsx(ht,{status:p.status}),s.jsx("button",{onClick:()=>f(p.id),className:"text-neutral-500 hover:text-critical transition-colors",children:s.jsx(It,{size:16})})]},p.id))}):s.jsx(Vt,{icon:s.jsx(jE,{size:32}),title:"Nothing here yet",description:"Upload documents or add URLs to give your agents more context.",action:s.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"})}),s.jsx(bP,{open:u,onClose:()=>d(!1),onSuccess:()=>{d(!1),l()}})]})}function bP({open:e,onClose:a,onSuccess:l}){const[i,c]=n.useState("file"),[u,d]=n.useState(""),[h,f]=n.useState(!1),[p,g]=n.useState(!1),x=n.useCallback(async w=>{if(w!=null&&w.length){f(!0);try{const N=new FormData;Array.from(w).forEach(A=>N.append("files",A));const E=Nn();await fetch("/api/knowledge/upload",{method:"POST",headers:E?{Authorization:`Bearer ${E}`}:{},body:N}),ue("success",`Uploaded ${w.length===1?"1 document":`${w.length} documents`}`),l()}catch{ue("error","Couldn't upload. Try again?")}finally{f(!1)}}},[l]),y=n.useCallback(async()=>{if(u.trim()){f(!0);try{await me("/api/knowledge/url",{method:"POST",body:JSON.stringify({url:u.trim()})}),ue("success","URL imported"),l()}catch{ue("error","Couldn't import URL. Try again?")}finally{f(!1)}}},[u,l]);return s.jsxs(da,{open:e,onClose:a,title:"Add document",children:[s.jsxs("div",{className:"flex gap-2 mb-4",children:[s.jsx("button",{onClick:()=>c("file"),className:`px-3 py-1.5 text-xs font-medium rounded transition-colors ${i==="file"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Upload file"}),s.jsx("button",{onClick:()=>c("url"),className:`px-3 py-1.5 text-xs font-medium rounded transition-colors ${i==="url"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Import URL"})]}),i==="file"?s.jsxs("div",{onDragOver:w=>{w.preventDefault(),g(!0)},onDragLeave:()=>g(!1),onDrop:w=>{w.preventDefault(),g(!1),x(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:[s.jsx(dF,{size:24,className:"mx-auto text-neutral-500 mb-2"}),s.jsx("p",{className:"text-sm text-neutral-400 mb-2",children:"Drag and drop files here"}),s.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",s.jsx("input",{type:"file",multiple:!0,className:"hidden",onChange:w=>x(w.target.files)})]})]}):s.jsxs("div",{className:"space-y-3",children:[s.jsx("input",{type:"url",placeholder:"https://...",value:u,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"}),s.jsx("button",{onClick:y,disabled:!u.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&&i==="file"&&s.jsx("p",{className:"text-xs text-neutral-400 mt-3 text-center",children:"Uploading..."})]})}const bh={lead_gen:{label:"Lead Gen",Icon:QO},content:{label:"Content",Icon:aF},support:{label:"Support",Icon:XO},operations:{label:"Ops",Icon:cN},analytics:{label:"Analytics",Icon:RE},sales:{label:"Sales",Icon:KO}},yP={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 wP(){const[e,a]=n.useState([]),[l,i]=n.useState(!0),[c,u]=n.useState(""),[d,h]=n.useState(null),[f,p]=n.useState(null),[g,x]=n.useState(!1),[y,w]=n.useState({});n.useEffect(()=>{N()},[]);const N=async()=>{try{const Z=await me("/api/templates");a(Z.templates||[])}catch{ue("error","Couldn't load templates")}finally{i(!1)}},E=n.useMemo(()=>{let Z=e;if(d&&(Z=Z.filter(C=>C.category===d)),c){const C=c.toLowerCase();Z=Z.filter(H=>H.name.toLowerCase().includes(C)||H.description.toLowerCase().includes(C))}return Z},[e,d,c]),A=Z=>{p(Z);const C={};Z.variables.forEach(H=>{C[H.key]=H.default_value||""}),w(C)},j=async()=>{if(f){x(!0);try{await me(`/api/templates/${f.slug}/install`,{method:"POST",body:JSON.stringify({variableValues:y})}),ue("success",`Installed "${f.name}"`),p(null),N()}catch{ue("error","Couldn't install template. Try again?")}finally{x(!1)}}},S=["all",...Object.keys(bh)];return s.jsxs("div",{className:"p-6 max-w-5xl",children:[s.jsx(Fe,{title:"Templates",subtitle:"Pre-built agent and automation bundles you can install in one click."}),s.jsxs("div",{className:"flex items-center gap-3 mt-4 mb-6 flex-wrap",children:[s.jsx("div",{className:"flex items-center gap-1.5 flex-wrap",children:S.map(Z=>{var C;return s.jsx("button",{onClick:()=>h(Z==="all"?null:Z),className:`px-3 py-1 text-xs rounded-full transition-colors ${Z==="all"&&!d||Z===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:Z==="all"?"All":((C=bh[Z])==null?void 0:C.label)||Z},Z)})}),s.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[s.jsx(Mn,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-neutral-500"}),s.jsx("input",{type:"text",value:c,onChange:Z=>u(Z.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"})]})]}),l?s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[1,2,3].map(Z=>s.jsx(fl,{className:"h-48 rounded-lg"},Z))}):E.length===0?s.jsx(Vt,{icon:s.jsx(Qh,{size:40,weight:"thin"}),title:"No templates found",description:c||d?"Try a different filter.":"Templates will appear here."}):s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:E.map(Z=>{const C=bh[Z.category],H=(C==null?void 0:C.Icon)||Qh;return s.jsxs("button",{onClick:()=>Z.installed?null:A(Z),className:"text-left border border-white/[0.06] rounded-lg bg-white/[0.02] hover:bg-white/[0.04] p-4 transition-colors",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx(H,{size:20,weight:"bold",className:"text-neutral-400"}),s.jsx("span",{className:"text-sm font-medium text-white truncate",children:Z.name}),Z.installed&&s.jsx(F0,{size:16,weight:"fill",className:"text-green-400 ml-auto flex-shrink-0"})]}),s.jsx("p",{className:"text-xs text-neutral-400 line-clamp-2 mb-3",children:Z.description}),s.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s.jsx("span",{className:"text-[10px] px-2 py-0.5 rounded-full bg-white/[0.06] text-neutral-400",children:(C==null?void 0:C.label)||Z.category}),s.jsx("span",{className:`text-[10px] px-2 py-0.5 rounded-full ${yP[Z.difficulty]||"bg-white/[0.06] text-neutral-400"}`,children:Z.difficulty}),s.jsxs("span",{className:"text-[10px] text-neutral-500 flex items-center gap-0.5",children:[s.jsx(Wa,{size:10})," ",Z.agents.length]}),s.jsxs("span",{className:"text-[10px] text-neutral-500 flex items-center gap-0.5",children:[s.jsx(ca,{size:10})," ",Z.automations.length]})]})]},Z.id)})}),f&&s.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",onClick:()=>!g&&p(null),children:s.jsxs("div",{className:"bg-[#111] border border-white/10 rounded-xl p-6 w-full max-w-md",onClick:Z=>Z.stopPropagation(),children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("h2",{className:"text-lg font-semibold",children:["Install ",f.name]}),s.jsx("button",{onClick:()=>p(null),className:"text-neutral-500 hover:text-white",disabled:g,children:s.jsx(Sa,{size:18})})]}),s.jsxs("p",{className:"text-xs text-neutral-400 mb-4",children:["This will create ",f.agents.length===1?"1 agent":`${f.agents.length} agents`," and"," ",f.automations.length===1?"1 automation":`${f.automations.length} automations`,"."]}),f.variables.length>0&&s.jsx("div",{className:"space-y-3 mb-4",children:f.variables.map(Z=>s.jsxs("div",{children:[s.jsxs("label",{className:"block text-xs text-neutral-400 mb-1",children:[Z.label,Z.required&&s.jsx("span",{className:"text-red-400 ml-0.5",children:"*"})]}),Z.type==="select"&&Z.options?s.jsxs("select",{value:y[Z.key]||"",onChange:C=>w(H=>({...H,[Z.key]:C.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:[s.jsx("option",{value:"",children:"Select..."}),Z.options.map(C=>s.jsx("option",{value:C.value,children:C.label},C.value))]}):s.jsx("input",{type:Z.type==="email"?"email":Z.type==="url"?"url":"text",value:y[Z.key]||"",onChange:C=>w(H=>({...H,[Z.key]:C.target.value})),placeholder:Z.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"}),Z.description&&s.jsx("p",{className:"text-[10px] text-neutral-500 mt-0.5",children:Z.description})]},Z.key))}),s.jsx("button",{onClick:j,disabled:g,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:g?s.jsxs(s.Fragment,{children:[s.jsx(lF,{size:14,className:"animate-spin"}),"Installing..."]}):s.jsxs(s.Fragment,{children:["Install Template",s.jsx(Um,{size:14})]})})]})})]})}const AP=[{to:"/schedules",icon:El,color:"blue",title:"Schedules",description:"Set up recurring tasks on a cron schedule. Agents run automatically at the times you define.",features:[{icon:uF,label:"Cron expressions"},{icon:UE,label:"Run history"}]},{to:"/automations",icon:ca,color:"amber",title:"Automations",description:"Build event-driven flows triggered by webhooks, schedules, or manual input. Chain multiple steps together.",features:[{icon:Qm,label:"Webhook triggers"},{icon:dN,label:"Visual builder"}]}],jP={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 EP(){return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Workflows",subtitle:"Automate recurring tasks and event-driven flows"}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:AP.map((e,a)=>{const l=jP[e.color];return s.jsx(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3,delay:a*.08},children:s.jsxs(Mt,{to:e.to,className:`block border ${l.border} ${l.bg} bg-white/[0.02] rounded-lg p-5 transition-all group`,children:[s.jsxs("div",{className:"flex items-start justify-between mb-3",children:[s.jsx("div",{className:`w-10 h-10 rounded-lg ${l.iconBg} flex items-center justify-center`,children:s.jsx(e.icon,{size:20,weight:"bold",className:"text-white"})}),s.jsx(Um,{size:16,className:"text-neutral-500 group-hover:text-white group-hover:translate-x-0.5 transition-all"})]}),s.jsx("h3",{className:"text-sm font-semibold text-white mb-1",children:e.title}),s.jsx("p",{className:"text-xs text-neutral-400 mb-4 leading-relaxed",children:e.description}),s.jsx("div",{className:"flex gap-2",children:e.features.map(i=>s.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:[s.jsx(i.icon,{size:10}),i.label]},i.label))})]})},e.to)})})]})}function NP(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}function eA(e){try{return JSON.parse(e)}catch{return e}}function MP(){const[e,a]=n.useState("all"),[l,i]=n.useState(null),{data:c,loading:u,refetch:d}=Ae("/api/webhook-events"),h=c?e==="all"?c:e==="processed"?c.filter(p=>p.processed===1):c.filter(p=>p.processed===0):[],f=[{key:"all",label:"All"},{key:"pending",label:"Pending"},{key:"processed",label:"Processed"}];return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Webhook Events",subtitle:"Audit log of incoming webhooks",action:s.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:[s.jsx(jl,{size:14})," Refresh"]})}),s.jsxs("div",{className:"flex items-center gap-1 mb-4",children:[s.jsx(GO,{size:14,className:"text-neutral-500 mr-1"}),f.map(p=>s.jsx("button",{onClick:()=>a(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))]}),u?s.jsx(We,{count:6}):h.length?s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:h.map(p=>s.jsxs("button",{onClick:()=>i(p),className:"flex items-center justify-between w-full px-4 py-3 text-left hover:bg-white/[0.02] transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:p.event_type||"Unknown event"}),s.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"})]}),s.jsxs("p",{className:"text-xs text-neutral-400 mt-0.5",children:[p.source,s.jsx("span",{className:"mx-1.5",children:"·"}),NP(p.created_at)]})]}),s.jsx(Gm,{size:14,className:"text-neutral-500 shrink-0"})]},p.id))}):s.jsx(Vt,{icon:s.jsx(Qm,{size:32}),title:"No webhook events yet",description:"Events will appear here when webhooks are received by your triggers."}),l&&s.jsx(da,{open:!0,onClose:()=>i(null),title:"Webhook event",maxWidth:"max-w-lg",children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("h4",{className:"text-sm font-semibold",children:l.event_type}),s.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded ${l.processed?"bg-success/15 text-success":"bg-warning/15 text-warning"}`,children:l.processed?"processed":"pending"})]}),s.jsxs("div",{className:"bg-white/5 rounded-lg p-3 space-y-2 text-sm",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-neutral-400",children:"Source"}),s.jsx("span",{className:"font-medium",children:l.source})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-neutral-400",children:"Event type"}),s.jsx("span",{className:"font-medium",children:l.event_type})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-neutral-400",children:"Received"}),s.jsx("span",{className:"font-medium",children:new Date(l.created_at).toLocaleString()})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Payload"}),s.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(eA(l.payload),null,2)})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Headers"}),s.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(eA(l.headers),null,2)})]})]})})]})}const tA={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"},aA=["#3b82f6","#8b5cf6","#ec4899","#f59e0b","#10b981","#06b6d4","#ef4444","#84cc16","#f97316"],SP=[{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 ZP(){const{data:e,loading:a,refetch:l}=Ae("/api/goals"),[i,c]=n.useState(!1),[u,d]=n.useState(null),[h,f]=n.useState(null),[p,g]=n.useState(!1),[x,y]=n.useState({active:!0,paused:!1,completed:!1,archived:!1}),w=n.useMemo(()=>{var S;if(!e)return{};const j={};for(const Z of e)(j[S=Z.status]??(j[S]=[])).push(Z);return j},[e]),N=async()=>{if(h){g(!0);try{await me(`/api/goals/${h.id}`,{method:"DELETE"}),ue("success","Goal deleted"),l()}catch{ue("error","Couldn't delete goal")}finally{g(!1),f(null)}}},E=j=>{y(S=>({...S,[j]:!S[j]}))},A=!a&&(!e||e.length===0);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Goals",subtitle:"Track objectives and measure progress",action:s.jsxs("button",{onClick:()=>{d(null),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:[s.jsx(yt,{size:14})," New goal"]})}),a?s.jsx(We,{count:4}):A?s.jsx(nn,{icon:am,title:"No goals yet",description:"Set goals to track your progress toward business objectives.",capabilities:[{icon:am,label:"Objectives",description:"Define what you want to achieve"},{icon:nm,label:"Progress tracking",description:"Monitor current vs target"},{icon:IO,label:"Priority levels",description:"Focus on what matters most"},{icon:TO,label:"Deadlines",description:"Stay on track with due dates"}],action:{label:"Create your first goal",onClick:()=>{d(null),c(!0)}}}):s.jsx("div",{className:"space-y-4",children:SP.map(j=>{const S=w[j.status]||[];if(S.length===0)return null;const Z=x[j.status];return s.jsxs("div",{children:[s.jsxs("button",{onClick:()=>E(j.status),className:"flex items-center gap-2 mb-2 text-sm text-neutral-400 hover:text-white transition-colors",children:[Z?s.jsx(tn,{size:12}):s.jsx(Nl,{size:12}),s.jsx("span",{className:"font-medium capitalize",children:j.label}),s.jsx("span",{className:"text-xs text-neutral-600",children:S.length})]}),s.jsx(za,{children:Z&&s.jsx(Te.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"space-y-2 overflow-hidden",children:S.map(C=>s.jsx(CP,{goal:C,onEdit:()=>{d(C),c(!0)},onDelete:()=>f(C)},C.id))})})]},j.status)})}),i&&s.jsx(HP,{goal:u,onClose:()=>{c(!1),d(null)},onSuccess:()=>{l(),c(!1),d(null)}}),s.jsx(c0,{open:!!h,onClose:()=>f(null),onConfirm:N,title:"Delete goal",message:`Delete "${h==null?void 0:h.name}"? This can't be undone.`,confirmLabel:"Delete",loading:p})]})}function CP({goal:e,onEdit:a,onDelete:l}){const i=e.target_value&&e.current_value!=null?Math.min(100,Math.round(e.current_value/e.target_value*100)):null;return s.jsxs(Te.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:[s.jsxs("div",{className:"flex items-start justify-between mb-2",children:[s.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.color&&s.jsx("div",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:e.color}}),s.jsx("h4",{className:"text-sm font-medium truncate",children:e.name}),s.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded capitalize ${tA[e.priority]||tA.medium}`,children:e.priority})]}),s.jsxs("div",{className:"flex items-center gap-1.5 shrink-0 ml-2",children:[s.jsx("button",{onClick:a,className:"text-neutral-500 hover:text-white transition-colors",children:s.jsx(z1,{size:13})}),s.jsx("button",{onClick:l,className:"text-neutral-500 hover:text-critical transition-colors",children:s.jsx(It,{size:13})})]})]}),e.description&&s.jsx("p",{className:"text-xs text-neutral-400 mb-3",children:e.description}),i!==null&&s.jsxs("div",{className:"mb-2",children:[s.jsxs("div",{className:"flex justify-between text-[10px] text-neutral-500 mb-1",children:[s.jsx("span",{children:e.target_metric||"Progress"}),s.jsxs("span",{children:[e.current_value," / ",e.target_value," ",e.unit||"",s.jsxs("span",{className:"ml-1.5 text-neutral-400",children:[i,"%"]})]})]}),s.jsx("div",{className:"h-1.5 bg-white/[0.06] rounded-full overflow-hidden",children:s.jsx(Te.div,{initial:{width:0},animate:{width:`${i}%`},transition:{duration:.6,ease:"easeOut"},className:"h-full rounded-full",style:{backgroundColor:e.color||"#3b82f6"}})})]}),e.due_date&&s.jsxs("p",{className:"text-[10px] text-neutral-500",children:["Due ",new Date(e.due_date).toLocaleDateString()]})]})}function HP({goal:e,onClose:a,onSuccess:l}){var O,U,X;const[i,c]=n.useState((e==null?void 0:e.name)||""),[u,d]=n.useState((e==null?void 0:e.description)||""),[h,f]=n.useState((e==null?void 0:e.priority)||"medium"),[p,g]=n.useState((e==null?void 0:e.status)||"active"),[x,y]=n.useState((e==null?void 0:e.target_metric)||""),[w,N]=n.useState(((O=e==null?void 0:e.target_value)==null?void 0:O.toString())||""),[E,A]=n.useState(((U=e==null?void 0:e.current_value)==null?void 0:U.toString())||"0"),[j,S]=n.useState((e==null?void 0:e.unit)||""),[Z,C]=n.useState(((X=e==null?void 0:e.due_date)==null?void 0:X.split("T")[0])||""),[H,V]=n.useState((e==null?void 0:e.color)||aA[0]),[T,k]=n.useState(!1),R=async K=>{if(K.preventDefault(),!!i.trim()){k(!0);try{const $={name:i.trim(),description:u.trim()||null,priority:h,status:p,target_metric:x.trim()||null,target_value:w?Number(w):null,current_value:E?Number(E):null,unit:j.trim()||null,due_date:Z||null,color:H};e?(await me(`/api/goals/${e.id}`,{method:"PUT",body:JSON.stringify($)}),ue("success","Goal updated")):(await me("/api/goals",{method:"POST",body:JSON.stringify($)}),ue("success","Goal created")),l()}catch{ue("error",e?"Couldn't update goal":"Couldn't create goal")}finally{k(!1)}}};return s.jsx(da,{open:!0,onClose:a,title:e?"Edit goal":"New goal",maxWidth:"max-w-md",children:s.jsxs("form",{onSubmit:R,className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),s.jsx("input",{value:i,onChange:K=>c(K.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})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description"}),s.jsx("textarea",{value:u,onChange:K=>d(K.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"})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Metric"}),s.jsx("input",{value:x,onChange:K=>y(K.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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Target"}),s.jsx("input",{type:"number",value:w,onChange:K=>N(K.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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Unit"}),s.jsx("input",{value:j,onChange:K=>S(K.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&&s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Current value"}),s.jsx("input",{type:"number",value:E,onChange:K=>A(K.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"})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Priority"}),s.jsxs("select",{value:h,onChange:K=>f(K.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:[s.jsx("option",{value:"low",children:"Low"}),s.jsx("option",{value:"medium",children:"Medium"}),s.jsx("option",{value:"high",children:"High"}),s.jsx("option",{value:"critical",children:"Critical"})]})]}),e&&s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Status"}),s.jsxs("select",{value:p,onChange:K=>g(K.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:[s.jsx("option",{value:"active",children:"Active"}),s.jsx("option",{value:"paused",children:"Paused"}),s.jsx("option",{value:"completed",children:"Completed"}),s.jsx("option",{value:"archived",children:"Archived"})]})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Due date"}),s.jsx("input",{type:"date",value:Z,onChange:K=>C(K.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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Color"}),s.jsx("div",{className:"flex gap-2",children:aA.map(K=>s.jsx("button",{type:"button",onClick:()=>V(K),className:`w-6 h-6 rounded-full transition-all ${H===K?"ring-2 ring-white ring-offset-2 ring-offset-black scale-110":"hover:scale-110"}`,style:{backgroundColor:K}},K))})]}),s.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[s.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:T||!i.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:T?e?"Updating...":"Creating...":e?"Update goal":"Create goal"})]})]})})}const TS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function VP(){const{data:e,loading:a,refetch:l}=Ae("/api/revenue"),[i,c]=n.useState(!1),[u,d]=n.useState(null),[h,f]=n.useState(null),[p,g]=n.useState(!1),x=n.useMemo(()=>{if(!e||e.length===0)return 0;const E=new Date;return e.filter(j=>j.month===E.getMonth()+1&&j.year===E.getFullYear()).reduce((j,S)=>j+S.amount_cents,0)},[e]),y=n.useMemo(()=>e?[...e].sort((E,A)=>E.year!==A.year?A.year-E.year:A.month-E.month):[],[e]),w=async()=>{if(h){g(!0);try{await me(`/api/revenue/${h.id}`,{method:"DELETE"}),ue("success","Entry deleted"),l()}catch{ue("error","Couldn't delete entry")}finally{g(!1),f(null)}}},N=!a&&(!e||e.length===0);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Revenue",subtitle:"Track monthly revenue and growth",action:s.jsxs("div",{className:"flex items-center gap-3",children:[x>0&&s.jsxs("div",{className:"flex items-center gap-1.5 text-success",children:[s.jsx(nm,{size:14,weight:"bold"}),s.jsxs("span",{className:"text-sm font-semibold",children:["$",(x/100).toLocaleString()," MRR"]})]}),s.jsxs("button",{onClick:()=>{d(null),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:[s.jsx(yt,{size:14})," Add entry"]})]})}),s.jsx(za,{children:i&&s.jsx(_P,{entry:u,onClose:()=>{c(!1),d(null)},onSuccess:()=>{l(),c(!1),d(null)}})}),a?s.jsx(We,{count:4}):N?s.jsx(nn,{icon:XE,title:"No revenue entries yet",description:"Start tracking monthly revenue to measure growth over time.",capabilities:[{icon:RO,label:"Monthly tracking",description:"Record revenue each month"},{icon:nm,label:"MRR calculation",description:"See current monthly recurring revenue"},{icon:cF,label:"Revenue sources",description:"Tag where revenue comes from"},{icon:eF,label:"Notes",description:"Add context to each entry"}],action:{label:"Add your first entry",onClick:()=>{d(null),c(!0)}}}):s.jsxs("div",{className:"border border-white/[0.08] rounded-lg overflow-hidden",children:[s.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:[s.jsx("span",{children:"Period"}),s.jsx("span",{children:"Source"}),s.jsx("span",{className:"text-right",children:"Amount"}),s.jsx("span",{children:"Notes"}),s.jsx("span",{className:"w-16"})]}),s.jsx("div",{className:"divide-y divide-white/[0.06]",children:y.map(E=>s.jsxs(Te.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:[s.jsxs("span",{className:"text-sm font-medium",children:[TS[E.month-1]," ",E.year]}),s.jsx("span",{className:"text-sm text-neutral-400 truncate",children:E.source||"No source"}),s.jsxs("span",{className:"text-sm font-semibold text-right text-success",children:["$",(E.amount_cents/100).toLocaleString(void 0,{minimumFractionDigits:2})]}),s.jsx("span",{className:"text-xs text-neutral-500 truncate",children:E.notes||""}),s.jsxs("div",{className:"flex items-center gap-1.5 w-16 justify-end opacity-0 group-hover:opacity-100 transition-opacity",children:[s.jsx("button",{onClick:()=>{d(E),c(!0)},className:"text-neutral-500 hover:text-white transition-colors",children:s.jsx(z1,{size:13})}),s.jsx("button",{onClick:()=>f(E),className:"text-neutral-500 hover:text-critical transition-colors",children:s.jsx(It,{size:13})})]})]},E.id))})]}),s.jsx(c0,{open:!!h,onClose:()=>f(null),onConfirm:w,title:"Delete entry",message:"Delete this revenue entry? This can't be undone.",confirmLabel:"Delete",loading:p})]})}function _P({entry:e,onClose:a,onSuccess:l}){var j,S;const i=new Date,[c,u]=n.useState(e?(e.amount_cents/100).toString():""),[d,h]=n.useState((e==null?void 0:e.source)||""),[f,p]=n.useState(((j=e==null?void 0:e.month)==null?void 0:j.toString())||(i.getMonth()+1).toString()),[g,x]=n.useState(((S=e==null?void 0:e.year)==null?void 0:S.toString())||i.getFullYear().toString()),[y,w]=n.useState((e==null?void 0:e.notes)||""),[N,E]=n.useState(!1),A=async Z=>{if(Z.preventDefault(),!!c){E(!0);try{const C={amount_cents:Math.round(Number(c)*100),month:Number(f),year:Number(g),source:d.trim()||null,notes:y.trim()||null};e?(await me(`/api/revenue/${e.id}`,{method:"PUT",body:JSON.stringify(C)}),ue("success","Entry updated")):(await me("/api/revenue",{method:"POST",body:JSON.stringify(C)}),ue("success","Entry added")),l()}catch{ue("error",e?"Couldn't update entry":"Couldn't add entry")}finally{E(!1)}}};return s.jsx(Te.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mb-4 overflow-hidden",children:s.jsxs("form",{onSubmit:A,className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4 space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsx("span",{className:"text-sm font-medium",children:e?"Edit entry":"New entry"}),s.jsx("button",{type:"button",onClick:a,className:"text-neutral-500 hover:text-white transition-colors",children:s.jsx(Sa,{size:14})})]}),s.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Amount ($)"}),s.jsx("input",{type:"number",step:"0.01",value:c,onChange:Z=>u(Z.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})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Source"}),s.jsx("input",{value:d,onChange:Z=>h(Z.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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Month"}),s.jsx("select",{value:f,onChange:Z=>p(Z.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:TS.map((Z,C)=>s.jsx("option",{value:C+1,children:Z},C))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Year"}),s.jsx("input",{type:"number",value:g,onChange:Z=>x(Z.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"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Notes"}),s.jsx("textarea",{value:y,onChange:Z=>w(Z.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"})]}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:N||!c,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:N?"Saving...":e?"Update":"Add entry"})]})]})})}function TP(){const{data:e,loading:a,refetch:l}=Ae("/api/whatsapp/connections"),[i,c]=n.useState(!1),[u,d]=n.useState(!1),[h,f]=n.useState(""),[p,g]=n.useState(!1),[x,y]=n.useState(!1),w=async()=>{c(!0);try{await me("/api/whatsapp/connect",{method:"POST"}),ue("success","Connecting to WhatsApp. Check for QR code."),l()}catch{ue("error","Couldn't start WhatsApp connection")}finally{c(!1)}},N=async()=>{d(!0);try{await me("/api/whatsapp/disconnect",{method:"POST"}),ue("success","WhatsApp disconnected"),l()}catch{ue("error","Couldn't disconnect WhatsApp")}finally{d(!1)}},E=async()=>{if(h.trim()){g(!0);try{await me("/api/whatsapp/chats",{method:"POST",body:JSON.stringify({chatId:h.trim()})}),ue("success","Chat added to allowed list"),f(""),y(!1),l()}catch{ue("error","Couldn't add chat")}finally{g(!1)}}},A=!a&&(!e||e.length===0),j=e==null?void 0:e.find(S=>S.status==="connected"||S.status==="active");return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Messaging",subtitle:"WhatsApp and messaging channel connections",action:j?s.jsxs("button",{onClick:N,disabled:u,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:[u?s.jsx(bt,{size:14,className:"animate-spin"}):s.jsx(Jx,{size:14}),"Disconnect"]}):s.jsxs("button",{onClick:w,disabled:i,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:[i?s.jsx(bt,{size:14,className:"animate-spin"}):s.jsx(Wx,{size:14}),"Connect WhatsApp"]})}),a?s.jsx(We,{count:3}):A?s.jsx(nn,{icon:x1,title:"No messaging channels connected",description:"Connect WhatsApp to let your agents communicate through messaging apps.",capabilities:[{icon:Wx,label:"QR pairing",description:"Scan to connect"},{icon:x1,label:"Chat filtering",description:"Control which chats agents can access"},{icon:Jx,label:"Easy management",description:"Connect and disconnect anytime"}],action:{label:"Connect WhatsApp",onClick:w}}):s.jsxs("div",{className:"space-y-6",children:[s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(S=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-full bg-green-500/10 flex items-center justify-center",children:s.jsx(x1,{size:20,className:"text-green-400"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:S.phone_number||"WhatsApp"}),s.jsx("p",{className:"text-xs text-neutral-500",children:S.last_seen?`Last seen ${new Date(S.last_seen).toLocaleString()}`:"No activity yet"})]})]}),s.jsx(ht,{status:S.status==="connected"?"active":S.status})]},S.id))}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider",children:"Allowed chats"}),s.jsxs("button",{onClick:()=>y(!x),className:"flex items-center gap-1 text-xs text-neutral-400 hover:text-white transition-colors",children:[s.jsx(yt,{size:12})," Add chat"]})]}),s.jsx(za,{children:x&&s.jsx(Te.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mb-3 overflow-hidden",children:s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{value:h,onChange:S=>f(S.target.value),placeholder:"Chat ID (e.g. 1234567890@c.us)",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"}),s.jsx("button",{onClick:E,disabled:p||!h.trim(),className:"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"}),s.jsx("button",{onClick:()=>{y(!1),f("")},className:"text-neutral-500 hover:text-white transition-colors px-2",children:s.jsx(Sa,{size:14})})]})})}),s.jsx("p",{className:"text-xs text-neutral-500",children:"Agents will only respond to messages from allowed chats. If none are added, all chats are accessible."})]})]})]})}function nA(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}function LP(){const{data:e,loading:a,refetch:l}=Ae("/api/peers"),[i,c]=n.useState(""),[u,d]=n.useState(!1),[h,f]=n.useState(null),[p,g]=n.useState(null),[x,y]=n.useState(null),[w,N]=n.useState(!1),[E,A]=n.useState([]),[j,S]=n.useState(!1),Z=n.useMemo(()=>{if(!e)return[];if(!i.trim())return e;const R=i.toLowerCase();return e.filter(O=>O.name.toLowerCase().includes(R)||O.base_url.toLowerCase().includes(R))},[e,i]),C=n.useMemo(()=>e?{total:e.length,online:e.filter(R=>R.status==="active"||R.status==="online").length}:{total:0,online:0},[e]),H=async R=>{f(R);try{await me(`/api/peers/${R}/test`,{method:"POST"}),ue("success","Peer is reachable"),l()}catch{ue("error","Peer unreachable"),l()}finally{f(null)}},V=async R=>{g(R),S(!0);try{const O=await me(`/api/peers/${R.id}/agents`);A(O.data||[])}catch{A([])}finally{S(!1)}},T=async()=>{if(x){N(!0);try{await me(`/api/peers/${x.id}`,{method:"DELETE"}),ue("success","Peer removed"),l()}catch{ue("error","Couldn't remove peer")}finally{N(!1),y(null)}}},k=!a&&(!e||e.length===0);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Peers",subtitle:"Workspace-to-workspace connections",action:s.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:[s.jsx(yt,{size:14})," Add peer"]})}),a?s.jsx(We,{count:3}):k?s.jsx(nn,{icon:tm,title:"No peer connections",description:"Connect to other ohwow workspaces to delegate tasks across devices.",capabilities:[{icon:tm,label:"Task delegation",description:"Send tasks to remote agents"},{icon:fF,label:"Agent discovery",description:"Browse remote agent capabilities"},{icon:gF,label:"Health checks",description:"Monitor peer connectivity"},{icon:Gh,label:"Bidirectional",description:"Two-way communication"}],action:{label:"Add your first peer",onClick:()=>d(!0)}}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-6",children:[s.jsx(Ht,{label:"Total peers",value:C.total}),s.jsx(Ht,{label:"Online",value:C.online,color:"text-success"})]}),s.jsxs("div",{className:"relative mb-4",children:[s.jsx(Mn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),s.jsx("input",{value:i,onChange:R=>c(R.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"})]}),s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:Z.map(R=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("button",{className:"min-w-0 mr-3 text-left flex-1",onClick:()=>V(R),children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:`w-2 h-2 rounded-full ${R.status==="active"||R.status==="online"?"bg-success":"bg-neutral-500"}`}),s.jsx("p",{className:"text-sm font-medium truncate",children:R.name})]}),s.jsxs("p",{className:"text-xs text-neutral-400 ml-4",children:[R.base_url,R.last_seen&&s.jsxs("span",{className:"ml-2",children:["· seen ",nA(R.last_seen)]})]})]}),s.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[s.jsx(ht,{status:R.status}),s.jsx("button",{onClick:()=>V(R),className:"text-neutral-400 hover:text-white transition-colors",children:s.jsx(Gm,{size:14})}),s.jsx("button",{onClick:()=>H(R.id),disabled:h===R.id,className:"text-neutral-400 hover:text-white transition-colors disabled:opacity-50",children:s.jsx(jl,{size:14,className:h===R.id?"animate-spin":""})}),s.jsx("button",{onClick:()=>y(R),className:"text-neutral-400 hover:text-critical transition-colors",children:s.jsx(It,{size:14})})]})]},R.id))})]}),u&&s.jsx(RP,{onClose:()=>d(!1),onSuccess:()=>{l(),d(!1)}}),p&&s.jsx(da,{open:!0,onClose:()=>{g(null),A([])},title:`Peer: ${p.name}`,maxWidth:"max-w-lg",children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"bg-white/5 rounded-lg p-3 space-y-2 text-sm",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-neutral-400",children:"URL"}),s.jsx("span",{className:"font-medium break-all",children:p.base_url})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-neutral-400",children:"Status"}),s.jsx(ht,{status:p.status})]}),p.last_seen&&s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-neutral-400",children:"Last seen"}),s.jsx("span",{className:"font-medium",children:nA(p.last_seen)})]})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider mb-2",children:"Remote agents"}),j?s.jsx(We,{count:2}):E.length===0?s.jsx("p",{className:"text-xs text-neutral-500",children:"No agents found or peer is unreachable."}):s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:E.map(R=>s.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:R.name}),s.jsx("p",{className:"text-xs text-neutral-500",children:R.role})]}),s.jsx(ht,{status:R.status})]},R.id))})]})]})}),s.jsx(c0,{open:!!x,onClose:()=>y(null),onConfirm:T,title:"Remove peer",message:`Remove "${x==null?void 0:x.name}"? You can re-add it later.`,confirmLabel:"Remove",loading:w})]})}function RP({onClose:e,onSuccess:a}){const[l,i]=n.useState(""),[c,u]=n.useState(""),[d,h]=n.useState(""),[f,p]=n.useState(!1),g=async x=>{if(x.preventDefault(),!(!l.trim()||!c.trim())){p(!0);try{await me("/api/peers",{method:"POST",body:JSON.stringify({name:l.trim(),base_url:c.trim(),token:d.trim()||void 0})}),ue("success","Peer added"),a()}catch{ue("error","Couldn't add peer")}finally{p(!1)}}};return s.jsx(da,{open:!0,onClose:e,title:"Add peer",maxWidth:"max-w-md",children:s.jsxs("form",{onSubmit:g,className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),s.jsx("input",{value:l,onChange:x=>i(x.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})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Base URL"}),s.jsx("input",{value:c,onChange:x=>u(x.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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Token (optional)"}),s.jsx("input",{type:"password",value:d,onChange:x=>h(x.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"})]}),s.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[s.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:f||!l.trim()||!c.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:f?"Adding...":"Add peer"})]})]})})}const kP=["","#ef4444","#f97316","#eab308","#22c55e","#3b82f6"],DP=n.memo(function({id:a,data:l,selected:i,handleProps:c}){const u=l;return s.jsxs("div",{className:`rounded-lg border px-3 py-2 bg-zinc-900 w-[220px] ${i?"border-blue-500 ring-1 ring-blue-500/30":"border-zinc-700"}`,children:[s.jsx(Oa,{nodeId:a,handleId:"target",type:"target",position:"top",handleProps:c}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:kP[u.autonomyLevel]||"#666"}}),s.jsx("span",{className:"text-sm font-medium text-zinc-200 truncate",children:u.name})]}),u.role&&s.jsx("p",{className:"text-xs text-zinc-500 mt-0.5 truncate",children:u.role}),s.jsx(Oa,{nodeId:a,handleId:"source",type:"source",position:"bottom",handleProps:c})]})}),OP={organ_system:"#3b82f6",tissue:"#8b5cf6",microbiome:"#10b981"},FP=n.memo(function({id:a,data:l,selected:i,handleProps:c}){const u=l,d=OP[u.systemType]||"#3b82f6";return s.jsxs("div",{className:`rounded-lg border-2 px-3 py-2 bg-zinc-950 w-[240px] ${i?"ring-1 ring-blue-500/30":""}`,style:{borderColor:d},children:[s.jsx(Oa,{nodeId:a,handleId:"target",type:"target",position:"top",handleProps:c}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-sm font-semibold text-zinc-200 truncate",children:u.name}),s.jsxs("span",{className:"text-[10px] bg-zinc-800 text-zinc-400 rounded px-1.5 py-0.5 shrink-0 ml-2",children:[u.agentCount," ",u.agentCount===1?"agent":"agents"]})]}),u.telos&&s.jsx("p",{className:"text-xs text-zinc-500 mt-0.5 truncate",children:u.telos}),s.jsx(Oa,{nodeId:a,handleId:"source",type:"source",position:"bottom",handleProps:c})]})}),qP={coordination:"#3b82f6",delegation:"#f97316",nurture:"#22c55e",symbiotic:"#8b5cf6",immune:"#ef4444"},rA=n.memo(function({path:a,data:l,sourceX:i,sourceY:c,targetX:u,targetY:d}){const[h,f]=n.useState(!1);if((l==null?void 0:l.edgeType)==="membership")return s.jsxs("g",{children:[s.jsx("path",{d:a,fill:"none",stroke:"transparent",strokeWidth:12}),s.jsx("path",{d:a,fill:"none",stroke:"#525252",strokeWidth:1,strokeDasharray:"4 3",opacity:.5})]});const g=l,x=qP[(g==null?void 0:g.synapseType)||""]||"#666",y=1+((g==null?void 0:g.strength)||.5)*3,w=(g==null?void 0:g.origin)==="emergent",N=i!=null&&u!=null?(i+u)/2:0,E=c!=null&&d!=null?(c+d)/2:0;return s.jsxs("g",{onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),style:{pointerEvents:"all"},children:[s.jsx("path",{d:a,fill:"none",stroke:"transparent",strokeWidth:12}),s.jsx("path",{d:a,fill:"none",stroke:x,strokeWidth:y,strokeDasharray:w?"6 4":void 0,opacity:h?1:.7}),h&&(g==null?void 0:g.synapseType)&&s.jsxs("g",{transform:`translate(${N}, ${E})`,children:[s.jsx("rect",{x:-40,y:-10,width:80,height:20,rx:4,fill:"#18181b",stroke:x,strokeWidth:.5,opacity:.95}),s.jsxs("text",{x:0,y:4,textAnchor:"middle",fill:x,fontSize:10,fontFamily:"system-ui, sans-serif",children:[g.synapseType," ",Math.round((g.strength||0)*100),"%"]})]})]})});function zP(e){const a=[],l=[];for(const i of e.organSystems)a.push({id:`sys_${i.id}`,type:"organSystem",position:{x:0,y:0},data:{entityType:"organSystem",systemId:i.id,name:i.name,telos:i.telos,systemType:i.systemType,agentCount:i.agentIds.length},width:240,height:60});for(const i of e.agents)a.push({id:`agent_${i.id}`,type:"agent",position:{x:0,y:0},data:{entityType:"agent",agentId:i.id,name:i.name,role:i.role,autonomyLevel:i.autonomyLevel,organSystemId:i.organSystemId},width:220,height:70}),i.organSystemId&&l.push({id:`member_${i.id}`,source:`sys_${i.organSystemId}`,target:`agent_${i.id}`,type:"membership",data:{edgeType:"membership"}});for(const i of e.synapses)l.push({id:`syn_${i.id}`,source:`agent_${i.source}`,target:`agent_${i.target}`,type:"synapse",data:{synapseId:i.id,synapseType:i.type,strength:i.strength,origin:i.origin,activationCount:i.activationCount}});return{nodes:a,edges:l}}function BP(e,a){if(e.length===0)return e;const l=new _1.graphlib.Graph;l.setDefaultEdgeLabel(()=>({})),l.setGraph({rankdir:"TB",nodesep:60,ranksep:80,marginx:40,marginy:40});for(const i of e){const c=i.width||(i.type==="organSystem"?240:220),u=i.height||(i.type==="organSystem"?60:70);l.setNode(i.id,{width:c,height:u})}for(const i of a)l.setEdge(i.source,i.target);return _1.layout(l),e.map(i=>{const c=l.node(i.id);if(!c)return i;const u=i.width||220,d=i.height||70;return{...i,position:{x:c.x-u/2,y:c.y-d/2}}})}const $P={agent:DP,organSystem:FP},IP={synapse:rA,membership:rA};function UP(){const e=Ba(["agent:upserted","agent:removed","department:upserted","department:removed"]),{data:a,loading:l}=Ae("/api/org/topology",[e]),[i,c]=n.useState(null),{nodes:u,edges:d}=n.useMemo(()=>{if(!a)return{nodes:[],edges:[]};const p=zP(a);return{nodes:BP(p.nodes,p.edges),edges:p.edges}},[a]),h=n.useCallback((p,g)=>{c(p)},[]),f=n.useCallback(()=>{c(null)},[]);return l?s.jsx("div",{className:"flex items-center justify-center h-64 text-zinc-500",children:"Loading topology..."}):u.length===0?s.jsxs("div",{className:"flex flex-col items-center justify-center h-64 text-zinc-500",children:[s.jsx("p",{className:"text-lg mb-1",children:"No agents or departments yet"}),s.jsx("p",{className:"text-sm text-zinc-600",children:"Create agents and departments to see the org topology"})]}):s.jsx("div",{className:"h-[600px] border border-zinc-800 rounded-lg overflow-hidden",children:s.jsx(CS,{nodes:u,edges:d,selectedNodeId:i,nodeTypes:$P,edgeTypes:IP,onNodeClick:h,onPaneClick:f,fitViewOnMount:!0})})}const PP=[{id:"departments",label:"Departments"},{id:"members",label:"Members"},{id:"topology",label:"Topology"}];function GP(){const[e,a]=n.useState("departments");return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Team",subtitle:"Departments and team members"}),s.jsx("div",{className:"mb-6",children:s.jsx(Zl,{tabs:PP,activeTab:e,onTabChange:a,layoutId:"team-tab"})}),e==="departments"&&s.jsx(YP,{}),e==="members"&&s.jsx(XP,{}),e==="topology"&&s.jsx(UP,{})]})}function YP(){const{data:e,loading:a,refetch:l}=Ae("/api/departments"),[i,c]=n.useState(!1),[u,d]=n.useState(null),[h,f]=n.useState(null),[p,g]=n.useState(!1),x=async()=>{if(h){g(!0);try{await me(`/api/departments/${h.id}`,{method:"DELETE"}),ue("success","Department deleted"),l()}catch{ue("error","Couldn't delete department")}finally{g(!1),f(null)}}};return a?s.jsx(We,{count:3}):e!=null&&e.length?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex justify-end mb-4",children:s.jsxs("button",{onClick:()=>{d(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:[s.jsx(yt,{size:14})," Add department"]})}),s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(y=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:y.name}),y.description&&s.jsx("p",{className:"text-xs text-neutral-400",children:y.description})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("button",{onClick:()=>{d(y),c(!0)},className:"text-neutral-400 hover:text-white transition-colors",children:s.jsx(z1,{size:13})}),s.jsx("button",{onClick:()=>f(y),className:"text-neutral-400 hover:text-critical transition-colors",children:s.jsx(It,{size:13})})]})]},y.id))}),i&&s.jsx(KP,{dept:u,onClose:()=>{c(!1),d(null)},onSuccess:()=>{l(),c(!1),d(null)}}),s.jsx(c0,{open:!!h,onClose:()=>f(null),onConfirm:x,title:"Delete department",message:`Delete "${h==null?void 0:h.name}"?`,confirmLabel:"Delete",loading:p})]}):s.jsx(nn,{icon:Kh,title:"No departments yet",description:"Create departments to organize your agents and team members.",capabilities:[{icon:Kh,label:"Organization",description:"Group agents by function"},{icon:mM,label:"Team structure",description:"Define team hierarchy"}],action:{label:"Create department",onClick:()=>{d(null),c(!0)}}})}function KP({dept:e,onClose:a,onSuccess:l}){const[i,c]=n.useState((e==null?void 0:e.name)||""),[u,d]=n.useState((e==null?void 0:e.description)||""),[h,f]=n.useState(!1),p=async g=>{if(g.preventDefault(),!!i.trim()){f(!0);try{const x={name:i.trim(),description:u.trim()||null};e?(await me(`/api/departments/${e.id}`,{method:"PUT",body:JSON.stringify(x)}),ue("success","Department updated")):(await me("/api/departments",{method:"POST",body:JSON.stringify(x)}),ue("success","Department created")),l()}catch{ue("error",e?"Couldn't update department":"Couldn't create department")}finally{f(!1)}}};return s.jsx(da,{open:!0,onClose:a,title:e?"Edit department":"New department",maxWidth:"max-w-md",children:s.jsxs("form",{onSubmit:p,className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),s.jsx("input",{value:i,onChange:g=>c(g.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})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description"}),s.jsx("input",{value:u,onChange:g=>d(g.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"})]}),s.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[s.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:h||!i.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 XP(){const{data:e,loading:a,refetch:l}=Ae("/api/team-members"),{data:i}=Ae("/api/departments"),[c,u]=n.useState(!1),[d,h]=n.useState(null),[f,p]=n.useState(null),[g,x]=n.useState(!1),y=N=>{var E;return!N||!i?null:((E=i.find(A=>A.id===N))==null?void 0:E.name)||null},w=async()=>{if(f){x(!0);try{await me(`/api/team-members/${f.id}`,{method:"DELETE"}),ue("success","Member removed"),l()}catch{ue("error","Couldn't remove member")}finally{x(!1),p(null)}}};return a?s.jsx(We,{count:3}):e!=null&&e.length?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex justify-end mb-4",children:s.jsxs("button",{onClick:()=>{h(null),u(!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:[s.jsx(yt,{size:14})," Add member"]})}),s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(N=>{var E;return s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-xs font-bold",children:(E=N.name[0])==null?void 0:E.toUpperCase()}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:N.name}),s.jsxs("p",{className:"text-xs text-neutral-400",children:[N.role||"No role",y(N.department_id)&&s.jsxs("span",{className:"ml-2",children:["· ",y(N.department_id)]}),N.email&&s.jsxs("span",{className:"ml-2",children:["· ",N.email]})]})]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("button",{onClick:()=>{h(N),u(!0)},className:"text-neutral-400 hover:text-white transition-colors",children:s.jsx(z1,{size:13})}),s.jsx("button",{onClick:()=>p(N),className:"text-neutral-400 hover:text-critical transition-colors",children:s.jsx(It,{size:13})})]})]},N.id)})}),c&&s.jsx(QP,{member:d,departments:i||[],onClose:()=>{u(!1),h(null)},onSuccess:()=>{l(),u(!1),h(null)}}),s.jsx(c0,{open:!!f,onClose:()=>p(null),onConfirm:w,title:"Remove member",message:`Remove "${f==null?void 0:f.name}"?`,confirmLabel:"Remove",loading:g})]}):s.jsx(nn,{icon:t7,title:"No team members yet",description:"Add team members to track human collaborators alongside your AI agents.",capabilities:[{icon:t7,label:"Profiles",description:"Name, email, role"},{icon:Kh,label:"Departments",description:"Assign to departments"}],action:{label:"Add team member",onClick:()=>{h(null),u(!0)}}})}function QP({member:e,departments:a,onClose:l,onSuccess:i}){const[c,u]=n.useState((e==null?void 0:e.name)||""),[d,h]=n.useState((e==null?void 0:e.email)||""),[f,p]=n.useState((e==null?void 0:e.role)||""),[g,x]=n.useState((e==null?void 0:e.department_id)||""),[y,w]=n.useState(!1),N=async E=>{if(E.preventDefault(),!!c.trim()){w(!0);try{const A={name:c.trim(),email:d.trim()||null,role:f.trim()||null,department_id:g||null};e?(await me(`/api/team-members/${e.id}`,{method:"PUT",body:JSON.stringify(A)}),ue("success","Member updated")):(await me("/api/team-members",{method:"POST",body:JSON.stringify(A)}),ue("success","Member added")),i()}catch{ue("error",e?"Couldn't update member":"Couldn't add member")}finally{w(!1)}}};return s.jsx(da,{open:!0,onClose:l,title:e?"Edit member":"New member",maxWidth:"max-w-md",children:s.jsxs("form",{onSubmit:N,className:"space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),s.jsx("input",{value:c,onChange:E=>u(E.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})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Email"}),s.jsx("input",{value:d,onChange:E=>h(E.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"})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Role"}),s.jsx("input",{value:f,onChange:E=>p(E.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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Department"}),s.jsxs("select",{value:g,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:[s.jsx("option",{value:"",children:"None"}),a.map(E=>s.jsx("option",{value:E.id,children:E.name},E.id))]})]})]}),s.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[s.jsx("button",{type:"button",onClick:l,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:y||!c.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:y?"Saving...":e?"Update":"Add member"})]})]})})}function JP(){const[e,a]=n.useState(null),[l,i]=n.useState(!0),[c,u]=n.useState(null),[d,h]=n.useState(null),[f,p]=n.useState(!1),[g,x]=n.useState(!1),y=async()=>{try{const E=await fetch("/browser/health");if(E.ok){const A=await E.json();a({active:!0,url:A.url,title:A.title})}else a({active:!1})}catch{a({active:!1})}finally{i(!1)}};n.useEffect(()=>{y()},[]);const w=async()=>{p(!0);try{const E=await fetch("/browser/session/screenshot");if(E.ok){const A=await E.blob(),j=URL.createObjectURL(A);u(j)}else ue("error","Couldn't capture screenshot")}catch{ue("error","Browser session not active")}finally{p(!1)}},N=async()=>{x(!0);try{const E=await me("/browser/session/snapshot");h(typeof E.data=="string"?E.data:JSON.stringify(E.data,null,2))}catch{ue("error","Couldn't get accessibility snapshot")}finally{x(!1)}};return l?s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Browser",subtitle:"Browser automation viewer"}),s.jsxs("div",{className:"flex items-center gap-2 text-neutral-400 text-sm",children:[s.jsx(bt,{size:14,className:"animate-spin"})," Checking browser status..."]})]}):s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Browser",subtitle:"Browser automation viewer",action:s.jsxs("button",{onClick:y,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:[s.jsx(jl,{size:14})," Refresh"]})}),e!=null&&e.active?s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[s.jsx("span",{className:"w-2 h-2 rounded-full bg-success animate-pulse"}),s.jsx("span",{className:"text-sm font-medium",children:"Active session"})]}),e.url&&s.jsx("p",{className:"text-xs text-neutral-400 truncate ml-5",children:e.url}),e.title&&s.jsx("p",{className:"text-xs text-neutral-500 ml-5",children:e.title})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsxs("button",{onClick:w,disabled:f,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:[f?s.jsx(bt,{size:14,className:"animate-spin"}):s.jsx(Xh,{size:14}),"Capture screenshot"]}),s.jsxs("button",{onClick:N,disabled:g,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:[g?s.jsx(bt,{size:14,className:"animate-spin"}):s.jsx(e7,{size:14}),"Accessibility tree"]})]}),c&&s.jsxs("div",{children:[s.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-2",children:"Screenshot"}),s.jsx("div",{className:"border border-white/[0.08] rounded-lg overflow-hidden",children:s.jsx("img",{src:c,alt:"Browser screenshot",className:"w-full"})})]}),d&&s.jsxs("div",{children:[s.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-2",children:"Accessibility tree"}),s.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})]})]}):s.jsx(nn,{icon:Yh,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:Xh,label:"Screenshots",description:"Capture the current page"},{icon:e7,label:"Accessibility tree",description:"View page structure"},{icon:Yh,label:"Live view",description:"See what your agent sees"}]})]})}function sA(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}const WP=["briefing","suggestion","insight","anomaly","proactive"];function eG(){const{data:e,loading:a}=Ae("/api/activity"),l=n.useMemo(()=>e?e.filter(u=>WP.some(d=>u.type.toLowerCase().includes(d))):[],[e]),i=n.useMemo(()=>e?e.filter(u=>u.type==="task_completed").slice(0,10):[],[e]),c=!a&&l.length===0&&i.length===0;return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Briefings",subtitle:"Agent insights and daily digest"}),a?s.jsx(We,{count:4}):c?s.jsx(nn,{icon:Jh,title:"No briefings yet",description:"Briefings appear here as your agents generate insights, detect anomalies, and complete work.",capabilities:[{icon:Jh,label:"Daily digest",description:"Summary of completed work"},{icon:Qx,label:"Suggestions",description:"Agent improvement ideas"},{icon:Wa,label:"Proactive insights",description:"Anomalies and opportunities"}]}):s.jsxs("div",{className:"space-y-6",children:[l.length>0&&s.jsxs("div",{children:[s.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Insights"}),s.jsx("div",{className:"space-y-2",children:l.map((u,d)=>s.jsx(Te.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:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500/10 flex items-center justify-center shrink-0 mt-0.5",children:s.jsx(Qx,{size:16,className:"text-amber-400"})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("p",{className:"text-sm font-medium",children:u.title}),s.jsx("span",{className:"text-[10px] bg-white/[0.06] px-1.5 py-0.5 rounded text-neutral-400",children:u.type})]}),u.description&&s.jsx("p",{className:"text-xs text-neutral-400",children:u.description}),s.jsxs("p",{className:"text-[10px] text-neutral-500 mt-1.5 flex items-center gap-1",children:[s.jsx(Br,{size:10})," ",sA(u.created_at)]})]})]})},u.id))})]}),i.length>0&&s.jsxs("div",{children:[s.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Recent completions"}),s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:i.map(u=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:u.title}),u.description&&s.jsx("p",{className:"text-xs text-neutral-400 truncate",children:u.description})]}),s.jsx("span",{className:"text-xs text-neutral-500 shrink-0",children:sA(u.created_at)})]},u.id))})]})]})]})}function tG(){const[e,a]=n.useState(""),[l,i]=n.useState(""),[c,u]=n.useState(!1),[d,h]=n.useState(null),f=n.useRef(null),p=async()=>{if(e.trim()){u(!0),h(null);try{const y=(await me("/api/podcast/generate",{method:"POST",body:JSON.stringify({content:e.trim(),title:l.trim()||void 0})})).data.jobId;h({jobId:y,status:"queued"}),ue("success","Podcast generation started"),g(y)}catch{ue("error","Couldn't start podcast generation")}finally{u(!1)}}},g=x=>{f.current&&clearInterval(f.current),f.current=setInterval(async()=>{try{const y=await me(`/api/podcast/status/${x}`);h(y.data),(y.data.status==="completed"||y.data.status==="failed")&&(f.current&&clearInterval(f.current),f.current=null,y.data.status==="completed"?ue("success","Podcast ready"):ue("error",y.data.error||"Generation failed"))}catch{f.current&&clearInterval(f.current),f.current=null}},3e3)};return n.useEffect(()=>()=>{f.current&&clearInterval(f.current)},[]),s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(Fe,{title:"Podcast",subtitle:"Generate audio content from text"}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4 space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Title (optional)"}),s.jsx("input",{value:l,onChange:x=>i(x.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"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Content"}),s.jsx("textarea",{value:e,onChange:x=>a(x.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"})]}),s.jsx("div",{className:"flex justify-end",children:s.jsxs("button",{onClick:p,disabled:c||!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:[c?s.jsx(bt,{size:14,className:"animate-spin"}):s.jsx(T0,{size:14}),"Generate podcast"]})})]}),d&&s.jsxs("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[d.status==="queued"||d.status==="processing"?s.jsx(bt,{size:18,className:"text-blue-400 animate-spin"}):d.status==="completed"?s.jsx(a7,{size:18,className:"text-success"}):s.jsx(T0,{size:18,className:"text-critical"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium capitalize",children:d.status}),d.status==="processing"&&d.progress!=null&&s.jsxs("p",{className:"text-xs text-neutral-400",children:[Math.round(d.progress*100),"% complete"]})]})]}),d.status==="processing"&&d.progress!=null&&s.jsx("div",{className:"h-1.5 bg-white/[0.06] rounded-full overflow-hidden mb-3",children:s.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&&s.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&&s.jsx("p",{className:"text-xs text-critical",children:d.error})]}),!e&&!d&&s.jsx(nn,{icon:T0,title:"AI Podcast Generator",description:"Convert any text content into a natural-sounding podcast episode using local TTS models.",capabilities:[{icon:T0,label:"Text to speech",description:"Natural-sounding voices"},{icon:a7,label:"Audio output",description:"Download or play in browser"},{icon:Xm,label:"Multiple voices",description:"Different speakers for dialogue"}],variant:"compact"})]})]})}function aG({children:e}){return Nn()?s.jsx(s.Fragment,{children:e}):s.jsx(bA,{to:"/login",replace:!0})}function nG(){return s.jsxs(SA,{children:[s.jsxs(oV,{children:[s.jsx(Ve,{path:"/login",element:s.jsx(CF,{})}),s.jsx(Ve,{path:"/onboarding",element:s.jsx(UF,{})}),s.jsxs(Ve,{path:"/*",element:s.jsx(aG,{children:s.jsx(ZF,{})}),children:[s.jsx(Ve,{index:!0,element:s.jsx(Wq,{})}),s.jsx(Ve,{path:"dashboard",element:s.jsx(QF,{})}),s.jsx(Ve,{path:"agents",element:s.jsx(tq,{})}),s.jsx(Ve,{path:"agents/:id",element:s.jsx(iq,{})}),s.jsx(Ve,{path:"tasks",element:s.jsx(cq,{})}),s.jsx(Ve,{path:"tasks/:id",element:s.jsx(xq,{})}),s.jsx(Ve,{path:"contacts",element:s.jsx(jz,{})}),s.jsx(Ve,{path:"contacts/:id",element:s.jsx(Nz,{})}),s.jsx(Ve,{path:"projects",element:s.jsx(Sz,{})}),s.jsx(Ve,{path:"projects/:id",element:s.jsx(Tz,{})}),s.jsx(Ve,{path:"templates",element:s.jsx(wP,{})}),s.jsx(Ve,{path:"automations",element:s.jsx(kz,{})}),s.jsx(Ve,{path:"automations/new",element:s.jsx(Ww,{})}),s.jsx(Ve,{path:"automations/:id/edit",element:s.jsx(Ww,{})}),s.jsx(Ve,{path:"connections",element:s.jsx(hP,{})}),s.jsx(Ve,{path:"approvals",element:s.jsx(bq,{})}),s.jsx(Ve,{path:"activity",element:s.jsx(Eq,{})}),s.jsx(Ve,{path:"schedules",element:s.jsx(_q,{})}),s.jsx(Ve,{path:"knowledge",element:s.jsx(vP,{})}),s.jsx(Ve,{path:"messages",element:s.jsx(nz,{})}),s.jsx(Ve,{path:"workflows",element:s.jsx(EP,{})}),s.jsx(Ve,{path:"webhook-events",element:s.jsx(MP,{})}),s.jsx(Ve,{path:"goals",element:s.jsx(ZP,{})}),s.jsx(Ve,{path:"revenue",element:s.jsx(VP,{})}),s.jsx(Ve,{path:"messaging",element:s.jsx(TP,{})}),s.jsx(Ve,{path:"peers",element:s.jsx(LP,{})}),s.jsx(Ve,{path:"team",element:s.jsx(GP,{})}),s.jsx(Ve,{path:"browser",element:s.jsx(JP,{})}),s.jsx(Ve,{path:"briefings",element:s.jsx(eG,{})}),s.jsx(Ve,{path:"podcast",element:s.jsx(tG,{})}),s.jsx(Ve,{path:"chat",element:s.jsx(bA,{to:"/",replace:!0})}),s.jsx(Ve,{path:"settings",element:s.jsx(wz,{})})]})]}),s.jsx(bF,{})]})}oH.createRoot(document.getElementById("root")).render(s.jsx(n.StrictMode,{children:s.jsx(_V,{basename:"/ui",children:s.jsx(nG,{})})}));
|