ohwow 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +985 -959
- package/dist/mcp-server/index.js +16 -10
- package/dist/migrations/151-self-bench-results.sql +19 -0
- package/dist/migrations/152-whatsapp-contact-link.sql +23 -0
- package/dist/migrations/153-calendar-business-mapping.sql +4 -0
- package/dist/migrations/154-calendar-analysis.sql +13 -0
- package/dist/web/assets/index-BwiupGZ1.css +1 -0
- package/dist/web/assets/index-CQ-gahfL.js +109 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/index-45KFQWwL.css +0 -1
- package/dist/web/assets/index-DPcyW5Fd.js +0 -102
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
var fV=Object.defineProperty;var pV=(e,t,l)=>t in e?fV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l;var Ca=(e,t,l)=>pV(e,typeof t!="symbol"?t+"":t,l);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const u of o)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(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(o){if(o.ep)return;o.ep=!0;const u=l(o);fetch(o.href,u)}})();var mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xV(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $2={exports:{}},l1={};/**
|
|
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 Gx;function gV(){if(Gx)return l1;Gx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function l(i,o,u){var d=null;if(u!==void 0&&(d=""+u),o.key!==void 0&&(d=""+o.key),"key"in o){u={};for(var h in o)h!=="key"&&(u[h]=o[h])}else u=o;return o=u.ref,{$$typeof:e,type:i,key:d,ref:o!==void 0?o:null,props:u}}return l1.Fragment=t,l1.jsx=l,l1.jsxs=l,l1}var Yx;function vV(){return Yx||(Yx=1,$2.exports=gV()),$2.exports}var a=vV(),q2={exports:{}},Ne={};/**
|
|
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 Kx;function bV(){if(Kx)return Ne;Kx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=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"),x=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function w(k){return k===null||typeof k!="object"?null:(k=b&&k[b]||k["@@iterator"],typeof k=="function"?k:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,j={};function A(k,U,W){this.props=k,this.context=U,this.refs=j,this.updater=W||N}A.prototype.isReactComponent={},A.prototype.setState=function(k,U){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,U,"setState")},A.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function Z(){}Z.prototype=A.prototype;function M(k,U,W){this.props=k,this.context=U,this.refs=j,this.updater=W||N}var S=M.prototype=new Z;S.constructor=M,E(S,A.prototype),S.isPureReactComponent=!0;var _=Array.isArray;function T(){}var V={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function L(k,U,W){var $=W.ref;return{$$typeof:e,type:k,key:U,ref:$!==void 0?$:null,props:W}}function D(k,U){return L(k.type,U,k.props)}function B(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function K(k){var U={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(W){return U[W]})}var J=/\/+/g;function se(k,U){return typeof k=="object"&&k!==null&&k.key!=null?K(""+k.key):U.toString(36)}function le(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(T,T):(k.status="pending",k.then(function(U){k.status==="pending"&&(k.status="fulfilled",k.value=U)},function(U){k.status==="pending"&&(k.status="rejected",k.reason=U)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function O(k,U,W,$,F){var z=typeof k;(z==="undefined"||z==="boolean")&&(k=null);var ae=!1;if(k===null)ae=!0;else switch(z){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(k.$$typeof){case e:case t:ae=!0;break;case x:return ae=k._init,O(ae(k._payload),U,W,$,F)}}if(ae)return F=F(k),ae=$===""?"."+se(k,0):$,_(F)?(W="",ae!=null&&(W=ae.replace(J,"$&/")+"/"),O(F,U,W,"",function(Ee){return Ee})):F!=null&&(B(F)&&(F=D(F,W+(F.key==null||k&&k.key===F.key?"":(""+F.key).replace(J,"$&/")+"/")+ae)),U.push(F)),1;ae=0;var fe=$===""?".":$+":";if(_(k))for(var pe=0;pe<k.length;pe++)$=k[pe],z=fe+se($,pe),ae+=O($,U,W,z,F);else if(pe=w(k),typeof pe=="function")for(k=pe.call(k),pe=0;!($=k.next()).done;)$=$.value,z=fe+se($,pe++),ae+=O($,U,W,z,F);else if(z==="object"){if(typeof k.then=="function")return O(le(k),U,W,$,F);throw U=String(k),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ae}function q(k,U,W){if(k==null)return k;var $=[],F=0;return O(k,$,"","",function(z){return U.call(W,z,F++)}),$}function I(k){if(k._status===-1){var U=k._result;U=U(),U.then(function(W){(k._status===0||k._status===-1)&&(k._status=1,k._result=W)},function(W){(k._status===0||k._status===-1)&&(k._status=2,k._result=W)}),k._status===-1&&(k._status=0,k._result=U)}if(k._status===1)return k._result.default;throw k._result}var Y=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},X={map:q,forEach:function(k,U,W){q(k,function(){U.apply(this,arguments)},W)},count:function(k){var U=0;return q(k,function(){U++}),U},toArray:function(k){return q(k,function(U){return U})||[]},only:function(k){if(!B(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Ne.Activity=g,Ne.Children=X,Ne.Component=A,Ne.Fragment=l,Ne.Profiler=o,Ne.PureComponent=M,Ne.StrictMode=i,Ne.Suspense=f,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(k){return V.H.useMemoCache(k)}},Ne.cache=function(k){return function(){return k.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(k,U,W){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var $=E({},k.props),F=k.key;if(U!=null)for(z in U.key!==void 0&&(F=""+U.key),U)!H.call(U,z)||z==="key"||z==="__self"||z==="__source"||z==="ref"&&U.ref===void 0||($[z]=U[z]);var z=arguments.length-2;if(z===1)$.children=W;else if(1<z){for(var ae=Array(z),fe=0;fe<z;fe++)ae[fe]=arguments[fe+2];$.children=ae}return L(k.type,F,$)},Ne.createContext=function(k){return k={$$typeof:d,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:u,_context:k},k},Ne.createElement=function(k,U,W){var $,F={},z=null;if(U!=null)for($ in U.key!==void 0&&(z=""+U.key),U)H.call(U,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(F[$]=U[$]);var ae=arguments.length-2;if(ae===1)F.children=W;else if(1<ae){for(var fe=Array(ae),pe=0;pe<ae;pe++)fe[pe]=arguments[pe+2];F.children=fe}if(k&&k.defaultProps)for($ in ae=k.defaultProps,ae)F[$]===void 0&&(F[$]=ae[$]);return L(k,z,F)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(k){return{$$typeof:h,render:k}},Ne.isValidElement=B,Ne.lazy=function(k){return{$$typeof:x,_payload:{_status:-1,_result:k},_init:I}},Ne.memo=function(k,U){return{$$typeof:p,type:k,compare:U===void 0?null:U}},Ne.startTransition=function(k){var U=V.T,W={};V.T=W;try{var $=k(),F=V.S;F!==null&&F(W,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(T,Y)}catch(z){Y(z)}finally{U!==null&&W.types!==null&&(U.types=W.types),V.T=U}},Ne.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},Ne.use=function(k){return V.H.use(k)},Ne.useActionState=function(k,U,W){return V.H.useActionState(k,U,W)},Ne.useCallback=function(k,U){return V.H.useCallback(k,U)},Ne.useContext=function(k){return V.H.useContext(k)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(k,U){return V.H.useDeferredValue(k,U)},Ne.useEffect=function(k,U){return V.H.useEffect(k,U)},Ne.useEffectEvent=function(k){return V.H.useEffectEvent(k)},Ne.useId=function(){return V.H.useId()},Ne.useImperativeHandle=function(k,U,W){return V.H.useImperativeHandle(k,U,W)},Ne.useInsertionEffect=function(k,U){return V.H.useInsertionEffect(k,U)},Ne.useLayoutEffect=function(k,U){return V.H.useLayoutEffect(k,U)},Ne.useMemo=function(k,U){return V.H.useMemo(k,U)},Ne.useOptimistic=function(k,U){return V.H.useOptimistic(k,U)},Ne.useReducer=function(k,U,W){return V.H.useReducer(k,U,W)},Ne.useRef=function(k){return V.H.useRef(k)},Ne.useState=function(k){return V.H.useState(k)},Ne.useSyncExternalStore=function(k,U,W){return V.H.useSyncExternalStore(k,U,W)},Ne.useTransition=function(){return V.H.useTransition()},Ne.version="19.2.4",Ne}var Xx;function Dm(){return Xx||(Xx=1,q2.exports=bV()),q2.exports}var r=Dm(),I2={exports:{}},i1={},B2={exports:{}},P2={};/**
|
|
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 Qx;function yV(){return Qx||(Qx=1,(function(e){function t(O,q){var I=O.length;O.push(q);e:for(;0<I;){var Y=I-1>>>1,X=O[Y];if(0<o(X,q))O[Y]=q,O[I]=X,I=Y;else break e}}function l(O){return O.length===0?null:O[0]}function i(O){if(O.length===0)return null;var q=O[0],I=O.pop();if(I!==q){O[0]=I;e:for(var Y=0,X=O.length,k=X>>>1;Y<k;){var U=2*(Y+1)-1,W=O[U],$=U+1,F=O[$];if(0>o(W,I))$<X&&0>o(F,W)?(O[Y]=F,O[$]=I,Y=$):(O[Y]=W,O[U]=I,Y=U);else if($<X&&0>o(F,I))O[Y]=F,O[$]=I,Y=$;else break e}}return q}function o(O,q){var I=O.sortIndex-q.sortIndex;return I!==0?I:O.id-q.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=[],x=1,g=null,b=3,w=!1,N=!1,E=!1,j=!1,A=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function S(O){for(var q=l(p);q!==null;){if(q.callback===null)i(p);else if(q.startTime<=O)i(p),q.sortIndex=q.expirationTime,t(f,q);else break;q=l(p)}}function _(O){if(E=!1,S(O),!N)if(l(f)!==null)N=!0,T||(T=!0,K());else{var q=l(p);q!==null&&le(_,q.startTime-O)}}var T=!1,V=-1,H=5,L=-1;function D(){return j?!0:!(e.unstable_now()-L<H)}function B(){if(j=!1,T){var O=e.unstable_now();L=O;var q=!0;try{e:{N=!1,E&&(E=!1,Z(V),V=-1),w=!0;var I=b;try{t:{for(S(O),g=l(f);g!==null&&!(g.expirationTime>O&&D());){var Y=g.callback;if(typeof Y=="function"){g.callback=null,b=g.priorityLevel;var X=Y(g.expirationTime<=O);if(O=e.unstable_now(),typeof X=="function"){g.callback=X,S(O),q=!0;break t}g===l(f)&&i(f),S(O)}else i(f);g=l(f)}if(g!==null)q=!0;else{var k=l(p);k!==null&&le(_,k.startTime-O),q=!1}}break e}finally{g=null,b=I,w=!1}q=void 0}}finally{q?K():T=!1}}}var K;if(typeof M=="function")K=function(){M(B)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,se=J.port2;J.port1.onmessage=B,K=function(){se.postMessage(null)}}else K=function(){A(B,0)};function le(O,q){V=A(function(){O(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(O){switch(b){case 1:case 2:case 3:var q=3;break;default:q=b}var I=b;b=q;try{return O()}finally{b=I}},e.unstable_requestPaint=function(){j=!0},e.unstable_runWithPriority=function(O,q){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var I=b;b=O;try{return q()}finally{b=I}},e.unstable_scheduleCallback=function(O,q,I){var Y=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?Y+I:Y):I=Y,O){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=I+X,O={id:x++,callback:q,priorityLevel:O,startTime:I,expirationTime:X,sortIndex:-1},I>Y?(O.sortIndex=I,t(p,O),l(f)===null&&O===l(p)&&(E?(Z(V),V=-1):E=!0,le(_,I-Y))):(O.sortIndex=X,t(f,O),N||w||(N=!0,T||(T=!0,K()))),O},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(O){var q=b;return function(){var I=b;b=q;try{return O.apply(this,arguments)}finally{b=I}}}})(P2)),P2}var Jx;function wV(){return Jx||(Jx=1,B2.exports=yV()),B2.exports}var U2={exports:{}},qt={};/**
|
|
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 Wx;function AV(){if(Wx)return qt;Wx=1;var e=Dm();function t(f){var p="https://react.dev/errors/"+f;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+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(t(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(f,p,x){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:f,containerInfo:p,implementation:x}}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 qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,qt.createPortal=function(f,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return u(f,p,null,x)},qt.flushSync=function(f){var p=d.T,x=i.p;try{if(d.T=null,i.p=2,f)return f()}finally{d.T=p,i.p=x,i.d.f()}},qt.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))},qt.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},qt.preinit=function(f,p){if(typeof f=="string"&&p&&typeof p.as=="string"){var x=p.as,g=h(x,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,w=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?i.d.S(f,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:w}):x==="script"&&i.d.X(f,{crossOrigin:g,integrity:b,fetchPriority:w,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},qt.preinitModule=function(f,p){if(typeof f=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=h(p.as,p.crossOrigin);i.d.M(f,{crossOrigin:x,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)},qt.preload=function(f,p){if(typeof f=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,g=h(x,p.crossOrigin);i.d.L(f,x,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},qt.preloadModule=function(f,p){if(typeof f=="string")if(p){var x=h(p.as,p.crossOrigin);i.d.m(f,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(f)},qt.requestFormReset=function(f){i.d.r(f)},qt.unstable_batchedUpdates=function(f,p){return f(p)},qt.useFormState=function(f,p,x){return d.H.useFormState(f,p,x)},qt.useFormStatus=function(){return d.H.useHostTransitionStatus()},qt.version="19.2.4",qt}var eg;function jV(){if(eg)return U2.exports;eg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),U2.exports=AV(),U2.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 tg;function NV(){if(tg)return i1;tg=1;var e=wV(),t=Dm(),l=jV();function i(n){var s="https://react.dev/errors/"+n;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)s+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+n+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function u(n){var s=n,c=n;if(n.alternate)for(;s.return;)s=s.return;else{n=s;do s=n,(s.flags&4098)!==0&&(c=s.return),n=s.return;while(n)}return s.tag===3?c:null}function d(n){if(n.tag===13){var s=n.memoizedState;if(s===null&&(n=n.alternate,n!==null&&(s=n.memoizedState)),s!==null)return s.dehydrated}return null}function h(n){if(n.tag===31){var s=n.memoizedState;if(s===null&&(n=n.alternate,n!==null&&(s=n.memoizedState)),s!==null)return s.dehydrated}return null}function f(n){if(u(n)!==n)throw Error(i(188))}function p(n){var s=n.alternate;if(!s){if(s=u(n),s===null)throw Error(i(188));return s!==n?null:n}for(var c=n,m=s;;){var v=c.return;if(v===null)break;var y=v.alternate;if(y===null){if(m=v.return,m!==null){c=m;continue}break}if(v.child===y.child){for(y=v.child;y;){if(y===c)return f(v),n;if(y===m)return f(v),s;y=y.sibling}throw Error(i(188))}if(c.return!==m.return)c=v,m=y;else{for(var C=!1,R=v.child;R;){if(R===c){C=!0,c=v,m=y;break}if(R===m){C=!0,m=v,c=y;break}R=R.sibling}if(!C){for(R=y.child;R;){if(R===c){C=!0,c=y,m=v;break}if(R===m){C=!0,m=y,c=v;break}R=R.sibling}if(!C)throw Error(i(189))}}if(c.alternate!==m)throw Error(i(190))}if(c.tag!==3)throw Error(i(188));return c.stateNode.current===c?n:s}function x(n){var s=n.tag;if(s===5||s===26||s===27||s===6)return n;for(n=n.child;n!==null;){if(s=x(n),s!==null)return s;n=n.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),M=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),D=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function K(n){return n===null||typeof n!="object"?null:(n=B&&n[B]||n["@@iterator"],typeof n=="function"?n:null)}var J=Symbol.for("react.client.reference");function se(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===J?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case E:return"Fragment";case A:return"Profiler";case j:return"StrictMode";case _:return"Suspense";case T:return"SuspenseList";case L:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case N:return"Portal";case M:return n.displayName||"Context";case Z:return(n._context.displayName||"Context")+".Consumer";case S:var s=n.render;return n=n.displayName,n||(n=s.displayName||s.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case V:return s=n.displayName||null,s!==null?s:se(n.type)||"Memo";case H:s=n._payload,n=n._init;try{return se(n(s))}catch{}}return null}var le=Array.isArray,O=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},Y=[],X=-1;function k(n){return{current:n}}function U(n){0>X||(n.current=Y[X],Y[X]=null,X--)}function W(n,s){X++,Y[X]=n.current,n.current=s}var $=k(null),F=k(null),z=k(null),ae=k(null);function fe(n,s){switch(W(z,s),W(F,n),W($,null),s.nodeType){case 9:case 11:n=(n=s.documentElement)&&(n=n.namespaceURI)?xx(n):0;break;default:if(n=s.tagName,s=s.namespaceURI)s=xx(s),n=gx(s,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}U($),W($,n)}function pe(){U($),U(F),U(z)}function Ee(n){n.memoizedState!==null&&W(ae,n);var s=$.current,c=gx(s,n.type);s!==c&&(W(F,n),W($,c))}function Me(n){F.current===n&&(U($),U(F)),ae.current===n&&(U(ae),a1._currentValue=I)}var _e,Pe;function Te(n){if(_e===void 0)try{throw Error()}catch(c){var s=c.stack.trim().match(/\n( *(at )?)/);_e=s&&s[1]||"",Pe=-1<c.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+_e+n+Pe}var Ae=!1;function $t(n,s){if(!n||Ae)return"";Ae=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(s){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(re){var ne=re}Reflect.construct(n,[],he)}else{try{he.call()}catch(re){ne=re}n.call(he.prototype)}}else{try{throw Error()}catch(re){ne=re}(he=n())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(re){if(re&&ne&&typeof re.stack=="string")return[re.stack,ne.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 y=m.DetermineComponentFrameRoot(),C=y[0],R=y[1];if(C&&R){var P=C.split(`
|
|
44
|
-
`),te=R.split(`
|
|
45
|
-
`);for(v=m=0;m<P.length&&!P[m].includes("DetermineComponentFrameRoot");)m++;for(;v<te.length&&!te[v].includes("DetermineComponentFrameRoot");)v++;if(m===P.length||v===te.length)for(m=P.length-1,v=te.length-1;1<=m&&0<=v&&P[m]!==te[v];)v--;for(;1<=m&&0<=v;m--,v--)if(P[m]!==te[v]){if(m!==1||v!==1)do if(m--,v--,0>v||P[m]!==te[v]){var oe=`
|
|
46
|
-
`+P[m].replace(" at new "," at ");return n.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",n.displayName)),oe}while(1<=m&&0<=v);break}}}finally{Ae=!1,Error.prepareStackTrace=c}return(c=n?n.displayName||n.name:"")?Te(c):""}function Ze(n,s){switch(n.tag){case 26:case 27:case 5:return Te(n.type);case 16:return Te("Lazy");case 13:return n.child!==s&&s!==null?Te("Suspense Fallback"):Te("Suspense");case 19:return Te("SuspenseList");case 0:case 15:return $t(n.type,!1);case 11:return $t(n.type.render,!1);case 1:return $t(n.type,!0);case 31:return Te("Activity");default:return""}}function Tt(n){try{var s="",c=null;do s+=Ze(n,c),c=n,n=n.return;while(n);return s}catch(m){return`
|
|
47
|
-
Error generating stack: `+m.message+`
|
|
48
|
-
`+m.stack}}var ie=Object.prototype.hasOwnProperty,pt=e.unstable_scheduleCallback,Oe=e.unstable_cancelCallback,ut=e.unstable_shouldYield,yt=e.unstable_requestPaint,rt=e.unstable_now,je=e.unstable_getCurrentPriorityLevel,et=e.unstable_ImmediatePriority,Ue=e.unstable_UserBlockingPriority,Lt=e.unstable_NormalPriority,K1=e.unstable_LowPriority,fs=e.unstable_IdlePriority,Zo=e.log,X1=e.unstable_setDisableYieldValue,Kt=null,xt=null;function Fn(n){if(typeof Zo=="function"&&X1(n),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(Kt,n)}catch{}}var la=Math.clz32?Math.clz32:eC,JZ=Math.log,WZ=Math.LN2;function eC(n){return n>>>=0,n===0?32:31-(JZ(n)/WZ|0)|0}var Q1=256,J1=262144,W1=4194304;function w0(n){var s=n&42;if(s!==0)return s;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function el(n,s,c){var m=n.pendingLanes;if(m===0)return 0;var v=0,y=n.suspendedLanes,C=n.pingedLanes;n=n.warmLanes;var R=m&134217727;return R!==0?(m=R&~y,m!==0?v=w0(m):(C&=R,C!==0?v=w0(C):c||(c=R&~n,c!==0&&(v=w0(c))))):(R=m&~y,R!==0?v=w0(R):C!==0?v=w0(C):c||(c=m&~n,c!==0&&(v=w0(c)))),v===0?0:s!==0&&s!==v&&(s&y)===0&&(y=v&-v,c=s&-s,y>=c||y===32&&(c&4194048)!==0)?s:v}function ps(n,s){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&s)===0}function tC(n,s){switch(n){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 Qf(){var n=W1;return W1<<=1,(W1&62914560)===0&&(W1=4194304),n}function Co(n){for(var s=[],c=0;31>c;c++)s.push(n);return s}function xs(n,s){n.pendingLanes|=s,s!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function aC(n,s,c,m,v,y){var C=n.pendingLanes;n.pendingLanes=c,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=c,n.entangledLanes&=c,n.errorRecoveryDisabledLanes&=c,n.shellSuspendCounter=0;var R=n.entanglements,P=n.expirationTimes,te=n.hiddenUpdates;for(c=C&~c;0<c;){var oe=31-la(c),he=1<<oe;R[oe]=0,P[oe]=-1;var ne=te[oe];if(ne!==null)for(te[oe]=null,oe=0;oe<ne.length;oe++){var re=ne[oe];re!==null&&(re.lane&=-536870913)}c&=~he}m!==0&&Jf(n,m,0),y!==0&&v===0&&n.tag!==0&&(n.suspendedLanes|=y&~(C&~s))}function Jf(n,s,c){n.pendingLanes|=s,n.suspendedLanes&=~s;var m=31-la(s);n.entangledLanes|=s,n.entanglements[m]=n.entanglements[m]|1073741824|c&261930}function Wf(n,s){var c=n.entangledLanes|=s;for(n=n.entanglements;c;){var m=31-la(c),v=1<<m;v&s|n[m]&s&&(n[m]|=s),c&=~v}}function e3(n,s){var c=s&-s;return c=(c&42)!==0?1:Ho(c),(c&(n.suspendedLanes|s))!==0?0:c}function Ho(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Vo(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function t3(){var n=q.p;return n!==0?n:(n=window.event,n===void 0?32:zx(n.type))}function a3(n,s){var c=q.p;try{return q.p=n,s()}finally{q.p=c}}var zn=Math.random().toString(36).slice(2),kt="__reactFiber$"+zn,Xt="__reactProps$"+zn,er="__reactContainer$"+zn,_o="__reactEvents$"+zn,nC="__reactListeners$"+zn,rC="__reactHandles$"+zn,n3="__reactResources$"+zn,gs="__reactMarker$"+zn;function To(n){delete n[kt],delete n[Xt],delete n[_o],delete n[nC],delete n[rC]}function tr(n){var s=n[kt];if(s)return s;for(var c=n.parentNode;c;){if(s=c[er]||c[kt]){if(c=s.alternate,s.child!==null||c!==null&&c.child!==null)for(n=Nx(n);n!==null;){if(c=n[kt])return c;n=Nx(n)}return s}n=c,c=n.parentNode}return null}function ar(n){if(n=n[kt]||n[er]){var s=n.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return n}return null}function vs(n){var s=n.tag;if(s===5||s===26||s===27||s===6)return n.stateNode;throw Error(i(33))}function nr(n){var s=n[n3];return s||(s=n[n3]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Ht(n){n[gs]=!0}var r3=new Set,s3={};function A0(n,s){rr(n,s),rr(n+"Capture",s)}function rr(n,s){for(s3[n]=s,n=0;n<s.length;n++)r3.add(s[n])}var sC=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]*$"),l3={},i3={};function lC(n){return ie.call(i3,n)?!0:ie.call(l3,n)?!1:sC.test(n)?i3[n]=!0:(l3[n]=!0,!1)}function tl(n,s,c){if(lC(s))if(c===null)n.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":n.removeAttribute(s);return;case"boolean":var m=s.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){n.removeAttribute(s);return}}n.setAttribute(s,""+c)}}function al(n,s,c){if(c===null)n.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttribute(s,""+c)}}function mn(n,s,c,m){if(m===null)n.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(c);return}n.setAttributeNS(s,c,""+m)}}function ba(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function o3(n){var s=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function iC(n,s,c){var m=Object.getOwnPropertyDescriptor(n.constructor.prototype,s);if(!n.hasOwnProperty(s)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var v=m.get,y=m.set;return Object.defineProperty(n,s,{configurable:!0,get:function(){return v.call(this)},set:function(C){c=""+C,y.call(this,C)}}),Object.defineProperty(n,s,{enumerable:m.enumerable}),{getValue:function(){return c},setValue:function(C){c=""+C},stopTracking:function(){n._valueTracker=null,delete n[s]}}}}function Lo(n){if(!n._valueTracker){var s=o3(n)?"checked":"value";n._valueTracker=iC(n,s,""+n[s])}}function c3(n){if(!n)return!1;var s=n._valueTracker;if(!s)return!0;var c=s.getValue(),m="";return n&&(m=o3(n)?n.checked?"true":"false":n.value),n=m,n!==c?(s.setValue(n),!0):!1}function nl(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var oC=/[\n"\\]/g;function ya(n){return n.replace(oC,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function ko(n,s,c,m,v,y,C,R){n.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?n.type=C:n.removeAttribute("type"),s!=null?C==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+ba(s)):n.value!==""+ba(s)&&(n.value=""+ba(s)):C!=="submit"&&C!=="reset"||n.removeAttribute("value"),s!=null?Ro(n,C,ba(s)):c!=null?Ro(n,C,ba(c)):m!=null&&n.removeAttribute("value"),v==null&&y!=null&&(n.defaultChecked=!!y),v!=null&&(n.checked=v&&typeof v!="function"&&typeof v!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?n.name=""+ba(R):n.removeAttribute("name")}function u3(n,s,c,m,v,y,C,R){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.type=y),s!=null||c!=null){if(!(y!=="submit"&&y!=="reset"||s!=null)){Lo(n);return}c=c!=null?""+ba(c):"",s=s!=null?""+ba(s):c,R||s===n.value||(n.value=s),n.defaultValue=s}m=m??v,m=typeof m!="function"&&typeof m!="symbol"&&!!m,n.checked=R?n.checked:!!m,n.defaultChecked=!!m,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(n.name=C),Lo(n)}function Ro(n,s,c){s==="number"&&nl(n.ownerDocument)===n||n.defaultValue===""+c||(n.defaultValue=""+c)}function sr(n,s,c,m){if(n=n.options,s){s={};for(var v=0;v<c.length;v++)s["$"+c[v]]=!0;for(c=0;c<n.length;c++)v=s.hasOwnProperty("$"+n[c].value),n[c].selected!==v&&(n[c].selected=v),v&&m&&(n[c].defaultSelected=!0)}else{for(c=""+ba(c),s=null,v=0;v<n.length;v++){if(n[v].value===c){n[v].selected=!0,m&&(n[v].defaultSelected=!0);return}s!==null||n[v].disabled||(s=n[v])}s!==null&&(s.selected=!0)}}function d3(n,s,c){if(s!=null&&(s=""+ba(s),s!==n.value&&(n.value=s),c==null)){n.defaultValue!==s&&(n.defaultValue=s);return}n.defaultValue=c!=null?""+ba(c):""}function h3(n,s,c,m){if(s==null){if(m!=null){if(c!=null)throw Error(i(92));if(le(m)){if(1<m.length)throw Error(i(93));m=m[0]}c=m}c==null&&(c=""),s=c}c=ba(s),n.defaultValue=c,m=n.textContent,m===c&&m!==""&&m!==null&&(n.value=m),Lo(n)}function lr(n,s){if(s){var c=n.firstChild;if(c&&c===n.lastChild&&c.nodeType===3){c.nodeValue=s;return}}n.textContent=s}var cC=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 m3(n,s,c){var m=s.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?m?n.setProperty(s,""):s==="float"?n.cssFloat="":n[s]="":m?n.setProperty(s,c):typeof c!="number"||c===0||cC.has(s)?s==="float"?n.cssFloat=c:n[s]=(""+c).trim():n[s]=c+"px"}function f3(n,s,c){if(s!=null&&typeof s!="object")throw Error(i(62));if(n=n.style,c!=null){for(var m in c)!c.hasOwnProperty(m)||s!=null&&s.hasOwnProperty(m)||(m.indexOf("--")===0?n.setProperty(m,""):m==="float"?n.cssFloat="":n[m]="");for(var v in s)m=s[v],s.hasOwnProperty(v)&&c[v]!==m&&m3(n,v,m)}else for(var y in s)s.hasOwnProperty(y)&&m3(n,y,s[y])}function Do(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var uC=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"]]),dC=/^[\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 rl(n){return dC.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function fn(){}var Oo=null;function Fo(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var ir=null,or=null;function p3(n){var s=ar(n);if(s&&(n=s.stateNode)){var c=n[Xt]||null;e:switch(n=s.stateNode,s.type){case"input":if(ko(n,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),s=c.name,c.type==="radio"&&s!=null){for(c=n;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+ya(""+s)+'"][type="radio"]'),s=0;s<c.length;s++){var m=c[s];if(m!==n&&m.form===n.form){var v=m[Xt]||null;if(!v)throw Error(i(90));ko(m,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(s=0;s<c.length;s++)m=c[s],m.form===n.form&&c3(m)}break e;case"textarea":d3(n,c.value,c.defaultValue);break e;case"select":s=c.value,s!=null&&sr(n,!!c.multiple,s,!1)}}}var zo=!1;function x3(n,s,c){if(zo)return n(s,c);zo=!0;try{var m=n(s);return m}finally{if(zo=!1,(ir!==null||or!==null)&&(Pl(),ir&&(s=ir,n=or,or=ir=null,p3(s),n)))for(s=0;s<n.length;s++)p3(n[s])}}function bs(n,s){var c=n.stateNode;if(c===null)return null;var m=c[Xt]||null;if(m===null)return null;c=m[s];e:switch(s){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)||(n=n.type,m=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!m;break e;default:n=!1}if(n)return null;if(c&&typeof c!="function")throw Error(i(231,s,typeof c));return c}var pn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$o=!1;if(pn)try{var ys={};Object.defineProperty(ys,"passive",{get:function(){$o=!0}}),window.addEventListener("test",ys,ys),window.removeEventListener("test",ys,ys)}catch{$o=!1}var $n=null,qo=null,sl=null;function g3(){if(sl)return sl;var n,s=qo,c=s.length,m,v="value"in $n?$n.value:$n.textContent,y=v.length;for(n=0;n<c&&s[n]===v[n];n++);var C=c-n;for(m=1;m<=C&&s[c-m]===v[y-m];m++);return sl=v.slice(n,1<m?1-m:void 0)}function ll(n){var s=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&s===13&&(n=13)):n=s,n===10&&(n=13),32<=n||n===13?n:0}function il(){return!0}function v3(){return!1}function Qt(n){function s(c,m,v,y,C){this._reactName=c,this._targetInst=v,this.type=m,this.nativeEvent=y,this.target=C,this.currentTarget=null;for(var R in n)n.hasOwnProperty(R)&&(c=n[R],this[R]=c?c(y):y[R]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?il:v3,this.isPropagationStopped=v3,this}return g(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=il)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=il)},persist:function(){},isPersistent:il}),s}var j0={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ol=Qt(j0),ws=g({},j0,{view:0,detail:0}),hC=Qt(ws),Io,Bo,As,cl=g({},ws,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uo,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==As&&(As&&n.type==="mousemove"?(Io=n.screenX-As.screenX,Bo=n.screenY-As.screenY):Bo=Io=0,As=n),Io)},movementY:function(n){return"movementY"in n?n.movementY:Bo}}),b3=Qt(cl),mC=g({},cl,{dataTransfer:0}),fC=Qt(mC),pC=g({},ws,{relatedTarget:0}),Po=Qt(pC),xC=g({},j0,{animationName:0,elapsedTime:0,pseudoElement:0}),gC=Qt(xC),vC=g({},j0,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),bC=Qt(vC),yC=g({},j0,{data:0}),y3=Qt(yC),wC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},AC={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"},jC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function NC(n){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(n):(n=jC[n])?!!s[n]:!1}function Uo(){return NC}var EC=g({},ws,{key:function(n){if(n.key){var s=wC[n.key]||n.key;if(s!=="Unidentified")return s}return n.type==="keypress"?(n=ll(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?AC[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uo,charCode:function(n){return n.type==="keypress"?ll(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?ll(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),MC=Qt(EC),SC=g({},cl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),w3=Qt(SC),ZC=g({},ws,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uo}),CC=Qt(ZC),HC=g({},j0,{propertyName:0,elapsedTime:0,pseudoElement:0}),VC=Qt(HC),_C=g({},cl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),TC=Qt(_C),LC=g({},j0,{newState:0,oldState:0}),kC=Qt(LC),RC=[9,13,27,32],Go=pn&&"CompositionEvent"in window,js=null;pn&&"documentMode"in document&&(js=document.documentMode);var DC=pn&&"TextEvent"in window&&!js,A3=pn&&(!Go||js&&8<js&&11>=js),j3=" ",N3=!1;function E3(n,s){switch(n){case"keyup":return RC.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function M3(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var cr=!1;function OC(n,s){switch(n){case"compositionend":return M3(s);case"keypress":return s.which!==32?null:(N3=!0,j3);case"textInput":return n=s.data,n===j3&&N3?null:n;default:return null}}function FC(n,s){if(cr)return n==="compositionend"||!Go&&E3(n,s)?(n=g3(),sl=qo=$n=null,cr=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return A3&&s.locale!=="ko"?null:s.data;default:return null}}var zC={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 S3(n){var s=n&&n.nodeName&&n.nodeName.toLowerCase();return s==="input"?!!zC[n.type]:s==="textarea"}function Z3(n,s,c,m){ir?or?or.push(m):or=[m]:ir=m,s=Jl(s,"onChange"),0<s.length&&(c=new ol("onChange","change",null,c,m),n.push({event:c,listeners:s}))}var Ns=null,Es=null;function $C(n){ux(n,0)}function ul(n){var s=vs(n);if(c3(s))return n}function C3(n,s){if(n==="change")return s}var H3=!1;if(pn){var Yo;if(pn){var Ko="oninput"in document;if(!Ko){var V3=document.createElement("div");V3.setAttribute("oninput","return;"),Ko=typeof V3.oninput=="function"}Yo=Ko}else Yo=!1;H3=Yo&&(!document.documentMode||9<document.documentMode)}function _3(){Ns&&(Ns.detachEvent("onpropertychange",T3),Es=Ns=null)}function T3(n){if(n.propertyName==="value"&&ul(Es)){var s=[];Z3(s,Es,n,Fo(n)),x3($C,s)}}function qC(n,s,c){n==="focusin"?(_3(),Ns=s,Es=c,Ns.attachEvent("onpropertychange",T3)):n==="focusout"&&_3()}function IC(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return ul(Es)}function BC(n,s){if(n==="click")return ul(s)}function PC(n,s){if(n==="input"||n==="change")return ul(s)}function UC(n,s){return n===s&&(n!==0||1/n===1/s)||n!==n&&s!==s}var ia=typeof Object.is=="function"?Object.is:UC;function Ms(n,s){if(ia(n,s))return!0;if(typeof n!="object"||n===null||typeof s!="object"||s===null)return!1;var c=Object.keys(n),m=Object.keys(s);if(c.length!==m.length)return!1;for(m=0;m<c.length;m++){var v=c[m];if(!ie.call(s,v)||!ia(n[v],s[v]))return!1}return!0}function L3(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function k3(n,s){var c=L3(n);n=0;for(var m;c;){if(c.nodeType===3){if(m=n+c.textContent.length,n<=s&&m>=s)return{node:c,offset:s-n};n=m}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=L3(c)}}function R3(n,s){return n&&s?n===s?!0:n&&n.nodeType===3?!1:s&&s.nodeType===3?R3(n,s.parentNode):"contains"in n?n.contains(s):n.compareDocumentPosition?!!(n.compareDocumentPosition(s)&16):!1:!1}function D3(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var s=nl(n.document);s instanceof n.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)n=s.contentWindow;else break;s=nl(n.document)}return s}function Xo(n){var s=n&&n.nodeName&&n.nodeName.toLowerCase();return s&&(s==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||s==="textarea"||n.contentEditable==="true")}var GC=pn&&"documentMode"in document&&11>=document.documentMode,ur=null,Qo=null,Ss=null,Jo=!1;function O3(n,s,c){var m=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Jo||ur==null||ur!==nl(m)||(m=ur,"selectionStart"in m&&Xo(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}),Ss&&Ms(Ss,m)||(Ss=m,m=Jl(Qo,"onSelect"),0<m.length&&(s=new ol("onSelect","select",null,s,c),n.push({event:s,listeners:m}),s.target=ur)))}function N0(n,s){var c={};return c[n.toLowerCase()]=s.toLowerCase(),c["Webkit"+n]="webkit"+s,c["Moz"+n]="moz"+s,c}var dr={animationend:N0("Animation","AnimationEnd"),animationiteration:N0("Animation","AnimationIteration"),animationstart:N0("Animation","AnimationStart"),transitionrun:N0("Transition","TransitionRun"),transitionstart:N0("Transition","TransitionStart"),transitioncancel:N0("Transition","TransitionCancel"),transitionend:N0("Transition","TransitionEnd")},Wo={},F3={};pn&&(F3=document.createElement("div").style,"AnimationEvent"in window||(delete dr.animationend.animation,delete dr.animationiteration.animation,delete dr.animationstart.animation),"TransitionEvent"in window||delete dr.transitionend.transition);function E0(n){if(Wo[n])return Wo[n];if(!dr[n])return n;var s=dr[n],c;for(c in s)if(s.hasOwnProperty(c)&&c in F3)return Wo[n]=s[c];return n}var z3=E0("animationend"),$3=E0("animationiteration"),q3=E0("animationstart"),YC=E0("transitionrun"),KC=E0("transitionstart"),XC=E0("transitioncancel"),I3=E0("transitionend"),B3=new Map,ec="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(" ");ec.push("scrollEnd");function Oa(n,s){B3.set(n,s),A0(s,[n])}var dl=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},wa=[],hr=0,tc=0;function hl(){for(var n=hr,s=tc=hr=0;s<n;){var c=wa[s];wa[s++]=null;var m=wa[s];wa[s++]=null;var v=wa[s];wa[s++]=null;var y=wa[s];if(wa[s++]=null,m!==null&&v!==null){var C=m.pending;C===null?v.next=v:(v.next=C.next,C.next=v),m.pending=v}y!==0&&P3(c,v,y)}}function ml(n,s,c,m){wa[hr++]=n,wa[hr++]=s,wa[hr++]=c,wa[hr++]=m,tc|=m,n.lanes|=m,n=n.alternate,n!==null&&(n.lanes|=m)}function ac(n,s,c,m){return ml(n,s,c,m),fl(n)}function M0(n,s){return ml(n,null,null,s),fl(n)}function P3(n,s,c){n.lanes|=c;var m=n.alternate;m!==null&&(m.lanes|=c);for(var v=!1,y=n.return;y!==null;)y.childLanes|=c,m=y.alternate,m!==null&&(m.childLanes|=c),y.tag===22&&(n=y.stateNode,n===null||n._visibility&1||(v=!0)),n=y,y=y.return;return n.tag===3?(y=n.stateNode,v&&s!==null&&(v=31-la(c),n=y.hiddenUpdates,m=n[v],m===null?n[v]=[s]:m.push(s),s.lane=c|536870912),y):null}function fl(n){if(50<Ks)throw Ks=0,d2=null,Error(i(185));for(var s=n.return;s!==null;)n=s,s=n.return;return n.tag===3?n.stateNode:null}var mr={};function QC(n,s,c,m){this.tag=n,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,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 oa(n,s,c,m){return new QC(n,s,c,m)}function nc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function xn(n,s){var c=n.alternate;return c===null?(c=oa(n.tag,s,n.key,n.mode),c.elementType=n.elementType,c.type=n.type,c.stateNode=n.stateNode,c.alternate=n,n.alternate=c):(c.pendingProps=s,c.type=n.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=n.flags&65011712,c.childLanes=n.childLanes,c.lanes=n.lanes,c.child=n.child,c.memoizedProps=n.memoizedProps,c.memoizedState=n.memoizedState,c.updateQueue=n.updateQueue,s=n.dependencies,c.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},c.sibling=n.sibling,c.index=n.index,c.ref=n.ref,c.refCleanup=n.refCleanup,c}function U3(n,s){n.flags&=65011714;var c=n.alternate;return c===null?(n.childLanes=0,n.lanes=s,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=c.childLanes,n.lanes=c.lanes,n.child=c.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=c.memoizedProps,n.memoizedState=c.memoizedState,n.updateQueue=c.updateQueue,n.type=c.type,s=c.dependencies,n.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),n}function pl(n,s,c,m,v,y){var C=0;if(m=n,typeof n=="function")nc(n)&&(C=1);else if(typeof n=="string")C=aV(n,c,$.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case L:return n=oa(31,c,s,v),n.elementType=L,n.lanes=y,n;case E:return S0(c.children,v,y,s);case j:C=8,v|=24;break;case A:return n=oa(12,c,s,v|2),n.elementType=A,n.lanes=y,n;case _:return n=oa(13,c,s,v),n.elementType=_,n.lanes=y,n;case T:return n=oa(19,c,s,v),n.elementType=T,n.lanes=y,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case M:C=10;break e;case Z:C=9;break e;case S:C=11;break e;case V:C=14;break e;case H:C=16,m=null;break e}C=29,c=Error(i(130,n===null?"null":typeof n,"")),m=null}return s=oa(C,c,s,v),s.elementType=n,s.type=m,s.lanes=y,s}function S0(n,s,c,m){return n=oa(7,n,m,s),n.lanes=c,n}function rc(n,s,c){return n=oa(6,n,null,s),n.lanes=c,n}function G3(n){var s=oa(18,null,null,0);return s.stateNode=n,s}function sc(n,s,c){return s=oa(4,n.children!==null?n.children:[],n.key,s),s.lanes=c,s.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},s}var Y3=new WeakMap;function Aa(n,s){if(typeof n=="object"&&n!==null){var c=Y3.get(n);return c!==void 0?c:(s={value:n,source:s,stack:Tt(s)},Y3.set(n,s),s)}return{value:n,source:s,stack:Tt(s)}}var fr=[],pr=0,xl=null,Zs=0,ja=[],Na=0,qn=null,Xa=1,Qa="";function gn(n,s){fr[pr++]=Zs,fr[pr++]=xl,xl=n,Zs=s}function K3(n,s,c){ja[Na++]=Xa,ja[Na++]=Qa,ja[Na++]=qn,qn=n;var m=Xa;n=Qa;var v=32-la(m)-1;m&=~(1<<v),c+=1;var y=32-la(s)+v;if(30<y){var C=v-v%5;y=(m&(1<<C)-1).toString(32),m>>=C,v-=C,Xa=1<<32-la(s)+v|c<<v|m,Qa=y+n}else Xa=1<<y|c<<v|m,Qa=n}function lc(n){n.return!==null&&(gn(n,1),K3(n,1,0))}function ic(n){for(;n===xl;)xl=fr[--pr],fr[pr]=null,Zs=fr[--pr],fr[pr]=null;for(;n===qn;)qn=ja[--Na],ja[Na]=null,Qa=ja[--Na],ja[Na]=null,Xa=ja[--Na],ja[Na]=null}function X3(n,s){ja[Na++]=Xa,ja[Na++]=Qa,ja[Na++]=qn,Xa=s.id,Qa=s.overflow,qn=n}var Rt=null,at=null,Fe=!1,In=null,Ea=!1,oc=Error(i(519));function Bn(n){var s=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Cs(Aa(s,n)),oc}function Q3(n){var s=n.stateNode,c=n.type,m=n.memoizedProps;switch(s[kt]=n,s[Xt]=m,c){case"dialog":ke("cancel",s),ke("close",s);break;case"iframe":case"object":case"embed":ke("load",s);break;case"video":case"audio":for(c=0;c<Qs.length;c++)ke(Qs[c],s);break;case"source":ke("error",s);break;case"img":case"image":case"link":ke("error",s),ke("load",s);break;case"details":ke("toggle",s);break;case"input":ke("invalid",s),u3(s,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":ke("invalid",s);break;case"textarea":ke("invalid",s),h3(s,m.value,m.defaultValue,m.children)}c=m.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||s.textContent===""+c||m.suppressHydrationWarning===!0||fx(s.textContent,c)?(m.popover!=null&&(ke("beforetoggle",s),ke("toggle",s)),m.onScroll!=null&&ke("scroll",s),m.onScrollEnd!=null&&ke("scrollend",s),m.onClick!=null&&(s.onclick=fn),s=!0):s=!1,s||Bn(n,!0)}function J3(n){for(Rt=n.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:Ea=!1;return;case 27:case 3:Ea=!0;return;default:Rt=Rt.return}}function xr(n){if(n!==Rt)return!1;if(!Fe)return J3(n),Fe=!0,!1;var s=n.tag,c;if((c=s!==3&&s!==27)&&((c=s===5)&&(c=n.type,c=!(c!=="form"&&c!=="button")||M2(n.type,n.memoizedProps)),c=!c),c&&at&&Bn(n),J3(n),s===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));at=jx(n)}else if(s===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));at=jx(n)}else s===27?(s=at,r0(n.type)?(n=V2,V2=null,at=n):at=s):at=Rt?Sa(n.stateNode.nextSibling):null;return!0}function Z0(){at=Rt=null,Fe=!1}function cc(){var n=In;return n!==null&&(ta===null?ta=n:ta.push.apply(ta,n),In=null),n}function Cs(n){In===null?In=[n]:In.push(n)}var uc=k(null),C0=null,vn=null;function Pn(n,s,c){W(uc,s._currentValue),s._currentValue=c}function bn(n){n._currentValue=uc.current,U(uc)}function dc(n,s,c){for(;n!==null;){var m=n.alternate;if((n.childLanes&s)!==s?(n.childLanes|=s,m!==null&&(m.childLanes|=s)):m!==null&&(m.childLanes&s)!==s&&(m.childLanes|=s),n===c)break;n=n.return}}function hc(n,s,c,m){var v=n.child;for(v!==null&&(v.return=n);v!==null;){var y=v.dependencies;if(y!==null){var C=v.child;y=y.firstContext;e:for(;y!==null;){var R=y;y=v;for(var P=0;P<s.length;P++)if(R.context===s[P]){y.lanes|=c,R=y.alternate,R!==null&&(R.lanes|=c),dc(y.return,c,n),m||(C=null);break e}y=R.next}}else if(v.tag===18){if(C=v.return,C===null)throw Error(i(341));C.lanes|=c,y=C.alternate,y!==null&&(y.lanes|=c),dc(C,c,n),C=null}else C=v.child;if(C!==null)C.return=v;else for(C=v;C!==null;){if(C===n){C=null;break}if(v=C.sibling,v!==null){v.return=C.return,C=v;break}C=C.return}v=C}}function gr(n,s,c,m){n=null;for(var v=s,y=!1;v!==null;){if(!y){if((v.flags&524288)!==0)y=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var C=v.alternate;if(C===null)throw Error(i(387));if(C=C.memoizedProps,C!==null){var R=v.type;ia(v.pendingProps.value,C.value)||(n!==null?n.push(R):n=[R])}}else if(v===ae.current){if(C=v.alternate,C===null)throw Error(i(387));C.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(n!==null?n.push(a1):n=[a1])}v=v.return}n!==null&&hc(s,n,c,m),s.flags|=262144}function gl(n){for(n=n.firstContext;n!==null;){if(!ia(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function H0(n){C0=n,vn=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Dt(n){return W3(C0,n)}function vl(n,s){return C0===null&&H0(n),W3(n,s)}function W3(n,s){var c=s._currentValue;if(s={context:s,memoizedValue:c,next:null},vn===null){if(n===null)throw Error(i(308));vn=s,n.dependencies={lanes:0,firstContext:s},n.flags|=524288}else vn=vn.next=s;return c}var JC=typeof AbortController<"u"?AbortController:function(){var n=[],s=this.signal={aborted:!1,addEventListener:function(c,m){n.push(m)}};this.abort=function(){s.aborted=!0,n.forEach(function(c){return c()})}},WC=e.unstable_scheduleCallback,eH=e.unstable_NormalPriority,wt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mc(){return{controller:new JC,data:new Map,refCount:0}}function Hs(n){n.refCount--,n.refCount===0&&WC(eH,function(){n.controller.abort()})}var Vs=null,fc=0,vr=0,br=null;function tH(n,s){if(Vs===null){var c=Vs=[];fc=0,vr=g2(),br={status:"pending",value:void 0,then:function(m){c.push(m)}}}return fc++,s.then(ep,ep),s}function ep(){if(--fc===0&&Vs!==null){br!==null&&(br.status="fulfilled");var n=Vs;Vs=null,vr=0,br=null;for(var s=0;s<n.length;s++)(0,n[s])()}}function aH(n,s){var c=[],m={status:"pending",value:null,reason:null,then:function(v){c.push(v)}};return n.then(function(){m.status="fulfilled",m.value=s;for(var v=0;v<c.length;v++)(0,c[v])(s)},function(v){for(m.status="rejected",m.reason=v,v=0;v<c.length;v++)(0,c[v])(void 0)}),m}var tp=O.S;O.S=function(n,s){O5=rt(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&tH(n,s),tp!==null&&tp(n,s)};var V0=k(null);function pc(){var n=V0.current;return n!==null?n:Je.pooledCache}function bl(n,s){s===null?W(V0,V0.current):W(V0,s.pool)}function ap(){var n=pc();return n===null?null:{parent:wt._currentValue,pool:n}}var yr=Error(i(460)),xc=Error(i(474)),yl=Error(i(542)),wl={then:function(){}};function np(n){return n=n.status,n==="fulfilled"||n==="rejected"}function rp(n,s,c){switch(c=n[c],c===void 0?n.push(s):c!==s&&(s.then(fn,fn),s=c),s.status){case"fulfilled":return s.value;case"rejected":throw n=s.reason,lp(n),n;default:if(typeof s.status=="string")s.then(fn,fn);else{if(n=Je,n!==null&&100<n.shellSuspendCounter)throw Error(i(482));n=s,n.status="pending",n.then(function(m){if(s.status==="pending"){var v=s;v.status="fulfilled",v.value=m}},function(m){if(s.status==="pending"){var v=s;v.status="rejected",v.reason=m}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw n=s.reason,lp(n),n}throw T0=s,yr}}function _0(n){try{var s=n._init;return s(n._payload)}catch(c){throw c!==null&&typeof c=="object"&&typeof c.then=="function"?(T0=c,yr):c}}var T0=null;function sp(){if(T0===null)throw Error(i(459));var n=T0;return T0=null,n}function lp(n){if(n===yr||n===yl)throw Error(i(483))}var wr=null,_s=0;function Al(n){var s=_s;return _s+=1,wr===null&&(wr=[]),rp(wr,n,s)}function Ts(n,s){s=s.props.ref,n.ref=s!==void 0?s:null}function jl(n,s){throw s.$$typeof===b?Error(i(525)):(n=Object.prototype.toString.call(s),Error(i(31,n==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":n)))}function ip(n){function s(Q,G){if(n){var ee=Q.deletions;ee===null?(Q.deletions=[G],Q.flags|=16):ee.push(G)}}function c(Q,G){if(!n)return null;for(;G!==null;)s(Q,G),G=G.sibling;return null}function m(Q){for(var G=new Map;Q!==null;)Q.key!==null?G.set(Q.key,Q):G.set(Q.index,Q),Q=Q.sibling;return G}function v(Q,G){return Q=xn(Q,G),Q.index=0,Q.sibling=null,Q}function y(Q,G,ee){return Q.index=ee,n?(ee=Q.alternate,ee!==null?(ee=ee.index,ee<G?(Q.flags|=67108866,G):ee):(Q.flags|=67108866,G)):(Q.flags|=1048576,G)}function C(Q){return n&&Q.alternate===null&&(Q.flags|=67108866),Q}function R(Q,G,ee,ue){return G===null||G.tag!==6?(G=rc(ee,Q.mode,ue),G.return=Q,G):(G=v(G,ee),G.return=Q,G)}function P(Q,G,ee,ue){var be=ee.type;return be===E?oe(Q,G,ee.props.children,ue,ee.key):G!==null&&(G.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===H&&_0(be)===G.type)?(G=v(G,ee.props),Ts(G,ee),G.return=Q,G):(G=pl(ee.type,ee.key,ee.props,null,Q.mode,ue),Ts(G,ee),G.return=Q,G)}function te(Q,G,ee,ue){return G===null||G.tag!==4||G.stateNode.containerInfo!==ee.containerInfo||G.stateNode.implementation!==ee.implementation?(G=sc(ee,Q.mode,ue),G.return=Q,G):(G=v(G,ee.children||[]),G.return=Q,G)}function oe(Q,G,ee,ue,be){return G===null||G.tag!==7?(G=S0(ee,Q.mode,ue,be),G.return=Q,G):(G=v(G,ee),G.return=Q,G)}function he(Q,G,ee){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=rc(""+G,Q.mode,ee),G.return=Q,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case w:return ee=pl(G.type,G.key,G.props,null,Q.mode,ee),Ts(ee,G),ee.return=Q,ee;case N:return G=sc(G,Q.mode,ee),G.return=Q,G;case H:return G=_0(G),he(Q,G,ee)}if(le(G)||K(G))return G=S0(G,Q.mode,ee,null),G.return=Q,G;if(typeof G.then=="function")return he(Q,Al(G),ee);if(G.$$typeof===M)return he(Q,vl(Q,G),ee);jl(Q,G)}return null}function ne(Q,G,ee,ue){var be=G!==null?G.key:null;if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return be!==null?null:R(Q,G,""+ee,ue);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case w:return ee.key===be?P(Q,G,ee,ue):null;case N:return ee.key===be?te(Q,G,ee,ue):null;case H:return ee=_0(ee),ne(Q,G,ee,ue)}if(le(ee)||K(ee))return be!==null?null:oe(Q,G,ee,ue,null);if(typeof ee.then=="function")return ne(Q,G,Al(ee),ue);if(ee.$$typeof===M)return ne(Q,G,vl(Q,ee),ue);jl(Q,ee)}return null}function re(Q,G,ee,ue,be){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Q=Q.get(ee)||null,R(G,Q,""+ue,be);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case w:return Q=Q.get(ue.key===null?ee:ue.key)||null,P(G,Q,ue,be);case N:return Q=Q.get(ue.key===null?ee:ue.key)||null,te(G,Q,ue,be);case H:return ue=_0(ue),re(Q,G,ee,ue,be)}if(le(ue)||K(ue))return Q=Q.get(ee)||null,oe(G,Q,ue,be,null);if(typeof ue.then=="function")return re(Q,G,ee,Al(ue),be);if(ue.$$typeof===M)return re(Q,G,ee,vl(G,ue),be);jl(G,ue)}return null}function xe(Q,G,ee,ue){for(var be=null,$e=null,ve=G,He=G=0,De=null;ve!==null&&He<ee.length;He++){ve.index>He?(De=ve,ve=null):De=ve.sibling;var qe=ne(Q,ve,ee[He],ue);if(qe===null){ve===null&&(ve=De);break}n&&ve&&qe.alternate===null&&s(Q,ve),G=y(qe,G,He),$e===null?be=qe:$e.sibling=qe,$e=qe,ve=De}if(He===ee.length)return c(Q,ve),Fe&&gn(Q,He),be;if(ve===null){for(;He<ee.length;He++)ve=he(Q,ee[He],ue),ve!==null&&(G=y(ve,G,He),$e===null?be=ve:$e.sibling=ve,$e=ve);return Fe&&gn(Q,He),be}for(ve=m(ve);He<ee.length;He++)De=re(ve,Q,He,ee[He],ue),De!==null&&(n&&De.alternate!==null&&ve.delete(De.key===null?He:De.key),G=y(De,G,He),$e===null?be=De:$e.sibling=De,$e=De);return n&&ve.forEach(function(c0){return s(Q,c0)}),Fe&&gn(Q,He),be}function ye(Q,G,ee,ue){if(ee==null)throw Error(i(151));for(var be=null,$e=null,ve=G,He=G=0,De=null,qe=ee.next();ve!==null&&!qe.done;He++,qe=ee.next()){ve.index>He?(De=ve,ve=null):De=ve.sibling;var c0=ne(Q,ve,qe.value,ue);if(c0===null){ve===null&&(ve=De);break}n&&ve&&c0.alternate===null&&s(Q,ve),G=y(c0,G,He),$e===null?be=c0:$e.sibling=c0,$e=c0,ve=De}if(qe.done)return c(Q,ve),Fe&&gn(Q,He),be;if(ve===null){for(;!qe.done;He++,qe=ee.next())qe=he(Q,qe.value,ue),qe!==null&&(G=y(qe,G,He),$e===null?be=qe:$e.sibling=qe,$e=qe);return Fe&&gn(Q,He),be}for(ve=m(ve);!qe.done;He++,qe=ee.next())qe=re(ve,Q,He,qe.value,ue),qe!==null&&(n&&qe.alternate!==null&&ve.delete(qe.key===null?He:qe.key),G=y(qe,G,He),$e===null?be=qe:$e.sibling=qe,$e=qe);return n&&ve.forEach(function(mV){return s(Q,mV)}),Fe&&gn(Q,He),be}function Qe(Q,G,ee,ue){if(typeof ee=="object"&&ee!==null&&ee.type===E&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case w:e:{for(var be=ee.key;G!==null;){if(G.key===be){if(be=ee.type,be===E){if(G.tag===7){c(Q,G.sibling),ue=v(G,ee.props.children),ue.return=Q,Q=ue;break e}}else if(G.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===H&&_0(be)===G.type){c(Q,G.sibling),ue=v(G,ee.props),Ts(ue,ee),ue.return=Q,Q=ue;break e}c(Q,G);break}else s(Q,G);G=G.sibling}ee.type===E?(ue=S0(ee.props.children,Q.mode,ue,ee.key),ue.return=Q,Q=ue):(ue=pl(ee.type,ee.key,ee.props,null,Q.mode,ue),Ts(ue,ee),ue.return=Q,Q=ue)}return C(Q);case N:e:{for(be=ee.key;G!==null;){if(G.key===be)if(G.tag===4&&G.stateNode.containerInfo===ee.containerInfo&&G.stateNode.implementation===ee.implementation){c(Q,G.sibling),ue=v(G,ee.children||[]),ue.return=Q,Q=ue;break e}else{c(Q,G);break}else s(Q,G);G=G.sibling}ue=sc(ee,Q.mode,ue),ue.return=Q,Q=ue}return C(Q);case H:return ee=_0(ee),Qe(Q,G,ee,ue)}if(le(ee))return xe(Q,G,ee,ue);if(K(ee)){if(be=K(ee),typeof be!="function")throw Error(i(150));return ee=be.call(ee),ye(Q,G,ee,ue)}if(typeof ee.then=="function")return Qe(Q,G,Al(ee),ue);if(ee.$$typeof===M)return Qe(Q,G,vl(Q,ee),ue);jl(Q,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint"?(ee=""+ee,G!==null&&G.tag===6?(c(Q,G.sibling),ue=v(G,ee),ue.return=Q,Q=ue):(c(Q,G),ue=rc(ee,Q.mode,ue),ue.return=Q,Q=ue),C(Q)):c(Q,G)}return function(Q,G,ee,ue){try{_s=0;var be=Qe(Q,G,ee,ue);return wr=null,be}catch(ve){if(ve===yr||ve===yl)throw ve;var $e=oa(29,ve,null,Q.mode);return $e.lanes=ue,$e.return=Q,$e}finally{}}}var L0=ip(!0),op=ip(!1),Un=!1;function gc(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vc(n,s){n=n.updateQueue,s.updateQueue===n&&(s.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Gn(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Yn(n,s,c){var m=n.updateQueue;if(m===null)return null;if(m=m.shared,(Ie&2)!==0){var v=m.pending;return v===null?s.next=s:(s.next=v.next,v.next=s),m.pending=s,s=fl(n),P3(n,null,c),s}return ml(n,m,s,c),fl(n)}function Ls(n,s,c){if(s=s.updateQueue,s!==null&&(s=s.shared,(c&4194048)!==0)){var m=s.lanes;m&=n.pendingLanes,c|=m,s.lanes=c,Wf(n,c)}}function bc(n,s){var c=n.updateQueue,m=n.alternate;if(m!==null&&(m=m.updateQueue,c===m)){var v=null,y=null;if(c=c.firstBaseUpdate,c!==null){do{var C={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};y===null?v=y=C:y=y.next=C,c=c.next}while(c!==null);y===null?v=y=s:y=y.next=s}else v=y=s;c={baseState:m.baseState,firstBaseUpdate:v,lastBaseUpdate:y,shared:m.shared,callbacks:m.callbacks},n.updateQueue=c;return}n=c.lastBaseUpdate,n===null?c.firstBaseUpdate=s:n.next=s,c.lastBaseUpdate=s}var yc=!1;function ks(){if(yc){var n=br;if(n!==null)throw n}}function Rs(n,s,c,m){yc=!1;var v=n.updateQueue;Un=!1;var y=v.firstBaseUpdate,C=v.lastBaseUpdate,R=v.shared.pending;if(R!==null){v.shared.pending=null;var P=R,te=P.next;P.next=null,C===null?y=te:C.next=te,C=P;var oe=n.alternate;oe!==null&&(oe=oe.updateQueue,R=oe.lastBaseUpdate,R!==C&&(R===null?oe.firstBaseUpdate=te:R.next=te,oe.lastBaseUpdate=P))}if(y!==null){var he=v.baseState;C=0,oe=te=P=null,R=y;do{var ne=R.lane&-536870913,re=ne!==R.lane;if(re?(Re&ne)===ne:(m&ne)===ne){ne!==0&&ne===vr&&(yc=!0),oe!==null&&(oe=oe.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var xe=n,ye=R;ne=s;var Qe=c;switch(ye.tag){case 1:if(xe=ye.payload,typeof xe=="function"){he=xe.call(Qe,he,ne);break e}he=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=ye.payload,ne=typeof xe=="function"?xe.call(Qe,he,ne):xe,ne==null)break e;he=g({},he,ne);break e;case 2:Un=!0}}ne=R.callback,ne!==null&&(n.flags|=64,re&&(n.flags|=8192),re=v.callbacks,re===null?v.callbacks=[ne]:re.push(ne))}else re={lane:ne,tag:R.tag,payload:R.payload,callback:R.callback,next:null},oe===null?(te=oe=re,P=he):oe=oe.next=re,C|=ne;if(R=R.next,R===null){if(R=v.shared.pending,R===null)break;re=R,R=re.next,re.next=null,v.lastBaseUpdate=re,v.shared.pending=null}}while(!0);oe===null&&(P=he),v.baseState=P,v.firstBaseUpdate=te,v.lastBaseUpdate=oe,y===null&&(v.shared.lanes=0),Wn|=C,n.lanes=C,n.memoizedState=he}}function cp(n,s){if(typeof n!="function")throw Error(i(191,n));n.call(s)}function up(n,s){var c=n.callbacks;if(c!==null)for(n.callbacks=null,n=0;n<c.length;n++)cp(c[n],s)}var Ar=k(null),Nl=k(0);function dp(n,s){n=Zn,W(Nl,n),W(Ar,s),Zn=n|s.baseLanes}function wc(){W(Nl,Zn),W(Ar,Ar.current)}function Ac(){Zn=Nl.current,U(Ar),U(Nl)}var ca=k(null),Ma=null;function Kn(n){var s=n.alternate;W(gt,gt.current&1),W(ca,n),Ma===null&&(s===null||Ar.current!==null||s.memoizedState!==null)&&(Ma=n)}function jc(n){W(gt,gt.current),W(ca,n),Ma===null&&(Ma=n)}function hp(n){n.tag===22?(W(gt,gt.current),W(ca,n),Ma===null&&(Ma=n)):Xn()}function Xn(){W(gt,gt.current),W(ca,ca.current)}function ua(n){U(ca),Ma===n&&(Ma=null),U(gt)}var gt=k(0);function El(n){for(var s=n;s!==null;){if(s.tag===13){var c=s.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||C2(c)||H2(c)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var yn=0,Ce=null,Ke=null,At=null,Ml=!1,jr=!1,k0=!1,Sl=0,Ds=0,Nr=null,nH=0;function dt(){throw Error(i(321))}function Nc(n,s){if(s===null)return!1;for(var c=0;c<s.length&&c<n.length;c++)if(!ia(n[c],s[c]))return!1;return!0}function Ec(n,s,c,m,v,y){return yn=y,Ce=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,O.H=n===null||n.memoizedState===null?Kp:zc,k0=!1,y=c(m,v),k0=!1,jr&&(y=fp(s,c,m,v)),mp(n),y}function mp(n){O.H=zs;var s=Ke!==null&&Ke.next!==null;if(yn=0,At=Ke=Ce=null,Ml=!1,Ds=0,Nr=null,s)throw Error(i(300));n===null||jt||(n=n.dependencies,n!==null&&gl(n)&&(jt=!0))}function fp(n,s,c,m){Ce=n;var v=0;do{if(jr&&(Nr=null),Ds=0,jr=!1,25<=v)throw Error(i(301));if(v+=1,At=Ke=null,n.updateQueue!=null){var y=n.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}O.H=Xp,y=s(c,m)}while(jr);return y}function rH(){var n=O.H,s=n.useState()[0];return s=typeof s.then=="function"?Os(s):s,n=n.useState()[0],(Ke!==null?Ke.memoizedState:null)!==n&&(Ce.flags|=1024),s}function Mc(){var n=Sl!==0;return Sl=0,n}function Sc(n,s,c){s.updateQueue=n.updateQueue,s.flags&=-2053,n.lanes&=~c}function Zc(n){if(Ml){for(n=n.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}Ml=!1}yn=0,At=Ke=Ce=null,jr=!1,Ds=Sl=0,Nr=null}function Bt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?Ce.memoizedState=At=n:At=At.next=n,At}function vt(){if(Ke===null){var n=Ce.alternate;n=n!==null?n.memoizedState:null}else n=Ke.next;var s=At===null?Ce.memoizedState:At.next;if(s!==null)At=s,Ke=n;else{if(n===null)throw Ce.alternate===null?Error(i(467)):Error(i(310));Ke=n,n={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},At===null?Ce.memoizedState=At=n:At=At.next=n}return At}function Zl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Os(n){var s=Ds;return Ds+=1,Nr===null&&(Nr=[]),n=rp(Nr,n,s),s=Ce,(At===null?s.memoizedState:At.next)===null&&(s=s.alternate,O.H=s===null||s.memoizedState===null?Kp:zc),n}function Cl(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Os(n);if(n.$$typeof===M)return Dt(n)}throw Error(i(438,String(n)))}function Cc(n){var s=null,c=Ce.updateQueue;if(c!==null&&(s=c.memoCache),s==null){var m=Ce.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(s={data:m.data.map(function(v){return v.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),c===null&&(c=Zl(),Ce.updateQueue=c),c.memoCache=s,c=s.data[s.index],c===void 0)for(c=s.data[s.index]=Array(n),m=0;m<n;m++)c[m]=D;return s.index++,c}function wn(n,s){return typeof s=="function"?s(n):s}function Hl(n){var s=vt();return Hc(s,Ke,n)}function Hc(n,s,c){var m=n.queue;if(m===null)throw Error(i(311));m.lastRenderedReducer=c;var v=n.baseQueue,y=m.pending;if(y!==null){if(v!==null){var C=v.next;v.next=y.next,y.next=C}s.baseQueue=v=y,m.pending=null}if(y=n.baseState,v===null)n.memoizedState=y;else{s=v.next;var R=C=null,P=null,te=s,oe=!1;do{var he=te.lane&-536870913;if(he!==te.lane?(Re&he)===he:(yn&he)===he){var ne=te.revertLane;if(ne===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null}),he===vr&&(oe=!0);else if((yn&ne)===ne){te=te.next,ne===vr&&(oe=!0);continue}else he={lane:0,revertLane:te.revertLane,gesture:null,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},P===null?(R=P=he,C=y):P=P.next=he,Ce.lanes|=ne,Wn|=ne;he=te.action,k0&&c(y,he),y=te.hasEagerState?te.eagerState:c(y,he)}else ne={lane:he,revertLane:te.revertLane,gesture:te.gesture,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},P===null?(R=P=ne,C=y):P=P.next=ne,Ce.lanes|=he,Wn|=he;te=te.next}while(te!==null&&te!==s);if(P===null?C=y:P.next=R,!ia(y,n.memoizedState)&&(jt=!0,oe&&(c=br,c!==null)))throw c;n.memoizedState=y,n.baseState=C,n.baseQueue=P,m.lastRenderedState=y}return v===null&&(m.lanes=0),[n.memoizedState,m.dispatch]}function Vc(n){var s=vt(),c=s.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=n;var m=c.dispatch,v=c.pending,y=s.memoizedState;if(v!==null){c.pending=null;var C=v=v.next;do y=n(y,C.action),C=C.next;while(C!==v);ia(y,s.memoizedState)||(jt=!0),s.memoizedState=y,s.baseQueue===null&&(s.baseState=y),c.lastRenderedState=y}return[y,m]}function pp(n,s,c){var m=Ce,v=vt(),y=Fe;if(y){if(c===void 0)throw Error(i(407));c=c()}else c=s();var C=!ia((Ke||v).memoizedState,c);if(C&&(v.memoizedState=c,jt=!0),v=v.queue,Lc(vp.bind(null,m,v,n),[n]),v.getSnapshot!==s||C||At!==null&&At.memoizedState.tag&1){if(m.flags|=2048,Er(9,{destroy:void 0},gp.bind(null,m,v,c,s),null),Je===null)throw Error(i(349));y||(yn&127)!==0||xp(m,s,c)}return c}function xp(n,s,c){n.flags|=16384,n={getSnapshot:s,value:c},s=Ce.updateQueue,s===null?(s=Zl(),Ce.updateQueue=s,s.stores=[n]):(c=s.stores,c===null?s.stores=[n]:c.push(n))}function gp(n,s,c,m){s.value=c,s.getSnapshot=m,bp(s)&&yp(n)}function vp(n,s,c){return c(function(){bp(s)&&yp(n)})}function bp(n){var s=n.getSnapshot;n=n.value;try{var c=s();return!ia(n,c)}catch{return!0}}function yp(n){var s=M0(n,2);s!==null&&aa(s,n,2)}function _c(n){var s=Bt();if(typeof n=="function"){var c=n;if(n=c(),k0){Fn(!0);try{c()}finally{Fn(!1)}}}return s.memoizedState=s.baseState=n,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:n},s}function wp(n,s,c,m){return n.baseState=c,Hc(n,Ke,typeof m=="function"?m:wn)}function sH(n,s,c,m,v){if(Tl(n))throw Error(i(485));if(n=s.action,n!==null){var y={payload:v,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){y.listeners.push(C)}};O.T!==null?c(!0):y.isTransition=!1,m(y),c=s.pending,c===null?(y.next=s.pending=y,Ap(s,y)):(y.next=c.next,s.pending=c.next=y)}}function Ap(n,s){var c=s.action,m=s.payload,v=n.state;if(s.isTransition){var y=O.T,C={};O.T=C;try{var R=c(v,m),P=O.S;P!==null&&P(C,R),jp(n,s,R)}catch(te){Tc(n,s,te)}finally{y!==null&&C.types!==null&&(y.types=C.types),O.T=y}}else try{y=c(v,m),jp(n,s,y)}catch(te){Tc(n,s,te)}}function jp(n,s,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(m){Np(n,s,m)},function(m){return Tc(n,s,m)}):Np(n,s,c)}function Np(n,s,c){s.status="fulfilled",s.value=c,Ep(s),n.state=c,s=n.pending,s!==null&&(c=s.next,c===s?n.pending=null:(c=c.next,s.next=c,Ap(n,c)))}function Tc(n,s,c){var m=n.pending;if(n.pending=null,m!==null){m=m.next;do s.status="rejected",s.reason=c,Ep(s),s=s.next;while(s!==m)}n.action=null}function Ep(n){n=n.listeners;for(var s=0;s<n.length;s++)(0,n[s])()}function Mp(n,s){return s}function Sp(n,s){if(Fe){var c=Je.formState;if(c!==null){e:{var m=Ce;if(Fe){if(at){t:{for(var v=at,y=Ea;v.nodeType!==8;){if(!y){v=null;break t}if(v=Sa(v.nextSibling),v===null){v=null;break t}}y=v.data,v=y==="F!"||y==="F"?v:null}if(v){at=Sa(v.nextSibling),m=v.data==="F!";break e}}Bn(m)}m=!1}m&&(s=c[0])}}return c=Bt(),c.memoizedState=c.baseState=s,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mp,lastRenderedState:s},c.queue=m,c=Up.bind(null,Ce,m),m.dispatch=c,m=_c(!1),y=Fc.bind(null,Ce,!1,m.queue),m=Bt(),v={state:s,dispatch:null,action:n,pending:null},m.queue=v,c=sH.bind(null,Ce,v,y,c),v.dispatch=c,m.memoizedState=n,[s,c,!1]}function Zp(n){var s=vt();return Cp(s,Ke,n)}function Cp(n,s,c){if(s=Hc(n,s,Mp)[0],n=Hl(wn)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var m=Os(s)}catch(C){throw C===yr?yl:C}else m=s;s=vt();var v=s.queue,y=v.dispatch;return c!==s.memoizedState&&(Ce.flags|=2048,Er(9,{destroy:void 0},lH.bind(null,v,c),null)),[m,y,n]}function lH(n,s){n.action=s}function Hp(n){var s=vt(),c=Ke;if(c!==null)return Cp(s,c,n);vt(),s=s.memoizedState,c=vt();var m=c.queue.dispatch;return c.memoizedState=n,[s,m,!1]}function Er(n,s,c,m){return n={tag:n,create:c,deps:m,inst:s,next:null},s=Ce.updateQueue,s===null&&(s=Zl(),Ce.updateQueue=s),c=s.lastEffect,c===null?s.lastEffect=n.next=n:(m=c.next,c.next=n,n.next=m,s.lastEffect=n),n}function Vp(){return vt().memoizedState}function Vl(n,s,c,m){var v=Bt();Ce.flags|=n,v.memoizedState=Er(1|s,{destroy:void 0},c,m===void 0?null:m)}function _l(n,s,c,m){var v=vt();m=m===void 0?null:m;var y=v.memoizedState.inst;Ke!==null&&m!==null&&Nc(m,Ke.memoizedState.deps)?v.memoizedState=Er(s,y,c,m):(Ce.flags|=n,v.memoizedState=Er(1|s,y,c,m))}function _p(n,s){Vl(8390656,8,n,s)}function Lc(n,s){_l(2048,8,n,s)}function iH(n){Ce.flags|=4;var s=Ce.updateQueue;if(s===null)s=Zl(),Ce.updateQueue=s,s.events=[n];else{var c=s.events;c===null?s.events=[n]:c.push(n)}}function Tp(n){var s=vt().memoizedState;return iH({ref:s,nextImpl:n}),function(){if((Ie&2)!==0)throw Error(i(440));return s.impl.apply(void 0,arguments)}}function Lp(n,s){return _l(4,2,n,s)}function kp(n,s){return _l(4,4,n,s)}function Rp(n,s){if(typeof s=="function"){n=n();var c=s(n);return function(){typeof c=="function"?c():s(null)}}if(s!=null)return n=n(),s.current=n,function(){s.current=null}}function Dp(n,s,c){c=c!=null?c.concat([n]):null,_l(4,4,Rp.bind(null,s,n),c)}function kc(){}function Op(n,s){var c=vt();s=s===void 0?null:s;var m=c.memoizedState;return s!==null&&Nc(s,m[1])?m[0]:(c.memoizedState=[n,s],n)}function Fp(n,s){var c=vt();s=s===void 0?null:s;var m=c.memoizedState;if(s!==null&&Nc(s,m[1]))return m[0];if(m=n(),k0){Fn(!0);try{n()}finally{Fn(!1)}}return c.memoizedState=[m,s],m}function Rc(n,s,c){return c===void 0||(yn&1073741824)!==0&&(Re&261930)===0?n.memoizedState=s:(n.memoizedState=c,n=z5(),Ce.lanes|=n,Wn|=n,c)}function zp(n,s,c,m){return ia(c,s)?c:Ar.current!==null?(n=Rc(n,c,m),ia(n,s)||(jt=!0),n):(yn&42)===0||(yn&1073741824)!==0&&(Re&261930)===0?(jt=!0,n.memoizedState=c):(n=z5(),Ce.lanes|=n,Wn|=n,s)}function $p(n,s,c,m,v){var y=q.p;q.p=y!==0&&8>y?y:8;var C=O.T,R={};O.T=R,Fc(n,!1,s,c);try{var P=v(),te=O.S;if(te!==null&&te(R,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var oe=aH(P,m);Fs(n,s,oe,ma(n))}else Fs(n,s,m,ma(n))}catch(he){Fs(n,s,{then:function(){},status:"rejected",reason:he},ma())}finally{q.p=y,C!==null&&R.types!==null&&(C.types=R.types),O.T=C}}function oH(){}function Dc(n,s,c,m){if(n.tag!==5)throw Error(i(476));var v=qp(n).queue;$p(n,v,s,I,c===null?oH:function(){return Ip(n),c(m)})}function qp(n){var s=n.memoizedState;if(s!==null)return s;s={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:I},next:null};var c={};return s.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:c},next:null},n.memoizedState=s,n=n.alternate,n!==null&&(n.memoizedState=s),s}function Ip(n){var s=qp(n);s.next===null&&(s=n.alternate.memoizedState),Fs(n,s.next.queue,{},ma())}function Oc(){return Dt(a1)}function Bp(){return vt().memoizedState}function Pp(){return vt().memoizedState}function cH(n){for(var s=n.return;s!==null;){switch(s.tag){case 24:case 3:var c=ma();n=Gn(c);var m=Yn(s,n,c);m!==null&&(aa(m,s,c),Ls(m,s,c)),s={cache:mc()},n.payload=s;return}s=s.return}}function uH(n,s,c){var m=ma();c={lane:m,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Tl(n)?Gp(s,c):(c=ac(n,s,c,m),c!==null&&(aa(c,n,m),Yp(c,s,m)))}function Up(n,s,c){var m=ma();Fs(n,s,c,m)}function Fs(n,s,c,m){var v={lane:m,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};if(Tl(n))Gp(s,v);else{var y=n.alternate;if(n.lanes===0&&(y===null||y.lanes===0)&&(y=s.lastRenderedReducer,y!==null))try{var C=s.lastRenderedState,R=y(C,c);if(v.hasEagerState=!0,v.eagerState=R,ia(R,C))return ml(n,s,v,0),Je===null&&hl(),!1}catch{}finally{}if(c=ac(n,s,v,m),c!==null)return aa(c,n,m),Yp(c,s,m),!0}return!1}function Fc(n,s,c,m){if(m={lane:2,revertLane:g2(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Tl(n)){if(s)throw Error(i(479))}else s=ac(n,c,m,2),s!==null&&aa(s,n,2)}function Tl(n){var s=n.alternate;return n===Ce||s!==null&&s===Ce}function Gp(n,s){jr=Ml=!0;var c=n.pending;c===null?s.next=s:(s.next=c.next,c.next=s),n.pending=s}function Yp(n,s,c){if((c&4194048)!==0){var m=s.lanes;m&=n.pendingLanes,c|=m,s.lanes=c,Wf(n,c)}}var zs={readContext:Dt,use:Cl,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useLayoutEffect:dt,useInsertionEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useSyncExternalStore:dt,useId:dt,useHostTransitionStatus:dt,useFormState:dt,useActionState:dt,useOptimistic:dt,useMemoCache:dt,useCacheRefresh:dt};zs.useEffectEvent=dt;var Kp={readContext:Dt,use:Cl,useCallback:function(n,s){return Bt().memoizedState=[n,s===void 0?null:s],n},useContext:Dt,useEffect:_p,useImperativeHandle:function(n,s,c){c=c!=null?c.concat([n]):null,Vl(4194308,4,Rp.bind(null,s,n),c)},useLayoutEffect:function(n,s){return Vl(4194308,4,n,s)},useInsertionEffect:function(n,s){Vl(4,2,n,s)},useMemo:function(n,s){var c=Bt();s=s===void 0?null:s;var m=n();if(k0){Fn(!0);try{n()}finally{Fn(!1)}}return c.memoizedState=[m,s],m},useReducer:function(n,s,c){var m=Bt();if(c!==void 0){var v=c(s);if(k0){Fn(!0);try{c(s)}finally{Fn(!1)}}}else v=s;return m.memoizedState=m.baseState=v,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:v},m.queue=n,n=n.dispatch=uH.bind(null,Ce,n),[m.memoizedState,n]},useRef:function(n){var s=Bt();return n={current:n},s.memoizedState=n},useState:function(n){n=_c(n);var s=n.queue,c=Up.bind(null,Ce,s);return s.dispatch=c,[n.memoizedState,c]},useDebugValue:kc,useDeferredValue:function(n,s){var c=Bt();return Rc(c,n,s)},useTransition:function(){var n=_c(!1);return n=$p.bind(null,Ce,n.queue,!0,!1),Bt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,s,c){var m=Ce,v=Bt();if(Fe){if(c===void 0)throw Error(i(407));c=c()}else{if(c=s(),Je===null)throw Error(i(349));(Re&127)!==0||xp(m,s,c)}v.memoizedState=c;var y={value:c,getSnapshot:s};return v.queue=y,_p(vp.bind(null,m,y,n),[n]),m.flags|=2048,Er(9,{destroy:void 0},gp.bind(null,m,y,c,s),null),c},useId:function(){var n=Bt(),s=Je.identifierPrefix;if(Fe){var c=Qa,m=Xa;c=(m&~(1<<32-la(m)-1)).toString(32)+c,s="_"+s+"R_"+c,c=Sl++,0<c&&(s+="H"+c.toString(32)),s+="_"}else c=nH++,s="_"+s+"r_"+c.toString(32)+"_";return n.memoizedState=s},useHostTransitionStatus:Oc,useFormState:Sp,useActionState:Sp,useOptimistic:function(n){var s=Bt();s.memoizedState=s.baseState=n;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=c,s=Fc.bind(null,Ce,!0,c),c.dispatch=s,[n,s]},useMemoCache:Cc,useCacheRefresh:function(){return Bt().memoizedState=cH.bind(null,Ce)},useEffectEvent:function(n){var s=Bt(),c={impl:n};return s.memoizedState=c,function(){if((Ie&2)!==0)throw Error(i(440));return c.impl.apply(void 0,arguments)}}},zc={readContext:Dt,use:Cl,useCallback:Op,useContext:Dt,useEffect:Lc,useImperativeHandle:Dp,useInsertionEffect:Lp,useLayoutEffect:kp,useMemo:Fp,useReducer:Hl,useRef:Vp,useState:function(){return Hl(wn)},useDebugValue:kc,useDeferredValue:function(n,s){var c=vt();return zp(c,Ke.memoizedState,n,s)},useTransition:function(){var n=Hl(wn)[0],s=vt().memoizedState;return[typeof n=="boolean"?n:Os(n),s]},useSyncExternalStore:pp,useId:Bp,useHostTransitionStatus:Oc,useFormState:Zp,useActionState:Zp,useOptimistic:function(n,s){var c=vt();return wp(c,Ke,n,s)},useMemoCache:Cc,useCacheRefresh:Pp};zc.useEffectEvent=Tp;var Xp={readContext:Dt,use:Cl,useCallback:Op,useContext:Dt,useEffect:Lc,useImperativeHandle:Dp,useInsertionEffect:Lp,useLayoutEffect:kp,useMemo:Fp,useReducer:Vc,useRef:Vp,useState:function(){return Vc(wn)},useDebugValue:kc,useDeferredValue:function(n,s){var c=vt();return Ke===null?Rc(c,n,s):zp(c,Ke.memoizedState,n,s)},useTransition:function(){var n=Vc(wn)[0],s=vt().memoizedState;return[typeof n=="boolean"?n:Os(n),s]},useSyncExternalStore:pp,useId:Bp,useHostTransitionStatus:Oc,useFormState:Hp,useActionState:Hp,useOptimistic:function(n,s){var c=vt();return Ke!==null?wp(c,Ke,n,s):(c.baseState=n,[n,c.queue.dispatch])},useMemoCache:Cc,useCacheRefresh:Pp};Xp.useEffectEvent=Tp;function $c(n,s,c,m){s=n.memoizedState,c=c(m,s),c=c==null?s:g({},s,c),n.memoizedState=c,n.lanes===0&&(n.updateQueue.baseState=c)}var qc={enqueueSetState:function(n,s,c){n=n._reactInternals;var m=ma(),v=Gn(m);v.payload=s,c!=null&&(v.callback=c),s=Yn(n,v,m),s!==null&&(aa(s,n,m),Ls(s,n,m))},enqueueReplaceState:function(n,s,c){n=n._reactInternals;var m=ma(),v=Gn(m);v.tag=1,v.payload=s,c!=null&&(v.callback=c),s=Yn(n,v,m),s!==null&&(aa(s,n,m),Ls(s,n,m))},enqueueForceUpdate:function(n,s){n=n._reactInternals;var c=ma(),m=Gn(c);m.tag=2,s!=null&&(m.callback=s),s=Yn(n,m,c),s!==null&&(aa(s,n,c),Ls(s,n,c))}};function Qp(n,s,c,m,v,y,C){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(m,y,C):s.prototype&&s.prototype.isPureReactComponent?!Ms(c,m)||!Ms(v,y):!0}function Jp(n,s,c,m){n=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(c,m),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(c,m),s.state!==n&&qc.enqueueReplaceState(s,s.state,null)}function R0(n,s){var c=s;if("ref"in s){c={};for(var m in s)m!=="ref"&&(c[m]=s[m])}if(n=n.defaultProps){c===s&&(c=g({},c));for(var v in n)c[v]===void 0&&(c[v]=n[v])}return c}function Wp(n){dl(n)}function e5(n){console.error(n)}function t5(n){dl(n)}function Ll(n,s){try{var c=n.onUncaughtError;c(s.value,{componentStack:s.stack})}catch(m){setTimeout(function(){throw m})}}function a5(n,s,c){try{var m=n.onCaughtError;m(c.value,{componentStack:c.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Ic(n,s,c){return c=Gn(c),c.tag=3,c.payload={element:null},c.callback=function(){Ll(n,s)},c}function n5(n){return n=Gn(n),n.tag=3,n}function r5(n,s,c,m){var v=c.type.getDerivedStateFromError;if(typeof v=="function"){var y=m.value;n.payload=function(){return v(y)},n.callback=function(){a5(s,c,m)}}var C=c.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(n.callback=function(){a5(s,c,m),typeof v!="function"&&(e0===null?e0=new Set([this]):e0.add(this));var R=m.stack;this.componentDidCatch(m.value,{componentStack:R!==null?R:""})})}function dH(n,s,c,m,v){if(c.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(s=c.alternate,s!==null&&gr(s,c,v,!0),c=ca.current,c!==null){switch(c.tag){case 31:case 13:return Ma===null?Ul():c.alternate===null&&ht===0&&(ht=3),c.flags&=-257,c.flags|=65536,c.lanes=v,m===wl?c.flags|=16384:(s=c.updateQueue,s===null?c.updateQueue=new Set([m]):s.add(m),f2(n,m,v)),!1;case 22:return c.flags|=65536,m===wl?c.flags|=16384:(s=c.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([m])},c.updateQueue=s):(c=s.retryQueue,c===null?s.retryQueue=new Set([m]):c.add(m)),f2(n,m,v)),!1}throw Error(i(435,c.tag))}return f2(n,m,v),Ul(),!1}if(Fe)return s=ca.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=v,m!==oc&&(n=Error(i(422),{cause:m}),Cs(Aa(n,c)))):(m!==oc&&(s=Error(i(423),{cause:m}),Cs(Aa(s,c))),n=n.current.alternate,n.flags|=65536,v&=-v,n.lanes|=v,m=Aa(m,c),v=Ic(n.stateNode,m,v),bc(n,v),ht!==4&&(ht=2)),!1;var y=Error(i(520),{cause:m});if(y=Aa(y,c),Ys===null?Ys=[y]:Ys.push(y),ht!==4&&(ht=2),s===null)return!0;m=Aa(m,c),c=s;do{switch(c.tag){case 3:return c.flags|=65536,n=v&-v,c.lanes|=n,n=Ic(c.stateNode,m,n),bc(c,n),!1;case 1:if(s=c.type,y=c.stateNode,(c.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(e0===null||!e0.has(y))))return c.flags|=65536,v&=-v,c.lanes|=v,v=n5(v),r5(v,n,c,m),bc(c,v),!1}c=c.return}while(c!==null);return!1}var Bc=Error(i(461)),jt=!1;function Ot(n,s,c,m){s.child=n===null?op(s,null,c,m):L0(s,n.child,c,m)}function s5(n,s,c,m,v){c=c.render;var y=s.ref;if("ref"in m){var C={};for(var R in m)R!=="ref"&&(C[R]=m[R])}else C=m;return H0(s),m=Ec(n,s,c,C,y,v),R=Mc(),n!==null&&!jt?(Sc(n,s,v),An(n,s,v)):(Fe&&R&&lc(s),s.flags|=1,Ot(n,s,m,v),s.child)}function l5(n,s,c,m,v){if(n===null){var y=c.type;return typeof y=="function"&&!nc(y)&&y.defaultProps===void 0&&c.compare===null?(s.tag=15,s.type=y,i5(n,s,y,m,v)):(n=pl(c.type,null,m,s,s.mode,v),n.ref=s.ref,n.return=s,s.child=n)}if(y=n.child,!Jc(n,v)){var C=y.memoizedProps;if(c=c.compare,c=c!==null?c:Ms,c(C,m)&&n.ref===s.ref)return An(n,s,v)}return s.flags|=1,n=xn(y,m),n.ref=s.ref,n.return=s,s.child=n}function i5(n,s,c,m,v){if(n!==null){var y=n.memoizedProps;if(Ms(y,m)&&n.ref===s.ref)if(jt=!1,s.pendingProps=m=y,Jc(n,v))(n.flags&131072)!==0&&(jt=!0);else return s.lanes=n.lanes,An(n,s,v)}return Pc(n,s,c,m,v)}function o5(n,s,c,m){var v=m.children,y=n!==null?n.memoizedState:null;if(n===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((s.flags&128)!==0){if(y=y!==null?y.baseLanes|c:c,n!==null){for(m=s.child=n.child,v=0;m!==null;)v=v|m.lanes|m.childLanes,m=m.sibling;m=v&~y}else m=0,s.child=null;return c5(n,s,y,c,m)}if((c&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},n!==null&&bl(s,y!==null?y.cachePool:null),y!==null?dp(s,y):wc(),hp(s);else return m=s.lanes=536870912,c5(n,s,y!==null?y.baseLanes|c:c,c,m)}else y!==null?(bl(s,y.cachePool),dp(s,y),Xn(),s.memoizedState=null):(n!==null&&bl(s,null),wc(),Xn());return Ot(n,s,v,c),s.child}function $s(n,s){return n!==null&&n.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function c5(n,s,c,m,v){var y=pc();return y=y===null?null:{parent:wt._currentValue,pool:y},s.memoizedState={baseLanes:c,cachePool:y},n!==null&&bl(s,null),wc(),hp(s),n!==null&&gr(n,s,m,!0),s.childLanes=v,null}function kl(n,s){return s=Dl({mode:s.mode,children:s.children},n.mode),s.ref=n.ref,n.child=s,s.return=n,s}function u5(n,s,c){return L0(s,n.child,null,c),n=kl(s,s.pendingProps),n.flags|=2,ua(s),s.memoizedState=null,n}function hH(n,s,c){var m=s.pendingProps,v=(s.flags&128)!==0;if(s.flags&=-129,n===null){if(Fe){if(m.mode==="hidden")return n=kl(s,m),s.lanes=536870912,$s(null,n);if(jc(s),(n=at)?(n=Ax(n,Ea),n=n!==null&&n.data==="&"?n:null,n!==null&&(s.memoizedState={dehydrated:n,treeContext:qn!==null?{id:Xa,overflow:Qa}:null,retryLane:536870912,hydrationErrors:null},c=G3(n),c.return=s,s.child=c,Rt=s,at=null)):n=null,n===null)throw Bn(s);return s.lanes=536870912,null}return kl(s,m)}var y=n.memoizedState;if(y!==null){var C=y.dehydrated;if(jc(s),v)if(s.flags&256)s.flags&=-257,s=u5(n,s,c);else if(s.memoizedState!==null)s.child=n.child,s.flags|=128,s=null;else throw Error(i(558));else if(jt||gr(n,s,c,!1),v=(c&n.childLanes)!==0,jt||v){if(m=Je,m!==null&&(C=e3(m,c),C!==0&&C!==y.retryLane))throw y.retryLane=C,M0(n,C),aa(m,n,C),Bc;Ul(),s=u5(n,s,c)}else n=y.treeContext,at=Sa(C.nextSibling),Rt=s,Fe=!0,In=null,Ea=!1,n!==null&&X3(s,n),s=kl(s,m),s.flags|=4096;return s}return n=xn(n.child,{mode:m.mode,children:m.children}),n.ref=s.ref,s.child=n,n.return=s,n}function Rl(n,s){var c=s.ref;if(c===null)n!==null&&n.ref!==null&&(s.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(i(284));(n===null||n.ref!==c)&&(s.flags|=4194816)}}function Pc(n,s,c,m,v){return H0(s),c=Ec(n,s,c,m,void 0,v),m=Mc(),n!==null&&!jt?(Sc(n,s,v),An(n,s,v)):(Fe&&m&&lc(s),s.flags|=1,Ot(n,s,c,v),s.child)}function d5(n,s,c,m,v,y){return H0(s),s.updateQueue=null,c=fp(s,m,c,v),mp(n),m=Mc(),n!==null&&!jt?(Sc(n,s,y),An(n,s,y)):(Fe&&m&&lc(s),s.flags|=1,Ot(n,s,c,y),s.child)}function h5(n,s,c,m,v){if(H0(s),s.stateNode===null){var y=mr,C=c.contextType;typeof C=="object"&&C!==null&&(y=Dt(C)),y=new c(m,y),s.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=qc,s.stateNode=y,y._reactInternals=s,y=s.stateNode,y.props=m,y.state=s.memoizedState,y.refs={},gc(s),C=c.contextType,y.context=typeof C=="object"&&C!==null?Dt(C):mr,y.state=s.memoizedState,C=c.getDerivedStateFromProps,typeof C=="function"&&($c(s,c,C,m),y.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(C=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),C!==y.state&&qc.enqueueReplaceState(y,y.state,null),Rs(s,m,y,v),ks(),y.state=s.memoizedState),typeof y.componentDidMount=="function"&&(s.flags|=4194308),m=!0}else if(n===null){y=s.stateNode;var R=s.memoizedProps,P=R0(c,R);y.props=P;var te=y.context,oe=c.contextType;C=mr,typeof oe=="object"&&oe!==null&&(C=Dt(oe));var he=c.getDerivedStateFromProps;oe=typeof he=="function"||typeof y.getSnapshotBeforeUpdate=="function",R=s.pendingProps!==R,oe||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(R||te!==C)&&Jp(s,y,m,C),Un=!1;var ne=s.memoizedState;y.state=ne,Rs(s,m,y,v),ks(),te=s.memoizedState,R||ne!==te||Un?(typeof he=="function"&&($c(s,c,he,m),te=s.memoizedState),(P=Un||Qp(s,c,P,m,ne,te,C))?(oe||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(s.flags|=4194308)):(typeof y.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=m,s.memoizedState=te),y.props=m,y.state=te,y.context=C,m=P):(typeof y.componentDidMount=="function"&&(s.flags|=4194308),m=!1)}else{y=s.stateNode,vc(n,s),C=s.memoizedProps,oe=R0(c,C),y.props=oe,he=s.pendingProps,ne=y.context,te=c.contextType,P=mr,typeof te=="object"&&te!==null&&(P=Dt(te)),R=c.getDerivedStateFromProps,(te=typeof R=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(C!==he||ne!==P)&&Jp(s,y,m,P),Un=!1,ne=s.memoizedState,y.state=ne,Rs(s,m,y,v),ks();var re=s.memoizedState;C!==he||ne!==re||Un||n!==null&&n.dependencies!==null&&gl(n.dependencies)?(typeof R=="function"&&($c(s,c,R,m),re=s.memoizedState),(oe=Un||Qp(s,c,oe,m,ne,re,P)||n!==null&&n.dependencies!==null&&gl(n.dependencies))?(te||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(m,re,P),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(m,re,P)),typeof y.componentDidUpdate=="function"&&(s.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof y.componentDidUpdate!="function"||C===n.memoizedProps&&ne===n.memoizedState||(s.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===n.memoizedProps&&ne===n.memoizedState||(s.flags|=1024),s.memoizedProps=m,s.memoizedState=re),y.props=m,y.state=re,y.context=P,m=oe):(typeof y.componentDidUpdate!="function"||C===n.memoizedProps&&ne===n.memoizedState||(s.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===n.memoizedProps&&ne===n.memoizedState||(s.flags|=1024),m=!1)}return y=m,Rl(n,s),m=(s.flags&128)!==0,y||m?(y=s.stateNode,c=m&&typeof c.getDerivedStateFromError!="function"?null:y.render(),s.flags|=1,n!==null&&m?(s.child=L0(s,n.child,null,v),s.child=L0(s,null,c,v)):Ot(n,s,c,v),s.memoizedState=y.state,n=s.child):n=An(n,s,v),n}function m5(n,s,c,m){return Z0(),s.flags|=256,Ot(n,s,c,m),s.child}var Uc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(n){return{baseLanes:n,cachePool:ap()}}function Yc(n,s,c){return n=n!==null?n.childLanes&~c:0,s&&(n|=ha),n}function f5(n,s,c){var m=s.pendingProps,v=!1,y=(s.flags&128)!==0,C;if((C=y)||(C=n!==null&&n.memoizedState===null?!1:(gt.current&2)!==0),C&&(v=!0,s.flags&=-129),C=(s.flags&32)!==0,s.flags&=-33,n===null){if(Fe){if(v?Kn(s):Xn(),(n=at)?(n=Ax(n,Ea),n=n!==null&&n.data!=="&"?n:null,n!==null&&(s.memoizedState={dehydrated:n,treeContext:qn!==null?{id:Xa,overflow:Qa}:null,retryLane:536870912,hydrationErrors:null},c=G3(n),c.return=s,s.child=c,Rt=s,at=null)):n=null,n===null)throw Bn(s);return H2(n)?s.lanes=32:s.lanes=536870912,null}var R=m.children;return m=m.fallback,v?(Xn(),v=s.mode,R=Dl({mode:"hidden",children:R},v),m=S0(m,v,c,null),R.return=s,m.return=s,R.sibling=m,s.child=R,m=s.child,m.memoizedState=Gc(c),m.childLanes=Yc(n,C,c),s.memoizedState=Uc,$s(null,m)):(Kn(s),Kc(s,R))}var P=n.memoizedState;if(P!==null&&(R=P.dehydrated,R!==null)){if(y)s.flags&256?(Kn(s),s.flags&=-257,s=Xc(n,s,c)):s.memoizedState!==null?(Xn(),s.child=n.child,s.flags|=128,s=null):(Xn(),R=m.fallback,v=s.mode,m=Dl({mode:"visible",children:m.children},v),R=S0(R,v,c,null),R.flags|=2,m.return=s,R.return=s,m.sibling=R,s.child=m,L0(s,n.child,null,c),m=s.child,m.memoizedState=Gc(c),m.childLanes=Yc(n,C,c),s.memoizedState=Uc,s=$s(null,m));else if(Kn(s),H2(R)){if(C=R.nextSibling&&R.nextSibling.dataset,C)var te=C.dgst;C=te,m=Error(i(419)),m.stack="",m.digest=C,Cs({value:m,source:null,stack:null}),s=Xc(n,s,c)}else if(jt||gr(n,s,c,!1),C=(c&n.childLanes)!==0,jt||C){if(C=Je,C!==null&&(m=e3(C,c),m!==0&&m!==P.retryLane))throw P.retryLane=m,M0(n,m),aa(C,n,m),Bc;C2(R)||Ul(),s=Xc(n,s,c)}else C2(R)?(s.flags|=192,s.child=n.child,s=null):(n=P.treeContext,at=Sa(R.nextSibling),Rt=s,Fe=!0,In=null,Ea=!1,n!==null&&X3(s,n),s=Kc(s,m.children),s.flags|=4096);return s}return v?(Xn(),R=m.fallback,v=s.mode,P=n.child,te=P.sibling,m=xn(P,{mode:"hidden",children:m.children}),m.subtreeFlags=P.subtreeFlags&65011712,te!==null?R=xn(te,R):(R=S0(R,v,c,null),R.flags|=2),R.return=s,m.return=s,m.sibling=R,s.child=m,$s(null,m),m=s.child,R=n.child.memoizedState,R===null?R=Gc(c):(v=R.cachePool,v!==null?(P=wt._currentValue,v=v.parent!==P?{parent:P,pool:P}:v):v=ap(),R={baseLanes:R.baseLanes|c,cachePool:v}),m.memoizedState=R,m.childLanes=Yc(n,C,c),s.memoizedState=Uc,$s(n.child,m)):(Kn(s),c=n.child,n=c.sibling,c=xn(c,{mode:"visible",children:m.children}),c.return=s,c.sibling=null,n!==null&&(C=s.deletions,C===null?(s.deletions=[n],s.flags|=16):C.push(n)),s.child=c,s.memoizedState=null,c)}function Kc(n,s){return s=Dl({mode:"visible",children:s},n.mode),s.return=n,n.child=s}function Dl(n,s){return n=oa(22,n,null,s),n.lanes=0,n}function Xc(n,s,c){return L0(s,n.child,null,c),n=Kc(s,s.pendingProps.children),n.flags|=2,s.memoizedState=null,n}function p5(n,s,c){n.lanes|=s;var m=n.alternate;m!==null&&(m.lanes|=s),dc(n.return,s,c)}function Qc(n,s,c,m,v,y){var C=n.memoizedState;C===null?n.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:m,tail:c,tailMode:v,treeForkCount:y}:(C.isBackwards=s,C.rendering=null,C.renderingStartTime=0,C.last=m,C.tail=c,C.tailMode=v,C.treeForkCount=y)}function x5(n,s,c){var m=s.pendingProps,v=m.revealOrder,y=m.tail;m=m.children;var C=gt.current,R=(C&2)!==0;if(R?(C=C&1|2,s.flags|=128):C&=1,W(gt,C),Ot(n,s,m,c),m=Fe?Zs:0,!R&&n!==null&&(n.flags&128)!==0)e:for(n=s.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&p5(n,c,s);else if(n.tag===19)p5(n,c,s);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===s)break e;for(;n.sibling===null;){if(n.return===null||n.return===s)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(v){case"forwards":for(c=s.child,v=null;c!==null;)n=c.alternate,n!==null&&El(n)===null&&(v=c),c=c.sibling;c=v,c===null?(v=s.child,s.child=null):(v=c.sibling,c.sibling=null),Qc(s,!1,v,c,y,m);break;case"backwards":case"unstable_legacy-backwards":for(c=null,v=s.child,s.child=null;v!==null;){if(n=v.alternate,n!==null&&El(n)===null){s.child=v;break}n=v.sibling,v.sibling=c,c=v,v=n}Qc(s,!0,c,null,y,m);break;case"together":Qc(s,!1,null,null,void 0,m);break;default:s.memoizedState=null}return s.child}function An(n,s,c){if(n!==null&&(s.dependencies=n.dependencies),Wn|=s.lanes,(c&s.childLanes)===0)if(n!==null){if(gr(n,s,c,!1),(c&s.childLanes)===0)return null}else return null;if(n!==null&&s.child!==n.child)throw Error(i(153));if(s.child!==null){for(n=s.child,c=xn(n,n.pendingProps),s.child=c,c.return=s;n.sibling!==null;)n=n.sibling,c=c.sibling=xn(n,n.pendingProps),c.return=s;c.sibling=null}return s.child}function Jc(n,s){return(n.lanes&s)!==0?!0:(n=n.dependencies,!!(n!==null&&gl(n)))}function mH(n,s,c){switch(s.tag){case 3:fe(s,s.stateNode.containerInfo),Pn(s,wt,n.memoizedState.cache),Z0();break;case 27:case 5:Ee(s);break;case 4:fe(s,s.stateNode.containerInfo);break;case 10:Pn(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,jc(s),null;break;case 13:var m=s.memoizedState;if(m!==null)return m.dehydrated!==null?(Kn(s),s.flags|=128,null):(c&s.child.childLanes)!==0?f5(n,s,c):(Kn(s),n=An(n,s,c),n!==null?n.sibling:null);Kn(s);break;case 19:var v=(n.flags&128)!==0;if(m=(c&s.childLanes)!==0,m||(gr(n,s,c,!1),m=(c&s.childLanes)!==0),v){if(m)return x5(n,s,c);s.flags|=128}if(v=s.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),W(gt,gt.current),m)break;return null;case 22:return s.lanes=0,o5(n,s,c,s.pendingProps);case 24:Pn(s,wt,n.memoizedState.cache)}return An(n,s,c)}function g5(n,s,c){if(n!==null)if(n.memoizedProps!==s.pendingProps)jt=!0;else{if(!Jc(n,c)&&(s.flags&128)===0)return jt=!1,mH(n,s,c);jt=(n.flags&131072)!==0}else jt=!1,Fe&&(s.flags&1048576)!==0&&K3(s,Zs,s.index);switch(s.lanes=0,s.tag){case 16:e:{var m=s.pendingProps;if(n=_0(s.elementType),s.type=n,typeof n=="function")nc(n)?(m=R0(n,m),s.tag=1,s=h5(null,s,n,m,c)):(s.tag=0,s=Pc(null,s,n,m,c));else{if(n!=null){var v=n.$$typeof;if(v===S){s.tag=11,s=s5(null,s,n,m,c);break e}else if(v===V){s.tag=14,s=l5(null,s,n,m,c);break e}}throw s=se(n)||n,Error(i(306,s,""))}}return s;case 0:return Pc(n,s,s.type,s.pendingProps,c);case 1:return m=s.type,v=R0(m,s.pendingProps),h5(n,s,m,v,c);case 3:e:{if(fe(s,s.stateNode.containerInfo),n===null)throw Error(i(387));m=s.pendingProps;var y=s.memoizedState;v=y.element,vc(n,s),Rs(s,m,null,c);var C=s.memoizedState;if(m=C.cache,Pn(s,wt,m),m!==y.cache&&hc(s,[wt],c,!0),ks(),m=C.element,y.isDehydrated)if(y={element:m,isDehydrated:!1,cache:C.cache},s.updateQueue.baseState=y,s.memoizedState=y,s.flags&256){s=m5(n,s,m,c);break e}else if(m!==v){v=Aa(Error(i(424)),s),Cs(v),s=m5(n,s,m,c);break e}else{switch(n=s.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(at=Sa(n.firstChild),Rt=s,Fe=!0,In=null,Ea=!0,c=op(s,null,m,c),s.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(Z0(),m===v){s=An(n,s,c);break e}Ot(n,s,m,c)}s=s.child}return s;case 26:return Rl(n,s),n===null?(c=Zx(s.type,null,s.pendingProps,null))?s.memoizedState=c:Fe||(c=s.type,n=s.pendingProps,m=Wl(z.current).createElement(c),m[kt]=s,m[Xt]=n,Ft(m,c,n),Ht(m),s.stateNode=m):s.memoizedState=Zx(s.type,n.memoizedProps,s.pendingProps,n.memoizedState),null;case 27:return Ee(s),n===null&&Fe&&(m=s.stateNode=Ex(s.type,s.pendingProps,z.current),Rt=s,Ea=!0,v=at,r0(s.type)?(V2=v,at=Sa(m.firstChild)):at=v),Ot(n,s,s.pendingProps.children,c),Rl(n,s),n===null&&(s.flags|=4194304),s.child;case 5:return n===null&&Fe&&((v=m=at)&&(m=IH(m,s.type,s.pendingProps,Ea),m!==null?(s.stateNode=m,Rt=s,at=Sa(m.firstChild),Ea=!1,v=!0):v=!1),v||Bn(s)),Ee(s),v=s.type,y=s.pendingProps,C=n!==null?n.memoizedProps:null,m=y.children,M2(v,y)?m=null:C!==null&&M2(v,C)&&(s.flags|=32),s.memoizedState!==null&&(v=Ec(n,s,rH,null,null,c),a1._currentValue=v),Rl(n,s),Ot(n,s,m,c),s.child;case 6:return n===null&&Fe&&((n=c=at)&&(c=BH(c,s.pendingProps,Ea),c!==null?(s.stateNode=c,Rt=s,at=null,n=!0):n=!1),n||Bn(s)),null;case 13:return f5(n,s,c);case 4:return fe(s,s.stateNode.containerInfo),m=s.pendingProps,n===null?s.child=L0(s,null,m,c):Ot(n,s,m,c),s.child;case 11:return s5(n,s,s.type,s.pendingProps,c);case 7:return Ot(n,s,s.pendingProps,c),s.child;case 8:return Ot(n,s,s.pendingProps.children,c),s.child;case 12:return Ot(n,s,s.pendingProps.children,c),s.child;case 10:return m=s.pendingProps,Pn(s,s.type,m.value),Ot(n,s,m.children,c),s.child;case 9:return v=s.type._context,m=s.pendingProps.children,H0(s),v=Dt(v),m=m(v),s.flags|=1,Ot(n,s,m,c),s.child;case 14:return l5(n,s,s.type,s.pendingProps,c);case 15:return i5(n,s,s.type,s.pendingProps,c);case 19:return x5(n,s,c);case 31:return hH(n,s,c);case 22:return o5(n,s,c,s.pendingProps);case 24:return H0(s),m=Dt(wt),n===null?(v=pc(),v===null&&(v=Je,y=mc(),v.pooledCache=y,y.refCount++,y!==null&&(v.pooledCacheLanes|=c),v=y),s.memoizedState={parent:m,cache:v},gc(s),Pn(s,wt,v)):((n.lanes&c)!==0&&(vc(n,s),Rs(s,null,null,c),ks()),v=n.memoizedState,y=s.memoizedState,v.parent!==m?(v={parent:m,cache:m},s.memoizedState=v,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=v),Pn(s,wt,m)):(m=y.cache,Pn(s,wt,m),m!==v.cache&&hc(s,[wt],c,!0))),Ot(n,s,s.pendingProps.children,c),s.child;case 29:throw s.pendingProps}throw Error(i(156,s.tag))}function jn(n){n.flags|=4}function Wc(n,s,c,m,v){if((s=(n.mode&32)!==0)&&(s=!1),s){if(n.flags|=16777216,(v&335544128)===v)if(n.stateNode.complete)n.flags|=8192;else if(B5())n.flags|=8192;else throw T0=wl,xc}else n.flags&=-16777217}function v5(n,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Tx(s))if(B5())n.flags|=8192;else throw T0=wl,xc}function Ol(n,s){s!==null&&(n.flags|=4),n.flags&16384&&(s=n.tag!==22?Qf():536870912,n.lanes|=s,Cr|=s)}function qs(n,s){if(!Fe)switch(n.tailMode){case"hidden":s=n.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?n.tail=null:c.sibling=null;break;case"collapsed":c=n.tail;for(var m=null;c!==null;)c.alternate!==null&&(m=c),c=c.sibling;m===null?s||n.tail===null?n.tail=null:n.tail.sibling=null:m.sibling=null}}function nt(n){var s=n.alternate!==null&&n.alternate.child===n.child,c=0,m=0;if(s)for(var v=n.child;v!==null;)c|=v.lanes|v.childLanes,m|=v.subtreeFlags&65011712,m|=v.flags&65011712,v.return=n,v=v.sibling;else for(v=n.child;v!==null;)c|=v.lanes|v.childLanes,m|=v.subtreeFlags,m|=v.flags,v.return=n,v=v.sibling;return n.subtreeFlags|=m,n.childLanes=c,s}function fH(n,s,c){var m=s.pendingProps;switch(ic(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(s),null;case 1:return nt(s),null;case 3:return c=s.stateNode,m=null,n!==null&&(m=n.memoizedState.cache),s.memoizedState.cache!==m&&(s.flags|=2048),bn(wt),pe(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(n===null||n.child===null)&&(xr(s)?jn(s):n===null||n.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,cc())),nt(s),null;case 26:var v=s.type,y=s.memoizedState;return n===null?(jn(s),y!==null?(nt(s),v5(s,y)):(nt(s),Wc(s,v,null,m,c))):y?y!==n.memoizedState?(jn(s),nt(s),v5(s,y)):(nt(s),s.flags&=-16777217):(n=n.memoizedProps,n!==m&&jn(s),nt(s),Wc(s,v,n,m,c)),null;case 27:if(Me(s),c=z.current,v=s.type,n!==null&&s.stateNode!=null)n.memoizedProps!==m&&jn(s);else{if(!m){if(s.stateNode===null)throw Error(i(166));return nt(s),null}n=$.current,xr(s)?Q3(s):(n=Ex(v,m,c),s.stateNode=n,jn(s))}return nt(s),null;case 5:if(Me(s),v=s.type,n!==null&&s.stateNode!=null)n.memoizedProps!==m&&jn(s);else{if(!m){if(s.stateNode===null)throw Error(i(166));return nt(s),null}if(y=$.current,xr(s))Q3(s);else{var C=Wl(z.current);switch(y){case 1:y=C.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:y=C.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":y=C.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":y=C.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":y=C.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof m.is=="string"?C.createElement("select",{is:m.is}):C.createElement("select"),m.multiple?y.multiple=!0:m.size&&(y.size=m.size);break;default:y=typeof m.is=="string"?C.createElement(v,{is:m.is}):C.createElement(v)}}y[kt]=s,y[Xt]=m;e:for(C=s.child;C!==null;){if(C.tag===5||C.tag===6)y.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===s)break e;for(;C.sibling===null;){if(C.return===null||C.return===s)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}s.stateNode=y;e:switch(Ft(y,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&&jn(s)}}return nt(s),Wc(s,s.type,n===null?null:n.memoizedProps,s.pendingProps,c),null;case 6:if(n&&s.stateNode!=null)n.memoizedProps!==m&&jn(s);else{if(typeof m!="string"&&s.stateNode===null)throw Error(i(166));if(n=z.current,xr(s)){if(n=s.stateNode,c=s.memoizedProps,m=null,v=Rt,v!==null)switch(v.tag){case 27:case 5:m=v.memoizedProps}n[kt]=s,n=!!(n.nodeValue===c||m!==null&&m.suppressHydrationWarning===!0||fx(n.nodeValue,c)),n||Bn(s,!0)}else n=Wl(n).createTextNode(m),n[kt]=s,s.stateNode=n}return nt(s),null;case 31:if(c=s.memoizedState,n===null||n.memoizedState!==null){if(m=xr(s),c!==null){if(n===null){if(!m)throw Error(i(318));if(n=s.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(557));n[kt]=s}else Z0(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;nt(s),n=!1}else c=cc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=c),n=!0;if(!n)return s.flags&256?(ua(s),s):(ua(s),null);if((s.flags&128)!==0)throw Error(i(558))}return nt(s),null;case 13:if(m=s.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(v=xr(s),m!==null&&m.dehydrated!==null){if(n===null){if(!v)throw Error(i(318));if(v=s.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(i(317));v[kt]=s}else Z0(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;nt(s),v=!1}else v=cc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=v),v=!0;if(!v)return s.flags&256?(ua(s),s):(ua(s),null)}return ua(s),(s.flags&128)!==0?(s.lanes=c,s):(c=m!==null,n=n!==null&&n.memoizedState!==null,c&&(m=s.child,v=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(v=m.alternate.memoizedState.cachePool.pool),y=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(y=m.memoizedState.cachePool.pool),y!==v&&(m.flags|=2048)),c!==n&&c&&(s.child.flags|=8192),Ol(s,s.updateQueue),nt(s),null);case 4:return pe(),n===null&&w2(s.stateNode.containerInfo),nt(s),null;case 10:return bn(s.type),nt(s),null;case 19:if(U(gt),m=s.memoizedState,m===null)return nt(s),null;if(v=(s.flags&128)!==0,y=m.rendering,y===null)if(v)qs(m,!1);else{if(ht!==0||n!==null&&(n.flags&128)!==0)for(n=s.child;n!==null;){if(y=El(n),y!==null){for(s.flags|=128,qs(m,!1),n=y.updateQueue,s.updateQueue=n,Ol(s,n),s.subtreeFlags=0,n=c,c=s.child;c!==null;)U3(c,n),c=c.sibling;return W(gt,gt.current&1|2),Fe&&gn(s,m.treeForkCount),s.child}n=n.sibling}m.tail!==null&&rt()>Il&&(s.flags|=128,v=!0,qs(m,!1),s.lanes=4194304)}else{if(!v)if(n=El(y),n!==null){if(s.flags|=128,v=!0,n=n.updateQueue,s.updateQueue=n,Ol(s,n),qs(m,!0),m.tail===null&&m.tailMode==="hidden"&&!y.alternate&&!Fe)return nt(s),null}else 2*rt()-m.renderingStartTime>Il&&c!==536870912&&(s.flags|=128,v=!0,qs(m,!1),s.lanes=4194304);m.isBackwards?(y.sibling=s.child,s.child=y):(n=m.last,n!==null?n.sibling=y:s.child=y,m.last=y)}return m.tail!==null?(n=m.tail,m.rendering=n,m.tail=n.sibling,m.renderingStartTime=rt(),n.sibling=null,c=gt.current,W(gt,v?c&1|2:c&1),Fe&&gn(s,m.treeForkCount),n):(nt(s),null);case 22:case 23:return ua(s),Ac(),m=s.memoizedState!==null,n!==null?n.memoizedState!==null!==m&&(s.flags|=8192):m&&(s.flags|=8192),m?(c&536870912)!==0&&(s.flags&128)===0&&(nt(s),s.subtreeFlags&6&&(s.flags|=8192)):nt(s),c=s.updateQueue,c!==null&&Ol(s,c.retryQueue),c=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(c=n.memoizedState.cachePool.pool),m=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==c&&(s.flags|=2048),n!==null&&U(V0),null;case 24:return c=null,n!==null&&(c=n.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),bn(wt),nt(s),null;case 25:return null;case 30:return null}throw Error(i(156,s.tag))}function pH(n,s){switch(ic(s),s.tag){case 1:return n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 3:return bn(wt),pe(),n=s.flags,(n&65536)!==0&&(n&128)===0?(s.flags=n&-65537|128,s):null;case 26:case 27:case 5:return Me(s),null;case 31:if(s.memoizedState!==null){if(ua(s),s.alternate===null)throw Error(i(340));Z0()}return n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 13:if(ua(s),n=s.memoizedState,n!==null&&n.dehydrated!==null){if(s.alternate===null)throw Error(i(340));Z0()}return n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 19:return U(gt),null;case 4:return pe(),null;case 10:return bn(s.type),null;case 22:case 23:return ua(s),Ac(),n!==null&&U(V0),n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 24:return bn(wt),null;case 25:return null;default:return null}}function b5(n,s){switch(ic(s),s.tag){case 3:bn(wt),pe();break;case 26:case 27:case 5:Me(s);break;case 4:pe();break;case 31:s.memoizedState!==null&&ua(s);break;case 13:ua(s);break;case 19:U(gt);break;case 10:bn(s.type);break;case 22:case 23:ua(s),Ac(),n!==null&&U(V0);break;case 24:bn(wt)}}function Is(n,s){try{var c=s.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var v=m.next;c=v;do{if((c.tag&n)===n){m=void 0;var y=c.create,C=c.inst;m=y(),C.destroy=m}c=c.next}while(c!==v)}}catch(R){Ye(s,s.return,R)}}function Qn(n,s,c){try{var m=s.updateQueue,v=m!==null?m.lastEffect:null;if(v!==null){var y=v.next;m=y;do{if((m.tag&n)===n){var C=m.inst,R=C.destroy;if(R!==void 0){C.destroy=void 0,v=s;var P=c,te=R;try{te()}catch(oe){Ye(v,P,oe)}}}m=m.next}while(m!==y)}}catch(oe){Ye(s,s.return,oe)}}function y5(n){var s=n.updateQueue;if(s!==null){var c=n.stateNode;try{up(s,c)}catch(m){Ye(n,n.return,m)}}}function w5(n,s,c){c.props=R0(n.type,n.memoizedProps),c.state=n.memoizedState;try{c.componentWillUnmount()}catch(m){Ye(n,s,m)}}function Bs(n,s){try{var c=n.ref;if(c!==null){switch(n.tag){case 26:case 27:case 5:var m=n.stateNode;break;case 30:m=n.stateNode;break;default:m=n.stateNode}typeof c=="function"?n.refCleanup=c(m):c.current=m}}catch(v){Ye(n,s,v)}}function Ja(n,s){var c=n.ref,m=n.refCleanup;if(c!==null)if(typeof m=="function")try{m()}catch(v){Ye(n,s,v)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(v){Ye(n,s,v)}else c.current=null}function A5(n){var s=n.type,c=n.memoizedProps,m=n.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":c.autoFocus&&m.focus();break e;case"img":c.src?m.src=c.src:c.srcSet&&(m.srcset=c.srcSet)}}catch(v){Ye(n,n.return,v)}}function e2(n,s,c){try{var m=n.stateNode;DH(m,n.type,c,s),m[Xt]=s}catch(v){Ye(n,n.return,v)}}function j5(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&r0(n.type)||n.tag===4}function t2(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||j5(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&r0(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function a2(n,s,c){var m=n.tag;if(m===5||m===6)n=n.stateNode,s?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(n,s):(s=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,s.appendChild(n),c=c._reactRootContainer,c!=null||s.onclick!==null||(s.onclick=fn));else if(m!==4&&(m===27&&r0(n.type)&&(c=n.stateNode,s=null),n=n.child,n!==null))for(a2(n,s,c),n=n.sibling;n!==null;)a2(n,s,c),n=n.sibling}function Fl(n,s,c){var m=n.tag;if(m===5||m===6)n=n.stateNode,s?c.insertBefore(n,s):c.appendChild(n);else if(m!==4&&(m===27&&r0(n.type)&&(c=n.stateNode),n=n.child,n!==null))for(Fl(n,s,c),n=n.sibling;n!==null;)Fl(n,s,c),n=n.sibling}function N5(n){var s=n.stateNode,c=n.memoizedProps;try{for(var m=n.type,v=s.attributes;v.length;)s.removeAttributeNode(v[0]);Ft(s,m,c),s[kt]=n,s[Xt]=c}catch(y){Ye(n,n.return,y)}}var Nn=!1,Nt=!1,n2=!1,E5=typeof WeakSet=="function"?WeakSet:Set,Vt=null;function xH(n,s){if(n=n.containerInfo,N2=li,n=D3(n),Xo(n)){if("selectionStart"in n)var c={start:n.selectionStart,end:n.selectionEnd};else e:{c=(c=n.ownerDocument)&&c.defaultView||window;var m=c.getSelection&&c.getSelection();if(m&&m.rangeCount!==0){c=m.anchorNode;var v=m.anchorOffset,y=m.focusNode;m=m.focusOffset;try{c.nodeType,y.nodeType}catch{c=null;break e}var C=0,R=-1,P=-1,te=0,oe=0,he=n,ne=null;t:for(;;){for(var re;he!==c||v!==0&&he.nodeType!==3||(R=C+v),he!==y||m!==0&&he.nodeType!==3||(P=C+m),he.nodeType===3&&(C+=he.nodeValue.length),(re=he.firstChild)!==null;)ne=he,he=re;for(;;){if(he===n)break t;if(ne===c&&++te===v&&(R=C),ne===y&&++oe===m&&(P=C),(re=he.nextSibling)!==null)break;he=ne,ne=he.parentNode}he=re}c=R===-1||P===-1?null:{start:R,end:P}}else c=null}c=c||{start:0,end:0}}else c=null;for(E2={focusedElem:n,selectionRange:c},li=!1,Vt=s;Vt!==null;)if(s=Vt,n=s.child,(s.subtreeFlags&1028)!==0&&n!==null)n.return=s,Vt=n;else for(;Vt!==null;){switch(s=Vt,y=s.alternate,n=s.flags,s.tag){case 0:if((n&4)!==0&&(n=s.updateQueue,n=n!==null?n.events:null,n!==null))for(c=0;c<n.length;c++)v=n[c],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&y!==null){n=void 0,c=s,v=y.memoizedProps,y=y.memoizedState,m=c.stateNode;try{var xe=R0(c.type,v);n=m.getSnapshotBeforeUpdate(xe,y),m.__reactInternalSnapshotBeforeUpdate=n}catch(ye){Ye(c,c.return,ye)}}break;case 3:if((n&1024)!==0){if(n=s.stateNode.containerInfo,c=n.nodeType,c===9)Z2(n);else if(c===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Z2(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(i(163))}if(n=s.sibling,n!==null){n.return=s.return,Vt=n;break}Vt=s.return}}function M5(n,s,c){var m=c.flags;switch(c.tag){case 0:case 11:case 15:Mn(n,c),m&4&&Is(5,c);break;case 1:if(Mn(n,c),m&4)if(n=c.stateNode,s===null)try{n.componentDidMount()}catch(C){Ye(c,c.return,C)}else{var v=R0(c.type,s.memoizedProps);s=s.memoizedState;try{n.componentDidUpdate(v,s,n.__reactInternalSnapshotBeforeUpdate)}catch(C){Ye(c,c.return,C)}}m&64&&y5(c),m&512&&Bs(c,c.return);break;case 3:if(Mn(n,c),m&64&&(n=c.updateQueue,n!==null)){if(s=null,c.child!==null)switch(c.child.tag){case 27:case 5:s=c.child.stateNode;break;case 1:s=c.child.stateNode}try{up(n,s)}catch(C){Ye(c,c.return,C)}}break;case 27:s===null&&m&4&&N5(c);case 26:case 5:Mn(n,c),s===null&&m&4&&A5(c),m&512&&Bs(c,c.return);break;case 12:Mn(n,c);break;case 31:Mn(n,c),m&4&&C5(n,c);break;case 13:Mn(n,c),m&4&&H5(n,c),m&64&&(n=c.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(c=EH.bind(null,c),PH(n,c))));break;case 22:if(m=c.memoizedState!==null||Nn,!m){s=s!==null&&s.memoizedState!==null||Nt,v=Nn;var y=Nt;Nn=m,(Nt=s)&&!y?Sn(n,c,(c.subtreeFlags&8772)!==0):Mn(n,c),Nn=v,Nt=y}break;case 30:break;default:Mn(n,c)}}function S5(n){var s=n.alternate;s!==null&&(n.alternate=null,S5(s)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(s=n.stateNode,s!==null&&To(s)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var st=null,Jt=!1;function En(n,s,c){for(c=c.child;c!==null;)Z5(n,s,c),c=c.sibling}function Z5(n,s,c){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Kt,c)}catch{}switch(c.tag){case 26:Nt||Ja(c,s),En(n,s,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Nt||Ja(c,s);var m=st,v=Jt;r0(c.type)&&(st=c.stateNode,Jt=!1),En(n,s,c),Ws(c.stateNode),st=m,Jt=v;break;case 5:Nt||Ja(c,s);case 6:if(m=st,v=Jt,st=null,En(n,s,c),st=m,Jt=v,st!==null)if(Jt)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(c.stateNode)}catch(y){Ye(c,s,y)}else try{st.removeChild(c.stateNode)}catch(y){Ye(c,s,y)}break;case 18:st!==null&&(Jt?(n=st,yx(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,c.stateNode),Dr(n)):yx(st,c.stateNode));break;case 4:m=st,v=Jt,st=c.stateNode.containerInfo,Jt=!0,En(n,s,c),st=m,Jt=v;break;case 0:case 11:case 14:case 15:Qn(2,c,s),Nt||Qn(4,c,s),En(n,s,c);break;case 1:Nt||(Ja(c,s),m=c.stateNode,typeof m.componentWillUnmount=="function"&&w5(c,s,m)),En(n,s,c);break;case 21:En(n,s,c);break;case 22:Nt=(m=Nt)||c.memoizedState!==null,En(n,s,c),Nt=m;break;default:En(n,s,c)}}function C5(n,s){if(s.memoizedState===null&&(n=s.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Dr(n)}catch(c){Ye(s,s.return,c)}}}function H5(n,s){if(s.memoizedState===null&&(n=s.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Dr(n)}catch(c){Ye(s,s.return,c)}}function gH(n){switch(n.tag){case 31:case 13:case 19:var s=n.stateNode;return s===null&&(s=n.stateNode=new E5),s;case 22:return n=n.stateNode,s=n._retryCache,s===null&&(s=n._retryCache=new E5),s;default:throw Error(i(435,n.tag))}}function zl(n,s){var c=gH(n);s.forEach(function(m){if(!c.has(m)){c.add(m);var v=MH.bind(null,n,m);m.then(v,v)}})}function Wt(n,s){var c=s.deletions;if(c!==null)for(var m=0;m<c.length;m++){var v=c[m],y=n,C=s,R=C;e:for(;R!==null;){switch(R.tag){case 27:if(r0(R.type)){st=R.stateNode,Jt=!1;break e}break;case 5:st=R.stateNode,Jt=!1;break e;case 3:case 4:st=R.stateNode.containerInfo,Jt=!0;break e}R=R.return}if(st===null)throw Error(i(160));Z5(y,C,v),st=null,Jt=!1,y=v.alternate,y!==null&&(y.return=null),v.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)V5(s,n),s=s.sibling}var Fa=null;function V5(n,s){var c=n.alternate,m=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Wt(s,n),ea(n),m&4&&(Qn(3,n,n.return),Is(3,n),Qn(5,n,n.return));break;case 1:Wt(s,n),ea(n),m&512&&(Nt||c===null||Ja(c,c.return)),m&64&&Nn&&(n=n.updateQueue,n!==null&&(m=n.callbacks,m!==null&&(c=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=c===null?m:c.concat(m))));break;case 26:var v=Fa;if(Wt(s,n),ea(n),m&512&&(Nt||c===null||Ja(c,c.return)),m&4){var y=c!==null?c.memoizedState:null;if(m=n.memoizedState,c===null)if(m===null)if(n.stateNode===null){e:{m=n.type,c=n.memoizedProps,v=v.ownerDocument||v;t:switch(m){case"title":y=v.getElementsByTagName("title")[0],(!y||y[gs]||y[kt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=v.createElement(m),v.head.insertBefore(y,v.querySelector("head > title"))),Ft(y,m,c),y[kt]=n,Ht(y),m=y;break e;case"link":var C=Vx("link","href",v).get(m+(c.href||""));if(C){for(var R=0;R<C.length;R++)if(y=C[R],y.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&y.getAttribute("rel")===(c.rel==null?null:c.rel)&&y.getAttribute("title")===(c.title==null?null:c.title)&&y.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){C.splice(R,1);break t}}y=v.createElement(m),Ft(y,m,c),v.head.appendChild(y);break;case"meta":if(C=Vx("meta","content",v).get(m+(c.content||""))){for(R=0;R<C.length;R++)if(y=C[R],y.getAttribute("content")===(c.content==null?null:""+c.content)&&y.getAttribute("name")===(c.name==null?null:c.name)&&y.getAttribute("property")===(c.property==null?null:c.property)&&y.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&y.getAttribute("charset")===(c.charSet==null?null:c.charSet)){C.splice(R,1);break t}}y=v.createElement(m),Ft(y,m,c),v.head.appendChild(y);break;default:throw Error(i(468,m))}y[kt]=n,Ht(y),m=y}n.stateNode=m}else _x(v,n.type,n.stateNode);else n.stateNode=Hx(v,m,n.memoizedProps);else y!==m?(y===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):y.count--,m===null?_x(v,n.type,n.stateNode):Hx(v,m,n.memoizedProps)):m===null&&n.stateNode!==null&&e2(n,n.memoizedProps,c.memoizedProps)}break;case 27:Wt(s,n),ea(n),m&512&&(Nt||c===null||Ja(c,c.return)),c!==null&&m&4&&e2(n,n.memoizedProps,c.memoizedProps);break;case 5:if(Wt(s,n),ea(n),m&512&&(Nt||c===null||Ja(c,c.return)),n.flags&32){v=n.stateNode;try{lr(v,"")}catch(xe){Ye(n,n.return,xe)}}m&4&&n.stateNode!=null&&(v=n.memoizedProps,e2(n,v,c!==null?c.memoizedProps:v)),m&1024&&(n2=!0);break;case 6:if(Wt(s,n),ea(n),m&4){if(n.stateNode===null)throw Error(i(162));m=n.memoizedProps,c=n.stateNode;try{c.nodeValue=m}catch(xe){Ye(n,n.return,xe)}}break;case 3:if(ai=null,v=Fa,Fa=ei(s.containerInfo),Wt(s,n),Fa=v,ea(n),m&4&&c!==null&&c.memoizedState.isDehydrated)try{Dr(s.containerInfo)}catch(xe){Ye(n,n.return,xe)}n2&&(n2=!1,_5(n));break;case 4:m=Fa,Fa=ei(n.stateNode.containerInfo),Wt(s,n),ea(n),Fa=m;break;case 12:Wt(s,n),ea(n);break;case 31:Wt(s,n),ea(n),m&4&&(m=n.updateQueue,m!==null&&(n.updateQueue=null,zl(n,m)));break;case 13:Wt(s,n),ea(n),n.child.flags&8192&&n.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(ql=rt()),m&4&&(m=n.updateQueue,m!==null&&(n.updateQueue=null,zl(n,m)));break;case 22:v=n.memoizedState!==null;var P=c!==null&&c.memoizedState!==null,te=Nn,oe=Nt;if(Nn=te||v,Nt=oe||P,Wt(s,n),Nt=oe,Nn=te,ea(n),m&8192)e:for(s=n.stateNode,s._visibility=v?s._visibility&-2:s._visibility|1,v&&(c===null||P||Nn||Nt||D0(n)),c=null,s=n;;){if(s.tag===5||s.tag===26){if(c===null){P=c=s;try{if(y=P.stateNode,v)C=y.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{R=P.stateNode;var he=P.memoizedProps.style,ne=he!=null&&he.hasOwnProperty("display")?he.display:null;R.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(xe){Ye(P,P.return,xe)}}}else if(s.tag===6){if(c===null){P=s;try{P.stateNode.nodeValue=v?"":P.memoizedProps}catch(xe){Ye(P,P.return,xe)}}}else if(s.tag===18){if(c===null){P=s;try{var re=P.stateNode;v?wx(re,!0):wx(P.stateNode,!1)}catch(xe){Ye(P,P.return,xe)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===n)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)break e;for(;s.sibling===null;){if(s.return===null||s.return===n)break e;c===s&&(c=null),s=s.return}c===s&&(c=null),s.sibling.return=s.return,s=s.sibling}m&4&&(m=n.updateQueue,m!==null&&(c=m.retryQueue,c!==null&&(m.retryQueue=null,zl(n,c))));break;case 19:Wt(s,n),ea(n),m&4&&(m=n.updateQueue,m!==null&&(n.updateQueue=null,zl(n,m)));break;case 30:break;case 21:break;default:Wt(s,n),ea(n)}}function ea(n){var s=n.flags;if(s&2){try{for(var c,m=n.return;m!==null;){if(j5(m)){c=m;break}m=m.return}if(c==null)throw Error(i(160));switch(c.tag){case 27:var v=c.stateNode,y=t2(n);Fl(n,y,v);break;case 5:var C=c.stateNode;c.flags&32&&(lr(C,""),c.flags&=-33);var R=t2(n);Fl(n,R,C);break;case 3:case 4:var P=c.stateNode.containerInfo,te=t2(n);a2(n,te,P);break;default:throw Error(i(161))}}catch(oe){Ye(n,n.return,oe)}n.flags&=-3}s&4096&&(n.flags&=-4097)}function _5(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var s=n;_5(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),n=n.sibling}}function Mn(n,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)M5(n,s.alternate,s),s=s.sibling}function D0(n){for(n=n.child;n!==null;){var s=n;switch(s.tag){case 0:case 11:case 14:case 15:Qn(4,s,s.return),D0(s);break;case 1:Ja(s,s.return);var c=s.stateNode;typeof c.componentWillUnmount=="function"&&w5(s,s.return,c),D0(s);break;case 27:Ws(s.stateNode);case 26:case 5:Ja(s,s.return),D0(s);break;case 22:s.memoizedState===null&&D0(s);break;case 30:D0(s);break;default:D0(s)}n=n.sibling}}function Sn(n,s,c){for(c=c&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var m=s.alternate,v=n,y=s,C=y.flags;switch(y.tag){case 0:case 11:case 15:Sn(v,y,c),Is(4,y);break;case 1:if(Sn(v,y,c),m=y,v=m.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(te){Ye(m,m.return,te)}if(m=y,v=m.updateQueue,v!==null){var R=m.stateNode;try{var P=v.shared.hiddenCallbacks;if(P!==null)for(v.shared.hiddenCallbacks=null,v=0;v<P.length;v++)cp(P[v],R)}catch(te){Ye(m,m.return,te)}}c&&C&64&&y5(y),Bs(y,y.return);break;case 27:N5(y);case 26:case 5:Sn(v,y,c),c&&m===null&&C&4&&A5(y),Bs(y,y.return);break;case 12:Sn(v,y,c);break;case 31:Sn(v,y,c),c&&C&4&&C5(v,y);break;case 13:Sn(v,y,c),c&&C&4&&H5(v,y);break;case 22:y.memoizedState===null&&Sn(v,y,c),Bs(y,y.return);break;case 30:break;default:Sn(v,y,c)}s=s.sibling}}function r2(n,s){var c=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(c=n.memoizedState.cachePool.pool),n=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(n=s.memoizedState.cachePool.pool),n!==c&&(n!=null&&n.refCount++,c!=null&&Hs(c))}function s2(n,s){n=null,s.alternate!==null&&(n=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==n&&(s.refCount++,n!=null&&Hs(n))}function za(n,s,c,m){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)T5(n,s,c,m),s=s.sibling}function T5(n,s,c,m){var v=s.flags;switch(s.tag){case 0:case 11:case 15:za(n,s,c,m),v&2048&&Is(9,s);break;case 1:za(n,s,c,m);break;case 3:za(n,s,c,m),v&2048&&(n=null,s.alternate!==null&&(n=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==n&&(s.refCount++,n!=null&&Hs(n)));break;case 12:if(v&2048){za(n,s,c,m),n=s.stateNode;try{var y=s.memoizedProps,C=y.id,R=y.onPostCommit;typeof R=="function"&&R(C,s.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(P){Ye(s,s.return,P)}}else za(n,s,c,m);break;case 31:za(n,s,c,m);break;case 13:za(n,s,c,m);break;case 23:break;case 22:y=s.stateNode,C=s.alternate,s.memoizedState!==null?y._visibility&2?za(n,s,c,m):Ps(n,s):y._visibility&2?za(n,s,c,m):(y._visibility|=2,Mr(n,s,c,m,(s.subtreeFlags&10256)!==0||!1)),v&2048&&r2(C,s);break;case 24:za(n,s,c,m),v&2048&&s2(s.alternate,s);break;default:za(n,s,c,m)}}function Mr(n,s,c,m,v){for(v=v&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var y=n,C=s,R=c,P=m,te=C.flags;switch(C.tag){case 0:case 11:case 15:Mr(y,C,R,P,v),Is(8,C);break;case 23:break;case 22:var oe=C.stateNode;C.memoizedState!==null?oe._visibility&2?Mr(y,C,R,P,v):Ps(y,C):(oe._visibility|=2,Mr(y,C,R,P,v)),v&&te&2048&&r2(C.alternate,C);break;case 24:Mr(y,C,R,P,v),v&&te&2048&&s2(C.alternate,C);break;default:Mr(y,C,R,P,v)}s=s.sibling}}function Ps(n,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var c=n,m=s,v=m.flags;switch(m.tag){case 22:Ps(c,m),v&2048&&r2(m.alternate,m);break;case 24:Ps(c,m),v&2048&&s2(m.alternate,m);break;default:Ps(c,m)}s=s.sibling}}var Us=8192;function Sr(n,s,c){if(n.subtreeFlags&Us)for(n=n.child;n!==null;)L5(n,s,c),n=n.sibling}function L5(n,s,c){switch(n.tag){case 26:Sr(n,s,c),n.flags&Us&&n.memoizedState!==null&&nV(c,Fa,n.memoizedState,n.memoizedProps);break;case 5:Sr(n,s,c);break;case 3:case 4:var m=Fa;Fa=ei(n.stateNode.containerInfo),Sr(n,s,c),Fa=m;break;case 22:n.memoizedState===null&&(m=n.alternate,m!==null&&m.memoizedState!==null?(m=Us,Us=16777216,Sr(n,s,c),Us=m):Sr(n,s,c));break;default:Sr(n,s,c)}}function k5(n){var s=n.alternate;if(s!==null&&(n=s.child,n!==null)){s.child=null;do s=n.sibling,n.sibling=null,n=s;while(n!==null)}}function Gs(n){var s=n.deletions;if((n.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var m=s[c];Vt=m,D5(m,n)}k5(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)R5(n),n=n.sibling}function R5(n){switch(n.tag){case 0:case 11:case 15:Gs(n),n.flags&2048&&Qn(9,n,n.return);break;case 3:Gs(n);break;case 12:Gs(n);break;case 22:var s=n.stateNode;n.memoizedState!==null&&s._visibility&2&&(n.return===null||n.return.tag!==13)?(s._visibility&=-3,$l(n)):Gs(n);break;default:Gs(n)}}function $l(n){var s=n.deletions;if((n.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var m=s[c];Vt=m,D5(m,n)}k5(n)}for(n=n.child;n!==null;){switch(s=n,s.tag){case 0:case 11:case 15:Qn(8,s,s.return),$l(s);break;case 22:c=s.stateNode,c._visibility&2&&(c._visibility&=-3,$l(s));break;default:$l(s)}n=n.sibling}}function D5(n,s){for(;Vt!==null;){var c=Vt;switch(c.tag){case 0:case 11:case 15:Qn(8,c,s);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var m=c.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:Hs(c.memoizedState.cache)}if(m=c.child,m!==null)m.return=c,Vt=m;else e:for(c=n;Vt!==null;){m=Vt;var v=m.sibling,y=m.return;if(S5(m),m===c){Vt=null;break e}if(v!==null){v.return=y,Vt=v;break e}Vt=y}}}var vH={getCacheForType:function(n){var s=Dt(wt),c=s.data.get(n);return c===void 0&&(c=n(),s.data.set(n,c)),c},cacheSignal:function(){return Dt(wt).controller.signal}},bH=typeof WeakMap=="function"?WeakMap:Map,Ie=0,Je=null,Le=null,Re=0,Ge=0,da=null,Jn=!1,Zr=!1,l2=!1,Zn=0,ht=0,Wn=0,O0=0,i2=0,ha=0,Cr=0,Ys=null,ta=null,o2=!1,ql=0,O5=0,Il=1/0,Bl=null,e0=null,Zt=0,t0=null,Hr=null,Cn=0,c2=0,u2=null,F5=null,Ks=0,d2=null;function ma(){return(Ie&2)!==0&&Re!==0?Re&-Re:O.T!==null?g2():t3()}function z5(){if(ha===0)if((Re&536870912)===0||Fe){var n=J1;J1<<=1,(J1&3932160)===0&&(J1=262144),ha=n}else ha=536870912;return n=ca.current,n!==null&&(n.flags|=32),ha}function aa(n,s,c){(n===Je&&(Ge===2||Ge===9)||n.cancelPendingCommit!==null)&&(Vr(n,0),a0(n,Re,ha,!1)),xs(n,c),((Ie&2)===0||n!==Je)&&(n===Je&&((Ie&2)===0&&(O0|=c),ht===4&&a0(n,Re,ha,!1)),Wa(n))}function $5(n,s,c){if((Ie&6)!==0)throw Error(i(327));var m=!c&&(s&127)===0&&(s&n.expiredLanes)===0||ps(n,s),v=m?AH(n,s):m2(n,s,!0),y=m;do{if(v===0){Zr&&!m&&a0(n,s,0,!1);break}else{if(c=n.current.alternate,y&&!yH(c)){v=m2(n,s,!1),y=!1;continue}if(v===2){if(y=s,n.errorRecoveryDisabledLanes&y)var C=0;else C=n.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){s=C;e:{var R=n;v=Ys;var P=R.current.memoizedState.isDehydrated;if(P&&(Vr(R,C).flags|=256),C=m2(R,C,!1),C!==2){if(l2&&!P){R.errorRecoveryDisabledLanes|=y,O0|=y,v=4;break e}y=ta,ta=v,y!==null&&(ta===null?ta=y:ta.push.apply(ta,y))}v=C}if(y=!1,v!==2)continue}}if(v===1){Vr(n,0),a0(n,s,0,!0);break}e:{switch(m=n,y=v,y){case 0:case 1:throw Error(i(345));case 4:if((s&4194048)!==s)break;case 6:a0(m,s,ha,!Jn);break e;case 2:ta=null;break;case 3:case 5:break;default:throw Error(i(329))}if((s&62914560)===s&&(v=ql+300-rt(),10<v)){if(a0(m,s,ha,!Jn),el(m,0,!0)!==0)break e;Cn=s,m.timeoutHandle=vx(q5.bind(null,m,c,ta,Bl,o2,s,ha,O0,Cr,Jn,y,"Throttled",-0,0),v);break e}q5(m,c,ta,Bl,o2,s,ha,O0,Cr,Jn,y,null,-0,0)}}break}while(!0);Wa(n)}function q5(n,s,c,m,v,y,C,R,P,te,oe,he,ne,re){if(n.timeoutHandle=-1,he=s.subtreeFlags,he&8192||(he&16785408)===16785408){he={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fn},L5(s,y,he);var xe=(y&62914560)===y?ql-rt():(y&4194048)===y?O5-rt():0;if(xe=rV(he,xe),xe!==null){Cn=y,n.cancelPendingCommit=xe(X5.bind(null,n,s,y,c,m,v,C,R,P,oe,he,null,ne,re)),a0(n,y,C,!te);return}}X5(n,s,y,c,m,v,C,R,P)}function yH(n){for(var s=n;;){var c=s.tag;if((c===0||c===11||c===15)&&s.flags&16384&&(c=s.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var m=0;m<c.length;m++){var v=c[m],y=v.getSnapshot;v=v.value;try{if(!ia(y(),v))return!1}catch{return!1}}if(c=s.child,s.subtreeFlags&16384&&c!==null)c.return=s,s=c;else{if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function a0(n,s,c,m){s&=~i2,s&=~O0,n.suspendedLanes|=s,n.pingedLanes&=~s,m&&(n.warmLanes|=s),m=n.expirationTimes;for(var v=s;0<v;){var y=31-la(v),C=1<<y;m[y]=-1,v&=~C}c!==0&&Jf(n,c,s)}function Pl(){return(Ie&6)===0?(Xs(0),!1):!0}function h2(){if(Le!==null){if(Ge===0)var n=Le.return;else n=Le,vn=C0=null,Zc(n),wr=null,_s=0,n=Le;for(;n!==null;)b5(n.alternate,n),n=n.return;Le=null}}function Vr(n,s){var c=n.timeoutHandle;c!==-1&&(n.timeoutHandle=-1,zH(c)),c=n.cancelPendingCommit,c!==null&&(n.cancelPendingCommit=null,c()),Cn=0,h2(),Je=n,Le=c=xn(n.current,null),Re=s,Ge=0,da=null,Jn=!1,Zr=ps(n,s),l2=!1,Cr=ha=i2=O0=Wn=ht=0,ta=Ys=null,o2=!1,(s&8)!==0&&(s|=s&32);var m=n.entangledLanes;if(m!==0)for(n=n.entanglements,m&=s;0<m;){var v=31-la(m),y=1<<v;s|=n[v],m&=~y}return Zn=s,hl(),c}function I5(n,s){Ce=null,O.H=zs,s===yr||s===yl?(s=sp(),Ge=3):s===xc?(s=sp(),Ge=4):Ge=s===Bc?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,da=s,Le===null&&(ht=1,Ll(n,Aa(s,n.current)))}function B5(){var n=ca.current;return n===null?!0:(Re&4194048)===Re?Ma===null:(Re&62914560)===Re||(Re&536870912)!==0?n===Ma:!1}function P5(){var n=O.H;return O.H=zs,n===null?zs:n}function U5(){var n=O.A;return O.A=vH,n}function Ul(){ht=4,Jn||(Re&4194048)!==Re&&ca.current!==null||(Zr=!0),(Wn&134217727)===0&&(O0&134217727)===0||Je===null||a0(Je,Re,ha,!1)}function m2(n,s,c){var m=Ie;Ie|=2;var v=P5(),y=U5();(Je!==n||Re!==s)&&(Bl=null,Vr(n,s)),s=!1;var C=ht;e:do try{if(Ge!==0&&Le!==null){var R=Le,P=da;switch(Ge){case 8:h2(),C=6;break e;case 3:case 2:case 9:case 6:ca.current===null&&(s=!0);var te=Ge;if(Ge=0,da=null,_r(n,R,P,te),c&&Zr){C=0;break e}break;default:te=Ge,Ge=0,da=null,_r(n,R,P,te)}}wH(),C=ht;break}catch(oe){I5(n,oe)}while(!0);return s&&n.shellSuspendCounter++,vn=C0=null,Ie=m,O.H=v,O.A=y,Le===null&&(Je=null,Re=0,hl()),C}function wH(){for(;Le!==null;)G5(Le)}function AH(n,s){var c=Ie;Ie|=2;var m=P5(),v=U5();Je!==n||Re!==s?(Bl=null,Il=rt()+500,Vr(n,s)):Zr=ps(n,s);e:do try{if(Ge!==0&&Le!==null){s=Le;var y=da;t:switch(Ge){case 1:Ge=0,da=null,_r(n,s,y,1);break;case 2:case 9:if(np(y)){Ge=0,da=null,Y5(s);break}s=function(){Ge!==2&&Ge!==9||Je!==n||(Ge=7),Wa(n)},y.then(s,s);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:np(y)?(Ge=0,da=null,Y5(s)):(Ge=0,da=null,_r(n,s,y,7));break;case 5:var C=null;switch(Le.tag){case 26:C=Le.memoizedState;case 5:case 27:var R=Le;if(C?Tx(C):R.stateNode.complete){Ge=0,da=null;var P=R.sibling;if(P!==null)Le=P;else{var te=R.return;te!==null?(Le=te,Gl(te)):Le=null}break t}}Ge=0,da=null,_r(n,s,y,5);break;case 6:Ge=0,da=null,_r(n,s,y,6);break;case 8:h2(),ht=6;break e;default:throw Error(i(462))}}jH();break}catch(oe){I5(n,oe)}while(!0);return vn=C0=null,O.H=m,O.A=v,Ie=c,Le!==null?0:(Je=null,Re=0,hl(),ht)}function jH(){for(;Le!==null&&!ut();)G5(Le)}function G5(n){var s=g5(n.alternate,n,Zn);n.memoizedProps=n.pendingProps,s===null?Gl(n):Le=s}function Y5(n){var s=n,c=s.alternate;switch(s.tag){case 15:case 0:s=d5(c,s,s.pendingProps,s.type,void 0,Re);break;case 11:s=d5(c,s,s.pendingProps,s.type.render,s.ref,Re);break;case 5:Zc(s);default:b5(c,s),s=Le=U3(s,Zn),s=g5(c,s,Zn)}n.memoizedProps=n.pendingProps,s===null?Gl(n):Le=s}function _r(n,s,c,m){vn=C0=null,Zc(s),wr=null,_s=0;var v=s.return;try{if(dH(n,v,s,c,Re)){ht=1,Ll(n,Aa(c,n.current)),Le=null;return}}catch(y){if(v!==null)throw Le=v,y;ht=1,Ll(n,Aa(c,n.current)),Le=null;return}s.flags&32768?(Fe||m===1?n=!0:Zr||(Re&536870912)!==0?n=!1:(Jn=n=!0,(m===2||m===9||m===3||m===6)&&(m=ca.current,m!==null&&m.tag===13&&(m.flags|=16384))),K5(s,n)):Gl(s)}function Gl(n){var s=n;do{if((s.flags&32768)!==0){K5(s,Jn);return}n=s.return;var c=fH(s.alternate,s,Zn);if(c!==null){Le=c;return}if(s=s.sibling,s!==null){Le=s;return}Le=s=n}while(s!==null);ht===0&&(ht=5)}function K5(n,s){do{var c=pH(n.alternate,n);if(c!==null){c.flags&=32767,Le=c;return}if(c=n.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!s&&(n=n.sibling,n!==null)){Le=n;return}Le=n=c}while(n!==null);ht=6,Le=null}function X5(n,s,c,m,v,y,C,R,P){n.cancelPendingCommit=null;do Yl();while(Zt!==0);if((Ie&6)!==0)throw Error(i(327));if(s!==null){if(s===n.current)throw Error(i(177));if(y=s.lanes|s.childLanes,y|=tc,aC(n,c,y,C,R,P),n===Je&&(Le=Je=null,Re=0),Hr=s,t0=n,Cn=c,c2=y,u2=v,F5=m,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,SH(Lt,function(){return tx(),null})):(n.callbackNode=null,n.callbackPriority=0),m=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||m){m=O.T,O.T=null,v=q.p,q.p=2,C=Ie,Ie|=4;try{xH(n,s,c)}finally{Ie=C,q.p=v,O.T=m}}Zt=1,Q5(),J5(),W5()}}function Q5(){if(Zt===1){Zt=0;var n=t0,s=Hr,c=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||c){c=O.T,O.T=null;var m=q.p;q.p=2;var v=Ie;Ie|=4;try{V5(s,n);var y=E2,C=D3(n.containerInfo),R=y.focusedElem,P=y.selectionRange;if(C!==R&&R&&R.ownerDocument&&R3(R.ownerDocument.documentElement,R)){if(P!==null&&Xo(R)){var te=P.start,oe=P.end;if(oe===void 0&&(oe=te),"selectionStart"in R)R.selectionStart=te,R.selectionEnd=Math.min(oe,R.value.length);else{var he=R.ownerDocument||document,ne=he&&he.defaultView||window;if(ne.getSelection){var re=ne.getSelection(),xe=R.textContent.length,ye=Math.min(P.start,xe),Qe=P.end===void 0?ye:Math.min(P.end,xe);!re.extend&&ye>Qe&&(C=Qe,Qe=ye,ye=C);var Q=k3(R,ye),G=k3(R,Qe);if(Q&&G&&(re.rangeCount!==1||re.anchorNode!==Q.node||re.anchorOffset!==Q.offset||re.focusNode!==G.node||re.focusOffset!==G.offset)){var ee=he.createRange();ee.setStart(Q.node,Q.offset),re.removeAllRanges(),ye>Qe?(re.addRange(ee),re.extend(G.node,G.offset)):(ee.setEnd(G.node,G.offset),re.addRange(ee))}}}}for(he=[],re=R;re=re.parentNode;)re.nodeType===1&&he.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<he.length;R++){var ue=he[R];ue.element.scrollLeft=ue.left,ue.element.scrollTop=ue.top}}li=!!N2,E2=N2=null}finally{Ie=v,q.p=m,O.T=c}}n.current=s,Zt=2}}function J5(){if(Zt===2){Zt=0;var n=t0,s=Hr,c=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||c){c=O.T,O.T=null;var m=q.p;q.p=2;var v=Ie;Ie|=4;try{M5(n,s.alternate,s)}finally{Ie=v,q.p=m,O.T=c}}Zt=3}}function W5(){if(Zt===4||Zt===3){Zt=0,yt();var n=t0,s=Hr,c=Cn,m=F5;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Zt=5:(Zt=0,Hr=t0=null,ex(n,n.pendingLanes));var v=n.pendingLanes;if(v===0&&(e0=null),Vo(c),s=s.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(Kt,s,void 0,(s.current.flags&128)===128)}catch{}if(m!==null){s=O.T,v=q.p,q.p=2,O.T=null;try{for(var y=n.onRecoverableError,C=0;C<m.length;C++){var R=m[C];y(R.value,{componentStack:R.stack})}}finally{O.T=s,q.p=v}}(Cn&3)!==0&&Yl(),Wa(n),v=n.pendingLanes,(c&261930)!==0&&(v&42)!==0?n===d2?Ks++:(Ks=0,d2=n):Ks=0,Xs(0)}}function ex(n,s){(n.pooledCacheLanes&=s)===0&&(s=n.pooledCache,s!=null&&(n.pooledCache=null,Hs(s)))}function Yl(){return Q5(),J5(),W5(),tx()}function tx(){if(Zt!==5)return!1;var n=t0,s=c2;c2=0;var c=Vo(Cn),m=O.T,v=q.p;try{q.p=32>c?32:c,O.T=null,c=u2,u2=null;var y=t0,C=Cn;if(Zt=0,Hr=t0=null,Cn=0,(Ie&6)!==0)throw Error(i(331));var R=Ie;if(Ie|=4,R5(y.current),T5(y,y.current,C,c),Ie=R,Xs(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(Kt,y)}catch{}return!0}finally{q.p=v,O.T=m,ex(n,s)}}function ax(n,s,c){s=Aa(c,s),s=Ic(n.stateNode,s,2),n=Yn(n,s,2),n!==null&&(xs(n,2),Wa(n))}function Ye(n,s,c){if(n.tag===3)ax(n,n,c);else for(;s!==null;){if(s.tag===3){ax(s,n,c);break}else if(s.tag===1){var m=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(e0===null||!e0.has(m))){n=Aa(c,n),c=n5(2),m=Yn(s,c,2),m!==null&&(r5(c,m,s,n),xs(m,2),Wa(m));break}}s=s.return}}function f2(n,s,c){var m=n.pingCache;if(m===null){m=n.pingCache=new bH;var v=new Set;m.set(s,v)}else v=m.get(s),v===void 0&&(v=new Set,m.set(s,v));v.has(c)||(l2=!0,v.add(c),n=NH.bind(null,n,s,c),s.then(n,n))}function NH(n,s,c){var m=n.pingCache;m!==null&&m.delete(s),n.pingedLanes|=n.suspendedLanes&c,n.warmLanes&=~c,Je===n&&(Re&c)===c&&(ht===4||ht===3&&(Re&62914560)===Re&&300>rt()-ql?(Ie&2)===0&&Vr(n,0):i2|=c,Cr===Re&&(Cr=0)),Wa(n)}function nx(n,s){s===0&&(s=Qf()),n=M0(n,s),n!==null&&(xs(n,s),Wa(n))}function EH(n){var s=n.memoizedState,c=0;s!==null&&(c=s.retryLane),nx(n,c)}function MH(n,s){var c=0;switch(n.tag){case 31:case 13:var m=n.stateNode,v=n.memoizedState;v!==null&&(c=v.retryLane);break;case 19:m=n.stateNode;break;case 22:m=n.stateNode._retryCache;break;default:throw Error(i(314))}m!==null&&m.delete(s),nx(n,c)}function SH(n,s){return pt(n,s)}var Kl=null,Tr=null,p2=!1,Xl=!1,x2=!1,n0=0;function Wa(n){n!==Tr&&n.next===null&&(Tr===null?Kl=Tr=n:Tr=Tr.next=n),Xl=!0,p2||(p2=!0,CH())}function Xs(n,s){if(!x2&&Xl){x2=!0;do for(var c=!1,m=Kl;m!==null;){if(n!==0){var v=m.pendingLanes;if(v===0)var y=0;else{var C=m.suspendedLanes,R=m.pingedLanes;y=(1<<31-la(42|n)+1)-1,y&=v&~(C&~R),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(c=!0,ix(m,y))}else y=Re,y=el(m,m===Je?y:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(y&3)===0||ps(m,y)||(c=!0,ix(m,y));m=m.next}while(c);x2=!1}}function ZH(){rx()}function rx(){Xl=p2=!1;var n=0;n0!==0&&FH()&&(n=n0);for(var s=rt(),c=null,m=Kl;m!==null;){var v=m.next,y=sx(m,s);y===0?(m.next=null,c===null?Kl=v:c.next=v,v===null&&(Tr=c)):(c=m,(n!==0||(y&3)!==0)&&(Xl=!0)),m=v}Zt!==0&&Zt!==5||Xs(n),n0!==0&&(n0=0)}function sx(n,s){for(var c=n.suspendedLanes,m=n.pingedLanes,v=n.expirationTimes,y=n.pendingLanes&-62914561;0<y;){var C=31-la(y),R=1<<C,P=v[C];P===-1?((R&c)===0||(R&m)!==0)&&(v[C]=tC(R,s)):P<=s&&(n.expiredLanes|=R),y&=~R}if(s=Je,c=Re,c=el(n,n===s?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),m=n.callbackNode,c===0||n===s&&(Ge===2||Ge===9)||n.cancelPendingCommit!==null)return m!==null&&m!==null&&Oe(m),n.callbackNode=null,n.callbackPriority=0;if((c&3)===0||ps(n,c)){if(s=c&-c,s===n.callbackPriority)return s;switch(m!==null&&Oe(m),Vo(c)){case 2:case 8:c=Ue;break;case 32:c=Lt;break;case 268435456:c=fs;break;default:c=Lt}return m=lx.bind(null,n),c=pt(c,m),n.callbackPriority=s,n.callbackNode=c,s}return m!==null&&m!==null&&Oe(m),n.callbackPriority=2,n.callbackNode=null,2}function lx(n,s){if(Zt!==0&&Zt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var c=n.callbackNode;if(Yl()&&n.callbackNode!==c)return null;var m=Re;return m=el(n,n===Je?m:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),m===0?null:($5(n,m,s),sx(n,rt()),n.callbackNode!=null&&n.callbackNode===c?lx.bind(null,n):null)}function ix(n,s){if(Yl())return null;$5(n,s,!0)}function CH(){$H(function(){(Ie&6)!==0?pt(et,ZH):rx()})}function g2(){if(n0===0){var n=vr;n===0&&(n=Q1,Q1<<=1,(Q1&261888)===0&&(Q1=256)),n0=n}return n0}function ox(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:rl(""+n)}function cx(n,s){var c=s.ownerDocument.createElement("input");return c.name=s.name,c.value=s.value,n.id&&c.setAttribute("form",n.id),s.parentNode.insertBefore(c,s),n=new FormData(n),c.parentNode.removeChild(c),n}function HH(n,s,c,m,v){if(s==="submit"&&c&&c.stateNode===v){var y=ox((v[Xt]||null).action),C=m.submitter;C&&(s=(s=C[Xt]||null)?ox(s.formAction):C.getAttribute("formAction"),s!==null&&(y=s,C=null));var R=new ol("action","action",null,m,v);n.push({event:R,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(n0!==0){var P=C?cx(v,C):new FormData(v);Dc(c,{pending:!0,data:P,method:v.method,action:y},null,P)}}else typeof y=="function"&&(R.preventDefault(),P=C?cx(v,C):new FormData(v),Dc(c,{pending:!0,data:P,method:v.method,action:y},y,P))},currentTarget:v}]})}}for(var v2=0;v2<ec.length;v2++){var b2=ec[v2],VH=b2.toLowerCase(),_H=b2[0].toUpperCase()+b2.slice(1);Oa(VH,"on"+_H)}Oa(z3,"onAnimationEnd"),Oa($3,"onAnimationIteration"),Oa(q3,"onAnimationStart"),Oa("dblclick","onDoubleClick"),Oa("focusin","onFocus"),Oa("focusout","onBlur"),Oa(YC,"onTransitionRun"),Oa(KC,"onTransitionStart"),Oa(XC,"onTransitionCancel"),Oa(I3,"onTransitionEnd"),rr("onMouseEnter",["mouseout","mouseover"]),rr("onMouseLeave",["mouseout","mouseover"]),rr("onPointerEnter",["pointerout","pointerover"]),rr("onPointerLeave",["pointerout","pointerover"]),A0("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),A0("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),A0("onBeforeInput",["compositionend","keypress","textInput","paste"]),A0("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),A0("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),A0("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qs="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(" "),TH=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qs));function ux(n,s){s=(s&4)!==0;for(var c=0;c<n.length;c++){var m=n[c],v=m.event;m=m.listeners;e:{var y=void 0;if(s)for(var C=m.length-1;0<=C;C--){var R=m[C],P=R.instance,te=R.currentTarget;if(R=R.listener,P!==y&&v.isPropagationStopped())break e;y=R,v.currentTarget=te;try{y(v)}catch(oe){dl(oe)}v.currentTarget=null,y=P}else for(C=0;C<m.length;C++){if(R=m[C],P=R.instance,te=R.currentTarget,R=R.listener,P!==y&&v.isPropagationStopped())break e;y=R,v.currentTarget=te;try{y(v)}catch(oe){dl(oe)}v.currentTarget=null,y=P}}}}function ke(n,s){var c=s[_o];c===void 0&&(c=s[_o]=new Set);var m=n+"__bubble";c.has(m)||(dx(s,n,2,!1),c.add(m))}function y2(n,s,c){var m=0;s&&(m|=4),dx(c,n,m,s)}var Ql="_reactListening"+Math.random().toString(36).slice(2);function w2(n){if(!n[Ql]){n[Ql]=!0,r3.forEach(function(c){c!=="selectionchange"&&(TH.has(c)||y2(c,!1,n),y2(c,!0,n))});var s=n.nodeType===9?n:n.ownerDocument;s===null||s[Ql]||(s[Ql]=!0,y2("selectionchange",!1,s))}}function dx(n,s,c,m){switch(zx(s)){case 2:var v=iV;break;case 8:v=oV;break;default:v=R2}c=v.bind(null,s,c,n),v=void 0,!$o||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(v=!0),m?v!==void 0?n.addEventListener(s,c,{capture:!0,passive:v}):n.addEventListener(s,c,!0):v!==void 0?n.addEventListener(s,c,{passive:v}):n.addEventListener(s,c,!1)}function A2(n,s,c,m,v){var y=m;if((s&1)===0&&(s&2)===0&&m!==null)e:for(;;){if(m===null)return;var C=m.tag;if(C===3||C===4){var R=m.stateNode.containerInfo;if(R===v)break;if(C===4)for(C=m.return;C!==null;){var P=C.tag;if((P===3||P===4)&&C.stateNode.containerInfo===v)return;C=C.return}for(;R!==null;){if(C=tr(R),C===null)return;if(P=C.tag,P===5||P===6||P===26||P===27){m=y=C;continue e}R=R.parentNode}}m=m.return}x3(function(){var te=y,oe=Fo(c),he=[];e:{var ne=B3.get(n);if(ne!==void 0){var re=ol,xe=n;switch(n){case"keypress":if(ll(c)===0)break e;case"keydown":case"keyup":re=MC;break;case"focusin":xe="focus",re=Po;break;case"focusout":xe="blur",re=Po;break;case"beforeblur":case"afterblur":re=Po;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":re=b3;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=fC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=CC;break;case z3:case $3:case q3:re=gC;break;case I3:re=VC;break;case"scroll":case"scrollend":re=hC;break;case"wheel":re=TC;break;case"copy":case"cut":case"paste":re=bC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=w3;break;case"toggle":case"beforetoggle":re=kC}var ye=(s&4)!==0,Qe=!ye&&(n==="scroll"||n==="scrollend"),Q=ye?ne!==null?ne+"Capture":null:ne;ye=[];for(var G=te,ee;G!==null;){var ue=G;if(ee=ue.stateNode,ue=ue.tag,ue!==5&&ue!==26&&ue!==27||ee===null||Q===null||(ue=bs(G,Q),ue!=null&&ye.push(Js(G,ue,ee))),Qe)break;G=G.return}0<ye.length&&(ne=new re(ne,xe,null,c,oe),he.push({event:ne,listeners:ye}))}}if((s&7)===0){e:{if(ne=n==="mouseover"||n==="pointerover",re=n==="mouseout"||n==="pointerout",ne&&c!==Oo&&(xe=c.relatedTarget||c.fromElement)&&(tr(xe)||xe[er]))break e;if((re||ne)&&(ne=oe.window===oe?oe:(ne=oe.ownerDocument)?ne.defaultView||ne.parentWindow:window,re?(xe=c.relatedTarget||c.toElement,re=te,xe=xe?tr(xe):null,xe!==null&&(Qe=u(xe),ye=xe.tag,xe!==Qe||ye!==5&&ye!==27&&ye!==6)&&(xe=null)):(re=null,xe=te),re!==xe)){if(ye=b3,ue="onMouseLeave",Q="onMouseEnter",G="mouse",(n==="pointerout"||n==="pointerover")&&(ye=w3,ue="onPointerLeave",Q="onPointerEnter",G="pointer"),Qe=re==null?ne:vs(re),ee=xe==null?ne:vs(xe),ne=new ye(ue,G+"leave",re,c,oe),ne.target=Qe,ne.relatedTarget=ee,ue=null,tr(oe)===te&&(ye=new ye(Q,G+"enter",xe,c,oe),ye.target=ee,ye.relatedTarget=Qe,ue=ye),Qe=ue,re&&xe)t:{for(ye=LH,Q=re,G=xe,ee=0,ue=Q;ue;ue=ye(ue))ee++;ue=0;for(var be=G;be;be=ye(be))ue++;for(;0<ee-ue;)Q=ye(Q),ee--;for(;0<ue-ee;)G=ye(G),ue--;for(;ee--;){if(Q===G||G!==null&&Q===G.alternate){ye=Q;break t}Q=ye(Q),G=ye(G)}ye=null}else ye=null;re!==null&&hx(he,ne,re,ye,!1),xe!==null&&Qe!==null&&hx(he,Qe,xe,ye,!0)}}e:{if(ne=te?vs(te):window,re=ne.nodeName&&ne.nodeName.toLowerCase(),re==="select"||re==="input"&&ne.type==="file")var $e=C3;else if(S3(ne))if(H3)$e=PC;else{$e=IC;var ve=qC}else re=ne.nodeName,!re||re.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?te&&Do(te.elementType)&&($e=C3):$e=BC;if($e&&($e=$e(n,te))){Z3(he,$e,c,oe);break e}ve&&ve(n,ne,te),n==="focusout"&&te&&ne.type==="number"&&te.memoizedProps.value!=null&&Ro(ne,"number",ne.value)}switch(ve=te?vs(te):window,n){case"focusin":(S3(ve)||ve.contentEditable==="true")&&(ur=ve,Qo=te,Ss=null);break;case"focusout":Ss=Qo=ur=null;break;case"mousedown":Jo=!0;break;case"contextmenu":case"mouseup":case"dragend":Jo=!1,O3(he,c,oe);break;case"selectionchange":if(GC)break;case"keydown":case"keyup":O3(he,c,oe)}var He;if(Go)e:{switch(n){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else cr?E3(n,c)&&(De="onCompositionEnd"):n==="keydown"&&c.keyCode===229&&(De="onCompositionStart");De&&(A3&&c.locale!=="ko"&&(cr||De!=="onCompositionStart"?De==="onCompositionEnd"&&cr&&(He=g3()):($n=oe,qo="value"in $n?$n.value:$n.textContent,cr=!0)),ve=Jl(te,De),0<ve.length&&(De=new y3(De,n,null,c,oe),he.push({event:De,listeners:ve}),He?De.data=He:(He=M3(c),He!==null&&(De.data=He)))),(He=DC?OC(n,c):FC(n,c))&&(De=Jl(te,"onBeforeInput"),0<De.length&&(ve=new y3("onBeforeInput","beforeinput",null,c,oe),he.push({event:ve,listeners:De}),ve.data=He)),HH(he,n,te,c,oe)}ux(he,s)})}function Js(n,s,c){return{instance:n,listener:s,currentTarget:c}}function Jl(n,s){for(var c=s+"Capture",m=[];n!==null;){var v=n,y=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||y===null||(v=bs(n,c),v!=null&&m.unshift(Js(n,v,y)),v=bs(n,s),v!=null&&m.push(Js(n,v,y))),n.tag===3)return m;n=n.return}return[]}function LH(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function hx(n,s,c,m,v){for(var y=s._reactName,C=[];c!==null&&c!==m;){var R=c,P=R.alternate,te=R.stateNode;if(R=R.tag,P!==null&&P===m)break;R!==5&&R!==26&&R!==27||te===null||(P=te,v?(te=bs(c,y),te!=null&&C.unshift(Js(c,te,P))):v||(te=bs(c,y),te!=null&&C.push(Js(c,te,P)))),c=c.return}C.length!==0&&n.push({event:s,listeners:C})}var kH=/\r\n?/g,RH=/\u0000|\uFFFD/g;function mx(n){return(typeof n=="string"?n:""+n).replace(kH,`
|
|
49
|
-
`).replace(RH,"")}function fx(n,s){return s=mx(s),mx(n)===s}function Xe(n,s,c,m,v,y){switch(c){case"children":typeof m=="string"?s==="body"||s==="textarea"&&m===""||lr(n,m):(typeof m=="number"||typeof m=="bigint")&&s!=="body"&&lr(n,""+m);break;case"className":al(n,"class",m);break;case"tabIndex":al(n,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":al(n,c,m);break;case"style":f3(n,m,y);break;case"data":if(s!=="object"){al(n,"data",m);break}case"src":case"href":if(m===""&&(s!=="a"||c!=="href")){n.removeAttribute(c);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){n.removeAttribute(c);break}m=rl(""+m),n.setAttribute(c,m);break;case"action":case"formAction":if(typeof m=="function"){n.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(c==="formAction"?(s!=="input"&&Xe(n,s,"name",v.name,v,null),Xe(n,s,"formEncType",v.formEncType,v,null),Xe(n,s,"formMethod",v.formMethod,v,null),Xe(n,s,"formTarget",v.formTarget,v,null)):(Xe(n,s,"encType",v.encType,v,null),Xe(n,s,"method",v.method,v,null),Xe(n,s,"target",v.target,v,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){n.removeAttribute(c);break}m=rl(""+m),n.setAttribute(c,m);break;case"onClick":m!=null&&(n.onclick=fn);break;case"onScroll":m!=null&&ke("scroll",n);break;case"onScrollEnd":m!=null&&ke("scrollend",n);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(i(61));if(c=m.__html,c!=null){if(v.children!=null)throw Error(i(60));n.innerHTML=c}}break;case"multiple":n.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":n.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"){n.removeAttribute("xlink:href");break}c=rl(""+m),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);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"?n.setAttribute(c,""+m):n.removeAttribute(c);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"?n.setAttribute(c,""):n.removeAttribute(c);break;case"capture":case"download":m===!0?n.setAttribute(c,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?n.setAttribute(c,m):n.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?n.setAttribute(c,m):n.removeAttribute(c);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?n.removeAttribute(c):n.setAttribute(c,m);break;case"popover":ke("beforetoggle",n),ke("toggle",n),tl(n,"popover",m);break;case"xlinkActuate":mn(n,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":mn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":mn(n,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":mn(n,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":mn(n,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":mn(n,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":mn(n,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":mn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":mn(n,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":tl(n,"is",m);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=uC.get(c)||c,tl(n,c,m))}}function j2(n,s,c,m,v,y){switch(c){case"style":f3(n,m,y);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(i(61));if(c=m.__html,c!=null){if(v.children!=null)throw Error(i(60));n.innerHTML=c}}break;case"children":typeof m=="string"?lr(n,m):(typeof m=="number"||typeof m=="bigint")&&lr(n,""+m);break;case"onScroll":m!=null&&ke("scroll",n);break;case"onScrollEnd":m!=null&&ke("scrollend",n);break;case"onClick":m!=null&&(n.onclick=fn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!s3.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(v=c.endsWith("Capture"),s=c.slice(2,v?c.length-7:void 0),y=n[Xt]||null,y=y!=null?y[c]:null,typeof y=="function"&&n.removeEventListener(s,y,v),typeof m=="function")){typeof y!="function"&&y!==null&&(c in n?n[c]=null:n.hasAttribute(c)&&n.removeAttribute(c)),n.addEventListener(s,m,v);break e}c in n?n[c]=m:m===!0?n.setAttribute(c,""):tl(n,c,m)}}}function Ft(n,s,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",n),ke("load",n);var m=!1,v=!1,y;for(y in c)if(c.hasOwnProperty(y)){var C=c[y];if(C!=null)switch(y){case"src":m=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,s));default:Xe(n,s,y,C,c,null)}}v&&Xe(n,s,"srcSet",c.srcSet,c,null),m&&Xe(n,s,"src",c.src,c,null);return;case"input":ke("invalid",n);var R=y=C=v=null,P=null,te=null;for(m in c)if(c.hasOwnProperty(m)){var oe=c[m];if(oe!=null)switch(m){case"name":v=oe;break;case"type":C=oe;break;case"checked":P=oe;break;case"defaultChecked":te=oe;break;case"value":y=oe;break;case"defaultValue":R=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(i(137,s));break;default:Xe(n,s,m,oe,c,null)}}u3(n,y,R,P,te,C,v,!1);return;case"select":ke("invalid",n),m=C=y=null;for(v in c)if(c.hasOwnProperty(v)&&(R=c[v],R!=null))switch(v){case"value":y=R;break;case"defaultValue":C=R;break;case"multiple":m=R;default:Xe(n,s,v,R,c,null)}s=y,c=C,n.multiple=!!m,s!=null?sr(n,!!m,s,!1):c!=null&&sr(n,!!m,c,!0);return;case"textarea":ke("invalid",n),y=v=m=null;for(C in c)if(c.hasOwnProperty(C)&&(R=c[C],R!=null))switch(C){case"value":m=R;break;case"defaultValue":v=R;break;case"children":y=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:Xe(n,s,C,R,c,null)}h3(n,m,v,y);return;case"option":for(P in c)if(c.hasOwnProperty(P)&&(m=c[P],m!=null))switch(P){case"selected":n.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:Xe(n,s,P,m,c,null)}return;case"dialog":ke("beforetoggle",n),ke("toggle",n),ke("cancel",n),ke("close",n);break;case"iframe":case"object":ke("load",n);break;case"video":case"audio":for(m=0;m<Qs.length;m++)ke(Qs[m],n);break;case"image":ke("error",n),ke("load",n);break;case"details":ke("toggle",n);break;case"embed":case"source":case"link":ke("error",n),ke("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(te in c)if(c.hasOwnProperty(te)&&(m=c[te],m!=null))switch(te){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,s));default:Xe(n,s,te,m,c,null)}return;default:if(Do(s)){for(oe in c)c.hasOwnProperty(oe)&&(m=c[oe],m!==void 0&&j2(n,s,oe,m,c,void 0));return}}for(R in c)c.hasOwnProperty(R)&&(m=c[R],m!=null&&Xe(n,s,R,m,c,null))}function DH(n,s,c,m){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,y=null,C=null,R=null,P=null,te=null,oe=null;for(re in c){var he=c[re];if(c.hasOwnProperty(re)&&he!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":P=he;default:m.hasOwnProperty(re)||Xe(n,s,re,null,m,he)}}for(var ne in m){var re=m[ne];if(he=c[ne],m.hasOwnProperty(ne)&&(re!=null||he!=null))switch(ne){case"type":y=re;break;case"name":v=re;break;case"checked":te=re;break;case"defaultChecked":oe=re;break;case"value":C=re;break;case"defaultValue":R=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(i(137,s));break;default:re!==he&&Xe(n,s,ne,re,m,he)}}ko(n,C,R,P,te,oe,y,v);return;case"select":re=C=R=ne=null;for(y in c)if(P=c[y],c.hasOwnProperty(y)&&P!=null)switch(y){case"value":break;case"multiple":re=P;default:m.hasOwnProperty(y)||Xe(n,s,y,null,m,P)}for(v in m)if(y=m[v],P=c[v],m.hasOwnProperty(v)&&(y!=null||P!=null))switch(v){case"value":ne=y;break;case"defaultValue":R=y;break;case"multiple":C=y;default:y!==P&&Xe(n,s,v,y,m,P)}s=R,c=C,m=re,ne!=null?sr(n,!!c,ne,!1):!!m!=!!c&&(s!=null?sr(n,!!c,s,!0):sr(n,!!c,c?[]:"",!1));return;case"textarea":re=ne=null;for(R in c)if(v=c[R],c.hasOwnProperty(R)&&v!=null&&!m.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Xe(n,s,R,null,m,v)}for(C in m)if(v=m[C],y=c[C],m.hasOwnProperty(C)&&(v!=null||y!=null))switch(C){case"value":ne=v;break;case"defaultValue":re=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(i(91));break;default:v!==y&&Xe(n,s,C,v,m,y)}d3(n,ne,re);return;case"option":for(var xe in c)if(ne=c[xe],c.hasOwnProperty(xe)&&ne!=null&&!m.hasOwnProperty(xe))switch(xe){case"selected":n.selected=!1;break;default:Xe(n,s,xe,null,m,ne)}for(P in m)if(ne=m[P],re=c[P],m.hasOwnProperty(P)&&ne!==re&&(ne!=null||re!=null))switch(P){case"selected":n.selected=ne&&typeof ne!="function"&&typeof ne!="symbol";break;default:Xe(n,s,P,ne,m,re)}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 ye in c)ne=c[ye],c.hasOwnProperty(ye)&&ne!=null&&!m.hasOwnProperty(ye)&&Xe(n,s,ye,null,m,ne);for(te in m)if(ne=m[te],re=c[te],m.hasOwnProperty(te)&&ne!==re&&(ne!=null||re!=null))switch(te){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,s));break;default:Xe(n,s,te,ne,m,re)}return;default:if(Do(s)){for(var Qe in c)ne=c[Qe],c.hasOwnProperty(Qe)&&ne!==void 0&&!m.hasOwnProperty(Qe)&&j2(n,s,Qe,void 0,m,ne);for(oe in m)ne=m[oe],re=c[oe],!m.hasOwnProperty(oe)||ne===re||ne===void 0&&re===void 0||j2(n,s,oe,ne,m,re);return}}for(var Q in c)ne=c[Q],c.hasOwnProperty(Q)&&ne!=null&&!m.hasOwnProperty(Q)&&Xe(n,s,Q,null,m,ne);for(he in m)ne=m[he],re=c[he],!m.hasOwnProperty(he)||ne===re||ne==null&&re==null||Xe(n,s,he,ne,m,re)}function px(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function OH(){if(typeof performance.getEntriesByType=="function"){for(var n=0,s=0,c=performance.getEntriesByType("resource"),m=0;m<c.length;m++){var v=c[m],y=v.transferSize,C=v.initiatorType,R=v.duration;if(y&&R&&px(C)){for(C=0,R=v.responseEnd,m+=1;m<c.length;m++){var P=c[m],te=P.startTime;if(te>R)break;var oe=P.transferSize,he=P.initiatorType;oe&&px(he)&&(P=P.responseEnd,C+=oe*(P<R?1:(R-te)/(P-te)))}if(--m,s+=8*(y+C)/(v.duration/1e3),n++,10<n)break}}if(0<n)return s/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var N2=null,E2=null;function Wl(n){return n.nodeType===9?n:n.ownerDocument}function xx(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gx(n,s){if(n===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&s==="foreignObject"?0:n}function M2(n,s){return n==="textarea"||n==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var S2=null;function FH(){var n=window.event;return n&&n.type==="popstate"?n===S2?!1:(S2=n,!0):(S2=null,!1)}var vx=typeof setTimeout=="function"?setTimeout:void 0,zH=typeof clearTimeout=="function"?clearTimeout:void 0,bx=typeof Promise=="function"?Promise:void 0,$H=typeof queueMicrotask=="function"?queueMicrotask:typeof bx<"u"?function(n){return bx.resolve(null).then(n).catch(qH)}:vx;function qH(n){setTimeout(function(){throw n})}function r0(n){return n==="head"}function yx(n,s){var c=s,m=0;do{var v=c.nextSibling;if(n.removeChild(c),v&&v.nodeType===8)if(c=v.data,c==="/$"||c==="/&"){if(m===0){n.removeChild(v),Dr(s);return}m--}else if(c==="$"||c==="$?"||c==="$~"||c==="$!"||c==="&")m++;else if(c==="html")Ws(n.ownerDocument.documentElement);else if(c==="head"){c=n.ownerDocument.head,Ws(c);for(var y=c.firstChild;y;){var C=y.nextSibling,R=y.nodeName;y[gs]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&y.rel.toLowerCase()==="stylesheet"||c.removeChild(y),y=C}}else c==="body"&&Ws(n.ownerDocument.body);c=v}while(c);Dr(s)}function wx(n,s){var c=n;n=0;do{var m=c.nextSibling;if(c.nodeType===1?s?(c._stashedDisplay=c.style.display,c.style.display="none"):(c.style.display=c._stashedDisplay||"",c.getAttribute("style")===""&&c.removeAttribute("style")):c.nodeType===3&&(s?(c._stashedText=c.nodeValue,c.nodeValue=""):c.nodeValue=c._stashedText||""),m&&m.nodeType===8)if(c=m.data,c==="/$"){if(n===0)break;n--}else c!=="$"&&c!=="$?"&&c!=="$~"&&c!=="$!"||n++;c=m}while(c)}function Z2(n){var s=n.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var c=s;switch(s=s.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":Z2(c),To(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}n.removeChild(c)}}function IH(n,s,c,m){for(;n.nodeType===1;){var v=c;if(n.nodeName.toLowerCase()!==s.toLowerCase()){if(!m&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(m){if(!n[gs])switch(s){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(y=n.getAttribute("rel"),y==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(y!==v.rel||n.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||n.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||n.getAttribute("title")!==(v.title==null?null:v.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(y=n.getAttribute("src"),(y!==(v.src==null?null:v.src)||n.getAttribute("type")!==(v.type==null?null:v.type)||n.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&y&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(s==="input"&&n.type==="hidden"){var y=v.name==null?null:""+v.name;if(v.type==="hidden"&&n.getAttribute("name")===y)return n}else return n;if(n=Sa(n.nextSibling),n===null)break}return null}function BH(n,s,c){if(s==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!c||(n=Sa(n.nextSibling),n===null))return null;return n}function Ax(n,s){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=Sa(n.nextSibling),n===null))return null;return n}function C2(n){return n.data==="$?"||n.data==="$~"}function H2(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function PH(n,s){var c=n.ownerDocument;if(n.data==="$~")n._reactRetry=s;else if(n.data!=="$?"||c.readyState!=="loading")s();else{var m=function(){s(),c.removeEventListener("DOMContentLoaded",m)};c.addEventListener("DOMContentLoaded",m),n._reactRetry=m}}function Sa(n){for(;n!=null;n=n.nextSibling){var s=n.nodeType;if(s===1||s===3)break;if(s===8){if(s=n.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return n}var V2=null;function jx(n){n=n.nextSibling;for(var s=0;n;){if(n.nodeType===8){var c=n.data;if(c==="/$"||c==="/&"){if(s===0)return Sa(n.nextSibling);s--}else c!=="$"&&c!=="$!"&&c!=="$?"&&c!=="$~"&&c!=="&"||s++}n=n.nextSibling}return null}function Nx(n){n=n.previousSibling;for(var s=0;n;){if(n.nodeType===8){var c=n.data;if(c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"){if(s===0)return n;s--}else c!=="/$"&&c!=="/&"||s++}n=n.previousSibling}return null}function Ex(n,s,c){switch(s=Wl(c),n){case"html":if(n=s.documentElement,!n)throw Error(i(452));return n;case"head":if(n=s.head,!n)throw Error(i(453));return n;case"body":if(n=s.body,!n)throw Error(i(454));return n;default:throw Error(i(451))}}function Ws(n){for(var s=n.attributes;s.length;)n.removeAttributeNode(s[0]);To(n)}var Za=new Map,Mx=new Set;function ei(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Hn=q.d;q.d={f:UH,r:GH,D:YH,C:KH,L:XH,m:QH,X:WH,S:JH,M:eV};function UH(){var n=Hn.f(),s=Pl();return n||s}function GH(n){var s=ar(n);s!==null&&s.tag===5&&s.type==="form"?Ip(s):Hn.r(n)}var Lr=typeof document>"u"?null:document;function Sx(n,s,c){var m=Lr;if(m&&typeof s=="string"&&s){var v=ya(s);v='link[rel="'+n+'"][href="'+v+'"]',typeof c=="string"&&(v+='[crossorigin="'+c+'"]'),Mx.has(v)||(Mx.add(v),n={rel:n,crossOrigin:c,href:s},m.querySelector(v)===null&&(s=m.createElement("link"),Ft(s,"link",n),Ht(s),m.head.appendChild(s)))}}function YH(n){Hn.D(n),Sx("dns-prefetch",n,null)}function KH(n,s){Hn.C(n,s),Sx("preconnect",n,s)}function XH(n,s,c){Hn.L(n,s,c);var m=Lr;if(m&&n&&s){var v='link[rel="preload"][as="'+ya(s)+'"]';s==="image"&&c&&c.imageSrcSet?(v+='[imagesrcset="'+ya(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(v+='[imagesizes="'+ya(c.imageSizes)+'"]')):v+='[href="'+ya(n)+'"]';var y=v;switch(s){case"style":y=kr(n);break;case"script":y=Rr(n)}Za.has(y)||(n=g({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:n,as:s},c),Za.set(y,n),m.querySelector(v)!==null||s==="style"&&m.querySelector(e1(y))||s==="script"&&m.querySelector(t1(y))||(s=m.createElement("link"),Ft(s,"link",n),Ht(s),m.head.appendChild(s)))}}function QH(n,s){Hn.m(n,s);var c=Lr;if(c&&n){var m=s&&typeof s.as=="string"?s.as:"script",v='link[rel="modulepreload"][as="'+ya(m)+'"][href="'+ya(n)+'"]',y=v;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Rr(n)}if(!Za.has(y)&&(n=g({rel:"modulepreload",href:n},s),Za.set(y,n),c.querySelector(v)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(t1(y)))return}m=c.createElement("link"),Ft(m,"link",n),Ht(m),c.head.appendChild(m)}}}function JH(n,s,c){Hn.S(n,s,c);var m=Lr;if(m&&n){var v=nr(m).hoistableStyles,y=kr(n);s=s||"default";var C=v.get(y);if(!C){var R={loading:0,preload:null};if(C=m.querySelector(e1(y)))R.loading=5;else{n=g({rel:"stylesheet",href:n,"data-precedence":s},c),(c=Za.get(y))&&_2(n,c);var P=C=m.createElement("link");Ht(P),Ft(P,"link",n),P._p=new Promise(function(te,oe){P.onload=te,P.onerror=oe}),P.addEventListener("load",function(){R.loading|=1}),P.addEventListener("error",function(){R.loading|=2}),R.loading|=4,ti(C,s,m)}C={type:"stylesheet",instance:C,count:1,state:R},v.set(y,C)}}}function WH(n,s){Hn.X(n,s);var c=Lr;if(c&&n){var m=nr(c).hoistableScripts,v=Rr(n),y=m.get(v);y||(y=c.querySelector(t1(v)),y||(n=g({src:n,async:!0},s),(s=Za.get(v))&&T2(n,s),y=c.createElement("script"),Ht(y),Ft(y,"link",n),c.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},m.set(v,y))}}function eV(n,s){Hn.M(n,s);var c=Lr;if(c&&n){var m=nr(c).hoistableScripts,v=Rr(n),y=m.get(v);y||(y=c.querySelector(t1(v)),y||(n=g({src:n,async:!0,type:"module"},s),(s=Za.get(v))&&T2(n,s),y=c.createElement("script"),Ht(y),Ft(y,"link",n),c.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},m.set(v,y))}}function Zx(n,s,c,m){var v=(v=z.current)?ei(v):null;if(!v)throw Error(i(446));switch(n){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(s=kr(c.href),c=nr(v).hoistableStyles,m=c.get(s),m||(m={type:"style",instance:null,count:0,state:null},c.set(s,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){n=kr(c.href);var y=nr(v).hoistableStyles,C=y.get(n);if(C||(v=v.ownerDocument||v,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(n,C),(y=v.querySelector(e1(n)))&&!y._p&&(C.instance=y,C.state.loading=5),Za.has(n)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},Za.set(n,c),y||tV(v,n,c,C.state))),s&&m===null)throw Error(i(528,""));return C}if(s&&m!==null)throw Error(i(529,""));return null;case"script":return s=c.async,c=c.src,typeof c=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Rr(c),c=nr(v).hoistableScripts,m=c.get(s),m||(m={type:"script",instance:null,count:0,state:null},c.set(s,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,n))}}function kr(n){return'href="'+ya(n)+'"'}function e1(n){return'link[rel="stylesheet"]['+n+"]"}function Cx(n){return g({},n,{"data-precedence":n.precedence,precedence:null})}function tV(n,s,c,m){n.querySelector('link[rel="preload"][as="style"]['+s+"]")?m.loading=1:(s=n.createElement("link"),m.preload=s,s.addEventListener("load",function(){return m.loading|=1}),s.addEventListener("error",function(){return m.loading|=2}),Ft(s,"link",c),Ht(s),n.head.appendChild(s))}function Rr(n){return'[src="'+ya(n)+'"]'}function t1(n){return"script[async]"+n}function Hx(n,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var m=n.querySelector('style[data-href~="'+ya(c.href)+'"]');if(m)return s.instance=m,Ht(m),m;var v=g({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return m=(n.ownerDocument||n).createElement("style"),Ht(m),Ft(m,"style",v),ti(m,c.precedence,n),s.instance=m;case"stylesheet":v=kr(c.href);var y=n.querySelector(e1(v));if(y)return s.state.loading|=4,s.instance=y,Ht(y),y;m=Cx(c),(v=Za.get(v))&&_2(m,v),y=(n.ownerDocument||n).createElement("link"),Ht(y);var C=y;return C._p=new Promise(function(R,P){C.onload=R,C.onerror=P}),Ft(y,"link",m),s.state.loading|=4,ti(y,c.precedence,n),s.instance=y;case"script":return y=Rr(c.src),(v=n.querySelector(t1(y)))?(s.instance=v,Ht(v),v):(m=c,(v=Za.get(y))&&(m=g({},c),T2(m,v)),n=n.ownerDocument||n,v=n.createElement("script"),Ht(v),Ft(v,"link",m),n.head.appendChild(v),s.instance=v);case"void":return null;default:throw Error(i(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(m=s.instance,s.state.loading|=4,ti(m,c.precedence,n));return s.instance}function ti(n,s,c){for(var m=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=m.length?m[m.length-1]:null,y=v,C=0;C<m.length;C++){var R=m[C];if(R.dataset.precedence===s)y=R;else if(y!==v)break}y?y.parentNode.insertBefore(n,y.nextSibling):(s=c.nodeType===9?c.head:c,s.insertBefore(n,s.firstChild))}function _2(n,s){n.crossOrigin==null&&(n.crossOrigin=s.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=s.referrerPolicy),n.title==null&&(n.title=s.title)}function T2(n,s){n.crossOrigin==null&&(n.crossOrigin=s.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=s.referrerPolicy),n.integrity==null&&(n.integrity=s.integrity)}var ai=null;function Vx(n,s,c){if(ai===null){var m=new Map,v=ai=new Map;v.set(c,m)}else v=ai,m=v.get(c),m||(m=new Map,v.set(c,m));if(m.has(n))return m;for(m.set(n,null),c=c.getElementsByTagName(n),v=0;v<c.length;v++){var y=c[v];if(!(y[gs]||y[kt]||n==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var C=y.getAttribute(s)||"";C=n+C;var R=m.get(C);R?R.push(y):m.set(C,[y])}}return m}function _x(n,s,c){n=n.ownerDocument||n,n.head.insertBefore(c,s==="title"?n.querySelector("head > title"):null)}function aV(n,s,c){if(c===1||s.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return n=s.disabled,typeof s.precedence=="string"&&n==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function Tx(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function nV(n,s,c,m){if(c.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var v=kr(m.href),y=s.querySelector(e1(v));if(y){s=y._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(n.count++,n=ni.bind(n),s.then(n,n)),c.state.loading|=4,c.instance=y,Ht(y);return}y=s.ownerDocument||s,m=Cx(m),(v=Za.get(v))&&_2(m,v),y=y.createElement("link"),Ht(y);var C=y;C._p=new Promise(function(R,P){C.onload=R,C.onerror=P}),Ft(y,"link",m),c.instance=y}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(c,s),(s=c.state.preload)&&(c.state.loading&3)===0&&(n.count++,c=ni.bind(n),s.addEventListener("load",c),s.addEventListener("error",c))}}var L2=0;function rV(n,s){return n.stylesheets&&n.count===0&&si(n,n.stylesheets),0<n.count||0<n.imgCount?function(c){var m=setTimeout(function(){if(n.stylesheets&&si(n,n.stylesheets),n.unsuspend){var y=n.unsuspend;n.unsuspend=null,y()}},6e4+s);0<n.imgBytes&&L2===0&&(L2=62500*OH());var v=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&si(n,n.stylesheets),n.unsuspend)){var y=n.unsuspend;n.unsuspend=null,y()}},(n.imgBytes>L2?50:800)+s);return n.unsuspend=c,function(){n.unsuspend=null,clearTimeout(m),clearTimeout(v)}}:null}function ni(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)si(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var ri=null;function si(n,s){n.stylesheets=null,n.unsuspend!==null&&(n.count++,ri=new Map,s.forEach(sV,n),ri=null,ni.call(n))}function sV(n,s){if(!(s.state.loading&4)){var c=ri.get(n);if(c)var m=c.get(null);else{c=new Map,ri.set(n,c);for(var v=n.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<v.length;y++){var C=v[y];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(c.set(C.dataset.precedence,C),m=C)}m&&c.set(null,m)}v=s.instance,C=v.getAttribute("data-precedence"),y=c.get(C)||m,y===m&&c.set(null,v),c.set(C,v),this.count++,m=ni.bind(this),v.addEventListener("load",m),v.addEventListener("error",m),y?y.parentNode.insertBefore(v,y.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(v,n.firstChild)),s.state.loading|=4}}var a1={$$typeof:M,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function lV(n,s,c,m,v,y,C,R,P){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Co(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Co(0),this.hiddenUpdates=Co(null),this.identifierPrefix=m,this.onUncaughtError=v,this.onCaughtError=y,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,this.incompleteTransitions=new Map}function Lx(n,s,c,m,v,y,C,R,P,te,oe,he){return n=new lV(n,s,c,C,P,te,oe,he,R),s=1,y===!0&&(s|=24),y=oa(3,null,null,s),n.current=y,y.stateNode=n,s=mc(),s.refCount++,n.pooledCache=s,s.refCount++,y.memoizedState={element:m,isDehydrated:c,cache:s},gc(y),n}function kx(n){return n?(n=mr,n):mr}function Rx(n,s,c,m,v,y){v=kx(v),m.context===null?m.context=v:m.pendingContext=v,m=Gn(s),m.payload={element:c},y=y===void 0?null:y,y!==null&&(m.callback=y),c=Yn(n,m,s),c!==null&&(aa(c,n,s),Ls(c,n,s))}function Dx(n,s){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var c=n.retryLane;n.retryLane=c!==0&&c<s?c:s}}function k2(n,s){Dx(n,s),(n=n.alternate)&&Dx(n,s)}function Ox(n){if(n.tag===13||n.tag===31){var s=M0(n,67108864);s!==null&&aa(s,n,67108864),k2(n,67108864)}}function Fx(n){if(n.tag===13||n.tag===31){var s=ma();s=Ho(s);var c=M0(n,s);c!==null&&aa(c,n,s),k2(n,s)}}var li=!0;function iV(n,s,c,m){var v=O.T;O.T=null;var y=q.p;try{q.p=2,R2(n,s,c,m)}finally{q.p=y,O.T=v}}function oV(n,s,c,m){var v=O.T;O.T=null;var y=q.p;try{q.p=8,R2(n,s,c,m)}finally{q.p=y,O.T=v}}function R2(n,s,c,m){if(li){var v=D2(m);if(v===null)A2(n,s,m,ii,c),$x(n,m);else if(uV(v,n,s,c,m))m.stopPropagation();else if($x(n,m),s&4&&-1<cV.indexOf(n)){for(;v!==null;){var y=ar(v);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var C=w0(y.pendingLanes);if(C!==0){var R=y;for(R.pendingLanes|=2,R.entangledLanes|=2;C;){var P=1<<31-la(C);R.entanglements[1]|=P,C&=~P}Wa(y),(Ie&6)===0&&(Il=rt()+500,Xs(0))}}break;case 31:case 13:R=M0(y,2),R!==null&&aa(R,y,2),Pl(),k2(y,2)}if(y=D2(m),y===null&&A2(n,s,m,ii,c),y===v)break;v=y}v!==null&&m.stopPropagation()}else A2(n,s,m,null,c)}}function D2(n){return n=Fo(n),O2(n)}var ii=null;function O2(n){if(ii=null,n=tr(n),n!==null){var s=u(n);if(s===null)n=null;else{var c=s.tag;if(c===13){if(n=d(s),n!==null)return n;n=null}else if(c===31){if(n=h(s),n!==null)return n;n=null}else if(c===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;n=null}else s!==n&&(n=null)}}return ii=n,null}function zx(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(je()){case et:return 2;case Ue:return 8;case Lt:case K1:return 32;case fs:return 268435456;default:return 32}default:return 32}}var F2=!1,s0=null,l0=null,i0=null,n1=new Map,r1=new Map,o0=[],cV="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 $x(n,s){switch(n){case"focusin":case"focusout":s0=null;break;case"dragenter":case"dragleave":l0=null;break;case"mouseover":case"mouseout":i0=null;break;case"pointerover":case"pointerout":n1.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":r1.delete(s.pointerId)}}function s1(n,s,c,m,v,y){return n===null||n.nativeEvent!==y?(n={blockedOn:s,domEventName:c,eventSystemFlags:m,nativeEvent:y,targetContainers:[v]},s!==null&&(s=ar(s),s!==null&&Ox(s)),n):(n.eventSystemFlags|=m,s=n.targetContainers,v!==null&&s.indexOf(v)===-1&&s.push(v),n)}function uV(n,s,c,m,v){switch(s){case"focusin":return s0=s1(s0,n,s,c,m,v),!0;case"dragenter":return l0=s1(l0,n,s,c,m,v),!0;case"mouseover":return i0=s1(i0,n,s,c,m,v),!0;case"pointerover":var y=v.pointerId;return n1.set(y,s1(n1.get(y)||null,n,s,c,m,v)),!0;case"gotpointercapture":return y=v.pointerId,r1.set(y,s1(r1.get(y)||null,n,s,c,m,v)),!0}return!1}function qx(n){var s=tr(n.target);if(s!==null){var c=u(s);if(c!==null){if(s=c.tag,s===13){if(s=d(c),s!==null){n.blockedOn=s,a3(n.priority,function(){Fx(c)});return}}else if(s===31){if(s=h(c),s!==null){n.blockedOn=s,a3(n.priority,function(){Fx(c)});return}}else if(s===3&&c.stateNode.current.memoizedState.isDehydrated){n.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}n.blockedOn=null}function oi(n){if(n.blockedOn!==null)return!1;for(var s=n.targetContainers;0<s.length;){var c=D2(n.nativeEvent);if(c===null){c=n.nativeEvent;var m=new c.constructor(c.type,c);Oo=m,c.target.dispatchEvent(m),Oo=null}else return s=ar(c),s!==null&&Ox(s),n.blockedOn=c,!1;s.shift()}return!0}function Ix(n,s,c){oi(n)&&c.delete(s)}function dV(){F2=!1,s0!==null&&oi(s0)&&(s0=null),l0!==null&&oi(l0)&&(l0=null),i0!==null&&oi(i0)&&(i0=null),n1.forEach(Ix),r1.forEach(Ix)}function ci(n,s){n.blockedOn===s&&(n.blockedOn=null,F2||(F2=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,dV)))}var ui=null;function Bx(n){ui!==n&&(ui=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ui===n&&(ui=null);for(var s=0;s<n.length;s+=3){var c=n[s],m=n[s+1],v=n[s+2];if(typeof m!="function"){if(O2(m||c)===null)continue;break}var y=ar(c);y!==null&&(n.splice(s,3),s-=3,Dc(y,{pending:!0,data:v,method:c.method,action:m},m,v))}}))}function Dr(n){function s(P){return ci(P,n)}s0!==null&&ci(s0,n),l0!==null&&ci(l0,n),i0!==null&&ci(i0,n),n1.forEach(s),r1.forEach(s);for(var c=0;c<o0.length;c++){var m=o0[c];m.blockedOn===n&&(m.blockedOn=null)}for(;0<o0.length&&(c=o0[0],c.blockedOn===null);)qx(c),c.blockedOn===null&&o0.shift();if(c=(n.ownerDocument||n).$$reactFormReplay,c!=null)for(m=0;m<c.length;m+=3){var v=c[m],y=c[m+1],C=v[Xt]||null;if(typeof y=="function")C||Bx(c);else if(C){var R=null;if(y&&y.hasAttribute("formAction")){if(v=y,C=y[Xt]||null)R=C.formAction;else if(O2(v)!==null)continue}else R=C.action;typeof R=="function"?c[m+1]=R:(c.splice(m,3),m-=3),Bx(c)}}}function Px(){function n(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(C){return v=C})},focusReset:"manual",scroll:"manual"})}function s(){v!==null&&(v(),v=null),m||setTimeout(c,20)}function c(){if(!m&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,v=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(c,100),function(){m=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),v!==null&&(v(),v=null)}}}function z2(n){this._internalRoot=n}di.prototype.render=z2.prototype.render=function(n){var s=this._internalRoot;if(s===null)throw Error(i(409));var c=s.current,m=ma();Rx(c,m,n,s,null,null)},di.prototype.unmount=z2.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var s=n.containerInfo;Rx(n.current,2,null,n,null,null),Pl(),s[er]=null}};function di(n){this._internalRoot=n}di.prototype.unstable_scheduleHydration=function(n){if(n){var s=t3();n={blockedOn:null,target:n,priority:s};for(var c=0;c<o0.length&&s!==0&&s<o0[c].priority;c++);o0.splice(c,0,n),c===0&&qx(n)}};var Ux=t.version;if(Ux!=="19.2.4")throw Error(i(527,Ux,"19.2.4"));q.findDOMNode=function(n){var s=n._reactInternals;if(s===void 0)throw typeof n.render=="function"?Error(i(188)):(n=Object.keys(n).join(","),Error(i(268,n)));return n=p(s),n=n!==null?x(n):null,n=n===null?null:n.stateNode,n};var hV={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hi.isDisabled&&hi.supportsFiber)try{Kt=hi.inject(hV),xt=hi}catch{}}return i1.createRoot=function(n,s){if(!o(n))throw Error(i(299));var c=!1,m="",v=Wp,y=e5,C=t5;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(m=s.identifierPrefix),s.onUncaughtError!==void 0&&(v=s.onUncaughtError),s.onCaughtError!==void 0&&(y=s.onCaughtError),s.onRecoverableError!==void 0&&(C=s.onRecoverableError)),s=Lx(n,1,!1,null,null,c,m,null,v,y,C,Px),n[er]=s.current,w2(n),new z2(s)},i1.hydrateRoot=function(n,s,c){if(!o(n))throw Error(i(299));var m=!1,v="",y=Wp,C=e5,R=t5,P=null;return c!=null&&(c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(v=c.identifierPrefix),c.onUncaughtError!==void 0&&(y=c.onUncaughtError),c.onCaughtError!==void 0&&(C=c.onCaughtError),c.onRecoverableError!==void 0&&(R=c.onRecoverableError),c.formState!==void 0&&(P=c.formState)),s=Lx(n,1,!0,s,c??null,m,v,P,y,C,R,Px),s.context=kx(null),c=s.current,m=ma(),m=Ho(m),v=Gn(m),v.callback=null,Yn(c,v,m),c=m,s.current.lanes=c,xs(s,c),Wa(s),n[er]=s.current,w2(n),new di(s)},i1.version="19.2.4",i1}var ag;function EV(){if(ag)return I2.exports;ag=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),I2.exports=NV(),I2.exports}var MV=EV();/**
|
|
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 ng="popstate";function rg(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function SV(e={}){function t(i,o){var p;let u=(p=o.state)==null?void 0:p.masked,{pathname:d,search:h,hash:f}=u||i.location;return Ph("",{pathname:d,search:h,hash:f},o.state&&o.state.usr||null,o.state&&o.state.key||"default",u?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function l(i,o){return typeof o=="string"?o:N1(o)}return CV(t,l,null,e)}function lt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ta(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ZV(){return Math.random().toString(36).substring(2,10)}function sg(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Ph(e,t,l=null,i,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Wr(t):t,state:l,key:t&&t.key||i||ZV(),unstable_mask:o}}function N1({pathname:e="/",search:t="",hash:l=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),l&&l!=="#"&&(e+=l.charAt(0)==="#"?l:"#"+l),e}function Wr(e){let t={};if(e){let l=e.indexOf("#");l>=0&&(t.hash=e.substring(l),e=e.substring(0,l));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function CV(e,t,l,i={}){let{window:o=document.defaultView,v5Compat:u=!1}=i,d=o.history,h="POP",f=null,p=x();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function x(){return(d.state||{idx:null}).idx}function g(){h="POP";let j=x(),A=j==null?null:j-p;p=j,f&&f({action:h,location:E.location,delta:A})}function b(j,A){h="PUSH";let Z=rg(j)?j:Ph(E.location,j,A);p=x()+1;let M=sg(Z,p),S=E.createHref(Z.unstable_mask||Z);try{d.pushState(M,"",S)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(S)}u&&f&&f({action:h,location:E.location,delta:1})}function w(j,A){h="REPLACE";let Z=rg(j)?j:Ph(E.location,j,A);p=x();let M=sg(Z,p),S=E.createHref(Z.unstable_mask||Z);d.replaceState(M,"",S),u&&f&&f({action:h,location:E.location,delta:0})}function N(j){return HV(j)}let E={get action(){return h},get location(){return e(o,d)},listen(j){if(f)throw new Error("A history only accepts one active listener");return o.addEventListener(ng,g),f=j,()=>{o.removeEventListener(ng,g),f=null}},createHref(j){return t(o,j)},createURL:N,encodeLocation(j){let A=N(j);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:b,replace:w,go(j){return d.go(j)}};return E}function HV(e,t=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),lt(l,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:N1(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=l+i),new URL(i,l)}function IA(e,t,l="/"){return VV(e,t,l,!1)}function VV(e,t,l,i){let o=typeof t=="string"?Wr(t):t,u=Tn(o.pathname||"/",l);if(u==null)return null;let d=BA(e);_V(d);let h=null;for(let f=0;h==null&&f<d.length;++f){let p=IV(u);h=$V(d[f],p,i)}return h}function BA(e,t=[],l=[],i="",o=!1){let u=(d,h,f=o,p)=>{let x={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(i)&&f)return;lt(x.relativePath.startsWith(i),`Absolute route path "${x.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(i.length)}let g=rn([i,x.relativePath]),b=l.concat(x);d.children&&d.children.length>0&&(lt(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),BA(d.children,t,b,g,f)),!(d.path==null&&!d.index)&&t.push({path:g,score:FV(g,d.index),routesMeta:b})};return e.forEach((d,h)=>{var f;if(d.path===""||!((f=d.path)!=null&&f.includes("?")))u(d,h);else for(let p of PA(d.path))u(d,h,!0,p)}),t}function PA(e){let t=e.split("/");if(t.length===0)return[];let[l,...i]=t,o=l.endsWith("?"),u=l.replace(/\?$/,"");if(i.length===0)return o?[u,""]:[u];let d=PA(i.join("/")),h=[];return h.push(...d.map(f=>f===""?u:[u,f].join("/"))),o&&h.push(...d),h.map(f=>e.startsWith("/")&&f===""?"/":f)}function _V(e){e.sort((t,l)=>t.score!==l.score?l.score-t.score:zV(t.routesMeta.map(i=>i.childrenIndex),l.routesMeta.map(i=>i.childrenIndex)))}var TV=/^:[\w-]+$/,LV=3,kV=2,RV=1,DV=10,OV=-2,lg=e=>e==="*";function FV(e,t){let l=e.split("/"),i=l.length;return l.some(lg)&&(i+=OV),t&&(i+=kV),l.filter(o=>!lg(o)).reduce((o,u)=>o+(TV.test(u)?LV:u===""?RV:DV),i)}function zV(e,t){return e.length===t.length&&e.slice(0,-1).every((i,o)=>i===t[o])?e[e.length-1]-t[t.length-1]:0}function $V(e,t,l=!1){let{routesMeta:i}=e,o={},u="/",d=[];for(let h=0;h<i.length;++h){let f=i[h],p=h===i.length-1,x=u==="/"?t:t.slice(u.length)||"/",g=zi({path:f.relativePath,caseSensitive:f.caseSensitive,end:p},x),b=f.route;if(!g&&p&&l&&!i[i.length-1].route.index&&(g=zi({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},x)),!g)return null;Object.assign(o,g.params),d.push({params:o,pathname:rn([u,g.pathname]),pathnameBase:GV(rn([u,g.pathnameBase])),route:b}),g.pathnameBase!=="/"&&(u=rn([u,g.pathnameBase]))}return d}function zi(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[l,i]=qV(e.path,e.caseSensitive,e.end),o=t.match(l);if(!o)return null;let u=o[0],d=u.replace(/(.)\/+$/,"$1"),h=o.slice(1);return{params:i.reduce((p,{paramName:x,isOptional:g},b)=>{if(x==="*"){let N=h[b]||"";d=u.slice(0,u.length-N.length).replace(/(.)\/+$/,"$1")}const w=h[b];return g&&!w?p[x]=void 0:p[x]=(w||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:d,pattern:e}}function qV(e,t=!1,l=!0){Ta(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,f,p,x)=>{if(i.push({paramName:h,isOptional:f!=null}),f){let g=x.charAt(p+d.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),i]}function IV(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ta(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Tn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let l=t.endsWith("/")?t.length-1:t.length,i=e.charAt(l);return i&&i!=="/"?null:e.slice(l)||"/"}var BV=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function PV(e,t="/"){let{pathname:l,search:i="",hash:o=""}=typeof e=="string"?Wr(e):e,u;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?u=ig(l.substring(1),"/"):u=ig(l,t)):u=t,{pathname:u,search:YV(i),hash:KV(o)}}function ig(e,t){let l=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?l.length>1&&l.pop():o!=="."&&l.push(o)}),l.length>1?l.join("/"):"/"}function G2(e,t,l,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` 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 UV(e){return e.filter((t,l)=>l===0||t.route.path&&t.route.path.length>0)}function Om(e){let t=UV(e);return t.map((l,i)=>i===t.length-1?l.pathname:l.pathnameBase)}function Ji(e,t,l,i=!1){let o;typeof e=="string"?o=Wr(e):(o={...e},lt(!o.pathname||!o.pathname.includes("?"),G2("?","pathname","search",o)),lt(!o.pathname||!o.pathname.includes("#"),G2("#","pathname","hash",o)),lt(!o.search||!o.search.includes("#"),G2("#","search","hash",o)));let u=e===""||o.pathname==="",d=u?"/":o.pathname,h;if(d==null)h=l;else{let g=t.length-1;if(!i&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),g-=1;o.pathname=b.join("/")}h=g>=0?t[g]:"/"}let f=PV(o,h),p=d&&d!=="/"&&d.endsWith("/"),x=(u||d===".")&&l.endsWith("/");return!f.pathname.endsWith("/")&&(p||x)&&(f.pathname+="/"),f}var rn=e=>e.join("/").replace(/\/\/+/g,"/"),GV=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),YV=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,KV=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,XV=class{constructor(e,t,l,i=!1){this.status=e,this.statusText=t||"",this.internal=i,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function QV(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function JV(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var UA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function GA(e,t){let l=e;if(typeof l!="string"||!BV.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let i=l,o=!1;if(UA)try{let u=new URL(window.location.href),d=l.startsWith("//")?new URL(u.protocol+l):new URL(l),h=Tn(d.pathname,t);d.origin===u.origin&&h!=null?l=h+d.search+d.hash:o=!0}catch{Ta(!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:o,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var YA=["POST","PUT","PATCH","DELETE"];new Set(YA);var WV=["GET",...YA];new Set(WV);var es=r.createContext(null);es.displayName="DataRouter";var Wi=r.createContext(null);Wi.displayName="DataRouterState";var e_=r.createContext(!1),KA=r.createContext({isTransitioning:!1});KA.displayName="ViewTransition";var t_=r.createContext(new Map);t_.displayName="Fetchers";var a_=r.createContext(null);a_.displayName="Await";var fa=r.createContext(null);fa.displayName="Navigation";var T1=r.createContext(null);T1.displayName="Location";var ka=r.createContext({outlet:null,matches:[],isDataRoute:!1});ka.displayName="Route";var Fm=r.createContext(null);Fm.displayName="RouteError";var XA="REACT_ROUTER_ERROR",n_="REDIRECT",r_="ROUTE_ERROR_RESPONSE";function s_(e){if(e.startsWith(`${XA}:${n_}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function l_(e){if(e.startsWith(`${XA}:${r_}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new XV(t.status,t.statusText,t.data)}catch{}}function i_(e,{relative:t}={}){lt(ts(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:i}=r.useContext(fa),{hash:o,pathname:u,search:d}=k1(e,{relative:t}),h=u;return l!=="/"&&(h=u==="/"?l:rn([l,u])),i.createHref({pathname:h,search:d,hash:o})}function ts(){return r.useContext(T1)!=null}function Ga(){return lt(ts(),"useLocation() may be used only in the context of a <Router> component."),r.useContext(T1).location}var QA="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function JA(e){r.useContext(fa).static||r.useLayoutEffect(e)}function cn(){let{isDataRoute:e}=r.useContext(ka);return e?A_():o_()}function o_(){lt(ts(),"useNavigate() may be used only in the context of a <Router> component.");let e=r.useContext(es),{basename:t,navigator:l}=r.useContext(fa),{matches:i}=r.useContext(ka),{pathname:o}=Ga(),u=JSON.stringify(Om(i)),d=r.useRef(!1);return JA(()=>{d.current=!0}),r.useCallback((f,p={})=>{if(Ta(d.current,QA),!d.current)return;if(typeof f=="number"){l.go(f);return}let x=Ji(f,JSON.parse(u),o,p.relative==="path");e==null&&t!=="/"&&(x.pathname=x.pathname==="/"?t:rn([t,x.pathname])),(p.replace?l.replace:l.push)(x,p.state,p)},[t,l,u,o,e])}var c_=r.createContext(null);function u_(e){let t=r.useContext(ka).outlet;return r.useMemo(()=>t&&r.createElement(c_.Provider,{value:e},t),[t,e])}function L1(){let{matches:e}=r.useContext(ka),t=e[e.length-1];return t?t.params:{}}function k1(e,{relative:t}={}){let{matches:l}=r.useContext(ka),{pathname:i}=Ga(),o=JSON.stringify(Om(l));return r.useMemo(()=>Ji(e,JSON.parse(o),i,t==="path"),[e,o,i,t])}function d_(e,t){return WA(e,t)}function WA(e,t,l){var j;lt(ts(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=r.useContext(fa),{matches:o}=r.useContext(ka),u=o[o.length-1],d=u?u.params:{},h=u?u.pathname:"/",f=u?u.pathnameBase:"/",p=u&&u.route;{let A=p&&p.path||"";tj(h,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
-
|
|
60
|
-
Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let x=Ga(),g;if(t){let A=typeof t=="string"?Wr(t):t;lt(f==="/"||((j=A.pathname)==null?void 0:j.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 "${A.pathname}" was given in the \`location\` prop.`),g=A}else g=x;let b=g.pathname||"/",w=b;if(f!=="/"){let A=f.replace(/^\//,"").split("/");w="/"+b.replace(/^\//,"").split("/").slice(A.length).join("/")}let N=IA(e,{pathname:w});Ta(p||N!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Ta(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 "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=x_(N&&N.map(A=>Object.assign({},A,{params:Object.assign({},d,A.params),pathname:rn([f,i.encodeLocation?i.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?f:rn([f,i.encodeLocation?i.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),o,l);return t&&E?r.createElement(T1.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},E):E}function h_(){let e=w_(),t=QV(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)",o={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=r.createElement(r.Fragment,null,r.createElement("p",null,"💿 Hey developer 👋"),r.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",r.createElement("code",{style:u},"ErrorBoundary")," or"," ",r.createElement("code",{style:u},"errorElement")," prop on your route.")),r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),l?r.createElement("pre",{style:o},l):null,d)}var m_=r.createElement(h_,null),ej=class extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const l=l_(e.digest);l&&(e=l)}let t=e!==void 0?r.createElement(ka.Provider,{value:this.props.routeContext},r.createElement(Fm.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?r.createElement(f_,{error:e},t):t}};ej.contextType=e_;var Y2=new WeakMap;function f_({children:e,error:t}){let{basename:l}=r.useContext(fa);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let i=s_(t.digest);if(i){let o=Y2.get(t);if(o)throw o;let u=GA(i.location,l);if(UA&&!Y2.get(t))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 Y2.set(t,d),d}return r.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return e}function p_({routeContext:e,match:t,children:l}){let i=r.useContext(es);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),r.createElement(ka.Provider,{value:e},l)}function x_(e,t=[],l){let i=l==null?void 0:l.state;if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(t.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let o=e,u=i==null?void 0:i.errors;if(u!=null){let x=o.findIndex(g=>g.route.id&&(u==null?void 0:u[g.route.id])!==void 0);lt(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),o=o.slice(0,Math.min(o.length,x+1))}let d=!1,h=-1;if(l&&i){d=i.renderFallback;for(let x=0;x<o.length;x++){let g=o[x];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=x),g.route.id){let{loaderData:b,errors:w}=i,N=g.route.loader&&!b.hasOwnProperty(g.route.id)&&(!w||w[g.route.id]===void 0);if(g.route.lazy||N){l.isStatic&&(d=!0),h>=0?o=o.slice(0,h+1):o=[o[0]];break}}}}let f=l==null?void 0:l.onError,p=i&&f?(x,g)=>{var b,w;f(x,{location:i.location,params:((w=(b=i.matches)==null?void 0:b[0])==null?void 0:w.params)??{},unstable_pattern:JV(i.matches),errorInfo:g})}:void 0;return o.reduceRight((x,g,b)=>{let w,N=!1,E=null,j=null;i&&(w=u&&g.route.id?u[g.route.id]:void 0,E=g.route.errorElement||m_,d&&(h<0&&b===0?(tj("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,j=null):h===b&&(N=!0,j=g.route.hydrateFallbackElement||null)));let A=t.concat(o.slice(0,b+1)),Z=()=>{let M;return w?M=E:N?M=j:g.route.Component?M=r.createElement(g.route.Component,null):g.route.element?M=g.route.element:M=x,r.createElement(p_,{match:g,routeContext:{outlet:x,matches:A,isDataRoute:i!=null},children:M})};return i&&(g.route.ErrorBoundary||g.route.errorElement||b===0)?r.createElement(ej,{location:i.location,revalidation:i.revalidation,component:E,error:w,children:Z(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:p}):Z()},null)}function zm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function g_(e){let t=r.useContext(es);return lt(t,zm(e)),t}function v_(e){let t=r.useContext(Wi);return lt(t,zm(e)),t}function b_(e){let t=r.useContext(ka);return lt(t,zm(e)),t}function $m(e){let t=b_(e),l=t.matches[t.matches.length-1];return lt(l.route.id,`${e} can only be used on routes that contain a unique "id"`),l.route.id}function y_(){return $m("useRouteId")}function w_(){var i;let e=r.useContext(Fm),t=v_("useRouteError"),l=$m("useRouteError");return e!==void 0?e:(i=t.errors)==null?void 0:i[l]}function A_(){let{router:e}=g_("useNavigate"),t=$m("useNavigate"),l=r.useRef(!1);return JA(()=>{l.current=!0}),r.useCallback(async(o,u={})=>{Ta(l.current,QA),l.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...u}))},[e,t])}var og={};function tj(e,t,l){!t&&!og[e]&&(og[e]=!0,Ta(!1,l))}r.memo(j_);function j_({routes:e,future:t,state:l,isStatic:i,onError:o}){return WA(e,void 0,{state:l,isStatic:i,onError:o})}function Uh({to:e,replace:t,state:l,relative:i}){lt(ts(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=r.useContext(fa);Ta(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=r.useContext(ka),{pathname:d}=Ga(),h=cn(),f=Ji(e,Om(u),d,i==="path"),p=JSON.stringify(f);return r.useEffect(()=>{h(JSON.parse(p),{replace:t,state:l,relative:i})},[h,p,i,t,l]),null}function N_(e){return u_(e.context)}function Se(e){lt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function E_({basename:e="/",children:t=null,location:l,navigationType:i="POP",navigator:o,static:u=!1,unstable_useTransitions:d}){lt(!ts(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=e.replace(/^\/*/,"/"),f=r.useMemo(()=>({basename:h,navigator:o,static:u,unstable_useTransitions:d,future:{}}),[h,o,u,d]);typeof l=="string"&&(l=Wr(l));let{pathname:p="/",search:x="",hash:g="",state:b=null,key:w="default",unstable_mask:N}=l,E=r.useMemo(()=>{let j=Tn(p,h);return j==null?null:{location:{pathname:j,search:x,hash:g,state:b,key:w,unstable_mask:N},navigationType:i}},[h,p,x,g,b,w,i,N]);return Ta(E!=null,`<Router basename="${h}"> is not able to match the URL "${p}${x}${g}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:r.createElement(fa.Provider,{value:f},r.createElement(T1.Provider,{children:t,value:E}))}function M_({children:e,location:t}){return d_(Gh(e),t)}function Gh(e,t=[]){let l=[];return r.Children.forEach(e,(i,o)=>{if(!r.isValidElement(i))return;let u=[...t,o];if(i.type===r.Fragment){l.push.apply(l,Gh(i.props.children,u));return}lt(i.type===Se,`[${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>`),lt(!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=Gh(i.props.children,u)),l.push(d)}),l}var Ci="get",Hi="application/x-www-form-urlencoded";function eo(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function S_(e){return eo(e)&&e.tagName.toLowerCase()==="button"}function Z_(e){return eo(e)&&e.tagName.toLowerCase()==="form"}function C_(e){return eo(e)&&e.tagName.toLowerCase()==="input"}function H_(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function V_(e,t){return e.button===0&&(!t||t==="_self")&&!H_(e)}function Yh(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,l)=>{let i=e[l];return t.concat(Array.isArray(i)?i.map(o=>[l,o]):[[l,i]])},[]))}function __(e,t){let l=Yh(e);return t&&t.forEach((i,o)=>{l.has(o)||t.getAll(o).forEach(u=>{l.append(o,u)})}),l}var fi=null;function T_(){if(fi===null)try{new FormData(document.createElement("form"),0),fi=!1}catch{fi=!0}return fi}var L_=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function K2(e){return e!=null&&!L_.has(e)?(Ta(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Hi}"`),null):e}function k_(e,t){let l,i,o,u,d;if(Z_(e)){let h=e.getAttribute("action");i=h?Tn(h,t):null,l=e.getAttribute("method")||Ci,o=K2(e.getAttribute("enctype"))||Hi,u=new FormData(e)}else if(S_(e)||C_(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?Tn(f,t):null,l=e.getAttribute("formmethod")||h.getAttribute("method")||Ci,o=K2(e.getAttribute("formenctype"))||K2(h.getAttribute("enctype"))||Hi,u=new FormData(h,e),!T_()){let{name:p,type:x,value:g}=e;if(x==="image"){let b=p?`${p}.`:"";u.append(`${b}x`,"0"),u.append(`${b}y`,"0")}else p&&u.append(p,g)}}else{if(eo(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=Ci,i=null,o=Hi,d=e}return u&&o==="text/plain"&&(d=u,u=void 0),{action:i,method:l.toLowerCase(),encType:o,formData:u,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function qm(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function R_(e,t,l,i){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return l?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${i}`:o.pathname=`${o.pathname}.${i}`:o.pathname==="/"?o.pathname=`_root.${i}`:t&&Tn(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${i}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${i}`,o}async function D_(e,t){if(e.id in t)return t[e.id];try{let l=await import(e.module);return t[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 O_(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 F_(e,t,l){let i=await Promise.all(e.map(async o=>{let u=t.routes[o.route.id];if(u){let d=await D_(u,l);return d.links?d.links():[]}return[]}));return I_(i.flat(1).filter(O_).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function cg(e,t,l,i,o,u){let d=(f,p)=>l[p]?f.route.id!==l[p].route.id:!0,h=(f,p)=>{var x;return l[p].pathname!==f.pathname||((x=l[p].route.path)==null?void 0:x.endsWith("*"))&&l[p].params["*"]!==f.params["*"]};return u==="assets"?t.filter((f,p)=>d(f,p)||h(f,p)):u==="data"?t.filter((f,p)=>{var g;let x=i.routes[f.route.id];if(!x||!x.hasLoader)return!1;if(d(f,p)||h(f,p))return!0;if(f.route.shouldRevalidate){let b=f.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((g=l[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function z_(e,t,{includeHydrateFallback:l}={}){return $_(e.map(i=>{let o=t.routes[i.route.id];if(!o)return[];let u=[o.module];return o.clientActionModule&&(u=u.concat(o.clientActionModule)),o.clientLoaderModule&&(u=u.concat(o.clientLoaderModule)),l&&o.hydrateFallbackModule&&(u=u.concat(o.hydrateFallbackModule)),o.imports&&(u=u.concat(o.imports)),u}).flat(1))}function $_(e){return[...new Set(e)]}function q_(e){let t={},l=Object.keys(e).sort();for(let i of l)t[i]=e[i];return t}function I_(e,t){let l=new Set;return new Set(t),e.reduce((i,o)=>{let u=JSON.stringify(q_(o));return l.has(u)||(l.add(u),i.push({key:u,link:o})),i},[])}function aj(){let e=r.useContext(es);return qm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function B_(){let e=r.useContext(Wi);return qm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Im=r.createContext(void 0);Im.displayName="FrameworkContext";function nj(){let e=r.useContext(Im);return qm(e,"You must render this element inside a <HydratedRouter> element"),e}function P_(e,t){let l=r.useContext(Im),[i,o]=r.useState(!1),[u,d]=r.useState(!1),{onFocus:h,onBlur:f,onMouseEnter:p,onMouseLeave:x,onTouchStart:g}=t,b=r.useRef(null);r.useEffect(()=>{if(e==="render"&&d(!0),e==="viewport"){let E=A=>{A.forEach(Z=>{d(Z.isIntersecting)})},j=new IntersectionObserver(E,{threshold:.5});return b.current&&j.observe(b.current),()=>{j.disconnect()}}},[e]),r.useEffect(()=>{if(i){let E=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(E)}}},[i]);let w=()=>{o(!0)},N=()=>{o(!1),d(!1)};return l?e!=="intent"?[u,b,{}]:[u,b,{onFocus:o1(h,w),onBlur:o1(f,N),onMouseEnter:o1(p,w),onMouseLeave:o1(x,N),onTouchStart:o1(g,w)}]:[!1,b,{}]}function o1(e,t){return l=>{e&&e(l),l.defaultPrevented||t(l)}}function U_({page:e,...t}){let{router:l}=aj(),i=r.useMemo(()=>IA(l.routes,e,l.basename),[l.routes,e,l.basename]);return i?r.createElement(Y_,{page:e,matches:i,...t}):null}function G_(e){let{manifest:t,routeModules:l}=nj(),[i,o]=r.useState([]);return r.useEffect(()=>{let u=!1;return F_(e,t,l).then(d=>{u||o(d)}),()=>{u=!0}},[e,t,l]),i}function Y_({page:e,matches:t,...l}){let i=Ga(),{future:o,manifest:u,routeModules:d}=nj(),{basename:h}=aj(),{loaderData:f,matches:p}=B_(),x=r.useMemo(()=>cg(e,t,p,u,i,"data"),[e,t,p,u,i]),g=r.useMemo(()=>cg(e,t,p,u,i,"assets"),[e,t,p,u,i]),b=r.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let E=new Set,j=!1;if(t.forEach(Z=>{var S;let M=u.routes[Z.route.id];!M||!M.hasLoader||(!x.some(_=>_.route.id===Z.route.id)&&Z.route.id in f&&((S=d[Z.route.id])!=null&&S.shouldRevalidate)||M.hasClientLoader?j=!0:E.add(Z.route.id))}),E.size===0)return[];let A=R_(e,h,o.unstable_trailingSlashAwareDataRequests,"data");return j&&E.size>0&&A.searchParams.set("_routes",t.filter(Z=>E.has(Z.route.id)).map(Z=>Z.route.id).join(",")),[A.pathname+A.search]},[h,o.unstable_trailingSlashAwareDataRequests,f,i,u,x,t,e,d]),w=r.useMemo(()=>z_(g,u),[g,u]),N=G_(g);return r.createElement(r.Fragment,null,b.map(E=>r.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...l})),w.map(E=>r.createElement("link",{key:E,rel:"modulepreload",href:E,...l})),N.map(({key:E,link:j})=>r.createElement("link",{key:E,nonce:l.nonce,...j,crossOrigin:j.crossOrigin??l.crossOrigin})))}function K_(...e){return t=>{e.forEach(l=>{typeof l=="function"?l(t):l!=null&&(l.current=t)})}}var X_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{X_&&(window.__reactRouterVersion="7.13.1")}catch{}function Q_({basename:e,children:t,unstable_useTransitions:l,window:i}){let o=r.useRef();o.current==null&&(o.current=SV({window:i,v5Compat:!0}));let u=o.current,[d,h]=r.useState({action:u.action,location:u.location}),f=r.useCallback(p=>{l===!1?h(p):r.startTransition(()=>h(p))},[l]);return r.useLayoutEffect(()=>u.listen(f),[u,f]),r.createElement(E_,{basename:e,children:t,location:d.location,navigationType:d.action,navigator:u,unstable_useTransitions:l})}var rj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Be=r.forwardRef(function({onClick:t,discover:l="render",prefetch:i="none",relative:o,reloadDocument:u,replace:d,unstable_mask:h,state:f,target:p,to:x,preventScrollReset:g,viewTransition:b,unstable_defaultShouldRevalidate:w,...N},E){let{basename:j,navigator:A,unstable_useTransitions:Z}=r.useContext(fa),M=typeof x=="string"&&rj.test(x),S=GA(x,j);x=S.to;let _=i_(x,{relative:o}),T=Ga(),V=null;if(h){let le=Ji(h,[],T.unstable_mask?T.unstable_mask.pathname:"/",!0);j!=="/"&&(le.pathname=le.pathname==="/"?j:rn([j,le.pathname])),V=A.createHref(le)}let[H,L,D]=P_(i,N),B=eT(x,{replace:d,unstable_mask:h,state:f,target:p,preventScrollReset:g,relative:o,viewTransition:b,unstable_defaultShouldRevalidate:w,unstable_useTransitions:Z});function K(le){t&&t(le),le.defaultPrevented||B(le)}let J=!(S.isExternal||u),se=r.createElement("a",{...N,...D,href:(J?V:void 0)||S.absoluteURL||_,onClick:J?K:t,ref:K_(E,L),target:p,"data-discover":!M&&l==="render"?"true":void 0});return H&&!M?r.createElement(r.Fragment,null,se,r.createElement(U_,{page:_})):se});Be.displayName="Link";var P0=r.forwardRef(function({"aria-current":t="page",caseSensitive:l=!1,className:i="",end:o=!1,style:u,to:d,viewTransition:h,children:f,...p},x){let g=k1(d,{relative:p.relative}),b=Ga(),w=r.useContext(Wi),{navigator:N,basename:E}=r.useContext(fa),j=w!=null&&lT(g)&&h===!0,A=N.encodeLocation?N.encodeLocation(g).pathname:g.pathname,Z=b.pathname,M=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;l||(Z=Z.toLowerCase(),M=M?M.toLowerCase():null,A=A.toLowerCase()),M&&E&&(M=Tn(M,E)||M);const S=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let _=Z===A||!o&&Z.startsWith(A)&&Z.charAt(S)==="/",T=M!=null&&(M===A||!o&&M.startsWith(A)&&M.charAt(A.length)==="/"),V={isActive:_,isPending:T,isTransitioning:j},H=_?t:void 0,L;typeof i=="function"?L=i(V):L=[i,_?"active":null,T?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let D=typeof u=="function"?u(V):u;return r.createElement(Be,{...p,"aria-current":H,className:L,ref:x,style:D,to:d,viewTransition:h},typeof f=="function"?f(V):f)});P0.displayName="NavLink";var J_=r.forwardRef(({discover:e="render",fetcherKey:t,navigate:l,reloadDocument:i,replace:o,state:u,method:d=Ci,action:h,onSubmit:f,relative:p,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:b,...w},N)=>{let{unstable_useTransitions:E}=r.useContext(fa),j=rT(),A=sT(h,{relative:p}),Z=d.toLowerCase()==="get"?"get":"post",M=typeof h=="string"&&rj.test(h),S=_=>{if(f&&f(_),_.defaultPrevented)return;_.preventDefault();let T=_.nativeEvent.submitter,V=(T==null?void 0:T.getAttribute("formmethod"))||d,H=()=>j(T||_.currentTarget,{fetcherKey:t,method:V,navigate:l,replace:o,state:u,relative:p,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:b});E&&l!==!1?r.startTransition(()=>H()):H()};return r.createElement("form",{ref:N,method:Z,action:A,onSubmit:i?f:S,...w,"data-discover":!M&&e==="render"?"true":void 0})});J_.displayName="Form";function W_(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sj(e){let t=r.useContext(es);return lt(t,W_(e)),t}function eT(e,{target:t,replace:l,unstable_mask:i,state:o,preventScrollReset:u,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:f,unstable_useTransitions:p}={}){let x=cn(),g=Ga(),b=k1(e,{relative:d});return r.useCallback(w=>{if(V_(w,t)){w.preventDefault();let N=l!==void 0?l:N1(g)===N1(b),E=()=>x(e,{replace:N,unstable_mask:i,state:o,preventScrollReset:u,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:f});p?r.startTransition(()=>E()):E()}},[g,x,b,l,i,o,t,e,u,d,h,f,p])}function tT(e){Ta(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=r.useRef(Yh(e)),l=r.useRef(!1),i=Ga(),o=r.useMemo(()=>__(i.search,l.current?null:t.current),[i.search]),u=cn(),d=r.useCallback((h,f)=>{const p=Yh(typeof h=="function"?h(new URLSearchParams(o)):h);l.current=!0,u("?"+p,f)},[u,o]);return[o,d]}var aT=0,nT=()=>`__${String(++aT)}__`;function rT(){let{router:e}=sj("useSubmit"),{basename:t}=r.useContext(fa),l=y_(),i=e.fetch,o=e.navigate;return r.useCallback(async(u,d={})=>{let{action:h,method:f,encType:p,formData:x,body:g}=k_(u,t);if(d.navigate===!1){let b=d.fetcherKey||nT();await i(b,l,d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:g,formMethod:d.method||f,formEncType:d.encType||p,flushSync:d.flushSync})}else await o(d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:g,formMethod:d.method||f,formEncType:d.encType||p,replace:d.replace,state:d.state,fromRouteId:l,flushSync:d.flushSync,viewTransition:d.viewTransition})},[i,o,t,l])}function sT(e,{relative:t}={}){let{basename:l}=r.useContext(fa),i=r.useContext(ka);lt(i,"useFormAction must be used inside a RouteContext");let[o]=i.matches.slice(-1),u={...k1(e||".",{relative:t})},d=Ga();if(e==null){u.search=d.search;let h=new URLSearchParams(u.search),f=h.getAll("index");if(f.some(x=>x==="")){h.delete("index"),f.filter(g=>g).forEach(g=>h.append("index",g));let x=h.toString();u.search=x?`?${x}`:""}}return(!e||e===".")&&o.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(u.pathname=u.pathname==="/"?l:rn([l,u.pathname])),N1(u)}function lT(e,{relative:t}={}){let l=r.useContext(KA);lt(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=sj("useViewTransitionState"),o=k1(e,{relative:t});if(!l.isTransitioning)return!1;let u=Tn(l.currentLocation.pathname,i)||l.currentLocation.pathname,d=Tn(l.nextLocation.pathname,i)||l.nextLocation.pathname;return zi(o.pathname,d)!=null||zi(o.pathname,u)!=null}const lj="";function un(){return localStorage.getItem("ohwow-session-token")}function Kh(e){localStorage.setItem("ohwow-session-token",e)}function ij(){localStorage.removeItem("ohwow-session-token")}async function me(e,t={}){const l=un(),i=await fetch(`${lj}${e}`,{...t,headers:{"Content-Type":"application/json",...l?{Authorization:`Bearer ${l}`}:{},...t.headers}});if(i.status===401)throw ij(),window.location.href="/ui/login",new Error("Unauthorized");if(!i.ok){const o=await i.json().catch(()=>({error:i.statusText}));throw new Error(o.error||`HTTP ${i.status}`)}return i.json()}async function*oj(e,t,l){const i=un(),o=await fetch(`${lj}/api/chat`,{method:"POST",headers:{"Content-Type":"application/json",...i?{Authorization:`Bearer ${i}`}:{}},body:JSON.stringify({message:e,sessionId:t,model:l})});if(!o.ok||!o.body)throw new Error("Chat request failed");const u=o.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 x=h.split(`
|
|
61
|
-
`);h=x.pop()||"";for(const g of x)if(g.startsWith("data: ")){const b=g.slice(6).trim();if(b==="[DONE]")return;try{yield JSON.parse(b)}catch{}}}}class cj extends r.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,l){console.error("[ErrorBoundary]",t,l.componentStack)}render(){var t;return this.state.hasError?this.props.fallback||a.jsx("div",{className:"flex items-center justify-center h-full p-8",children:a.jsxs("div",{className:"text-center max-w-sm",children:[a.jsx("p",{className:"text-sm font-medium text-critical mb-2",children:"Something broke on this page"}),a.jsx("p",{className:"text-xs text-neutral-400 mb-4",children:(t=this.state.error)==null?void 0:t.message}),a.jsx("button",{onClick:()=>this.setState({hasError:!1,error:null}),className:"px-4 py-2 text-xs bg-white/5 border border-white/[0.08] rounded-lg hover:bg-white/[0.06] transition-colors",children:"Try again"})]})}):this.props.children}}const Bm=r.createContext({});function Pm(e){const t=r.useRef(null);return t.current===null&&(t.current=e()),t.current}const uj=typeof window<"u",dj=uj?r.useLayoutEffect:r.useEffect,to=r.createContext(null);function Um(e,t){e.indexOf(t)===-1&&e.push(t)}function $i(e,t){const l=e.indexOf(t);l>-1&&e.splice(l,1)}const ln=(e,t,l)=>l>t?t:l<e?e:l;let Gm=()=>{};const Ln={},hj=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function mj(e){return typeof e=="object"&&e!==null}const fj=e=>/^0[^.\s]+$/u.test(e);function pj(e){let t;return()=>(t===void 0&&(t=e()),t)}const _a=e=>e,iT=(e,t)=>l=>t(e(l)),R1=(...e)=>e.reduce(iT),E1=(e,t,l)=>{const i=t-e;return i===0?1:(l-e)/i};class Ym{constructor(){this.subscriptions=[]}add(t){return Um(this.subscriptions,t),()=>$i(this.subscriptions,t)}notify(t,l,i){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,l,i);else for(let u=0;u<o;u++){const d=this.subscriptions[u];d&&d(t,l,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ia=e=>e*1e3,Va=e=>e/1e3;function xj(e,t){return t?e*(1e3/t):0}const gj=(e,t,l)=>(((1-3*l+3*t)*e+(3*l-6*t))*e+3*t)*e,oT=1e-7,cT=12;function uT(e,t,l,i,o){let u,d,h=0;do d=t+(l-t)/2,u=gj(d,i,o)-e,u>0?l=d:t=d;while(Math.abs(u)>oT&&++h<cT);return d}function D1(e,t,l,i){if(e===t&&l===i)return _a;const o=u=>uT(u,0,1,e,l);return u=>u===0||u===1?u:gj(o(u),t,i)}const vj=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bj=e=>t=>1-e(1-t),yj=D1(.33,1.53,.69,.99),Km=bj(yj),wj=vj(Km),Aj=e=>(e*=2)<1?.5*Km(e):.5*(2-Math.pow(2,-10*(e-1))),Xm=e=>1-Math.sin(Math.acos(e)),jj=bj(Xm),Nj=vj(Xm),dT=D1(.42,0,1,1),hT=D1(0,0,.58,1),Ej=D1(.42,0,.58,1),mT=e=>Array.isArray(e)&&typeof e[0]!="number",Mj=e=>Array.isArray(e)&&typeof e[0]=="number",fT={linear:_a,easeIn:dT,easeInOut:Ej,easeOut:hT,circIn:Xm,circInOut:Nj,circOut:jj,backIn:Km,backInOut:wj,backOut:yj,anticipate:Aj},pT=e=>typeof e=="string",ug=e=>{if(Mj(e)){Gm(e.length===4);const[t,l,i,o]=e;return D1(t,l,i,o)}else if(pT(e))return fT[e];return e},pi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function xT(e,t){let l=new Set,i=new Set,o=!1,u=!1;const d=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function f(x){d.has(x)&&(p.schedule(x),e()),x(h)}const p={schedule:(x,g=!1,b=!1)=>{const N=b&&o?l:i;return g&&d.add(x),N.has(x)||N.add(x),x},cancel:x=>{i.delete(x),d.delete(x)},process:x=>{if(h=x,o){u=!0;return}o=!0,[l,i]=[i,l],l.forEach(f),l.clear(),o=!1,u&&(u=!1,p.process(x))}};return p}const gT=40;function Sj(e,t){let l=!1,i=!0;const o={delta:0,timestamp:0,isProcessing:!1},u=()=>l=!0,d=pi.reduce((M,S)=>(M[S]=xT(u),M),{}),{setup:h,read:f,resolveKeyframes:p,preUpdate:x,update:g,preRender:b,render:w,postRender:N}=d,E=()=>{const M=Ln.useManualTiming?o.timestamp:performance.now();l=!1,Ln.useManualTiming||(o.delta=i?1e3/60:Math.max(Math.min(M-o.timestamp,gT),1)),o.timestamp=M,o.isProcessing=!0,h.process(o),f.process(o),p.process(o),x.process(o),g.process(o),b.process(o),w.process(o),N.process(o),o.isProcessing=!1,l&&t&&(i=!1,e(E))},j=()=>{l=!0,i=!0,o.isProcessing||e(E)};return{schedule:pi.reduce((M,S)=>{const _=d[S];return M[S]=(T,V=!1,H=!1)=>(l||j(),_.schedule(T,V,H)),M},{}),cancel:M=>{for(let S=0;S<pi.length;S++)d[pi[S]].cancel(M)},state:o,steps:d}}const{schedule:tt,cancel:x0,state:zt,steps:X2}=Sj(typeof requestAnimationFrame<"u"?requestAnimationFrame:_a,!0);let Vi;function vT(){Vi=void 0}const Ut={now:()=>(Vi===void 0&&Ut.set(zt.isProcessing||Ln.useManualTiming?zt.timestamp:performance.now()),Vi),set:e=>{Vi=e,queueMicrotask(vT)}},Zj=e=>t=>typeof t=="string"&&t.startsWith(e),Cj=Zj("--"),bT=Zj("var(--"),Qm=e=>bT(e)?yT.test(e.split("/*")[0].trim()):!1,yT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function dg(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const as={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},M1={...as,transform:e=>ln(0,1,e)},xi={...as,default:1},v1=e=>Math.round(e*1e5)/1e5,Jm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wT(e){return e==null}const AT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wm=(e,t)=>l=>!!(typeof l=="string"&&AT.test(l)&&l.startsWith(e)||t&&!wT(l)&&Object.prototype.hasOwnProperty.call(l,t)),Hj=(e,t,l)=>i=>{if(typeof i!="string")return i;const[o,u,d,h]=i.match(Jm);return{[e]:parseFloat(o),[t]:parseFloat(u),[l]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},jT=e=>ln(0,255,e),Q2={...as,transform:e=>Math.round(jT(e))},$0={test:Wm("rgb","red"),parse:Hj("red","green","blue"),transform:({red:e,green:t,blue:l,alpha:i=1})=>"rgba("+Q2.transform(e)+", "+Q2.transform(t)+", "+Q2.transform(l)+", "+v1(M1.transform(i))+")"};function NT(e){let t="",l="",i="",o="";return e.length>5?(t=e.substring(1,3),l=e.substring(3,5),i=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),l=e.substring(2,3),i=e.substring(3,4),o=e.substring(4,5),t+=t,l+=l,i+=i,o+=o),{red:parseInt(t,16),green:parseInt(l,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}}const Xh={test:Wm("#"),parse:NT,transform:$0.transform},O1=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),h0=O1("deg"),sn=O1("%"),ge=O1("px"),ET=O1("vh"),MT=O1("vw"),hg={...sn,parse:e=>sn.parse(e)/100,transform:e=>sn.transform(e*100)},qr={test:Wm("hsl","hue"),parse:Hj("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:l,alpha:i=1})=>"hsla("+Math.round(e)+", "+sn.transform(v1(t))+", "+sn.transform(v1(l))+", "+v1(M1.transform(i))+")"},Et={test:e=>$0.test(e)||Xh.test(e)||qr.test(e),parse:e=>$0.test(e)?$0.parse(e):qr.test(e)?qr.parse(e):Xh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?$0.transform(e):qr.transform(e),getAnimatableNone:e=>{const t=Et.parse(e);return t.alpha=0,Et.transform(t)}},ST=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ZT(e){var t,l;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Jm))==null?void 0:t.length)||0)+(((l=e.match(ST))==null?void 0:l.length)||0)>0}const Vj="number",_j="color",CT="var",HT="var(",mg="${}",VT=/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 S1(e){const t=e.toString(),l=[],i={color:[],number:[],var:[]},o=[];let u=0;const h=t.replace(VT,f=>(Et.test(f)?(i.color.push(u),o.push(_j),l.push(Et.parse(f))):f.startsWith(HT)?(i.var.push(u),o.push(CT),l.push(f)):(i.number.push(u),o.push(Vj),l.push(parseFloat(f))),++u,mg)).split(mg);return{values:l,split:h,indexes:i,types:o}}function Tj(e){return S1(e).values}function Lj(e){const{split:t,types:l}=S1(e),i=t.length;return o=>{let u="";for(let d=0;d<i;d++)if(u+=t[d],o[d]!==void 0){const h=l[d];h===Vj?u+=v1(o[d]):h===_j?u+=Et.transform(o[d]):u+=o[d]}return u}}const _T=e=>typeof e=="number"?0:Et.test(e)?Et.getAnimatableNone(e):e;function TT(e){const t=Tj(e);return Lj(e)(t.map(_T))}const Ba={test:ZT,parse:Tj,createTransformer:Lj,getAnimatableNone:TT};function J2(e,t,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?e+(t-e)*6*l:l<1/2?t:l<2/3?e+(t-e)*(2/3-l)*6:e}function LT({hue:e,saturation:t,lightness:l,alpha:i}){e/=360,t/=100,l/=100;let o=0,u=0,d=0;if(!t)o=u=d=l;else{const h=l<.5?l*(1+t):l+t-l*t,f=2*l-h;o=J2(f,h,e+1/3),u=J2(f,h,e),d=J2(f,h,e-1/3)}return{red:Math.round(o*255),green:Math.round(u*255),blue:Math.round(d*255),alpha:i}}function qi(e,t){return l=>l>0?t:e}const ot=(e,t,l)=>e+(t-e)*l,W2=(e,t,l)=>{const i=e*e,o=l*(t*t-i)+i;return o<0?0:Math.sqrt(o)},kT=[Xh,$0,qr],RT=e=>kT.find(t=>t.test(e));function fg(e){const t=RT(e);if(!t)return!1;let l=t.parse(e);return t===qr&&(l=LT(l)),l}const pg=(e,t)=>{const l=fg(e),i=fg(t);if(!l||!i)return qi(e,t);const o={...l};return u=>(o.red=W2(l.red,i.red,u),o.green=W2(l.green,i.green,u),o.blue=W2(l.blue,i.blue,u),o.alpha=ot(l.alpha,i.alpha,u),$0.transform(o))},Qh=new Set(["none","hidden"]);function DT(e,t){return Qh.has(e)?l=>l<=0?e:t:l=>l>=1?t:e}function OT(e,t){return l=>ot(e,t,l)}function ef(e){return typeof e=="number"?OT:typeof e=="string"?Qm(e)?qi:Et.test(e)?pg:$T:Array.isArray(e)?kj:typeof e=="object"?Et.test(e)?pg:FT:qi}function kj(e,t){const l=[...e],i=l.length,o=e.map((u,d)=>ef(u)(u,t[d]));return u=>{for(let d=0;d<i;d++)l[d]=o[d](u);return l}}function FT(e,t){const l={...e,...t},i={};for(const o in l)e[o]!==void 0&&t[o]!==void 0&&(i[o]=ef(e[o])(e[o],t[o]));return o=>{for(const u in i)l[u]=i[u](o);return l}}function zT(e,t){const l=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const u=t.types[o],d=e.indexes[u][i[u]],h=e.values[d]??0;l[o]=h,i[u]++}return l}const $T=(e,t)=>{const l=Ba.createTransformer(t),i=S1(e),o=S1(t);return i.indexes.var.length===o.indexes.var.length&&i.indexes.color.length===o.indexes.color.length&&i.indexes.number.length>=o.indexes.number.length?Qh.has(e)&&!o.values.length||Qh.has(t)&&!i.values.length?DT(e,t):R1(kj(zT(i,o),o.values),l):qi(e,t)};function Rj(e,t,l){return typeof e=="number"&&typeof t=="number"&&typeof l=="number"?ot(e,t,l):ef(e)(e,t)}const qT=e=>{const t=({timestamp:l})=>e(l);return{start:(l=!0)=>tt.update(t,l),stop:()=>x0(t),now:()=>zt.isProcessing?zt.timestamp:Ut.now()}},Dj=(e,t,l=10)=>{let i="";const o=Math.max(Math.round(t/l),2);for(let u=0;u<o;u++)i+=Math.round(e(u/(o-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},Ii=2e4;function tf(e){let t=0;const l=50;let i=e.next(t);for(;!i.done&&t<Ii;)t+=l,i=e.next(t);return t>=Ii?1/0:t}function IT(e,t=100,l){const i=l({...e,keyframes:[0,t]}),o=Math.min(tf(i),Ii);return{type:"keyframes",ease:u=>i.next(o*u).value/t,duration:Va(o)}}const BT=5;function Oj(e,t,l){const i=Math.max(t-BT,0);return xj(l-e(i),t-i)}const mt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},eu=.001;function PT({duration:e=mt.duration,bounce:t=mt.bounce,velocity:l=mt.velocity,mass:i=mt.mass}){let o,u,d=1-t;d=ln(mt.minDamping,mt.maxDamping,d),e=ln(mt.minDuration,mt.maxDuration,Va(e)),d<1?(o=p=>{const x=p*d,g=x*e,b=x-l,w=Jh(p,d),N=Math.exp(-g);return eu-b/w*N},u=p=>{const g=p*d*e,b=g*l+l,w=Math.pow(d,2)*Math.pow(p,2)*e,N=Math.exp(-g),E=Jh(Math.pow(p,2),d);return(-o(p)+eu>0?-1:1)*((b-w)*N)/E}):(o=p=>{const x=Math.exp(-p*e),g=(p-l)*e+1;return-eu+x*g},u=p=>{const x=Math.exp(-p*e),g=(l-p)*(e*e);return x*g});const h=5/e,f=GT(o,u,h);if(e=Ia(e),isNaN(f))return{stiffness:mt.stiffness,damping:mt.damping,duration:e};{const p=Math.pow(f,2)*i;return{stiffness:p,damping:d*2*Math.sqrt(i*p),duration:e}}}const UT=12;function GT(e,t,l){let i=l;for(let o=1;o<UT;o++)i=i-e(i)/t(i);return i}function Jh(e,t){return e*Math.sqrt(1-t*t)}const YT=["duration","bounce"],KT=["stiffness","damping","mass"];function xg(e,t){return t.some(l=>e[l]!==void 0)}function XT(e){let t={velocity:mt.velocity,stiffness:mt.stiffness,damping:mt.damping,mass:mt.mass,isResolvedFromDuration:!1,...e};if(!xg(e,KT)&&xg(e,YT))if(t.velocity=0,e.visualDuration){const l=e.visualDuration,i=2*Math.PI/(l*1.2),o=i*i,u=2*ln(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:mt.mass,stiffness:o,damping:u}}else{const l=PT({...e,velocity:0});t={...t,...l,mass:mt.mass},t.isResolvedFromDuration=!0}return t}function Bi(e=mt.visualDuration,t=mt.bounce){const l=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:o}=l;const u=l.keyframes[0],d=l.keyframes[l.keyframes.length-1],h={done:!1,value:u},{stiffness:f,damping:p,mass:x,duration:g,velocity:b,isResolvedFromDuration:w}=XT({...l,velocity:-Va(l.velocity||0)}),N=b||0,E=p/(2*Math.sqrt(f*x)),j=d-u,A=Va(Math.sqrt(f/x)),Z=Math.abs(j)<5;i||(i=Z?mt.restSpeed.granular:mt.restSpeed.default),o||(o=Z?mt.restDelta.granular:mt.restDelta.default);let M;if(E<1){const _=Jh(A,E);M=T=>{const V=Math.exp(-E*A*T);return d-V*((N+E*A*j)/_*Math.sin(_*T)+j*Math.cos(_*T))}}else if(E===1)M=_=>d-Math.exp(-A*_)*(j+(N+A*j)*_);else{const _=A*Math.sqrt(E*E-1);M=T=>{const V=Math.exp(-E*A*T),H=Math.min(_*T,300);return d-V*((N+E*A*j)*Math.sinh(H)+_*j*Math.cosh(H))/_}}const S={calculatedDuration:w&&g||null,next:_=>{const T=M(_);if(w)h.done=_>=g;else{let V=_===0?N:0;E<1&&(V=_===0?Ia(N):Oj(M,_,T));const H=Math.abs(V)<=i,L=Math.abs(d-T)<=o;h.done=H&&L}return h.value=h.done?d:T,h},toString:()=>{const _=Math.min(tf(S),Ii),T=Dj(V=>S.next(_*V).value,_,30);return _+"ms "+T},toTransition:()=>{}};return S}Bi.applyToOptions=e=>{const t=IT(e,100,Bi);return e.ease=t.ease,e.duration=Ia(t.duration),e.type="keyframes",e};function Wh({keyframes:e,velocity:t=0,power:l=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:u=500,modifyTarget:d,min:h,max:f,restDelta:p=.5,restSpeed:x}){const g=e[0],b={done:!1,value:g},w=H=>h!==void 0&&H<h||f!==void 0&&H>f,N=H=>h===void 0?f:f===void 0||Math.abs(h-H)<Math.abs(f-H)?h:f;let E=l*t;const j=g+E,A=d===void 0?j:d(j);A!==j&&(E=A-g);const Z=H=>-E*Math.exp(-H/i),M=H=>A+Z(H),S=H=>{const L=Z(H),D=M(H);b.done=Math.abs(L)<=p,b.value=b.done?A:D};let _,T;const V=H=>{w(b.value)&&(_=H,T=Bi({keyframes:[b.value,N(b.value)],velocity:Oj(M,H,b.value),damping:o,stiffness:u,restDelta:p,restSpeed:x}))};return V(0),{calculatedDuration:null,next:H=>{let L=!1;return!T&&_===void 0&&(L=!0,S(H),V(H)),_!==void 0&&H>=_?T.next(H-_):(!L&&S(H),b)}}}function QT(e,t,l){const i=[],o=l||Ln.mix||Rj,u=e.length-1;for(let d=0;d<u;d++){let h=o(e[d],e[d+1]);if(t){const f=Array.isArray(t)?t[d]||_a:t;h=R1(f,h)}i.push(h)}return i}function JT(e,t,{clamp:l=!0,ease:i,mixer:o}={}){const u=e.length;if(Gm(u===t.length),u===1)return()=>t[0];if(u===2&&t[0]===t[1])return()=>t[1];const d=e[0]===e[1];e[0]>e[u-1]&&(e=[...e].reverse(),t=[...t].reverse());const h=QT(t,i,o),f=h.length,p=x=>{if(d&&x<e[0])return t[0];let g=0;if(f>1)for(;g<e.length-2&&!(x<e[g+1]);g++);const b=E1(e[g],e[g+1],x);return h[g](b)};return l?x=>p(ln(e[0],e[u-1],x)):p}function WT(e,t){const l=e[e.length-1];for(let i=1;i<=t;i++){const o=E1(0,t,i);e.push(ot(l,1,o))}}function eL(e){const t=[0];return WT(t,e.length-1),t}function tL(e,t){return e.map(l=>l*t)}function aL(e,t){return e.map(()=>t||Ej).splice(0,e.length-1)}function b1({duration:e=300,keyframes:t,times:l,ease:i="easeInOut"}){const o=mT(i)?i.map(ug):ug(i),u={done:!1,value:t[0]},d=tL(l&&l.length===t.length?l:eL(t),e),h=JT(d,t,{ease:Array.isArray(o)?o:aL(t,o)});return{calculatedDuration:e,next:f=>(u.value=h(f),u.done=f>=e,u)}}const nL=e=>e!==null;function af(e,{repeat:t,repeatType:l="loop"},i,o=1){const u=e.filter(nL),h=o<0||t&&l!=="loop"&&t%2===1?0:u.length-1;return!h||i===void 0?u[h]:i}const rL={decay:Wh,inertia:Wh,tween:b1,keyframes:b1,spring:Bi};function Fj(e){typeof e.type=="string"&&(e.type=rL[e.type])}class nf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,l){return this.finished.then(t,l)}}const sL=e=>e/100;class rf extends nf{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var i,o;const{motionValue:l}=this.options;l&&l.updatedAt!==Ut.now()&&this.tick(Ut.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(i=this.options).onStop)==null||o.call(i))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Fj(t);const{type:l=b1,repeat:i=0,repeatDelay:o=0,repeatType:u,velocity:d=0}=t;let{keyframes:h}=t;const f=l||b1;f!==b1&&typeof h[0]!="number"&&(this.mixKeyframes=R1(sL,Rj(h[0],h[1])),h=[0,100]);const p=f({...t,keyframes:h});u==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...h].reverse(),velocity:-d})),p.calculatedDuration===null&&(p.calculatedDuration=tf(p));const{calculatedDuration:x}=p;this.calculatedDuration=x,this.resolvedDuration=x+o,this.totalDuration=this.resolvedDuration*(i+1)-o,this.generator=p}updateTime(t){const l=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(t,l=!1){const{generator:i,totalDuration:o,mixKeyframes:u,mirroredGenerator:d,resolvedDuration:h,calculatedDuration:f}=this;if(this.startTime===null)return i.next(0);const{delay:p=0,keyframes:x,repeat:g,repeatType:b,repeatDelay:w,type:N,onUpdate:E,finalKeyframe:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),l?this.currentTime=t:this.updateTime(t);const A=this.currentTime-p*(this.playbackSpeed>=0?1:-1),Z=this.playbackSpeed>=0?A<0:A>o;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let M=this.currentTime,S=i;if(g){const H=Math.min(this.currentTime,o)/h;let L=Math.floor(H),D=H%1;!D&&H>=1&&(D=1),D===1&&L--,L=Math.min(L,g+1),!!(L%2)&&(b==="reverse"?(D=1-D,w&&(D-=w/h)):b==="mirror"&&(S=d)),M=ln(0,1,D)*h}const _=Z?{done:!1,value:x[0]}:S.next(M);u&&(_.value=u(_.value));let{done:T}=_;!Z&&f!==null&&(T=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return V&&N!==Wh&&(_.value=af(x,this.options,j,this.speed)),E&&E(_.value),V&&this.finish(),_}then(t,l){return this.finished.then(t,l)}get duration(){return Va(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Va(t)}get time(){return Va(this.currentTime)}set time(t){var l;t=Ia(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(l=this.driver)==null||l.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ut.now());const l=this.playbackSpeed!==t;this.playbackSpeed=t,l&&(this.time=Va(this.currentTime))}play(){var o,u;if(this.isStopped)return;const{driver:t=qT,startTime:l}=this.options;this.driver||(this.driver=t(d=>this.tick(d))),(u=(o=this.options).onPlay)==null||u.call(o);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(Ut.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,l;this.notifyFinished(),this.teardown(),this.state="finished",(l=(t=this.options).onComplete)==null||l.call(t)}cancel(){var t,l;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(l=(t=this.options).onCancel)==null||l.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var l;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(l=this.driver)==null||l.stop(),t.observe(this)}}function lL(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const q0=e=>e*180/Math.PI,em=e=>{const t=q0(Math.atan2(e[1],e[0]));return tm(t)},iL={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:em,rotateZ:em,skewX:e=>q0(Math.atan(e[1])),skewY:e=>q0(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},tm=e=>(e=e%360,e<0&&(e+=360),e),gg=em,vg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),bg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),oL={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:vg,scaleY:bg,scale:e=>(vg(e)+bg(e))/2,rotateX:e=>tm(q0(Math.atan2(e[6],e[5]))),rotateY:e=>tm(q0(Math.atan2(-e[2],e[0]))),rotateZ:gg,rotate:gg,skewX:e=>q0(Math.atan(e[4])),skewY:e=>q0(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function am(e){return e.includes("scale")?1:0}function nm(e,t){if(!e||e==="none")return am(t);const l=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,o;if(l)i=oL,o=l;else{const h=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=iL,o=h}if(!o)return am(t);const u=i[t],d=o[1].split(",").map(uL);return typeof u=="function"?u(d):d[u]}const cL=(e,t)=>{const{transform:l="none"}=getComputedStyle(e);return nm(l,t)};function uL(e){return parseFloat(e.trim())}const ns=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rs=new Set(ns),yg=e=>e===as||e===ge,dL=new Set(["x","y","z"]),hL=ns.filter(e=>!dL.has(e));function mL(e){const t=[];return hL.forEach(l=>{const i=e.getValue(l);i!==void 0&&(t.push([l,i.get()]),i.set(l.startsWith("scale")?1:0))}),t}const f0={width:({x:e},{paddingLeft:t="0",paddingRight:l="0"})=>e.max-e.min-parseFloat(t)-parseFloat(l),height:({y:e},{paddingTop:t="0",paddingBottom:l="0"})=>e.max-e.min-parseFloat(t)-parseFloat(l),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>nm(t,"x"),y:(e,{transform:t})=>nm(t,"y")};f0.translateX=f0.x;f0.translateY=f0.y;const U0=new Set;let rm=!1,sm=!1,lm=!1;function zj(){if(sm){const e=Array.from(U0).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),l=new Map;t.forEach(i=>{const o=mL(i);o.length&&(l.set(i,o),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const o=l.get(i);o&&o.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)})}sm=!1,rm=!1,U0.forEach(e=>e.complete(lm)),U0.clear()}function $j(){U0.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sm=!0)})}function fL(){lm=!0,$j(),zj(),lm=!1}class sf{constructor(t,l,i,o,u,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=l,this.name=i,this.motionValue=o,this.element=u,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(U0.add(this),rm||(rm=!0,tt.read($j),tt.resolveKeyframes(zj))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:l,element:i,motionValue:o}=this;if(t[0]===null){const u=o==null?void 0:o.get(),d=t[t.length-1];if(u!==void 0)t[0]=u;else if(i&&l){const h=i.readValue(l,d);h!=null&&(t[0]=h)}t[0]===void 0&&(t[0]=d),o&&u===void 0&&o.set(t[0])}lL(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),U0.delete(this)}cancel(){this.state==="scheduled"&&(U0.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const pL=e=>e.startsWith("--");function xL(e,t,l){pL(t)?e.style.setProperty(t,l):e.style[t]=l}const gL={};function qj(e,t){const l=pj(e);return()=>gL[t]??l()}const vL=qj(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Ij=qj(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),h1=([e,t,l,i])=>`cubic-bezier(${e}, ${t}, ${l}, ${i})`,wg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:h1([0,.65,.55,1]),circOut:h1([.55,0,1,.45]),backIn:h1([.31,.01,.66,-.59]),backOut:h1([.33,1.53,.69,.99])};function Bj(e,t){if(e)return typeof e=="function"?Ij()?Dj(e,t):"ease-out":Mj(e)?h1(e):Array.isArray(e)?e.map(l=>Bj(l,t)||wg.easeOut):wg[e]}function bL(e,t,l,{delay:i=0,duration:o=300,repeat:u=0,repeatType:d="loop",ease:h="easeOut",times:f}={},p=void 0){const x={[t]:l};f&&(x.offset=f);const g=Bj(h,o);Array.isArray(g)&&(x.easing=g);const b={delay:i,duration:o,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:u+1,direction:d==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),e.animate(x,b)}function Pj(e){return typeof e=="function"&&"applyToOptions"in e}function yL({type:e,...t}){return Pj(e)&&Ij()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Uj extends nf{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:l,name:i,keyframes:o,pseudoElement:u,allowFlatten:d=!1,finalKeyframe:h,onComplete:f}=t;this.isPseudoElement=!!u,this.allowFlatten=d,this.options=t,Gm(typeof t.type!="string");const p=yL(t);this.animation=bL(l,i,o,p,u),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const x=af(o,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(x):xL(l,i,x),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 t,l;(l=(t=this.animation).finish)==null||l.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var l,i,o;const t=(l=this.options)==null?void 0:l.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((o=(i=this.animation).commitStyles)==null||o.call(i))}get duration(){var l,i;const t=((i=(l=this.animation.effect)==null?void 0:l.getComputedTiming)==null?void 0:i.call(l).duration)||0;return Va(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Va(t)}get time(){return Va(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ia(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:l}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&vL()?(this.animation.timeline=t,_a):l(this)}}const Gj={anticipate:Aj,backInOut:wj,circInOut:Nj};function wL(e){return e in Gj}function AL(e){typeof e.ease=="string"&&wL(e.ease)&&(e.ease=Gj[e.ease])}const tu=10;class jL extends Uj{constructor(t){AL(t),Fj(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:l,onUpdate:i,onComplete:o,element:u,...d}=this.options;if(!l)return;if(t!==void 0){l.set(t);return}const h=new rf({...d,autoplay:!1}),f=Math.max(tu,Ut.now()-this.startTime),p=ln(0,tu,f-tu);l.setWithVelocity(h.sample(Math.max(0,f-p)).value,h.sample(f).value,p),h.stop()}}const Ag=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ba.test(e)||e==="0")&&!e.startsWith("url("));function NL(e){const t=e[0];if(e.length===1)return!0;for(let l=0;l<e.length;l++)if(e[l]!==t)return!0}function EL(e,t,l,i){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const u=e[e.length-1],d=Ag(o,t),h=Ag(u,t);return!d||!h?!1:NL(e)||(l==="spring"||Pj(l))&&i}function im(e){e.duration=0,e.type="keyframes"}const ML=new Set(["opacity","clipPath","filter","transform"]),SL=pj(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ZL(e){var x;const{motionValue:t,name:l,repeatDelay:i,repeatType:o,damping:u,type:d}=e;if(!(((x=t==null?void 0:t.owner)==null?void 0:x.current)instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:p}=t.owner.getProps();return SL()&&l&&ML.has(l)&&(l!=="transform"||!p)&&!f&&!i&&o!=="mirror"&&u!==0&&d!=="inertia"}const CL=40;class HL extends nf{constructor({autoplay:t=!0,delay:l=0,type:i="keyframes",repeat:o=0,repeatDelay:u=0,repeatType:d="loop",keyframes:h,name:f,motionValue:p,element:x,...g}){var N;super(),this.stop=()=>{var E,j;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),(j=this.keyframeResolver)==null||j.cancel()},this.createdAt=Ut.now();const b={autoplay:t,delay:l,type:i,repeat:o,repeatDelay:u,repeatType:d,name:f,motionValue:p,element:x,...g},w=(x==null?void 0:x.KeyframeResolver)||sf;this.keyframeResolver=new w(h,(E,j,A)=>this.onKeyframesResolved(E,j,b,!A),f,p,x),(N=this.keyframeResolver)==null||N.scheduleResolve()}onKeyframesResolved(t,l,i,o){var j,A;this.keyframeResolver=void 0;const{name:u,type:d,velocity:h,delay:f,isHandoff:p,onUpdate:x}=i;this.resolvedAt=Ut.now(),EL(t,u,d,h)||((Ln.instantAnimations||!f)&&(x==null||x(af(t,i,l))),t[0]=t[t.length-1],im(i),i.repeat=0);const b={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>CL?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...i,keyframes:t},w=!p&&ZL(b),N=(A=(j=b.motionValue)==null?void 0:j.owner)==null?void 0:A.current,E=w?new jL({...b,element:N}):new rf(b);E.finished.then(()=>{this.notifyFinished()}).catch(_a),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(t,l){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),fL()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function Yj(e,t,l,i=0,o=1){const u=Array.from(e).sort((p,x)=>p.sortNodePosition(x)).indexOf(t),d=e.size,h=(d-1)*i;return typeof l=="function"?l(u,d):o===1?u*i:h-u*i}const VL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _L(e){const t=VL.exec(e);if(!t)return[,];const[,l,i,o]=t;return[`--${l??i}`,o]}function Kj(e,t,l=1){const[i,o]=_L(e);if(!i)return;const u=window.getComputedStyle(t).getPropertyValue(i);if(u){const d=u.trim();return hj(d)?parseFloat(d):d}return Qm(o)?Kj(o,t,l+1):o}const TL={type:"spring",stiffness:500,damping:25,restSpeed:10},LL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kL={type:"keyframes",duration:.8},RL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},DL=(e,{keyframes:t})=>t.length>2?kL:rs.has(e)?e.startsWith("scale")?LL(t[1]):TL:RL,OL=e=>e!==null;function FL(e,{repeat:t,repeatType:l="loop"},i){const o=e.filter(OL),u=t&&l!=="loop"&&t%2===1?0:o.length-1;return o[u]}function Xj(e,t){if(e!=null&&e.inherit&&t){const{inherit:l,...i}=e;return{...t,...i}}return e}function lf(e,t){const l=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return l!==e?Xj(l,e):l}function zL({when:e,delay:t,delayChildren:l,staggerChildren:i,staggerDirection:o,repeat:u,repeatType:d,repeatDelay:h,from:f,elapsed:p,...x}){return!!Object.keys(x).length}const of=(e,t,l,i={},o,u)=>d=>{const h=lf(i,e)||{},f=h.delay||i.delay||0;let{elapsed:p=0}=i;p=p-Ia(f);const x={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:t.getVelocity(),...h,delay:-p,onUpdate:b=>{t.set(b),h.onUpdate&&h.onUpdate(b)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:e,motionValue:t,element:u?void 0:o};zL(h)||Object.assign(x,DL(e,x)),x.duration&&(x.duration=Ia(x.duration)),x.repeatDelay&&(x.repeatDelay=Ia(x.repeatDelay)),x.from!==void 0&&(x.keyframes[0]=x.from);let g=!1;if((x.type===!1||x.duration===0&&!x.repeatDelay)&&(im(x),x.delay===0&&(g=!0)),(Ln.instantAnimations||Ln.skipAnimations||o!=null&&o.shouldSkipAnimations)&&(g=!0,im(x),x.delay=0),x.allowFlatten=!h.type&&!h.ease,g&&!u&&t.get()!==void 0){const b=FL(x.keyframes,h);if(b!==void 0){tt.update(()=>{x.onUpdate(b),x.onComplete()});return}}return h.isSync?new rf(x):new HL(x)};function jg(e){const t=[{},{}];return e==null||e.values.forEach((l,i)=>{t[0][i]=l.get(),t[1][i]=l.getVelocity()}),t}function cf(e,t,l,i){if(typeof t=="function"){const[o,u]=jg(i);t=t(l!==void 0?l:e.custom,o,u)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,u]=jg(i);t=t(l!==void 0?l:e.custom,o,u)}return t}function Yr(e,t,l){const i=e.getProps();return cf(i,t,l!==void 0?l:i.custom,e)}const Qj=new Set(["width","height","top","left","right","bottom",...ns]),Ng=30,$L=e=>!isNaN(parseFloat(e));class qL{constructor(t,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var u;const o=Ut.now();if(this.updatedAt!==o&&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(t),this.owner=l.owner}setCurrent(t){this.current=t,this.updatedAt=Ut.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=$L(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,l){this.events[t]||(this.events[t]=new Ym);const i=this.events[t].add(l);return t==="change"?()=>{i(),tt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,l){this.passiveEffect=t,this.stopPassiveEffect=l}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,l,i){this.set(l),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,l=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ut.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ng)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,Ng);return xj(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(t){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=t(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 t,l;(t=this.dependents)==null||t.clear(),(l=this.events.destroy)==null||l.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Xr(e,t){return new qL(e,t)}const om=e=>Array.isArray(e);function IL(e,t,l){e.hasValue(t)?e.getValue(t).set(l):e.addValue(t,Xr(l))}function BL(e){return om(e)?e[e.length-1]||0:e}function PL(e,t){const l=Yr(e,t);let{transitionEnd:i={},transition:o={},...u}=l||{};u={...u,...i};for(const d in u){const h=BL(u[d]);IL(e,d,h)}}const It=e=>!!(e&&e.getVelocity);function UL(e){return!!(It(e)&&e.add)}function cm(e,t){const l=e.getValue("willChange");if(UL(l))return l.add(t);if(!l&&Ln.WillChange){const i=new Ln.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function uf(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const GL="framerAppearId",Jj="data-"+uf(GL);function Wj(e){return e.props[Jj]}function YL({protectedKeys:e,needsAnimating:t},l){const i=e.hasOwnProperty(l)&&t[l]!==!0;return t[l]=!1,i}function eN(e,t,{delay:l=0,transitionOverride:i,type:o}={}){let{transition:u,transitionEnd:d,...h}=t;const f=e.getDefaultTransition();u=u?Xj(u,f):f;const p=u==null?void 0:u.reduceMotion;i&&(u=i);const x=[],g=o&&e.animationState&&e.animationState.getState()[o];for(const b in h){const w=e.getValue(b,e.latestValues[b]??null),N=h[b];if(N===void 0||g&&YL(g,b))continue;const E={delay:l,...lf(u||{},b)},j=w.get();if(j!==void 0&&!w.isAnimating&&!Array.isArray(N)&&N===j&&!E.velocity)continue;let A=!1;if(window.MotionHandoffAnimation){const S=Wj(e);if(S){const _=window.MotionHandoffAnimation(S,b,tt);_!==null&&(E.startTime=_,A=!0)}}cm(e,b);const Z=p??e.shouldReduceMotion;w.start(of(b,w,N,Z&&Qj.has(b)?{type:!1}:E,e,A));const M=w.animation;M&&x.push(M)}if(d){const b=()=>tt.update(()=>{d&&PL(e,d)});x.length?Promise.all(x).then(b):b()}return x}function um(e,t,l={}){var f;const i=Yr(e,t,l.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};l.transitionOverride&&(o=l.transitionOverride);const u=i?()=>Promise.all(eN(e,i,l)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:x=0,staggerChildren:g,staggerDirection:b}=o;return KL(e,t,p,x,g,b,l)}:()=>Promise.resolve(),{when:h}=o;if(h){const[p,x]=h==="beforeChildren"?[u,d]:[d,u];return p().then(()=>x())}else return Promise.all([u(),d(l.delay)])}function KL(e,t,l=0,i=0,o=0,u=1,d){const h=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),h.push(um(f,t,{...d,delay:l+(typeof i=="function"?0:i)+Yj(e.variantChildren,f,i,o,u)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(h)}function XL(e,t,l={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const o=t.map(u=>um(e,u,l));i=Promise.all(o)}else if(typeof t=="string")i=um(e,t,l);else{const o=typeof t=="function"?Yr(e,t,l.custom):t;i=Promise.all(eN(e,o,l))}return i.then(()=>{e.notify("AnimationComplete",t)})}const QL={test:e=>e==="auto",parse:e=>e},tN=e=>t=>t.test(e),aN=[as,ge,sn,h0,MT,ET,QL],Eg=e=>aN.find(tN(e));function JL(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||fj(e):!0}const WL=new Set(["brightness","contrast","saturate","opacity"]);function ek(e){const[t,l]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=l.match(Jm)||[];if(!i)return e;const o=l.replace(i,"");let u=WL.has(t)?1:0;return i!==l&&(u*=100),t+"("+u+o+")"}const tk=/\b([a-z-]*)\(.*?\)/gu,dm={...Ba,getAnimatableNone:e=>{const t=e.match(tk);return t?t.map(ek).join(" "):e}},hm={...Ba,getAnimatableNone:e=>{const t=Ba.parse(e);return Ba.createTransformer(e)(t.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}},Mg={...as,transform:Math.round},ak={rotate:h0,rotateX:h0,rotateY:h0,rotateZ:h0,scale:xi,scaleX:xi,scaleY:xi,scaleZ:xi,skew:h0,skewX:h0,skewY:h0,distance:ge,translateX:ge,translateY:ge,translateZ:ge,x:ge,y:ge,z:ge,perspective:ge,transformPerspective:ge,opacity:M1,originX:hg,originY:hg,originZ:ge},df={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,...ak,zIndex:Mg,fillOpacity:M1,strokeOpacity:M1,numOctaves:Mg},nk={...df,color:Et,backgroundColor:Et,outlineColor:Et,fill:Et,stroke:Et,borderColor:Et,borderTopColor:Et,borderRightColor:Et,borderBottomColor:Et,borderLeftColor:Et,filter:dm,WebkitFilter:dm,mask:hm,WebkitMask:hm},nN=e=>nk[e],rk=new Set([dm,hm]);function rN(e,t){let l=nN(e);return rk.has(l)||(l=Ba),l.getAnimatableNone?l.getAnimatableNone(t):void 0}const sk=new Set(["auto","none","0"]);function lk(e,t,l){let i=0,o;for(;i<e.length&&!o;){const u=e[i];typeof u=="string"&&!sk.has(u)&&S1(u).values.length&&(o=e[i]),i++}if(o&&l)for(const u of t)e[u]=rN(l,o)}class ik extends sf{constructor(t,l,i,o,u){super(t,l,i,o,u,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:l,name:i}=this;if(!l||!l.current)return;super.readKeyframes();for(let x=0;x<t.length;x++){let g=t[x];if(typeof g=="string"&&(g=g.trim(),Qm(g))){const b=Kj(g,l.current);b!==void 0&&(t[x]=b),x===t.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!Qj.has(i)||t.length!==2)return;const[o,u]=t,d=Eg(o),h=Eg(u),f=dg(o),p=dg(u);if(f!==p&&f0[i]){this.needsMeasurement=!0;return}if(d!==h)if(yg(d)&&yg(h))for(let x=0;x<t.length;x++){const g=t[x];typeof g=="string"&&(t[x]=parseFloat(g))}else f0[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:l}=this,i=[];for(let o=0;o<t.length;o++)(t[o]===null||JL(t[o]))&&i.push(o);i.length&&lk(t,i,l)}measureInitialState(){const{element:t,unresolvedKeyframes:l,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=f0[i](t.measureViewportBox(),window.getComputedStyle(t.current)),l[0]=this.measuredOrigin;const o=l[l.length-1];o!==void 0&&t.getValue(i,o).jump(o,!1)}measureEndState(){var h;const{element:t,name:l,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const o=t.getValue(l);o&&o.jump(this.measuredOrigin,!1);const u=i.length-1,d=i[u];i[u]=f0[l](t.measureViewportBox(),window.getComputedStyle(t.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([f,p])=>{t.getValue(f).set(p)}),this.resolveNoneKeyframes()}}const ok=new Set(["opacity","clipPath","filter","transform"]);function sN(e,t,l){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(l==null?void 0:l[e])??i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(i=>i!=null)}const lN=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function mm(e){return mj(e)&&"offsetHeight"in e}const{schedule:hf}=Sj(queueMicrotask,!1),qa={x:!1,y:!1};function iN(){return qa.x||qa.y}function ck(e){return e==="x"||e==="y"?qa[e]?null:(qa[e]=!0,()=>{qa[e]=!1}):qa.x||qa.y?null:(qa.x=qa.y=!0,()=>{qa.x=qa.y=!1})}function oN(e,t){const l=sN(e),i=new AbortController,o={passive:!0,...t,signal:i.signal};return[l,o,()=>i.abort()]}function uk(e){return!(e.pointerType==="touch"||iN())}function dk(e,t,l={}){const[i,o,u]=oN(e,l);return i.forEach(d=>{let h=!1,f=!1,p;const x=()=>{d.removeEventListener("pointerleave",N)},g=j=>{p&&(p(j),p=void 0),x()},b=j=>{h=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),f&&(f=!1,g(j))},w=()=>{h=!0,window.addEventListener("pointerup",b,o),window.addEventListener("pointercancel",b,o)},N=j=>{if(j.pointerType!=="touch"){if(h){f=!0;return}g(j)}},E=j=>{if(!uk(j))return;f=!1;const A=t(d,j);typeof A=="function"&&(p=A,d.addEventListener("pointerleave",N,o))};d.addEventListener("pointerenter",E,o),d.addEventListener("pointerdown",w,o)}),u}const cN=(e,t)=>t?e===t?!0:cN(e,t.parentElement):!1,mf=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,hk=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function mk(e){return hk.has(e.tagName)||e.isContentEditable===!0}const fk=new Set(["INPUT","SELECT","TEXTAREA"]);function pk(e){return fk.has(e.tagName)||e.isContentEditable===!0}const _i=new WeakSet;function Sg(e){return t=>{t.key==="Enter"&&e(t)}}function au(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const xk=(e,t)=>{const l=e.currentTarget;if(!l)return;const i=Sg(()=>{if(_i.has(l))return;au(l,"down");const o=Sg(()=>{au(l,"up")}),u=()=>au(l,"cancel");l.addEventListener("keyup",o,t),l.addEventListener("blur",u,t)});l.addEventListener("keydown",i,t),l.addEventListener("blur",()=>l.removeEventListener("keydown",i),t)};function Zg(e){return mf(e)&&!iN()}const Cg=new WeakSet;function gk(e,t,l={}){const[i,o,u]=oN(e,l),d=h=>{const f=h.currentTarget;if(!Zg(h)||Cg.has(h))return;_i.add(f),l.stopPropagation&&Cg.add(h);const p=t(f,h),x=(w,N)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",b),_i.has(f)&&_i.delete(f),Zg(w)&&typeof p=="function"&&p(w,{success:N})},g=w=>{x(w,f===window||f===document||l.useGlobalTarget||cN(f,w.target))},b=w=>{x(w,!1)};window.addEventListener("pointerup",g,o),window.addEventListener("pointercancel",b,o)};return i.forEach(h=>{(l.useGlobalTarget?window:h).addEventListener("pointerdown",d,o),mm(h)&&(h.addEventListener("focus",p=>xk(p,o)),!mk(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),u}function ff(e){return mj(e)&&"ownerSVGElement"in e}const Ti=new WeakMap;let m0;const uN=(e,t,l)=>(i,o)=>o&&o[0]?o[0][e+"Size"]:ff(i)&&"getBBox"in i?i.getBBox()[t]:i[l],vk=uN("inline","width","offsetWidth"),bk=uN("block","height","offsetHeight");function yk({target:e,borderBoxSize:t}){var l;(l=Ti.get(e))==null||l.forEach(i=>{i(e,{get width(){return vk(e,t)},get height(){return bk(e,t)}})})}function wk(e){e.forEach(yk)}function Ak(){typeof ResizeObserver>"u"||(m0=new ResizeObserver(wk))}function jk(e,t){m0||Ak();const l=sN(e);return l.forEach(i=>{let o=Ti.get(i);o||(o=new Set,Ti.set(i,o)),o.add(t),m0==null||m0.observe(i)}),()=>{l.forEach(i=>{const o=Ti.get(i);o==null||o.delete(t),o!=null&&o.size||m0==null||m0.unobserve(i)})}}const Li=new Set;let Ir;function Nk(){Ir=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Li.forEach(t=>t(e))},window.addEventListener("resize",Ir)}function Ek(e){return Li.add(e),Ir||Nk(),()=>{Li.delete(e),!Li.size&&typeof Ir=="function"&&(window.removeEventListener("resize",Ir),Ir=void 0)}}function Hg(e,t){return typeof e=="function"?Ek(e):jk(e,t)}function Mk(e){return ff(e)&&e.tagName==="svg"}const Sk=[...aN,Et,Ba],Zk=e=>Sk.find(tN(e)),Vg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Br=()=>({x:Vg(),y:Vg()}),_g=()=>({min:0,max:0}),Ct=()=>({x:_g(),y:_g()}),Ck=new WeakMap;function ao(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Z1(e){return typeof e=="string"||Array.isArray(e)}const pf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xf=["initial",...pf];function no(e){return ao(e.animate)||xf.some(t=>Z1(e[t]))}function dN(e){return!!(no(e)||e.variants)}function Hk(e,t,l){for(const i in t){const o=t[i],u=l[i];if(It(o))e.addValue(i,o);else if(It(u))e.addValue(i,Xr(o,{owner:e}));else if(u!==o)if(e.hasValue(i)){const d=e.getValue(i);d.liveStyle===!0?d.jump(o):d.hasAnimated||d.set(o)}else{const d=e.getStaticValue(i);e.addValue(i,Xr(d!==void 0?d:o,{owner:e}))}}for(const i in l)t[i]===void 0&&e.removeValue(i);return t}const fm={current:null},hN={current:!1},Vk=typeof window<"u";function _k(){if(hN.current=!0,!!Vk)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>fm.current=e.matches;e.addEventListener("change",t),t()}else fm.current=!1}const Tg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Pi={};function mN(e){Pi=e}function Tk(){return Pi}class Lk{scrapeMotionValuesFromProps(t,l,i){return{}}constructor({parent:t,props:l,presenceContext:i,reducedMotionConfig:o,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=sf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=Ut.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,tt.render(this.render,!1,!0))};const{latestValues:p,renderState:x}=h;this.latestValues=p,this.baseTarget={...p},this.initialValues=l.initial?{...p}:{},this.renderState=x,this.parent=t,this.props=l,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=u,this.options=f,this.blockInitialAnimation=!!d,this.isControllingVariants=no(l),this.isVariantNode=dN(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:g,...b}=this.scrapeMotionValuesFromProps(l,{},this);for(const w in b){const N=b[w];p[w]!==void 0&&It(N)&&N.set(p[w])}}mount(t){var l,i;if(this.hasBeenMounted)for(const o in this.initialValues)(l=this.values.get(o))==null||l.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=t,Ck.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,u)=>this.bindToMotionValue(u,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(hN.current||_k(),this.shouldReduceMotion=fm.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),x0(this.notifyUpdate),x0(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.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(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,l){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),l.accelerate&&ok.has(t)&&this.current instanceof HTMLElement){const{factory:d,keyframes:h,times:f,ease:p,duration:x}=l.accelerate,g=new Uj({element:this.current,name:t,keyframes:h,times:f,ease:p,duration:Ia(x)}),b=d(g);this.valueSubscriptions.set(t,()=>{b(),g.cancel()});return}const i=rs.has(t);i&&this.onBindTransform&&this.onBindTransform();const o=l.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&tt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let u;typeof window<"u"&&window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,l)),this.valueSubscriptions.set(t,()=>{o(),u&&u(),l.owner&&l.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Pi){const l=Pi[t];if(!l)continue;const{isEnabled:i,Feature:o}=l;if(!this.features[t]&&o&&i(this.props)&&(this.features[t]=new o(this)),this.features[t]){const u=this.features[t];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):Ct()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,l){this.latestValues[t]=l}update(t,l){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let i=0;i<Tg.length;i++){const o=Tg[i];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const u="on"+o,d=t[u];d&&(this.propEventSubscriptions[o]=this.on(o,d))}this.prevMotionValues=Hk(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(t),()=>l.variantChildren.delete(t)}addValue(t,l){const i=this.values.get(t);l!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,l),this.values.set(t,l),this.latestValues[t]=l.get())}removeValue(t){this.values.delete(t);const l=this.valueSubscriptions.get(t);l&&(l(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,l){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&l!==void 0&&(i=Xr(l===null?void 0:l,{owner:this}),this.addValue(t,i)),i}readValue(t,l){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(hj(i)||fj(i))?i=parseFloat(i):!Zk(i)&&Ba.test(l)&&(i=rN(t,l)),this.setBaseTarget(t,It(i)?i.get():i)),It(i)?i.get():i}setBaseTarget(t,l){this.baseTarget[t]=l}getBaseTarget(t){var u;const{initial:l}=this.props;let i;if(typeof l=="string"||typeof l=="object"){const d=cf(this.props,l,(u=this.presenceContext)==null?void 0:u.custom);d&&(i=d[t])}if(l&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!It(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,l){return this.events[t]||(this.events[t]=new Ym),this.events[t].add(l)}notify(t,...l){this.events[t]&&this.events[t].notify(...l)}scheduleRenderMicrotask(){hf.render(this.render)}}class fN extends Lk{constructor(){super(...arguments),this.KeyframeResolver=ik}sortInstanceNodePosition(t,l){return t.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(t,l){const i=t.style;return i?i[l]:void 0}removeValueFromRenderState(t,{vars:l,style:i}){delete l[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;It(t)&&(this.childSubscription=t.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class g0{constructor(t){this.isMounted=!1,this.node=t}update(){}}function pN({top:e,left:t,right:l,bottom:i}){return{x:{min:t,max:l},y:{min:e,max:i}}}function kk({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Rk(e,t){if(!t)return e;const l=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:l.y,left:l.x,bottom:i.y,right:i.x}}function nu(e){return e===void 0||e===1}function pm({scale:e,scaleX:t,scaleY:l}){return!nu(e)||!nu(t)||!nu(l)}function z0(e){return pm(e)||xN(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function xN(e){return Lg(e.x)||Lg(e.y)}function Lg(e){return e&&e!=="0%"}function Ui(e,t,l){const i=e-l,o=t*i;return l+o}function kg(e,t,l,i,o){return o!==void 0&&(e=Ui(e,o,i)),Ui(e,l,i)+t}function xm(e,t=0,l=1,i,o){e.min=kg(e.min,t,l,i,o),e.max=kg(e.max,t,l,i,o)}function gN(e,{x:t,y:l}){xm(e.x,t.translate,t.scale,t.originPoint),xm(e.y,l.translate,l.scale,l.originPoint)}const Rg=.999999999999,Dg=1.0000000000001;function Dk(e,t,l,i=!1){const o=l.length;if(!o)return;t.x=t.y=1;let u,d;for(let h=0;h<o;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&&Ur(e,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),d&&(t.x*=d.x.scale,t.y*=d.y.scale,gN(e,d)),i&&z0(u.latestValues)&&Ur(e,u.latestValues))}t.x<Dg&&t.x>Rg&&(t.x=1),t.y<Dg&&t.y>Rg&&(t.y=1)}function Pr(e,t){e.min=e.min+t,e.max=e.max+t}function Og(e,t,l,i,o=.5){const u=ot(e.min,e.max,o);xm(e,t,l,u,i)}function Ur(e,t){Og(e.x,t.x,t.scaleX,t.scale,t.originX),Og(e.y,t.y,t.scaleY,t.scale,t.originY)}function vN(e,t){return pN(Rk(e.getBoundingClientRect(),t))}function Ok(e,t,l){const i=vN(e,l),{scroll:o}=t;return o&&(Pr(i.x,o.offset.x),Pr(i.y,o.offset.y)),i}const Fk={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zk=ns.length;function $k(e,t,l){let i="",o=!0;for(let u=0;u<zk;u++){const d=ns[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=lN(h,df[d]);if(!f){o=!1;const x=Fk[d]||d;i+=`${x}(${p}) `}l&&(t[d]=p)}}return i=i.trim(),l?i=l(t,o?"":i):o&&(i="none"),i}function gf(e,t,l){const{style:i,vars:o,transformOrigin:u}=e;let d=!1,h=!1;for(const f in t){const p=t[f];if(rs.has(f)){d=!0;continue}else if(Cj(f)){o[f]=p;continue}else{const x=lN(p,df[f]);f.startsWith("origin")?(h=!0,u[f]=x):i[f]=x}}if(t.transform||(d||l?i.transform=$k(t,e.transform,l):i.transform&&(i.transform="none")),h){const{originX:f="50%",originY:p="50%",originZ:x=0}=u;i.transformOrigin=`${f} ${p} ${x}`}}function bN(e,{style:t,vars:l},i,o){const u=e.style;let d;for(d in t)u[d]=t[d];o==null||o.applyProjectionStyles(u,i);for(d in l)u.setProperty(d,l[d])}function Fg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const c1={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ge.test(e))e=parseFloat(e);else return e;const l=Fg(e,t.target.x),i=Fg(e,t.target.y);return`${l}% ${i}%`}},qk={correct:(e,{treeScale:t,projectionDelta:l})=>{const i=e,o=Ba.parse(e);if(o.length>5)return i;const u=Ba.createTransformer(e),d=typeof o[0]!="number"?1:0,h=l.x.scale*t.x,f=l.y.scale*t.y;o[0+d]/=h,o[1+d]/=f;const p=ot(h,f,.5);return typeof o[2+d]=="number"&&(o[2+d]/=p),typeof o[3+d]=="number"&&(o[3+d]/=p),u(o)}},gm={borderRadius:{...c1,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:c1,borderTopRightRadius:c1,borderBottomLeftRadius:c1,borderBottomRightRadius:c1,boxShadow:qk};function yN(e,{layout:t,layoutId:l}){return rs.has(e)||e.startsWith("origin")||(t||l!==void 0)&&(!!gm[e]||e==="opacity")}function vf(e,t,l){var d;const i=e.style,o=t==null?void 0:t.style,u={};if(!i)return u;for(const h in i)(It(i[h])||o&&It(o[h])||yN(h,e)||((d=l==null?void 0:l.getValue(h))==null?void 0:d.liveStyle)!==void 0)&&(u[h]=i[h]);return u}function Ik(e){return window.getComputedStyle(e)}class Bk extends fN{constructor(){super(...arguments),this.type="html",this.renderInstance=bN}readValueFromInstance(t,l){var i;if(rs.has(l))return(i=this.projection)!=null&&i.isProjecting?am(l):cL(t,l);{const o=Ik(t),u=(Cj(l)?o.getPropertyValue(l):o[l])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(t,{transformPagePoint:l}){return vN(t,l)}build(t,l,i){gf(t,l,i.transformTemplate)}scrapeMotionValuesFromProps(t,l,i){return vf(t,l,i)}}const Pk={offset:"stroke-dashoffset",array:"stroke-dasharray"},Uk={offset:"strokeDashoffset",array:"strokeDasharray"};function Gk(e,t,l=1,i=0,o=!0){e.pathLength=1;const u=o?Pk:Uk;e[u.offset]=`${-i}`,e[u.array]=`${t} ${l}`}const Yk=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function wN(e,{attrX:t,attrY:l,attrScale:i,pathLength:o,pathSpacing:u=1,pathOffset:d=0,...h},f,p,x){if(gf(e,h,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b}=e;g.transform&&(b.transform=g.transform,delete g.transform),(b.transform||g.transformOrigin)&&(b.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),b.transform&&(b.transformBox=(x==null?void 0:x.transformBox)??"fill-box",delete g.transformBox);for(const w of Yk)g[w]!==void 0&&(b[w]=g[w],delete g[w]);t!==void 0&&(g.x=t),l!==void 0&&(g.y=l),i!==void 0&&(g.scale=i),o!==void 0&&Gk(g,o,u,d,!1)}const AN=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"]),jN=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Kk(e,t,l,i){bN(e,t,void 0,i);for(const o in t.attrs)e.setAttribute(AN.has(o)?o:uf(o),t.attrs[o])}function NN(e,t,l){const i=vf(e,t,l);for(const o in e)if(It(e[o])||It(t[o])){const u=ns.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;i[u]=e[o]}return i}class Xk extends fN{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ct}getBaseTargetFromProps(t,l){return t[l]}readValueFromInstance(t,l){if(rs.has(l)){const i=nN(l);return i&&i.default||0}return l=AN.has(l)?l:uf(l),t.getAttribute(l)}scrapeMotionValuesFromProps(t,l,i){return NN(t,l,i)}build(t,l,i){wN(t,l,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,l,i,o){Kk(t,l,i,o)}mount(t){this.isSVGTag=jN(t.tagName),super.mount(t)}}const Qk=xf.length;function EN(e){if(!e)return;if(!e.isControllingVariants){const l=e.parent?EN(e.parent)||{}:{};return e.props.initial!==void 0&&(l.initial=e.props.initial),l}const t={};for(let l=0;l<Qk;l++){const i=xf[l],o=e.props[i];(Z1(o)||o===!1)&&(t[i]=o)}return t}function MN(e,t){if(!Array.isArray(t))return!1;const l=t.length;if(l!==e.length)return!1;for(let i=0;i<l;i++)if(t[i]!==e[i])return!1;return!0}const Jk=[...pf].reverse(),Wk=pf.length;function eR(e){return t=>Promise.all(t.map(({animation:l,options:i})=>XL(e,l,i)))}function tR(e){let t=eR(e),l=zg(),i=!0;const o=f=>(p,x)=>{var b;const g=Yr(e,x,f==="exit"?(b=e.presenceContext)==null?void 0:b.custom:void 0);if(g){const{transition:w,transitionEnd:N,...E}=g;p={...p,...E,...N}}return p};function u(f){t=f(e)}function d(f){const{props:p}=e,x=EN(e.parent)||{},g=[],b=new Set;let w={},N=1/0;for(let j=0;j<Wk;j++){const A=Jk[j],Z=l[A],M=p[A]!==void 0?p[A]:x[A],S=Z1(M),_=A===f?Z.isActive:null;_===!1&&(N=j);let T=M===x[A]&&M!==p[A]&&S;if(T&&i&&e.manuallyAnimateOnMount&&(T=!1),Z.protectedKeys={...w},!Z.isActive&&_===null||!M&&!Z.prevProp||ao(M)||typeof M=="boolean")continue;if(A==="exit"&&Z.isActive&&_!==!0){Z.prevResolvedValues&&(w={...w,...Z.prevResolvedValues});continue}const V=aR(Z.prevProp,M);let H=V||A===f&&Z.isActive&&!T&&S||j>N&&S,L=!1;const D=Array.isArray(M)?M:[M];let B=D.reduce(o(A),{});_===!1&&(B={});const{prevResolvedValues:K={}}=Z,J={...K,...B},se=q=>{H=!0,b.has(q)&&(L=!0,b.delete(q)),Z.needsAnimating[q]=!0;const I=e.getValue(q);I&&(I.liveStyle=!1)};for(const q in J){const I=B[q],Y=K[q];if(w.hasOwnProperty(q))continue;let X=!1;om(I)&&om(Y)?X=!MN(I,Y):X=I!==Y,X?I!=null?se(q):b.add(q):I!==void 0&&b.has(q)?se(q):Z.protectedKeys[q]=!0}Z.prevProp=M,Z.prevResolvedValues=B,Z.isActive&&(w={...w,...B}),i&&e.blockInitialAnimation&&(H=!1);const le=T&&V;H&&(!le||L)&&g.push(...D.map(q=>{const I={type:A};if(typeof q=="string"&&i&&!le&&e.manuallyAnimateOnMount&&e.parent){const{parent:Y}=e,X=Yr(Y,q);if(Y.enteringChildren&&X){const{delayChildren:k}=X.transition||{};I.delay=Yj(Y.enteringChildren,e,k)}}return{animation:q,options:I}}))}if(b.size){const j={};if(typeof p.initial!="boolean"){const A=Yr(e,Array.isArray(p.initial)?p.initial[0]:p.initial);A&&A.transition&&(j.transition=A.transition)}b.forEach(A=>{const Z=e.getBaseTarget(A),M=e.getValue(A);M&&(M.liveStyle=!0),j[A]=Z??null}),g.push({animation:j})}let E=!!g.length;return i&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(E=!1),i=!1,E?t(g):Promise.resolve()}function h(f,p){var g;if(l[f].isActive===p)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(b=>{var w;return(w=b.animationState)==null?void 0:w.setActive(f,p)}),l[f].isActive=p;const x=d(f);for(const b in l)l[b].protectedKeys={};return x}return{animateChanges:d,setActive:h,setAnimateFunction:u,getState:()=>l,reset:()=>{l=zg()}}}function aR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!MN(t,e):!1}function F0(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zg(){return{animate:F0(!0),whileInView:F0(),whileHover:F0(),whileTap:F0(),whileDrag:F0(),whileFocus:F0(),exit:F0()}}function $g(e,t){e.min=t.min,e.max=t.max}function $a(e,t){$g(e.x,t.x),$g(e.y,t.y)}function qg(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const SN=1e-4,nR=1-SN,rR=1+SN,ZN=.01,sR=0-ZN,lR=0+ZN;function Gt(e){return e.max-e.min}function iR(e,t,l){return Math.abs(e-t)<=l}function Ig(e,t,l,i=.5){e.origin=i,e.originPoint=ot(t.min,t.max,e.origin),e.scale=Gt(l)/Gt(t),e.translate=ot(l.min,l.max,e.origin)-e.originPoint,(e.scale>=nR&&e.scale<=rR||isNaN(e.scale))&&(e.scale=1),(e.translate>=sR&&e.translate<=lR||isNaN(e.translate))&&(e.translate=0)}function y1(e,t,l,i){Ig(e.x,t.x,l.x,i?i.originX:void 0),Ig(e.y,t.y,l.y,i?i.originY:void 0)}function Bg(e,t,l){e.min=l.min+t.min,e.max=e.min+Gt(t)}function oR(e,t,l){Bg(e.x,t.x,l.x),Bg(e.y,t.y,l.y)}function Pg(e,t,l){e.min=t.min-l.min,e.max=e.min+Gt(t)}function Gi(e,t,l){Pg(e.x,t.x,l.x),Pg(e.y,t.y,l.y)}function Ug(e,t,l,i,o){return e-=t,e=Ui(e,1/l,i),o!==void 0&&(e=Ui(e,1/o,i)),e}function cR(e,t=0,l=1,i=.5,o,u=e,d=e){if(sn.test(t)&&(t=parseFloat(t),t=ot(d.min,d.max,t/100)-d.min),typeof t!="number")return;let h=ot(u.min,u.max,i);e===u&&(h-=t),e.min=Ug(e.min,t,l,h,o),e.max=Ug(e.max,t,l,h,o)}function Gg(e,t,[l,i,o],u,d){cR(e,t[l],t[i],t[o],t.scale,u,d)}const uR=["x","scaleX","originX"],dR=["y","scaleY","originY"];function Yg(e,t,l,i){Gg(e.x,t,uR,l?l.x:void 0,i?i.x:void 0),Gg(e.y,t,dR,l?l.y:void 0,i?i.y:void 0)}function Kg(e){return e.translate===0&&e.scale===1}function CN(e){return Kg(e.x)&&Kg(e.y)}function Xg(e,t){return e.min===t.min&&e.max===t.max}function hR(e,t){return Xg(e.x,t.x)&&Xg(e.y,t.y)}function Qg(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function HN(e,t){return Qg(e.x,t.x)&&Qg(e.y,t.y)}function Jg(e){return Gt(e.x)/Gt(e.y)}function Wg(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function en(e){return[e("x"),e("y")]}function mR(e,t,l){let i="";const o=e.x.translate/t.x,u=e.y.translate/t.y,d=(l==null?void 0:l.z)||0;if((o||u||d)&&(i=`translate3d(${o}px, ${u}px, ${d}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),l){const{transformPerspective:p,rotate:x,rotateX:g,rotateY:b,skewX:w,skewY:N}=l;p&&(i=`perspective(${p}px) ${i}`),x&&(i+=`rotate(${x}deg) `),g&&(i+=`rotateX(${g}deg) `),b&&(i+=`rotateY(${b}deg) `),w&&(i+=`skewX(${w}deg) `),N&&(i+=`skewY(${N}deg) `)}const h=e.x.scale*t.x,f=e.y.scale*t.y;return(h!==1||f!==1)&&(i+=`scale(${h}, ${f})`),i||"none"}const VN=["TopLeft","TopRight","BottomLeft","BottomRight"],fR=VN.length,e7=e=>typeof e=="string"?parseFloat(e):e,t7=e=>typeof e=="number"||ge.test(e);function pR(e,t,l,i,o,u){o?(e.opacity=ot(0,l.opacity??1,xR(i)),e.opacityExit=ot(t.opacity??1,0,gR(i))):u&&(e.opacity=ot(t.opacity??1,l.opacity??1,i));for(let d=0;d<fR;d++){const h=`border${VN[d]}Radius`;let f=a7(t,h),p=a7(l,h);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||t7(f)===t7(p)?(e[h]=Math.max(ot(e7(f),e7(p),i),0),(sn.test(p)||sn.test(f))&&(e[h]+="%")):e[h]=p}(t.rotate||l.rotate)&&(e.rotate=ot(t.rotate||0,l.rotate||0,i))}function a7(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const xR=_N(0,.5,jj),gR=_N(.5,.95,_a);function _N(e,t,l){return i=>i<e?0:i>t?1:l(E1(e,t,i))}function vR(e,t,l){const i=It(e)?e:Xr(e);return i.start(of("",i,t,l)),i.animation}function C1(e,t,l,i={passive:!0}){return e.addEventListener(t,l,i),()=>e.removeEventListener(t,l)}const bR=(e,t)=>e.depth-t.depth;class yR{constructor(){this.children=[],this.isDirty=!1}add(t){Um(this.children,t),this.isDirty=!0}remove(t){$i(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(bR),this.isDirty=!1,this.children.forEach(t)}}function wR(e,t){const l=Ut.now(),i=({timestamp:o})=>{const u=o-l;u>=t&&(x0(i),e(u-t))};return tt.setup(i,!0),()=>x0(i)}function ki(e){return It(e)?e.get():e}class AR{constructor(){this.members=[]}add(t){Um(this.members,t);for(let l=this.members.length-1;l>=0;l--){const i=this.members[l];if(i===t||i===this.lead||i===this.prevLead)continue;const o=i.instance;o&&o.isConnected===!1&&i.isPresent!==!1&&!i.snapshot&&$i(this.members,i)}t.scheduleRender()}remove(t){if($i(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(t){const l=this.members.findIndex(o=>t===o);if(l===0)return!1;let i;for(let o=l;o>=0;o--){const u=this.members[o],d=u.instance;if(u.isPresent!==!1&&(!d||d.isConnected!==!1)){i=u;break}}return i?(this.promote(i),!0):!1}promote(t,l){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender();const o=i.options.layoutDependency,u=t.options.layoutDependency;if(!(o!==void 0&&u!==void 0&&o===u)){const f=i.instance;f&&f.isConnected===!1&&!i.snapshot||(t.resumeFrom=i,l&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:h}=t.options;h===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:l,resumingFrom:i}=t;l.onExitComplete&&l.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Ri={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ru=["","X","Y","Z"],jR=1e3;let NR=0;function su(e,t,l,i){const{latestValues:o}=t;o[e]&&(l[e]=o[e],t.setStaticValue(e,0),i&&(i[e]=0))}function TN(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const l=Wj(t);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:o,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(l,"transform",tt,!(o||u))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&TN(i)}function LN({attachResizeListener:e,defaultParent:t,measureScroll:l,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(d={},h=t==null?void 0:t()){this.id=NR++,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(SR),this.nodes.forEach(VR),this.nodes.forEach(_R),this.nodes.forEach(ZR)},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 yR)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new Ym),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=ff(d)&&!Mk(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 x,g=0;const b=()=>this.root.updateBlockedByResize=!1;tt.read(()=>{g=window.innerWidth}),e(d,()=>{const w=window.innerWidth;w!==g&&(g=w,this.root.updateBlockedByResize=!0,x&&x(),x=wR(b,250),Ri.hasAnimatedSinceResize&&(Ri.hasAnimatedSinceResize=!1,this.nodes.forEach(s7)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||f)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:g,hasRelativeLayoutChanged:b,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const N=this.options.transition||p.getDefaultTransition()||DR,{onLayoutAnimationStart:E,onLayoutAnimationComplete:j}=p.getProps(),A=!this.targetLayout||!HN(this.targetLayout,w),Z=!g&&b;if(this.options.layoutRoot||this.resumeFrom||Z||g&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const M={...lf(N,"layout"),onPlay:E,onComplete:j};(p.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M),this.setAnimationOrigin(x,Z)}else g||s7(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(),x0(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(TR),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&&TN(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let x=0;x<this.path.length;x++){const g=this.path[x];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:h,layout: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(n7);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(r7);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(HR),this.nodes.forEach(ER),this.nodes.forEach(MR)):this.nodes.forEach(r7),this.clearAllSnapshots();const h=Ut.now();zt.delta=ln(0,1e3/60,h-zt.timestamp),zt.timestamp=h,zt.isProcessing=!0,X2.update.process(zt),X2.preRender.process(zt),X2.render.process(zt),zt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,hf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(CR),this.sharedNodes.forEach(LR)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Gt(this.snapshot.measuredBox.x)&&!Gt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Ct(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(h=!1),h&&this.instance){const 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(!o)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!CN(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,x=p!==this.prevTransformTemplateValue;d&&this.instance&&(h||z0(this.latestValues)||x)&&(o(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)),OR(f),{animationId:this.root.animationId,measuredBox:h,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:d}=this.options;if(!d)return Ct();const h=d.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(FR))){const{scroll:x}=this.root;x&&(Pr(h.x,x.offset.x),Pr(h.y,x.offset.y))}return h}removeElementScroll(d){var f;const h=Ct();if($a(h,d),(f=this.scroll)!=null&&f.wasRoot)return h;for(let p=0;p<this.path.length;p++){const x=this.path[p],{scroll:g,options:b}=x;x!==this.root&&g&&b.layoutScroll&&(g.wasRoot&&$a(h,d),Pr(h.x,g.offset.x),Pr(h.y,g.offset.y))}return h}applyTransform(d,h=!1){const f=Ct();$a(f,d);for(let p=0;p<this.path.length;p++){const x=this.path[p];!h&&x.options.layoutScroll&&x.scroll&&x!==x.root&&Ur(f,{x:-x.scroll.offset.x,y:-x.scroll.offset.y}),z0(x.latestValues)&&Ur(f,x.latestValues)}return z0(this.latestValues)&&Ur(f,this.latestValues),f}removeTransform(d){const h=Ct();$a(h,d);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!z0(p.latestValues))continue;pm(p.latestValues)&&p.updateSnapshot();const x=Ct(),g=p.measurePageBox();$a(x,g),Yg(h,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,x)}return z0(this.latestValues)&&Yg(h,this.latestValues),h}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==zt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var w;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const 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:x,layoutId:g}=this.options;if(!this.layout||!(x||g))return;this.resolvedRelativeTargetAt=zt.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ct(),this.targetWithTransforms=Ct()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),oR(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):$a(this.target,this.layout.layoutBox),gN(this.target,this.targetDelta)):$a(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||pm(this.parent.latestValues)||xN(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=Ct(),this.relativeTargetOrigin=Ct(),Gi(this.relativeTargetOrigin,h,f),$a(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===zt.timestamp&&(f=!1),f)return;const{layout:p,layoutId:x}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||x))return;$a(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,b=this.treeScale.y;Dk(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Ct());const{target:w}=d;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(qg(this.prevProjectionDelta.x,this.projectionDelta.x),qg(this.prevProjectionDelta.y,this.projectionDelta.y)),y1(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==b||!Wg(this.projectionDelta.x,this.prevProjectionDelta.x)||!Wg(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=Br(),this.projectionDelta=Br(),this.projectionDeltaWithTransform=Br()}setAnimationOrigin(d,h=!1){const f=this.snapshot,p=f?f.latestValues:{},x={...this.latestValues},g=Br();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const b=Ct(),w=f?f.source:void 0,N=this.layout?this.layout.source:void 0,E=w!==N,j=this.getStack(),A=!j||j.members.length<=1,Z=!!(E&&!A&&this.options.crossfade===!0&&!this.path.some(RR));this.animationProgress=0;let M;this.mixTargetDelta=S=>{const _=S/1e3;l7(g.x,d.x,_),l7(g.y,d.y,_),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gi(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kR(this.relativeTarget,this.relativeTargetOrigin,b,_),M&&hR(this.relativeTarget,M)&&(this.isProjectionDirty=!1),M||(M=Ct()),$a(M,this.relativeTarget)),E&&(this.animationValues=x,pR(x,p,this.latestValues,_,Z,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},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&&(x0(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tt.update(()=>{Ri.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Xr(0)),this.motionValue.jump(0,!1),this.currentAnimation=vR(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:x=>{this.mixTargetDelta(x),d.onUpdate&&d.onUpdate(x)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jR),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:f,layout:p,latestValues:x}=d;if(!(!h||!f||!p)){if(this!==d&&this.layout&&p&&kN(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||Ct();const g=Gt(this.layout.layoutBox.x);f.x.min=d.target.x.min,f.x.max=f.x.min+g;const b=Gt(this.layout.layoutBox.y);f.y.min=d.target.y.min,f.y.max=f.y.min+b}$a(h,f),Ur(h,x),y1(this.projectionDeltaWithTransform,this.layoutCorrected,h,x)}}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&&su("z",d,p,this.animationValues);for(let x=0;x<ru.length;x++)su(`rotate${ru[x]}`,d,p,this.animationValues),su(`skew${ru[x]}`,d,p,this.animationValues);d.render();for(const x in p)d.setStaticValue(x,p[x]),this.animationValues&&(this.animationValues[x]=p[x]);d.scheduleRender()}applyProjectionStyles(d,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=ki(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=ki(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!z0(this.latestValues)&&(d.transform=f?f({},""):"none",this.hasProjected=!1);return}d.visibility="";const x=p.animationValues||p.latestValues;this.applyTransformsToTarget();let g=mR(this.projectionDeltaWithTransform,this.treeScale,x);f&&(g=f(x,g)),d.transform=g;const{x:b,y:w}=this.projectionDelta;d.transformOrigin=`${b.origin*100}% ${w.origin*100}% 0`,p.animationValues?d.opacity=p===this?x.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:d.opacity=p===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const N in gm){if(x[N]===void 0)continue;const{correct:E,applyTo:j,isCSSVariable:A}=gm[N],Z=g==="none"?x[N]:E(x[N],p);if(j){const M=j.length;for(let S=0;S<M;S++)d[j[S]]=Z}else A?this.options.visualElement.renderState.vars[N]=Z:d[N]=Z}this.options.layoutId&&(d.pointerEvents=p===this?ki(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(n7),this.root.sharedNodes.clear()}}}function ER(e){e.updateLayout()}function MR(e){var l;const t=((l=e.resumeFrom)==null?void 0:l.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:o}=e.layout,{animationType:u}=e.options,d=t.source!==e.layout.source;u==="size"?en(g=>{const b=d?t.measuredBox[g]:t.layoutBox[g],w=Gt(b);b.min=i[g].min,b.max=b.min+w}):kN(u,t.layoutBox,i)&&en(g=>{const b=d?t.measuredBox[g]:t.layoutBox[g],w=Gt(i[g]);b.max=b.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+w)});const h=Br();y1(h,i,t.layoutBox);const f=Br();d?y1(f,e.applyTransform(o,!0),t.measuredBox):y1(f,i,t.layoutBox);const p=!CN(h);let x=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:b,layout:w}=g;if(b&&w){const N=Ct();Gi(N,t.layoutBox,b.layoutBox);const E=Ct();Gi(E,i,w.layoutBox),HN(N,E)||(x=!0),g.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=N,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:f,layoutDelta:h,hasLayoutChanged:p,hasRelativeLayoutChanged:x})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function SR(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 ZR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function CR(e){e.clearSnapshot()}function n7(e){e.clearMeasurements()}function r7(e){e.isLayoutDirty=!1}function HR(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function s7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function VR(e){e.resolveTargetDelta()}function _R(e){e.calcProjection()}function TR(e){e.resetSkewAndRotation()}function LR(e){e.removeLeadSnapshot()}function l7(e,t,l){e.translate=ot(t.translate,0,l),e.scale=ot(t.scale,1,l),e.origin=t.origin,e.originPoint=t.originPoint}function i7(e,t,l,i){e.min=ot(t.min,l.min,i),e.max=ot(t.max,l.max,i)}function kR(e,t,l,i){i7(e.x,t.x,l.x,i),i7(e.y,t.y,l.y,i)}function RR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const DR={duration:.45,ease:[.4,0,.1,1]},o7=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),c7=o7("applewebkit/")&&!o7("chrome/")?Math.round:_a;function u7(e){e.min=c7(e.min),e.max=c7(e.max)}function OR(e){u7(e.x),u7(e.y)}function kN(e,t,l){return e==="position"||e==="preserve-aspect"&&!iR(Jg(t),Jg(l),.2)}function FR(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const zR=LN({attachResizeListener:(e,t)=>C1(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),lu={current:void 0},RN=LN({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lu.current){const e=new zR({});e.mount(window),e.setOptions({layoutScroll:!0}),lu.current=e}return lu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),bf=r.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function d7(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $R(...e){return t=>{let l=!1;const i=e.map(o=>{const u=d7(o,t);return!l&&typeof u=="function"&&(l=!0),u});if(l)return()=>{for(let o=0;o<i.length;o++){const u=i[o];typeof u=="function"?u():d7(e[o],null)}}}}function qR(...e){return r.useCallback($R(...e),e)}class IR extends r.Component{getSnapshotBeforeUpdate(t){const l=this.props.childRef.current;if(l&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const i=l.offsetParent,o=mm(i)&&i.offsetWidth||0,u=mm(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=o-d.width-d.left,d.bottom=u-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function BR({children:e,isPresent:t,anchorX:l,anchorY:i,root:o,pop:u}){var b;const d=r.useId(),h=r.useRef(null),f=r.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=r.useContext(bf),x=((b=e.props)==null?void 0:b.ref)??(e==null?void 0:e.ref),g=qR(h,x);return r.useInsertionEffect(()=>{const{width:w,height:N,top:E,left:j,right:A,bottom:Z}=f.current;if(t||u===!1||!h.current||!w||!N)return;const M=l==="left"?`left: ${j}`:`right: ${A}`,S=i==="bottom"?`bottom: ${Z}`:`top: ${E}`;h.current.dataset.motionPopId=d;const _=document.createElement("style");p&&(_.nonce=p);const T=o??document.head;return T.appendChild(_),_.sheet&&_.sheet.insertRule(`
|
|
62
|
-
[data-motion-pop-id="${d}"] {
|
|
63
|
-
position: absolute !important;
|
|
64
|
-
width: ${w}px !important;
|
|
65
|
-
height: ${N}px !important;
|
|
66
|
-
${M}px !important;
|
|
67
|
-
${S}px !important;
|
|
68
|
-
}
|
|
69
|
-
`),()=>{T.contains(_)&&T.removeChild(_)}},[t]),a.jsx(IR,{isPresent:t,childRef:h,sizeRef:f,pop:u,children:u===!1?e:r.cloneElement(e,{ref:g})})}const PR=({children:e,initial:t,isPresent:l,onExitComplete:i,custom:o,presenceAffectsLayout:u,mode:d,anchorX:h,anchorY:f,root:p})=>{const x=Pm(UR),g=r.useId();let b=!0,w=r.useMemo(()=>(b=!1,{id:g,initial:t,isPresent:l,custom:o,onExitComplete:N=>{x.set(N,!0);for(const E of x.values())if(!E)return;i&&i()},register:N=>(x.set(N,!1),()=>x.delete(N))}),[l,x,i]);return u&&b&&(w={...w}),r.useMemo(()=>{x.forEach((N,E)=>x.set(E,!1))},[l]),r.useEffect(()=>{!l&&!x.size&&i&&i()},[l]),e=a.jsx(BR,{pop:d==="popLayout",isPresent:l,anchorX:h,anchorY:f,root:p,children:e}),a.jsx(to.Provider,{value:w,children:e})};function UR(){return new Map}function DN(e=!0){const t=r.useContext(to);if(t===null)return[!0,null];const{isPresent:l,onExitComplete:i,register:o}=t,u=r.useId();r.useEffect(()=>{if(e)return o(u)},[e]);const d=r.useCallback(()=>e&&i&&i(u),[u,i,e]);return!l&&i?[!1,d]:[!0]}const gi=e=>e.key||"";function h7(e){const t=[];return r.Children.forEach(e,l=>{r.isValidElement(l)&&t.push(l)}),t}const pa=({children:e,custom:t,initial:l=!0,onExitComplete:i,presenceAffectsLayout:o=!0,mode:u="sync",propagate:d=!1,anchorX:h="left",anchorY:f="top",root:p})=>{const[x,g]=DN(d),b=r.useMemo(()=>h7(e),[e]),w=d&&!x?[]:b.map(gi),N=r.useRef(!0),E=r.useRef(b),j=Pm(()=>new Map),A=r.useRef(new Set),[Z,M]=r.useState(b),[S,_]=r.useState(b);dj(()=>{N.current=!1,E.current=b;for(let H=0;H<S.length;H++){const L=gi(S[H]);w.includes(L)?(j.delete(L),A.current.delete(L)):j.get(L)!==!0&&j.set(L,!1)}},[S,w.length,w.join("-")]);const T=[];if(b!==Z){let H=[...b];for(let L=0;L<S.length;L++){const D=S[L],B=gi(D);w.includes(B)||(H.splice(L,0,D),T.push(D))}return u==="wait"&&T.length&&(H=T),_(h7(H)),M(b),null}const{forceRender:V}=r.useContext(Bm);return a.jsx(a.Fragment,{children:S.map(H=>{const L=gi(H),D=d&&!x?!1:b===S||w.includes(L),B=()=>{if(A.current.has(L))return;if(A.current.add(L),j.has(L))j.set(L,!0);else return;let K=!0;j.forEach(J=>{J||(K=!1)}),K&&(V==null||V(),_(E.current),d&&(g==null||g()),i&&i())};return a.jsx(PR,{isPresent:D,initial:!N.current||l?void 0:!1,custom:t,presenceAffectsLayout:o,mode:u,root:p,onExitComplete:D?void 0:B,anchorX:h,anchorY:f,children:H},L)})})},ON=r.createContext({strict:!1}),m7={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 f7=!1;function GR(){if(f7)return;const e={};for(const t in m7)e[t]={isEnabled:l=>m7[t].some(i=>!!l[i])};mN(e),f7=!0}function FN(){return GR(),Tk()}function YR(e){const t=FN();for(const l in e)t[l]={...t[l],...e[l]};mN(t)}const KR=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 Yi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||KR.has(e)}let zN=e=>!Yi(e);function XR(e){typeof e=="function"&&(zN=t=>t.startsWith("on")?!Yi(t):e(t))}try{XR(require("@emotion/is-prop-valid").default)}catch{}function QR(e,t,l){const i={};for(const o in e)o==="values"&&typeof e.values=="object"||(zN(o)||l===!0&&Yi(o)||!t&&!Yi(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}const ro=r.createContext({});function JR(e,t){if(no(e)){const{initial:l,animate:i}=e;return{initial:l===!1||Z1(l)?l:void 0,animate:Z1(i)?i:void 0}}return e.inherit!==!1?t:{}}function WR(e){const{initial:t,animate:l}=JR(e,r.useContext(ro));return r.useMemo(()=>({initial:t,animate:l}),[p7(t),p7(l)])}function p7(e){return Array.isArray(e)?e.join(" "):e}const yf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function $N(e,t,l){for(const i in t)!It(t[i])&&!yN(i,l)&&(e[i]=t[i])}function eD({transformTemplate:e},t){return r.useMemo(()=>{const l=yf();return gf(l,t,e),Object.assign({},l.vars,l.style)},[t])}function tD(e,t){const l=e.style||{},i={};return $N(i,l,e),Object.assign(i,eD(e,t)),i}function aD(e,t){const l={},i=tD(e,t);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 qN=()=>({...yf(),attrs:{}});function nD(e,t,l,i){const o=r.useMemo(()=>{const u=qN();return wN(u,t,jN(i),e.transformTemplate,e.style),{...u.attrs,style:{...u.style}}},[t]);if(e.style){const u={};$N(u,e.style,e),o.style={...u,...o.style}}return o}const rD=["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 wf(e){return typeof e!="string"||e.includes("-")?!1:!!(rD.indexOf(e)>-1||/[A-Z]/u.test(e))}function sD(e,t,l,{latestValues:i},o,u=!1,d){const f=(d??wf(e)?nD:aD)(t,i,o,e),p=QR(t,typeof e=="string",u),x=e!==r.Fragment?{...p,...f,ref:l}:{},{children:g}=t,b=r.useMemo(()=>It(g)?g.get():g,[g]);return r.createElement(e,{...x,children:b})}function lD({scrapeMotionValuesFromProps:e,createRenderState:t},l,i,o){return{latestValues:iD(l,i,o,e),renderState:t()}}function iD(e,t,l,i){const o={},u=i(e,{});for(const b in u)o[b]=ki(u[b]);let{initial:d,animate:h}=e;const f=no(e),p=dN(e);t&&p&&!f&&e.inherit!==!1&&(d===void 0&&(d=t.initial),h===void 0&&(h=t.animate));let x=l?l.initial===!1:!1;x=x||d===!1;const g=x?h:d;if(g&&typeof g!="boolean"&&!ao(g)){const b=Array.isArray(g)?g:[g];for(let w=0;w<b.length;w++){const N=cf(e,b[w]);if(N){const{transitionEnd:E,transition:j,...A}=N;for(const Z in A){let M=A[Z];if(Array.isArray(M)){const S=x?M.length-1:0;M=M[S]}M!==null&&(o[Z]=M)}for(const Z in E)o[Z]=E[Z]}}}return o}const IN=e=>(t,l)=>{const i=r.useContext(ro),o=r.useContext(to),u=()=>lD(e,t,i,o);return l?u():Pm(u)},oD=IN({scrapeMotionValuesFromProps:vf,createRenderState:yf}),cD=IN({scrapeMotionValuesFromProps:NN,createRenderState:qN}),uD=Symbol.for("motionComponentSymbol");function dD(e,t,l){const i=r.useRef(l);r.useInsertionEffect(()=>{i.current=l});const o=r.useRef(null);return r.useCallback(u=>{var h;u&&((h=e.onMount)==null||h.call(e,u)),t&&(u?t.mount(u):t.unmount());const d=i.current;if(typeof d=="function")if(u){const f=d(u);typeof f=="function"&&(o.current=f)}else o.current?(o.current(),o.current=null):d(u);else d&&(d.current=u)},[t])}const BN=r.createContext({});function zr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function hD(e,t,l,i,o,u){var M,S;const{visualElement:d}=r.useContext(ro),h=r.useContext(ON),f=r.useContext(to),p=r.useContext(bf),x=p.reducedMotion,g=p.skipAnimations,b=r.useRef(null),w=r.useRef(!1);i=i||h.renderer,!b.current&&i&&(b.current=i(e,{visualState:t,parent:d,props:l,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:x,skipAnimations:g,isSVG:u}),w.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const N=b.current,E=r.useContext(BN);N&&!N.projection&&o&&(N.type==="html"||N.type==="svg")&&mD(b.current,l,o,E);const j=r.useRef(!1);r.useInsertionEffect(()=>{N&&j.current&&N.update(l,f)});const A=l[Jj],Z=r.useRef(!!A&&!((M=window.MotionHandoffIsComplete)!=null&&M.call(window,A))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,A)));return dj(()=>{w.current=!0,N&&(j.current=!0,window.MotionIsMounted=!0,N.updateFeatures(),N.scheduleRenderMicrotask(),Z.current&&N.animationState&&N.animationState.animateChanges())}),r.useEffect(()=>{N&&(!Z.current&&N.animationState&&N.animationState.animateChanges(),Z.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)==null||_.call(window,A)}),Z.current=!1),N.enteringChildren=void 0)}),N}function mD(e,t,l,i){const{layoutId:o,layout:u,drag:d,dragConstraints:h,layoutScroll:f,layoutRoot:p,layoutCrossfade:x}=t;e.projection=new l(e.latestValues,t["data-framer-portal-id"]?void 0:PN(e.parent)),e.projection.setOptions({layoutId:o,layout:u,alwaysMeasureLayout:!!d||h&&zr(h),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,crossfade:x,layoutScroll:f,layoutRoot:p})}function PN(e){if(e)return e.options.allowProjection!==!1?e.projection:PN(e.parent)}function iu(e,{forwardMotionProps:t=!1,type:l}={},i,o){i&&YR(i);const u=l?l==="svg":wf(e),d=u?cD:oD;function h(p,x){let g;const b={...r.useContext(bf),...p,layoutId:fD(p)},{isStatic:w}=b,N=WR(p),E=d(p,w);if(!w&&uj){pD();const j=xD(b);g=j.MeasureLayout,N.visualElement=hD(e,E,b,o,j.ProjectionNode,u)}return a.jsxs(ro.Provider,{value:N,children:[g&&N.visualElement?a.jsx(g,{visualElement:N.visualElement,...b}):null,sD(e,p,dD(E,N.visualElement,x),E,w,t,u)]})}h.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=r.forwardRef(h);return f[uD]=e,f}function fD({layoutId:e}){const t=r.useContext(Bm).id;return t&&e!==void 0?t+"-"+e:e}function pD(e,t){r.useContext(ON).strict}function xD(e){const t=FN(),{drag:l,layout:i}=t;if(!l&&!i)return{};const o={...l,...i};return{MeasureLayout:l!=null&&l.isEnabled(e)||i!=null&&i.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function gD(e,t){if(typeof Proxy>"u")return iu;const l=new Map,i=(u,d)=>iu(u,d,e,t),o=(u,d)=>i(u,d);return new Proxy(o,{get:(u,d)=>d==="create"?i:(l.has(d)||l.set(d,iu(d,void 0,e,t)),l.get(d))})}const vD=(e,t)=>t.isSVG??wf(e)?new Xk(t):new Bk(t,{allowProjection:e!==r.Fragment});class bD extends g0{constructor(t){super(t),t.animationState||(t.animationState=tR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ao(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:l}=this.node.prevProps||{};t!==l&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let yD=0;class wD extends g0{constructor(){super(...arguments),this.id=yD++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:l}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t);l&&!t&&o.then(()=>{l(this.id)})}mount(){const{register:t,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const AD={animation:{Feature:bD},exit:{Feature:wD}};function F1(e){return{point:{x:e.pageX,y:e.pageY}}}const jD=e=>t=>mf(t)&&e(t,F1(t));function w1(e,t,l,i){return C1(e,t,jD(l),i)}const UN=({current:e})=>e?e.ownerDocument.defaultView:null,x7=(e,t)=>Math.abs(e-t);function ND(e,t){const l=x7(e.x,t.x),i=x7(e.y,t.y);return Math.sqrt(l**2+i**2)}const g7=new Set(["auto","scroll"]);class GN{constructor(t,l,{transformPagePoint:i,contextWindow:o=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=cu(this.lastMoveEventInfo,this.history),N=this.startEvent!==null,E=ND(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!N&&!E)return;const{point:j}=w,{timestamp:A}=zt;this.history.push({...j,timestamp:A});const{onStart:Z,onMove:M}=this.handlers;N||(Z&&Z(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),M&&M(this.lastMoveEvent,w)},this.handlePointerMove=(w,N)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=ou(N,this.transformPagePoint),tt.update(this.updatePoint,!0)},this.handlePointerUp=(w,N)=>{this.end();const{onEnd:E,onSessionEnd:j,resumeAnimation:A}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const Z=cu(w.type==="pointercancel"?this.lastMoveEventInfo:ou(N,this.transformPagePoint),this.history);this.startEvent&&E&&E(w,Z),j&&j(w,Z)},!mf(t))return;this.dragSnapToOrigin=u,this.handlers=l,this.transformPagePoint=i,this.distanceThreshold=d,this.contextWindow=o||window;const f=F1(t),p=ou(f,this.transformPagePoint),{point:x}=p,{timestamp:g}=zt;this.history=[{...x,timestamp:g}];const{onSessionStart:b}=l;b&&b(t,cu(p,this.history)),this.removeListeners=R1(w1(this.contextWindow,"pointermove",this.handlePointerMove),w1(this.contextWindow,"pointerup",this.handlePointerUp),w1(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(t){let l=t.parentElement;for(;l;){const i=getComputedStyle(l);(g7.has(i.overflowX)||g7.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(t){const l=this.scrollPositions.get(t);if(!l)return;const i=t===window,o=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},u={x:o.x-l.x,y:o.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(t,o),tt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),x0(this.updatePoint)}}function ou(e,t){return t?{point:t(e.point)}:e}function v7(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cu({point:e},t){return{point:e,delta:v7(e,YN(t)),offset:v7(e,ED(t)),velocity:MD(t,.1)}}function ED(e){return e[0]}function YN(e){return e[e.length-1]}function MD(e,t){if(e.length<2)return{x:0,y:0};let l=e.length-1,i=null;const o=YN(e);for(;l>=0&&(i=e[l],!(o.timestamp-i.timestamp>Ia(t)));)l--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&o.timestamp-i.timestamp>Ia(t)*2&&(i=e[1]);const u=Va(o.timestamp-i.timestamp);if(u===0)return{x:0,y:0};const d={x:(o.x-i.x)/u,y:(o.y-i.y)/u};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function SD(e,{min:t,max:l},i){return t!==void 0&&e<t?e=i?ot(t,e,i.min):Math.max(e,t):l!==void 0&&e>l&&(e=i?ot(l,e,i.max):Math.min(e,l)),e}function b7(e,t,l){return{min:t!==void 0?e.min+t:void 0,max:l!==void 0?e.max+l-(e.max-e.min):void 0}}function ZD(e,{top:t,left:l,bottom:i,right:o}){return{x:b7(e.x,l,o),y:b7(e.y,t,i)}}function y7(e,t){let l=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([l,i]=[i,l]),{min:l,max:i}}function CD(e,t){return{x:y7(e.x,t.x),y:y7(e.y,t.y)}}function HD(e,t){let l=.5;const i=Gt(e),o=Gt(t);return o>i?l=E1(t.min,t.max-i,e.min):i>o&&(l=E1(e.min,e.max-o,t.min)),ln(0,1,l)}function VD(e,t){const l={};return t.min!==void 0&&(l.min=t.min-e.min),t.max!==void 0&&(l.max=t.max-e.min),l}const vm=.35;function _D(e=vm){return e===!1?e=0:e===!0&&(e=vm),{x:w7(e,"left","right"),y:w7(e,"top","bottom")}}function w7(e,t,l){return{min:A7(e,t),max:A7(e,l)}}function A7(e,t){return typeof e=="number"?e:e[t]||0}const TD=new WeakMap;class LD{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ct(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:l=!1,distanceThreshold:i}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const u=g=>{l&&this.snapToCursor(F1(g).point),this.stopAnimation()},d=(g,b)=>{const{drag:w,dragPropagation:N,onDragStart:E}=this.getProps();if(w&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ck(w),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),en(A=>{let Z=this.getAxisMotionValue(A).get()||0;if(sn.test(Z)){const{projection:M}=this.visualElement;if(M&&M.layout){const S=M.layout.layoutBox[A];S&&(Z=Gt(S)*(parseFloat(Z)/100))}}this.originPoint[A]=Z}),E&&tt.update(()=>E(g,b),!1,!0),cm(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},h=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b;const{dragPropagation:w,dragDirectionLock:N,onDirectionLock:E,onDrag:j}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:A}=b;if(N&&this.currentDirection===null){this.currentDirection=RD(A),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",b.point,A),this.updateAxis("y",b.point,A),this.visualElement.render(),j&&tt.update(()=>j(g,b),!1,!0)},f=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b,this.stop(g,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:g}=this.getProps();(g||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:x}=this.getProps();this.panSession=new GN(t,{onSessionStart:u,onStart:d,onMove:h,onSessionEnd:f,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:x,distanceThreshold:i,contextWindow:UN(this.visualElement),element:this.visualElement.current})}stop(t,l){const i=t||this.latestPointerEvent,o=l||this.latestPanInfo,u=this.isDragging;if(this.cancel(),!u||!o||!i)return;const{velocity:d}=o;this.startAnimation(d);const{onDragEnd:h}=this.getProps();h&&tt.postRender(()=>h(i,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:l}=this.visualElement;t&&(t.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(t,l,i){const{drag:o}=this.getProps();if(!i||!vi(t,o,this.currentDirection))return;const u=this.getAxisMotionValue(t);let d=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(d=SD(d,this.constraints[t],this.elastic[t])),u.set(d)}resolveConstraints(){var u;const{dragConstraints:t,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,o=this.constraints;t&&zr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=ZD(i.layoutBox,t):this.constraints=!1,this.elastic=_D(l),o!==this.constraints&&!zr(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&en(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=VD(i.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:l}=this.getProps();if(!t||!zr(t))return!1;const i=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const u=Ok(i,o.root,this.visualElement.getTransformPagePoint());let d=CD(o.layout.layoutBox,u);if(l){const h=l(kk(d));this.hasMutatedConstraints=!!h,h&&(d=pN(h))}return d}startAnimation(t){const{drag:l,dragMomentum:i,dragElastic:o,dragTransition:u,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),f=this.constraints||{},p=en(x=>{if(!vi(x,l,this.currentDirection))return;let g=f&&f[x]||{};d&&(g={min:0,max:0});const b=o?200:1e6,w=o?40:1e7,N={type:"inertia",velocity:i?t[x]:0,bounceStiffness:b,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...u,...g};return this.startAxisValueAnimation(x,N)});return Promise.all(p).then(h)}startAxisValueAnimation(t,l){const i=this.getAxisMotionValue(t);return cm(this.visualElement,t),i.start(of(t,i,0,l,this.visualElement,!1))}stopAnimation(){en(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const l=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),o=i[l];return o||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){en(l=>{const{drag:i}=this.getProps();if(!vi(l,i,this.currentDirection))return;const{projection:o}=this.visualElement,u=this.getAxisMotionValue(l);if(o&&o.layout){const{min:d,max:h}=o.layout.layoutBox[l],f=u.get()||0;u.set(t[l]-ot(d,h,.5)+f)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:l}=this.getProps(),{projection:i}=this.visualElement;if(!zr(l)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};en(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const f=h.get();o[d]=HD({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(),en(d=>{if(!vi(d,t,null))return;const h=this.getAxisMotionValue(d),{min:f,max:p}=this.constraints[d];h.set(ot(f,p,o[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;TD.set(this.visualElement,this);const t=this.visualElement.current,l=w1(t,"pointerdown",p=>{const{drag:x,dragListener:g=!0}=this.getProps(),b=p.target,w=b!==t&&pk(b);x&&g&&!w&&this.start(p)});let i;const o=()=>{const{dragConstraints:p}=this.getProps();zr(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),i||(i=kD(t,p.current,()=>this.scalePositionWithinConstraints())))},{projection:u}=this.visualElement,d=u.addEventListener("measure",o);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),tt.read(o);const h=C1(window,"resize",()=>this.scalePositionWithinConstraints()),f=u.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:x})=>{this.isDragging&&x&&(en(g=>{const b=this.getAxisMotionValue(g);b&&(this.originPoint[g]+=p[g].translate,b.set(b.get()+p[g].translate))}),this.visualElement.render())}));return()=>{h(),l(),d(),f&&f(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:u=!1,dragElastic:d=vm,dragMomentum:h=!0}=t;return{...t,drag:l,dragDirectionLock:i,dragPropagation:o,dragConstraints:u,dragElastic:d,dragMomentum:h}}}function j7(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function kD(e,t,l){const i=Hg(e,j7(l)),o=Hg(t,j7(l));return()=>{i(),o()}}function vi(e,t,l){return(t===!0||t===e)&&(l===null||l===e)}function RD(e,t=10){let l=null;return Math.abs(e.y)>t?l="y":Math.abs(e.x)>t&&(l="x"),l}class DD extends g0{constructor(t){super(t),this.removeGroupControls=_a,this.removeListeners=_a,this.controls=new LD(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_a}update(){const{dragControls:t}=this.node.getProps(),{dragControls:l}=this.node.prevProps||{};t!==l&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const uu=e=>(t,l)=>{e&&tt.update(()=>e(t,l),!1,!0)};class OD extends g0{constructor(){super(...arguments),this.removePointerDownListener=_a}onPointerDown(t){this.session=new GN(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:UN(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:l,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:uu(t),onStart:uu(l),onMove:uu(i),onEnd:(u,d)=>{delete this.session,o&&tt.postRender(()=>o(u,d))}}}mount(){this.removePointerDownListener=w1(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let du=!1;class FD extends r.Component{componentDidMount(){const{visualElement:t,layoutGroup:l,switchLayoutGroup:i,layoutId:o}=this.props,{projection:u}=t;u&&(l.group&&l.group.add(u),i&&i.register&&o&&i.register(u),du&&u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ri.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:l,visualElement:i,drag:o,isPresent:u}=this.props,{projection:d}=i;return d&&(d.isPresent=u,t.layoutDependency!==l&&d.setOptions({...d.options,layoutDependency:l}),du=!0,o||t.layoutDependency!==l||l===void 0||t.isPresent!==u?d.willUpdate():this.safeToRemove(),t.isPresent!==u&&(u?d.promote():d.relegate()||tt.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),hf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:l,switchLayoutGroup:i}=this.props,{projection:o}=t;du=!0,o&&(o.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function KN(e){const[t,l]=DN(),i=r.useContext(Bm);return a.jsx(FD,{...e,layoutGroup:i,switchLayoutGroup:r.useContext(BN),isPresent:t,safeToRemove:l})}const zD={pan:{Feature:OD},drag:{Feature:DD,ProjectionNode:RN,MeasureLayout:KN}};function N7(e,t,l){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",l==="Start");const o="onHover"+l,u=i[o];u&&tt.postRender(()=>u(t,F1(t)))}class $D extends g0{mount(){const{current:t}=this.node;t&&(this.unmount=dk(t,(l,i)=>(N7(this.node,i,"Start"),o=>N7(this.node,o,"End"))))}unmount(){}}class qD extends g0{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=R1(C1(this.node.current,"focus",()=>this.onFocus()),C1(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function E7(e,t,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 o="onTap"+(l==="End"?"":l),u=i[o];u&&tt.postRender(()=>u(t,F1(t)))}class ID extends g0{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:l,propagate:i}=this.node.props;this.unmount=gk(t,(o,u)=>(E7(this.node,u,"Start"),(d,{success:h})=>E7(this.node,d,h?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:(i==null?void 0:i.tap)===!1})}unmount(){}}const bm=new WeakMap,hu=new WeakMap,BD=e=>{const t=bm.get(e.target);t&&t(e)},PD=e=>{e.forEach(BD)};function UD({root:e,...t}){const l=e||document;hu.has(l)||hu.set(l,{});const i=hu.get(l),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(PD,{root:e,...t})),i[o]}function GD(e,t,l){const i=UD(t);return bm.set(e,l),i.observe(e),()=>{bm.delete(e),i.unobserve(e)}}const YD={some:0,all:1};class KD extends g0{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:l,margin:i,amount:o="some",once:u}=t,d={root:l?l.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:YD[o]},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:x,onViewportLeave:g}=this.node.getProps(),b=p?x:g;b&&b(f)};return GD(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:l}=this.node;["amount","margin","root"].some(XD(t,l))&&this.startObserver()}unmount(){}}function XD({viewport:e={}},{viewport:t={}}={}){return l=>e[l]!==t[l]}const QD={inView:{Feature:KD},tap:{Feature:ID},focus:{Feature:qD},hover:{Feature:$D}},JD={layout:{ProjectionNode:RN,MeasureLayout:KN}},WD={...AD,...QD,...zD,...JD},Ve=gD(WD,vD),eO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,20H64A20,20,0,0,0,44,40V60H32a12,12,0,0,0,0,24H44v32H32a12,12,0,0,0,0,24H44v32H32a12,12,0,0,0,0,24H44v20a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V40A20,20,0,0,0,208,20Zm-4,192H68V44H204ZM100.8,171.37a48,48,0,0,1,70.4,0,12,12,0,0,0,17.6-16.32,72,72,0,0,0-19.21-14.68,44,44,0,1,0-67.19,0,72.12,72.12,0,0,0-19.2,14.68,12,12,0,0,0,17.6,16.32ZM116,112a20,20,0,1,1,20,20A20,20,0,0,1,116,112Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H64a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V40A8,8,0,0,0,208,32ZM136,144a32,32,0,1,1,32-32A32,32,0,0,1,136,144Z",opacity:"0.2"}),r.createElement("path",{d:"M83.19,174.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,163,141.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,81.6,163.2,8,8,0,0,0,83.19,174.4ZM112,112a24,24,0,1,1,24,24A24,24,0,0,1,112,112Zm96-88H64A16,16,0,0,0,48,40V64H32a8,8,0,0,0,0,16H48v40H32a8,8,0,0,0,0,16H48v40H32a8,8,0,0,0,0,16H48v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V40A16,16,0,0,0,208,24Zm0,192H64V40H208Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,112a24,24,0,1,1-24-24A24,24,0,0,1,160,112Zm64-72V216a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V192H32a8,8,0,0,1,0-16H48V136H32a8,8,0,0,1,0-16H48V80H32a8,8,0,0,1,0-16H48V40A16,16,0,0,1,64,24H208A16,16,0,0,1,224,40ZM190.4,163.2A67.88,67.88,0,0,0,163,141.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,81.6,163.2a8,8,0,1,0,12.8,9.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M159.11,142.13a38,38,0,1,0-46.22,0A65.75,65.75,0,0,0,83.2,164.4a6,6,0,0,0,9.6,7.2,54,54,0,0,1,86.4,0,6,6,0,0,0,9.6-7.2A65.75,65.75,0,0,0,159.11,142.13ZM110,112a26,26,0,1,1,26,26A26,26,0,0,1,110,112Zm98-86H64A14,14,0,0,0,50,40V66H32a6,6,0,0,0,0,12H50v44H32a6,6,0,0,0,0,12H50v44H32a6,6,0,0,0,0,12H50v26a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V40A14,14,0,0,0,208,26Zm2,190a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M83.19,174.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,163,141.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,81.6,163.2,8,8,0,0,0,83.19,174.4ZM112,112a24,24,0,1,1,24,24A24,24,0,0,1,112,112Zm96-88H64A16,16,0,0,0,48,40V64H32a8,8,0,0,0,0,16H48v40H32a8,8,0,0,0,0,16H48v40H32a8,8,0,0,0,0,16H48v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V40A16,16,0,0,0,208,24Zm0,192H64V40H208Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M154.7,142.75a36,36,0,1,0-37.4,0A63.61,63.61,0,0,0,84.8,165.6a4,4,0,0,0,6.4,4.8,56,56,0,0,1,89.6,0,4,4,0,0,0,6.4-4.8A63.65,63.65,0,0,0,154.7,142.75ZM108,112a28,28,0,1,1,28,28A28,28,0,0,1,108,112ZM208,28H64A12,12,0,0,0,52,40V68H32a4,4,0,0,0,0,8H52v48H32a4,4,0,0,0,0,8H52v48H32a4,4,0,0,0,0,8H52v28a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V40A12,12,0,0,0,208,28Zm4,188a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z"}))]]),tO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232.49,160.49l-48,48a12,12,0,0,1-17-17L195,164H128A108.12,108.12,0,0,1,20,56a12,12,0,0,1,24,0,84.09,84.09,0,0,0,84,84h67l-27.52-27.51a12,12,0,0,1,17-17l48,48A12,12,0,0,1,232.49,160.49Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,152l-48,48V104Z",opacity:"0.2"}),r.createElement("path",{d:"M229.66,146.34l-48-48A8,8,0,0,0,168,104v40H128A88.1,88.1,0,0,1,40,56a8,8,0,0,0-16,0A104.11,104.11,0,0,0,128,160h40v40a8,8,0,0,0,13.66,5.66l48-48A8,8,0,0,0,229.66,146.34ZM184,180.69V123.31L212.69,152Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.66,157.66l-48,48A8,8,0,0,1,168,200V160H128A104.11,104.11,0,0,1,24,56a8,8,0,0,1,16,0,88.1,88.1,0,0,0,88,88h40V104a8,8,0,0,1,13.66-5.66l48,48A8,8,0,0,1,229.66,157.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228.24,156.24l-48,48a6,6,0,0,1-8.48-8.48L209.51,158H128A102.12,102.12,0,0,1,26,56a6,6,0,0,1,12,0,90.1,90.1,0,0,0,90,90h81.51l-37.75-37.76a6,6,0,0,1,8.48-8.48l48,48A6,6,0,0,1,228.24,156.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.66,157.66l-48,48a8,8,0,0,1-11.32-11.32L204.69,160H128A104.11,104.11,0,0,1,24,56a8,8,0,0,1,16,0,88.1,88.1,0,0,0,88,88h76.69l-34.35-34.34a8,8,0,0,1,11.32-11.32l48,48A8,8,0,0,1,229.66,157.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M226.83,154.83l-48,48a4,4,0,0,1-5.66-5.66L214.34,156H128A100.11,100.11,0,0,1,28,56a4,4,0,0,1,8,0,92.1,92.1,0,0,0,92,92h86.34l-41.17-41.17a4,4,0,0,1,5.66-5.66l48,48A4,4,0,0,1,226.83,154.83Z"}))]]),aO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),r.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"}))]]),nO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),r.createElement("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]),rO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128l-72,72V56Z",opacity:"0.2"}),r.createElement("path",{d:"M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z"}))]]),sO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,64V168L88,64Z",opacity:"0.2"}),r.createElement("path",{d:"M192,56H88a8,8,0,0,0-5.66,13.66L128.69,116,58.34,186.34a8,8,0,0,0,11.32,11.32L140,127.31l46.34,46.35A8,8,0,0,0,200,168V64A8,8,0,0,0,192,56Zm-8,92.69-38.34-38.34h0L107.31,72H184Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,64V168a8,8,0,0,1-13.66,5.66L140,127.31,69.66,197.66a8,8,0,0,1-11.32-11.32L128.69,116,82.34,69.66A8,8,0,0,1,88,56H192A8,8,0,0,1,200,64Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M196,64V168a4,4,0,0,1-8,0V73.66L66.83,194.83a4,4,0,0,1-5.66-5.66L182.34,68H88a4,4,0,0,1,0-8H192A4,4,0,0,1,196,64Z"}))]]),lO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),r.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z"}))]]),iO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.49,184.49l-32,32a12,12,0,0,1-17-17L179,188H48a12,12,0,0,1,0-24H179l-11.52-11.51a12,12,0,0,1,17-17l32,32A12,12,0,0,1,216.49,184.49Zm-145-64a12,12,0,0,0,17-17L77,92H208a12,12,0,0,0,0-24H77L88.49,56.49a12,12,0,0,0-17-17l-32,32a12,12,0,0,0,0,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,80v96H48V80Z",opacity:"0.2"}),r.createElement("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M42.34,85.66a8,8,0,0,1,0-11.32l32-32A8,8,0,0,1,88,48V72H208a8,8,0,0,1,0,16H88v24a8,8,0,0,1-13.66,5.66Zm171.32,84.68-32-32A8,8,0,0,0,168,144v24H48a8,8,0,0,0,0,16H168v24a8,8,0,0,0,13.66,5.66l32-32A8,8,0,0,0,213.66,170.34Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48-8.48L193.51,182H48a6,6,0,0,1,0-12H193.51l-21.75-21.76a6,6,0,0,1,8.48-8.48ZM75.76,116.24a6,6,0,0,0,8.48-8.48L62.49,86H208a6,6,0,0,0,0-12H62.49L84.24,52.24a6,6,0,0,0-8.48-8.48l-32,32a6,6,0,0,0,0,8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M210.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66-5.66L198.34,180H48a4,4,0,0,1,0-8H198.34l-25.17-25.17a4,4,0,0,1,5.66-5.66ZM77.17,114.83a4,4,0,0,0,5.66-5.66L57.66,84H208a4,4,0,0,0,0-8H57.66L82.83,50.83a4,4,0,0,0-5.66-5.66l-32,32a4,4,0,0,0,0,5.66Z"}))]]),oO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M225.81,74.65A11.86,11.86,0,0,1,220.3,76a12,12,0,0,1-10.67-6.47,90.1,90.1,0,0,0-32-35.38,12,12,0,1,1,12.8-20.29,115.25,115.25,0,0,1,40.54,44.62A12,12,0,0,1,225.81,74.65ZM46.37,69.53a90.1,90.1,0,0,1,32-35.38A12,12,0,1,0,65.6,13.86,115.25,115.25,0,0,0,25.06,58.48a12,12,0,0,0,5.13,16.17A11.86,11.86,0,0,0,35.7,76,12,12,0,0,0,46.37,69.53Zm173.51,98.35A20,20,0,0,1,204,200H171.81a44,44,0,0,1-87.62,0H52a20,20,0,0,1-15.91-32.12c7.17-9.33,15.73-26.62,15.88-55.94A76,76,0,0,1,204,112C204.15,141.26,212.71,158.55,219.88,167.88ZM147.6,200H108.4a20,20,0,0,0,39.2,0Zm48.74-24c-8.16-13-16.19-33.57-16.34-63.94A52,52,0,1,0,76,112c-.15,30.42-8.18,51-16.34,64Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,192H48a8,8,0,0,1-6.88-12C47.71,168.6,56,147.81,56,112a72,72,0,0,1,144,0c0,35.82,8.3,56.6,14.9,68A8,8,0,0,1,208,192Z",opacity:"0.2"}),r.createElement("path",{d:"M224,71.1a8,8,0,0,1-10.78-3.42,94.13,94.13,0,0,0-33.46-36.91,8,8,0,1,1,8.54-13.54,111.46,111.46,0,0,1,39.12,43.09A8,8,0,0,1,224,71.1ZM35.71,72a8,8,0,0,0,7.1-4.32A94.13,94.13,0,0,1,76.27,30.77a8,8,0,1,0-8.54-13.54A111.46,111.46,0,0,0,28.61,60.32,8,8,0,0,0,35.71,72Zm186.1,103.94A16,16,0,0,1,208,200H167.2a40,40,0,0,1-78.4,0H48a16,16,0,0,1-13.79-24.06C43.22,160.39,48,138.28,48,112a80,80,0,0,1,160,0C208,138.27,212.78,160.38,221.81,175.94ZM150.62,200H105.38a24,24,0,0,0,45.24,0ZM208,184c-10.64-18.27-16-42.49-16-72a64,64,0,0,0-128,0c0,29.52-5.38,53.74-16,72Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,71.1a8,8,0,0,1-10.78-3.42,94.13,94.13,0,0,0-33.46-36.91,8,8,0,1,1,8.54-13.54,111.46,111.46,0,0,1,39.12,43.09A8,8,0,0,1,224,71.1ZM35.71,72a8,8,0,0,0,7.1-4.32A94.13,94.13,0,0,1,76.27,30.77a8,8,0,1,0-8.54-13.54A111.46,111.46,0,0,0,28.61,60.32,8,8,0,0,0,35.71,72Zm186.1,103.94A16,16,0,0,1,208,200H167.2a40,40,0,0,1-78.4,0H48a16,16,0,0,1-13.79-24.06C43.22,160.39,48,138.28,48,112a80,80,0,0,1,160,0C208,138.27,212.78,160.38,221.81,175.94ZM150.62,200H105.38a24,24,0,0,0,45.24,0Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M223.05,69.33A6,6,0,0,1,215,66.76,96,96,0,0,0,180.8,29.08a6,6,0,0,1,6.4-10.15,109.26,109.26,0,0,1,38.41,42.31A6,6,0,0,1,223.05,69.33ZM41,66.76A96,96,0,0,1,75.2,29.08a6,6,0,0,0-6.4-10.15A109.26,109.26,0,0,0,30.39,61.24,6,6,0,1,0,41,66.76Zm179,110.18A14,14,0,0,1,208,198h-42.5a38,38,0,0,1-75,0H48a14,14,0,0,1-12.06-21.06C45.13,161.09,50,138.63,50,112a78,78,0,0,1,156,0C206,139,210.74,160.86,220.08,176.94ZM153.29,198H102.71a26,26,0,0,0,50.58,0Zm56.42-15C199.29,165,194,141.15,194,112a66,66,0,0,0-132,0c0,29.16-5.29,53-15.71,71a2,2,0,0,0,0,2,1.9,1.9,0,0,0,1.7,1H208a1.9,1.9,0,0,0,1.7-1A2,2,0,0,0,209.71,183Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,71.1a8,8,0,0,1-10.78-3.42,94.13,94.13,0,0,0-33.46-36.91,8,8,0,1,1,8.54-13.54,111.46,111.46,0,0,1,39.12,43.09A8,8,0,0,1,224,71.1ZM35.71,72a8,8,0,0,0,7.1-4.32A94.13,94.13,0,0,1,76.27,30.77a8,8,0,1,0-8.54-13.54A111.46,111.46,0,0,0,28.61,60.32,8,8,0,0,0,35.71,72Zm186.1,103.94A16,16,0,0,1,208,200H167.2a40,40,0,0,1-78.4,0H48a16,16,0,0,1-13.79-24.06C43.22,160.39,48,138.28,48,112a80,80,0,0,1,160,0C208,138.27,212.78,160.38,221.81,175.94ZM150.62,200H105.38a24,24,0,0,0,45.24,0ZM208,184c-10.64-18.27-16-42.49-16-72a64,64,0,0,0-128,0c0,29.52-5.38,53.74-16,72Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222.13,67.55a3.94,3.94,0,0,1-1.84.45,4,4,0,0,1-3.55-2.16,99.41,99.41,0,0,0-34.87-38.46,4,4,0,1,1,4.26-6.76,107.34,107.34,0,0,1,37.71,41.54A4,4,0,0,1,222.13,67.55ZM39.26,65.84A99.41,99.41,0,0,1,74.13,27.38a4,4,0,0,0-4.26-6.76A107.34,107.34,0,0,0,32.16,62.16a4,4,0,0,0,1.71,5.39,3.94,3.94,0,0,0,1.84.45A4,4,0,0,0,39.26,65.84ZM218.36,178A12,12,0,0,1,208,196H163.77a36,36,0,0,1-71.54,0H48A12,12,0,0,1,37.64,178C47.17,161.56,52,139.37,52,112a76,76,0,0,1,152,0C204,139.36,208.83,161.55,218.36,178ZM155.71,196H100.29a28,28,0,0,0,55.42,0Zm55.73-14C201.19,164.34,196,140.79,196,112a68,68,0,0,0-136,0c0,28.8-5.19,52.34-15.44,70a4,4,0,0,0,0,4A3.89,3.89,0,0,0,48,188H208a3.89,3.89,0,0,0,3.43-2A4,4,0,0,0,211.44,182Z"}))]]),cO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,44H160a43.86,43.86,0,0,0-32,13.85A43.86,43.86,0,0,0,96,44H24A12,12,0,0,0,12,56V200a12,12,0,0,0,12,12H96a20,20,0,0,1,20,20,12,12,0,0,0,24,0,20,20,0,0,1,20-20h72a12,12,0,0,0,12-12V56A12,12,0,0,0,232,44ZM96,188H36V68H96a20,20,0,0,1,20,20V192.81A43.79,43.79,0,0,0,96,188Zm124,0H160a43.71,43.71,0,0,0-20,4.83V88a20,20,0,0,1,20-20h60Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,56V200H160a32,32,0,0,0-32,32,32,32,0,0,0-32-32H24V56H96a32,32,0,0,1,32,32,32,32,0,0,1,32-32Z",opacity:"0.2"}),r.createElement("path",{d:"M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,56V200a8,8,0,0,1-8,8H160a24,24,0,0,0-24,23.94,7.9,7.9,0,0,1-5.12,7.55A8,8,0,0,1,120,232a24,24,0,0,0-24-24H24a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H88a32,32,0,0,1,32,32v87.73a8.17,8.17,0,0,0,7.47,8.25,8,8,0,0,0,8.53-8V80a32,32,0,0,1,32-32h64A8,8,0,0,1,240,56Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,50H160a38,38,0,0,0-32,17.55A38,38,0,0,0,96,50H24a6,6,0,0,0-6,6V200a6,6,0,0,0,6,6H96a26,26,0,0,1,26,26,6,6,0,0,0,12,0,26,26,0,0,1,26-26h72a6,6,0,0,0,6-6V56A6,6,0,0,0,232,50ZM96,194H30V62H96a26,26,0,0,1,26,26V204.31A37.86,37.86,0,0,0,96,194Zm130,0H160a37.87,37.87,0,0,0-26,10.32V88a26,26,0,0,1,26-26h66Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,52H160a36,36,0,0,0-32,19.54A36,36,0,0,0,96,52H24a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H96a28,28,0,0,1,28,28,4,4,0,0,0,8,0,28,28,0,0,1,28-28h72a4,4,0,0,0,4-4V56A4,4,0,0,0,232,52ZM96,196H28V60H96a28,28,0,0,1,28,28V209.4A35.93,35.93,0,0,0,96,196Zm132,0H160a35.94,35.94,0,0,0-28,13.41V88a28,28,0,0,1,28-28h68Z"}))]]),uO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M252,124a60.14,60.14,0,0,0-32-53.08,52,52,0,0,0-92-32.11A52,52,0,0,0,36,70.92a60,60,0,0,0,0,106.14,52,52,0,0,0,92,32.13,52,52,0,0,0,92-32.13A60.05,60.05,0,0,0,252,124ZM88,204a28,28,0,0,1-26.85-20.07c1,0,1.89.07,2.85.07h8a12,12,0,0,0,0-24H64A36,36,0,0,1,52,90.05a12,12,0,0,0,8-11.32V72a28,28,0,0,1,56,0v60.18a51.61,51.61,0,0,0-7.2-3.85,12,12,0,1,0-9.6,22A28,28,0,0,1,88,204Zm104-44h-8a12,12,0,0,0,0,24h8c1,0,1.9,0,2.85-.07a28,28,0,1,1-38-33.61,12,12,0,1,0-9.6-22,51.61,51.61,0,0,0-7.2,3.85V72a28,28,0,0,1,56,0v6.73a12,12,0,0,0,8,11.32,36,36,0,0,1-12,70Zm16-44a12,12,0,0,1-12,12,40,40,0,0,1-40-40V84a12,12,0,0,1,24,0v4a16,16,0,0,0,16,16A12,12,0,0,1,208,116ZM100,88a40,40,0,0,1-40,40,12,12,0,0,1,0-24A16,16,0,0,0,76,88V84a12,12,0,0,1,24,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,124a48,48,0,0,1-32,45.27h0V176a40,40,0,0,1-80,0,40,40,0,0,1-80,0v-6.73h0a48,48,0,0,1,0-90.54V72a40,40,0,0,1,80,0,40,40,0,0,1,80,0v6.73A48,48,0,0,1,240,124Z",opacity:"0.2"}),r.createElement("path",{d:"M248,124a56.11,56.11,0,0,0-32-50.61V72a48,48,0,0,0-88-26.49A48,48,0,0,0,40,72v1.39a56,56,0,0,0,0,101.2V176a48,48,0,0,0,88,26.49A48,48,0,0,0,216,176v-1.41A56.09,56.09,0,0,0,248,124ZM88,208a32,32,0,0,1-31.81-28.56A55.87,55.87,0,0,0,64,180h8a8,8,0,0,0,0-16H64A40,40,0,0,1,50.67,86.27,8,8,0,0,0,56,78.73V72a32,32,0,0,1,64,0v68.26A47.8,47.8,0,0,0,88,128a8,8,0,0,0,0,16,32,32,0,0,1,0,64Zm104-44h-8a8,8,0,0,0,0,16h8a55.87,55.87,0,0,0,7.81-.56A32,32,0,1,1,168,144a8,8,0,0,0,0-16,47.8,47.8,0,0,0-32,12.26V72a32,32,0,0,1,64,0v6.73a8,8,0,0,0,5.33,7.54A40,40,0,0,1,192,164Zm16-52a8,8,0,0,1-8,8h-4a36,36,0,0,1-36-36V80a8,8,0,0,1,16,0v4a20,20,0,0,0,20,20h4A8,8,0,0,1,208,112ZM60,120H56a8,8,0,0,1,0-16h4A20,20,0,0,0,80,84V80a8,8,0,0,1,16,0v4A36,36,0,0,1,60,120Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212,76V72a44,44,0,0,0-74.86-31.31,3.93,3.93,0,0,0-1.14,2.8v88.72a4,4,0,0,0,6.2,3.33A47.67,47.67,0,0,1,167.68,128a8.18,8.18,0,0,1,8.31,7.58,8,8,0,0,1-8,8.42,32,32,0,0,0-32,32v33.88a4,4,0,0,0,1.49,3.12,47.92,47.92,0,0,0,74.21-17.16,4,4,0,0,0-4.49-5.56A68.06,68.06,0,0,1,192,192h-7.73a8.18,8.18,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h8a51.6,51.6,0,0,0,24-5.88v0A52,52,0,0,0,212,76Zm-12,36h-4a36,36,0,0,1-36-36V72a8,8,0,0,1,16,0v4a20,20,0,0,0,20,20h4a8,8,0,0,1,0,16ZM88,28A44.05,44.05,0,0,0,44,72v4a52,52,0,0,0-4,94.12h0A51.6,51.6,0,0,0,64,176h7.73A8.18,8.18,0,0,1,80,183.47,8,8,0,0,1,72,192H64a67.48,67.48,0,0,1-15.21-1.73,4,4,0,0,0-4.5,5.55A47.93,47.93,0,0,0,118.51,213a4,4,0,0,0,1.49-3.12V176a32,32,0,0,0-32-32,8,8,0,0,1-8-8.42A8.18,8.18,0,0,1,88.32,128a47.67,47.67,0,0,1,25.48,7.54,4,4,0,0,0,6.2-3.33V43.49a4,4,0,0,0-1.14-2.81A43.85,43.85,0,0,0,88,28Zm8,48a36,36,0,0,1-36,36H56a8,8,0,0,1,0-16h4A20,20,0,0,0,80,76V72a8,8,0,0,1,16,0Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M246,124a54.13,54.13,0,0,0-32-49.33V72a46,46,0,0,0-86-22.67A46,46,0,0,0,42,72v2.67a54,54,0,0,0,0,98.63V176a46,46,0,0,0,86,22.67A46,46,0,0,0,214,176v-2.7A54.07,54.07,0,0,0,246,124ZM88,210a34,34,0,0,1-34-32.94A53.67,53.67,0,0,0,64,178h8a6,6,0,0,0,0-12H64A42,42,0,0,1,50,84.39a6,6,0,0,0,4-5.66V72a34,34,0,0,1,68,0v73.05A45.89,45.89,0,0,0,88,130a6,6,0,0,0,0,12,34,34,0,0,1,0,68Zm104-44h-8a6,6,0,0,0,0,12h8a53.67,53.67,0,0,0,10-.94A34,34,0,1,1,168,142a6,6,0,0,0,0-12,45.89,45.89,0,0,0-34,15.05V72a34,34,0,0,1,68,0v6.73a6,6,0,0,0,4,5.66A42,42,0,0,1,192,166Zm14-54a6,6,0,0,1-6,6h-4a34,34,0,0,1-34-34V80a6,6,0,0,1,12,0v4a22,22,0,0,0,22,22h4A6,6,0,0,1,206,112ZM60,118H56a6,6,0,0,1,0-12h4A22,22,0,0,0,82,84V80a6,6,0,0,1,12,0v4A34,34,0,0,1,60,118Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M248,124a56.11,56.11,0,0,0-32-50.61V72a48,48,0,0,0-88-26.49A48,48,0,0,0,40,72v1.39a56,56,0,0,0,0,101.2V176a48,48,0,0,0,88,26.49A48,48,0,0,0,216,176v-1.41A56.09,56.09,0,0,0,248,124ZM88,208a32,32,0,0,1-31.81-28.56A55.87,55.87,0,0,0,64,180h8a8,8,0,0,0,0-16H64A40,40,0,0,1,50.67,86.27,8,8,0,0,0,56,78.73V72a32,32,0,0,1,64,0v68.26A47.8,47.8,0,0,0,88,128a8,8,0,0,0,0,16,32,32,0,0,1,0,64Zm104-44h-8a8,8,0,0,0,0,16h8a55.87,55.87,0,0,0,7.81-.56A32,32,0,1,1,168,144a8,8,0,0,0,0-16,47.8,47.8,0,0,0-32,12.26V72a32,32,0,0,1,64,0v6.73a8,8,0,0,0,5.33,7.54A40,40,0,0,1,192,164Zm16-52a8,8,0,0,1-8,8h-4a36,36,0,0,1-36-36V80a8,8,0,0,1,16,0v4a20,20,0,0,0,20,20h4A8,8,0,0,1,208,112ZM60,120H56a8,8,0,0,1,0-16h4A20,20,0,0,0,80,84V80a8,8,0,0,1,16,0v4A36,36,0,0,1,60,120Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M244,124a52.1,52.1,0,0,0-32-48V72a44,44,0,0,0-84-18.3A44,44,0,0,0,44,72v4a52,52,0,0,0,0,96v4a44,44,0,0,0,84,18.3A44,44,0,0,0,212,176v-4A52.07,52.07,0,0,0,244,124ZM88,212a36,36,0,0,1-36-36v-1.41A52.13,52.13,0,0,0,64,176h8a4,4,0,0,0,0-8H64A44,44,0,0,1,49.33,82.5,4,4,0,0,0,52,78.73V72a36,36,0,0,1,72,0v78.75A44,44,0,0,0,88,132a4,4,0,0,0,0,8,36,36,0,0,1,0,72Zm104-44h-8a4,4,0,0,0,0,8h8a52.13,52.13,0,0,0,12-1.41V176a36,36,0,1,1-36-36,4,4,0,0,0,0-8,44,44,0,0,0-36,18.75V72a36,36,0,0,1,72,0v6.73a4,4,0,0,0,2.67,3.77A44,44,0,0,1,192,168Zm12-56a4,4,0,0,1-4,4h-4a32,32,0,0,1-32-32V80a4,4,0,0,1,8,0v4a24,24,0,0,0,24,24h4A4,4,0,0,1,204,112ZM92,84a32,32,0,0,1-32,32H56a4,4,0,0,1,0-8h4A24,24,0,0,0,84,84V80a4,4,0,0,1,8,0Z"}))]]),dO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,24V84H44V60ZM44,196V108H212v88Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,56V96H32V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"}),r.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V90H38V56A2,2,0,0,1,40,54ZM216,202H40a2,2,0,0,1-2-2V102H218v98A2,2,0,0,1,216,202Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V92H36V56A4,4,0,0,1,40,52ZM216,204H40a4,4,0,0,1-4-4V100H220V200A4,4,0,0,1,216,204Z"}))]]),hO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,204H228V96a20,20,0,0,0-20-20H172V32a20,20,0,0,0-28.45-18.12l-104,48.54A20.06,20.06,0,0,0,28,80.55V204H16a12,12,0,0,0,0,24H240a12,12,0,0,0,0-24ZM204,100V204H172V100ZM52,83.09,148,38.3V204H52ZM132,112v12a12,12,0,0,1-24,0V112a12,12,0,0,1,24,0Zm-40,0v12a12,12,0,0,1-24,0V112a12,12,0,0,1,24,0Zm0,52v12a12,12,0,0,1-24,0V164a12,12,0,0,1,24,0Zm40,0v12a12,12,0,0,1-24,0V164a12,12,0,0,1,24,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M136,32V216H40V85.35a8,8,0,0,1,3.56-6.66l80-53.33A8,8,0,0,1,136,32Z",opacity:"0.2"}),r.createElement("path",{d:"M240,208H224V96a16,16,0,0,0-16-16H144V32a16,16,0,0,0-24.88-13.32L39.12,72A16,16,0,0,0,32,85.34V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM208,96V208H144V96ZM48,85.34,128,32V208H48ZM112,112v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm-32,0v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm0,56v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Zm32,0v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M239.73,208H224V96a16,16,0,0,0-16-16H164a4,4,0,0,0-4,4V208H144V32.41a16.43,16.43,0,0,0-6.16-13,16,16,0,0,0-18.72-.69L39.12,72A16,16,0,0,0,32,85.34V208H16.27A8.18,8.18,0,0,0,8,215.47,8,8,0,0,0,16,224H240a8,8,0,0,0,8-8.53A8.18,8.18,0,0,0,239.73,208ZM76,184a8,8,0,0,1-8.53,8A8.18,8.18,0,0,1,60,183.72V168.27A8.19,8.19,0,0,1,67.47,160,8,8,0,0,1,76,168Zm0-56a8,8,0,0,1-8.53,8A8.19,8.19,0,0,1,60,127.72V112.27A8.19,8.19,0,0,1,67.47,104,8,8,0,0,1,76,112Zm40,56a8,8,0,0,1-8.53,8,8.18,8.18,0,0,1-7.47-8.26V168.27a8.19,8.19,0,0,1,7.47-8.26,8,8,0,0,1,8.53,8Zm0-56a8,8,0,0,1-8.53,8,8.19,8.19,0,0,1-7.47-8.26V112.27a8.19,8.19,0,0,1,7.47-8.26,8,8,0,0,1,8.53,8Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,210H222V96a14,14,0,0,0-14-14H142V32a14,14,0,0,0-21.77-11.64l-80,53.33A14,14,0,0,0,34,85.34V210H16a6,6,0,0,0,0,12H240a6,6,0,0,0,0-12ZM208,94a2,2,0,0,1,2,2V210H142V94ZM46,85.34a2,2,0,0,1,.89-1.66l80-53.34A2,2,0,0,1,130,32V210H46ZM110,112v16a6,6,0,0,1-12,0V112a6,6,0,0,1,12,0Zm-32,0v16a6,6,0,0,1-12,0V112a6,6,0,0,1,12,0Zm0,56v16a6,6,0,0,1-12,0V168a6,6,0,0,1,12,0Zm32,0v16a6,6,0,0,1-12,0V168a6,6,0,0,1,12,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,208H224V96a16,16,0,0,0-16-16H144V32a16,16,0,0,0-24.88-13.32L39.12,72A16,16,0,0,0,32,85.34V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM208,96V208H144V96ZM48,85.34,128,32V208H48ZM112,112v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm-32,0v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm0,56v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Zm32,0v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,212H220V96a12,12,0,0,0-12-12H140V32a12,12,0,0,0-18.66-10l-80,53.33a12,12,0,0,0-5.34,10V212H16a4,4,0,0,0,0,8H240a4,4,0,0,0,0-8ZM208,92a4,4,0,0,1,4,4V212H140V92ZM44,85.34A4,4,0,0,1,45.78,82l80-53.33A4,4,0,0,1,132,32V212H44ZM108,112v16a4,4,0,0,1-8,0V112a4,4,0,0,1,8,0Zm-32,0v16a4,4,0,0,1-8,0V112a4,4,0,0,1,8,0Zm0,56v16a4,4,0,0,1-8,0V168a4,4,0,0,1,8,0Zm32,0v16a4,4,0,0,1-8,0V168a4,4,0,0,1,8,0Z"}))]]),mO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),r.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,48H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212Z"}))]]),fO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Zm60-80v56a12,12,0,0,1-24,0V143.32a12,12,0,0,1-9.37-22l16-8A12,12,0,0,1,112,124Zm61.49,33.88L163.9,168H168a12,12,0,0,1,0,24H136a12,12,0,0,1-8.71-20.25L155.45,142a4,4,0,0,0,.55-2,4,4,0,0,0-7.47-2,12,12,0,0,1-20.78-12A28,28,0,0,1,180,140a27.77,27.77,0,0,1-5.64,16.86A10.63,10.63,0,0,1,173.49,157.88Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),r.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-96-88v64a8,8,0,0,1-16,0V132.94l-4.42,2.22a8,8,0,0,1-7.16-14.32l16-8A8,8,0,0,1,112,120Zm59.16,30.45L152,176h16a8,8,0,0,1,0,16H136a8,8,0,0,1-6.4-12.8l28.78-38.37A8,8,0,1,0,145.07,132a8,8,0,1,1-13.85-8A24,24,0,0,1,176,136,23.76,23.76,0,0,1,171.16,150.45Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM112,184a8,8,0,0,1-16,0V132.94l-4.42,2.22a8,8,0,0,1-7.16-14.32l16-8A8,8,0,0,1,112,120Zm56-8a8,8,0,0,1,0,16H136a8,8,0,0,1-6.4-12.8l28.78-38.37A8,8,0,1,0,145.07,132a8,8,0,1,1-13.85-8A24,24,0,0,1,176,136a23.76,23.76,0,0,1-4.84,14.45L152,176ZM48,80V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Zm-98-90v64a6,6,0,0,1-12,0V129.71l-7.32,3.66a6,6,0,1,1-5.36-10.74l16-8A6,6,0,0,1,110,120Zm59.57,29.25L148,178h20a6,6,0,0,1,0,12H136a6,6,0,0,1-4.8-9.6L160,142a10,10,0,1,0-16.65-11A6,6,0,1,1,133,125a22,22,0,1,1,36.62,24.26Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-96-88v64a8,8,0,0,1-16,0V132.94l-4.42,2.22a8,8,0,0,1-7.16-14.32l16-8A8,8,0,0,1,112,120Zm59.16,30.45L152,176h16a8,8,0,0,1,0,16H136a8,8,0,0,1-6.4-12.8l28.78-38.37A8,8,0,1,0,145.07,132a8,8,0,1,1-13.85-8A24,24,0,0,1,176,136,23.76,23.76,0,0,1,171.16,150.45Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212ZM108,120v64a4,4,0,0,1-8,0V126.47l-10.21,5.11a4,4,0,0,1-3.58-7.16l16-8A4,4,0,0,1,108,120Zm60,28-24,32h24a4,4,0,0,1,0,8H136a4,4,0,0,1-3.2-6.4l28.78-38.37A11.88,11.88,0,0,0,164,136a12,12,0,0,0-22.4-6,4,4,0,0,1-6.92-4A20,20,0,0,1,172,136,19.79,19.79,0,0,1,168,148Z"}))]]),pO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Zm120.49-84.49a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-24-24a12,12,0,0,1,17-17L116,159l39.51-39.52A12,12,0,0,1,172.49,119.51Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),r.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-38.34-85.66a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L116,164.69l42.34-42.35A8,8,0,0,1,169.66,122.34Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM169.66,133.66l-48,48a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L116,164.69l42.34-42.35a8,8,0,0,1,11.32,11.32ZM48,80V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Zm-39.76-86.24a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L116,167.51l43.76-43.75A6,6,0,0,1,168.24,123.76Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-38.34-85.66a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L116,164.69l42.34-42.35A8,8,0,0,1,169.66,122.34Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212Zm-41.17-86.83a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L116,170.34l45.17-45.17A4,4,0,0,1,166.83,125.17Z"}))]]),xO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,52H182.42L170,33.34A12,12,0,0,0,160,28H96a12,12,0,0,0-10,5.34L73.57,52H48A28,28,0,0,0,20,80V192a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V80A28,28,0,0,0,208,52Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H80a12,12,0,0,0,10-5.34L102.42,52h51.15L166,70.66A12,12,0,0,0,176,76h32a4,4,0,0,1,4,4ZM128,84a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,84Zm0,72a24,24,0,1,1,24-24A24,24,0,0,1,128,156Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,64H176L160,40H96L80,64H48A16,16,0,0,0,32,80V192a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V80A16,16,0,0,0,208,64ZM128,168a36,36,0,1,1,36-36A36,36,0,0,1,128,168Z",opacity:"0.2"}),r.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm-44,76a36,36,0,1,1-36-36A36,36,0,0,1,164,132Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,58H179.21L165,36.67A6,6,0,0,0,160,34H96a6,6,0,0,0-5,2.67L76.78,58H48A22,22,0,0,0,26,80V192a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V80A22,22,0,0,0,208,58Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V80A10,10,0,0,1,48,70H80a6,6,0,0,0,5-2.67L99.21,46h57.57L171,67.33A6,6,0,0,0,176,70h32a10,10,0,0,1,10,10ZM128,90a42,42,0,1,0,42,42A42,42,0,0,0,128,90Zm0,72a30,30,0,1,1,30-30A30,30,0,0,1,128,162Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,60H178.13L163.32,37.78A4,4,0,0,0,160,36H96a4,4,0,0,0-3.32,1.78L77.85,60H48A20,20,0,0,0,28,80V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V80A20,20,0,0,0,208,60Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V80A12,12,0,0,1,48,68H80a4,4,0,0,0,3.33-1.78L98.13,44h59.72l14.82,22.22A4,4,0,0,0,176,68h32a12,12,0,0,1,12,12ZM128,92a40,40,0,1,0,40,40A40,40,0,0,0,128,92Zm0,72a32,32,0,1,1,32-32A32,32,0,0,1,128,164Z"}))]]),gO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),r.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),vO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),r.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),bO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,160H48l80-80Z",opacity:"0.2"}),r.createElement("path",{d:"M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z"}))]]),yO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,196h-4V40a12,12,0,0,0-12-12H152a12,12,0,0,0-12,12V76H96A12,12,0,0,0,84,88v36H48a12,12,0,0,0-12,12v60H32a12,12,0,0,0,0,24H224a12,12,0,0,0,0-24ZM164,52h32V196H164Zm-56,48h32v96H108ZM60,148H84v48H60Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,40V208H152V40Z",opacity:"0.2"}),r.createElement("path",{d:"M224,200h-8V40a8,8,0,0,0-8-8H152a8,8,0,0,0-8,8V80H96a8,8,0,0,0-8,8v40H48a8,8,0,0,0-8,8v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16ZM160,48h40V200H160ZM104,96h40V200H104ZM56,144H88v56H56Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1,0-16h8V136a8,8,0,0,1,8-8H72a8,8,0,0,1,8,8v64H96V88a8,8,0,0,1,8-8h32a8,8,0,0,1,8,8V200h16V40a8,8,0,0,1,8-8h40a8,8,0,0,1,8,8V200h8A8,8,0,0,1,232,208Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,202H214V40a6,6,0,0,0-6-6H152a6,6,0,0,0-6,6V82H96a6,6,0,0,0-6,6v42H48a6,6,0,0,0-6,6v66H32a6,6,0,0,0,0,12H224a6,6,0,0,0,0-12ZM158,46h44V202H158ZM102,94h44V202H102ZM54,142H90v60H54Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,200h-8V40a8,8,0,0,0-8-8H152a8,8,0,0,0-8,8V80H96a8,8,0,0,0-8,8v40H48a8,8,0,0,0-8,8v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16ZM160,48h40V200H160ZM104,96h40V200H104ZM56,144H88v56H56Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,204H212V40a4,4,0,0,0-4-4H152a4,4,0,0,0-4,4V84H96a4,4,0,0,0-4,4v44H48a4,4,0,0,0-4,4v68H32a4,4,0,0,0,0,8H224a4,4,0,0,0,0-8ZM156,44h48V204H156ZM100,92h48V204H100ZM52,140H92v64H52Z"}))]]),wO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,208a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V48a12,12,0,0,1,24,0v99l43.51-43.52a12,12,0,0,1,17,0L128,127l43-43H160a12,12,0,0,1,0-24h40a12,12,0,0,1,12,12v40a12,12,0,0,1-24,0V101l-51.51,51.52a12,12,0,0,1-17,0L96,129,44,181v15H224A12,12,0,0,1,236,208Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,64V208H32V48H208A16,16,0,0,1,224,64Z",opacity:"0.2"}),r.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0V156.69l50.34-50.35a8,8,0,0,1,11.32,0L128,132.69,180.69,80H160a8,8,0,0,1,0-16h40a8,8,0,0,1,8,8v40a8,8,0,0,1-16,0V91.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31l-56,56V200H224A8,8,0,0,1,232,208Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM200,192H56a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v76.69l34.34-34.35a8,8,0,0,1,11.32,0L128,132.69,172.69,88H144a8,8,0,0,1,0-16h48a8,8,0,0,1,8,8v48a8,8,0,0,1-16,0V99.31l-50.34,50.35a8,8,0,0,1-11.32,0L104,131.31l-40,40V176H200a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230,208a6,6,0,0,1-6,6H32a6,6,0,0,1-6-6V48a6,6,0,0,1,12,0V161.52l53.76-53.76a6,6,0,0,1,8.48,0L128,135.51,185.52,78H160a6,6,0,0,1,0-12h40a6,6,0,0,1,6,6v40a6,6,0,0,1-12,0V86.48l-61.76,61.76a6,6,0,0,1-8.48,0L96,120.49l-58,58V202H224A6,6,0,0,1,230,208Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0V156.69l50.34-50.35a8,8,0,0,1,11.32,0L128,132.69,180.69,80H160a8,8,0,0,1,0-16h40a8,8,0,0,1,8,8v40a8,8,0,0,1-16,0V91.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31l-56,56V200H224A8,8,0,0,1,232,208Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,208a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V48a4,4,0,0,1,8,0V166.34l57.17-57.17a4,4,0,0,1,5.66,0L128,138.34,190.34,76H160a4,4,0,0,1,0-8h40a4,4,0,0,1,4,4v40a4,4,0,0,1-8,0V81.66l-65.17,65.17a4,4,0,0,1-5.66,0L96,117.66l-60,60V204H224A4,4,0,0,1,228,208Z"}))]]),AO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,20A108,108,0,0,0,31.85,177.23L21,209.66A20,20,0,0,0,46.34,235l32.43-10.81A108,108,0,1,0,128,20Zm0,192a84,84,0,0,1-42.06-11.27,12,12,0,0,0-6-1.62,12.1,12.1,0,0,0-3.8.62l-29.79,9.93,9.93-29.79a12,12,0,0,0-1-9.81A84,84,0,1,1,128,212Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26A102,102,0,0,0,38.35,176.69L26.73,211.56a14,14,0,0,0,17.71,17.71l34.87-11.62A102,102,0,1,0,128,26Zm0,192a90,90,0,0,1-45.06-12.08,6.09,6.09,0,0,0-3-.81,6.2,6.2,0,0,0-1.9.31L40.65,217.88a2,2,0,0,1-2.53-2.53L50.58,178a6,6,0,0,0-.5-4.91A90,90,0,1,1,128,218Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,28A100,100,0,0,0,40.53,176.5l-11.9,35.69a12,12,0,0,0,15.18,15.18l35.69-11.9A100,100,0,1,0,128,28Zm0,192a92,92,0,0,1-46.07-12.35,4.05,4.05,0,0,0-2-.54,3.93,3.93,0,0,0-1.27.21L41.28,219.78a4,4,0,0,1-5.06-5.06l12.46-37.38a4,4,0,0,0-.33-3.27A92,92,0,1,1,128,220Z"}))]]),jO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M120,128a16,16,0,1,1-16-16A16,16,0,0,1,120,128Zm32-16a16,16,0,1,0,16,16A16,16,0,0,0,152,112Zm84,16A108,108,0,0,1,78.77,224.15L46.34,235A20,20,0,0,1,21,209.66l10.81-32.43A108,108,0,1,1,236,128Zm-24,0A84,84,0,1,0,55.27,170.06a12,12,0,0,1,1,9.81l-9.93,29.79,29.79-9.93a12.1,12.1,0,0,1,3.8-.62,12,12,0,0,1,6,1.62A84,84,0,0,0,212,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-4-1.08,7.85,7.85,0,0,0-2.53.42L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Zm88,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM84,118a10,10,0,1,0,10,10A10,10,0,0,0,84,118Zm88,0a10,10,0,1,0,10,10A10,10,0,0,0,172,118Zm58,10A102,102,0,0,1,79.31,217.65L44.44,229.27a14,14,0,0,1-17.71-17.71l11.62-34.87A102,102,0,1,1,230,128Zm-12,0A90,90,0,1,0,50.08,173.06a6,6,0,0,1,.5,4.91L38.12,215.35a2,2,0,0,0,2.53,2.53L78,205.42a6.2,6.2,0,0,1,1.9-.31,6.09,6.09,0,0,1,3,.81A90,90,0,0,0,218,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM84,116a12,12,0,1,0,12,12A12,12,0,0,0,84,116Zm88,0a12,12,0,1,0,12,12A12,12,0,0,0,172,116Zm60,12A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-16,0A88,88,0,1,0,51.81,172.06a8,8,0,0,1,.66,6.54L40,216,77.4,203.53a7.85,7.85,0,0,1,2.53-.42,8,8,0,0,1,4,1.08A88,88,0,0,0,216,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-52-8a8,8,0,1,0,8,8A8,8,0,0,0,84,120Zm88,0a8,8,0,1,0,8,8A8,8,0,0,0,172,120Zm56,8A100,100,0,0,1,79.5,215.47l-35.69,11.9a12,12,0,0,1-15.18-15.18l11.9-35.69A100,100,0,1,1,228,128Zm-8,0A92,92,0,1,0,48.35,174.07a4,4,0,0,1,.33,3.27L36.22,214.72a4,4,0,0,0,5.06,5.06l37.38-12.46a3.93,3.93,0,0,1,1.27-.21,4.05,4.05,0,0,1,2,.54A92,92,0,0,0,220,128Z"}))]]),NO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.34,187.09A84,84,0,0,0,172.29,68.9,84,84,0,0,0,19.66,139.09l-6.84,23.26a20,20,0,0,0,24.83,24.83l23.26-6.84a83.94,83.94,0,0,0,22.76,6.74,84.06,84.06,0,0,0,111.42,41.26l23.26,6.84a20,20,0,0,0,24.83-24.83ZM62,155.5a11.88,11.88,0,0,0-3.39.49l-20.72,6.09L44,141.35a12,12,0,0,0-.93-9A60,60,0,1,1,67.7,156.92,12,12,0,0,0,62,155.5Zm150.89,24.8a12,12,0,0,0-.93,9l6.09,20.73L197.36,204a12,12,0,0,0-9.06.93A60,60,0,0,1,111,186.63a83.93,83.93,0,0,0,68.55-91.37,60,60,0,0,1,33.38,85Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M231.66,213.73a8,8,0,0,1-9.93,9.93L194,215.5A72.05,72.05,0,0,1,92.06,175.89h0c1.31.07,2.62.11,3.94.11a72,72,0,0,0,67.93-95.88h0A72,72,0,0,1,223.5,186Z",opacity:"0.2"}),r.createElement("path",{d:"M232.07,186.76a80,80,0,0,0-62.5-114.17A80,80,0,1,0,23.93,138.76l-7.27,24.71a16,16,0,0,0,19.87,19.87l24.71-7.27a80.39,80.39,0,0,0,25.18,7.35,80,80,0,0,0,108.34,40.65l24.71,7.27a16,16,0,0,0,19.87-19.86ZM62,159.5a8.28,8.28,0,0,0-2.26.32L32,168l8.17-27.76a8,8,0,0,0-.63-6,64,64,0,1,1,26.26,26.26A8,8,0,0,0,62,159.5Zm153.79,28.73L224,216l-27.76-8.17a8,8,0,0,0-6,.63,64.05,64.05,0,0,1-85.87-24.88A79.93,79.93,0,0,0,174.7,89.71a64,64,0,0,1,41.75,92.48A8,8,0,0,0,215.82,188.23Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232.07,186.76a80,80,0,0,0-62.5-114.17A80,80,0,1,0,23.93,138.76l-7.27,24.71a16,16,0,0,0,19.87,19.87l24.71-7.27a80.39,80.39,0,0,0,25.18,7.35,80,80,0,0,0,108.34,40.65l24.71,7.27a16,16,0,0,0,19.87-19.86Zm-16.25,1.47L224,216l-27.76-8.17a8,8,0,0,0-6,.63,64.05,64.05,0,0,1-85.87-24.88A79.93,79.93,0,0,0,174.7,89.71a64,64,0,0,1,41.75,92.48A8,8,0,0,0,215.82,188.23Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.93,186.58A78,78,0,0,0,168.16,74.42,78,78,0,1,0,26.07,138.58L18.58,164A14,14,0,0,0,36,181.42l25.46-7.49a78,78,0,0,0,26.39,7.63,78,78,0,0,0,106.77,40.37L220,229.42A14,14,0,0,0,237.42,212ZM62,161.5a6.05,6.05,0,0,0-1.69.24l-27.77,8.17a2,2,0,0,1-2.48-2.48l8.17-27.77a6.05,6.05,0,0,0-.47-4.53,66,66,0,1,1,27.08,27.08A6,6,0,0,0,62,161.5Zm155.71,26.16,8.17,27.77a2,2,0,0,1-2.48,2.48l-27.77-8.17a6.06,6.06,0,0,0-4.53.47,66,66,0,0,1-90-28.4,77.92,77.92,0,0,0,71-94.68,66,66,0,0,1,46.07,96A6.05,6.05,0,0,0,217.74,187.66Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232.07,186.76a80,80,0,0,0-62.5-114.17A80,80,0,1,0,23.93,138.76l-7.27,24.71a16,16,0,0,0,19.87,19.87l24.71-7.27a80.39,80.39,0,0,0,25.18,7.35,80,80,0,0,0,108.34,40.65l24.71,7.27a16,16,0,0,0,19.87-19.86ZM62,159.5a8.28,8.28,0,0,0-2.26.32L32,168l8.17-27.76a8,8,0,0,0-.63-6,64,64,0,1,1,26.26,26.26A8,8,0,0,0,62,159.5Zm153.79,28.73L224,216l-27.76-8.17a8,8,0,0,0-6,.63,64.05,64.05,0,0,1-85.87-24.88A79.93,79.93,0,0,0,174.7,89.71a64,64,0,0,1,41.75,92.48A8,8,0,0,0,215.82,188.23Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.79,186.39a76,76,0,0,0-61-110.07A76,76,0,1,0,28.21,138.39L20.5,164.6a12,12,0,0,0,14.9,14.9l26.21-7.71a75.93,75.93,0,0,0,27.6,7.9,76,76,0,0,0,105.18,40.1l26.21,7.71a12,12,0,0,0,14.9-14.9ZM60.9,163.66l-27.76,8.17a4,4,0,0,1-5-5l8.17-27.76a4.07,4.07,0,0,0-.31-3A68,68,0,1,1,63.92,164,4.06,4.06,0,0,0,60.9,163.66Zm165.92,55.16a4,4,0,0,1-4,1l-27.76-8.17a4.07,4.07,0,0,0-3,.31A68,68,0,0,1,98,180a76,76,0,0,0,71.5-95.28A68,68,0,0,1,220,184.08a4.07,4.07,0,0,0-.31,3l8.17,27.76A4,4,0,0,1,226.82,218.82Z"}))]]),EO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),r.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),MO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),SO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z"}))]]),ZO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M172,164a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,164Zm-12-52H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Zm60-64V216a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V48A20,20,0,0,1,56,28H90.53a51.88,51.88,0,0,1,74.94,0H200A20,20,0,0,1,220,48ZM100.29,60h55.42a28,28,0,0,0-55.42,0ZM196,52H178.59A52.13,52.13,0,0,1,180,64v8a12,12,0,0,1-12,12H88A12,12,0,0,1,76,72V64a52.13,52.13,0,0,1,1.41-12H60V212H196Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,48V216a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H96a39.83,39.83,0,0,0-8,24v8h80V64a39.83,39.83,0,0,0-8-24h40A8,8,0,0,1,208,48Z",opacity:"0.2"}),r.createElement("path",{d:"M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,32H163.74a47.92,47.92,0,0,0-71.48,0H56A16,16,0,0,0,40,48V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm-72,0a32,32,0,0,1,32,32H96A32,32,0,0,1,128,32Zm32,128H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M166,152a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,152Zm-6-38H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm54-66V216a14,14,0,0,1-14,14H56a14,14,0,0,1-14-14V48A14,14,0,0,1,56,34H93.17a45.91,45.91,0,0,1,69.66,0H200A14,14,0,0,1,214,48ZM94,64v2h68V64a34,34,0,0,0-68,0ZM202,48a2,2,0,0,0-2-2H170.33A45.77,45.77,0,0,1,174,64v8a6,6,0,0,1-6,6H88a6,6,0,0,1-6-6V64a45.77,45.77,0,0,1,3.67-18H56a2,2,0,0,0-2,2V216a2,2,0,0,0,2,2H200a2,2,0,0,0,2-2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164,152a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,152Zm-4-36H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm52-68V216a12,12,0,0,1-12,12H56a12,12,0,0,1-12-12V48A12,12,0,0,1,56,36H94.08a44,44,0,0,1,67.84,0H200A12,12,0,0,1,212,48ZM92,64v4h72V64a36,36,0,0,0-72,0ZM204,48a4,4,0,0,0-4-4H167.17A43.71,43.71,0,0,1,172,64v8a4,4,0,0,1-4,4H88a4,4,0,0,1-4-4V64a43.71,43.71,0,0,1,4.83-20H56a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H200a4,4,0,0,0,4-4Z"}))]]),CO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"}))]]),HO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M140,80v41.21l34.17,20.5a12,12,0,1,1-12.34,20.58l-40-24A12,12,0,0,1,116,128V80a12,12,0,0,1,24,0ZM128,28A99.38,99.38,0,0,0,57.24,57.34c-4.69,4.74-9,9.37-13.24,14V64a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H72a12,12,0,0,0,0-24H57.77C63,86,68.37,80.22,74.26,74.26a76,76,0,1,1,1.58,109,12,12,0,0,0-16.48,17.46A100,100,0,1,0,128,28Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),r.createElement("path",{d:"M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128A96,96,0,0,1,62.11,197.82a8,8,0,1,1,11-11.64A80,80,0,1,0,71.43,71.43C67.9,75,64.58,78.51,61.35,82L77.66,98.34A8,8,0,0,1,72,112H32a8,8,0,0,1-8-8V64a8,8,0,0,1,13.66-5.66L50,70.7c3.22-3.49,6.54-7,10.06-10.55A96,96,0,0,1,224,128ZM128,72a8,8,0,0,0-8,8v48a8,8,0,0,0,3.88,6.86l40,24a8,8,0,1,0,8.24-13.72L136,123.47V80A8,8,0,0,0,128,72Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M134,80v44.6l37.09,22.25a6,6,0,0,1-6.18,10.3l-40-24A6,6,0,0,1,122,128V80a6,6,0,0,1,12,0Zm-6-46A93.4,93.4,0,0,0,61.51,61.56c-8.58,8.68-16,17-23.51,25.8V64a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H72a6,6,0,0,0,0-12H44.73C52.86,88.29,60.79,79.35,70,70a82,82,0,1,1,1.7,117.62,6,6,0,1,0-8.24,8.72A94,94,0,1,0,128,34Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M132,80v45.74l38.06,22.83a4,4,0,0,1-4.12,6.86l-40-24A4,4,0,0,1,124,128V80a4,4,0,0,1,8,0Zm-4-44A91.42,91.42,0,0,0,62.93,63C53.05,73,44.66,82.47,36,92.86V64a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H72a4,4,0,0,0,0-8H40.47C49.61,89,58.3,79,68.6,68.6a84,84,0,1,1,1.75,120.49,4,4,0,1,0-5.5,5.82A92,92,0,1,0,128,36Z"}))]]),VO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M156,88H100a12,12,0,0,0-12,12v56a12,12,0,0,0,12,12h56a12,12,0,0,0,12-12V100A12,12,0,0,0,156,88Zm-12,56H112V112h32Zm88-4H220V116h12a12,12,0,0,0,0-24H220V56a20,20,0,0,0-20-20H164V24a12,12,0,0,0-24,0V36H116V24a12,12,0,0,0-24,0V36H56A20,20,0,0,0,36,56V92H24a12,12,0,0,0,0,24H36v24H24a12,12,0,0,0,0,24H36v36a20,20,0,0,0,20,20H92v12a12,12,0,0,0,24,0V220h24v12a12,12,0,0,0,24,0V220h36a20,20,0,0,0,20-20V164h12a12,12,0,0,0,0-24Zm-36,56H60V60H196Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,48H56a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H200a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48ZM152,152H104V104h48Z",opacity:"0.2"}),r.createElement("path",{d:"M152,96H104a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V104A8,8,0,0,0,152,96Zm-8,48H112V112h32Zm88,0H216V112h16a8,8,0,0,0,0-16H216V56a16,16,0,0,0-16-16H160V24a8,8,0,0,0-16,0V40H112V24a8,8,0,0,0-16,0V40H56A16,16,0,0,0,40,56V96H24a8,8,0,0,0,0,16H40v32H24a8,8,0,0,0,0,16H40v40a16,16,0,0,0,16,16H96v16a8,8,0,0,0,16,0V216h32v16a8,8,0,0,0,16,0V216h40a16,16,0,0,0,16-16V160h16a8,8,0,0,0,0-16Zm-32,56H56V56H200v95.87s0,.09,0,.13,0,.09,0,.13V200Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M104,104h48v48H104Zm136,48a8,8,0,0,1-8,8H216v40a16,16,0,0,1-16,16H160v16a8,8,0,0,1-16,0V216H112v16a8,8,0,0,1-16,0V216H56a16,16,0,0,1-16-16V160H24a8,8,0,0,1,0-16H40V112H24a8,8,0,0,1,0-16H40V56A16,16,0,0,1,56,40H96V24a8,8,0,0,1,16,0V40h32V24a8,8,0,0,1,16,0V40h40a16,16,0,0,1,16,16V96h16a8,8,0,0,1,0,16H216v32h16A8,8,0,0,1,240,152ZM168,96a8,8,0,0,0-8-8H96a8,8,0,0,0-8,8v64a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M152,98H104a6,6,0,0,0-6,6v48a6,6,0,0,0,6,6h48a6,6,0,0,0,6-6V104A6,6,0,0,0,152,98Zm-6,48H110V110h36Zm86,0H214V110h18a6,6,0,0,0,0-12H214V56a14,14,0,0,0-14-14H158V24a6,6,0,0,0-12,0V42H110V24a6,6,0,0,0-12,0V42H56A14,14,0,0,0,42,56V98H24a6,6,0,0,0,0,12H42v36H24a6,6,0,0,0,0,12H42v42a14,14,0,0,0,14,14H98v18a6,6,0,0,0,12,0V214h36v18a6,6,0,0,0,12,0V214h42a14,14,0,0,0,14-14V158h18a6,6,0,0,0,0-12Zm-30,54a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M152,96H104a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V104A8,8,0,0,0,152,96Zm-8,48H112V112h32Zm88,0H216V112h16a8,8,0,0,0,0-16H216V56a16,16,0,0,0-16-16H160V24a8,8,0,0,0-16,0V40H112V24a8,8,0,0,0-16,0V40H56A16,16,0,0,0,40,56V96H24a8,8,0,0,0,0,16H40v32H24a8,8,0,0,0,0,16H40v40a16,16,0,0,0,16,16H96v16a8,8,0,0,0,16,0V216h32v16a8,8,0,0,0,16,0V216h40a16,16,0,0,0,16-16V160h16a8,8,0,0,0,0-16Zm-32,56H56V56H200v95.87s0,.09,0,.13,0,.09,0,.13V200Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M152,100H104a4,4,0,0,0-4,4v48a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V104A4,4,0,0,0,152,100Zm-4,48H108V108h40Zm84,0H212V108h20a4,4,0,0,0,0-8H212V56a12,12,0,0,0-12-12H156V24a4,4,0,0,0-8,0V44H108V24a4,4,0,0,0-8,0V44H56A12,12,0,0,0,44,56v44H24a4,4,0,0,0,0,8H44v40H24a4,4,0,0,0,0,8H44v44a12,12,0,0,0,12,12h44v20a4,4,0,0,0,8,0V212h40v20a4,4,0,0,0,8,0V212h44a12,12,0,0,0,12-12V156h20a4,4,0,0,0,0-8Zm-28,52a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4Z"}))]]),_O=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,116h-4.72A100.21,100.21,0,0,0,140,28.72V24a12,12,0,0,0-24,0v4.72A100.21,100.21,0,0,0,28.72,116H24a12,12,0,0,0,0,24h4.72A100.21,100.21,0,0,0,116,227.28V232a12,12,0,0,0,24,0v-4.72A100.21,100.21,0,0,0,227.28,140H232a12,12,0,0,0,0-24Zm-92,87v-3a12,12,0,0,0-24,0v3a76.15,76.15,0,0,1-63-63h3a12,12,0,0,0,0-24H53a76.15,76.15,0,0,1,63-63v3a12,12,0,0,0,24,0V53a76.15,76.15,0,0,1,63,63h-3a12,12,0,0,0,0,24h3A76.15,76.15,0,0,1,140,203ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,128a32,32,0,1,1-32-32A32,32,0,0,1,160,128Z",opacity:"0.2"}),r.createElement("path",{d:"M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-96,87.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16h7.6A80.15,80.15,0,0,1,136,207.6ZM128,88a40,40,0,1,0,40,40A40,40,0,0,0,128,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,152Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-32,16h7.6A80.15,80.15,0,0,1,136,207.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16Zm-32-8a40,40,0,1,1-40-40A40,40,0,0,1,168,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,122H221.8A94.13,94.13,0,0,0,134,34.2V24a6,6,0,0,0-12,0V34.2A94.13,94.13,0,0,0,34.2,122H24a6,6,0,0,0,0,12H34.2A94.13,94.13,0,0,0,122,221.8V232a6,6,0,0,0,12,0V221.8A94.13,94.13,0,0,0,221.8,134H232a6,6,0,0,0,0-12Zm-98,87.76V200a6,6,0,0,0-12,0v9.76A82.09,82.09,0,0,1,46.24,134H56a6,6,0,0,0,0-12H46.24A82.09,82.09,0,0,1,122,46.24V56a6,6,0,0,0,12,0V46.24A82.09,82.09,0,0,1,209.76,122H200a6,6,0,0,0,0,12h9.76A82.09,82.09,0,0,1,134,209.76ZM128,90a38,38,0,1,0,38,38A38,38,0,0,0,128,90Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,128,154Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-96,87.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16h7.6A80.15,80.15,0,0,1,136,207.6ZM128,88a40,40,0,1,0,40,40A40,40,0,0,0,128,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,152Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,124H219.91A92.13,92.13,0,0,0,132,36.09V24a4,4,0,0,0-8,0V36.09A92.13,92.13,0,0,0,36.09,124H24a4,4,0,0,0,0,8H36.09A92.13,92.13,0,0,0,124,219.91V232a4,4,0,0,0,8,0V219.91A92.13,92.13,0,0,0,219.91,132H232a4,4,0,0,0,0-8ZM132,211.9V200a4,4,0,0,0-8,0v11.9A84.11,84.11,0,0,1,44.1,132H56a4,4,0,0,0,0-8H44.1A84.11,84.11,0,0,1,124,44.1V56a4,4,0,0,0,8,0V44.1A84.11,84.11,0,0,1,211.9,124H200a4,4,0,0,0,0,8h11.9A84.11,84.11,0,0,1,132,211.9ZM128,92a36,36,0,1,0,36,36A36,36,0,0,0,128,92Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,128,156Z"}))]]),TO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M225.6,62.64l-88-48.17a19.91,19.91,0,0,0-19.2,0l-88,48.17A20,20,0,0,0,20,80.19v95.62a20,20,0,0,0,10.4,17.55l88,48.17a19.89,19.89,0,0,0,19.2,0l88-48.17A20,20,0,0,0,236,175.81V80.19A20,20,0,0,0,225.6,62.64ZM128,36.57,200,76,128,115.4,56,76ZM44,96.79l72,39.4v76.67L44,173.44Zm96,116.07V136.19l72-39.4v76.65Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,129.09V232a8,8,0,0,1-3.84-1l-88-48.16a8,8,0,0,1-4.16-7V80.2a8,8,0,0,1,.7-3.27Z",opacity:"0.2"}),r.createElement("path",{d:"M223.68,66.15,135.68,18h0a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32h0l80.34,44L128,120,47.66,76ZM40,90l80,43.78v85.79L40,175.82Zm96,129.57V133.82L216,90v85.78Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,120,47.65,76,128,32l80.35,44Zm8,99.64V133.83l80-43.78v85.76Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222.72,67.9l-88-48.17a13.9,13.9,0,0,0-13.44,0l-88,48.18A14,14,0,0,0,26,80.18v95.64a14,14,0,0,0,7.28,12.27l88,48.18a13.92,13.92,0,0,0,13.44,0l88-48.18A14,14,0,0,0,230,175.82V80.18A14,14,0,0,0,222.72,67.9ZM127,30.25a2,2,0,0,1,1.92,0L212.51,76,128,122.24,43.49,76ZM39,177.57a2,2,0,0,1-1-1.75V86.66l84,46V223Zm177.92,0L134,223V132.64l84-46v89.16A2,2,0,0,1,217,177.57Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M223.68,66.15,135.68,18h0a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32h0l80.34,44L128,120,47.66,76ZM40,90l80,43.78v85.79L40,175.82Zm96,129.57V133.82L216,90v85.78Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.76,69.66l-88-48.18a12,12,0,0,0-11.52,0l-88,48.18A12,12,0,0,0,28,80.18v95.64a12,12,0,0,0,6.24,10.52l88,48.18a11.95,11.95,0,0,0,11.52,0l88-48.18A12,12,0,0,0,228,175.82V80.18A12,12,0,0,0,221.76,69.66ZM126.08,28.5a3.94,3.94,0,0,1,3.84,0L216.67,76,128,124.52,39.33,76Zm-88,150.83A4,4,0,0,1,36,175.82V83.29l88,48.16v94.91Zm179.84,0-85.92,47V131.45l88-48.16v92.53A4,4,0,0,1,217.92,179.32Z"}))]]),LO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M152,116H140V60h4a28,28,0,0,1,28,28,12,12,0,0,0,24,0,52.06,52.06,0,0,0-52-52h-4V24a12,12,0,0,0-24,0V36h-4a52,52,0,0,0,0,104h4v56H104a28,28,0,0,1-28-28,12,12,0,0,0-24,0,52.06,52.06,0,0,0,52,52h12v12a12,12,0,0,0,24,0V220h12a52,52,0,0,0,0-104Zm-40,0a28,28,0,0,1,0-56h4v56Zm40,80H140V140h12a28,28,0,0,1,0,56Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,168a40,40,0,0,1-40,40H128V128h24A40,40,0,0,1,192,168ZM112,48a40,40,0,0,0,0,80h16V48Z",opacity:"0.2"}),r.createElement("path",{d:"M152,120H136V56h8a32,32,0,0,1,32,32,8,8,0,0,0,16,0,48.05,48.05,0,0,0-48-48h-8V24a8,8,0,0,0-16,0V40h-8a48,48,0,0,0,0,96h8v64H104a32,32,0,0,1-32-32,8,8,0,0,0-16,0,48.05,48.05,0,0,0,48,48h16v16a8,8,0,0,0,16,0V216h16a48,48,0,0,0,0-96Zm-40,0a32,32,0,0,1,0-64h8v64Zm40,80H136V136h16a32,32,0,0,1,0,64Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,152a16,16,0,0,1-16,16h-8V136h8A16,16,0,0,1,160,152Zm72-24A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-56,24a32,32,0,0,0-32-32h-8V88h4a16,16,0,0,1,16,16,8,8,0,0,0,16,0,32,32,0,0,0-32-32h-4V64a8,8,0,0,0-16,0v8h-4a32,32,0,0,0,0,64h4v32h-8a16,16,0,0,1-16-16,8,8,0,0,0-16,0,32,32,0,0,0,32,32h8v8a8,8,0,0,0,16,0v-8h8A32,32,0,0,0,176,152Zm-76-48a16,16,0,0,0,16,16h4V88h-4A16,16,0,0,0,100,104Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M152,122H134V54h10a34,34,0,0,1,34,34,6,6,0,0,0,12,0,46.06,46.06,0,0,0-46-46H134V24a6,6,0,0,0-12,0V42H112a46,46,0,0,0,0,92h10v68H104a34,34,0,0,1-34-34,6,6,0,0,0-12,0,46.06,46.06,0,0,0,46,46h18v18a6,6,0,0,0,12,0V214h18a46,46,0,0,0,0-92Zm-40,0a34,34,0,0,1,0-68h10v68Zm40,80H134V134h18a34,34,0,0,1,0,68Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M152,120H136V56h8a32,32,0,0,1,32,32,8,8,0,0,0,16,0,48.05,48.05,0,0,0-48-48h-8V24a8,8,0,0,0-16,0V40h-8a48,48,0,0,0,0,96h8v64H104a32,32,0,0,1-32-32,8,8,0,0,0-16,0,48.05,48.05,0,0,0,48,48h16v16a8,8,0,0,0,16,0V216h16a48,48,0,0,0,0-96Zm-40,0a32,32,0,0,1,0-64h8v64Zm40,80H136V136h16a32,32,0,0,1,0,64Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M152,124H132V52h12a36,36,0,0,1,36,36,4,4,0,0,0,8,0,44.05,44.05,0,0,0-44-44H132V24a4,4,0,0,0-8,0V44H112a44,44,0,0,0,0,88h12v72H104a36,36,0,0,1-36-36,4,4,0,0,0-8,0,44.05,44.05,0,0,0,44,44h20v20a4,4,0,0,0,8,0V212h20a44,44,0,0,0,0-88Zm-40,0a36,36,0,0,1,0-72h12v72Zm40,80H132V132h20a36,36,0,0,1,0,72Z"}))]]),kO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M108,60A16,16,0,1,1,92,44,16,16,0,0,1,108,60Zm56,16a16,16,0,1,0-16-16A16,16,0,0,0,164,76ZM92,112a16,16,0,1,0,16,16A16,16,0,0,0,92,112Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,112ZM92,180a16,16,0,1,0,16,16A16,16,0,0,0,92,180Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,180Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32V224a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V32A16,16,0,0,1,64,16H192A16,16,0,0,1,208,32Z",opacity:"0.2"}),r.createElement("path",{d:"M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,16H64A16,16,0,0,0,48,32V224a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V32A16,16,0,0,0,192,16ZM100,200a12,12,0,1,1,12-12A12,12,0,0,1,100,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,80Zm56,120a12,12,0,1,1,12-12A12,12,0,0,1,156,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,80Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M102,60A10,10,0,1,1,92,50,10,10,0,0,1,102,60Zm62,10a10,10,0,1,0-10-10A10,10,0,0,0,164,70ZM92,118a10,10,0,1,0,10,10A10,10,0,0,0,92,118Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,118ZM92,186a10,10,0,1,0,10,10A10,10,0,0,0,92,186Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,186Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M100,60a8,8,0,1,1-8-8A8,8,0,0,1,100,60Zm64,8a8,8,0,1,0-8-8A8,8,0,0,0,164,68ZM92,120a8,8,0,1,0,8,8A8,8,0,0,0,92,120Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,120ZM92,188a8,8,0,1,0,8,8A8,8,0,0,0,92,188Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,188Z"}))]]),RO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M71.51,88.49a12,12,0,0,1,17-17L116,99V24a12,12,0,0,1,24,0V99l27.51-27.52a12,12,0,0,1,17,17l-48,48a12,12,0,0,1-17,0ZM224,116H188a12,12,0,0,0,0,24h32v56H36V140H68a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116Zm-20,52a16,16,0,1,0-16,16A16,16,0,0,0,204,168Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,136v64a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V136a8,8,0,0,1,8-8H224A8,8,0,0,1,232,136Z",opacity:"0.2"}),r.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M74.34,85.66A8,8,0,0,1,85.66,74.34L120,108.69V24a8,8,0,0,1,16,0v84.69l34.34-34.35a8,8,0,0,1,11.32,11.32l-48,48a8,8,0,0,1-11.32,0ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H84.4a4,4,0,0,1,2.83,1.17L111,145A24,24,0,0,0,145,145l23.8-23.8A4,4,0,0,1,171.6,120H224A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H72a6,6,0,0,1,0,12H32a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H224a2,2,0,0,0,2-2V136a2,2,0,0,0-2-2H184a6,6,0,0,1,0-12h40A14,14,0,0,1,238,136Zm-114.24-3.76a6,6,0,0,0,8.48,0l48-48a6,6,0,0,0-8.48-8.48L134,113.51V24a6,6,0,0,0-12,0v89.51L84.24,75.76a6,6,0,0,0-8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H72a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H184a4,4,0,0,1,0-8h40A12,12,0,0,1,236,136Zm-110.83-5.17a4,4,0,0,0,5.66,0l48-48a4,4,0,1,0-5.66-5.66L132,118.34V24a4,4,0,0,0-8,0v94.34L82.83,77.17a4,4,0,0,0-5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z"}))]]),DO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,152H48a20,20,0,0,0-20,20v20a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V172A20,20,0,0,0,208,152Zm-4,36H52V176H204ZM48.27,136H207.73a20.27,20.27,0,0,0,14.61-34.3L148.58,24.78a28.51,28.51,0,0,0-41.16,0L33.66,101.7A20.27,20.27,0,0,0,48.27,136Zm76.48-94.61a4.49,4.49,0,0,1,6.5,0L199,112H57Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,168v24a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V168a8,8,0,0,1,8-8H208A8,8,0,0,1,216,168ZM48.23,128H207.77c7.16,0,10.89-8.27,6-13.37l-73.74-77.5a16.76,16.76,0,0,0-24.14,0l-73.74,77.5C37.34,119.73,41.07,128,48.23,128Z",opacity:"0.2"}),r.createElement("path",{d:"M208,152H48a16,16,0,0,0-16,16v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V168A16,16,0,0,0,208,152Zm0,40H48V168H208ZM48.24,136H207.76a16.18,16.18,0,0,0,14.93-9.76,15.59,15.59,0,0,0-3.1-17.12L145.86,31.61a24.76,24.76,0,0,0-35.72,0L36.41,109.12h0a15.59,15.59,0,0,0-3.1,17.12A16.18,16.18,0,0,0,48.24,136Zm73.49-93.36a8.77,8.77,0,0,1,12.54,0L207.85,120H48.14Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M33.31,126.24a15.59,15.59,0,0,1,3.1-17.12h0l73.73-77.51a24.76,24.76,0,0,1,35.72,0l73.73,77.51a15.59,15.59,0,0,1,3.1,17.12A16.18,16.18,0,0,1,207.76,136H48.24A16.18,16.18,0,0,1,33.31,126.24ZM208,152H48a16,16,0,0,0-16,16v16a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V168A16,16,0,0,0,208,152Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,154H48a14,14,0,0,0-14,14v24a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V168A14,14,0,0,0,208,154Zm2,38a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V168a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM48.24,134H207.76a14.19,14.19,0,0,0,13.1-8.55,13.61,13.61,0,0,0-2.72-15L144.41,33a22.76,22.76,0,0,0-32.82,0L37.86,110.5a13.61,13.61,0,0,0-2.72,15A14.19,14.19,0,0,0,48.24,134Zm-1.69-15.23,73.73-77.51a10.77,10.77,0,0,1,15.44,0l73.73,77.51a1.67,1.67,0,0,1,.38,2,2.11,2.11,0,0,1-2.07,1.27H48.24a2.11,2.11,0,0,1-2.07-1.27A1.67,1.67,0,0,1,46.55,118.77Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,152H48a16,16,0,0,0-16,16v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V168A16,16,0,0,0,208,152Zm0,40H48V168H208ZM48.24,136H207.76a16.18,16.18,0,0,0,14.93-9.76,15.59,15.59,0,0,0-3.1-17.12L145.86,31.61a24.76,24.76,0,0,0-35.72,0L36.41,109.12h0a15.59,15.59,0,0,0-3.1,17.12A16.18,16.18,0,0,0,48.24,136Zm73.49-93.36a8.77,8.77,0,0,1,12.54,0L207.85,120H48.14Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,156H48a12,12,0,0,0-12,12v24a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V168A12,12,0,0,0,208,156Zm4,36a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V168a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM48.23,132H207.77A12,12,0,0,0,219,124.67a11.68,11.68,0,0,0-2.33-12.8L143,34.37a20.75,20.75,0,0,0-29.92,0L39.3,111.87A11.68,11.68,0,0,0,37,124.67,12,12,0,0,0,48.23,132ZM45.1,117.39l73.73-77.51a12.78,12.78,0,0,1,18.34,0l73.73,77.51a3.66,3.66,0,0,1,.77,4.12,4.1,4.1,0,0,1-3.9,2.49H48.23a4.1,4.1,0,0,1-3.9-2.49A3.66,3.66,0,0,1,45.1,117.39Z"}))]]),OO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44Zm-96,83.72L62.85,68h130.3ZM92.79,128,44,172.72V83.28Zm17.76,16.28,9.34,8.57a12,12,0,0,0,16.22,0l9.34-8.57L193.15,188H62.85ZM163.21,128,212,83.28v89.44Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"}),r.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-96,85.15L52.57,64H203.43ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,50H32a6,6,0,0,0-6,6V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A6,6,0,0,0,224,50Zm-96,85.86L47.42,62H208.58ZM101.67,128,38,186.36V69.64Zm8.88,8.14L124,148.42a6,6,0,0,0,8.1,0l13.4-12.28L208.58,194H47.43ZM154.33,128,218,69.64V186.36Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-96,85.15L52.57,64H203.43ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,52H32a4,4,0,0,0-4,4V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A4,4,0,0,0,224,52Zm-96,86.57L42.28,60H213.72ZM104.63,128,36,190.91V65.09Zm5.92,5.43L125.3,147a4,4,0,0,0,5.4,0l14.75-13.52L213.72,196H42.28ZM151.37,128,220,65.09V190.91Z"}))]]),FO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44ZM193.15,68,128,127.72,62.85,68ZM44,188V83.28l75.89,69.57a12,12,0,0,0,16.22,0L212,83.28V188Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"}),r.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-8,144H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,50H32a6,6,0,0,0-6,6V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A6,6,0,0,0,224,50ZM208.58,62,128,135.86,47.42,62ZM216,194H40a2,2,0,0,1-2-2V69.64l86,78.78a6,6,0,0,0,8.1,0L218,69.64V192A2,2,0,0,1,216,194Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,52H32a4,4,0,0,0-4,4V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A4,4,0,0,0,224,52Zm-10.28,8L128,138.57,42.28,60ZM216,196H40a4,4,0,0,1-4-4V65.09L125.3,147a4,4,0,0,0,5.4,0L220,65.09V192A4,4,0,0,1,216,196Z"}))]]),zO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),r.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]]),$O=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.42,162A12,12,0,1,1,213.58,174l-16.86-29.5a127.19,127.19,0,0,1-30.17,13.86L171.84,190a12,12,0,0,1-9.87,13.8,11.22,11.22,0,0,1-2,.17,12,12,0,0,1-11.82-10L143,163.17a136.5,136.5,0,0,1-30.06,0L107.84,194A12,12,0,0,1,96,204a11.22,11.22,0,0,1-2-.17A12,12,0,0,1,84.16,190l5.29-31.72a127.19,127.19,0,0,1-30.17-13.86L42.42,174A12,12,0,1,1,21.58,162L40,129.85a159.73,159.73,0,0,1-17.31-18.31A12,12,0,0,1,41.34,96.46C57.38,116.32,85.44,140,128,140s70.62-23.68,86.66-43.54a12,12,0,0,1,18.67,15.08A159.73,159.73,0,0,1,216,129.85Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,104c-16.81,20.81-47.63,48-96,48s-79.19-27.19-96-48c16.81-20.81,47.63-48,96-48S207.19,83.19,224,104Z",opacity:"0.2"}),r.createElement("path",{d:"M228,175a8,8,0,0,1-10.92-3l-19-33.2A123.23,123.23,0,0,1,162,155.46l5.87,35.22a8,8,0,0,1-6.58,9.21A8.4,8.4,0,0,1,160,200a8,8,0,0,1-7.88-6.69l-5.77-34.58a133.06,133.06,0,0,1-36.68,0l-5.77,34.58A8,8,0,0,1,96,200a8.4,8.4,0,0,1-1.32-.11,8,8,0,0,1-6.58-9.21L94,155.46a123.23,123.23,0,0,1-36.06-16.69L39,172A8,8,0,1,1,25.06,164l20-35a153.47,153.47,0,0,1-19.3-20A8,8,0,1,1,38.22,99c16.6,20.54,45.64,45,89.78,45s73.18-24.49,89.78-45A8,8,0,1,1,230.22,109a153.47,153.47,0,0,1-19.3,20l20,35A8,8,0,0,1,228,175Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.94,164A8,8,0,1,1,217.05,172l-19-33.2A123.23,123.23,0,0,1,162,155.46l5.87,35.22a8,8,0,0,1-6.58,9.21A8.4,8.4,0,0,1,160,200a8,8,0,0,1-7.88-6.69l-5.77-34.58a133.06,133.06,0,0,1-36.68,0l-5.77,34.58A8,8,0,0,1,96,200a8.4,8.4,0,0,1-1.32-.11,8,8,0,0,1-6.58-9.21L94,155.46a123.23,123.23,0,0,1-36.06-16.69L39,172A8,8,0,1,1,25.06,164l20-35a152.8,152.8,0,0,1-19.3-20,8,8,0,0,1,0-10.06C44.56,75.72,77.55,48,128,48s83.44,27.72,102.22,51a8,8,0,0,1,0,10.06,152.8,152.8,0,0,1-19.3,20Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.21,165a6,6,0,0,1-10.42,6l-20-35.08a122,122,0,0,1-39,18.09l6.17,37a6,6,0,0,1-4.93,6.91,6.85,6.85,0,0,1-1,.08,6,6,0,0,1-5.91-5L148,156.44a128.86,128.86,0,0,1-40,0L101.92,193A6,6,0,0,1,96,198a6.85,6.85,0,0,1-1-.08A6,6,0,0,1,90.08,191l6.17-37a122,122,0,0,1-39-18.09L37.21,171a6,6,0,1,1-10.42-6l20.85-36.48a152,152,0,0,1-20.31-20.77,6,6,0,0,1,9.34-7.54C53.54,121.11,83.07,146,128,146s74.46-24.89,91.33-45.77a6,6,0,0,1,9.34,7.54,152,152,0,0,1-20.31,20.77Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,175a8,8,0,0,1-10.92-3l-19-33.2A123.23,123.23,0,0,1,162,155.46l5.87,35.22a8,8,0,0,1-6.58,9.21A8.4,8.4,0,0,1,160,200a8,8,0,0,1-7.88-6.69l-5.77-34.58a133.06,133.06,0,0,1-36.68,0l-5.77,34.58A8,8,0,0,1,96,200a8.4,8.4,0,0,1-1.32-.11,8,8,0,0,1-6.58-9.21L94,155.46a123.23,123.23,0,0,1-36.06-16.69L39,172A8,8,0,1,1,25.06,164l20-35a153.47,153.47,0,0,1-19.3-20A8,8,0,1,1,38.22,99c16.6,20.54,45.64,45,89.78,45s73.18-24.49,89.78-45A8,8,0,1,1,230.22,109a153.47,153.47,0,0,1-19.3,20l20,35A8,8,0,0,1,228,175Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M226,171.47a3.92,3.92,0,0,1-2,.53,4,4,0,0,1-3.47-2l-21.15-37a120,120,0,0,1-41.91,19.53L164,191.34a4,4,0,0,1-3.29,4.6,3.79,3.79,0,0,1-.67.06,4,4,0,0,1-3.94-3.34l-6.41-38.5a128.17,128.17,0,0,1-43.28,0L100,192.66A4,4,0,0,1,96,196a3.88,3.88,0,0,1-.67-.06,4,4,0,0,1-3.29-4.6l6.48-38.83A120,120,0,0,1,56.62,133L35.47,170A4,4,0,0,1,32,172a3.92,3.92,0,0,1-2-.53A4,4,0,0,1,28.53,166l21.68-37.94a148.24,148.24,0,0,1-21.32-21.56,4,4,0,1,1,6.22-5C52.25,122.71,82.29,148,128,148s75.75-25.29,92.89-46.51a4,4,0,1,1,6.22,5,148.24,148.24,0,0,1-21.32,21.56L227.47,166A4,4,0,0,1,226,171.47Z"}))]]),qO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),r.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z"}))]]),IO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M40.14,46.88A12,12,0,0,0,36,56V224a12,12,0,0,0,24,0V181.72c22.84-17.12,42.1-9.12,70.68,5,16.23,8,34.74,17.2,54.8,17.2,14.72,0,30.28-4.94,46.38-18.88A12,12,0,0,0,236,176V56a12,12,0,0,0-19.86-9.07c-24.71,21.41-44.53,13.31-74.82-1.68C113.19,31.27,78.17,13.94,40.14,46.88ZM212,170.26c-22.84,17.13-42.1,9.11-70.68-5C118.16,153.76,90.33,140,60,153.87V61.69c22.84-17.12,42.1-9.12,70.68,5,16.23,8,34.74,17.2,54.8,17.2A63,63,0,0,0,212,78.08Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,56V176c-64,55.43-112-55.43-176,0V56C112,.57,160,111.43,224,56Z",opacity:"0.2"}),r.createElement("path",{d:"M42.76,50A8,8,0,0,0,40,56V224a8,8,0,0,0,16,0V179.77c26.79-21.16,49.87-9.75,76.45,3.41,16.4,8.11,34.06,16.85,53,16.85,13.93,0,28.54-4.75,43.82-18a8,8,0,0,0,2.76-6V56A8,8,0,0,0,218.76,50c-28,24.23-51.72,12.49-79.21-1.12C111.07,34.76,78.78,18.79,42.76,50ZM216,172.25c-26.79,21.16-49.87,9.74-76.45-3.41-25-12.35-52.81-26.13-83.55-8.4V59.79c26.79-21.16,49.87-9.75,76.45,3.4,25,12.35,52.82,26.13,83.55,8.4Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,56V176a8,8,0,0,1-2.76,6c-15.28,13.23-29.89,18-43.82,18-18.91,0-36.57-8.74-53-16.85C105.87,170,82.79,158.61,56,179.77V224a8,8,0,0,1-16,0V56a8,8,0,0,1,2.77-6h0c36-31.18,68.31-15.21,96.79-1.12C167,62.46,190.79,74.2,218.76,50A8,8,0,0,1,232,56Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M44.08,51.37A6,6,0,0,0,42,55.9V224a6,6,0,0,0,12,0V178.78c28.08-22.79,51.88-11,79.34,2.57,16.12,8,33.49,16.58,52,16.58,13.57,0,27.76-4.6,42.56-17.42A6,6,0,0,0,230,176V55.9a6,6,0,0,0-9.93-4.54c-29,25.12-53.28,13.09-81.41-.84C110.77,36.71,79,21.16,44.08,51.37ZM218,173.17c-28.08,22.8-51.88,11-79.34-2.58C113.4,158.08,85.09,144.07,54,164V58.72c28.08-22.8,51.88-11,79.34,2.56C158.6,73.79,186.91,87.8,218,67.91Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M42.76,50A8,8,0,0,0,40,56V224a8,8,0,0,0,16,0V179.77c26.79-21.16,49.87-9.75,76.45,3.41,16.4,8.11,34.06,16.85,53,16.85,13.93,0,28.54-4.75,43.82-18a8,8,0,0,0,2.76-6V56A8,8,0,0,0,218.76,50c-28,24.23-51.72,12.49-79.21-1.12C111.07,34.76,78.78,18.79,42.76,50ZM216,172.25c-26.79,21.16-49.87,9.74-76.45-3.41-25-12.35-52.81-26.13-83.55-8.4V59.79c26.79-21.16,49.87-9.75,76.45,3.4,25,12.35,52.82,26.13,83.55,8.4Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M45.39,53.06a4,4,0,0,0-1.39,3V224a4,4,0,0,0,8,0V177.87c29.41-24.39,55.08-11.69,82.23,1.73,16.5,8.17,33.33,16.5,51.13,16.5,13.14,0,26.81-4.55,41.26-17.06a4,4,0,0,0,1.38-3v-120a4,4,0,0,0-6.62-3c-30,26-56,13.07-83.61-.57C109.07,38.28,79.4,23.62,45.39,53.06ZM220,174.17c-29.41,24.4-55.08,11.7-82.23-1.73-26.82-13.27-54.5-27-85.77-4.66V57.92c29.41-24.4,55.08-11.7,82.23,1.73,26.82,13.27,54.5,27,85.77,4.66Z"}))]]),BO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222.14,69.17,186.83,33.86A19.86,19.86,0,0,0,172.69,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V83.31A19.86,19.86,0,0,0,222.14,69.17ZM164,204H92V160h72Zm40,0H188V156a20,20,0,0,0-20-20H88a20,20,0,0,0-20,20v48H52V52H171l33,33ZM164,84a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h56A12,12,0,0,1,164,84Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,83.31V208a8,8,0,0,1-8,8H176V152a8,8,0,0,0-8-8H88a8,8,0,0,0-8,8v64H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H172.69a8,8,0,0,1,5.65,2.34l35.32,35.32A8,8,0,0,1,216,83.31Z",opacity:"0.2"}),r.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM208,208H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M217.9,73.42,182.58,38.1a13.9,13.9,0,0,0-9.89-4.1H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V83.31A13.9,13.9,0,0,0,217.9,73.42ZM170,210H86V152a2,2,0,0,1,2-2h80a2,2,0,0,1,2,2Zm40-2a2,2,0,0,1-2,2H182V152a14,14,0,0,0-14-14H88a14,14,0,0,0-14,14v58H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H172.69a2,2,0,0,1,1.41.58L209.42,81.9a2,2,0,0,1,.58,1.41ZM158,72a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h56A6,6,0,0,1,158,72Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.49,74.83,181.17,39.51A11.93,11.93,0,0,0,172.69,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V83.31A11.93,11.93,0,0,0,216.49,74.83ZM172,212H84V152a4,4,0,0,1,4-4h80a4,4,0,0,1,4,4Zm40-4a4,4,0,0,1-4,4H180V152a12,12,0,0,0-12-12H88a12,12,0,0,0-12,12v60H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H172.69a4,4,0,0,1,2.82,1.17l35.32,35.32A4,4,0,0,1,212,83.31ZM156,72a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h56A4,4,0,0,1,156,72Z"}))]]),PO=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M80,176a32,32,0,1,1-32-32A32,32,0,0,1,80,176Z",opacity:"0.2"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),UO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.29,47.91A20,20,0,0,0,216,36H40A20,20,0,0,0,25.2,69.45l.12.14L92,140.75V216a20,20,0,0,0,31.1,16.64l32-21.33A20,20,0,0,0,164,194.66V140.75l66.67-71.16.12-.14A20,20,0,0,0,234.29,47.91Zm-91,79.89A12,12,0,0,0,140,136v56.52l-24,16V136a12,12,0,0,0-3.25-8.2L49.23,60H206.77Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.9,61.38,152,136v58.65a8,8,0,0,1-3.56,6.66l-32,21.33A8,8,0,0,1,104,216V136L34.1,61.38A8,8,0,0,1,40,48H216A8,8,0,0,1,221.9,61.38Z",opacity:"0.2"}),r.createElement("path",{d:"M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.81,66.76l-.08.09L160,139.17v55.49A16,16,0,0,1,152.87,208l-32,21.34A16,16,0,0,1,96,216V139.17L28.27,66.85l-.08-.09A16,16,0,0,1,40,40H216a16,16,0,0,1,11.84,26.76Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228.77,50.34A13.8,13.8,0,0,0,216,42H40A14,14,0,0,0,29.67,65.42l.06.07L98,138.38V216a14,14,0,0,0,21.77,11.64l32-21.33A14,14,0,0,0,158,194.66V138.38l68.33-73A13.82,13.82,0,0,0,228.77,50.34Zm-11.26,6.94L147.62,131.9A6,6,0,0,0,146,136v58.66a2,2,0,0,1-.89,1.67l-32,21.33A2,2,0,0,1,110,216V136a6,6,0,0,0-1.62-4.1L38.53,57.32A2,2,0,0,1,40,54H216a1.9,1.9,0,0,1,1.83,1.19A1.86,1.86,0,0,1,217.51,57.28Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227,51.15A11.85,11.85,0,0,0,216,44H40a12,12,0,0,0-8.88,20.07l.05.05L100,137.59V216a12,12,0,0,0,18.66,10l32-21.33a12,12,0,0,0,5.35-10V137.59l68.86-73.52A11.85,11.85,0,0,0,227,51.15Zm-8,7.5-69.9,74.62A4,4,0,0,0,148,136v58.65a4,4,0,0,1-1.78,3.33l-32,21.33A4,4,0,0,1,108,216V136a4,4,0,0,0-1.08-2.74L37.05,58.67A4,4,0,0,1,40,52H216a4,4,0,0,1,3,6.65Z"}))]]),GO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),r.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"}))]]),YO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),r.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,6,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z"}))]]),KO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,64a36,36,0,1,0-48,33.94V112a4,4,0,0,1-4,4H96a27.8,27.8,0,0,0-4,.29V97.94a36,36,0,1,0-24,0v60.12a36,36,0,1,0,24,0V144a4,4,0,0,1,4-4h88a28,28,0,0,0,28-28V97.94A36.07,36.07,0,0,0,236,64ZM80,52A12,12,0,1,1,68,64,12,12,0,0,1,80,52Zm0,152a12,12,0,1,1,12-12A12,12,0,0,1,80,204ZM200,76a12,12,0,1,1,12-12A12,12,0,0,1,200,76Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,64a24,24,0,1,1-24-24A24,24,0,0,1,224,64Z",opacity:"0.2"}),r.createElement("path",{d:"M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192ZM200,80a16,16,0,1,1,16-16A16,16,0,0,1,200,80Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230,64a30,30,0,1,0-36,29.4V112a10,10,0,0,1-10,10H96a21.84,21.84,0,0,0-10,2.42v-31a30,30,0,1,0-12,0v69.2a30,30,0,1,0,12,0V144a10,10,0,0,1,10-10h88a22,22,0,0,0,22-22V93.4A30.05,30.05,0,0,0,230,64ZM62,64A18,18,0,1,1,80,82,18,18,0,0,1,62,64ZM98,192a18,18,0,1,1-18-18A18,18,0,0,1,98,192ZM200,82a18,18,0,1,1,18-18A18,18,0,0,1,200,82Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192ZM200,80a16,16,0,1,1,16-16A16,16,0,0,1,200,80Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,64a28,28,0,1,0-32,27.71V112a12,12,0,0,1-12,12H96a19.91,19.91,0,0,0-12,4V91.71a28,28,0,1,0-8,0v72.58a28,28,0,1,0,8,0V144a12,12,0,0,1,12-12h88a20,20,0,0,0,20-20V91.71A28,28,0,0,0,228,64ZM60,64A20,20,0,1,1,80,84,20,20,0,0,1,60,64Zm40,128a20,20,0,1,1-20-20A20,20,0,0,1,100,192ZM200,84a20,20,0,1,1,20-20A20,20,0,0,1,200,84Z"}))]]),XO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,187a113.4,113.4,0,0,1-20.39-35h40.82a116.94,116.94,0,0,1-10,20.77A108.61,108.61,0,0,1,128,207Zm-26.49-59a135.42,135.42,0,0,1,0-40h53a135.42,135.42,0,0,1,0,40ZM44,128a83.49,83.49,0,0,1,2.43-20H77.25a160.63,160.63,0,0,0,0,40H46.43A83.49,83.49,0,0,1,44,128Zm84-79a113.4,113.4,0,0,1,20.39,35H107.59a116.94,116.94,0,0,1,10-20.77A108.61,108.61,0,0,1,128,49Zm50.73,59h30.82a83.52,83.52,0,0,1,0,40H178.75a160.63,160.63,0,0,0,0-40Zm20.77-24H173.71a140.82,140.82,0,0,0-15.5-34.36A84.51,84.51,0,0,1,199.52,84ZM97.79,49.64A140.82,140.82,0,0,0,82.29,84H56.48A84.51,84.51,0,0,1,97.79,49.64ZM56.48,172H82.29a140.82,140.82,0,0,0,15.5,34.36A84.51,84.51,0,0,1,56.48,172Zm101.73,34.36A140.82,140.82,0,0,0,173.71,172h25.81A84.51,84.51,0,0,1,158.21,206.36Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm78.36,64H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM216,128a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM128,43a115.27,115.27,0,0,1,26,45H102A115.11,115.11,0,0,1,128,43ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48Zm50.35,61.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,190.61c-6.33-6.09-23-24.41-31.27-54.61h62.54C151,194.2,134.33,212.52,128,218.61ZM94.82,156a140.42,140.42,0,0,1,0-56h66.36a140.42,140.42,0,0,1,0,56ZM128,37.39c6.33,6.09,23,24.41,31.27,54.61H96.73C105,61.8,121.67,43.48,128,37.39ZM169.41,100h46.23a92.09,92.09,0,0,1,0,56H169.41a152.65,152.65,0,0,0,0-56Zm43.25-8h-45a129.39,129.39,0,0,0-29.19-55.4A92.25,92.25,0,0,1,212.66,92ZM117.54,36.6A129.39,129.39,0,0,0,88.35,92h-45A92.25,92.25,0,0,1,117.54,36.6ZM40.36,100H86.59a152.65,152.65,0,0,0,0,56H40.36a92.09,92.09,0,0,1,0-56Zm3,64h45a129.39,129.39,0,0,0,29.19,55.4A92.25,92.25,0,0,1,43.34,164Zm95.12,55.4A129.39,129.39,0,0,0,167.65,164h45A92.25,92.25,0,0,1,138.46,219.4Z"}))]]),QO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,44a32,32,0,0,0-8,1V44a32,32,0,0,0-60.79-14A32,32,0,0,0,76,60v50.83a32,32,0,0,0-52,36.7C55.82,214.6,75.35,244,128,244a92.1,92.1,0,0,0,92-92V76A32,32,0,0,0,188,44Zm8,108a68.08,68.08,0,0,1-68,68c-35.83,0-49.71-14-82.48-83.14-.14-.29-.29-.58-.45-.86a8,8,0,0,1,13.85-8l.21.35,18.68,30A12,12,0,0,0,100,152V60a8,8,0,0,1,16,0v60a12,12,0,0,0,24,0V44a8,8,0,0,1,16,0v76a12,12,0,0,0,24,0V76a8,8,0,0,1,16,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,76v76a80,80,0,0,1-80,80c-44.18,0-60.75-21.28-93.32-90a20,20,0,0,1,34.64-20L88,152V60a20,20,0,0,1,40,0V44a20,20,0,0,1,40,0V76a20,20,0,0,1,40,0Z",opacity:"0.2"}),r.createElement("path",{d:"M188,48a27.75,27.75,0,0,0-12,2.71V44a28,28,0,0,0-54.65-8.6A28,28,0,0,0,80,60v64l-3.82-6.13a28,28,0,0,0-48.6,27.82c16,33.77,28.93,57.72,43.72,72.69C86.24,233.54,103.2,240,128,240a88.1,88.1,0,0,0,88-88V76A28,28,0,0,0,188,48Zm12,104a72.08,72.08,0,0,1-72,72c-20.38,0-33.51-4.88-45.33-16.85C69.44,193.74,57.26,171,41.9,138.58a6.36,6.36,0,0,0-.3-.58,12,12,0,0,1,20.79-12,1.76,1.76,0,0,0,.14.23l18.67,30A8,8,0,0,0,96,152V60a12,12,0,0,1,24,0v60a8,8,0,0,0,16,0V44a12,12,0,0,1,24,0v76a8,8,0,0,0,16,0V76a12,12,0,0,1,24,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,64v90.93c0,46.2-36.85,84.55-83,85.06A83.71,83.71,0,0,1,72.6,215.4C50.79,192.33,26.15,136,26.15,136a16,16,0,0,1,6.53-22.23c7.66-4,17.1-.84,21.4,6.62l21,36.44a6.09,6.09,0,0,0,6,3.09l.12,0A8.19,8.19,0,0,0,88,151.74V48a16,16,0,0,1,16.77-16c8.61.4,15.23,7.82,15.23,16.43V112a8,8,0,0,0,8.53,8,8.17,8.17,0,0,0,7.47-8.25V32a16,16,0,0,1,16.77-16c8.61.4,15.23,7.82,15.23,16.43V120a8,8,0,0,0,8.53,8,8.17,8.17,0,0,0,7.47-8.25V64.45c0-8.61,6.62-16,15.23-16.43A16,16,0,0,1,216,64Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,50a25.8,25.8,0,0,0-14,4.11V44a26,26,0,0,0-51.41-5.51A26,26,0,0,0,82,60v71l-7.53-12.1a26,26,0,0,0-45.11,25.87C60.76,211,78.51,238,128,238a86.1,86.1,0,0,0,86-86V76A26,26,0,0,0,188,50Zm14,102a74.09,74.09,0,0,1-74,74c-21,0-34.51-5.05-46.75-17.45C67.81,195,55.54,172,40.1,139.43l-.23-.43a14,14,0,0,1,24.25-14l.1.17,18.68,30A6,6,0,0,0,94,152V60a14,14,0,0,1,28,0v60a6,6,0,0,0,12,0V44a14,14,0,0,1,28,0v76a6,6,0,0,0,12,0V76a14,14,0,0,1,28,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,48a27.75,27.75,0,0,0-12,2.71V44a28,28,0,0,0-54.65-8.6A28,28,0,0,0,80,60v64l-3.82-6.13a28,28,0,0,0-48.6,27.82c16,33.77,28.93,57.72,43.72,72.69C86.24,233.54,103.2,240,128,240a88.1,88.1,0,0,0,88-88V76A28,28,0,0,0,188,48Zm12,104a72.08,72.08,0,0,1-72,72c-20.38,0-33.51-4.88-45.33-16.85C69.44,193.74,57.26,171,41.9,138.58a6.36,6.36,0,0,0-.3-.58,12,12,0,0,1,20.79-12,1.76,1.76,0,0,0,.14.23l18.67,30A8,8,0,0,0,96,152V60a12,12,0,0,1,24,0v60a8,8,0,0,0,16,0V44a12,12,0,0,1,24,0v76a8,8,0,0,0,16,0V76a12,12,0,0,1,24,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,52a23.9,23.9,0,0,0-16,6.13V44a24,24,0,0,0-47.93-1.8A24,24,0,0,0,84,60v78L72.75,119.94a24,24,0,0,0-41.62,23.92C64.44,214.12,82.17,236,128,236a84.09,84.09,0,0,0,84-84V76A24,24,0,0,0,188,52Zm16,100a76.09,76.09,0,0,1-76,76c-37.29,0-53.59-11.51-89.71-87.71l-.15-.29a16,16,0,0,1,27.71-16,.75.75,0,0,1,.07.12l18.68,30A4,4,0,0,0,92,152V60a16,16,0,0,1,32,0v60a4,4,0,0,0,8,0V44a16,16,0,0,1,32,0v76a4,4,0,0,0,8,0V76a16,16,0,0,1,32,0Z"}))]]),JO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,76H188V64a36,36,0,0,0-60-26.8A36,36,0,0,0,69.27,54.54,36,36,0,0,0,20,88v40a108,108,0,0,0,216,0V112A36,36,0,0,0,200,76ZM140,64a12,12,0,0,1,24,0V76H140ZM92,64a12,12,0,0,1,24,0v40a12,12,0,0,1-24,0ZM44,88a12,12,0,0,1,24,0v16a12,12,0,0,1-24,0Zm168,40A84,84,0,0,1,44.61,138.15,35.93,35.93,0,0,0,80,130.8a35.89,35.89,0,0,0,43.65,3.34A36.23,36.23,0,0,0,130,140.5,51.82,51.82,0,0,0,116,176a12,12,0,0,0,24,0,28,28,0,0,1,28-28,12,12,0,0,0,0-24H152a12,12,0,0,1-12-12V100h60a12,12,0,0,1,12,12Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,112v16a96,96,0,0,1-192,0V88a24,24,0,0,1,48,0V64a24,24,0,0,1,48,0,24,24,0,0,1,48,0V88h24A24,24,0,0,1,224,112Z",opacity:"0.2"}),r.createElement("path",{d:"M200,80H184V64a32,32,0,0,0-56-21.13A32,32,0,0,0,72.21,60.42,32,32,0,0,0,24,88v40a104,104,0,0,0,208,0V112A32,32,0,0,0,200,80ZM152,48a16,16,0,0,1,16,16V80H136V64A16,16,0,0,1,152,48ZM88,64a16,16,0,0,1,32,0v40a16,16,0,0,1-32,0ZM40,88a16,16,0,0,1,32,0v16a16,16,0,0,1-32,0Zm176,40a88,88,0,0,1-175.92,3.75A31.93,31.93,0,0,0,80,125.13a31.93,31.93,0,0,0,44.58,3.35,32.21,32.21,0,0,0,11.8,11.44A47.88,47.88,0,0,0,120,176a8,8,0,0,0,16,0,32,32,0,0,1,32-32,8,8,0,0,0,0-16H152a16,16,0,0,1-16-16V96h64a16,16,0,0,1,16,16Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,120v8A104,104,0,0,1,127.63,232c-54-.19-98-42.06-103.12-94.78a4,4,0,0,1,5.56-4A35.94,35.94,0,0,0,72,122.59a35.92,35.92,0,0,0,53.94,2.33,40.36,40.36,0,0,0,12.87,13A47.94,47.94,0,0,0,120,176a8,8,0,0,0,8.67,8,8.21,8.21,0,0,0,7.33-8.26A32,32,0,0,1,168,144a8,8,0,0,0,8-8.53,8.18,8.18,0,0,0-8.25-7.47H160a24,24,0,0,1-24-24V88h64A32,32,0,0,1,232,120ZM44.73,120C55.57,119.6,64,110.37,64,99.52v-23C64,65.63,55.57,56.4,44.73,56A20,20,0,0,0,24,76v24A20,20,0,0,0,44.73,120Zm56,0c10.84-.39,19.27-9.62,19.27-20.47v-47c0-10.85-8.43-20.08-19.27-20.47A20,20,0,0,0,80,52v48A20,20,0,0,0,100.73,120ZM176,52a20,20,0,0,0-20.73-20C144.43,32.4,136,41.63,136,52.48V72h36a4,4,0,0,0,4-4Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,82H182V64a30,30,0,0,0-54-18A30,30,0,0,0,74,64v0A30,30,0,0,0,26,88v40a102,102,0,0,0,204,0V112A30,30,0,0,0,200,82ZM152,46a18,18,0,0,1,18,18V82H136a14.71,14.71,0,0,0-2,.16V64A18,18,0,0,1,152,46ZM86,64a18,18,0,0,1,36,0v40a18,18,0,0,1-36,0ZM38,88a18,18,0,0,1,36,0v16a18,18,0,0,1-36,0Zm180,40a90,90,0,0,1-180,0h0a30,30,0,0,0,42-6,30,30,0,0,0,45.12,3.3A30.18,30.18,0,0,0,140,139.51,45.92,45.92,0,0,0,122,176a6,6,0,0,0,12,0,34,34,0,0,1,34-34,6,6,0,0,0,0-12H152a18,18,0,0,1-18-18V96a2,2,0,0,1,2-2h64a18,18,0,0,1,18,18Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,80H184V64a32,32,0,0,0-56-21.13A32,32,0,0,0,72.21,60.42,32,32,0,0,0,24,88v40a104,104,0,0,0,208,0V112A32,32,0,0,0,200,80ZM152,48a16,16,0,0,1,16,16V80H136V64A16,16,0,0,1,152,48ZM88,64a16,16,0,0,1,32,0v40a16,16,0,0,1-32,0ZM40,88a16,16,0,0,1,32,0v16a16,16,0,0,1-32,0Zm176,40a88,88,0,0,1-175.92,3.75A31.93,31.93,0,0,0,80,125.13a31.93,31.93,0,0,0,44.58,3.35,32.21,32.21,0,0,0,11.8,11.44A47.88,47.88,0,0,0,120,176a8,8,0,0,0,16,0,32,32,0,0,1,32-32,8,8,0,0,0,0-16H152a16,16,0,0,1-16-16V96h64a16,16,0,0,1,16,16Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,84H180V64a28,28,0,0,0-52-14.41A28,28,0,0,0,76,64v4.43A28,28,0,0,0,28,88v40a100,100,0,0,0,200,0V112A28,28,0,0,0,200,84ZM152,44a20,20,0,0,1,20,20V84H136a11.8,11.8,0,0,0-4,.7V64A20,20,0,0,1,152,44ZM84,64a20,20,0,0,1,40,0v40a20,20,0,0,1-40,0ZM36,88a20,20,0,0,1,40,0v16a20,20,0,0,1-40,0Zm184,40a92,92,0,0,1-184,0v-4.42a28,28,0,0,0,44-5.17,28,28,0,0,0,45.73,3.23,28.11,28.11,0,0,0,18.59,17.29A44,44,0,0,0,124,176a4,4,0,0,0,8,0,36,36,0,0,1,36-36,4,4,0,0,0,0-8H152a20,20,0,0,1-20-20V96a4,4,0,0,1,4-4h64a20,20,0,0,1,20,20Z"}))]]),WO=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,84a32,32,0,0,0-8,1V60a32,32,0,0,0-43.21-30A32,32,0,0,0,76,44v1A32,32,0,0,0,36,76v76a92,92,0,0,0,184,0V116A32,32,0,0,0,188,84Zm8,68a68,68,0,0,1-136,0V76a8,8,0,0,1,16,0v40a12,12,0,0,0,24,0V44a8,8,0,0,1,16,0v64a12,12,0,0,0,24,0V60a8,8,0,0,1,16,0v65.4A52.09,52.09,0,0,0,116,176a12,12,0,0,0,24,0,28,28,0,0,1,28-28,12,12,0,0,0,12-12V116a8,8,0,0,1,16,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,116v36a80,80,0,0,1-160,0V76a20,20,0,0,1,40,0V44a20,20,0,0,1,40,0V60a20,20,0,0,1,40,0v56a20,20,0,0,1,40,0Z",opacity:"0.2"}),r.createElement("path",{d:"M188,88a27.75,27.75,0,0,0-12,2.71V60a28,28,0,0,0-41.36-24.6A28,28,0,0,0,80,44v6.71A27.75,27.75,0,0,0,68,48,28,28,0,0,0,40,76v76a88,88,0,0,0,176,0V116A28,28,0,0,0,188,88Zm12,64a72,72,0,0,1-144,0V76a12,12,0,0,1,24,0v44a8,8,0,0,0,16,0V44a12,12,0,0,1,24,0v68a8,8,0,0,0,16,0V60a12,12,0,0,1,24,0v68.67A48.08,48.08,0,0,0,120,176a8,8,0,0,0,16,0,32,32,0,0,1,32-32,8,8,0,0,0,8-8V116a12,12,0,0,1,24,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,104v48a88,88,0,0,1-176,0V64a16,16,0,0,1,32,0v56a8,8,0,0,0,16,0V32a16,16,0,0,1,32,0v80a8,8,0,0,0,16,0V48a16,16,0,0,1,32,0v80.67A48.08,48.08,0,0,0,128,176a8,8,0,0,0,16,0,32,32,0,0,1,32-32,8,8,0,0,0,8-8V104a16,16,0,0,1,32,0Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,90a25.8,25.8,0,0,0-14,4.11V60a26,26,0,0,0-40.59-21.51A26,26,0,0,0,82,44V54.11A26,26,0,0,0,42,76v76a86,86,0,0,0,172,0V116A26,26,0,0,0,188,90Zm14,62a74,74,0,0,1-148,0V76a14,14,0,0,1,28,0v44a6,6,0,0,0,12,0V44a14,14,0,0,1,28,0v68a6,6,0,0,0,12,0V60a14,14,0,0,1,28,0v70.39A46.07,46.07,0,0,0,122,176a6,6,0,0,0,12,0,34,34,0,0,1,34-34,6,6,0,0,0,6-6V116a14,14,0,0,1,28,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,88a27.75,27.75,0,0,0-12,2.71V60a28,28,0,0,0-41.36-24.6A28,28,0,0,0,80,44v6.71A27.75,27.75,0,0,0,68,48,28,28,0,0,0,40,76v76a88,88,0,0,0,176,0V116A28,28,0,0,0,188,88Zm12,64a72,72,0,0,1-144,0V76a12,12,0,0,1,24,0v44a8,8,0,0,0,16,0V44a12,12,0,0,1,24,0v68a8,8,0,0,0,16,0V60a12,12,0,0,1,24,0v68.67A48.08,48.08,0,0,0,120,176a8,8,0,0,0,16,0,32,32,0,0,1,32-32,8,8,0,0,0,8-8V116a12,12,0,0,1,24,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,92a23.9,23.9,0,0,0-16,6.13V60a24,24,0,0,0-40.07-17.8A24,24,0,0,0,84,44V58.13A24,24,0,0,0,44,76v76a84,84,0,0,0,168,0V116A24,24,0,0,0,188,92Zm16,60a76,76,0,0,1-152,0V76a16,16,0,0,1,32,0v44a4,4,0,0,0,8,0V44a16,16,0,0,1,32,0v68a4,4,0,0,0,8,0V60a16,16,0,0,1,32,0v72.18A44.06,44.06,0,0,0,124,176a4,4,0,0,0,8,0,36,36,0,0,1,36-36,4,4,0,0,0,4-4V116a16,16,0,0,1,32,0Z"}))]]),eF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M253.88,108.11l-25.53-51a20,20,0,0,0-26.83-9L178.34,59.7,131.7,44.58a12.14,12.14,0,0,0-7.4,0L77.66,59.7,54.48,48.11a20,20,0,0,0-26.83,9L2.12,108.11a20,20,0,0,0,9,26.83l26.67,13.34,51.18,37.41A12.15,12.15,0,0,0,93,187.62l62,16a12.27,12.27,0,0,0,3,.38,12,12,0,0,0,8.48-3.52l52.62-52.62,25.83-12.92a20,20,0,0,0,8.95-26.83Zm-58.12,29.15-27.52-26a12,12,0,0,0-16.76.26c-9.66,9.74-25.06,16.81-40.81,9.55l38.19-37h22.72l25.81,51.63ZM47.32,71.37,60.59,78l-22,43.9-13.27-6.63Zm107,107.3L101.23,165l-42-30.66L85.17,82.5,128,68.61l1.69.55L90,107.68l-.13.12a20,20,0,0,0,3.4,31c20.95,13.39,46,12.07,66.33-2.73l19.2,18.15Zm63-56.77-22-43.9,13.27-6.63,21.95,43.9ZM118.55,219a12,12,0,0,1-14.62,8.62l-26.6-6.87a12,12,0,0,1-4.08-1.93L48.92,201a12,12,0,0,1,14.16-19.37l22.47,16.42,24.38,6.29A12,12,0,0,1,118.55,219Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,152l-40,40L96,176,40,136,72.68,70.63,128,56l55.32,14.63L183.6,72H144L98.34,116.29a8,8,0,0,0,1.38,12.42C117.23,139.9,141,139.13,160,120Z",opacity:"0.2"}),r.createElement("path",{d:"M254.3,107.91,228.78,56.85a16,16,0,0,0-21.47-7.15L182.44,62.13,130.05,48.27a8.14,8.14,0,0,0-4.1,0L73.56,62.13,48.69,49.7a16,16,0,0,0-21.47,7.15L1.7,107.9a16,16,0,0,0,7.15,21.47l27,13.51,55.49,39.63a8.06,8.06,0,0,0,2.71,1.25l64,16a8,8,0,0,0,7.6-2.1l55.07-55.08,26.42-13.21a16,16,0,0,0,7.15-21.46Zm-54.89,33.37L165,113.72a8,8,0,0,0-10.68.61C136.51,132.27,116.66,130,104,122L147.24,80h31.81l27.21,54.41ZM41.53,64,62,74.22,36.43,125.27,16,115.06Zm116,119.13L99.42,168.61l-49.2-35.14,28-56L128,64.28l9.8,2.59-45,43.68-.08.09a16,16,0,0,0,2.72,24.81c20.56,13.13,45.37,11,64.91-5L188,152.66Zm62-57.87-25.52-51L214.47,64,240,115.06Zm-87.75,92.67a8,8,0,0,1-7.75,6.06,8.13,8.13,0,0,1-1.95-.24L80.41,213.33a7.89,7.89,0,0,1-2.71-1.25L51.35,193.26a8,8,0,0,1,9.3-13l25.11,17.94L126,208.24A8,8,0,0,1,131.82,217.94Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M254.3,107.91,228.78,56.85a16,16,0,0,0-21.47-7.15L182.44,62.13,130.05,48.27a8.14,8.14,0,0,0-4.1,0L73.56,62.13,48.69,49.7a16,16,0,0,0-21.47,7.15L1.7,107.9a16,16,0,0,0,7.15,21.47l27,13.51,55.49,39.63a8.06,8.06,0,0,0,2.71,1.25l64,16a8,8,0,0,0,7.6-2.1l40-40,15.08-15.08,26.42-13.21a16,16,0,0,0,7.15-21.46Zm-54.89,33.37L165,113.72a8,8,0,0,0-10.68.61C136.51,132.27,116.66,130,104,122L147.24,80h31.81l27.21,54.41Zm-41.87,41.86L99.42,168.61l-49.2-35.14,28-56L128,64.28l9.8,2.59-45,43.68-.08.09a16,16,0,0,0,2.72,24.81c20.56,13.13,45.37,11,64.91-5L188,152.66Zm-25.72,34.8a8,8,0,0,1-7.75,6.06,8.13,8.13,0,0,1-1.95-.24L80.41,213.33a7.89,7.89,0,0,1-2.71-1.25L51.35,193.26a8,8,0,0,1,9.3-13l25.11,17.94L126,208.24A8,8,0,0,1,131.82,217.94Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M252.51,108.8,227,57.75a14,14,0,0,0-18.78-6.27L182.66,64.26,129.53,50.2a6.1,6.1,0,0,0-3.06,0L73.34,64.26,47.79,51.48A14,14,0,0,0,29,57.75L3.49,108.8a14,14,0,0,0,6.26,18.78L36.9,141.16l55.61,39.72a6,6,0,0,0,2,.94l64,16A6.08,6.08,0,0,0,160,198a6,6,0,0,0,4.24-1.76l55.31-55.31,26.7-13.35a14,14,0,0,0,6.26-18.78Zm-53,35.16-35.8-28.68a6,6,0,0,0-8,.45c-18.65,18.79-39.5,16.42-52.79,7.92a2,2,0,0,1-.94-1.5,1.9,1.9,0,0,1,.51-1.55L146.43,78h33.86l28.41,56.82ZM14.11,115.69a2,2,0,0,1,.11-1.52L39.74,63.11a2,2,0,0,1,1.8-1.1,2,2,0,0,1,.89.21l22.21,11.1L37.32,128l-22.21-11.1A2,2,0,0,1,14.11,115.69Zm144.05,69.67-59.6-14.9L47.66,134.1,76.84,75.75,128,62.21l14.8,3.92a5.92,5.92,0,0,0-3,1.57L94.1,112.05a14,14,0,0,0,2.39,21.72c20.22,12.92,44.75,10.49,63.8-5.89L191,152.5Zm83.73-69.67a2,2,0,0,1-1,1.16L218.68,128,191.36,73.32l22.21-11.1a2,2,0,0,1,1.53-.11,2,2,0,0,1,1.16,1l25.52,51.06A2,2,0,0,1,241.89,115.69Zm-112,101.76a6,6,0,0,1-7.27,4.37L80.89,211.39a5.88,5.88,0,0,1-2-.94L52.52,191.64a6,6,0,1,1,7-9.77L84.91,200l40.61,10.15A6,6,0,0,1,129.88,217.45Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M254.3,107.91,228.78,56.85a16,16,0,0,0-21.47-7.15L182.44,62.13,130.05,48.27a8.14,8.14,0,0,0-4.1,0L73.56,62.13,48.69,49.7a16,16,0,0,0-21.47,7.15L1.7,107.9a16,16,0,0,0,7.15,21.47l27,13.51,55.49,39.63a8.06,8.06,0,0,0,2.71,1.25l64,16a8,8,0,0,0,7.6-2.1l55.07-55.08,26.42-13.21a16,16,0,0,0,7.15-21.46Zm-54.89,33.37L165,113.72a8,8,0,0,0-10.68.61C136.51,132.27,116.66,130,104,122L147.24,80h31.81l27.21,54.41ZM41.53,64,62,74.22,36.43,125.27,16,115.06Zm116,119.13L99.42,168.61l-49.2-35.14,28-56L128,64.28l9.8,2.59-45,43.68-.08.09a16,16,0,0,0,2.72,24.81c20.56,13.13,45.37,11,64.91-5L188,152.66Zm62-57.87-25.52-51L214.47,64,240,115.06Zm-87.75,92.67a8,8,0,0,1-7.75,6.06,8.13,8.13,0,0,1-1.95-.24L80.41,213.33a7.89,7.89,0,0,1-2.71-1.25L51.35,193.26a8,8,0,0,1,9.3-13l25.11,17.94L126,208.24A8,8,0,0,1,131.82,217.94Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M250.73,109.69l-25.53-51a12,12,0,0,0-16.1-5.37L182.88,66.38,129,52.14a3.92,3.92,0,0,0-2,0L73.12,66.38,46.9,53.27a12,12,0,0,0-16.1,5.37L5.27,109.69a12,12,0,0,0,5.37,16.1l27.29,13.65,55.75,39.82a3.87,3.87,0,0,0,1.35.62l64,16a4,4,0,0,0,3.8-1l55.54-55.54,27-13.5a12,12,0,0,0,5.37-16.1Zm-51,36.95-37.2-29.8a4,4,0,0,0-5.34.3c-19.49,19.64-41.34,17.11-55.29,8.2a4.07,4.07,0,0,1-1.85-3,3.91,3.91,0,0,1,1.11-3.21L145.62,76h35.91l29.6,59.21ZM12.21,116.32a4,4,0,0,1,.22-3L38,62.22h0A4,4,0,0,1,41.54,60a4,4,0,0,1,1.78.43l24,12L38.21,130.64l-24-12A4,4,0,0,1,12.21,116.32Zm146.56,71.25L97.71,172.3l-52.6-37.57L75.45,74,128,60.14,157.72,68H144a4,4,0,0,0-2.79,1.13l-45.7,44.33a12,12,0,0,0,2.06,18.62c19.88,12.71,44.13,10,62.66-6.81L194,152.33Zm85-71.25a4,4,0,0,1-2,2.32l-24,12L188.68,72.43l24-12A4,4,0,0,1,218,62.22l25.53,51.05A4,4,0,0,1,243.79,116.32ZM127.94,217a4,4,0,0,1-3.88,3,4.09,4.09,0,0,1-1-.12L81.38,209.45a4,4,0,0,1-1.36-.62L53.68,190a4,4,0,0,1,4.65-6.51l25.72,18.37,41,10.25A4,4,0,0,1,127.94,217Z"}))]]),tF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M204.73,51.85A108.07,108.07,0,0,0,20,128v56a28,28,0,0,0,28,28H64a28,28,0,0,0,28-28V144a28,28,0,0,0-28-28H44.84A84.05,84.05,0,0,1,128,44h.64a83.7,83.7,0,0,1,82.52,72H192a28,28,0,0,0-28,28v40a28,28,0,0,0,28,28h19.6A20,20,0,0,1,192,228H136a12,12,0,0,0,0,24h56a44.05,44.05,0,0,0,44-44V128A107.34,107.34,0,0,0,204.73,51.85ZM64,140a4,4,0,0,1,4,4v40a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V140Zm124,44V144a4,4,0,0,1,4-4h20v48H192A4,4,0,0,1,188,184Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M80,144v40a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V128H64A16,16,0,0,1,80,144Zm112-16a16,16,0,0,0-16,16v40a16,16,0,0,0,16,16h32V128Z",opacity:"0.2"}),r.createElement("path",{d:"M201.89,54.66A104.08,104.08,0,0,0,24,128v56a24,24,0,0,0,24,24H64a24,24,0,0,0,24-24V144a24,24,0,0,0-24-24H40.36A88.12,88.12,0,0,1,190.54,65.93,87.39,87.39,0,0,1,215.65,120H192a24,24,0,0,0-24,24v40a24,24,0,0,0,24,24h24a24,24,0,0,1-24,24H136a8,8,0,0,0,0,16h56a40,40,0,0,0,40-40V128A103.41,103.41,0,0,0,201.89,54.66ZM64,136a8,8,0,0,1,8,8v40a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V136Zm128,56a8,8,0,0,1-8-8V144a8,8,0,0,1,8-8h24v56Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,128v80a40,40,0,0,1-40,40H136a8,8,0,0,1,0-16h56a24,24,0,0,0,24-24H192a24,24,0,0,1-24-24V144a24,24,0,0,1,24-24h23.65A88,88,0,0,0,66,65.54,87.29,87.29,0,0,0,40.36,120H64a24,24,0,0,1,24,24v40a24,24,0,0,1-24,24H48a24,24,0,0,1-24-24V128A104.11,104.11,0,0,1,201.89,54.66,103.41,103.41,0,0,1,232,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200.47,56.07A101.37,101.37,0,0,0,128.77,26H128A102,102,0,0,0,26,128v56a22,22,0,0,0,22,22H64a22,22,0,0,0,22-22V144a22,22,0,0,0-22-22H38.2A90,90,0,0,1,128,38h.68a89.71,89.71,0,0,1,89.13,84H192a22,22,0,0,0-22,22v40a22,22,0,0,0,22,22h26v2a26,26,0,0,1-26,26H136a6,6,0,0,0,0,12h56a38,38,0,0,0,38-38V128A101.44,101.44,0,0,0,200.47,56.07ZM64,134a10,10,0,0,1,10,10v40a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V134Zm118,50V144a10,10,0,0,1,10-10h26v60H192A10,10,0,0,1,182,184Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M201.89,54.66A103.43,103.43,0,0,0,128.79,24H128A104,104,0,0,0,24,128v56a24,24,0,0,0,24,24H64a24,24,0,0,0,24-24V144a24,24,0,0,0-24-24H40.36A88.12,88.12,0,0,1,190.54,65.93,87.39,87.39,0,0,1,215.65,120H192a24,24,0,0,0-24,24v40a24,24,0,0,0,24,24h24a24,24,0,0,1-24,24H136a8,8,0,0,0,0,16h56a40,40,0,0,0,40-40V128A103.41,103.41,0,0,0,201.89,54.66ZM64,136a8,8,0,0,1,8,8v40a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V136Zm128,56a8,8,0,0,1-8-8V144a8,8,0,0,1,8-8h24v56Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M199.05,57.48A100.07,100.07,0,0,0,28,128v56a20,20,0,0,0,20,20H64a20,20,0,0,0,20-20V144a20,20,0,0,0-20-20H36.08A92,92,0,0,1,128,36h.7a91.75,91.75,0,0,1,91.22,88H192a20,20,0,0,0-20,20v40a20,20,0,0,0,20,20h28v4a28,28,0,0,1-28,28H136a4,4,0,0,0,0,8h56a36,36,0,0,0,36-36V128A99.44,99.44,0,0,0,199.05,57.48ZM64,132a12,12,0,0,1,12,12v40a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V132Zm116,52V144a12,12,0,0,1,12-12h28v64H192A12,12,0,0,1,180,184Z"}))]]),aF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M178,36c-20.09,0-37.92,7.93-50,21.56C115.92,43.93,98.09,36,78,36a66.08,66.08,0,0,0-66,66c0,72.34,105.81,130.14,110.31,132.57a12,12,0,0,0,11.38,0C138.19,232.14,244,174.34,244,102A66.08,66.08,0,0,0,178,36Zm-5.49,142.36A328.69,328.69,0,0,1,128,210.16a328.69,328.69,0,0,1-44.51-31.8C61.82,159.77,36,131.42,36,102A42,42,0,0,1,78,60c17.8,0,32.7,9.4,38.89,24.54a12,12,0,0,0,22.22,0C145.3,69.4,160.2,60,178,60a42,42,0,0,1,42,42C220,131.42,194.18,159.77,172.51,178.36Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,102c0,66-104,122-104,122S24,168,24,102A54,54,0,0,1,78,48c22.59,0,41.94,12.31,50,32,8.06-19.69,27.41-32,50-32A54,54,0,0,1,232,102Z",opacity:"0.2"}),r.createElement("path",{d:"M178,40c-20.65,0-38.73,8.88-50,23.89C116.73,48.88,98.65,40,78,40a62.07,62.07,0,0,0-62,62c0,70,103.79,126.66,108.21,129a8,8,0,0,0,7.58,0C136.21,228.66,240,172,240,102A62.07,62.07,0,0,0,178,40ZM128,214.8C109.74,204.16,32,155.69,32,102A46.06,46.06,0,0,1,78,56c19.45,0,35.78,10.36,42.6,27a8,8,0,0,0,14.8,0c6.82-16.67,23.15-27,42.6-27a46.06,46.06,0,0,1,46,46C224,155.61,146.24,204.15,128,214.8Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,102c0,70-103.79,126.66-108.21,129a8,8,0,0,1-7.58,0C119.79,228.66,16,172,16,102A62.07,62.07,0,0,1,78,40c20.65,0,38.73,8.88,50,23.89C139.27,48.88,157.35,40,178,40A62.07,62.07,0,0,1,240,102Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M178,42c-21,0-39.26,9.47-50,25.34C117.26,51.47,99,42,78,42a60.07,60.07,0,0,0-60,60c0,29.2,18.2,59.59,54.1,90.31a334.68,334.68,0,0,0,53.06,37,6,6,0,0,0,5.68,0,334.68,334.68,0,0,0,53.06-37C219.8,161.59,238,131.2,238,102A60.07,60.07,0,0,0,178,42ZM128,217.11C111.59,207.64,30,157.72,30,102A48.05,48.05,0,0,1,78,54c20.28,0,37.31,10.83,44.45,28.27a6,6,0,0,0,11.1,0C140.69,64.83,157.72,54,178,54a48.05,48.05,0,0,1,48,48C226,157.72,144.41,207.64,128,217.11Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M178,40c-20.65,0-38.73,8.88-50,23.89C116.73,48.88,98.65,40,78,40a62.07,62.07,0,0,0-62,62c0,70,103.79,126.66,108.21,129a8,8,0,0,0,7.58,0C136.21,228.66,240,172,240,102A62.07,62.07,0,0,0,178,40ZM128,214.8C109.74,204.16,32,155.69,32,102A46.06,46.06,0,0,1,78,56c19.45,0,35.78,10.36,42.6,27a8,8,0,0,0,14.8,0c6.82-16.67,23.15-27,42.6-27a46.06,46.06,0,0,1,46,46C224,155.61,146.24,204.15,128,214.8Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M178,44c-21.44,0-39.92,10.19-50,27.07C117.92,54.19,99.44,44,78,44a58.07,58.07,0,0,0-58,58c0,28.59,18,58.47,53.4,88.79a333.81,333.81,0,0,0,52.7,36.73,4,4,0,0,0,3.8,0,333.81,333.81,0,0,0,52.7-36.73C218,160.47,236,130.59,236,102A58.07,58.07,0,0,0,178,44ZM128,219.42c-14-8-100-59.35-100-117.42A50.06,50.06,0,0,1,78,52c21.11,0,38.85,11.31,46.3,29.51a4,4,0,0,0,7.4,0C139.15,63.31,156.89,52,178,52a50.06,50.06,0,0,1,50,50C228,160,142,211.46,128,219.42Z"}))]]),nF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V208a20,20,0,0,0,20,20H88a20,20,0,0,0,20-20V164h40v12a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V56A12,12,0,0,0,216,44Zm-12,64H172V68h32ZM84,68v40H52V68Zm0,136H52V132H84Zm24-64V68h40v72Zm64,32V132h32v40Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,56v64H160V56ZM40,208a8,8,0,0,0,8,8H88a8,8,0,0,0,8-8V120H40Z",opacity:"0.2"}),r.createElement("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48Zm-8,64H168V64h40ZM88,64v48H48V64Zm0,144H48V128H88Zm16-64V64h48v80Zm64,32V128h40v48Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,56v96a8,8,0,0,1-8,8H112a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h40A8,8,0,0,1,160,56Zm64-8H184a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V56A8,8,0,0,0,224,48Zm4,80H180a4,4,0,0,0-4,4v44a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V132A4,4,0,0,0,228,128ZM80,48H40a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4H84a4,4,0,0,0,4-4V56A8,8,0,0,0,80,48Zm4,80H36a4,4,0,0,0-4,4v76a16,16,0,0,0,16,16H72a16,16,0,0,0,16-16V132A4,4,0,0,0,84,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,50H40a6,6,0,0,0-6,6V208a14,14,0,0,0,14,14H88a14,14,0,0,0,14-14V158h52v18a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V56A6,6,0,0,0,216,50Zm-6,64H166V62h44ZM90,62v52H46V62Zm0,146a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V126H90Zm12-62V62h52v84Zm106,32H168a2,2,0,0,1-2-2V126h44v50A2,2,0,0,1,208,178Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48ZM88,208H48V128H88Zm0-96H48V64H88Zm64,32H104V64h48Zm56,32H168V128h40Zm0-64H168V64h40Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,52H40a4,4,0,0,0-4,4V208a12,12,0,0,0,12,12H88a12,12,0,0,0,12-12V156h56v20a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V56A4,4,0,0,0,216,52ZM92,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V124H92Zm0-92H44V60H92Zm64,32H100V60h56Zm56,28a4,4,0,0,1-4,4H168a4,4,0,0,1-4-4V124h48Zm0-60H164V60h48Z"}))]]),rF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M180,232a12,12,0,0,1-12,12H88a12,12,0,0,1,0-24h80A12,12,0,0,1,180,232Zm40-128a91.51,91.51,0,0,1-35.17,72.35A12.26,12.26,0,0,0,180,186v2a20,20,0,0,1-20,20H96a20,20,0,0,1-20-20v-2a12,12,0,0,0-4.7-9.51A91.57,91.57,0,0,1,36,104.52C35.73,54.69,76,13.2,125.79,12A92,92,0,0,1,220,104Zm-24,0a68,68,0,0,0-69.65-68C89.56,36.88,59.8,67.55,60,104.38a67.71,67.71,0,0,0,26.1,53.19A35.87,35.87,0,0,1,100,184h56.1A36.13,36.13,0,0,1,170,157.49,67.68,67.68,0,0,0,196,104Zm-20.07-5.32a48.5,48.5,0,0,0-31.91-40,12,12,0,0,0-8,22.62,24.31,24.31,0,0,1,16.09,20,12,12,0,0,0,23.86-2.64Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,104a79.86,79.86,0,0,1-30.59,62.92A24.29,24.29,0,0,0,168,186v6a8,8,0,0,1-8,8H96a8,8,0,0,1-8-8v-6a24.11,24.11,0,0,0-9.3-19A79.87,79.87,0,0,1,48,104.45C47.76,61.09,82.72,25,126.07,24A80,80,0,0,1,208,104Z",opacity:"0.2"}),r.createElement("path",{d:"M176,232a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,232Zm40-128a87.55,87.55,0,0,1-33.64,69.21A16.24,16.24,0,0,0,176,186v6a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16v-6a16,16,0,0,0-6.23-12.66A87.59,87.59,0,0,1,40,104.49C39.74,56.83,78.26,17.14,125.88,16A88,88,0,0,1,216,104Zm-16,0a72,72,0,0,0-73.74-72c-39,.92-70.47,33.39-70.26,72.39a71.65,71.65,0,0,0,27.64,56.3A32,32,0,0,1,96,186v6h64v-6a32.15,32.15,0,0,1,12.47-25.35A71.65,71.65,0,0,0,200,104Zm-16.11-9.34a57.6,57.6,0,0,0-46.56-46.55,8,8,0,0,0-2.66,15.78c16.57,2.79,30.63,16.85,33.44,33.45A8,8,0,0,0,176,104a9,9,0,0,0,1.35-.11A8,8,0,0,0,183.89,94.66Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,232a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,232Zm40-128a87.55,87.55,0,0,1-33.64,69.21A16.24,16.24,0,0,0,176,186v6a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16v-6a16,16,0,0,0-6.23-12.66A87.59,87.59,0,0,1,40,104.49C39.74,56.83,78.26,17.14,125.88,16A88,88,0,0,1,216,104Zm-32.11-9.34a57.6,57.6,0,0,0-46.56-46.55,8,8,0,0,0-2.66,15.78c16.57,2.79,30.63,16.85,33.44,33.45A8,8,0,0,0,176,104a9,9,0,0,0,1.35-.11A8,8,0,0,0,183.89,94.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M174,232a6,6,0,0,1-6,6H88a6,6,0,0,1,0-12h80A6,6,0,0,1,174,232Zm40-128a85.56,85.56,0,0,1-32.88,67.64A18.23,18.23,0,0,0,174,186v6a14,14,0,0,1-14,14H96a14,14,0,0,1-14-14v-6a18,18,0,0,0-7-14.23h0a85.59,85.59,0,0,1-33-67.24C41.74,57.91,79.39,19.12,125.93,18A86,86,0,0,1,214,104Zm-12,0a74,74,0,0,0-75.79-74C86.17,31,53.78,64.34,54,104.42a73.67,73.67,0,0,0,28.4,57.87A29.92,29.92,0,0,1,94,186v6a2,2,0,0,0,2,2h64a2,2,0,0,0,2-2v-6a30.18,30.18,0,0,1,11.7-23.78A73.59,73.59,0,0,0,202,104Zm-20.08-9A55.58,55.58,0,0,0,137,50.08a6,6,0,1,0-2,11.84C152.38,64.84,167.13,79.6,170.08,97a6,6,0,0,0,5.91,5,6.87,6.87,0,0,0,1-.08A6,6,0,0,0,181.92,95Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,232a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,232Zm40-128a87.55,87.55,0,0,1-33.64,69.21A16.24,16.24,0,0,0,176,186v6a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16v-6a16,16,0,0,0-6.23-12.66A87.59,87.59,0,0,1,40,104.49C39.74,56.83,78.26,17.14,125.88,16A88,88,0,0,1,216,104Zm-16,0a72,72,0,0,0-73.74-72c-39,.92-70.47,33.39-70.26,72.39a71.65,71.65,0,0,0,27.64,56.3A32,32,0,0,1,96,186v6h64v-6a32.15,32.15,0,0,1,12.47-25.35A71.65,71.65,0,0,0,200,104Zm-16.11-9.34a57.6,57.6,0,0,0-46.56-46.55,8,8,0,0,0-2.66,15.78c16.57,2.79,30.63,16.85,33.44,33.45A8,8,0,0,0,176,104a9,9,0,0,0,1.35-.11A8,8,0,0,0,183.89,94.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M172,232a4,4,0,0,1-4,4H88a4,4,0,0,1,0-8h80A4,4,0,0,1,172,232Zm40-128a83.59,83.59,0,0,1-32.11,66.06A20.2,20.2,0,0,0,172,186v6a12,12,0,0,1-12,12H96a12,12,0,0,1-12-12v-6a20,20,0,0,0-7.76-15.81A83.58,83.58,0,0,1,44,104.47C43.75,59,80.52,21.09,126,20a84,84,0,0,1,86,84Zm-8,0a76,76,0,0,0-77.83-76C85,29,51.77,63.27,52,104.43a75.62,75.62,0,0,0,29.17,59.43A28,28,0,0,1,92,186v6a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4v-6a28.14,28.14,0,0,1,10.94-22.2A75.62,75.62,0,0,0,204,104ZM136.66,52.06a4,4,0,0,0-1.32,7.88C153.53,63,169,78.45,172.06,96.67A4,4,0,0,0,176,100a3.88,3.88,0,0,0,.67-.06,4,4,0,0,0,3.27-4.61A53.51,53.51,0,0,0,136.66,52.06Z"}))]]),sF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M219.71,117.38a12,12,0,0,0-7.25-8.52L161.28,88.39l10.59-70.61a12,12,0,0,0-20.64-10l-112,120a12,12,0,0,0,4.31,19.33l51.18,20.47L84.13,238.22a12,12,0,0,0,20.64,10l112-120A12,12,0,0,0,219.71,117.38ZM113.6,203.55l6.27-41.77a12,12,0,0,0-7.41-12.92L68.74,131.37,142.4,52.45l-6.27,41.77a12,12,0,0,0,7.41,12.92l43.72,17.49Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),r.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.84,118.63a6,6,0,0,0-3.73-4.25L150.88,92.17l15-75a6,6,0,0,0-10.27-5.27l-112,120a6,6,0,0,0,2.28,9.71l59.23,22.21-15,75a6,6,0,0,0,3.14,6.52A6.07,6.07,0,0,0,96,246a6,6,0,0,0,4.39-1.91l112-120A6,6,0,0,0,213.84,118.63ZM106,220.46l11.85-59.28a6,6,0,0,0-3.77-6.8l-55.6-20.85,91.46-98L138.12,94.82a6,6,0,0,0,3.77,6.8l55.6,20.85Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M211.89,119.09a4,4,0,0,0-2.49-2.84l-60.81-22.8,15.33-76.67a4,4,0,0,0-6.84-3.51l-112,120a4,4,0,0,0-1,3.64,4,4,0,0,0,2.49,2.84l60.81,22.8L92.08,239.22a4,4,0,0,0,6.84,3.51l112-120A4,4,0,0,0,211.89,119.09ZM102.68,227l13.24-66.2a4,4,0,0,0-2.52-4.53L55,134.36,153.32,29l-13.24,66.2a4,4,0,0,0,2.52,4.53L201,121.64Z"}))]]),lF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM40,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24ZM216,180H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,64V192H40V64Z",opacity:"0.2"}),r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM192,184H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM40,68H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8ZM216,188H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"}))]]),iF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H128a12,12,0,0,1,0-24h88A12,12,0,0,1,228,128ZM128,76h88a12,12,0,0,0,0-24H128a12,12,0,0,0,0,24Zm88,104H128a12,12,0,0,0,0,24h88a12,12,0,0,0,0-24ZM79.51,39.51,56,63l-7.51-7.52a12,12,0,0,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Zm0,64L56,127l-7.51-7.52a12,12,0,1,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Zm0,64L56,191l-7.51-7.52a12,12,0,1,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,64V192H128V64Z",opacity:"0.2"}),r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H128a8,8,0,0,1,0-16h88A8,8,0,0,1,224,128ZM128,72h88a8,8,0,0,0,0-16H128a8,8,0,0,0,0,16Zm88,112H128a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16ZM82.34,42.34,56,68.69,45.66,58.34A8,8,0,0,0,34.34,69.66l16,16a8,8,0,0,0,11.32,0l32-32A8,8,0,0,0,82.34,42.34Zm0,64L56,132.69,45.66,122.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Zm0,64L56,196.69,45.66,186.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM117.66,149.66l-32,32a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L80,164.69l26.34-26.35a8,8,0,0,1,11.32,11.32Zm0-64-32,32a8,8,0,0,1-11.32,0l-16-16A8,8,0,0,1,69.66,90.34L80,100.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM192,168H144a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm0-64H144a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H128a6,6,0,0,1,0-12h88A6,6,0,0,1,222,128ZM128,70h88a6,6,0,0,0,0-12H128a6,6,0,0,0,0,12Zm88,116H128a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12ZM83.76,43.76,56,71.51,44.24,59.76a6,6,0,0,0-8.48,8.48l16,16a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0-8.48-8.48Zm0,64L56,135.51,44.24,123.76a6,6,0,1,0-8.48,8.48l16,16a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0-8.48-8.48Zm0,64L56,199.51,44.24,187.76a6,6,0,0,0-8.48,8.48l16,16a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0-8.48-8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H128a8,8,0,0,1,0-16h88A8,8,0,0,1,224,128ZM128,72h88a8,8,0,0,0,0-16H128a8,8,0,0,0,0,16Zm88,112H128a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16ZM82.34,42.34,56,68.69,45.66,58.34A8,8,0,0,0,34.34,69.66l16,16a8,8,0,0,0,11.32,0l32-32A8,8,0,0,0,82.34,42.34Zm0,64L56,132.69,45.66,122.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Zm0,64L56,196.69,45.66,186.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H128a4,4,0,0,1,0-8h88A4,4,0,0,1,220,128ZM128,68h88a4,4,0,0,0,0-8H128a4,4,0,0,0,0,8Zm88,120H128a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8ZM85.17,45.17,56,74.34,42.83,61.17a4,4,0,0,0-5.66,5.66l16,16a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0-5.66-5.66Zm0,64L56,138.34,42.83,125.17a4,4,0,1,0-5.66,5.66l16,16a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0-5.66-5.66Zm0,64L56,202.34,42.83,189.17a4,4,0,0,0-5.66,5.66l16,16a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0-5.66-5.66Z"}))]]),oF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M209.84,47.44A91.42,91.42,0,0,0,144.62,20h-.35A91.44,91.44,0,0,0,79.15,47L17.76,109.17a20,20,0,0,0,.08,28.21L46.5,166a19.89,19.89,0,0,0,14.15,5.86h.11a19.86,19.86,0,0,0,14.2-6l60.87-62.39a12.07,12.07,0,0,1,16.77-.12,11.63,11.63,0,0,1,3.5,8.35,12.85,12.85,0,0,1-3.66,9.11L90.19,181a20,20,0,0,0-.21,28.5l28.66,28.66a20.08,20.08,0,0,0,28.15.14l61.76-60.44.09-.09C244.65,141.78,245.18,83.31,209.84,47.44ZM60.62,146.21l-23-23L55.81,104.8l22.88,22.88Zm72.2,72.18-23-23,18.61-18,22.88,22.87Zm58.89-57.62L168.48,183.5,145.7,160.73,169.21,138l.15-.14a37,37,0,0,0,10.74-26.37,35.44,35.44,0,0,0-10.85-25.41,36.2,36.2,0,0,0-50.44.48l-.1.11L95.46,110.49,72.68,87.72l23.5-23.8A67.55,67.55,0,0,1,144.27,44h.26a67.62,67.62,0,0,1,48.21,20.29C218.85,90.78,218.38,134.05,191.71,160.77Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168.36,200.36l-30,29.35a8,8,0,0,1-11.26-.05L98.46,201a8,8,0,0,1,.08-11.4l30-29Zm-142-82.76a8,8,0,0,0,0,11.28L55,157.54a8,8,0,0,0,11.38-.06l29.18-29.92L55.77,87.77Z",opacity:"0.2"}),r.createElement("path",{d:"M207,50.25A87.46,87.46,0,0,0,144.6,24h-.33A87.48,87.48,0,0,0,82,49.81L50.11,82.11h0L20.61,112a16,16,0,0,0,.06,22.56l28.66,28.66a15.92,15.92,0,0,0,11.32,4.69h.09a16,16,0,0,0,11.36-4.82L133,100.69a16.08,16.08,0,0,1,22.41-.21,15.6,15.6,0,0,1,4.73,11.19,16.89,16.89,0,0,1-4.85,12L93,183.88a16,16,0,0,0-.17,22.79l28.66,28.66a16.06,16.06,0,0,0,22.52.12L205.81,175C240.26,140.5,240.79,84.56,207,50.25ZM60.65,151.89,32,123.24,55.8,99.12l28.52,28.52ZM132.79,224l-28.68-28.65,24.38-23.57L157,200.32Zm61.76-60.44-26.11,25.54L140,160.68l26.44-25.57.1-.09a33,33,0,0,0,9.57-23.5A31.44,31.44,0,0,0,166.47,89a32.2,32.2,0,0,0-44.9.5L95.49,116.18,67,87.74,93.35,61.09A71.51,71.51,0,0,1,144.27,40h.27a71.55,71.55,0,0,1,51.05,21.48C223.25,89.55,222.75,135.38,194.55,163.58Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M207,50.25A87.46,87.46,0,0,0,144.6,24h-.33A87.48,87.48,0,0,0,82,49.81L20.61,112a16,16,0,0,0,.06,22.56l28.66,28.66a15.92,15.92,0,0,0,11.32,4.69h.09a16,16,0,0,0,11.36-4.82L133,100.69a16.08,16.08,0,0,1,22.41-.21,15.6,15.6,0,0,1,4.73,11.19,16.89,16.89,0,0,1-4.85,12L93,183.88a16,16,0,0,0-.17,22.79l28.66,28.66a16.06,16.06,0,0,0,22.52.12L205.81,175C240.26,140.5,240.79,84.56,207,50.25ZM60.65,151.89,32,123.24,61.42,93.43,89.9,121.91ZM132.79,224l-28.68-28.65,30.13-29.13,28.49,28.48Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M205.56,51.65A85.5,85.5,0,0,0,144.6,26h-.33A85.45,85.45,0,0,0,83.42,51.22L22,113.39a14,14,0,0,0,.06,19.74l28.66,28.66a13.89,13.89,0,0,0,9.9,4.1h.08a13.9,13.9,0,0,0,9.94-4.21l60.87-62.4A18.1,18.1,0,0,1,156.76,99a17.63,17.63,0,0,1,5.34,12.62,19,19,0,0,1-5.44,13.44L94.37,185.31a14,14,0,0,0-.15,19.95l28.67,28.66a14.05,14.05,0,0,0,19.7.1l61.8-60.49C238.07,139.86,238.6,85.18,205.56,51.65ZM62.08,153.29a2,2,0,0,1-1.42.6,2.15,2.15,0,0,1-1.42-.58L30.57,124.65a2,2,0,0,1,0-2.82L55.79,96.28l31.34,31.34Zm72.11,72.15a2,2,0,0,1-2.82,0l-28.66-28.66a2,2,0,0,1-.59-1.43,2,2,0,0,1,.6-1.41L128.51,169l31.34,31.33ZM196,165l-27.52,26.94-31.29-31.29,27.9-27,.07-.08a30.93,30.93,0,0,0,9-22.06,29.47,29.47,0,0,0-9-21.15,30.17,30.17,0,0,0-42.08.46L95.51,119,64.22,87.74,91.94,59.68A73.47,73.47,0,0,1,144.27,38h.28A73.52,73.52,0,0,1,197,60.08C225.44,88.92,224.94,136,196,165Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M207,50.25A87.46,87.46,0,0,0,144.6,24h-.33A87.48,87.48,0,0,0,82,49.81L20.61,112a16,16,0,0,0,.06,22.56l28.66,28.66a15.92,15.92,0,0,0,11.32,4.69h.09a16,16,0,0,0,11.36-4.82L133,100.69a16.08,16.08,0,0,1,22.41-.21,15.6,15.6,0,0,1,4.73,11.19,16.89,16.89,0,0,1-4.85,12L93,183.88a16,16,0,0,0-.17,22.79l28.66,28.66a16.06,16.06,0,0,0,22.52.12L205.81,175C240.26,140.5,240.79,84.56,207,50.25ZM60.65,151.89,32,123.24,55.8,99.12l28.52,28.52ZM132.79,224l-28.68-28.65,24.38-23.57L157,200.32Zm61.76-60.44-26.11,25.54L140,160.68l26.44-25.57.1-.09a33,33,0,0,0,9.57-23.5A31.44,31.44,0,0,0,166.47,89a32.2,32.2,0,0,0-44.9.5L95.49,116.18,67,87.74,93.35,61.09A71.51,71.51,0,0,1,144.27,40h.27a71.55,71.55,0,0,1,51.05,21.48C223.25,89.55,222.75,135.38,194.55,163.58Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M204.13,53.06A83.41,83.41,0,0,0,144.59,28h-.32A83.46,83.46,0,0,0,84.85,52.62L23.46,114.8a12,12,0,0,0,0,16.92l28.67,28.66a11.89,11.89,0,0,0,8.48,3.51h.07a12,12,0,0,0,8.52-3.61l60.89-62.42a20.1,20.1,0,0,1,28-.27,19.54,19.54,0,0,1,6,14,20.87,20.87,0,0,1-6,14.86L95.76,186.75a12,12,0,0,0-.12,17.09L124.3,232.5a12,12,0,0,0,16.89.08L203,172.12C235.88,139.21,236.4,85.8,204.13,53.06ZM63.51,154.69a3.93,3.93,0,0,1-2.83,1.2h0a4,4,0,0,1-2.83-1.17L29.16,126.06a4,4,0,0,1,0-5.64l26.63-27L89.94,127.6Zm72.08,72.18a4,4,0,0,1-5.63,0l-28.67-28.66a4,4,0,0,1,0-5.69l27.2-26.3,34.16,34.15Zm61.76-60.44-28.94,28.32-34.12-34.12,29.41-28.44a29,29,0,0,0,8.4-20.64,27.51,27.51,0,0,0-8.41-19.72,28.14,28.14,0,0,0-39.25.41L95.53,121.87,61.4,87.75,90.52,58.26A75.51,75.51,0,0,1,144.27,36h.29a75.53,75.53,0,0,1,53.87,22.67C227.63,88.3,227.13,136.65,197.35,166.43Z"}))]]),cF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),r.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),uF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M252,120a52.06,52.06,0,0,0-52-52H160.32c-3.44-.21-52.6-4-99.46-43.3A20,20,0,0,0,28,40V200a19.8,19.8,0,0,0,11.54,18.12,19.86,19.86,0,0,0,21.32-2.81A192.92,192.92,0,0,1,144,174.47v26.2a20,20,0,0,0,8.9,16.64,11.35,11.35,0,0,0,1.39.8l14.44,7.06A20,20,0,0,0,198.37,213l11.09-41.82A52.07,52.07,0,0,0,252,120ZM52,191.63V48.4c36.17,28.07,72.17,38.1,92,41.66V150C124.17,153.52,88.17,163.55,52,191.63ZM176.39,202.2,168,198.1V172h16.4ZM200,148H168V92h32a28,28,0,1,1,0,56Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,120a40,40,0,0,1-40,40H160V80h40A40,40,0,0,1,240,120Z",opacity:"0.2"}),r.createElement("path",{d:"M248,120a48.05,48.05,0,0,0-48-48H160.2c-2.91-.17-53.62-3.74-101.91-44.24A16,16,0,0,0,32,40V200a16,16,0,0,0,26.29,12.25c37.77-31.68,77-40.76,93.71-43.3v31.72A16,16,0,0,0,159.12,214l11,7.33A16,16,0,0,0,194.5,212l11.77-44.36A48.07,48.07,0,0,0,248,120ZM48,199.93V40h0c42.81,35.91,86.63,45,104,47.24v65.48C134.65,155,90.84,164.07,48,199.93Zm131,8,0,.11-11-7.33V168h21.6ZM200,152H168V88h32a32,32,0,1,1,0,64Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,72H160.2c-2.91-.17-53.62-3.74-101.91-44.24A16,16,0,0,0,32,40V200a16,16,0,0,0,26.29,12.25c37.77-31.68,77-40.76,93.71-43.3v31.72A16,16,0,0,0,159.12,214l11,7.33A16,16,0,0,0,194.5,212l11.77-44.36A48,48,0,0,0,200,72ZM179,207.89l0,.11-11-7.33V168h21.6ZM200,152H168V88h32a32,32,0,1,1,0,64Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M246,120a46.05,46.05,0,0,0-46-46H160.15c-2.58-.15-54.1-3.57-103.15-44.71A14,14,0,0,0,34,40V200a13.85,13.85,0,0,0,8.07,12.68A14.16,14.16,0,0,0,48,214a13.9,13.9,0,0,0,9-3.3c40-33.52,81.57-42,97-44.07v34a14,14,0,0,0,6.23,11.65l11,7.33a14,14,0,0,0,21.32-8.17l12.13-45.71A46.07,46.07,0,0,0,246,120ZM49.29,201.52A2,2,0,0,1,46,200V40a1.9,1.9,0,0,1,1.15-1.8A2.08,2.08,0,0,1,48,38a1.91,1.91,0,0,1,1.26.48c44,36.92,89,45.19,104.71,47v69C138.29,156.33,93.3,164.61,49.29,201.52Zm131.64,7a2,2,0,0,1-3.05,1.18l-11-7.33a2,2,0,0,1-.89-1.67V166h26.2ZM200,154H166V86h34a34,34,0,1,1,0,68Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M248,120a48.05,48.05,0,0,0-48-48H160.2c-2.91-.17-53.62-3.74-101.91-44.24A16,16,0,0,0,32,40V200a16,16,0,0,0,26.29,12.25c37.77-31.68,77-40.76,93.71-43.3v31.72A16,16,0,0,0,159.12,214l11,7.33A16,16,0,0,0,194.5,212l11.77-44.36A48.07,48.07,0,0,0,248,120ZM48,199.93V40h0c42.81,35.91,86.63,45,104,47.24v65.48C134.65,155,90.84,164.07,48,199.93Zm131,8,0,.11-11-7.33V168h21.6ZM200,152H168V88h32a32,32,0,1,1,0,64Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,76H160.1c-2.19-.11-54.55-3.38-104.38-45.17A12,12,0,0,0,36,40V200a11.88,11.88,0,0,0,6.92,10.87A12.18,12.18,0,0,0,48,212a11.93,11.93,0,0,0,7.69-2.83c42.46-35.62,86.76-43.25,100.28-44.8v36.29a12,12,0,0,0,5.34,10l11,7.33a12,12,0,0,0,18.28-7l12.49-47.09A44,44,0,0,0,200,76Zm-44,80.3c-13.53,1.35-60,8.62-105.42,46.75A4,4,0,0,1,44,200V40a4,4,0,0,1,2.3-3.62A4.32,4.32,0,0,1,48.05,36a3.88,3.88,0,0,1,2.53,1C96,75.09,142.47,82.36,156,83.71ZM182.87,209a4,4,0,0,1-6.1,2.36l-11-7.33a4,4,0,0,1-1.78-3.33V164h30.8ZM200,156H164V84h36a36,36,0,0,1,0,72Z"}))]]),dF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,180a52.06,52.06,0,0,0,52-52V64A52,52,0,0,0,76,64v64A52.06,52.06,0,0,0,128,180ZM100,64a28,28,0,0,1,56,0v64a28,28,0,0,1-56,0Zm40,155.22V240a12,12,0,0,1-24,0V219.22A92.14,92.14,0,0,1,36,128a12,12,0,0,1,24,0,68,68,0,0,0,136,0,12,12,0,0,1,24,0A92.14,92.14,0,0,1,140,219.22Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,64v64a40,40,0,0,1-40,40h0a40,40,0,0,1-40-40V64a40,40,0,0,1,40-40h0A40,40,0,0,1,168,64Z",opacity:"0.2"}),r.createElement("path",{d:"M128,176a48.05,48.05,0,0,0,48-48V64a48,48,0,0,0-96,0v64A48.05,48.05,0,0,0,128,176ZM96,64a32,32,0,0,1,64,0v64a32,32,0,0,1-64,0Zm40,143.6V240a8,8,0,0,1-16,0V207.6A80.11,80.11,0,0,1,48,128a8,8,0,0,1,16,0,64,64,0,0,0,128,0,8,8,0,0,1,16,0A80.11,80.11,0,0,1,136,207.6Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M80,128V64a48,48,0,0,1,96,0v64a48,48,0,0,1-96,0Zm128,0a8,8,0,0,0-16,0,64,64,0,0,1-128,0,8,8,0,0,0-16,0,80.11,80.11,0,0,0,72,79.6V240a8,8,0,0,0,16,0V207.6A80.11,80.11,0,0,0,208,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,174a46.06,46.06,0,0,0,46-46V64a46,46,0,0,0-92,0v64A46.06,46.06,0,0,0,128,174ZM94,64a34,34,0,0,1,68,0v64a34,34,0,0,1-68,0Zm40,141.75V240a6,6,0,0,1-12,0V205.75A78.09,78.09,0,0,1,50,128a6,6,0,0,1,12,0,66,66,0,0,0,132,0,6,6,0,0,1,12,0A78.09,78.09,0,0,1,134,205.75Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,176a48.05,48.05,0,0,0,48-48V64a48,48,0,0,0-96,0v64A48.05,48.05,0,0,0,128,176ZM96,64a32,32,0,0,1,64,0v64a32,32,0,0,1-64,0Zm40,143.6V240a8,8,0,0,1-16,0V207.6A80.11,80.11,0,0,1,48,128a8,8,0,0,1,16,0,64,64,0,0,0,128,0,8,8,0,0,1,16,0A80.11,80.11,0,0,1,136,207.6Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,172a44.05,44.05,0,0,0,44-44V64a44,44,0,0,0-88,0v64A44.05,44.05,0,0,0,128,172ZM92,64a36,36,0,0,1,72,0v64a36,36,0,0,1-72,0Zm40,139.89V240a4,4,0,0,1-8,0V203.89A76.09,76.09,0,0,1,52,128a4,4,0,0,1,8,0,68,68,0,0,0,136,0,4,4,0,0,1,8,0A76.09,76.09,0,0,1,132,203.89Z"}))]]),hF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M56.88,39.93A12,12,0,1,0,39.12,56.07L76,96.64V128a52,52,0,0,0,72.11,48l11.26,12.39A67.34,67.34,0,0,1,128,196a68.07,68.07,0,0,1-68-68,12,12,0,0,0-24,0,92.14,92.14,0,0,0,80,91.22V240a12,12,0,0,0,24,0V219.23a90.39,90.39,0,0,0,35.92-12.68l23.2,25.52a12,12,0,0,0,17.76-16.14ZM128,156a28,28,0,0,1-28-28v-5l29.9,32.89C129.27,156,128.64,156,128,156Zm63-2.42A67.63,67.63,0,0,0,196,128a12,12,0,0,1,24,0,91.48,91.48,0,0,1-6.74,34.61,12,12,0,0,1-22.23-9ZM85.7,33.75A52,52,0,0,1,180,64v56.54a12,12,0,0,1-24,0V64a28,28,0,0,0-50.79-16.28,12,12,0,0,1-19.51-14Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,64v64a40,40,0,0,1-40,40h0a40,40,0,0,1-40-40V64a40,40,0,0,1,40-40h0A40,40,0,0,1,168,64Z",opacity:"0.2"}),r.createElement("path",{d:"M213.92,218.62l-160-176A8,8,0,0,0,42.08,53.38L80,95.09V128a48,48,0,0,0,69.11,43.12l11.1,12.2A63.41,63.41,0,0,1,128,192a64.07,64.07,0,0,1-64-64,8,8,0,0,0-16,0,80.11,80.11,0,0,0,72,79.6V240a8,8,0,0,0,16,0V207.59a78.83,78.83,0,0,0,35.16-12.22l30.92,34a8,8,0,1,0,11.84-10.76ZM128,160a32,32,0,0,1-32-32V112.69l41.66,45.82A32,32,0,0,1,128,160Zm57.52-3.91A63.32,63.32,0,0,0,192,128a8,8,0,0,1,16,0,79.16,79.16,0,0,1-8.11,35.12,8,8,0,0,1-7.19,4.49,7.88,7.88,0,0,1-3.51-.82A8,8,0,0,1,185.52,156.09ZM84,44.87A48,48,0,0,1,176,64v64a49.19,49.19,0,0,1-.26,5,8,8,0,0,1-8,7.17,8.13,8.13,0,0,1-.84,0,8,8,0,0,1-7.12-8.79c.11-1.1.17-2.24.17-3.36V64A32,32,0,0,0,98.64,51.25,8,8,0,1,1,84,44.87Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.38,229.92a8,8,0,0,1-11.3-.54l-30.92-34A78.83,78.83,0,0,1,136,207.59V240a8,8,0,0,1-16,0V207.6A80.11,80.11,0,0,1,48,128a8,8,0,0,1,16,0,64.07,64.07,0,0,0,64,64,63.41,63.41,0,0,0,32.21-8.68l-11.1-12.2A48,48,0,0,1,80,128V95.09L42.08,53.38A8,8,0,0,1,53.92,42.62l160,176A8,8,0,0,1,213.38,229.92Zm-24.19-63.13a7.88,7.88,0,0,0,3.51.82,8,8,0,0,0,7.19-4.49A79.16,79.16,0,0,0,208,128a8,8,0,0,0-16,0,63.32,63.32,0,0,1-6.48,28.09A8,8,0,0,0,189.19,166.79Zm-27.33-29.22A8,8,0,0,0,175.74,133a49.49,49.49,0,0,0,.26-5V64A48,48,0,0,0,84,44.87a8,8,0,0,0,1.41,8.57Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212.44,220,52.44,44A6,6,0,0,0,43.56,52L82,94.32V128a46,46,0,0,0,67.56,40.64l13.75,15.12A65.26,65.26,0,0,1,128,194a66.08,66.08,0,0,1-66-66,6,6,0,0,0-12,0,78.09,78.09,0,0,0,72,77.75V240a6,6,0,0,0,12,0V205.77a76.93,76.93,0,0,0,37.48-13L203.56,228a6,6,0,0,0,8.88-8.08ZM128,162a34,34,0,0,1-34-34V107.52l47.12,51.84A33.82,33.82,0,0,1,128,162Zm59.32-5A65.38,65.38,0,0,0,194,128a6,6,0,0,1,12,0,77.33,77.33,0,0,1-7.9,34.25A6,6,0,1,1,187.32,157ZM85.8,45.67A46,46,0,0,1,174,64v64a45.17,45.17,0,0,1-.25,4.81,6,6,0,0,1-6,5.38q-.31,0-.63,0a6,6,0,0,1-5.34-6.59A35.41,35.41,0,0,0,162,128V64A34,34,0,0,0,96.8,50.45a6,6,0,0,1-11-4.78Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.92,218.62l-160-176A8,8,0,0,0,42.08,53.38L80,95.09V128a48,48,0,0,0,69.11,43.12l11.1,12.2A63.41,63.41,0,0,1,128,192a64.07,64.07,0,0,1-64-64,8,8,0,0,0-16,0,80.11,80.11,0,0,0,72,79.6V240a8,8,0,0,0,16,0V207.59a78.83,78.83,0,0,0,35.16-12.22l30.92,34a8,8,0,1,0,11.84-10.76ZM128,160a32,32,0,0,1-32-32V112.69l41.66,45.82A32,32,0,0,1,128,160Zm57.52-3.91A63.32,63.32,0,0,0,192,128a8,8,0,0,1,16,0,79.16,79.16,0,0,1-8.11,35.12,8,8,0,0,1-7.19,4.49,7.88,7.88,0,0,1-3.51-.82A8,8,0,0,1,185.52,156.09ZM84,44.87A48,48,0,0,1,176,64v64a49.19,49.19,0,0,1-.26,5,8,8,0,0,1-8,7.17,8.13,8.13,0,0,1-.84,0,8,8,0,0,1-7.12-8.79c.11-1.1.17-2.24.17-3.36V64A32,32,0,0,0,98.64,51.25,8,8,0,1,1,84,44.87Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M211,221.31,51,45.31A4,4,0,0,0,45,50.69L84,93.55V128a44,44,0,0,0,66,38.12l16.38,18A67.21,67.21,0,0,1,128,196a68.07,68.07,0,0,1-68-68,4,4,0,0,0-8,0,76.09,76.09,0,0,0,72,75.89V240a4,4,0,0,0,8,0V203.89a75.1,75.1,0,0,0,39.79-13.77L205,226.69a4,4,0,1,0,5.92-5.38ZM128,164a36,36,0,0,1-36-36V102.35L144.43,160A35.83,35.83,0,0,1,128,164Zm61.12-6.15A67.44,67.44,0,0,0,196,128a4,4,0,0,1,8,0,75.28,75.28,0,0,1-7.7,33.37,4,4,0,0,1-7.18-3.52ZM87.63,46.46A44,44,0,0,1,172,64v64a44.2,44.2,0,0,1-.24,4.61,4,4,0,0,1-4,3.58l-.42,0a4,4,0,0,1-3.57-4.39A36.67,36.67,0,0,0,164,128V64A36,36,0,0,0,95,49.66a4,4,0,0,1-7.34-3.2Z"}))]]),mF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128Z"}))]]),fF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M92,108a12,12,0,0,1,12-12h72a12,12,0,0,1,0,24H104A12,12,0,0,1,92,108Zm12,52h72a12,12,0,0,0,0-24H104a12,12,0,0,0,0,24ZM236,64V184a28,28,0,0,1-28,28H36A32,32,0,0,1,4,180V88a12,12,0,0,1,24,0v92a8,8,0,0,0,16,0V64A20,20,0,0,1,64,44H216A20,20,0,0,1,236,64Zm-24,4H68V180a32,32,0,0,1-1,8H208a4,4,0,0,0,4-4Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,64V184a16,16,0,0,1-16,16H32a16,16,0,0,0,16-16V64a8,8,0,0,1,8-8H216A8,8,0,0,1,224,64Z",opacity:"0.2"}),r.createElement("path",{d:"M88,112a8,8,0,0,1,8-8h80a8,8,0,0,1,0,16H96A8,8,0,0,1,88,112Zm8,40h80a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16ZM232,64V184a24,24,0,0,1-24,24H32A24,24,0,0,1,8,184.11V88a8,8,0,0,1,16,0v96a8,8,0,0,0,16,0V64A16,16,0,0,1,56,48H216A16,16,0,0,1,232,64Zm-16,0H56V184a23.84,23.84,0,0,1-1.37,8H208a8,8,0,0,0,8-8Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48H56A16,16,0,0,0,40,64V184a8,8,0,0,1-16,0V88A8,8,0,0,0,8,88v96.11A24,24,0,0,0,32,208H208a24,24,0,0,0,24-24V64A16,16,0,0,0,216,48ZM176,152H96a8,8,0,0,1,0-16h80a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h80a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M182,112a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h80A6,6,0,0,1,182,112Zm-6,26H96a6,6,0,0,0,0,12h80a6,6,0,0,0,0-12Zm54-74V184a22,22,0,0,1-22,22H32a22,22,0,0,1-22-21.91V88a6,6,0,0,1,12,0v96a10,10,0,0,0,20,0V64A14,14,0,0,1,56,50H216A14,14,0,0,1,230,64Zm-12,0a2,2,0,0,0-2-2H56a2,2,0,0,0-2,2V184a21.84,21.84,0,0,1-2.41,10H208a10,10,0,0,0,10-10Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M88,112a8,8,0,0,1,8-8h80a8,8,0,0,1,0,16H96A8,8,0,0,1,88,112Zm8,40h80a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16ZM232,64V184a24,24,0,0,1-24,24H32A24,24,0,0,1,8,184.11V88a8,8,0,0,1,16,0v96a8,8,0,0,0,16,0V64A16,16,0,0,1,56,48H216A16,16,0,0,1,232,64Zm-16,0H56V184a23.84,23.84,0,0,1-1.37,8H208a8,8,0,0,0,8-8Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M180,112a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h80A4,4,0,0,1,180,112Zm-4,28H96a4,4,0,0,0,0,8h80a4,4,0,0,0,0-8Zm52-76V184a20,20,0,0,1-20,20H32a20,20,0,0,1-20-19.92V88a4,4,0,0,1,8,0v96a12,12,0,0,0,24,0V64A12,12,0,0,1,56,52H216A12,12,0,0,1,228,64Zm-8,0a4,4,0,0,0-4-4H56a4,4,0,0,0-4,4V184a19.86,19.86,0,0,1-4,12H208a12,12,0,0,0,12-12Z"}))]]),pF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M84,108A12,12,0,0,1,96,96h64a12,12,0,0,1,0,24H96A12,12,0,0,1,84,108Zm32,28H96a12,12,0,0,0,0,24h20a12,12,0,0,0,0-24ZM228,48V156.69a19.86,19.86,0,0,1-5.86,14.14l-51.31,51.31A19.86,19.86,0,0,1,156.69,228H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28H208A20,20,0,0,1,228,48ZM52,204h92V156a12,12,0,0,1,12-12h48V52H52Zm139-36H168v23Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,160l-56,56V160Z",opacity:"0.2"}),r.createElement("path",{d:"M88,96a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,96Zm8,40h64a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16Zm32,16H96a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16ZM224,48V156.69A15.86,15.86,0,0,1,219.31,168L168,219.31A15.86,15.86,0,0,1,156.69,224H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H152V160a8,8,0,0,1,8-8h48V48H48Zm120-40v28.7L196.69,168Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H156.69A15.92,15.92,0,0,0,168,219.31L219.31,168A15.92,15.92,0,0,0,224,156.69V48A16,16,0,0,0,208,32ZM96,88h64a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16Zm32,80H96a8,8,0,0,1,0-16h32a8,8,0,0,1,0,16ZM96,136a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm64,68.69V160h44.7Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M90,96a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H96A6,6,0,0,1,90,96Zm6,38h64a6,6,0,0,0,0-12H96a6,6,0,0,0,0,12Zm32,20H96a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12ZM222,48V156.69a13.94,13.94,0,0,1-4.1,9.9L166.59,217.9a13.94,13.94,0,0,1-9.9,4.1H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34H208A14,14,0,0,1,222,48ZM48,210H154V160a6,6,0,0,1,6-6h50V48a2,2,0,0,0-2-2H48a2,2,0,0,0-2,2V208A2,2,0,0,0,48,210Zm153.52-44H166v35.52Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M88,96a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,96Zm8,40h64a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16Zm32,16H96a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16ZM224,48V156.69A15.86,15.86,0,0,1,219.31,168L168,219.31A15.86,15.86,0,0,1,156.69,224H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H152V160a8,8,0,0,1,8-8h48V48H48Zm120-40v28.7L196.69,168Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M92,96a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H96A4,4,0,0,1,92,96Zm4,36h64a4,4,0,0,0,0-8H96a4,4,0,0,0,0,8Zm32,24H96a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8ZM220,48V156.69a11.9,11.9,0,0,1-3.52,8.48l-51.31,51.32a11.93,11.93,0,0,1-8.48,3.51H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36H208A12,12,0,0,1,220,48ZM48,212H156V160a4,4,0,0,1,4-4h52V48a4,4,0,0,0-4-4H48a4,4,0,0,0-4,4V208A4,4,0,0,0,48,212Zm158.35-48H164v42.35Z"}))]]),xF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M108,108a12,12,0,0,1,12-12h56a12,12,0,0,1,0,24H120A12,12,0,0,1,108,108Zm68,28H120a12,12,0,0,0,0,24h56a12,12,0,0,0,0-24Zm52-88V208a20,20,0,0,1-20,20H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28H208A20,20,0,0,1,228,48ZM52,204H68V52H52ZM204,52H92V204H204Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M80,40V216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8Z",opacity:"0.2"}),r.createElement("path",{d:"M184,112a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h64A8,8,0,0,1,184,112Zm-8,24H112a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm48-88V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H72V48H48Zm160,0V48H88V208H208Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM80,208H48V48H80Zm96-56H112a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H112a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M182,112a6,6,0,0,1-6,6H112a6,6,0,0,1,0-12h64A6,6,0,0,1,182,112Zm-6,26H112a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm46-90V208a14,14,0,0,1-14,14H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34H208A14,14,0,0,1,222,48ZM48,210H74V46H48a2,2,0,0,0-2,2V208A2,2,0,0,0,48,210ZM210,48a2,2,0,0,0-2-2H86V210H208a2,2,0,0,0,2-2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,112a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h64A8,8,0,0,1,184,112Zm-8,24H112a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm48-88V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H72V48H48Zm160,0V48H88V208H208Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M180,112a4,4,0,0,1-4,4H112a4,4,0,0,1,0-8h64A4,4,0,0,1,180,112Zm-4,28H112a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm44-92V208a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36H208A12,12,0,0,1,220,48ZM48,212H76V44H48a4,4,0,0,0-4,4V208A4,4,0,0,0,48,212ZM212,48a4,4,0,0,0-4-4H84V212H208a4,4,0,0,0,4-4Z"}))]]),gF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M233.86,110.48,65.8,14.58A20,20,0,0,0,37.15,38.64L67.33,128,37.15,217.36A20,20,0,0,0,56,244a20.1,20.1,0,0,0,9.81-2.58l.09-.06,168-96.07a20,20,0,0,0,0-34.81ZM63.19,215.26,88.61,140H144a12,12,0,0,0,0-24H88.61L63.18,40.72l152.76,87.17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.91,134.86,59.93,231a8,8,0,0,1-11.44-9.67L80,128,48.49,34.72a8,8,0,0,1,11.44-9.67l168,95.85A8,8,0,0,1,227.91,134.86Z",opacity:"0.2"}),r.createElement("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,127.89a16,16,0,0,1-8.18,14L63.9,237.9A16.15,16.15,0,0,1,56,240a16,16,0,0,1-15-21.33l27-79.95A4,4,0,0,1,71.72,136H144a8,8,0,0,0,8-8.53,8.19,8.19,0,0,0-8.26-7.47h-72a4,4,0,0,1-3.79-2.72l-27-79.94A16,16,0,0,1,63.84,18.07l168,95.89A16,16,0,0,1,240,127.89Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.88,115.69l-168-95.88a14,14,0,0,0-20,16.87L73.66,128,42.81,219.33A14,14,0,0,0,56,238a14.15,14.15,0,0,0,6.93-1.83L230.84,140.1a14,14,0,0,0,0-24.41Zm-5.95,14L57,225.73a2,2,0,0,1-2.86-2.42.42.42,0,0,0,0-.1L84.3,134H144a6,6,0,0,0,0-12H84.3L54.17,32.8a.3.3,0,0,0,0-.1,1.87,1.87,0,0,1,.6-2.2A1.85,1.85,0,0,1,57,30.25l168,95.89a1.93,1.93,0,0,1,1,1.74A2,2,0,0,1,224.93,129.66Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.89,117.43l-168-95.88A12,12,0,0,0,44.7,36l31.08,92L44.71,220A12,12,0,0,0,56,236a12.13,12.13,0,0,0,5.93-1.57l167.94-96.08a12,12,0,0,0,0-20.92Zm-4,14L58,227.47a4,4,0,0,1-5.72-4.83l0-.07L82.87,132H144a4,4,0,0,0,0-8H82.87L52.26,33.37A3.89,3.89,0,0,1,53.44,29,4.13,4.13,0,0,1,56,28a3.88,3.88,0,0,1,1.93.54l168,95.87a4,4,0,0,1,0,7Z"}))]]),vF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",opacity:"0.2"}),r.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z"}))]]),bF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM93,180l71-71,11,11-71,71ZM76,163,65,152l71-71,11,11ZM52,173l15.51,15.51h0L83,204H52ZM192,103,153,64l18.34-18.34,39,39Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"}),r.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160l90.35-90.35,16.68,16.69L68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188l90.35-90.35h0l16.68,16.69Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM48.49,160,136,72.48,155.51,92,68,179.51ZM46,208V174.48L81.51,210H48A2,2,0,0,1,46,208Zm50-.49L76.49,188,164,100.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17ZM45.66,160,136,69.65,158.34,92,68,182.34ZM44,208V169.66l21.17,21.17h0L86.34,212H48A4,4,0,0,1,44,208Zm52,2.34L73.66,188,164,97.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"}))]]),yF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.15,70.54,185.46,25.86a20,20,0,0,0-28.28,0L33.86,149.17A19.86,19.86,0,0,0,28,163.31V208a20,20,0,0,0,20,20H216a12,12,0,0,0,0-24H125L230.15,98.83A20,20,0,0,0,230.15,70.54ZM136,81l11,11L76,163,65,152ZM52,204V173l15.52,15.51h0L83,204Zm52-13L93,180l71-71,11,11Zm88-88L153,64l18.34-18.34,39,39Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"}),r.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM79.32,188,164,103.31,180.69,120,96,204.69ZM68,176.69,51.31,160,136,75.31,152.69,92Zm-20,2.62L76.69,208H48Zm144-70.62L147.32,64l24-24L216,84.69Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM79.32,188l90.34-90.34,16.69,16.68L96,204.69Zm79-101.66h0L68,176.69,51.31,160l90.35-90.34ZM48,179.31,76.69,208H48Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M225.91,74.79,181.22,30.1a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H216a6,6,0,0,0,0-12H110.49L225.91,94.59A14,14,0,0,0,225.91,74.79ZM76.49,188,164,100.48,183.52,120,96,207.51ZM68,179.52,48.49,160,136,72.49,155.52,92ZM46,208V174.48L81.52,210H48A2,2,0,0,1,46,208ZM217.42,86.1,192,111.52,144.49,64,169.9,38.59a2,2,0,0,1,2.83,0l44.69,44.68A2,2,0,0,1,217.42,86.1Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM136,75.31,152.69,92,68,176.69,51.31,160ZM48,208V179.31L76.69,208Zm48-3.31L79.32,188,164,103.31,180.69,120Zm96-96L147.32,64l24-24L216,84.69Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.51,154.83A12,12,0,0,0,36,163.31V208a12,12,0,0,0,12,12H216a4,4,0,0,0,0-8H105.66L224.49,93.17A12,12,0,0,0,224.49,76.2ZM73.66,188,164,97.66,186.35,120,96,210.34ZM68,182.34,45.66,160,136,69.66,158.35,92ZM44,208V169.66l21.17,21.17h0L86.34,212H48A4,4,0,0,1,44,208ZM218.83,87.51,192,114.34,141.66,64l26.83-26.83a4,4,0,0,1,5.66,0l44.68,44.69A4,4,0,0,1,218.83,87.51Z"}))]]),wF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"}),r.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM94.1,209.41a2,2,0,0,1-1.41.59H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L133.17,61.17h0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17Zm-129,134.63A4,4,0,0,1,92.69,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.83L136,69.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"}))]]),AF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.39,87.29c-57.67-57.72-155.11-57.72-212.78,0-21.45,21.47-23.52,53.13-5,77a20,20,0,0,0,22.92,6.37L88.4,153.29l.45-.16A20,20,0,0,0,101,138.47l5.44-27.24a72.48,72.48,0,0,1,42.76-.09L155,138.62a20,20,0,0,0,12.14,14.49l.45.17,48.94,17.37a20,20,0,0,0,22.91-6.37C257.91,140.42,255.84,108.76,234.39,87.29Zm-12.23,59.9L178,131.5,172.24,104a20,20,0,0,0-13-14.8,96.49,96.49,0,0,0-62.94.14A20,20,0,0,0,83.4,104.24L78,131.53,33.84,147.19c-9.16-13.85-7.41-30.77,4.73-42.92C62.81,80,95.41,67.88,128,67.88S193.19,80,217.43,104.27C229.57,116.42,231.32,133.35,222.16,147.19ZM228,200a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,200Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230,157a8,8,0,0,1-9.26,2.47L171.58,142a8,8,0,0,1-4.86-5.8l-6.21-29.74a7.94,7.94,0,0,0-5.14-5.9,84.39,84.39,0,0,0-55.1.13,7.93,7.93,0,0,0-5.12,6l-5.9,29.51A8,8,0,0,1,84.38,142L35.29,159.42A8,8,0,0,1,26,157c-14.6-18.83-13.26-43.83,4-61.12,53.11-53.11,142.77-53.11,195.88,0C243.23,113.12,244.57,138.12,230,157Z",opacity:"0.2"}),r.createElement("path",{d:"M231.59,90.13h0C175.44,34,80.56,34,24.41,90.13c-20,20-21.92,49.49-4.69,71.71A16,16,0,0,0,32.35,168a15.8,15.8,0,0,0,5.75-1.08l49-17.37.29-.11a16,16,0,0,0,9.75-11.73l5.9-29.52a76.52,76.52,0,0,1,49.68-.11h0l6.21,29.75a16,16,0,0,0,9.72,11.59l.29.11,49,17.39a16,16,0,0,0,18.38-5.06C253.51,139.62,251.58,110.13,231.59,90.13ZM223.67,152l-.3-.12-48.82-17.33-6.21-29.74A16,16,0,0,0,158,93a92.56,92.56,0,0,0-60.34.13,16,16,0,0,0-10.32,12l-5.9,29.51L32.63,151.86c-.1,0-.17.13-.27.17-12.33-15.91-11-36.23,3.36-50.58,25-25,58.65-37.53,92.28-37.53s67.27,12.51,92.28,37.53C234.61,115.8,236,136.12,223.67,152Zm.32,48a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,200Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.28,161.84a16,16,0,0,1-18.38,5.06l-49-17.39-.29-.11a16,16,0,0,1-9.72-11.59l-6.21-29.75h0a76.52,76.52,0,0,0-49.68.11l-5.9,29.52a16,16,0,0,1-9.75,11.73l-.29.11-49,17.37A15.8,15.8,0,0,1,32.35,168a16,16,0,0,1-12.63-6.14c-17.23-22.22-15.3-51.71,4.69-71.71,56.15-56.17,151-56.17,207.18,0h0C251.58,110.13,253.51,139.62,236.28,161.84ZM216,192H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.19,91.55h0c-55.39-55.4-149-55.4-204.38,0C6.56,110.82,4.7,139.22,21.29,160.61A14,14,0,0,0,37.39,165l49-17.38.22-.09a13.93,13.93,0,0,0,8.53-10.25l5.9-29.52a1.93,1.93,0,0,1,1.21-1.47,78.53,78.53,0,0,1,51.18-.11,1.93,1.93,0,0,1,1.22,1.45l6.21,29.75a14,14,0,0,0,8.5,10.14l.23.08,49,17.4a14,14,0,0,0,16.1-4.42C251.3,139.22,249.44,110.82,230.19,91.55Zm-5,61.71a2,2,0,0,1-2.29.58l-.22-.09-49-17.38A2,2,0,0,1,172.6,135l-6.22-29.74a14,14,0,0,0-9.06-10.35,90.53,90.53,0,0,0-59,.13,14,14,0,0,0-9,10.45L83.37,135a2,2,0,0,1-1.15,1.44L33.28,153.75l-.22.09a2,2,0,0,1-2.29-.58c-13-16.74-11.56-38.12,3.53-53.22,25.39-25.4,59.55-38.1,93.7-38.1s68.31,12.7,93.7,38.1C236.79,115.14,238.21,136.52,225.23,153.26ZM222,200a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,200Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M231.59,90.13h0C175.44,34,80.56,34,24.41,90.13c-20,20-21.92,49.49-4.69,71.71A16,16,0,0,0,32.35,168a15.8,15.8,0,0,0,5.75-1.08l49-17.37.29-.11a16,16,0,0,0,9.75-11.73l5.9-29.52a76.52,76.52,0,0,1,49.68-.11h0l6.21,29.75a16,16,0,0,0,9.72,11.59l.29.11,49,17.39a16,16,0,0,0,18.38-5.06C253.51,139.62,251.58,110.13,231.59,90.13ZM223.67,152l-.3-.12-48.82-17.33-6.21-29.74A16,16,0,0,0,158,93a92.56,92.56,0,0,0-60.34.13,16,16,0,0,0-10.32,12l-5.9,29.51L32.63,151.86c-.1,0-.17.13-.27.17-12.33-15.91-11-36.23,3.36-50.58,25-25,58.65-37.53,92.28-37.53s67.27,12.51,92.28,37.53C234.61,115.8,236,136.12,223.67,152Zm.32,48a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,200Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228.79,93C174.15,38.34,81.85,38.34,27.21,93,8.69,111.5,6.9,138.81,22.85,159.39a12,12,0,0,0,13.83,3.77l49-17.39.15-.06a12,12,0,0,0,7.31-8.79l5.9-29.51a3.93,3.93,0,0,1,2.51-3,80.59,80.59,0,0,1,52.5-.12,3.94,3.94,0,0,1,2.52,2.94L162.81,137a12,12,0,0,0,7.29,8.69l.15.06,49.07,17.41a12,12,0,0,0,13.83-3.77C249.1,138.81,247.31,111.5,228.79,93Zm-2,61.51a4,4,0,0,1-4.61,1.21l-.15-.06L173,138.24a4,4,0,0,1-2.37-2.87l-6.21-29.75a12,12,0,0,0-7.75-8.87,88.63,88.63,0,0,0-57.74.14,12,12,0,0,0-7.72,9l-5.9,29.51A4,4,0,0,1,83,138.26l-49,17.38-.15.06a4,4,0,0,1-4.61-1.21c-13.42-17.3-11.9-40.26,3.69-55.85C58.65,72.85,93.33,60,128,60s69.35,12.89,95.13,38.68C238.71,114.23,240.24,137.19,226.82,154.49ZM220,200a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,200Z"}))]]),jF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",opacity:"0.2"}),r.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"}))]]),NF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240.49,63.51a12,12,0,0,0-17,0L192,95,161,64l31.52-31.51a12,12,0,0,0-17-17L144,47,120.49,23.51a12,12,0,1,0-17,17L107,44,56.89,94.14a44,44,0,0,0,0,62.23l12.88,12.88L23.51,215.51a12,12,0,0,0,17,17l46.26-46.26,12.88,12.88a44,44,0,0,0,62.23,0L212,149l3.51,3.52a12,12,0,0,0,17-17L209,112l31.52-31.51A12,12,0,0,0,240.49,63.51Zm-95.6,118.63a20,20,0,0,1-28.29,0L73.86,139.4a20,20,0,0,1,0-28.29L124,61l71,71Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212,132l-58.63,58.63a32,32,0,0,1-45.25,0L65.37,147.88a32,32,0,0,1,0-45.25L124,44Z",opacity:"0.2"}),r.createElement("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.66,77.66,203.31,112l26.35,26.34a8,8,0,0,1-11.32,11.32L212,143.31l-53,53a40,40,0,0,1-56.57,0L86.75,180.57,37.66,229.66a8,8,0,0,1-11.32-11.32l49.09-49.09L59.72,153.54a40,40,0,0,1,0-56.57l53-53-6.35-6.34a8,8,0,0,1,11.32-11.32L144,52.69l34.34-34.35a8,8,0,1,1,11.32,11.32L155.31,64,192,100.69l34.34-34.35a8,8,0,0,1,11.32,11.32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.24,67.76a6,6,0,0,0-8.48,0L192,103.51,152.49,64l35.75-35.76a6,6,0,0,0-8.48-8.48L144,55.51,116.24,27.76a6,6,0,1,0-8.48,8.48L115.51,44,61.13,98.38a38,38,0,0,0,0,53.75l17.13,17.12-50.5,50.51a6,6,0,1,0,8.48,8.48l50.51-50.5,17.13,17.13a38,38,0,0,0,53.74,0L212,140.49l7.76,7.75a6,6,0,0,0,8.48-8.48L200.49,112l35.75-35.76A6,6,0,0,0,236.24,67.76ZM149.13,186.38a26,26,0,0,1-36.77,0L69.62,143.64a26,26,0,0,1,0-36.77L124,52.49,203.51,132Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.83,69.17a4,4,0,0,0-5.66,0L192,106.34,149.66,64l37.17-37.17a4,4,0,1,0-5.66-5.66L144,58.34,114.83,29.17a4,4,0,0,0-5.66,5.66L118.34,44,62.54,99.8a36.05,36.05,0,0,0,0,50.91l18.55,18.54L29.17,221.17a4,4,0,0,0,5.66,5.66l51.92-51.92,18.54,18.55a36.06,36.06,0,0,0,50.91,0l55.8-55.8,9.17,9.17a4,4,0,0,0,5.66-5.66L197.66,112l37.17-37.17A4,4,0,0,0,234.83,69.17ZM150.54,187.8a28,28,0,0,1-39.59,0L68.2,145.05a28,28,0,0,1,0-39.59L124,49.66,206.34,132Z"}))]]),EF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240.49,15.51a12,12,0,0,0-17,0L173.94,65.09l-2.54-2.55a36.05,36.05,0,0,0-50.91,0L100,83l-3.51-3.52a12,12,0,0,0-17,17L83,100,62.54,120.49a36,36,0,0,0,0,50.91l2.55,2.54L15.51,223.51a12,12,0,0,0,17,17l49.57-49.58,2.54,2.55a36.06,36.06,0,0,0,50.91,0L156,173l3.51,3.52a12,12,0,0,0,17-17L173,156l20.49-20.49a36,36,0,0,0,0-50.91l-2.55-2.54,49.58-49.57A12,12,0,0,0,240.49,15.51Zm-121.95,161a12,12,0,0,1-17,0L79.51,154.43a12,12,0,0,1,0-17L100,117l39,39Zm58-57.95h0L156,139l-39-39,20.49-20.49a12,12,0,0,1,17,0l22.06,22.06a12,12,0,0,1,0,17ZM85.27,33.37a12,12,0,0,1,21.46-10.74l8,16A12,12,0,1,1,93.27,49.37Zm-68,57.26a12,12,0,0,1,16.1-5.36l16,8a12,12,0,1,1-10.74,21.46l-16-8A12,12,0,0,1,17.27,90.63Zm221.46,74.74a12,12,0,0,1-16.1,5.36l-16-8a12,12,0,0,1,10.74-21.46l16,8A12,12,0,0,1,238.73,165.37Zm-68,57.26a12,12,0,1,1-21.46,10.74l-8-16a12,12,0,0,1,21.46-10.74Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M185,127,127,185a24,24,0,0,1-33.94,0L71,162.91A24,24,0,0,1,71,129L129,71a24,24,0,0,1,33.94,0L185,93.09A24,24,0,0,1,185,127Z",opacity:"0.2"}),r.createElement("path",{d:"M237.66,18.34a8,8,0,0,0-11.32,0l-52.4,52.41-5.37-5.38a32.05,32.05,0,0,0-45.26,0L100,88.69l-6.34-6.35A8,8,0,0,0,82.34,93.66L88.69,100,65.37,123.31a32,32,0,0,0,0,45.26l5.38,5.37-52.41,52.4a8,8,0,0,0,11.32,11.32l52.4-52.41,5.37,5.38a32.06,32.06,0,0,0,45.26,0L156,167.31l6.34,6.35a8,8,0,0,0,11.32-11.32L167.31,156l23.32-23.31a32,32,0,0,0,0-45.26l-5.38-5.37,52.41-52.4A8,8,0,0,0,237.66,18.34Zm-116.29,161a16,16,0,0,1-22.62,0L76.69,157.25a16,16,0,0,1,0-22.62L100,111.31,144.69,156Zm57.94-57.94h0L156,144.69,111.31,100l23.32-23.31a16,16,0,0,1,22.62,0l22.06,22a16,16,0,0,1,0,22.63ZM88.57,35A8,8,0,0,1,103.43,29l8,20A8,8,0,0,1,96.57,55ZM24.57,93A8,8,0,0,1,35,88.57l20,8A8,8,0,0,1,49,111.43l-20-8A8,8,0,0,1,24.57,93ZM231.43,163a8,8,0,0,1-10.4,4.46l-20-8A8,8,0,1,1,207,144.57l20,8A8,8,0,0,1,231.43,163Zm-64,58.06A8,8,0,0,1,152.57,227l-8-20A8,8,0,0,1,159.43,201Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M88.57,35A8,8,0,0,1,103.43,29l8,20A8,8,0,0,1,96.57,55ZM29,103.43l20,8A8,8,0,1,0,55,96.57l-20-8A8,8,0,0,0,29,103.43ZM227,152.57l-20-8A8,8,0,1,0,201,159.43l20,8A8,8,0,0,0,227,152.57ZM159.43,201A8,8,0,0,0,144.57,207l8,20A8,8,0,1,0,167.43,221ZM237.91,18.52a8,8,0,0,0-11.5-.18L174,70.75l-5.38-5.38a32,32,0,0,0-45.28,0L106.14,82.54a4,4,0,0,0,0,5.66l61.7,61.66a4,4,0,0,0,5.66,0l16.74-16.74a32.76,32.76,0,0,0,9.81-22.52,31.82,31.82,0,0,0-9.37-23.17l-5.38-5.37,52.2-52.17A8.22,8.22,0,0,0,237.91,18.52ZM85.64,90.34a8,8,0,0,0-11.49.18,8.22,8.22,0,0,0,.41,11.37L80.67,108,65.34,123.31A31.82,31.82,0,0,0,56,146.47,32.75,32.75,0,0,0,65.77,169l5,4.94L18.49,226.13a8.21,8.21,0,0,0-.61,11.1,8,8,0,0,0,11.72.43L82,185.25l5.37,5.38a32.1,32.1,0,0,0,45.29,0L148,175.31l6.34,6.35a8,8,0,0,0,11.32-11.32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.24,19.76a6,6,0,0,0-8.48,0L173.94,73.57l-6.79-6.78a30,30,0,0,0-42.42,0L100,91.51l-7.76-7.75a6,6,0,0,0-8.48,8.48L91.51,100,66.79,124.73a30,30,0,0,0,0,42.42l6.78,6.79L19.76,227.76a6,6,0,1,0,8.48,8.48l53.82-53.81,6.79,6.78a30,30,0,0,0,42.42,0L156,164.49l7.76,7.75a6,6,0,0,0,8.48-8.48L164.49,156l24.72-24.73a30,30,0,0,0,0-42.42l-6.78-6.79,53.81-53.82A6,6,0,0,0,236.24,19.76Zm-113.45,161a18,18,0,0,1-25.46,0L75.27,158.67a18,18,0,0,1,0-25.46L100,108.49,147.51,156Zm57.94-57.94L156,147.51,108.49,100l24.72-24.73a18,18,0,0,1,25.46,0l22.06,22.06a18,18,0,0,1,0,25.46ZM90.43,34.23a6,6,0,0,1,11.14-4.46l8,20a6,6,0,1,1-11.14,4.46Zm-64,59.54a6,6,0,0,1,7.8-3.34l20,8a6,6,0,1,1-4.46,11.14l-20-8A6,6,0,0,1,26.43,93.77Zm203.14,68.46a6,6,0,0,1-7.8,3.34l-20-8a6,6,0,0,1,4.46-11.14l20,8A6,6,0,0,1,229.57,162.23Zm-64,59.54a6,6,0,1,1-11.14,4.46l-8-20a6,6,0,0,1,11.14-4.46Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.66,18.34a8,8,0,0,0-11.32,0l-52.4,52.41-5.37-5.38a32.05,32.05,0,0,0-45.26,0L100,88.69l-6.34-6.35A8,8,0,0,0,82.34,93.66L88.69,100,65.37,123.31a32,32,0,0,0,0,45.26l5.38,5.37-52.41,52.4a8,8,0,0,0,11.32,11.32l52.4-52.41,5.37,5.38a32,32,0,0,0,45.26,0L156,167.31l6.34,6.35a8,8,0,0,0,11.32-11.32L167.31,156l23.32-23.31a32,32,0,0,0,0-45.26l-5.38-5.37,52.41-52.4A8,8,0,0,0,237.66,18.34Zm-116.29,161a16,16,0,0,1-22.62,0L76.69,157.25a16,16,0,0,1,0-22.62L100,111.31,144.69,156Zm57.94-57.94L156,144.69,111.31,100l23.32-23.31a16,16,0,0,1,22.62,0l22.06,22A16,16,0,0,1,179.31,121.37ZM88.57,35A8,8,0,0,1,103.43,29l8,20A8,8,0,0,1,96.57,55ZM24.57,93A8,8,0,0,1,35,88.57l20,8A8,8,0,0,1,49,111.43l-20-8A8,8,0,0,1,24.57,93ZM231.43,163a8,8,0,0,1-10.4,4.46l-20-8A8,8,0,1,1,207,144.57l20,8A8,8,0,0,1,231.43,163Zm-64,58.06A8,8,0,0,1,152.57,227l-8-20A8,8,0,0,1,159.43,201Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.83,21.17a4,4,0,0,0-5.66,0L173.94,76.4l-8.2-8.2a28,28,0,0,0-39.6,0L100,94.34l-9.17-9.17a4,4,0,0,0-5.66,5.66L94.34,100,68.2,126.14a28,28,0,0,0,0,39.6l8.2,8.2L21.17,229.17a4,4,0,0,0,5.66,5.66L82.06,179.6l8.2,8.2a28,28,0,0,0,39.6,0L156,161.66l9.17,9.17a4,4,0,0,0,5.66-5.66L161.66,156l26.14-26.14a28,28,0,0,0,0-39.6l-8.2-8.2,55.23-55.23A4,4,0,0,0,234.83,21.17Zm-110.63,161a20,20,0,0,1-28.28,0L73.86,160.08a20,20,0,0,1,0-28.28L100,105.66,150.34,156Zm57.94-57.94L156,150.34,105.66,100,131.8,73.86a20,20,0,0,1,28.28,0l22.06,22.06A20,20,0,0,1,182.14,124.2ZM92.29,33.49a4,4,0,1,1,7.42-3l8,20a4,4,0,0,1-2.22,5.2A3.91,3.91,0,0,1,104,56a4,4,0,0,1-3.71-2.51Zm-64,61a4,4,0,0,1,5.2-2.22l20,8A4,4,0,0,1,52,108a3.91,3.91,0,0,1-1.49-.29l-20-8A4,4,0,0,1,28.29,94.51Zm199.42,67A4,4,0,0,1,224,164a3.91,3.91,0,0,1-1.49-.29l-20-8a4,4,0,1,1,3-7.42l20,8A4,4,0,0,1,227.71,161.49Zm-64,61a4,4,0,0,1-2.22,5.2A3.91,3.91,0,0,1,160,228a4,4,0,0,1-3.71-2.51l-8-20a4,4,0,0,1,7.42-3Z"}))]]),MF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),SF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M116,128V48a12,12,0,0,1,24,0v80a12,12,0,0,1-24,0Zm66.55-82a12,12,0,0,0-13.1,20.1C191.41,80.37,204,103,204,128a76,76,0,0,1-152,0c0-25,12.59-47.63,34.55-61.95A12,12,0,0,0,73.45,46C44.56,64.78,28,94.69,28,128a100,100,0,0,0,200,0C228,94.69,211.44,64.78,182.55,46Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),r.createElement("path",{d:"M120,128V48a8,8,0,0,1,16,0v80a8,8,0,0,1-16,0Zm60.37-78.7a8,8,0,0,0-8.74,13.4C194.74,77.77,208,101.57,208,128a80,80,0,0,1-160,0c0-26.43,13.26-50.23,36.37-65.3a8,8,0,0,0-8.74-13.4C47.9,67.38,32,96.06,32,128a96,96,0,0,0,192,0C224,96.06,208.1,67.38,180.37,49.3Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104,104,0,0,0,128,24Zm-8,40a8,8,0,0,1,16,0v64a8,8,0,0,1-16,0Zm8,144A80,80,0,0,1,83.55,61.48a8,8,0,1,1,8.9,13.29,64,64,0,1,0,71.1,0,8,8,0,1,1,8.9-13.29A80,80,0,0,1,128,208Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M122,128V48a6,6,0,0,1,12,0v80a6,6,0,0,1-12,0Zm57.28-77A6,6,0,0,0,172.72,61C196.41,76.47,210,100.88,210,128a82,82,0,0,1-164,0c0-27.12,13.59-51.53,37.28-67A6,6,0,0,0,76.72,51C49.57,68.68,34,96.75,34,128a94,94,0,0,0,188,0C222,96.75,206.43,68.68,179.28,51Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M120,128V48a8,8,0,0,1,16,0v80a8,8,0,0,1-16,0Zm60.37-78.7a8,8,0,0,0-8.74,13.4C194.74,77.77,208,101.57,208,128a80,80,0,0,1-160,0c0-26.43,13.26-50.23,36.37-65.3a8,8,0,0,0-8.74-13.4C47.9,67.38,32,96.06,32,128a96,96,0,0,0,192,0C224,96.06,208.1,67.38,180.37,49.3Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M124,128V48a4,4,0,0,1,8,0v80a4,4,0,0,1-8,0Zm54.18-75.35a4,4,0,1,0-4.36,6.7C198.08,75.17,212,100.2,212,128a84,84,0,0,1-168,0c0-27.8,13.92-52.83,38.18-68.65a4,4,0,0,0-4.36-6.7C51.24,70,36,97.44,36,128a92,92,0,0,0,184,0C220,97.44,204.76,70,178.18,52.65Z"}))]]),ZF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M244,128a12,12,0,0,1-12,12H207.42l-36.69,73.37A12,12,0,0,1,160,220h-.6a12,12,0,0,1-10.61-7.72L95,71.15,66.92,133A12,12,0,0,1,56,140H24a12,12,0,0,1,0-24H48.27L85.08,35a12,12,0,0,1,22.13.7l54.28,142.46,27.78-55.56A12,12,0,0,1,200,116h32A12,12,0,0,1,244,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M96,40l33.52,88H56Zm104,88H129.52L160,208Z",opacity:"0.2"}),r.createElement("path",{d:"M240,128a8,8,0,0,1-8,8H204.94l-37.78,75.58A8,8,0,0,1,160,216h-.4a8,8,0,0,1-7.08-5.14L95.35,60.76,63.28,131.31A8,8,0,0,1,56,136H24a8,8,0,0,1,0-16H50.85L88.72,36.69a8,8,0,0,1,14.76.46l57.51,151,31.85-63.71A8,8,0,0,1,200,120h32A8,8,0,0,1,240,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm-8,96H188.64L159,188a8,8,0,0,1-6.95,4h-.46a8,8,0,0,1-6.89-4.84L103,89.92,79,132a8,8,0,0,1-7,4H48a8,8,0,0,1,0-16H67.36L97.05,68a8,8,0,0,1,14.3.82L153,166.08l24-42.05a8,8,0,0,1,6.95-4h24a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M238,128a6,6,0,0,1-6,6H203.71l-38.34,76.68A6,6,0,0,1,160,214h-.3a6,6,0,0,1-5.31-3.85L95.51,55.57,61.46,130.48A6,6,0,0,1,56,134H24a6,6,0,0,1,0-12H52.14l38.4-84.48a6,6,0,0,1,11.07.34L160.74,193.1l33.89-67.78A6,6,0,0,1,200,122h32A6,6,0,0,1,238,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,128a8,8,0,0,1-8,8H204.94l-37.78,75.58A8,8,0,0,1,160,216h-.4a8,8,0,0,1-7.08-5.14L95.35,60.76,63.28,131.31A8,8,0,0,1,56,136H24a8,8,0,0,1,0-16H50.85L88.72,36.69a8,8,0,0,1,14.76.46l57.51,151,31.85-63.71A8,8,0,0,1,200,120h32A8,8,0,0,1,240,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,128a4,4,0,0,1-4,4H202.47l-38.89,77.79A4,4,0,0,1,160,212h-.2a4,4,0,0,1-3.54-2.58l-60.59-159-36,79.28A4,4,0,0,1,56,132H24a4,4,0,0,1,0-8H53.42L92.36,38.35a4,4,0,0,1,7.38.23L160.5,198.06l35.92-71.85A4,4,0,0,1,200,124h32A4,4,0,0,1,236,128Z"}))]]),CF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96Zm4,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-60,76V148a12,12,0,0,1,24,0v24a12,12,0,0,1-24,0Zm84-8a12,12,0,0,1-12,12H196v32a12,12,0,0,1-12,12H148a12,12,0,0,1,0-24h24V148a12,12,0,0,1,24,0v4h12A12,12,0,0,1,220,164Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm-8,88H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96-96H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Z",opacity:"0.2"}),r.createElement("path",{d:"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm0,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48ZM200,40H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-64,72V144a8,8,0,0,1,16,0v32a8,8,0,0,1-16,0Zm80-16a8,8,0,0,1-8,8H184v40a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h24V144a8,8,0,0,1,16,0v8h24A8,8,0,0,1,216,160Zm0,32v16a8,8,0,0,1-16,0V192a8,8,0,0,1,16,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm-16,80H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96-96H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40ZM144,184a8,8,0,0,0,8-8V144a8,8,0,0,0-16,0v32A8,8,0,0,0,144,184Zm64-32H184v-8a8,8,0,0,0-16,0v56H144a8,8,0,0,0,0,16h32a8,8,0,0,0,8-8V168h24a8,8,0,0,0,0-16Zm0,32a8,8,0,0,0-8,8v16a8,8,0,0,0,16,0V192A8,8,0,0,0,208,184Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-2,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2ZM200,42H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-64,72V144a6,6,0,0,1,12,0v32a6,6,0,0,1-12,0Zm76-16a6,6,0,0,1-6,6H182v42a6,6,0,0,1-6,6H144a6,6,0,0,1,0-12h26V144a6,6,0,0,1,12,0v10h26A6,6,0,0,1,214,160Zm0,32v16a6,6,0,0,1-12,0V192a6,6,0,0,1,12,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm0,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48ZM200,40H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-64,72V144a8,8,0,0,1,16,0v32a8,8,0,0,1-16,0Zm80-16a8,8,0,0,1-8,8H184v40a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h24V144a8,8,0,0,1,16,0v8h24A8,8,0,0,1,216,160Zm0,32v16a8,8,0,0,1-16,0V192a8,8,0,0,1,16,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm-4,36H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM200,44H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm-64,72V144a4,4,0,0,1,8,0v32a4,4,0,0,1-8,0Zm72-16a4,4,0,0,1-4,4H180v44a4,4,0,0,1-4,4H144a4,4,0,0,1,0-8h28V144a4,4,0,0,1,8,0v12h28A4,4,0,0,1,212,160Zm0,32v16a4,4,0,0,1-8,0V192a4,4,0,0,1,8,0Z"}))]]),HF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M72,104a16,16,0,1,1,16,16A16,16,0,0,1,72,104Zm96,16a16,16,0,1,0-16-16A16,16,0,0,0,168,120Zm68-40V192a36,36,0,0,1-36,36H56a36,36,0,0,1-36-36V80A36,36,0,0,1,56,44h60V16a12,12,0,0,1,24,0V44h60A36,36,0,0,1,236,80Zm-24,0a12,12,0,0,0-12-12H56A12,12,0,0,0,44,80V192a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12Zm-12,82a30,30,0,0,1-30,30H86a30,30,0,0,1,0-60h84A30,30,0,0,1,200,162Zm-80-6v12h16V156ZM86,168H96V156H86a6,6,0,0,0,0,12Zm90-6a6,6,0,0,0-6-6H160v12h10A6,6,0,0,0,176,162Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,56H56A24,24,0,0,0,32,80V192a24,24,0,0,0,24,24H200a24,24,0,0,0,24-24V80A24,24,0,0,0,200,56ZM164,184H92a20,20,0,0,1,0-40h72a20,20,0,0,1,0,40Z",opacity:"0.2"}),r.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Zm4,28H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48ZM172,96a12,12,0,1,1-12,12A12,12,0,0,1,172,96ZM96,184H80a16,16,0,0,1,0-32H96ZM84,120a12,12,0,1,1,12-12A12,12,0,0,1,84,120Zm60,64H112V152h32Zm32,0H160V152h16a16,16,0,0,1,0,32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,50H134V16a6,6,0,0,0-12,0V50H56A30,30,0,0,0,26,80V192a30,30,0,0,0,30,30H200a30,30,0,0,0,30-30V80A30,30,0,0,0,200,50Zm18,142a18,18,0,0,1-18,18H56a18,18,0,0,1-18-18V80A18,18,0,0,1,56,62H200a18,18,0,0,1,18,18ZM74,108a10,10,0,1,1,10,10A10,10,0,0,1,74,108Zm88,0a10,10,0,1,1,10,10A10,10,0,0,1,162,108Zm2,30H92a26,26,0,0,0,0,52h72a26,26,0,0,0,0-52Zm-22,12v28H114V150ZM78,164a14,14,0,0,1,14-14h10v28H92A14,14,0,0,1,78,164Zm86,14H154V150h10a14,14,0,0,1,0,28Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16Zm-52-56H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,52H132V16a4,4,0,0,0-8,0V52H56A28,28,0,0,0,28,80V192a28,28,0,0,0,28,28H200a28,28,0,0,0,28-28V80A28,28,0,0,0,200,52Zm20,140a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V80A20,20,0,0,1,56,60H200a20,20,0,0,1,20,20ZM76,108a8,8,0,1,1,8,8A8,8,0,0,1,76,108Zm88,0a8,8,0,1,1,8,8A8,8,0,0,1,164,108Zm0,32H92a24,24,0,0,0,0,48h72a24,24,0,0,0,0-48Zm-20,8v32H112V148ZM76,164a16,16,0,0,1,16-16h12v32H92A16,16,0,0,1,76,164Zm88,16H152V148h12a16,16,0,0,1,0,32Z"}))]]),VF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,156a43.78,43.78,0,0,0-29.09,11L106.1,140.8a44.07,44.07,0,0,0,0-25.6L146.91,89a43.83,43.83,0,1,0-13-20.17L93.09,95a44,44,0,1,0,0,65.94L133.9,187.2A44,44,0,1,0,176,156Zm0-120a20,20,0,1,1-20,20A20,20,0,0,1,176,36ZM64,148a20,20,0,1,1,20-20A20,20,0,0,1,64,148Zm112,72a20,20,0,1,1,20-20A20,20,0,0,1,176,220Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,200a32,32,0,1,1-32-32A32,32,0,0,1,208,200ZM176,88a32,32,0,1,0-32-32A32,32,0,0,0,176,88Z",opacity:"0.2"}),r.createElement("path",{d:"M176,160a39.89,39.89,0,0,0-28.62,12.09l-46.1-29.63a39.8,39.8,0,0,0,0-28.92l46.1-29.63a40,40,0,1,0-8.66-13.45l-46.1,29.63a40,40,0,1,0,0,55.82l46.1,29.63A40,40,0,1,0,176,160Zm0-128a24,24,0,1,1-24,24A24,24,0,0,1,176,32ZM64,152a24,24,0,1,1,24-24A24,24,0,0,1,64,152Zm112,72a24,24,0,1,1,24-24A24,24,0,0,1,176,224Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212,200a36,36,0,1,1-69.85-12.25l-53-34.05a36,36,0,1,1,0-51.4l53-34a36.09,36.09,0,1,1,8.67,13.45l-53,34.05a36,36,0,0,1,0,24.5l53,34.05A36,36,0,0,1,212,200Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,162a37.91,37.91,0,0,0-28.3,12.67L98.8,143.24a37.89,37.89,0,0,0,0-30.48l48.9-31.43a38,38,0,1,0-6.5-10.09L92.3,102.67a38,38,0,1,0,0,50.66l48.9,31.43A38,38,0,1,0,176,162Zm0-132a26,26,0,1,1-26,26A26,26,0,0,1,176,30ZM64,154a26,26,0,1,1,26-26A26,26,0,0,1,64,154Zm112,72a26,26,0,1,1,26-26A26,26,0,0,1,176,226Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,160a39.89,39.89,0,0,0-28.62,12.09l-46.1-29.63a39.8,39.8,0,0,0,0-28.92l46.1-29.63a40,40,0,1,0-8.66-13.45l-46.1,29.63a40,40,0,1,0,0,55.82l46.1,29.63A40,40,0,1,0,176,160Zm0-128a24,24,0,1,1-24,24A24,24,0,0,1,176,32ZM64,152a24,24,0,1,1,24-24A24,24,0,0,1,64,152Zm112,72a24,24,0,1,1,24-24A24,24,0,0,1,176,224Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,164a36,36,0,0,0-27.92,13.3L96.25,144a35.92,35.92,0,0,0,0-32L148.08,78.7A35.93,35.93,0,1,0,143.75,72L91.92,105.3a36,36,0,1,0,0,45.4L143.75,184A36,36,0,1,0,176,164Zm0-136a28,28,0,1,1-28,28A28,28,0,0,1,176,28ZM64,156a28,28,0,1,1,28-28A28,28,0,0,1,64,156Zm112,72a28,28,0,1,1,28-28A28,28,0,0,1,176,228Z"}))]]),_F=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,36H48A20,20,0,0,0,28,56v56c0,54.29,26.32,87.22,48.4,105.29,23.71,19.39,47.44,26,48.44,26.29a12.1,12.1,0,0,0,6.32,0c1-.28,24.73-6.9,48.44-26.29,22.08-18.07,48.4-51,48.4-105.29V56A20,20,0,0,0,208,36Zm-4,76c0,35.71-13.09,64.69-38.91,86.15A126.28,126.28,0,0,1,128,219.38a126.14,126.14,0,0,1-37.09-21.23C65.09,176.69,52,147.71,52,112V60H204ZM79.51,144.49a12,12,0,1,1,17-17L112,143l47.51-47.52a12,12,0,0,1,17,17l-56,56a12,12,0,0,1-17,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,56v56c0,96-88,120-88,120S40,208,40,112V56a8,8,0,0,1,8-8H208A8,8,0,0,1,216,56Z",opacity:"0.2"}),r.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm-34.32,69.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,42H48A14,14,0,0,0,34,56v56c0,51.94,25.12,83.4,46.2,100.64,22.73,18.6,45.27,24.89,46.22,25.15a6,6,0,0,0,3.16,0c.95-.26,23.49-6.55,46.22-25.15C196.88,195.4,222,163.94,222,112V56A14,14,0,0,0,208,42Zm2,70c0,37.76-13.94,68.39-41.44,91.06A131.17,131.17,0,0,1,128,225.72a130.94,130.94,0,0,1-40.56-22.66C59.94,180.39,46,149.76,46,112V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,44H48A12,12,0,0,0,36,56v56c0,51.16,24.73,82.12,45.47,99.1,22.4,18.32,44.55,24.5,45.48,24.76a4,4,0,0,0,2.1,0c.93-.26,23.08-6.44,45.48-24.76,20.74-17,45.47-47.94,45.47-99.1V56A12,12,0,0,0,208,44Zm4,68c0,38.44-14.23,69.63-42.29,92.71A132.45,132.45,0,0,1,128,227.82a132.23,132.23,0,0,1-41.71-23.11C58.23,181.63,44,150.44,44,112V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-41.17-10.83a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17Z"}))]]),TF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240.49,175.51a12,12,0,0,1,0,17l-24,24a12,12,0,0,1-17-17L203,196h-2.09a76.17,76.17,0,0,1-61.85-31.83L97.38,105.78A52.1,52.1,0,0,0,55.06,84H32a12,12,0,0,1,0-24H55.06a76.17,76.17,0,0,1,61.85,31.83l41.71,58.39A52.1,52.1,0,0,0,200.94,172H203l-3.52-3.51a12,12,0,0,1,17-17Zm-95.62-72.62a12,12,0,0,0,16.93-1.13A52,52,0,0,1,200.94,84H203l-3.52,3.51a12,12,0,0,0,17,17l24-24a12,12,0,0,0,0-17l-24-24a12,12,0,0,0-17,17L203,60h-2.09a76,76,0,0,0-57.2,26A12,12,0,0,0,144.87,102.89Zm-33.74,50.22a12,12,0,0,0-16.93,1.13A52,52,0,0,1,55.06,172H32a12,12,0,0,0,0,24H55.06a76,76,0,0,0,57.2-26A12,12,0,0,0,111.13,153.11Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M107.14,98.8,128,128l-20.86,29.2A64,64,0,0,1,55.06,184H32V72H55.06A64,64,0,0,1,107.14,98.8ZM200.94,72a64,64,0,0,0-52.08,26.8L128,128l20.86,29.2A64,64,0,0,0,200.94,184H232V72Z",opacity:"0.2"}),r.createElement("path",{d:"M237.66,178.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L212.69,192H200.94a72.12,72.12,0,0,1-58.59-30.15l-41.72-58.4A56.1,56.1,0,0,0,55.06,80H32a8,8,0,0,1,0-16H55.06a72.12,72.12,0,0,1,58.59,30.15l41.72,58.4A56.1,56.1,0,0,0,200.94,176h11.75l-10.35-10.34a8,8,0,0,1,11.32-11.32ZM143,107a8,8,0,0,0,11.16-1.86l1.2-1.67A56.1,56.1,0,0,1,200.94,80h11.75L202.34,90.34a8,8,0,0,0,11.32,11.32l24-24a8,8,0,0,0,0-11.32l-24-24a8,8,0,0,0-11.32,11.32L212.69,64H200.94a72.12,72.12,0,0,0-58.59,30.15l-1.2,1.67A8,8,0,0,0,143,107Zm-30,42a8,8,0,0,0-11.16,1.86l-1.2,1.67A56.1,56.1,0,0,1,55.06,176H32a8,8,0,0,0,0,16H55.06a72.12,72.12,0,0,0,58.59-30.15l1.2-1.67A8,8,0,0,0,113,149Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.66,178.34a8,8,0,0,1,0,11.32l-24,24A8,8,0,0,1,200,208V192a72.15,72.15,0,0,1-57.65-30.14l-41.72-58.4A56.1,56.1,0,0,0,55.06,80H32a8,8,0,0,1,0-16H55.06a72.12,72.12,0,0,1,58.59,30.15l41.72,58.4A56.08,56.08,0,0,0,200,176V160a8,8,0,0,1,13.66-5.66ZM143,107a8,8,0,0,0,11.16-1.86l1.2-1.67A56.08,56.08,0,0,1,200,80V96a8,8,0,0,0,13.66,5.66l24-24a8,8,0,0,0,0-11.32l-24-24A8,8,0,0,0,200,48V64a72.15,72.15,0,0,0-57.65,30.14l-1.2,1.67A8,8,0,0,0,143,107Zm-30,42a8,8,0,0,0-11.16,1.86l-1.2,1.67A56.1,56.1,0,0,1,55.06,176H32a8,8,0,0,0,0,16H55.06a72.12,72.12,0,0,0,58.59-30.15l1.2-1.67A8,8,0,0,0,113,149Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.24,179.76a6,6,0,0,1,0,8.48l-24,24a6,6,0,0,1-8.48-8.48L217.52,190H200.94a70.16,70.16,0,0,1-57-29.31l-41.71-58.4A58.11,58.11,0,0,0,55.06,78H32a6,6,0,0,1,0-12H55.06a70.16,70.16,0,0,1,57,29.31l41.71,58.4A58.11,58.11,0,0,0,200.94,178h16.58l-13.76-13.76a6,6,0,0,1,8.48-8.48Zm-92.06-74.41a5.91,5.91,0,0,0,3.48,1.12,6,6,0,0,0,4.89-2.51l1.19-1.67A58.11,58.11,0,0,1,200.94,78h16.58L203.76,91.76a6,6,0,1,0,8.48,8.48l24-24a6,6,0,0,0,0-8.48l-24-24a6,6,0,0,0-8.48,8.48L217.52,66H200.94a70.16,70.16,0,0,0-57,29.31L142.78,97A6,6,0,0,0,144.18,105.35Zm-32.36,45.3a6,6,0,0,0-8.37,1.39l-1.19,1.67A58.11,58.11,0,0,1,55.06,178H32a6,6,0,0,0,0,12H55.06a70.16,70.16,0,0,0,57-29.31l1.19-1.67A6,6,0,0,0,111.82,150.65Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.66,178.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L212.69,192H200.94a72.12,72.12,0,0,1-58.59-30.15l-41.72-58.4A56.1,56.1,0,0,0,55.06,80H32a8,8,0,0,1,0-16H55.06a72.12,72.12,0,0,1,58.59,30.15l41.72,58.4A56.1,56.1,0,0,0,200.94,176h11.75l-10.35-10.34a8,8,0,0,1,11.32-11.32ZM143,107a8,8,0,0,0,11.16-1.86l1.2-1.67A56.1,56.1,0,0,1,200.94,80h11.75L202.34,90.34a8,8,0,0,0,11.32,11.32l24-24a8,8,0,0,0,0-11.32l-24-24a8,8,0,0,0-11.32,11.32L212.69,64H200.94a72.12,72.12,0,0,0-58.59,30.15l-1.2,1.67A8,8,0,0,0,143,107Zm-30,42a8,8,0,0,0-11.16,1.86l-1.2,1.67A56.1,56.1,0,0,1,55.06,176H32a8,8,0,0,0,0,16H55.06a72.12,72.12,0,0,0,58.59-30.15l1.2-1.67A8,8,0,0,0,113,149Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.83,181.17a4,4,0,0,1,0,5.66l-24,24a4,4,0,0,1-5.66-5.66L222.34,188h-21.4a68.15,68.15,0,0,1-55.34-28.48l-41.71-58.39A60.11,60.11,0,0,0,55.06,76H32a4,4,0,0,1,0-8H55.06A68.15,68.15,0,0,1,110.4,96.48l41.71,58.39A60.11,60.11,0,0,0,200.94,180h21.4l-17.17-17.17a4,4,0,0,1,5.66-5.66Zm-89.49-77.44a4,4,0,0,0,5.58-.93l1.19-1.67A60.11,60.11,0,0,1,200.94,76h21.4L205.17,93.17a4,4,0,0,0,5.66,5.66l24-24a4,4,0,0,0,0-5.66l-24-24a4,4,0,0,0-5.66,5.66L222.34,68h-21.4A68.15,68.15,0,0,0,145.6,96.48l-1.19,1.67A4,4,0,0,0,145.34,103.73Zm-34.68,48.54a4,4,0,0,0-5.58.93l-1.19,1.67A60.11,60.11,0,0,1,55.06,180H32a4,4,0,0,0,0,8H55.06a68.15,68.15,0,0,0,55.34-28.48l1.19-1.67A4,4,0,0,0,110.66,152.27Z"}))]]),LF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,28a12,12,0,0,0-12,12v62l-113.45-71A20,20,0,0,0,44,47.88V208.12A20,20,0,0,0,74.55,225L188,154v62a12,12,0,0,0,24,0V40A12,12,0,0,0,200,28ZM68,200.73V55.27L184.3,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M196.3,134.65,68.19,214.77A8,8,0,0,1,56,208.12V47.88a8,8,0,0,1,12.19-6.65L196.3,121.35A7.83,7.83,0,0,1,196.3,134.65Z",opacity:"0.2"}),r.createElement("path",{d:"M200,32a8,8,0,0,0-8,8v69.23L72.43,34.45A15.95,15.95,0,0,0,48,47.88V208.12a16,16,0,0,0,24.43,13.43L192,146.77V216a8,8,0,0,0,16,0V40A8,8,0,0,0,200,32ZM64,207.93V48.05l127.84,80Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,40V216a8,8,0,0,1-16,0V146.77L72.43,221.55A15.95,15.95,0,0,1,48,208.12V47.88A15.95,15.95,0,0,1,72.43,34.45L192,109.23V40a8,8,0,0,1,16,0Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,34a6,6,0,0,0-6,6v72.84L71.37,36.14a14,14,0,0,0-14.21-.37A13.69,13.69,0,0,0,50,47.88V208.12a13.69,13.69,0,0,0,7.16,12.11,14,14,0,0,0,14.21-.37L194,143.17V216a6,6,0,0,0,12,0V40A6,6,0,0,0,200,34Zm-6.88,95.56L65,209.69a2,2,0,0,1-2,.05,1.79,1.79,0,0,1-1-1.62V47.88a1.79,1.79,0,0,1,1-1.62A2.1,2.1,0,0,1,64,46a2,2,0,0,1,1,.31l128.12,80.13a1.82,1.82,0,0,1,0,3.12Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,32a8,8,0,0,0-8,8v69.23L72.43,34.45A15.95,15.95,0,0,0,48,47.88V208.12a16,16,0,0,0,24.43,13.43L192,146.77V216a8,8,0,0,0,16,0V40A8,8,0,0,0,200,32ZM64,207.93V48.05l127.84,80Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,36a4,4,0,0,0-4,4v76.44L70.31,37.84a12,12,0,0,0-12.18-.32A11.69,11.69,0,0,0,52,47.88V208.12a11.69,11.69,0,0,0,6.13,10.36,12,12,0,0,0,12.18-.32L196,139.56V216a4,4,0,0,0,8,0V40A4,4,0,0,0,200,36Zm-5.82,95.26L66.06,211.38a4,4,0,0,1-4.06.11,3.8,3.8,0,0,1-2-3.37V47.88a3.8,3.8,0,0,1,2-3.37A4,4,0,0,1,64,44a4,4,0,0,1,2.11.62l128.12,80.12a3.83,3.83,0,0,1,0,6.52Z"}))]]),kF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M157.27,21.22a12,12,0,0,0-12.64,1.31L75.88,76H32A20,20,0,0,0,12,96v64a20,20,0,0,0,20,20H75.88l68.75,53.47A12,12,0,0,0,164,224V32A12,12,0,0,0,157.27,21.22ZM36,100H68v56H36Zm104,99.46L92,162.13V93.87l48-37.33ZM212,128a44,44,0,0,1-11,29.11,12,12,0,1,1-18-15.88,20,20,0,0,0,0-26.43,12,12,0,0,1,18-15.86A43.94,43.94,0,0,1,212,128Zm40,0a83.87,83.87,0,0,1-21.39,56,12,12,0,0,1-17.89-16,60,60,0,0,0,0-80,12,12,0,1,1,17.88-16A83.87,83.87,0,0,1,252,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M80,88v80H32a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8Z",opacity:"0.2"}),r.createElement("path",{d:"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,32.25V223.69a8.29,8.29,0,0,1-3.91,7.18,8,8,0,0,1-9-.56l-65.57-51A4,4,0,0,1,80,176.16V79.84a4,4,0,0,1,1.55-3.15l65.57-51a8,8,0,0,1,10,.16A8.27,8.27,0,0,1,160,32.25ZM60,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H60a4,4,0,0,0,4-4V84A4,4,0,0,0,60,80Zm126.77,20.84a8,8,0,0,0-.72,11.3,24,24,0,0,1,0,31.72,8,8,0,1,0,12,10.58,40,40,0,0,0,0-52.88A8,8,0,0,0,186.74,100.84Zm40.89-26.17a8,8,0,1,0-11.92,10.66,64,64,0,0,1,0,85.34,8,8,0,1,0,11.92,10.66,80,80,0,0,0,0-106.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M154.64,26.61a6,6,0,0,0-6.32.65L77.94,82H32A14,14,0,0,0,18,96v64a14,14,0,0,0,14,14H77.94l70.38,54.74A6,6,0,0,0,158,224V32A6,6,0,0,0,154.64,26.61ZM30,160V96a2,2,0,0,1,2-2H74v68H32A2,2,0,0,1,30,160Zm116,51.73L86,165.07V90.93l60-46.66Zm50.53-108.85a38,38,0,0,1,0,50.24,6,6,0,1,1-9-7.94,26,26,0,0,0,0-34.37,6,6,0,0,1,9-7.93ZM246,128a77.86,77.86,0,0,1-19.86,52,6,6,0,1,1-8.94-8,66,66,0,0,0,0-88,6,6,0,1,1,8.94-8A77.86,77.86,0,0,1,246,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M153.76,28.41a4,4,0,0,0-4.22.43L78.63,84H32A12,12,0,0,0,20,96v64a12,12,0,0,0,12,12H78.63l70.91,55.16A4.07,4.07,0,0,0,152,228a3.92,3.92,0,0,0,1.76-.41A4,4,0,0,0,156,224V32A4,4,0,0,0,153.76,28.41ZM28,160V96a4,4,0,0,1,4-4H76v72H32A4,4,0,0,1,28,160Zm120,55.82L84,166V90l64-49.78Zm47-111.61a36,36,0,0,1,0,47.59,4,4,0,1,1-6-5.3,28,28,0,0,0,0-37,4,4,0,0,1,6-5.28ZM244,128a75.88,75.88,0,0,1-19.35,50.67,4,4,0,0,1-6-5.34,68,68,0,0,0,0-90.66,4,4,0,0,1,6-5.34A75.88,75.88,0,0,1,244,128Z"}))]]),RF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]),DF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm84,84H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm90,90H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm92,92H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]),OF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,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"}),r.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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,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",r.createElement(r.Fragment,null,r.createElement("path",{d:"M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,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"}))]]),FF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M243,96a20.33,20.33,0,0,0-17.74-14l-56.59-4.57L146.83,24.62a20.36,20.36,0,0,0-37.66,0L87.35,77.44,30.76,82A20.45,20.45,0,0,0,19.1,117.88l43.18,37.24-13.2,55.7A20.37,20.37,0,0,0,79.57,233L128,203.19,176.43,233a20.39,20.39,0,0,0,30.49-22.15l-13.2-55.7,43.18-37.24A20.43,20.43,0,0,0,243,96ZM172.53,141.7a12,12,0,0,0-3.84,11.86L181.58,208l-47.29-29.08a12,12,0,0,0-12.58,0L74.42,208l12.89-54.4a12,12,0,0,0-3.84-11.86L41.2,105.24l55.4-4.47a12,12,0,0,0,10.13-7.38L128,41.89l21.27,51.5a12,12,0,0,0,10.13,7.38l55.4,4.47Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.06,108.79l-48.7,42,14.88,62.79a8.4,8.4,0,0,1-12.52,9.17L128,189.09,73.28,222.74a8.4,8.4,0,0,1-12.52-9.17l14.88-62.79-48.7-42A8.46,8.46,0,0,1,31.73,94L95.64,88.8l24.62-59.6a8.36,8.36,0,0,1,15.48,0l24.62,59.6L224.27,94A8.46,8.46,0,0,1,229.06,108.79Z",opacity:"0.2"}),r.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.28,97.87A14.18,14.18,0,0,0,224.76,88l-60.25-4.87-23.22-56.2a14.37,14.37,0,0,0-26.58,0L91.49,83.11,31.24,88a14.18,14.18,0,0,0-12.52,9.89A14.43,14.43,0,0,0,23,113.32L69,152.93l-14,59.25a14.4,14.4,0,0,0,5.59,15,14.1,14.1,0,0,0,15.91.6L128,196.12l51.58,31.71a14.1,14.1,0,0,0,15.91-.6,14.4,14.4,0,0,0,5.59-15l-14-59.25L233,113.32A14.43,14.43,0,0,0,237.28,97.87Zm-12.14,6.37-48.69,42a6,6,0,0,0-1.92,5.92l14.88,62.79a2.35,2.35,0,0,1-.95,2.57,2.24,2.24,0,0,1-2.6.1L131.14,184a6,6,0,0,0-6.28,0L70.14,217.61a2.24,2.24,0,0,1-2.6-.1,2.35,2.35,0,0,1-1-2.57l14.88-62.79a6,6,0,0,0-1.92-5.92l-48.69-42a2.37,2.37,0,0,1-.73-2.65,2.28,2.28,0,0,1,2.07-1.65l63.92-5.16a6,6,0,0,0,5.06-3.69l24.63-59.6a2.35,2.35,0,0,1,4.38,0l24.63,59.6a6,6,0,0,0,5.06,3.69l63.92,5.16a2.28,2.28,0,0,1,2.07,1.65A2.37,2.37,0,0,1,225.14,104.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M235.36,98.49A12.21,12.21,0,0,0,224.59,90l-61.47-5L139.44,27.67a12.37,12.37,0,0,0-22.88,0L92.88,85,31.41,90a12.45,12.45,0,0,0-7.07,21.84l46.85,40.41L56.87,212.64a12.35,12.35,0,0,0,18.51,13.49L128,193.77l52.62,32.36a12.12,12.12,0,0,0,13.69-.51,12.28,12.28,0,0,0,4.82-13l-14.32-60.42,46.85-40.41A12.29,12.29,0,0,0,235.36,98.49Zm-8.93,7.26-48.68,42a4,4,0,0,0-1.28,3.95l14.87,62.79a4.37,4.37,0,0,1-1.72,4.65,4.24,4.24,0,0,1-4.81.18L130.1,185.67a4,4,0,0,0-4.2,0L71.19,219.32a4.24,4.24,0,0,1-4.81-.18,4.37,4.37,0,0,1-1.72-4.65L79.53,151.7a4,4,0,0,0-1.28-3.95l-48.68-42A4.37,4.37,0,0,1,28.25,101a4.31,4.31,0,0,1,3.81-3L96,92.79a4,4,0,0,0,3.38-2.46L124,30.73a4.35,4.35,0,0,1,8.08,0l24.62,59.6A4,4,0,0,0,160,92.79l63.9,5.15a4.31,4.31,0,0,1,3.81,3A4.37,4.37,0,0,1,226.43,105.75Z"}))]]),zF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M246.15,133.18,146.83,33.86A19.85,19.85,0,0,0,132.69,28H40A12,12,0,0,0,28,40v92.69a19.85,19.85,0,0,0,5.86,14.14l99.32,99.32a20,20,0,0,0,28.28,0l84.69-84.69A20,20,0,0,0,246.15,133.18Zm-98.83,93.17L52,131V52h79l95.32,95.32ZM104,88A16,16,0,1,1,88,72,16,16,0,0,1,104,88Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.66,153,153,237.66a8,8,0,0,1-11.31,0L42.34,138.34A8,8,0,0,1,40,132.69V40h92.69a8,8,0,0,1,5.65,2.34l99.32,99.32A8,8,0,0,1,237.66,153Z",opacity:"0.2"}),r.createElement("path",{d:"M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63Zm-96,96L48,132.69V48h84.69L232,147.31ZM96,84A12,12,0,1,1,84,72,12,12,0,0,1,96,84Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63ZM84,96A12,12,0,1,1,96,84,12,12,0,0,1,84,96Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M241.91,137.42,142.59,38.1a13.94,13.94,0,0,0-9.9-4.1H40a6,6,0,0,0-6,6v92.69a13.94,13.94,0,0,0,4.1,9.9l99.32,99.32a14,14,0,0,0,19.8,0l84.69-84.69A14,14,0,0,0,241.91,137.42Zm-8.49,11.31-84.69,84.69a2,2,0,0,1-2.83,0L46.59,134.1a2,2,0,0,1-.59-1.41V46h86.69a2,2,0,0,1,1.41.59l99.32,99.31A2,2,0,0,1,233.42,148.73ZM94,84A10,10,0,1,1,84,74,10,10,0,0,1,94,84Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63Zm-96,96L48,132.69V48h84.69L232,147.31ZM96,84A12,12,0,1,1,84,72,12,12,0,0,1,96,84Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240.49,138.83,141.17,39.51A11.93,11.93,0,0,0,132.69,36H40a4,4,0,0,0-4,4v92.69a11.93,11.93,0,0,0,3.51,8.48l99.32,99.32a12,12,0,0,0,17,0l84.69-84.69a12,12,0,0,0,0-17Zm-5.66,11.31-84.69,84.69a4,4,0,0,1-5.65,0L45.17,135.51A4,4,0,0,1,44,132.69V44h88.69a4,4,0,0,1,2.82,1.17l99.32,99.32A4,4,0,0,1,234.83,150.14ZM92,84a8,8,0,1,1-8-8A8,8,0,0,1,92,84Z"}))]]),$F=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.26,90.4a108,108,0,0,1-177.63,114A108,108,0,0,1,195.41,43.63l20.1-20.11a12,12,0,0,1,17,17l-96,96a12,12,0,1,1-17-17l24-24a36,36,0,1,0,19.76,39.65,12,12,0,0,1,23.53,4.74,60,60,0,1,1-25.73-62L178.3,60.74a84,84,0,1,0,28.46,38,12,12,0,1,1,22.5-8.35Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,128a48,48,0,1,1-48-48A48,48,0,0,1,176,128Z",opacity:"0.2"}),r.createElement("path",{d:"M221.87,83.16A104.1,104.1,0,1,1,195.67,49l22.67-22.68a8,8,0,0,1,11.32,11.32l-96,96a8,8,0,0,1-11.32-11.32l27.72-27.72a40,40,0,1,0,17.87,31.09,8,8,0,1,1,16-.9,56,56,0,1,1-22.38-41.65L184.3,60.39a87.88,87.88,0,1,0,23.13,29.67,8,8,0,0,1,14.44-6.9Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.87,83.16A104.1,104.1,0,1,1,195.67,49l22.67-22.68a8,8,0,0,1,11.32,11.32L167.6,99.71h0l-37.71,37.71-23.95,23.95a40,40,0,0,0,62-35.67,8,8,0,1,1,16-.9,56,56,0,0,1-95.5,42.79h0a56,56,0,0,1,73.13-84.43L184.3,60.39a87.88,87.88,0,1,0,23.13,29.67,8,8,0,0,1,14.44-6.9Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220.06,84a102.06,102.06,0,1,1-24.31-32.27l24-24a6,6,0,0,1,8.48,8.49l-96,96a6,6,0,1,1-8.48-8.49l29.39-29.4a42,42,0,1,0,16.78,31.24,6,6,0,1,1,12-.68A54,54,0,1,1,161.7,85.83l25.54-25.55a89.91,89.91,0,1,0,22,28.93A6,6,0,1,1,220.06,84Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.87,83.16A104.1,104.1,0,1,1,195.67,49l22.67-22.68a8,8,0,0,1,11.32,11.32l-96,96a8,8,0,0,1-11.32-11.32l27.72-27.72a40,40,0,1,0,17.87,31.09,8,8,0,1,1,16-.9,56,56,0,1,1-22.38-41.65L184.3,60.39a87.88,87.88,0,1,0,23.13,29.67,8,8,0,0,1,14.44-6.9Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M218.26,84.89a100.16,100.16,0,1,1-22.44-30.37l25.35-25.35a4,4,0,1,1,5.66,5.66l-96,96a4,4,0,0,1-5.66-5.66l31-31a44,44,0,1,0,15.78,31.3,4,4,0,0,1,8-.46,52,52,0,1,1-18.1-36.51l28.34-28.33A92,92,0,0,0,63,193.05,92,92,0,0,0,211,88.33a4,4,0,1,1,7.22-3.44Z"}))]]),qF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188.84,120.46a68.14,68.14,0,0,0-10-6.23c-3.72-21.68-16.41-37.41-35.52-43.2C121.94,64.55,97.29,72.42,86,89.34a12,12,0,0,0,20,13.32c5.47-8.2,19.11-12.08,30.41-8.66a24.72,24.72,0,0,1,14.88,12.24,86.73,86.73,0,0,0-8.86-.45C108.56,105.79,84,125.22,84,152c0,22.9,17.54,39.52,41.71,39.52a52,52,0,0,0,37.23-16c6-6.23,12.88-16.46,15.72-32.07,6.2,6.42,9.34,14.67,9.34,24.59,0,17.74-19.07,44-60,44-45.76,0-68-27.48-68-84s22.24-84,68-84c31.08,0,51,12.42,60.8,38a12,12,0,0,0,22.4-8.62C197.77,38.44,169,20,128,20,68.67,20,36,58.35,36,128s32.67,108,92,108c31.36,0,51.08-12.05,62.11-22.15C203.81,201.28,212,184.14,212,168,212,148.36,204,131.92,188.84,120.46Zm-43.2,38.39a27.9,27.9,0,0,1-19.93,8.67c-8.17,0-17.71-4.06-17.71-15.52,0-15.26,17.84-22.21,34.41-22.21a60.23,60.23,0,0,1,13.51,1.52C155.36,142.93,151.84,152.41,145.64,158.85Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,128c0,48-16,96-80,96s-80-48-80-96,16-96,80-96S208,80,208,128Z",opacity:"0.2"}),r.createElement("path",{d:"M186.42,123.65a63.81,63.81,0,0,0-11.13-6.72c-4-29.89-24-39.31-33.1-42.07-19.78-6-42.51,1.19-52.85,16.7a8,8,0,0,0,13.32,8.88c6.37-9.56,22-14.16,34.89-10.27,9.95,3,16.82,10.3,20.15,21a81.05,81.05,0,0,0-15.29-1.43c-13.92,0-26.95,3.59-36.67,10.1C94.3,127.57,88,139,88,152c0,20.58,15.86,35.52,37.71,35.52a48,48,0,0,0,34.35-14.81c6.44-6.7,14-18.36,15.61-37.1.38.26.74.53,1.1.8C186.88,144.05,192,154.68,192,168c0,19.36-20.34,48-64,48-26.73,0-45.48-8.65-57.34-26.44C60.93,175,56,154.26,56,128s4.93-47,14.66-61.56C82.52,48.65,101.27,40,128,40c32.93,0,54,13.25,64.53,40.52a8,8,0,1,0,14.93-5.75C194.68,41.56,167.2,24,128,24,96,24,72.19,35.29,57.34,57.56,45.83,74.83,40,98.52,40,128s5.83,53.17,17.34,70.44C72.19,220.71,96,232,128,232c30.07,0,48.9-11.48,59.4-21.1C200.3,199.08,208,183,208,168,208,149.66,200.54,134.32,186.42,123.65Zm-37.89,38a31.94,31.94,0,0,1-22.82,9.9c-10.81,0-21.71-6-21.71-19.52,0-12.63,12-26.21,38.41-26.21A63.88,63.88,0,0,1,160,128.24C160,142.32,156,153.86,148.53,161.62Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M138.62,128a53.54,53.54,0,0,1,13.1,1.63c-.57,8.21-3.34,15-8.11,19.61A23.89,23.89,0,0,1,127,156c-11.87,0-15-7.58-15-12.07C112,133,125.8,128,138.62,128ZM224,128c0,65.12-35.89,104-96,104S32,193.12,32,128,67.89,24,128,24,224,62.88,224,128ZM72,128c0-43.07,18.32-64,56-64,26.34,0,43,10.08,50.81,30.83a8,8,0,0,0,15-5.66C180.9,55.14,150.9,48,128,48c-26.1,0-45.52,8.7-57.72,25.86C60.8,87.19,56,105.4,56,128s4.8,40.81,14.28,54.14C82.48,199.3,101.9,208,128,208c24.45,0,39.82-8.8,48.41-16.18,10.76-9.25,17.19-21.89,17.19-33.82,0-14.3-6.59-26.79-18.56-35.17a54.16,54.16,0,0,0-7.77-4.5c-2.09-14.65-10-25.75-22.34-31.07C130.43,81,112,83.93,101.21,94.19a8,8,0,0,0,11,11.62c5.43-5.14,16.79-8,26.4-3.85a20.05,20.05,0,0,1,10.77,10.92,68.89,68.89,0,0,0-10.76-.85C113.53,112,96,125.15,96,143.93c0,16.27,13,28.07,31,28.07a40,40,0,0,0,27.75-11.29c4.7-4.59,10.11-12.2,12.17-24A25.55,25.55,0,0,1,177.6,158c0,13.71-15.76,34-49.6,34C90.32,192,72,171.07,72,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M185.22,125.25a62,62,0,0,0-11.78-7c-3.53-29.6-23-38.82-31.83-41.5-19-5.74-40.73,1.09-50.6,15.9a6,6,0,1,0,10,6.66c6.94-10.41,23.25-15.28,37.14-11.07,7.22,2.18,18.39,8.34,22.39,25.61a78.74,78.74,0,0,0-18.11-2.08c-13.53,0-26.16,3.46-35.55,9.77C96,128.85,90,139.66,90,152c0,22,18,33.52,35.71,33.52a46,46,0,0,0,32.91-14.19c6.58-6.85,14.35-19.11,15.29-39.26a44.59,44.59,0,0,1,4.07,2.75c10.48,7.92,16,19.4,16,33.18,0,20.16-21,50-66,50-27.07,0-46.92-9.19-59-27.33C59,175.75,54,154.66,54,128s5-47.75,15-62.67C81.08,47.19,100.93,38,128,38c33.85,0,55.57,13.67,66.4,41.8a6,6,0,1,0,11.2-4.31C193,42.65,166.85,26,128,26,96.67,26,73.46,37,59,58.67,47.72,75.6,42,98.93,42,128s5.72,52.4,17,69.33C73.46,219,96.67,230,128,230c29.43,0,47.81-11.19,58.05-20.58C198.54,198,206,182.49,206,168,206,150.31,198.81,135.52,185.22,125.25ZM150,163a33.94,33.94,0,0,1-24.26,10.51C109.33,173.52,102,162.71,102,152c0-13.59,12.64-28.21,40.41-28.21a65.33,65.33,0,0,1,19.58,3c0,.41,0,.82,0,1.24C162,142.72,157.84,154.82,150,163Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M186.42,123.65a63.81,63.81,0,0,0-11.13-6.72c-4-29.89-24-39.31-33.1-42.07-19.78-6-42.51,1.19-52.85,16.7a8,8,0,0,0,13.32,8.88c6.37-9.56,22-14.16,34.89-10.27,9.95,3,16.82,10.3,20.15,21a81.05,81.05,0,0,0-15.29-1.43c-13.92,0-26.95,3.59-36.67,10.1C94.3,127.57,88,139,88,152c0,20.58,15.86,35.52,37.71,35.52a48,48,0,0,0,34.35-14.81c6.44-6.7,14-18.36,15.61-37.1.38.26.74.53,1.1.8C186.88,144.05,192,154.68,192,168c0,19.36-20.34,48-64,48-26.73,0-45.48-8.65-57.34-26.44C60.93,175,56,154.26,56,128s4.93-47,14.66-61.56C82.52,48.65,101.27,40,128,40c32.93,0,54,13.25,64.53,40.52a8,8,0,1,0,14.93-5.75C194.68,41.56,167.2,24,128,24,96,24,72.19,35.29,57.34,57.56,45.83,74.83,40,98.52,40,128s5.83,53.17,17.34,70.44C72.19,220.71,96,232,128,232c30.07,0,48.9-11.48,59.4-21.1C200.3,199.08,208,183,208,168,208,149.66,200.54,134.32,186.42,123.65Zm-37.89,38a31.94,31.94,0,0,1-22.82,9.9c-10.81,0-21.71-6-21.71-19.52,0-12.63,12-26.21,38.41-26.21A63.88,63.88,0,0,1,160,128.24C160,142.32,156,153.86,148.53,161.62Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,126.84a59.8,59.8,0,0,0-12.42-7.16c-3-29.38-22-38.4-30.56-41-18.16-5.5-39,1-48.36,15.09a4,4,0,0,0,6.66,4.44c7.4-11.1,24.7-16.32,39.38-11.87,8.12,2.45,20.95,9.6,24.41,30.32a75.83,75.83,0,0,0-20.71-2.88c-13.14,0-25.37,3.34-34.44,9.43-10.45,7-16,17-16,28.78,0,20.7,17,31.52,33.71,31.52a44,44,0,0,0,31.47-13.58c9.56-9.94,14.68-24.19,14.82-41.23a50.18,50.18,0,0,1,7.19,4.51c11,8.32,16.81,20.34,16.81,34.78,0,11.73-6.25,24.46-16.7,34.05C170.36,210.24,154.21,220,128,220c-50.43,0-76-30.95-76-92s25.57-92,76-92c34.29,0,57.26,14.5,68.27,43.08a4,4,0,1,0,7.46-2.87C191.42,44.22,165.94,28,128,28,73.05,28,44,62.58,44,128s29.05,100,84,100c28.79,0,46.72-10.9,56.7-20.05,12.09-11.08,19.3-26,19.3-39.95C204,151,197.09,136.73,184,126.84Zm-32.6,37.55a35.92,35.92,0,0,1-25.7,11.13c-12.38,0-25.71-7.36-25.71-23.52,0-20.76,22-30.21,42.41-30.21A67.08,67.08,0,0,1,164,125.3c0,.88.05,1.78.05,2.7C164,143.25,159.65,155.83,151.41,164.39Z"}))]]),IF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M243.78,156.53l-12-96A28,28,0,0,0,204,36H32A20,20,0,0,0,12,56v88a20,20,0,0,0,20,20H72.58l36.69,73.37A12,12,0,0,0,120,244a44.05,44.05,0,0,0,44-44V188h52a28,28,0,0,0,27.78-31.47ZM68,140H36V60H68Zm151,22.65a4,4,0,0,1-3,1.35H152a12,12,0,0,0-12,12v24a20,20,0,0,1-13.18,18.8L92,149.17V60H204a4,4,0,0,1,4,3.5l12,96A4,4,0,0,1,219,162.65Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M80,48V152H32a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8Z",opacity:"0.2"}),r.createElement("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.83,157.27l-12-96A22,22,0,0,0,204,42H32A14,14,0,0,0,18,56v88a14,14,0,0,0,14,14H76.29l38.34,76.68A6,6,0,0,0,120,238a38,38,0,0,0,38-38V182h58a22,22,0,0,0,21.83-24.73ZM74,146H32a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H74Zm149.5,20.62A9.89,9.89,0,0,1,216,170H152a6,6,0,0,0-6,6v24a26,26,0,0,1-22.42,25.75L86,150.58V54H204a10,10,0,0,1,9.92,8.76l12,96A9.89,9.89,0,0,1,223.5,166.62Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M235.85,157.52l-12-96A20,20,0,0,0,204,44H32A12,12,0,0,0,20,56v88a12,12,0,0,0,12,12H77.53l38.89,77.79A4,4,0,0,0,120,236a36,36,0,0,0,36-36V180h60a20,20,0,0,0,19.85-22.48ZM76,148H32a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H76Zm149,19.94a12,12,0,0,1-9,4.06H152a4,4,0,0,0-4,4v24a28,28,0,0,1-25.58,27.9L84,151.06V52H204a12,12,0,0,1,11.91,10.51l12,96A12,12,0,0,1,225,167.94Z"}))]]),BF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237,77.47A28,28,0,0,0,216,68H164V56a44.05,44.05,0,0,0-44-44,12,12,0,0,0-10.73,6.63L72.58,92H32a20,20,0,0,0-20,20v88a20,20,0,0,0,20,20H204a28,28,0,0,0,27.78-24.53l12-96A28,28,0,0,0,237,77.47ZM36,116H68v80H36ZM220,96.5l-12,96a4,4,0,0,1-4,3.5H92V106.83L126.82,37.2A20,20,0,0,1,140,56V80a12,12,0,0,0,12,12h64a4,4,0,0,1,4,4.5Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M80,104V208H32a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8Z",opacity:"0.2"}),r.createElement("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232.49,81.44A22,22,0,0,0,216,74H158V56a38,38,0,0,0-38-38,6,6,0,0,0-5.37,3.32L76.29,98H32a14,14,0,0,0-14,14v88a14,14,0,0,0,14,14H204a22,22,0,0,0,21.83-19.27l12-96A22,22,0,0,0,232.49,81.44ZM30,200V112a2,2,0,0,1,2-2H74v92H32A2,2,0,0,1,30,200ZM225.92,97.24l-12,96A10,10,0,0,1,204,202H86V105.42l37.58-75.17A26,26,0,0,1,146,56V80a6,6,0,0,0,6,6h64a10,10,0,0,1,9.92,11.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M231,82.76A20,20,0,0,0,216,76H156V56a36,36,0,0,0-36-36,4,4,0,0,0-3.58,2.21L77.53,100H32a12,12,0,0,0-12,12v88a12,12,0,0,0,12,12H204a20,20,0,0,0,19.85-17.52l12-96A20,20,0,0,0,231,82.76ZM76,204H32a4,4,0,0,1-4-4V112a4,4,0,0,1,4-4H76ZM227.91,97.49l-12,96A12,12,0,0,1,204,204H84V104.94L122.42,28.1A28,28,0,0,1,148,56V80a4,4,0,0,0,4,4h64a12,12,0,0,1,11.91,13.49Z"}))]]),PF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,44a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,44Zm0,168a72,72,0,1,1,72-72A72.08,72.08,0,0,1,128,212ZM164.49,99.51a12,12,0,0,1,0,17l-28,28a12,12,0,0,1-17-17l28-28A12,12,0,0,1,164.49,99.51ZM92,16A12,12,0,0,1,104,4h48a12,12,0,0,1,0,24H104A12,12,0,0,1,92,16Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,136a88,88,0,1,1-88-88A88,88,0,0,1,216,136Z",opacity:"0.2"}),r.createElement("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm45.66,61.66-40,40a8,8,0,0,1-11.32-11.32l40-40a8,8,0,0,1,11.32,11.32ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,42a94,94,0,1,0,94,94A94.11,94.11,0,0,0,128,42Zm0,176a82,82,0,1,1,82-82A82.1,82.1,0,0,1,128,218ZM172.24,91.76a6,6,0,0,1,0,8.48l-40,40a6,6,0,1,1-8.48-8.48l40-40A6,6,0,0,1,172.24,91.76ZM98,16a6,6,0,0,1,6-6h48a6,6,0,0,1,0,12H104A6,6,0,0,1,98,16Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,44a92,92,0,1,0,92,92A92.1,92.1,0,0,0,128,44Zm0,176a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,220ZM170.83,93.17a4,4,0,0,1,0,5.66l-40,40a4,4,0,1,1-5.66-5.66l40-40A4,4,0,0,1,170.83,93.17ZM100,16a4,4,0,0,1,4-4h48a4,4,0,0,1,0,8H104A4,4,0,0,1,100,16Z"}))]]),UF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),r.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),GF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,116h48a20,20,0,0,0,20-20V48a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20V60H128a28,28,0,0,0-28,28v28H76v-4A20,20,0,0,0,56,92H24A20,20,0,0,0,4,112v32a20,20,0,0,0,20,20H56a20,20,0,0,0,20-20v-4h24v28a28,28,0,0,0,28,28h12v12a20,20,0,0,0,20,20h48a20,20,0,0,0,20-20V160a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20v12H128a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4h12V96A20,20,0,0,0,160,116ZM52,140H28V116H52Zm112,24h40v40H164Zm0-112h40V92H164Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M64,112v32a8,8,0,0,1-8,8H24a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H56A8,8,0,0,1,64,112ZM208,40H160a8,8,0,0,0-8,8V96a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V48A8,8,0,0,0,208,40Zm0,112H160a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152Z",opacity:"0.2"}),r.createElement("path",{d:"M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M144,96V80H128a8,8,0,0,0-8,8v80a8,8,0,0,0,8,8h16V160a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16v48a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V192H128a24,24,0,0,1-24-24V136H72v8a16,16,0,0,1-16,16H24A16,16,0,0,1,8,144V112A16,16,0,0,1,24,96H56a16,16,0,0,1,16,16v8h32V88a24,24,0,0,1,24-24h16V48a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V96a16,16,0,0,1-16,16H160A16,16,0,0,1,144,96Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,110h48a14,14,0,0,0,14-14V48a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14V66H128a22,22,0,0,0-22,22v34H70V112A14,14,0,0,0,56,98H24a14,14,0,0,0-14,14v32a14,14,0,0,0,14,14H56a14,14,0,0,0,14-14V134h36v34a22,22,0,0,0,22,22h18v18a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V160a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14v18H128a10,10,0,0,1-10-10V88a10,10,0,0,1,10-10h18V96A14,14,0,0,0,160,110ZM58,144a2,2,0,0,1-2,2H24a2,2,0,0,1-2-2V112a2,2,0,0,1,2-2H56a2,2,0,0,1,2,2Zm100,16a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2v48a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Zm0-112a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2V96a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,108h48a12,12,0,0,0,12-12V48a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12V68H128a20,20,0,0,0-20,20v36H68V112a12,12,0,0,0-12-12H24a12,12,0,0,0-12,12v32a12,12,0,0,0,12,12H56a12,12,0,0,0,12-12V132h40v36a20,20,0,0,0,20,20h20v20a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V160a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12v20H128a12,12,0,0,1-12-12V88a12,12,0,0,1,12-12h20V96A12,12,0,0,0,160,108ZM60,144a4,4,0,0,1-4,4H24a4,4,0,0,1-4-4V112a4,4,0,0,1,4-4H56a4,4,0,0,1,4,4Zm96,16a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4v48a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Zm0-112a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V96a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Z"}))]]),YF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M244,56v64a12,12,0,0,1-24,0V85l-75.51,75.52a12,12,0,0,1-17,0L96,129,32.49,192.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0L136,135l67-67H168a12,12,0,0,1,0-24h64A12,12,0,0,1,244,56Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,56v64L168,56Z",opacity:"0.2"}),r.createElement("path",{d:"M232,48H168a8,8,0,0,0-5.66,13.66L188.69,88,136,140.69l-34.34-34.35a8,8,0,0,0-11.32,0l-72,72a8,8,0,0,0,11.32,11.32L96,123.31l34.34,34.35a8,8,0,0,0,11.32,0L200,99.31l26.34,26.35A8,8,0,0,0,240,120V56A8,8,0,0,0,232,48Zm-8,52.69L187.31,64H224Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,56v64a8,8,0,0,1-13.66,5.66L200,99.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,188.69,88,162.34,61.66A8,8,0,0,1,168,48h64A8,8,0,0,1,240,56Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M238,56v64a6,6,0,0,1-12,0V70.48l-85.76,85.76a6,6,0,0,1-8.48,0L96,120.49,28.24,188.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0L136,143.51,217.52,62H168a6,6,0,0,1,0-12h64A6,6,0,0,1,238,56Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,56v64a8,8,0,0,1-16,0V75.31l-82.34,82.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,212.69,64H168a8,8,0,0,1,0-16h64A8,8,0,0,1,240,56Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,56v64a4,4,0,0,1-8,0V65.66l-89.17,89.17a4,4,0,0,1-5.66,0L96,117.66,26.83,186.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0L136,146.34,222.34,60H168a4,4,0,0,1,0-8h64A4,4,0,0,1,236,56Z"}))]]),KF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,184a16,16,0,1,1,16-16A16,16,0,0,1,188,184Zm36-68H180a12,12,0,0,0,0,24h40v56H36V140H76a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116ZM88.49,80.49,116,53v75a12,12,0,0,0,24,0V53l27.51,27.52a12,12,0,1,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,1,0,17,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,136v64a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V136a8,8,0,0,1,8-8H224A8,8,0,0,1,232,136Z",opacity:"0.2"}),r.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M74.34,77.66a8,8,0,0,1,0-11.32l48-48a8,8,0,0,1,11.32,0l48,48a8,8,0,0,1-11.32,11.32L136,43.31V128a8,8,0,0,1-16,0V43.31L85.66,77.66A8,8,0,0,1,74.34,77.66ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16h68a4,4,0,0,1,4,4v3.46c0,13.45,11,24.79,24.46,24.54A24,24,0,0,0,152,128v-4a4,4,0,0,1,4-4h68A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H80a6,6,0,0,1,0,12H32a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H224a2,2,0,0,0,2-2V136a2,2,0,0,0-2-2H176a6,6,0,0,1,0-12h48A14,14,0,0,1,238,136ZM84.24,76.24,122,38.49V128a6,6,0,0,0,12,0V38.49l37.76,37.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H80a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H176a4,4,0,0,1,0-8h48A12,12,0,0,1,236,136ZM82.83,74.83,124,33.66V128a4,4,0,0,0,8,0V33.66l41.17,41.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z"}))]]),XF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.38,210a123.36,123.36,0,0,0-60.78-53.23,76,76,0,1,0-91.2,0A123.36,123.36,0,0,0,21.62,210a12,12,0,1,0,20.77,12c18.12-31.32,50.12-50,85.61-50s67.49,18.69,85.61,50a12,12,0,0,0,20.77-12ZM76,96a52,52,0,1,1,52,52A52.06,52.06,0,0,1,76,96Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,96a64,64,0,1,1-64-64A64,64,0,0,1,192,96Z",opacity:"0.2"}),r.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.93,220a8,8,0,0,1-6.93,4H32a8,8,0,0,1-6.92-12c15.23-26.33,38.7-45.21,66.09-54.16a72,72,0,1,1,73.66,0c27.39,8.95,50.86,27.83,66.09,54.16A8,8,0,0,1,230.93,220Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.19,213c-15.81-27.32-40.63-46.49-69.47-54.62a70,70,0,1,0-63.44,0C67.44,166.5,42.62,185.67,26.81,213a6,6,0,1,0,10.38,6C56.4,185.81,90.34,166,128,166s71.6,19.81,90.81,53a6,6,0,1,0,10.38-6ZM70,96a58,58,0,1,1,58,58A58.07,58.07,0,0,1,70,96Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.46,214c-16.52-28.56-43-48.06-73.68-55.09a68,68,0,1,0-51.56,0c-30.64,7-57.16,26.53-73.68,55.09a4,4,0,0,0,6.92,4C55,184.19,89.62,164,128,164s73,20.19,92.54,54a4,4,0,0,0,3.46,2,3.93,3.93,0,0,0,2-.54A4,4,0,0,0,227.46,214ZM68,96a60,60,0,1,1,60,60A60.07,60.07,0,0,1,68,96Z"}))]]),QF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20ZM79.57,196.57a60,60,0,0,1,96.86,0,83.72,83.72,0,0,1-96.86,0ZM100,120a28,28,0,1,1,28,28A28,28,0,0,1,100,120ZM194,179.94a83.48,83.48,0,0,0-29-23.42,52,52,0,1,0-74,0,83.48,83.48,0,0,0-29,23.42,84,84,0,1,1,131.9,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a95.76,95.76,0,0,1-31.8,71.37A72,72,0,0,0,128,160a40,40,0,1,0-40-40,40,40,0,0,0,40,40,72,72,0,0,0-64.2,39.37h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M172,120a44,44,0,1,1-44-44A44.05,44.05,0,0,1,172,120Zm60,8A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88.09,88.09,0,0,0-91.47-87.93C77.43,41.89,39.87,81.12,40,128.25a87.65,87.65,0,0,0,22.24,58.16A79.71,79.71,0,0,1,84,165.1a4,4,0,0,1,4.83.32,59.83,59.83,0,0,0,78.28,0,4,4,0,0,1,4.83-.32,79.71,79.71,0,0,1,21.79,21.31A87.62,87.62,0,0,0,216,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26ZM71.44,198a66,66,0,0,1,113.12,0,89.8,89.8,0,0,1-113.12,0ZM94,120a34,34,0,1,1,34,34A34,34,0,0,1,94,120Zm99.51,69.64a77.53,77.53,0,0,0-40-31.38,46,46,0,1,0-51,0,77.53,77.53,0,0,0-40,31.38,90,90,0,1,1,131,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28ZM68.87,198.42a68,68,0,0,1,118.26,0,91.8,91.8,0,0,1-118.26,0Zm124.3-5.55a75.61,75.61,0,0,0-44.51-34,44,44,0,1,0-41.32,0,75.61,75.61,0,0,0-44.51,34,92,92,0,1,1,130.34,0ZM128,156a36,36,0,1,1,36-36A36,36,0,0,1,128,156Z"}))]]),JF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220.69,100.17A12,12,0,0,0,210.84,114,85,85,0,0,1,212,128,83.57,83.57,0,0,1,194,179.94a83.48,83.48,0,0,0-29-23.42,52,52,0,1,0-74,0,83.48,83.48,0,0,0-29,23.42A83.94,83.94,0,0,1,128,44a85,85,0,0,1,14,1.16,12,12,0,0,0,4-23.67A108.1,108.1,0,0,0,20,128a108,108,0,0,0,216,0,109.19,109.19,0,0,0-1.49-18A12,12,0,0,0,220.69,100.17ZM100,120a28,28,0,1,1,28,28A28,28,0,0,1,100,120ZM79.57,196.57a60,60,0,0,1,96.86,0,83.72,83.72,0,0,1-96.86,0ZM240.49,48.49l-32,32a12,12,0,0,1-17,0l-16-16a12,12,0,0,1,17-17L200,55l23.51-23.52a12,12,0,1,1,17,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a95.76,95.76,0,0,1-31.8,71.37A72,72,0,0,0,128,160a40,40,0,1,0-40-40,40,40,0,0,0,40,40,72,72,0,0,0-64.2,39.37h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M221.35,104.11a8,8,0,0,0-6.57,9.21A88.85,88.85,0,0,1,216,128a87.62,87.62,0,0,1-22.24,58.41,79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75A88,88,0,0,1,128,40a88.76,88.76,0,0,1,14.68,1.22,8,8,0,0,0,2.64-15.78,103.92,103.92,0,1,0,85.24,85.24A8,8,0,0,0,221.35,104.11ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM237.66,45.66l-32,32a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L200,60.69l26.34-26.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.56,110.68a103.92,103.92,0,1,1-85.24-85.24,8,8,0,0,1-2.64,15.78A88.07,88.07,0,0,0,40,128a87.62,87.62,0,0,0,22.24,58.41A79.71,79.71,0,0,1,84,165.1a4,4,0,0,1,4.84.32,59.8,59.8,0,0,0,78.26,0,4,4,0,0,1,4.84-.32,79.86,79.86,0,0,1,21.79,21.31A87.62,87.62,0,0,0,216,128a88.85,88.85,0,0,0-1.22-14.68,8,8,0,1,1,15.78-2.64ZM84,120a44,44,0,1,0,44-44A44,44,0,0,0,84,120ZM237.66,34.34a8,8,0,0,0-11.32,0L200,60.69,189.66,50.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32A8,8,0,0,0,237.66,34.34Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.68,106.08a6,6,0,0,0-4.92,6.91A91.66,91.66,0,0,1,218,128a89.65,89.65,0,0,1-24.49,61.64,77.53,77.53,0,0,0-40-31.38,46,46,0,1,0-51,0,77.53,77.53,0,0,0-40,31.38A89.95,89.95,0,0,1,128,38a91.57,91.57,0,0,1,15,1.24,6,6,0,1,0,2-11.83,101.9,101.9,0,1,0,83.6,83.6A6,6,0,0,0,221.68,106.08ZM94,120a34,34,0,1,1,34,34A34,34,0,0,1,94,120ZM71.44,198a66,66,0,0,1,113.12,0,89.8,89.8,0,0,1-113.12,0ZM236.24,44.24l-32,32a6,6,0,0,1-8.48,0l-16-16a6,6,0,0,1,8.48-8.48L200,63.51l27.76-27.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.35,104.11a8,8,0,0,0-6.57,9.21A88.85,88.85,0,0,1,216,128a87.62,87.62,0,0,1-22.24,58.41,79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75A88,88,0,0,1,128,40a88.76,88.76,0,0,1,14.68,1.22,8,8,0,0,0,2.64-15.78,103.92,103.92,0,1,0,85.24,85.24A8,8,0,0,0,221.35,104.11ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM237.66,45.66l-32,32a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L200,60.69l26.34-26.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,108.05a4,4,0,0,0-3.28,4.61A93.4,93.4,0,0,1,220,128a91.71,91.71,0,0,1-26.83,64.87,75.61,75.61,0,0,0-44.51-34,44,44,0,1,0-41.32,0,75.61,75.61,0,0,0-44.51,34A92,92,0,0,1,128,36a93.4,93.4,0,0,1,15.34,1.27,4,4,0,0,0,1.32-7.89A100,100,0,1,0,228,128a101.78,101.78,0,0,0-1.38-16.66A4,4,0,0,0,222,108.05ZM92,120a36,36,0,1,1,36,36A36,36,0,0,1,92,120ZM68.87,198.42a68,68,0,0,1,118.26,0,91.8,91.8,0,0,1-118.26,0Zm166-155.59-32,32a4,4,0,0,1-5.66,0l-16-16a4,4,0,0,1,5.66-5.66L200,66.34l29.17-29.17a4,4,0,1,1,5.66,5.66Z"}))]]),WF=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164,56a12,12,0,0,1,12-12h48a12,12,0,0,1,0,24H176A12,12,0,0,1,164,56Zm65.85,36A108,108,0,1,1,128,20a109.19,109.19,0,0,1,18,1.49,12,12,0,0,1-4,23.67A85,85,0,0,0,128,44,83.94,83.94,0,0,0,62.05,179.94a83.48,83.48,0,0,1,29-23.42,52,52,0,1,1,74,0,83.36,83.36,0,0,1,29,23.42A83.94,83.94,0,0,0,207.22,100a12,12,0,0,1,22.63-8ZM128,148a28,28,0,1,0-28-28A28,28,0,0,0,128,148Zm0,64a83.53,83.53,0,0,0,48.43-15.43,60,60,0,0,0-96.86,0A83.53,83.53,0,0,0,128,212Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a95.76,95.76,0,0,1-31.8,71.37A72,72,0,0,0,128,160a40,40,0,1,0-40-40,40,40,0,0,0,40,40,72,72,0,0,0-64.2,39.37h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M168,56a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H176A8,8,0,0,1,168,56Zm58.08,37.33a103.93,103.93,0,1,1-80.76-67.89,8,8,0,0,1-2.64,15.78A88.07,88.07,0,0,0,40,128a87.62,87.62,0,0,0,22.24,58.41A79.66,79.66,0,0,1,98.3,157.66a48,48,0,1,1,59.4,0,79.66,79.66,0,0,1,36.06,28.75A88,88,0,0,0,211,98.67a8,8,0,0,1,15.09-5.34ZM128,152a32,32,0,1,0-32-32A32,32,0,0,0,128,152Zm0,64a87.57,87.57,0,0,0,53.92-18.5,64,64,0,0,0-107.84,0A87.57,87.57,0,0,0,128,216Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,76a44,44,0,1,1-44,44A44,44,0,0,1,128,76Zm48-12h48a8,8,0,0,0,0-16H176a8,8,0,0,0,0,16Zm39.87,24.46A8,8,0,0,0,211,98.67a88,88,0,0,1-17.23,87.74A79.86,79.86,0,0,0,172,165.1a4,4,0,0,0-4.84.32,59.81,59.81,0,0,1-78.27,0A4,4,0,0,0,84,165.1a79.71,79.71,0,0,0-21.79,21.31A88,88,0,0,1,128,40a88.76,88.76,0,0,1,14.68,1.22,8,8,0,0,0,2.64-15.78,103.9,103.9,0,1,0,80.76,67.89A8,8,0,0,0,215.87,88.46Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M170,56a6,6,0,0,1,6-6h48a6,6,0,0,1,0,12H176A6,6,0,0,1,170,56Zm54.19,38A101.9,101.9,0,1,1,145,27.41a6,6,0,1,1-2,11.83A91.66,91.66,0,0,0,128,38,89.95,89.95,0,0,0,62.49,189.64a77.53,77.53,0,0,1,40-31.38,46,46,0,1,1,51,0,77.53,77.53,0,0,1,40,31.38A90,90,0,0,0,212.88,98a6,6,0,1,1,11.31-4ZM128,154a34,34,0,1,0-34-34A34,34,0,0,0,128,154Zm0,64A89.58,89.58,0,0,0,184.56,198a66,66,0,0,0-113.12,0A89.58,89.58,0,0,0,128,218Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,56a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H176A8,8,0,0,1,168,56Zm58.08,37.33a103.93,103.93,0,1,1-80.76-67.89,8,8,0,0,1-2.64,15.78A88.07,88.07,0,0,0,40,128a87.62,87.62,0,0,0,22.24,58.41A79.66,79.66,0,0,1,98.3,157.66a48,48,0,1,1,59.4,0,79.66,79.66,0,0,1,36.06,28.75A88,88,0,0,0,211,98.67a8,8,0,0,1,15.09-5.34ZM128,152a32,32,0,1,0-32-32A32,32,0,0,0,128,152Zm0,64a87.57,87.57,0,0,0,53.92-18.5,64,64,0,0,0-107.84,0A87.57,87.57,0,0,0,128,216Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M172,56a4,4,0,0,1,4-4h48a4,4,0,0,1,0,8H176A4,4,0,0,1,172,56Zm50.31,38.67A100,100,0,1,1,128,28a100.69,100.69,0,0,1,16.66,1.38,4,4,0,0,1-1.32,7.89A93.4,93.4,0,0,0,128,36,92,92,0,0,0,62.83,192.87a75.61,75.61,0,0,1,44.51-34,44,44,0,1,1,41.32,0,75.61,75.61,0,0,1,44.51,34,92,92,0,0,0,21.6-95.54,4,4,0,1,1,7.54-2.66ZM128,156a36,36,0,1,0-36-36A36,36,0,0,0,128,156Zm0,64a91.61,91.61,0,0,0,59.14-21.58,68,68,0,0,0-118.27,0A91.56,91.56,0,0,0,128,220Z"}))]]),ez=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M148.5,156.53a72,72,0,1,0-89,0,124,124,0,0,0-48.69,35.75,12,12,0,0,0,18.38,15.44C48.54,184.69,75.11,172,104,172c37,0,61.12,19.42,74.81,35.72a12,12,0,1,0,18.38-15.44A124,124,0,0,0,148.5,156.53ZM56,100a48,48,0,1,1,48,48A48.05,48.05,0,0,1,56,100Zm190.53,40-7.11,2.31,4.39,6.05a12,12,0,1,1-19.41,14.11l-4.4-6.06-4.4,6.06a12,12,0,1,1-19.41-14.11l4.39-6.05L193.47,140a12,12,0,1,1,7.41-22.83l7.12,2.31V112a12,12,0,0,1,24,0v7.48l7.12-2.31A12,12,0,1,1,246.53,140Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,100a60,60,0,1,1-60-60A60,60,0,0,1,168,100Z",opacity:"0.2"}),r.createElement("path",{d:"M144,157.68a68,68,0,1,0-71.9,0c-20.65,6.76-39.23,19.39-54.17,37.17a8,8,0,1,0,12.24,10.3C50.25,181.19,77.91,168,108,168s57.75,13.19,77.87,37.15a8,8,0,0,0,12.26-10.3C183.18,177.07,164.6,164.44,144,157.68ZM56,100a52,52,0,1,1,52,52A52.06,52.06,0,0,1,56,100Zm196.25,43.07-4.66-2.69a23.6,23.6,0,0,0,0-8.76l4.66-2.69a8,8,0,1,0-8-13.86l-4.67,2.7a23.92,23.92,0,0,0-7.58-4.39V108a8,8,0,0,0-16,0v5.38a23.92,23.92,0,0,0-7.58,4.39l-4.67-2.7a8,8,0,1,0-8,13.86l4.66,2.69a23.6,23.6,0,0,0,0,8.76l-4.66,2.69a8,8,0,0,0,8,13.86l4.67-2.7a23.92,23.92,0,0,0,7.58,4.39V164a8,8,0,0,0,16,0v-5.38a23.92,23.92,0,0,0,7.58-4.39l4.67,2.7a7.92,7.92,0,0,0,4,1.07,8,8,0,0,0,4-14.93ZM224,144a8,8,0,1,1,8-8A8,8,0,0,1,224,144Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M198.13,194.85A8,8,0,0,1,192,208H24a8,8,0,0,1-6.12-13.15c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM255.18,154a8,8,0,0,1-6.94,4,7.92,7.92,0,0,1-4-1.07l-4.67-2.7a23.92,23.92,0,0,1-7.58,4.39V164a8,8,0,0,1-16,0v-5.38a23.92,23.92,0,0,1-7.58-4.39l-4.67,2.7a7.92,7.92,0,0,1-4,1.07,8,8,0,0,1-4-14.93l4.66-2.69a23.6,23.6,0,0,1,0-8.76l-4.66-2.69a8,8,0,1,1,8-13.86l4.67,2.7a23.92,23.92,0,0,1,7.58-4.39V108a8,8,0,0,1,16,0v5.38a23.92,23.92,0,0,1,7.58,4.39l4.67-2.7a8,8,0,1,1,8,13.86l-4.66,2.69a23.6,23.6,0,0,1,0,8.76l4.66,2.69A8,8,0,0,1,255.18,154ZM224,144a8,8,0,1,0-8-8A8,8,0,0,0,224,144Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M139,158.25a66,66,0,1,0-62,0c-22,6.23-41.88,19.16-57.61,37.89a6,6,0,0,0,9.18,7.72C49.1,179.44,77.31,166,108,166s58.9,13.44,79.41,37.86a6,6,0,1,0,9.18-7.72C180.86,177.41,161,164.48,139,158.25ZM54,100a54,54,0,1,1,54,54A54.06,54.06,0,0,1,54,100Zm197.25,44.8-5.92-3.41a22,22,0,0,0,0-10.78l5.92-3.41a6,6,0,0,0-6-10.4l-5.93,3.43a22,22,0,0,0-9.32-5.39V108a6,6,0,0,0-12,0v6.84a22,22,0,0,0-9.32,5.39l-5.93-3.43a6,6,0,0,0-6,10.4l5.92,3.41a22,22,0,0,0,0,10.78l-5.92,3.41a6,6,0,0,0,6,10.4l5.93-3.43a22,22,0,0,0,9.32,5.39V164a6,6,0,0,0,12,0v-6.84a22,22,0,0,0,9.32-5.39l5.93,3.43a6,6,0,0,0,6-10.4ZM224,146a10,10,0,1,1,10-10A10,10,0,0,1,224,146Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M144,157.68a68,68,0,1,0-71.9,0c-20.65,6.76-39.23,19.39-54.17,37.17a8,8,0,1,0,12.24,10.3C50.25,181.19,77.91,168,108,168s57.75,13.19,77.87,37.15a8,8,0,0,0,12.26-10.3C183.18,177.07,164.6,164.44,144,157.68ZM56,100a52,52,0,1,1,52,52A52.06,52.06,0,0,1,56,100Zm196.25,43.07-4.66-2.69a23.6,23.6,0,0,0,0-8.76l4.66-2.69a8,8,0,1,0-8-13.86l-4.67,2.7a23.92,23.92,0,0,0-7.58-4.39V108a8,8,0,0,0-16,0v5.38a23.92,23.92,0,0,0-7.58,4.39l-4.67-2.7a8,8,0,1,0-8,13.86l4.66,2.69a23.6,23.6,0,0,0,0,8.76l-4.66,2.69a8,8,0,0,0,8,13.86l4.67-2.7a23.92,23.92,0,0,0,7.58,4.39V164a8,8,0,0,0,16,0v-5.38a23.92,23.92,0,0,0,7.58-4.39l4.67,2.7a7.92,7.92,0,0,0,4,1.07,8,8,0,0,0,4-14.93ZM216,136a8,8,0,1,1,8,8A8,8,0,0,1,216,136Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M133.17,158.84a64,64,0,1,0-50.34,0c-23.76,5.46-45.18,18.69-61.89,38.59a4,4,0,1,0,6.12,5.14C48,177.7,76.7,164,108,164s60,13.7,80.94,38.57a4,4,0,0,0,6.12-5.14C178.35,177.53,156.93,164.3,133.17,158.84ZM52,100a56,56,0,1,1,56,56A56.06,56.06,0,0,1,52,100Zm198.25,46.54L243,142.33a19.78,19.78,0,0,0,0-12.66l7.29-4.21a4,4,0,1,0-4-6.92l-7.31,4.21A20,20,0,0,0,228,116.4V108a4,4,0,0,0-8,0v8.4a20,20,0,0,0-10.94,6.35l-7.31-4.21a4,4,0,1,0-4,6.92l7.29,4.21a19.78,19.78,0,0,0,0,12.66l-7.29,4.21a4,4,0,0,0,2,7.46,3.92,3.92,0,0,0,2-.54l7.31-4.21A20,20,0,0,0,220,155.6V164a4,4,0,0,0,8,0v-8.4a20,20,0,0,0,10.94-6.35l7.31,4.21a3.92,3.92,0,0,0,2,.54,4,4,0,0,0,2-7.46ZM224,148a12,12,0,1,1,12-12A12,12,0,0,1,224,148Z"}))]]),tz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M256,136a12,12,0,0,1-12,12h-8v8a12,12,0,0,1-24,0v-8h-8a12,12,0,0,1,0-24h8v-8a12,12,0,0,1,24,0v8h8A12,12,0,0,1,256,136Zm-54.81,56.28a12,12,0,1,1-18.38,15.44C169.12,191.42,145,172,108,172c-28.89,0-55.46,12.68-74.81,35.72a12,12,0,0,1-18.38-15.44A124.08,124.08,0,0,1,63.5,156.53a72,72,0,1,1,89,0A124,124,0,0,1,201.19,192.28ZM108,148a48,48,0,1,0-48-48A48.05,48.05,0,0,0,108,148Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,100a60,60,0,1,1-60-60A60,60,0,0,1,168,100Z",opacity:"0.2"}),r.createElement("path",{d:"M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136Zm-57.87,58.85a8,8,0,0,1-12.26,10.3C165.75,181.19,138.09,168,108,168s-57.75,13.19-77.87,37.15a8,8,0,0,1-12.25-10.3c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM108,152a52,52,0,1,0-52-52A52.06,52.06,0,0,0,108,152Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136ZM144,157.68a68,68,0,1,0-71.9,0c-20.65,6.76-39.23,19.39-54.17,37.17A8,8,0,0,0,24,208H192a8,8,0,0,0,6.13-13.15C183.18,177.07,164.6,164.44,144,157.68Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M254,136a6,6,0,0,1-6,6H230v18a6,6,0,0,1-12,0V142H200a6,6,0,0,1,0-12h18V112a6,6,0,0,1,12,0v18h18A6,6,0,0,1,254,136Zm-57.41,60.14a6,6,0,1,1-9.18,7.72C166.9,179.45,138.69,166,108,166s-58.89,13.45-79.41,37.86a6,6,0,0,1-9.18-7.72C35.14,177.41,55,164.48,77,158.25a66,66,0,1,1,62,0C161,164.48,180.86,177.41,196.59,196.14ZM108,154a54,54,0,1,0-54-54A54.06,54.06,0,0,0,108,154Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136Zm-57.87,58.85a8,8,0,0,1-12.26,10.3C165.75,181.19,138.09,168,108,168s-57.75,13.19-77.87,37.15a8,8,0,0,1-12.25-10.3c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM108,152a52,52,0,1,0-52-52A52.06,52.06,0,0,0,108,152Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M252,136a4,4,0,0,1-4,4H228v20a4,4,0,0,1-8,0V140H200a4,4,0,0,1,0-8h20V112a4,4,0,0,1,8,0v20h20A4,4,0,0,1,252,136Zm-56.94,61.43a4,4,0,0,1-6.12,5.14C168,177.7,139.3,164,108,164s-60,13.7-80.94,38.57a4,4,0,1,1-6.12-5.14c16.71-19.9,38.13-33.13,61.89-38.59a64,64,0,1,1,50.34,0C156.93,164.3,178.35,177.53,195.06,197.43ZM108,156a56,56,0,1,0-56-56A56.06,56.06,0,0,0,108,156Z"}))]]),az=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M125.18,156.94a64,64,0,1,0-82.36,0,100.23,100.23,0,0,0-39.49,32,12,12,0,0,0,19.35,14.2,76,76,0,0,1,122.64,0,12,12,0,0,0,19.36-14.2A100.33,100.33,0,0,0,125.18,156.94ZM44,108a40,40,0,1,1,40,40A40,40,0,0,1,44,108Zm206.1,97.67a12,12,0,0,1-16.78-2.57A76.31,76.31,0,0,0,172,172a12,12,0,0,1,0-24,40,40,0,1,0-10.3-78.67,12,12,0,1,1-6.16-23.19,64,64,0,0,1,57.64,110.8,100.23,100.23,0,0,1,39.49,32A12,12,0,0,1,250.1,205.67Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M136,108A52,52,0,1,1,84,56,52,52,0,0,1,136,108Z",opacity:"0.2"}),r.createElement("path",{d:"M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164.47,195.63a8,8,0,0,1-6.7,12.37H10.23a8,8,0,0,1-6.7-12.37,95.83,95.83,0,0,1,47.22-37.71,60,60,0,1,1,66.5,0A95.83,95.83,0,0,1,164.47,195.63Zm87.91-.15a95.87,95.87,0,0,0-47.13-37.56A60,60,0,0,0,144.7,54.59a4,4,0,0,0-1.33,6A75.83,75.83,0,0,1,147,150.53a4,4,0,0,0,1.07,5.53,112.32,112.32,0,0,1,29.85,30.83,23.92,23.92,0,0,1,3.65,16.47,4,4,0,0,0,3.95,4.64h60.3a8,8,0,0,0,7.73-5.93A8.22,8.22,0,0,0,252.38,195.48Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M112.6,158.43a58,58,0,1,0-57.2,0A93.83,93.83,0,0,0,5.21,196.72a6,6,0,0,0,10.05,6.56,82,82,0,0,1,137.48,0,6,6,0,0,0,10-6.56A93.83,93.83,0,0,0,112.6,158.43ZM38,108a46,46,0,1,1,46,46A46.06,46.06,0,0,1,38,108Zm211,97a6,6,0,0,1-8.3-1.74A81.8,81.8,0,0,0,172,166a6,6,0,0,1,0-12,46,46,0,1,0-17.08-88.73,6,6,0,1,1-4.46-11.14,58,58,0,0,1,50.14,104.3,93.83,93.83,0,0,1,50.19,38.29A6,6,0,0,1,249,205Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M107.19,159a56,56,0,1,0-46.38,0A91.83,91.83,0,0,0,6.88,197.81a4,4,0,1,0,6.7,4.37,84,84,0,0,1,140.84,0,4,4,0,1,0,6.7-4.37A91.83,91.83,0,0,0,107.19,159ZM36,108a48,48,0,1,1,48,48A48.05,48.05,0,0,1,36,108Zm212,95.35a4,4,0,0,1-5.53-1.17A83.81,83.81,0,0,0,172,164a4,4,0,0,1,0-8,48,48,0,1,0-17.82-92.58,4,4,0,1,1-3-7.43,56,56,0,0,1,44,103,91.83,91.83,0,0,1,53.93,38.86A4,4,0,0,1,248,203.35Z"}))]]),nz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164.38,181.1a52,52,0,1,0-72.76,0,75.89,75.89,0,0,0-30,28.89,12,12,0,0,0,20.78,12,53,53,0,0,1,91.22,0,12,12,0,1,0,20.78-12A75.89,75.89,0,0,0,164.38,181.1ZM100,144a28,28,0,1,1,28,28A28,28,0,0,1,100,144Zm147.21,9.59a12,12,0,0,1-16.81-2.39c-8.33-11.09-19.85-19.59-29.33-21.64a12,12,0,0,1-1.82-22.91,20,20,0,1,0-24.78-28.3,12,12,0,1,1-21-11.6,44,44,0,1,1,73.28,48.35,92.18,92.18,0,0,1,22.85,21.69A12,12,0,0,1,247.21,153.59Zm-192.28-24c-9.48,2.05-21,10.55-29.33,21.65A12,12,0,0,1,6.41,136.79,92.37,92.37,0,0,1,29.26,115.1a44,44,0,1,1,73.28-48.35,12,12,0,1,1-21,11.6,20,20,0,1,0-24.78,28.3,12,12,0,0,1-1.82,22.91Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,144a40,40,0,1,1-40-40A40,40,0,0,1,168,144ZM64,56A32,32,0,1,0,96,88,32,32,0,0,0,64,56Zm128,0a32,32,0,1,0,32,32A32,32,0,0,0,192,56Z",opacity:"0.2"}),r.createElement("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1,0-16,24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.85,8,57,57,0,0,0-98.15,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M64.12,147.8a4,4,0,0,1-4,4.2H16a8,8,0,0,1-7.8-6.17,8.35,8.35,0,0,1,1.62-6.93A67.79,67.79,0,0,1,37,117.51a40,40,0,1,1,66.46-35.8,3.94,3.94,0,0,1-2.27,4.18A64.08,64.08,0,0,0,64,144C64,145.28,64,146.54,64.12,147.8Zm182-8.91A67.76,67.76,0,0,0,219,117.51a40,40,0,1,0-66.46-35.8,3.94,3.94,0,0,0,2.27,4.18A64.08,64.08,0,0,1,192,144c0,1.28,0,2.54-.12,3.8a4,4,0,0,0,4,4.2H240a8,8,0,0,0,7.8-6.17A8.33,8.33,0,0,0,246.17,138.89Zm-89,43.18a48,48,0,1,0-58.37,0A72.13,72.13,0,0,0,65.07,212,8,8,0,0,0,72,224H184a8,8,0,0,0,6.93-12A72.15,72.15,0,0,0,157.19,182.07Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M243.6,148.8a6,6,0,0,1-8.4-1.2A53.58,53.58,0,0,0,192,126a6,6,0,0,1,0-12,26,26,0,1,0-25.18-32.5,6,6,0,0,1-11.62-3,38,38,0,1,1,59.91,39.63A65.69,65.69,0,0,1,244.8,140.4,6,6,0,0,1,243.6,148.8ZM189.19,213a6,6,0,0,1-2.19,8.2,5.9,5.9,0,0,1-3,.81,6,6,0,0,1-5.2-3,59,59,0,0,0-101.62,0,6,6,0,1,1-10.38-6A70.1,70.1,0,0,1,103,182.55a46,46,0,1,1,50.1,0A70.1,70.1,0,0,1,189.19,213ZM128,178a34,34,0,1,0-34-34A34,34,0,0,0,128,178ZM70,120a6,6,0,0,0-6-6A26,26,0,1,1,89.18,81.49a6,6,0,1,0,11.62-3,38,38,0,1,0-59.91,39.63A65.69,65.69,0,0,0,11.2,140.4a6,6,0,1,0,9.6,7.2A53.58,53.58,0,0,1,64,126,6,6,0,0,0,70,120Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1-7.37-4.89,8,8,0,0,1,0-6.22A8,8,0,0,1,192,112a24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.84,8,57,57,0,0,0-98.16,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237,147.44a4,4,0,0,1-5.48-1.4c-8.33-14-20.93-22-34.56-22a4,4,0,0,1-1.2-.2,36.76,36.76,0,0,1-3.8.2,4,4,0,0,1,0-8,28,28,0,1,0-27.12-35,4,4,0,0,1-7.75-2,36,36,0,1,1,54,39.48c10.81,3.85,20.51,12,27.31,23.48A4,4,0,0,1,237,147.44ZM187.46,214a4,4,0,0,1-1.46,5.46,3.93,3.93,0,0,1-2,.54,4,4,0,0,1-3.46-2,61,61,0,0,0-105.08,0,4,4,0,0,1-6.92-4,68.35,68.35,0,0,1,39.19-31,44,44,0,1,1,40.54,0A68.35,68.35,0,0,1,187.46,214ZM128,180a36,36,0,1,0-36-36A36,36,0,0,0,128,180ZM64,116A28,28,0,1,1,91.12,81a4,4,0,0,0,7.75-2A36,36,0,1,0,45.3,118.75,63.55,63.55,0,0,0,12.8,141.6a4,4,0,0,0,6.4,4.8A55.55,55.55,0,0,1,64,124a4,4,0,0,0,0-8Z"}))]]),rz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),r.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),sz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M60,96v64a12,12,0,0,1-24,0V96a12,12,0,0,1,24,0ZM88,20A12,12,0,0,0,76,32V224a12,12,0,0,0,24,0V32A12,12,0,0,0,88,20Zm40,32a12,12,0,0,0-12,12V192a12,12,0,0,0,24,0V64A12,12,0,0,0,128,52Zm40,32a12,12,0,0,0-12,12v64a12,12,0,0,0,24,0V96A12,12,0,0,0,168,84Zm40-16a12,12,0,0,0-12,12v96a12,12,0,0,0,24,0V80A12,12,0,0,0,208,68Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,96v64H48V96Z",opacity:"0.2"}),r.createElement("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM72,152a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,32a8,8,0,0,1-16,0V72a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V88a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,8a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M54,96v64a6,6,0,0,1-12,0V96a6,6,0,0,1,12,0ZM88,26a6,6,0,0,0-6,6V224a6,6,0,0,0,12,0V32A6,6,0,0,0,88,26Zm40,32a6,6,0,0,0-6,6V192a6,6,0,0,0,12,0V64A6,6,0,0,0,128,58Zm40,32a6,6,0,0,0-6,6v64a6,6,0,0,0,12,0V96A6,6,0,0,0,168,90Zm40-16a6,6,0,0,0-6,6v96a6,6,0,0,0,12,0V80A6,6,0,0,0,208,74Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M52,96v64a4,4,0,0,1-8,0V96a4,4,0,0,1,8,0ZM88,28a4,4,0,0,0-4,4V224a4,4,0,0,0,8,0V32A4,4,0,0,0,88,28Zm40,32a4,4,0,0,0-4,4V192a4,4,0,0,0,8,0V64A4,4,0,0,0,128,60Zm40,32a4,4,0,0,0-4,4v64a4,4,0,0,0,8,0V96A4,4,0,0,0,168,92Zm40-16a4,4,0,0,0-4,4v96a4,4,0,0,0,8,0V80A4,4,0,0,0,208,76Z"}))]]),lz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,180H118.71a56,56,0,1,1-104.6-37.46,12,12,0,1,1,21.37,10.92A31.64,31.64,0,0,0,32,168a32,32,0,0,0,64,0,12,12,0,0,1,12-12h84a12,12,0,0,1,0,24Zm0-68a55.9,55.9,0,0,0-18.45,3.12L138.22,57.71a12,12,0,0,0-20.44,12.58l40.94,66.52a12,12,0,0,0,16.52,3.93,32,32,0,1,1,19.68,59.13A12,12,0,0,0,196,223.82a10.05,10.05,0,0,0,1.09,0A56,56,0,0,0,192,112ZM57.71,178.22a12,12,0,0,0,16.51-3.93l40.94-66.52a12,12,0,0,0-3.92-16.51,32,32,0,1,1,45.28-41.8,12,12,0,1,0,21.37-10.92A56,56,0,1,0,89.1,104.32L53.78,161.71A12,12,0,0,0,57.71,178.22Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,104a40,40,0,1,1,40-40A40,40,0,0,1,128,104Zm64,24a40,40,0,1,0,40,40A40,40,0,0,0,192,128ZM64,128a40,40,0,1,0,40,40A40,40,0,0,0,64,128Z",opacity:"0.2"}),r.createElement("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M50.15,160,89.07,92.57l-2.24-3.88a48,48,0,1,1,85.05-44.17,8.17,8.17,0,0,1-3.19,10.4,8,8,0,0,1-11.35-3.72,32,32,0,1,0-56.77,29.3.57.57,0,0,1,.08.13l13.83,23.94a8,8,0,0,1,0,8L77.86,176a16,16,0,0,1-27.71-16Zm141-40H178.81L141.86,56a16,16,0,0,0-27.71,16l34.64,60a8,8,0,0,0,6.92,4h35.63c17.89,0,32.95,14.64,32.66,32.53A32,32,0,0,1,192.31,200a8.23,8.23,0,0,0-8.28,7.33,8,8,0,0,0,8,8.67,48.05,48.05,0,0,0,48-48.93C239.49,140.79,217.48,120,191.19,120ZM208,167.23c-.4-8.61-7.82-15.23-16.43-15.23H114.81a8,8,0,0,0-6.93,4L91.72,184h0a32,32,0,1,1-53.47-35,8.2,8.2,0,0,0-.92-11,8,8,0,0,0-11.72,1.17A47.63,47.63,0,0,0,16,167.54,48,48,0,0,0,105.55,192v0l4.62-8H192A16,16,0,0,0,208,167.23Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M179.37,174H109.6a46,46,0,1,1-82.4-33.61,6,6,0,0,1,9.6,7.21A33.68,33.68,0,0,0,30,168a34,34,0,0,0,68,0,6,6,0,0,1,6-6h75.37a14,14,0,1,1,0,12ZM64,182a14,14,0,0,0,11.73-21.62l36.42-59.18a6,6,0,0,0-2-8.25,34,34,0,1,1,49-42.57,6,6,0,1,0,11-4.79A46,46,0,1,0,99,99.7L65.52,154.08c-.5-.05-1-.08-1.52-.08a14,14,0,0,0,0,28Zm128-60a46,46,0,0,0-18.8,4L139.73,71.61A14,14,0,1,0,128,78a12.79,12.79,0,0,0,1.52-.09l36.4,59.17a6.05,6.05,0,0,0,3.73,2.69,6,6,0,0,0,4.53-.73A34,34,0,1,1,192,202a6,6,0,0,0,0,12,46,46,0,0,0,0-92Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M180.7,172H107.81a44,44,0,1,1-79-30.41,4,4,0,0,1,6.4,4.81A35.67,35.67,0,0,0,28,168a36,36,0,0,0,72,0,4,4,0,0,1,4-4h76.7a12,12,0,1,1,0,8ZM64,180a12,12,0,0,0,9.33-19.54l37.11-60.3a4,4,0,0,0-1.31-5.51A36,36,0,1,1,161,49.58a4,4,0,1,0,7.33-3.19,44,44,0,1,0-66.71,52.83l-35.1,57.05A11.58,11.58,0,0,0,64,156a12,12,0,0,0,0,24Zm128-56a44,44,0,0,0-19.56,4.58l-35.11-57A12,12,0,1,0,128,76a12.24,12.24,0,0,0,2.52-.27L167.63,136a4,4,0,0,0,5.5,1.31A36,36,0,1,1,192,204a4,4,0,0,0,0,8,44,44,0,0,0,0-88Z"}))]]),iz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M144,204a16,16,0,1,1-16-16A16,16,0,0,1,144,204ZM239.61,83.91a176,176,0,0,0-223.22,0,12,12,0,1,0,15.23,18.55,152,152,0,0,1,192.76,0,12,12,0,1,0,15.23-18.55Zm-32.16,35.73a128,128,0,0,0-158.9,0,12,12,0,0,0,14.9,18.81,104,104,0,0,1,129.1,0,12,12,0,0,0,14.9-18.81ZM175.07,155.3a80.05,80.05,0,0,0-94.14,0,12,12,0,0,0,14.14,19.4,56,56,0,0,1,65.86,0,12,12,0,1,0,14.14-19.4Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M238.2,87.69l-104,125.43a8,8,0,0,1-12.3,0L17.8,87.69a7.79,7.79,0,0,1,1.31-11.21,180.75,180.75,0,0,1,217.78,0A7.79,7.79,0,0,1,238.2,87.69Z",opacity:"0.2"}),r.createElement("path",{d:"M247.89,80.91a15.93,15.93,0,0,0-6.17-10.81A186.67,186.67,0,0,0,128,32,186.67,186.67,0,0,0,14.28,70.1,15.93,15.93,0,0,0,8.11,80.91,15.65,15.65,0,0,0,11.65,92.8l104,125.43A15.93,15.93,0,0,0,128,224h0a15.93,15.93,0,0,0,12.31-5.77l104-125.43A15.65,15.65,0,0,0,247.89,80.91ZM128,208,24.09,82.74A170.76,170.76,0,0,1,128,48,170.76,170.76,0,0,1,231.91,82.74Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M244.35,92.8l-104,125.43A15.93,15.93,0,0,1,128,224h0a15.93,15.93,0,0,1-12.31-5.77L11.65,92.8A15.65,15.65,0,0,1,8.11,80.91,15.93,15.93,0,0,1,14.28,70.1,186.67,186.67,0,0,1,128,32,186.67,186.67,0,0,1,241.72,70.1a15.93,15.93,0,0,1,6.17,10.81A15.65,15.65,0,0,1,244.35,92.8Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M138,204a10,10,0,1,1-10-10A10,10,0,0,1,138,204ZM235.81,88.55a170,170,0,0,0-215.62,0,6,6,0,1,0,7.62,9.27,158,158,0,0,1,200.38,0,6,6,0,1,0,7.62-9.27Zm-32.08,35.79a122,122,0,0,0-151.46,0,6,6,0,0,0,7.46,9.41,110,110,0,0,1,136.54,0A6,6,0,0,0,200,135a6,6,0,0,0,3.73-10.7Zm-32.2,35.81a74,74,0,0,0-87.06,0,6,6,0,0,0,7.06,9.7,62,62,0,0,1,72.94,0,6,6,0,0,0,8.38-1.32A6,6,0,0,0,171.53,160.15Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M140,204a12,12,0,1,1-12-12A12,12,0,0,1,140,204ZM237.08,87A172,172,0,0,0,18.92,87,8,8,0,0,0,29.08,99.37a156,156,0,0,1,197.84,0A8,8,0,0,0,237.08,87ZM205,122.77a124,124,0,0,0-153.94,0A8,8,0,0,0,61,135.31a108,108,0,0,1,134.06,0,8,8,0,0,0,11.24-1.3A8,8,0,0,0,205,122.77Zm-32.26,35.76a76.05,76.05,0,0,0-89.42,0,8,8,0,0,0,9.42,12.94,60,60,0,0,1,70.58,0,8,8,0,1,0,9.42-12.94Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M136,204a8,8,0,1,1-8-8A8,8,0,0,1,136,204ZM234.54,90.1a168,168,0,0,0-213.08,0,4,4,0,1,0,5.08,6.18,160,160,0,0,1,202.92,0,4,4,0,0,0,5.08-6.18Zm-32.06,35.81a120,120,0,0,0-149,0,4,4,0,0,0,5,6.27,112,112,0,0,1,139,0,4,4,0,0,0,5-6.27Zm-32.13,35.86a72,72,0,0,0-84.7,0,4,4,0,1,0,4.7,6.46,64.07,64.07,0,0,1,75.3,0,4,4,0,0,0,5.58-.87A4,4,0,0,0,170.35,161.77Z"}))]]),oz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.88,207.93a12,12,0,1,1-17.76,16.14L147.78,167.6a56.06,56.06,0,0,0-52.71,7.1,12,12,0,0,1-14.14-19.4,79.35,79.35,0,0,1,41.92-15.12L103.51,118.9a104.18,104.18,0,0,0-40.06,19.55,12,12,0,0,1-14.9-18.81A128.46,128.46,0,0,1,85.61,99.21l-17.31-19a151.14,151.14,0,0,0-36.68,22.28A12,12,0,1,1,16.39,83.91a175.52,175.52,0,0,1,35-22.38L39.12,48.07A12,12,0,1,1,56.88,31.93ZM128,188a16,16,0,1,0,16,16A16,16,0,0,0,128,188Zm64.55-49.55a12,12,0,0,0,14.9-18.81A127.27,127.27,0,0,0,170,99.05a12,12,0,0,0-7.87,22.67A103.62,103.62,0,0,1,192.55,138.45Zm47.06-54.54A176.33,176.33,0,0,0,128,44c-3.94,0-7.93.13-11.86.39a12,12,0,1,0,1.59,24c3.4-.23,6.86-.34,10.27-.34a152.24,152.24,0,0,1,96.38,34.46,12,12,0,1,0,15.23-18.55Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M238.2,87.69l-104,125.43a8,8,0,0,1-12.3,0L17.8,87.69a7.79,7.79,0,0,1,1.31-11.21,180.75,180.75,0,0,1,217.78,0A7.79,7.79,0,0,1,238.2,87.69Z",opacity:"0.2"}),r.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38l4.55,5A187.93,187.93,0,0,0,14.28,70.1,15.93,15.93,0,0,0,8.11,80.91,15.65,15.65,0,0,0,11.65,92.8l104,125.43A15.93,15.93,0,0,0,128,224h0a15.93,15.93,0,0,0,12.31-5.77l28.1-33.88,33.67,37a8,8,0,1,0,11.84-10.76ZM128,208,24.09,82.74A171.5,171.5,0,0,1,57.91,62.79l99.63,109.6ZM244.35,92.8l-49.42,59.58a8,8,0,0,1-12.32-10.21l49.3-59.43A170.76,170.76,0,0,0,128,48a175.15,175.15,0,0,0-32.39,3,8,8,0,1,1-3-15.72A190.62,190.62,0,0,1,128,32,186.67,186.67,0,0,1,241.72,70.1a15.93,15.93,0,0,1,6.17,10.81A15.65,15.65,0,0,1,244.35,92.8Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.92,210.62a8,8,0,1,1-11.84,10.76l-33.67-37-28.1,33.88A15.93,15.93,0,0,1,128,224h0a15.93,15.93,0,0,1-12.31-5.77L11.65,92.8A15.65,15.65,0,0,1,8.11,80.91,15.93,15.93,0,0,1,14.28,70.1,188.26,188.26,0,0,1,46.6,50.35l-4.29-4.72a8.22,8.22,0,0,1,.13-11.38,8,8,0,0,1,11.48.37Zm34-129.71a15.93,15.93,0,0,0-6.17-10.81A186.67,186.67,0,0,0,128,32a191,191,0,0,0-42.49,4.75,4,4,0,0,0-2,6.59L186,156.07a4,4,0,0,0,6-.14L244.35,92.8A15.65,15.65,0,0,0,247.89,80.91Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M138,204a10,10,0,1,1-10-10A10,10,0,0,1,138,204ZM52.44,36A6,6,0,0,0,43.56,44L61.33,63.58a169.41,169.41,0,0,0-41.14,25,6,6,0,1,0,7.62,9.27A157.58,157.58,0,0,1,69.91,73l26.48,29.13a122.21,122.21,0,0,0-44.12,22.19,6,6,0,0,0,7.46,9.41,110,110,0,0,1,45.87-21.47l31.13,34.25A74.4,74.4,0,0,0,128,146a73.44,73.44,0,0,0-43.53,14.15A6,6,0,0,0,88,171a5.93,5.93,0,0,0,3.53-1.15,62,62,0,0,1,59.76-7.31L203.56,220a6,6,0,0,0,8.88-8.08ZM235.81,88.55A170.32,170.32,0,0,0,128,50a173.45,173.45,0,0,0-21.76,1.38,6,6,0,1,0,1.52,11.9A160.58,160.58,0,0,1,128,62,158.26,158.26,0,0,1,228.19,97.82a6,6,0,1,0,7.62-9.27Zm-39.54,45.2A6,6,0,0,0,200,135a6,6,0,0,0,3.73-10.7,122.26,122.26,0,0,0-50.9-23.81,6,6,0,1,0-2.43,11.75A110,110,0,0,1,196.27,133.75Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.92,210.62a8,8,0,1,1-11.84,10.76l-52-57.15a60,60,0,0,0-57.41,7.24,8,8,0,1,1-9.42-12.93A75.43,75.43,0,0,1,128,144c1.28,0,2.55,0,3.82.1L104.9,114.49A108,108,0,0,0,61,135.31,8,8,0,0,1,49.73,134,8,8,0,0,1,51,122.77a124.27,124.27,0,0,1,41.71-21.66L69.37,75.4a155.43,155.43,0,0,0-40.29,24A8,8,0,0,1,18.92,87,171.87,171.87,0,0,1,58,62.86L42.08,45.38A8,8,0,1,1,53.92,34.62ZM128,192a12,12,0,1,0,12,12A12,12,0,0,0,128,192ZM237.08,87A172.3,172.3,0,0,0,106,49.4a8,8,0,1,0,2,15.87A158.33,158.33,0,0,1,128,64a156.25,156.25,0,0,1,98.92,35.37A8,8,0,0,0,237.08,87ZM195,135.31a8,8,0,0,0,11.24-1.3,8,8,0,0,0-1.3-11.24,124.25,124.25,0,0,0-51.73-24.2A8,8,0,1,0,150,114.24,108.12,108.12,0,0,1,195,135.31Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M136,204a8,8,0,1,1-8-8A8,8,0,0,1,136,204ZM51,37.31A4,4,0,0,0,45,42.69L64.72,64.34A167.64,167.64,0,0,0,21.46,90.09a4,4,0,1,0,5.08,6.19A159.4,159.4,0,0,1,70.47,70.66l29.64,32.61a120.12,120.12,0,0,0-46.6,22.64,4,4,0,0,0,5,6.27,112,112,0,0,1,47.85-22.07L142,149.37A72.6,72.6,0,0,0,128,148a71.49,71.49,0,0,0-42.36,13.77A4,4,0,0,0,88,169a4.07,4.07,0,0,0,2.36-.76,64,64,0,0,1,62.11-7.38L205,218.69a4,4,0,1,0,5.92-5.38ZM234.54,90.09A168.33,168.33,0,0,0,128,52a171.08,171.08,0,0,0-21.5,1.36,4,4,0,0,0,1,7.94A162.68,162.68,0,0,1,128,60,160.22,160.22,0,0,1,229.46,96.28a4,4,0,0,0,5.08-6.19Zm-37,42.09a4,4,0,1,0,5-6.27,120.17,120.17,0,0,0-50.06-23.42,4,4,0,1,0-1.62,7.83A112.18,112.18,0,0,1,197.52,132.18Z"}))]]),cz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.47,67.5a12,12,0,0,0-19.26-4.32L172.43,99l-12.68-2.72L157,83.57l35.79-38.78a12,12,0,0,0-4.32-19.26A76.07,76.07,0,0,0,88.41,121.64L30.92,174.18a4.68,4.68,0,0,0-.39.38,36,36,0,0,0,50.91,50.91l.38-.39,52.54-57.49A76.05,76.05,0,0,0,230.47,67.5ZM160,148a51.5,51.5,0,0,1-23.35-5.52,12,12,0,0,0-14.26,2.62L64.31,208.66a12,12,0,0,1-17-17l63.55-58.07a12,12,0,0,0,2.62-14.26A51.5,51.5,0,0,1,108,96a52.06,52.06,0,0,1,52-52h.89L135.17,71.87a12,12,0,0,0-2.91,10.65l5.66,26.35a12,12,0,0,0,9.21,9.21l26.35,5.66a12,12,0,0,0,10.65-2.91L212,95.12c0,.3,0,.59,0,.89A52.06,52.06,0,0,1,160,148Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,96a64,64,0,0,1-94.94,56L73,217A24,24,0,0,1,39,183L104,126.94a64,64,0,0,1,80-90.29L144,80l5.66,26.34L176,112l43.35-40A63.8,63.8,0,0,1,224,96Z",opacity:"0.2"}),r.createElement("path",{d:"M226.76,69a8,8,0,0,0-12.84-2.88l-40.3,37.19-17.23-3.7-3.7-17.23,37.19-40.3A8,8,0,0,0,187,29.24,72,72,0,0,0,88,96,72.34,72.34,0,0,0,94,124.94L33.79,177c-.15.12-.29.26-.43.39a32,32,0,0,0,45.26,45.26c.13-.13.27-.28.39-.42L131.06,162A72,72,0,0,0,232,96,71.56,71.56,0,0,0,226.76,69ZM160,152a56.14,56.14,0,0,1-27.07-7,8,8,0,0,0-9.92,1.77L67.11,211.51a16,16,0,0,1-22.62-22.62L109.18,133a8,8,0,0,0,1.77-9.93,56,56,0,0,1,58.36-82.31l-31.2,33.81a8,8,0,0,0-1.94,7.1L141.83,108a8,8,0,0,0,6.14,6.14l26.35,5.66a8,8,0,0,0,7.1-1.94l33.81-31.2A56.06,56.06,0,0,1,160,152Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,96a72,72,0,0,1-100.94,66L79,222.22c-.12.14-.26.29-.39.42a32,32,0,0,1-45.26-45.26c.14-.13.28-.27.43-.39L94,124.94a72.07,72.07,0,0,1,83.54-98.78,8,8,0,0,1,3.93,13.19L144,80l5.66,26.35L176,112l40.65-37.52a8,8,0,0,1,13.19,3.93A72.6,72.6,0,0,1,232,96Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224.91,69.75a6,6,0,0,0-9.63-2.16l-41.07,37.9L154.7,101.3l-4.19-19.51,37.9-41.07a6,6,0,0,0-2.16-9.63,70,70,0,0,0-89.77,94.39l-61.39,53c-.11.09-.21.19-.32.3A30,30,0,0,0,77.2,221.23c.11-.11.21-.21.3-.32l53-61.39a70,70,0,0,0,94.39-89.77ZM160,154a58,58,0,0,1-28-7.22,6,6,0,0,0-7.45,1.33L68.57,212.88a18,18,0,0,1-25.45-25.45l64.76-55.94A6,6,0,0,0,109.2,124a58,58,0,0,1,64-84.53L139.58,75.93a6,6,0,0,0-1.45,5.33l5.65,26.35a6,6,0,0,0,4.61,4.61l26.35,5.65a6,6,0,0,0,5.33-1.45L216.49,82.8A58.06,58.06,0,0,1,160,154Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M226.76,69a8,8,0,0,0-12.84-2.88l-40.3,37.19-17.23-3.7-3.7-17.23,37.19-40.3A8,8,0,0,0,187,29.24,72,72,0,0,0,88,96,72.34,72.34,0,0,0,94,124.94L33.79,177c-.15.12-.29.26-.43.39a32,32,0,0,0,45.26,45.26c.13-.13.27-.28.39-.42L131.06,162A72,72,0,0,0,232,96,71.56,71.56,0,0,0,226.76,69ZM160,152a56.14,56.14,0,0,1-27.07-7,8,8,0,0,0-9.92,1.77L67.11,211.51a16,16,0,0,1-22.62-22.62L109.18,133a8,8,0,0,0,1.77-9.93,56,56,0,0,1,58.36-82.31l-31.2,33.81a8,8,0,0,0-1.94,7.1L141.83,108a8,8,0,0,0,6.14,6.14l26.35,5.66a8,8,0,0,0,7.1-1.94l33.81-31.2A56.06,56.06,0,0,1,160,152Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M223.05,70.5a4,4,0,0,0-6.42-1.44l-41.82,38.6L153,103l-4.68-21.79,38.6-41.82a4,4,0,0,0-1.44-6.43A68,68,0,0,0,98.94,126L36.4,180l-.21.2a28,28,0,0,0,39.6,39.6l.2-.21,54-62.54A68,68,0,0,0,228,96,67.51,67.51,0,0,0,223.05,70.5ZM160,156a60,60,0,0,1-29-7.47,4,4,0,0,0-5,.89L70,214.25A20,20,0,0,1,41.75,186l64.82-56a4,4,0,0,0,.89-5,60,60,0,0,1,69.46-86.59L141.05,77.29a4,4,0,0,0-1,3.55l5.66,26.35a4,4,0,0,0,3.07,3.07l26.35,5.66a4,4,0,0,0,3.55-1l38.87-35.87A60.05,60.05,0,0,1,160,156Z"}))]]),uz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),r.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),dz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),hz=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M218.12,209.56l-61-95.8,59.72-65.69a12,12,0,0,0-17.76-16.14L143.81,92.77,106.12,33.56A12,12,0,0,0,96,28H48A12,12,0,0,0,37.88,46.44l61,95.8L39.12,207.93a12,12,0,1,0,17.76,16.14l55.31-60.84,37.69,59.21A12,12,0,0,0,160,228h48a12,12,0,0,0,10.12-18.44ZM166.59,204,69.86,52H89.41l96.73,152Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,216H160L48,40H96Z",opacity:"0.2"}),r.createElement("path",{d:"M214.75,211.71l-62.6-98.38,61.77-67.95a8,8,0,0,0-11.84-10.76L143.24,99.34,102.75,35.71A8,8,0,0,0,96,32H48a8,8,0,0,0-6.75,12.3l62.6,98.37-61.77,68a8,8,0,1,0,11.84,10.76l58.84-64.72,40.49,63.63A8,8,0,0,0,160,224h48a8,8,0,0,0,6.75-12.29ZM164.39,208,62.57,48h29L193.43,208Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M215,219.85a8,8,0,0,1-7,4.15H160a8,8,0,0,1-6.75-3.71l-40.49-63.63L53.92,221.38a8,8,0,0,1-11.84-10.76l61.77-68L41.25,44.3A8,8,0,0,1,48,32H96a8,8,0,0,1,6.75,3.71l40.49,63.63,58.84-64.72a8,8,0,0,1,11.84,10.76l-61.77,67.95,62.6,98.38A8,8,0,0,1,215,219.85Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.06,212.78l-63.42-99.66L212.44,44A6,6,0,1,0,203.56,36L143,102.62l-41.9-65.84A6,6,0,0,0,96,34H48a6,6,0,0,0-5.06,9.22l63.42,99.66L43.56,212A6,6,0,0,0,52.44,220L113,153.38l41.9,65.84A6,6,0,0,0,160,222h48a6,6,0,0,0,5.06-9.22ZM163.29,210,58.93,46H92.71L197.07,210Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M214.75,211.71l-62.6-98.38,61.77-67.95a8,8,0,0,0-11.84-10.76L143.24,99.34,102.75,35.71A8,8,0,0,0,96,32H48a8,8,0,0,0-6.75,12.3l62.6,98.37-61.77,68a8,8,0,1,0,11.84,10.76l58.84-64.72,40.49,63.63A8,8,0,0,0,160,224h48a8,8,0,0,0,6.75-12.29ZM164.39,208,62.57,48h29L193.43,208Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M211.37,213.85,147.13,112.9,211,42.69A4,4,0,0,0,205,37.31L142.68,105.9,99.38,37.85A4,4,0,0,0,96,36H48a4,4,0,0,0-3.37,6.15L108.87,143.1,45,213.31A4,4,0,1,0,51,218.69l62.36-68.59,43.3,68.05A4,4,0,0,0,160,220h48a4,4,0,0,0,3.37-6.15ZM162.2,212,55.29,44H93.8L200.71,212Z"}))]]),mz=r.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),ce=r.forwardRef((e,t)=>{const{alt:l,color:i,size:o,weight:u,mirrored:d,children:h,weights:f,...p}=e,{color:x="currentColor",size:g,weight:b="regular",mirrored:w=!1,...N}=r.useContext(mz);return r.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:o??g,height:o??g,fill:i??x,viewBox:"0 0 256 256",transform:d||w?"scale(-1, 1)":void 0,...N,...p},!!l&&r.createElement("title",null,l),h,f.get(u??b))});ce.displayName="IconBase";const XN=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:eO}));XN.displayName="AddressBookIcon";const fz=XN,QN=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:tO}));QN.displayName="ArrowBendDownRightIcon";const pz=QN,JN=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:aO}));JN.displayName="ArrowClockwiseIcon";const ss=JN,WN=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:nO}));WN.displayName="ArrowLeftIcon";const ls=WN,eE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:rO}));eE.displayName="ArrowRightIcon";const so=eE,tE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:sO}));tE.displayName="ArrowUpRightIcon";const aE=tE,nE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:lO}));nE.displayName="ArrowsClockwiseIcon";const xz=nE,rE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:iO}));rE.displayName="ArrowsLeftRightIcon";const ym=rE,sE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:oO}));sE.displayName="BellRingingIcon";const Af=sE,lE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:cO}));lE.displayName="BookOpenIcon";const iE=lE,oE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:uO}));oE.displayName="BrainIcon";const gz=oE,cE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:dO}));cE.displayName="BrowserIcon";const wm=cE,uE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:hO}));uE.displayName="BuildingsIcon";const Ki=uE,dE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:mO}));dE.displayName="CalendarBlankIcon";const z1=dE,hE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:fO}));hE.displayName="CalendarIcon";const vz=hE,mE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:pO}));mE.displayName="CalendarCheckIcon";const bz=mE,fE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:xO}));fE.displayName="CameraIcon";const Am=fE,pE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:gO}));pE.displayName="CaretDownIcon";const Ya=pE,xE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:vO}));xE.displayName="CaretRightIcon";const is=xE,gE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:bO}));gE.displayName="CaretUpIcon";const yz=gE,vE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:yO}));vE.displayName="ChartBarIcon";const bE=vE,yE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:wO}));yE.displayName="ChartLineUpIcon";const wz=yE,wE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:AO}));wE.displayName="ChatCircleIcon";const K0=wE,AE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:jO}));AE.displayName="ChatCircleDotsIcon";const A1=AE,jE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:NO}));jE.displayName="ChatsCircleIcon";const NE=jE,EE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:EO}));EE.displayName="CheckIcon";const Qr=EE,ME=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:MO}));ME.displayName="CheckCircleIcon";const v0=ME,SE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:SO}));SE.displayName="CircleNotchIcon";const ct=SE,ZE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:ZO}));ZE.displayName="ClipboardTextIcon";const Az=ZE,CE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:CO}));CE.displayName="ClockIcon";const Y0=CE,HE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:HO}));HE.displayName="ClockCounterClockwiseIcon";const VE=HE,_E=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:VO}));_E.displayName="CpuIcon";const jz=_E,TE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:_O}));TE.displayName="CrosshairIcon";const Nz=TE,LE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:TO}));LE.displayName="CubeIcon";const jm=LE,kE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:LO}));kE.displayName="CurrencyDollarIcon";const RE=kE,DE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:kO}));DE.displayName="DotsSixVerticalIcon";const Ez=DE,OE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:RO}));OE.displayName="DownloadIcon";const Mz=OE,FE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:DO}));FE.displayName="EjectIcon";const Sz=FE,zE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:OO}));zE.displayName="EnvelopeIcon";const Zz=zE,$E=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:FO}));$E.displayName="EnvelopeSimpleIcon";const M7=$E,qE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:zO}));qE.displayName="EyeIcon";const kn=qE,IE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:$O}));IE.displayName="EyeClosedIcon";const BE=IE,PE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:qO}));PE.displayName="FileTextIcon";const Nm=PE,UE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:IO}));UE.displayName="FlagIcon";const Cz=UE,GE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:BO}));GE.displayName="FloppyDiskIcon";const Hz=GE,YE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:PO}));YE.displayName="FlowArrowIcon";const Vz=YE,KE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:UO}));KE.displayName="FunnelIcon";const _z=KE,XE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:GO}));XE.displayName="GearIcon";const Tz=XE,QE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:YO}));QE.displayName="GearSixIcon";const JE=QE,WE=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:KO}));WE.displayName="GitBranchIcon";const eM=WE,tM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:XO}));tM.displayName="GlobeIcon";const $1=tM,aM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:QO}));aM.displayName="HandIcon";const Rn=aM,nM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:JO}));nM.displayName="HandFistIcon";const Lz=nM,rM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:WO}));rM.displayName="HandPalmIcon";const sM=rM,lM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:eF}));lM.displayName="HandshakeIcon";const kz=lM,iM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:tF}));iM.displayName="HeadsetIcon";const Rz=iM,oM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:aF}));oM.displayName="HeartIcon";const lo=oM,cM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:nF}));cM.displayName="KanbanIcon";const jf=cM,uM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:rF}));uM.displayName="LightbulbIcon";const S7=uM,dM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:sF}));dM.displayName="LightningIcon";const sa=dM,hM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:lF}));hM.displayName="ListIcon";const mM=hM,fM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:iF}));fM.displayName="ListChecksIcon";const H1=fM,pM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:oF}));pM.displayName="MagnetIcon";const Dz=pM,xM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:cF}));xM.displayName="MagnifyingGlassIcon";const xa=xM,gM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:uF}));gM.displayName="MegaphoneIcon";const io=gM,vM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:dF}));vM.displayName="MicrophoneIcon";const an=vM,bM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:hF}));bM.displayName="MicrophoneSlashIcon";const V1=bM,yM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:mF}));yM.displayName="MinusIcon";const Oz=yM,wM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:fF}));wM.displayName="NewspaperIcon";const Em=wM,AM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:pF}));AM.displayName="NoteIcon";const Fz=AM,jM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:xF}));jM.displayName="NotebookIcon";const zz=jM,NM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:gF}));NM.displayName="PaperPlaneRightIcon";const Mm=NM,EM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:vF}));EM.displayName="PauseIcon";const $z=EM,MM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:bF}));MM.displayName="PencilIcon";const oo=MM,SM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:yF}));SM.displayName="PencilLineIcon";const qz=SM,ZM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:wF}));ZM.displayName="PencilSimpleIcon";const Sm=ZM,CM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:AF}));CM.displayName="PhoneDisconnectIcon";const Iz=CM,HM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:jF}));HM.displayName="PlayIcon";const Nf=HM,VM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:NF}));VM.displayName="PlugIcon";const Ef=VM,_M=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:EF}));_M.displayName="PlugsConnectedIcon";const Jr=_M,TM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:MF}));TM.displayName="PlusIcon";const Mt=TM,LM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:SF}));LM.displayName="PowerIcon";const Z7=LM,kM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:ZF}));kM.displayName="PulseIcon";const Kr=kM,RM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:CF}));RM.displayName="QrCodeIcon";const C7=RM,DM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:HF}));DM.displayName="RobotIcon";const on=DM,OM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:VF}));OM.displayName="ShareNetworkIcon";const Zm=OM,FM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:_F}));FM.displayName="ShieldCheckIcon";const zM=FM,$M=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:TF}));$M.displayName="ShuffleIcon";const Bz=$M,qM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:LF}));qM.displayName="SkipForwardIcon";const Pz=qM,IM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:kF}));IM.displayName="SpeakerHighIcon";const Uz=IM,BM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:RF}));BM.displayName="SpinnerIcon";const PM=BM,UM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:DF}));UM.displayName="SpinnerGapIcon";const Gz=UM,GM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:OF}));GM.displayName="SquaresFourIcon";const Yz=GM,YM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:FF}));YM.displayName="StarIcon";const Kz=YM,KM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:zF}));KM.displayName="TagIcon";const Xz=KM,XM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:$F}));XM.displayName="TargetIcon";const Cm=XM,QM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:qF}));QM.displayName="ThreadsLogoIcon";const Qz=QM,JM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:IF}));JM.displayName="ThumbsDownIcon";const Mf=JM,WM=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:BF}));WM.displayName="ThumbsUpIcon";const Sf=WM,eS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:PF}));eS.displayName="TimerIcon";const Jz=eS,tS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:UF}));tS.displayName="TrashIcon";const Yt=tS,aS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:GF}));aS.displayName="TreeStructureIcon";const H7=aS,nS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:YF}));nS.displayName="TrendUpIcon";const Hm=nS,rS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:KF}));rS.displayName="UploadIcon";const Wz=rS,sS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:XF}));sS.displayName="UserIcon";const e$=sS,lS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:QF}));lS.displayName="UserCircleIcon";const Vm=lS,iS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:JF}));iS.displayName="UserCircleCheckIcon";const t$=iS,oS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:WF}));oS.displayName="UserCircleMinusIcon";const a$=oS,cS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:ez}));cS.displayName="UserGearIcon";const n$=cS,uS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:tz}));uS.displayName="UserPlusIcon";const r$=uS,dS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:az}));dS.displayName="UsersIcon";const s$=dS,hS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:nz}));hS.displayName="UsersThreeIcon";const mS=hS,fS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:rz}));fS.displayName="WarningIcon";const Zf=fS,pS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:sz}));pS.displayName="WaveformIcon";const V7=pS,xS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:lz}));xS.displayName="WebhooksLogoIcon";const l$=xS,gS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:iz}));gS.displayName="WifiHighIcon";const vS=gS,bS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:oz}));bS.displayName="WifiSlashIcon";const i$=bS,yS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:cz}));yS.displayName="WrenchIcon";const o$=yS,wS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:uz}));wS.displayName="XIcon";const La=wS,AS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:dz}));AS.displayName="XCircleIcon";const os=AS,jS=r.forwardRef((e,t)=>r.createElement(ce,{ref:t,...e,weights:hz}));jS.displayName="XLogoIcon";const NS=jS,_m=new EventTarget;function de(e,t){_m.dispatchEvent(new CustomEvent("toast",{detail:{type:e,message:t}}))}const c$={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 u$(){const[e,t]=r.useState([]);r.useEffect(()=>{const i=o=>{const{type:u,message:d}=o.detail,h=crypto.randomUUID();t(f=>[...f.slice(-4),{id:h,type:u,message:d}]),setTimeout(()=>{t(f=>f.filter(p=>p.id!==h))},5e3)};return _m.addEventListener("toast",i),()=>_m.removeEventListener("toast",i)},[]);const l=i=>{t(o=>o.filter(u=>u.id!==i))};return a.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 max-w-sm",children:a.jsx(pa,{children:e.map(i=>a.jsxs(Ve.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 ${c$[i.type]}`,children:[a.jsx("span",{className:"flex-1",children:i.message}),a.jsx("button",{onClick:()=>l(i.id),className:"opacity-60 hover:opacity-100",children:a.jsx(La,{size:14})})]},i.id))})})}function co(){const[e,t]=r.useState("connected"),[l,i]=r.useState(!0),[o,u]=r.useState(!0);return r.useEffect(()=>{let d=!1;return fetch("/api/runtime/tier").then(h=>h.json()).then(h=>{if(!d){const p=h.data.tier==="free"?"free":"connected";t(p),i(h.data.modelReady??!0)}}).catch(()=>{}).finally(()=>{d||u(!1)}),()=>{d=!0}},[]),{tier:e,modelReady:l,loading:o}}let na=null,mu=null;const Tm=new Set,d$=3e3;function h$(){const e=un(),t=window.location.protocol==="https:"?"wss:":"ws:",l=window.location.host;return`${t}//${l}/ws?token=${e}`}function Cf(){if(!((na==null?void 0:na.readyState)===WebSocket.OPEN||(na==null?void 0:na.readyState)===WebSocket.CONNECTING||!un()))try{na=new WebSocket(h$()),na.onmessage=t=>{try{const l=JSON.parse(t.data);for(const i of Tm)i(l.type,l.data)}catch{}},na.onclose=()=>{na=null,_7()},na.onerror=()=>{na==null||na.close()}}catch{_7()}}function _7(){mu||(mu=setTimeout(()=>{mu=null,Cf()},d$))}function ES(e){return Tm.add(e),()=>Tm.delete(e)}function ga(e){const[t,l]=r.useState(0);return r.useEffect(()=>(Cf(),ES(i=>{e.includes(i)&&l(o=>o+1)})),[e.join(",")]),t}function Hf(e){const t=r.useRef(e);r.useEffect(()=>{t.current=e}),r.useEffect(()=>(Cf(),ES((l,i)=>{t.current(l,i)})),[])}function m$(){Hf(r.useCallback((e,t)=>{const l=t;switch(e){case"task:completed":de("success",`Task completed${l!=null&&l.taskId?` (${l.taskId.slice(0,8)})`:""}`);break;case"task:failed":de("error",`Task failed: ${(l==null?void 0:l.error)||"Unknown error"}`);break;case"cloud:connected":de("info","Connected to cloud");break;case"cloud:disconnected":de("error",`Disconnected: ${(l==null?void 0:l.reason)||"Unknown"}`);break;case"credits:exhausted":de("info","Cloud credits exhausted. Tasks are running on your local model.");break;case"budget:warning":de("info",`Budget at ${(l==null?void 0:l.pct)||"?"}% capacity`);break;case"budget:exceeded":de("error",`Budget exceeded: ${(l==null?void 0:l.reason)||"Limit reached"}`);break;case"budget:llm-warn":de("info",(l==null?void 0:l.summary)||"Today's autonomous LLM spend is approaching the cap.");break;case"budget:llm-degrade":de("info",(l==null?void 0:l.summary)||"Autonomous LLM work is routing to a cheaper model for the rest of the day.");break;case"budget:llm-pause":de("error",(l==null?void 0:l.summary)||"Autonomous LLM work is paused for today. Raise the cap or wait for the day to roll over.");break;case"budget:llm-halt":de("error",(l==null?void 0:l.summary)||"Autonomous LLM work is halted for today. Raise the cap to resume.");break;case"model:switch-started":de("info",`Switching model to ${(l==null?void 0:l.model)||"new model"}...`);break;case"model:switch-complete":de("success",`Now using ${(l==null?void 0:l.model)||"model"} via ${(l==null?void 0:l.provider)||"local"}`);break;case"model:switch-failed":de("error",`Model switch failed: ${(l==null?void 0:l.reason)||"Unknown error"}`);break;case"inference:capabilities-changed":{const i=t;i!=null&&i.turboQuantActive&&de("info",`TurboQuant ${i.turboQuantBits}-bit active via ${i.provider}`);break}}},[]))}function f$({children:e}){return a.jsx(Ve.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 p$=[{path:"/",label:"Pulse",icon:Kr,group:"primary"},{path:"/chat",label:"Chat",icon:K0,group:"primary"},{path:"/portfolio",label:"Businesses",icon:Ki,group:"primary"},{path:"/dashboard",label:"Overview",icon:Yz,group:"primary"},{path:"/tasks",label:"Tasks",icon:H1,group:"primary"},{path:"/activity",label:"Activity",icon:sa,group:"primary"},{path:"/messages",label:"Messages",icon:A1,group:"primary"},{path:"/agents",label:"Agents",icon:on,group:"manage"},{path:"/projects",label:"Projects",icon:jf,group:"manage"},{path:"/workflows",label:"Workflows",icon:Vz,group:"manage"},{path:"/automations",label:"Automations",icon:sa,group:"manage"},{path:"/templates",label:"Templates",icon:jm,group:"manage"},{path:"/schedules",label:"Schedules",icon:z1,group:"manage"},{path:"/approvals",label:"Approvals",icon:zM,group:"manage"},{path:"/goals",label:"Goals",icon:Cm,group:"manage"},{path:"/marketing",label:"Marketing",icon:io,group:"manage"},{path:"/social",label:"Social",icon:NE,group:"manage"},{path:"/revenue",label:"Revenue",icon:RE,group:"manage"},{path:"/messaging",label:"Messaging",icon:A1,group:"connect"},{path:"/peers",label:"Peers",icon:Zm,group:"connect"},{path:"/team",label:"Team",icon:mS,group:"connect"},{path:"/connections",label:"Connections",icon:Jr,group:"connect"},{path:"/webhook-events",label:"Webhooks",icon:Ef,group:"configure"},{path:"/browser",label:"Browser",icon:wm,group:"configure"},{path:"/eye",label:"Eye",icon:kn,group:"configure"},{path:"/briefings",label:"Briefings",icon:Em,group:"configure"},{path:"/podcast",label:"Podcast",icon:an,group:"configure"},{path:"/knowledge",label:"Knowledge",icon:iE,group:"configure"},{path:"/settings",label:"Settings",icon:JE,group:"configure"}];function x$(e){const t=Math.floor(e/3600),l=Math.floor(e%3600/60);return t>0?`${t}h ${l}m`:`${l}m`}function g$({label:e,children:t}){return a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] uppercase tracking-widest text-neutral-600 px-3 mb-1.5",children:e}),a.jsx("div",{className:"space-y-0.5",children:t})]})}function v$({path:e,label:t,icon:l,isActive:i}){return a.jsxs(P0,{to:e,"data-testid":`runtime-nav-${t.toLowerCase()}`,className:`relative flex items-center gap-3 px-3 py-2 text-sm rounded-md transition-colors ${i?"text-white":"text-neutral-400 hover:text-white hover:bg-white/5"}`,children:[i&&a.jsx(Ve.div,{layoutId:"sidebar-active",className:"absolute inset-0 bg-white/10 rounded-md",transition:{type:"spring",stiffness:350,damping:30}}),a.jsxs("span",{className:"relative z-10 flex items-center gap-3",children:[a.jsx(l,{size:16,weight:"bold"}),t]})]})}function T7({health:e,healthError:t,healthLoading:l,tier:i,tierLoading:o,visibleNav:u,pathname:d,onClose:h}){const f=g=>g==="/"?d==="/"||d==="":d.startsWith(g),p=[{key:"primary"},{key:"manage",label:"Manage"},{key:"connect",label:"Connect"},{key:"configure",label:"Configure"}],x=g=>g.map(b=>a.jsx(v$,{path:b.path,label:b.label,icon:b.icon,isActive:f(b.path)},b.path));return a.jsxs("div",{className:"flex flex-col h-full",children:[a.jsxs("div",{className:"p-4 border-b border-white/10 flex items-center justify-between",children:[a.jsxs("span",{className:"text-sm uppercase tracking-widest",children:[a.jsx("span",{className:"font-bold",children:"OHWOW"}),a.jsx("span",{className:"font-light",children:".FUN"})]}),h&&a.jsx("button",{onClick:h,className:"text-neutral-400 hover:text-white transition-colors md:hidden",children:a.jsx(La,{size:18})})]}),a.jsx("nav",{className:"flex-1 overflow-y-auto p-3 space-y-5",children:p.map(({key:g,label:b})=>{const w=u.filter(N=>N.group===g);return w.length===0?null:b?a.jsx(g$,{label:b,children:x(w)},g):a.jsx("div",{className:"space-y-0.5",children:x(w)},g)})}),a.jsx("div",{className:"p-3 border-t border-white/10",children:a.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-lg bg-white/[0.03]",children:[a.jsx("div",{className:"flex-1 min-w-0",children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full ${t?"bg-warning":e?e.status==="healthy"?"bg-success":"bg-warning":"bg-neutral-600 animate-pulse"}`}),a.jsx("span",{className:"text-xs text-neutral-400",children:t?"Offline":e?`v${e.version}`:l?"Starting...":"Connecting..."}),e&&!t&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"text-white/10 text-xs",children:"|"}),a.jsx("span",{className:"text-xs text-neutral-500",children:x$(e.uptime)})]})]})}),!o&&a.jsx("span",{"data-testid":"runtime-tier-badge",className:`inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-medium ${i==="free"?"bg-cyan-500/15 text-cyan-400":"bg-success/15 text-success"}`,children:i==="free"?"Local":"Cloud"})]})})]})}function b$(){const e=Ga(),[t,l]=r.useState(null),[i,o]=r.useState(null),[u,d]=r.useState(!0);r.useEffect(()=>{let A=!1;return fetch("/health").then(Z=>Z.ok?Z.json():Promise.reject(new Error(`HTTP ${Z.status}`))).then(Z=>{A||(l(Z),o(null))}).catch(Z=>{A||o(Z.message)}).finally(()=>{A||d(!1)}),()=>{A=!0}},[]);const{tier:h,modelReady:f,loading:p}=co();m$();const[x,g]=r.useState(!1),[b,w]=r.useState(()=>{try{return localStorage.getItem("ohwow-model-banner-dismissed")==="1"}catch{return!1}});r.useEffect(()=>{g(!1)},[e.pathname]);const N=!p&&!f&&!b,E=()=>{w(!0);try{localStorage.setItem("ohwow-model-banner-dismissed","1")}catch{}},j=p$;return a.jsxs("div",{className:"flex h-dvh bg-black text-white",children:[a.jsx("aside",{className:"hidden md:flex w-64 border-r border-white/10 flex-col h-dvh sticky top-0",children:a.jsx(T7,{health:t??null,healthError:i,healthLoading:u,tier:h,tierLoading:p,visibleNav:j,pathname:e.pathname})}),a.jsx(pa,{children:x&&a.jsxs(a.Fragment,{children:[a.jsx(Ve.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>g(!1),className:"fixed inset-0 bg-black/60 z-40 md:hidden"}),a.jsx(Ve.aside,{initial:{x:-280},animate:{x:0},exit:{x:-280},transition:{type:"spring",stiffness:350,damping:30},className:"fixed inset-y-0 left-0 w-[280px] bg-black border-r border-white/10 z-50 md:hidden",children:a.jsx(T7,{health:t??null,healthError:i,healthLoading:u,tier:h,tierLoading:p,visibleNav:j,pathname:e.pathname,onClose:()=>g(!1)})})]})}),a.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0",children:[a.jsxs("div",{className:"md:hidden flex items-center gap-3 px-4 py-3 border-b border-white/10",children:[a.jsx("button",{onClick:()=>g(!0),className:"text-neutral-400 hover:text-white transition-colors",children:a.jsx(mM,{size:20})}),a.jsxs("span",{className:"text-sm uppercase tracking-widest",children:[a.jsx("span",{className:"font-bold",children:"OHWOW"}),a.jsx("span",{className:"font-light",children:".FUN"})]})]}),a.jsxs("main",{className:"flex-1 overflow-y-auto min-h-0",children:[N&&a.jsxs("div",{className:"bg-warning/10 border-b border-warning/20 px-6 py-2.5 flex items-center justify-between",children:[a.jsxs("p",{className:"text-sm text-warning",children:["No AI model set up yet. Head to"," ",a.jsx(P0,{to:"/settings",className:"underline hover:text-white",children:"Settings"})," ","to download one."]}),a.jsx("button",{onClick:E,className:"text-warning/60 hover:text-warning text-sm ml-4","aria-label":"Dismiss",children:"✕"})]}),a.jsx(cj,{children:a.jsx(f$,{children:a.jsx(N_,{})},e.pathname)})]})]})]})}function y$(){const[e,t]=r.useState(""),[l,i]=r.useState(""),[o,u]=r.useState(!1),d=cn(),h=async f=>{if(f.preventDefault(),!!e.trim()){u(!0),i("");try{Kh(e.trim()),await me("/api/session"),d("/",{replace:!0})}catch{i("Invalid session token. Check your terminal for the correct token."),Kh("")}finally{u(!1)}}};return a.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center p-4",children:a.jsxs("div",{className:"w-full max-w-sm",children:[a.jsxs("div",{className:"text-center mb-8",children:[a.jsxs("h1",{className:"text-2xl font-bold",children:[a.jsx("span",{className:"text-white",children:"ohwow"}),a.jsx("span",{className:"text-neutral-400 ml-1",children:"runtime"})]}),a.jsx("p",{className:"text-sm text-neutral-400 mt-2",children:"Enter the session token from your terminal to connect."})]}),a.jsxs("form",{onSubmit:h,className:"space-y-4",children:[a.jsx("div",{children:a.jsx("input",{type:"text",value:e,onChange:f=>t(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&&a.jsx("p",{className:"text-xs text-critical",children:l}),a.jsx("button",{type:"submit",disabled:o||!e.trim(),className:"w-full bg-white text-black rounded-lg px-4 py-3 text-sm font-medium hover:bg-neutral-200 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:o?"Connecting...":"Connect"})]})]})})}function w$(e){const t=e.match(/```agents\s*\n?([\s\S]*?)```/);if(t)try{const i=JSON.parse(t[1].trim());if(Array.isArray(i))return i.filter(o=>typeof o=="string")}catch{}const l=e.match(/\[[\s\S]*?\]/);if(l)try{const i=JSON.parse(l[0]);if(Array.isArray(i))return i.filter(o=>typeof o=="string")}catch{}return[]}function A$(e){const t=e.match(/```setup\s*\n?([\s\S]*?)```/);if(t)try{const i=JSON.parse(t[1].trim()),o=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:o,agentIds:u}}catch{}return{goal:null,agentIds:w$(e)}}function j$(e){return e.toLowerCase().trim().replace(/\s+/g,"-").replace(/[^a-z0-9\-_]/g,"")}function MS(e={}){const{mode:t,onWorkspaceCreated:l}=e,i=t==="new-workspace",[o,u]=r.useState({screen:i?"business_info":"splash",status:null,selectedModel:null,loading:!1,downloading:!1,downloadPercent:0,downloadMessage:"",setupMessage:"",error:null,completed:!1,licenseKey:"",licenseValidating:!1,licenseError:null,businessName:"",businessType:"",businessDescription:"",founderPath:"",founderFocus:"",modelAvailable:!1,chatMessages:[],chatStreaming:!1,presets:[],selectedAgentIds:new Set,integrations:[],integrationValues:{},skippedIntegrationIds:new Set,discoveredGoal:null}),d=r.useRef(null);r.useEffect(()=>()=>{var I;(I=d.current)==null||I.abort()},[]);const h=r.useCallback(async()=>{u(I=>({...I,loading:!0,error:null}));try{const I=await fetch("/api/onboarding/status");if(!I.ok)throw new Error("Could not detect hardware");const{data:Y}=await I.json();return u(X=>({...X,status:Y,selectedModel:Y.recommendation,loading:!1})),Y}catch(I){return u(Y=>({...Y,loading:!1,error:I instanceof Error?I.message:"Something went wrong"})),null}},[]),f=r.useCallback(()=>{u(I=>({...I,screen:"tier_choice"}))},[]),p=r.useCallback(I=>{u(Y=>({...Y,licenseKey:I,licenseError:null}))},[]),x=r.useCallback(async()=>{u(I=>({...I,licenseValidating:!1,screen:"model"})),o.status||await h()},[o.status,h]),g=r.useCallback(async()=>{u(I=>({...I,screen:"model",licenseKey:""})),o.status||await h()},[o.status,h]),b=r.useCallback(async()=>{u(I=>({...I,screen:"model"})),o.status||await h()},[o.status,h]),w=r.useCallback(I=>{u(Y=>({...Y,selectedModel:I}))},[]),N=async(I,Y,X)=>{const k=I.body.getReader(),U=new TextDecoder;let W="";try{for(;;){if(X!=null&&X.aborted){k.cancel();return}const{done:$,value:F}=await k.read();if($)break;W+=U.decode(F,{stream:!0});const z=W.split(`
|
|
70
|
-
`);W=z.pop()||"";for(const ae of z)if(ae.startsWith("data: ")){const fe=ae.slice(6).trim();if(fe==="[DONE]")return;try{Y(JSON.parse(fe))}catch{}}}}finally{k.releaseLock()}},E=r.useCallback(async()=>{const I=o.selectedModel;if(!I||d.current)return;const Y=new AbortController;d.current=Y,u(X=>({...X,downloading:!0,downloadPercent:0,downloadMessage:"",setupMessage:"Setting things up...",error:null}));try{const X=await fetch("/api/onboarding/ensure-ollama",{method:"POST",signal:Y.signal});if(!X.ok||!X.body)throw new Error("Could not set up Ollama");await N(X,U=>{if(u(W=>({...W,setupMessage:U.message})),U.error)throw new Error(U.error)},Y.signal),u(U=>({...U,setupMessage:"",downloadMessage:"Starting download..."}));const k=await fetch("/api/onboarding/download-model",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tag:I.tag}),signal:Y.signal});if(!k.ok||!k.body)throw new Error("Could not start download");await N(k,U=>{if(u(W=>({...W,downloadMessage:U.message,downloadPercent:U.percent??W.downloadPercent})),U.error)throw new Error(U.error)},Y.signal),u(U=>({...U,downloading:!1,downloadPercent:100,downloadMessage:"Download complete",modelAvailable:!0,screen:"business_info"}))}catch(X){if(Y.signal.aborted)return;u(k=>({...k,downloading:!1,setupMessage:"",error:X instanceof Error?X.message:"Something went wrong"}))}finally{d.current=null}},[o.selectedModel]),j=r.useCallback(()=>{u(I=>({...I,screen:"business_info",selectedModel:null,modelAvailable:!1}))},[]),A=r.useCallback(I=>{u(Y=>({...Y,businessName:I}))},[]),Z=r.useCallback(I=>{u(Y=>({...Y,businessType:I}))},[]),M=r.useCallback(I=>{u(Y=>({...Y,businessDescription:I}))},[]),S=r.useCallback(()=>{u(I=>({...I,screen:"business_info"}))},[]),_=r.useCallback(I=>{u(Y=>({...Y,founderPath:I}))},[]),T=r.useCallback(I=>{u(Y=>({...Y,founderFocus:I}))},[]),V=r.useCallback(()=>{u(I=>({...I,screen:"founder_stage"}))},[]),H=r.useCallback(async I=>{u(Y=>({...Y,chatStreaming:!0}));try{const Y=await fetch("/api/onboarding/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:I,businessType:o.businessType||"saas_startup",founderPath:o.founderPath||"exploring",founderFocus:o.founderFocus||""})});if(!Y.ok||!Y.body)throw new Error("Chat unavailable");let X="";const k=Y.body.getReader(),U=new TextDecoder;let W="";for(;;){const{done:$,value:F}=await k.read();if($)break;W+=U.decode(F,{stream:!0});const z=W.split(`
|
|
71
|
-
`);W=z.pop()||"";for(const ae of z)if(ae.startsWith("data: ")){const fe=ae.slice(6).trim();if(fe==="[DONE]")continue;try{const pe=JSON.parse(fe);pe.type==="text"&&pe.content&&(X+=pe.content)}catch{}}}if(X){u(F=>({...F,chatMessages:[...F.chatMessages,{role:"assistant",content:X}],chatStreaming:!1}));const $=A$(X);$.agentIds.length>0?u(F=>({...F,selectedAgentIds:new Set($.agentIds.filter(z=>F.presets.some(ae=>ae.id===z))),discoveredGoal:$.goal})):$.goal&&u(F=>({...F,discoveredGoal:$.goal}))}else u($=>({...$,chatStreaming:!1}))}catch{u(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."}]}))}},[o.businessType,o.founderPath,o.founderFocus]),L=r.useCallback(async()=>{const I=o.businessType||"saas_startup";try{const Y=await fetch(`/api/onboarding/presets?businessType=${I}`);if(Y.ok){const{data:X}=await Y.json();u(k=>({...k,screen:"agent_discovery",presets:X.presets,selectedAgentIds:new Set(X.recommended.map(U=>U.id))}))}else u(X=>({...X,screen:"agent_discovery"}))}catch{u(Y=>({...Y,screen:"agent_discovery"}))}try{const Y=await fetch("/api/onboarding/model-available");if(Y.ok){const{data:X}=await Y.json();u(k=>({...k,modelAvailable:X.available})),X.available&&o.chatMessages.length===0&&H([])}}catch{}},[o.businessType,o.chatMessages.length,H]),D=r.useCallback(I=>{const Y={role:"user",content:I};u(k=>({...k,chatMessages:[...k.chatMessages,Y]}));const X=[...o.chatMessages,Y];H(X)},[o.chatMessages,H]),B=r.useCallback(()=>{u(I=>({...I,screen:"agent_selection"}))},[]),K=r.useCallback(I=>{u(Y=>{const X=new Set(Y.selectedAgentIds);return X.has(I)?X.delete(I):X.add(I),{...Y,selectedAgentIds:X}})},[]),J=r.useCallback(()=>{u(I=>({...I,screen:"integration_setup"}))},[]),se=r.useCallback((I,Y,X)=>{u(k=>({...k,integrationValues:{...k.integrationValues,[I]:{...k.integrationValues[I]||{},[Y]:X}}}))},[]),le=r.useCallback(I=>{u(Y=>{const X=new Set(Y.skippedIntegrationIds);return X.add(I),{...Y,skippedIntegrationIds:X}})},[]),O=r.useCallback(()=>{u(I=>({...I,screen:"ready"}))},[]),q=r.useCallback(async()=>{const I=o.selectedModel,Y=(I==null?void 0:I.tag)||"qwen3:4b",X=o.presets.filter(k=>o.selectedAgentIds.has(k.id)).map(k=>({id:k.id,name:k.name,role:k.role,description:k.description,systemPrompt:"",tools:k.tools,department:k.department}));u(k=>({...k,loading:!0,error:null}));try{if(i){const U=j$(o.businessName)||"new-workspace",W=await fetch("/api/workspaces/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({workspaceName:U,displayName:o.businessName,businessType:o.businessType,businessDescription:o.businessDescription,founderPath:o.founderPath,founderFocus:o.founderFocus,agents:X,goal:o.discoveredGoal})});if(!W.ok){const $=await W.json().catch(()=>({}));throw new Error($.error||"Couldn't create workspace")}return u($=>({...$,loading:!1,completed:!0})),l==null||l(),null}if(!(await fetch("/api/onboarding/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({modelTag:Y,businessName:o.businessName,businessType:o.businessType,businessDescription:o.businessDescription,founderPath:o.founderPath,founderFocus:o.founderFocus,agents:X,goal:o.discoveredGoal})})).ok)throw new Error("Could not save config");return u(U=>({...U,loading:!1,completed:!0})),null}catch(k){const U=k instanceof Error?k.message:"Something went wrong";return u(W=>({...W,loading:!1,error:U})),U}},[i,l,o.selectedModel,o.businessName,o.businessType,o.businessDescription,o.founderPath,o.founderFocus,o.presets,o.selectedAgentIds,o.discoveredGoal]);return{...o,fetchStatus:h,goToTierChoice:f,setLicenseKey:p,validateLicenseKey:x,skipTierChoice:g,goToModel:b,selectModel:w,startDownload:E,skipDownload:j,setBusinessName:A,setBusinessType:Z,setBusinessDescription:M,goToBusinessInfo:S,setFounderPath:_,setFounderFocus:T,goToFounderStage:V,goToAgentDiscovery:L,sendChatMessage:D,goToAgentSelection:B,toggleAgent:K,goToIntegrationSetup:J,setIntegrationValue:se,skipIntegration:le,goToReady:O,completeOnboarding:q}}function N$({onGetStarted:e}){return a.jsx("div",{"data-testid":"onboarding-splash",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:a.jsxs("div",{className:"max-w-md w-full text-center space-y-8",children:[a.jsx("div",{children:a.jsx("h1",{className:"text-5xl font-bold tracking-tight",children:a.jsx("span",{className:"text-white",children:"ohwow"})})}),a.jsxs("div",{className:"space-y-3",children:[a.jsx("p",{className:"text-xl text-white font-medium",children:"Your AI team, running on your machine."}),a.jsx("p",{className:"text-sm text-neutral-400",children:"No account needed. No cloud required."})]}),a.jsx("button",{"data-testid":"onboarding-get-started",onClick:e,className:"w-full bg-white text-black rounded-lg px-6 py-3.5 text-base font-medium hover:bg-neutral-200 transition-colors",children:"Get Started"}),a.jsx("p",{className:"text-xs text-neutral-600",children:"Free forever for local use"})]})})}function E$({licenseKey:e,onChangeLicenseKey:t,onValidate:l,onSkip:i,onBack:o,validating:u,error:d}){const h=f=>{f.preventDefault(),e.trim()&&l()};return a.jsx("div",{className:"min-h-screen bg-black text-white flex flex-col items-center justify-center p-6",children:a.jsxs("div",{className:"w-full max-w-md space-y-8",children:[a.jsxs("div",{className:"flex items-center gap-2 text-xs text-neutral-500",children:[a.jsx("span",{children:"Step 2 of 9"}),a.jsx("div",{className:"flex-1 h-0.5 bg-white/10 rounded-full",children:a.jsx("div",{className:"h-full w-[22%] bg-white/30 rounded-full"})})]}),a.jsxs("div",{className:"text-center space-y-2",children:[a.jsx("h1",{className:"text-2xl font-bold",children:"Connect to the cloud"}),a.jsx("p",{className:"text-neutral-400 text-sm",children:"Enter your license key to unlock cloud features, or skip to use ohwow locally for free."})]}),a.jsxs("form",{onSubmit:h,className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1.5",children:"License key"}),a.jsx("input",{type:"text",value:e,onChange:f=>t(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&&a.jsx("div",{className:"bg-red-500/10 border border-red-500/20 rounded-lg p-3",children:a.jsx("p",{className:"text-sm text-red-400",children:d})}),a.jsx("button",{type:"submit",disabled: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?a.jsxs(a.Fragment,{children:[a.jsx(ct,{size:14,className:"animate-spin"}),"Validating..."]}):"Validate key"})]}),a.jsx("div",{className:"text-center",children:a.jsx("button",{onClick:i,className:"text-sm text-neutral-400 hover:text-white transition-colors",children:"Skip and continue locally (free forever)"})}),a.jsx("div",{className:"text-center",children:a.jsx("button",{onClick:o,className:"text-xs text-neutral-500 hover:text-neutral-300 transition-colors",children:"← Back"})})]})})}function M$({status:e,selectedModel:t,loading:l,downloading:i,downloadPercent:o,downloadMessage:u,setupMessage:d,error:h,onSelectModel:f,onDownload:p,onSkip:x}){const[g,b]=r.useState(!1);if(l||!e)return a.jsx("div",{"data-testid":"onboarding-model-loading",className:"min-h-screen bg-black flex items-center justify-center p-4",children:a.jsxs("div",{className:"text-center space-y-4",children:[a.jsx("div",{className:"w-8 h-8 border-2 border-white/10 border-t-white rounded-full animate-spin mx-auto"}),a.jsx("p",{className:"text-sm text-neutral-400",children:"Detecting your hardware..."})]})});const w=t?Math.ceil(t.sizeGB*1024/50/60*8):null;return a.jsx("div",{"data-testid":"onboarding-model",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:a.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[a.jsx("div",{className:"text-center space-y-2",children:a.jsx("h2",{className:"text-2xl font-bold text-white",children:"Let's download your first AI model"})}),a.jsx("div",{"data-testid":"onboarding-device-summary",className:"bg-white/5 border border-white/[0.08] rounded-lg px-4 py-3 text-sm text-neutral-400",children:e.deviceSummary}),t&&!i&&a.jsxs("div",{"data-testid":"onboarding-model-hero",className:"bg-white/5 border border-white/10 rounded-lg p-5 space-y-3",children:[a.jsx("div",{className:"flex items-start justify-between",children:a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("h3",{className:"text-lg font-semibold text-white",children:t.label}),t.recommended&&a.jsx("span",{className:"text-[10px] uppercase tracking-wider bg-white/10 text-white px-2 py-0.5 rounded-full border border-white/10",children:"Best for your machine"})]}),a.jsx("p",{className:"text-sm text-neutral-400 mt-1",children:t.description})]})}),a.jsxs("div",{className:"flex items-center gap-4 text-xs text-neutral-400",children:[a.jsxs("span",{children:[t.sizeGB," GB download"]}),w&&a.jsxs("span",{children:["~",w," min"]}),a.jsx("span",{children:t.features.join(", ")})]})]}),i&&a.jsxs("div",{"data-testid":"onboarding-download-progress",className:"bg-white/5 border border-white/[0.08] rounded-lg p-5 space-y-4",children:[d&&a.jsx("p",{className:"text-sm text-neutral-400",children:d}),!d&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"flex items-center justify-between text-sm",children:[a.jsx("span",{className:"text-white",children:t==null?void 0:t.label}),a.jsxs("span",{className:"text-neutral-400",children:[o,"%"]})]}),a.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-2 overflow-hidden",children:a.jsx("div",{className:"bg-white h-full rounded-full transition-all duration-300",style:{width:`${o}%`}})}),a.jsx("p",{className:"text-xs text-neutral-400 truncate",children:u})]})]}),h&&a.jsx("div",{className:"bg-critical/10 border border-critical/20 rounded-lg px-4 py-3 text-sm text-critical",children:h}),!i&&a.jsxs("div",{className:"space-y-3",children:[a.jsx("button",{"data-testid":"onboarding-download-btn",onClick:p,disabled:!t,className:"w-full bg-white text-black rounded-lg px-6 py-3.5 text-base font-medium hover:bg-neutral-200 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Download"}),e.alternatives.length>0&&a.jsxs("div",{children:[a.jsx("button",{"data-testid":"onboarding-alternatives-toggle",onClick:()=>b(!g),className:"text-sm text-neutral-400 hover:text-white transition-colors",children:g?"Hide other options":"See other options"}),g&&a.jsx("div",{className:"mt-3 space-y-2",children:e.alternatives.map(N=>a.jsxs("button",{onClick:()=>f(N),className:`w-full text-left bg-white/5 border rounded-lg px-4 py-3 text-sm transition-colors ${(t==null?void 0:t.tag)===N.tag?"border-white/10 text-white":"border-white/[0.08] text-neutral-400 hover:border-white/[0.08] hover:text-white"}`,children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"font-medium",children:N.label}),a.jsxs("span",{className:"text-xs",children:[N.sizeGB," GB"]})]}),a.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:N.description})]},N.tag))})]}),a.jsx("div",{className:"text-center",children:a.jsx("button",{"data-testid":"onboarding-skip-btn",onClick:x,className:"text-xs text-neutral-600 hover:text-neutral-400 transition-colors",children:"Skip for now"})})]})]})})}const S$=[{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 SS({businessName:e,businessType:t,businessDescription:l,onChangeName:i,onChangeType:o,onChangeDescription:u,onContinue:d,onBack:h}){const f=e.trim().length>0&&t;return a.jsx("div",{"data-testid":"onboarding-business-info",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:a.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[a.jsxs("div",{className:"text-center space-y-2",children:[a.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 3 of 7"}),a.jsx("h2",{className:"text-2xl font-bold text-white",children:"Tell us about your business"}),a.jsx("p",{className:"text-sm text-neutral-400",children:"This helps us recommend the right AI agents for you."})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"Business name"}),a.jsx("input",{"data-testid":"onboarding-business-name",type:"text",value:e,onChange:p=>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})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"Business type"}),a.jsx("div",{className:"grid grid-cols-2 gap-2",children:S$.map(p=>a.jsxs("button",{"data-testid":`onboarding-btype-${p.id}`,onClick:()=>o(p.id),className:`text-left px-3 py-2.5 rounded-lg border text-sm transition-colors ${t===p.id?"border-white/20 bg-white/10 text-white":"border-white/[0.08] bg-white/5 text-neutral-400 hover:border-white/20 hover:text-white"}`,children:[a.jsx("span",{className:"font-medium block",children:p.label}),a.jsx("span",{className:"text-xs text-neutral-400",children:p.tagline})]},p.id))})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"What does your business do? (optional)"}),a.jsx("textarea",{"data-testid":"onboarding-business-desc",value: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"})]}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx("button",{onClick:h,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),a.jsx("button",{"data-testid":"onboarding-business-continue",onClick:d,disabled:!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 Z$=[{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 ZS({founderPath:e,founderFocus:t,onChangePath:l,onChangeFocus:i,onContinue:o,onBack:u}){const d=e.length>0;return a.jsx("div",{"data-testid":"onboarding-founder-stage",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:a.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[a.jsxs("div",{className:"text-center space-y-2",children:[a.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 4 of 7"}),a.jsx("h2",{className:"text-2xl font-bold text-white",children:"Where are you in your journey?"}),a.jsx("p",{className:"text-sm text-neutral-400",children:"This helps us prioritize which agents to recommend."})]}),a.jsx("div",{className:"space-y-2",children:Z$.map(h=>a.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:[a.jsx("span",{className:"text-lg",children:h.icon}),a.jsxs("div",{children:[a.jsx("span",{className:"font-medium block text-sm",children:h.label}),a.jsx("span",{className:"text-xs text-neutral-400",children:h.description})]})]},h.id))}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"What are you focused on right now? (optional)"}),a.jsx("input",{"data-testid":"onboarding-founder-focus",type:"text",value:t,onChange:h=>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"})]}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx("button",{onClick:u,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),a.jsx("button",{"data-testid":"onboarding-founder-continue",onClick:o,disabled:!d,className:"flex-1 bg-white text-black rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-neutral-200 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:"Continue"})]})]})})}function CS({modelAvailable:e,chatMessages:t,presets:l,discoveredGoal:i,onSendMessage:o,onContinue:u,onBack:d,streaming:h}){const[f,p]=r.useState(""),x=r.useRef(null);r.useEffect(()=>{var b;(b=x.current)==null||b.scrollTo({top:x.current.scrollHeight,behavior:"smooth"})},[t]);const g=()=>{!f.trim()||h||(o(f.trim()),p(""))};return e?a.jsx("div",{"data-testid":"onboarding-agent-discovery",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:a.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[a.jsxs("div",{className:"text-center space-y-2",children:[a.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 5 of 7"}),a.jsx("h2",{className:"text-2xl font-bold text-white",children:"Let's define your goal"}),a.jsx("p",{className:"text-sm text-neutral-400",children:"Tell me what you want to achieve and I'll build your AI team around it"})]}),i&&a.jsx("div",{className:"px-4 py-2 rounded-lg bg-emerald-500/10 border border-emerald-500/20",children:a.jsxs("span",{className:"text-sm text-emerald-400",children:["Goal: ",i.title]})}),a.jsxs("div",{ref:x,className:"bg-white/5 border border-white/[0.08] rounded-lg p-4 space-y-3 max-h-64 overflow-y-auto",children:[t.map((b,w)=>a.jsx("div",{className:`${b.role==="user"?"text-right":""}`,children:a.jsx("div",{className:`inline-block rounded-lg px-3 py-2 text-sm max-w-[80%] ${b.role==="user"?"bg-white/10 text-white":"bg-neutral-950 border border-white/[0.08] text-white"}`,children:a.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:b.content})})},w)),h&&a.jsx("div",{className:"text-neutral-400 text-sm animate-pulse",children:"Thinking..."})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("input",{"data-testid":"onboarding-chat-input",type:"text",value:f,onChange:b=>p(b.target.value),onKeyDown:b=>{b.key==="Enter"&&g()},placeholder:"Tell the AI about your priorities...",disabled:h,className:"flex-1 bg-white/5 border border-white/[0.08] rounded-lg px-4 py-3 text-sm text-white placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20 disabled:opacity-50"}),a.jsx("button",{onClick:g,disabled:h||!f.trim(),className:"bg-white text-black rounded-lg px-4 text-sm hover:bg-neutral-200 transition-colors disabled:opacity-40",children:"Send"})]}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx("button",{onClick:d,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),a.jsx("button",{"data-testid":"onboarding-discovery-continue",onClick: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:t.length>=4?"Set up my workspace":"Skip to selection"})]})]})}):a.jsx("div",{"data-testid":"onboarding-agent-discovery",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:a.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[a.jsxs("div",{className:"text-center space-y-2",children:[a.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 5 of 7"}),a.jsx("h2",{className:"text-2xl font-bold text-white",children:"Your recommended agents"}),a.jsx("p",{className:"text-sm text-neutral-400",children:"Based on your business type. You can adjust on the next screen."})]}),a.jsx("div",{className:"space-y-2",children:l.map(b=>a.jsxs("div",{className:`px-4 py-3 rounded-lg border ${b.recommended?"border-white/[0.12] bg-white/5":"border-white/[0.08] bg-white/5"}`,children:[a.jsxs("div",{className:"flex items-center gap-2",children:[b.recommended&&a.jsx("span",{className:"text-white text-xs",children:"★"}),a.jsx("span",{className:"font-medium text-sm text-white",children:b.name}),a.jsx("span",{className:"text-xs text-neutral-400",children:b.role})]}),a.jsx("p",{className:"text-xs text-neutral-400 mt-1",children:b.description})]},b.id))}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx("button",{onClick:d,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),a.jsx("button",{"data-testid":"onboarding-discovery-continue",onClick: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 C$={web_research:"Web Research",deep_research:"Deep Research",ocr:"OCR",local_crm:"CRM"};function HS({presets:e,selectedIds:t,onToggle:l,onContinue:i,onBack:o}){return a.jsx("div",{"data-testid":"onboarding-agent-selection",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:a.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[a.jsxs("div",{className:"text-center space-y-2",children:[a.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 6 of 7"}),a.jsx("h2",{className:"text-2xl font-bold text-white",children:"Choose your agents"}),a.jsx("p",{className:"text-sm text-neutral-400",children:t.size>0?`${t.size} agent${t.size===1?"":"s"} selected`:"Select the agents you want to create"})]}),a.jsx("div",{className:"space-y-2 max-h-[400px] overflow-y-auto",children:e.map(u=>{const d=t.has(u.id);return a.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:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:`mt-0.5 w-4 h-4 rounded border flex items-center justify-center shrink-0 ${d?"bg-white border-white":"border-neutral-400/30"}`,children:d&&a.jsx("svg",{className:"w-2.5 h-2.5 text-black",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"font-medium text-sm text-white",children:u.name}),u.recommended&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/10 text-white border border-white/10",children:"Recommended"})]}),a.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:u.role}),a.jsx("p",{className:"text-xs text-neutral-400/70 mt-1",children:u.description}),u.tools.length>0&&a.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:u.tools.map(h=>a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/5 border border-white/[0.08] text-neutral-400",children:C$[h]||h},h))})]})]})},u.id)})}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx("button",{onClick:o,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),a.jsxs("button",{"data-testid":"onboarding-selection-continue",onClick:i,disabled:t.size===0,className:"flex-1 bg-white text-black rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-neutral-200 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:["Create ",t.size," agent",t.size===1?"":"s"]})]})]})})}function VS({integrations:e,integrationValues:t,onSetValue:l,onSkipIntegration:i,skippedIds:o,onContinue:u,onBack:d}){if(e.length===0)return a.jsx("div",{className:"min-h-screen bg-black text-white flex flex-col items-center justify-center p-6",children:a.jsxs("div",{className:"w-full max-w-md space-y-6 text-center",children:[a.jsx("div",{className:"w-14 h-14 rounded-xl bg-success/10 flex items-center justify-center mx-auto",children:a.jsx(Qr,{size:28,className:"text-success"})}),a.jsx("h2",{className:"text-lg font-bold",children:"No integrations needed"}),a.jsx("p",{className:"text-sm text-neutral-400",children:"Your selected agents work out of the box."}),a.jsx("button",{onClick: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=>o.has(f.id)||f.envVarsRequired.every(p=>{var x;return!!((x=t[f.id])!=null&&x[p.key])}));return a.jsx("div",{className:"min-h-screen bg-black text-white flex flex-col items-center justify-center p-6",children:a.jsxs("div",{className:"w-full max-w-lg space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-2 text-xs text-neutral-500",children:[a.jsx("span",{children:"Step 8 of 9"}),a.jsx("div",{className:"flex-1 h-0.5 bg-white/10 rounded-full",children:a.jsx("div",{className:"h-full w-[89%] bg-white/30 rounded-full"})})]}),a.jsxs("div",{className:"text-center space-y-2",children:[a.jsx("h1",{className:"text-2xl font-bold",children:"Connect integrations"}),a.jsx("p",{className:"text-neutral-400 text-sm",children:"Some agents work best with connected services. You can skip any for now."})]}),a.jsx("div",{className:"space-y-4",children:e.map(f=>{const p=o.has(f.id),x=t[f.id]||{},g=f.envVarsRequired.every(b=>!!x[b.key]);return a.jsxs("div",{className:`border rounded-lg p-4 transition-colors ${g?"border-success/30 bg-success/[0.03]":p?"border-white/[0.06] bg-white/[0.01] opacity-50":"border-white/[0.08] bg-white/[0.02]"}`,children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Jr,{size:16,className:g?"text-success":"text-neutral-400"}),a.jsx("span",{className:"text-sm font-medium",children:f.name}),g&&a.jsx("span",{className:"text-[10px] bg-success/15 text-success px-1.5 py-0.5 rounded",children:"connected"}),p&&a.jsx("span",{className:"text-[10px] bg-white/[0.06] text-neutral-500 px-1.5 py-0.5 rounded",children:"skipped"})]}),!g&&!p&&a.jsxs("button",{onClick:()=>i(f.id),className:"text-xs text-neutral-500 hover:text-white transition-colors flex items-center gap-1",children:[a.jsx(Pz,{size:12})," Skip"]})]}),a.jsx("p",{className:"text-xs text-neutral-500 mb-3",children:f.description}),!p&&a.jsx("div",{className:"space-y-2",children:f.envVarsRequired.map(b=>a.jsxs("div",{children:[a.jsx("label",{className:"text-[10px] text-neutral-400 block mb-1",children:b.label}),a.jsx("input",{type:"password",value:x[b.key]||"",onChange:w=>l(f.id,b.key,w.target.value),placeholder:b.key,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-600 focus:outline-none focus:border-white/20"})]},b.key))})]},f.id)})}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx("button",{onClick:d,className:"flex-1 border border-white/10 text-neutral-400 rounded-lg py-3 text-sm hover:bg-white/5 transition-colors",children:"Back"}),a.jsx("button",{onClick: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 _S({selectedModel:e,loading:t,error:l,onLaunch:i,businessName:o,agentCount:u,launchLabel:d="Start Chatting"}){return a.jsx("div",{"data-testid":"onboarding-ready",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:a.jsxs("div",{className:"max-w-md w-full text-center space-y-8",children:[a.jsx("div",{className:"space-y-2",children:a.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 7 of 7"})}),a.jsxs("div",{className:"space-y-3",children:[a.jsx("div",{className:"w-12 h-12 rounded-full bg-success/10 border border-success/20 flex items-center justify-center mx-auto",children:a.jsx("svg",{className:"w-6 h-6 text-success",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),a.jsx("h2",{className:"text-2xl font-bold text-white",children:"You're all set."})]}),a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg px-4 py-3 text-left space-y-2",children:[o&&a.jsxs("div",{className:"flex justify-between text-sm",children:[a.jsx("span",{className:"text-neutral-400",children:"Business"}),a.jsx("span",{className:"text-white font-medium",children:o})]}),a.jsxs("div",{className:"flex justify-between text-sm",children:[a.jsx("span",{className:"text-neutral-400",children:"Model"}),a.jsx("span",{className:"text-white",children:e?e.label:"None (add later in Settings)"})]}),u!==void 0&&u>0&&a.jsxs("div",{className:"flex justify-between text-sm",children:[a.jsx("span",{className:"text-neutral-400",children:"Agents"}),a.jsxs("span",{className:"text-white",children:[u," agent",u===1?"":"s"," ready to go"]})]})]}),l&&a.jsx("div",{className:"bg-critical/10 border border-critical/20 rounded-lg px-4 py-3 text-sm text-critical",children:l}),a.jsx("button",{"data-testid":"onboarding-launch-btn",onClick:i,disabled:t,className:"w-full bg-white text-black rounded-lg px-6 py-3.5 text-base font-medium hover:bg-neutral-200 transition-colors disabled:opacity-50",children:t?"Saving...":d})]})})}function H$({sessionToken:e}){var i;const t=MS();r.useEffect(()=>{t.screen==="model"&&!t.status&&t.fetchStatus()},[t.screen]);const l=async()=>{await t.completeOnboarding()||(e&&Kh(e),window.location.href="/ui/")};switch(t.screen){case"splash":return a.jsx(N$,{onGetStarted:t.goToTierChoice});case"tier_choice":return a.jsx(E$,{licenseKey:t.licenseKey,onChangeLicenseKey:t.setLicenseKey,onValidate:t.validateLicenseKey,onSkip:t.skipTierChoice,onBack:()=>{},validating:t.licenseValidating,error:t.licenseError});case"model":return a.jsx(M$,{status:t.status,selectedModel:t.selectedModel,loading:t.loading,downloading:t.downloading,downloadPercent:t.downloadPercent,downloadMessage:t.downloadMessage,setupMessage:t.setupMessage,error:t.error,estimatedMinutes:((i=t.status)==null?void 0:i.estimatedMinutes)??null,onSelectModel:t.selectModel,onDownload:t.startDownload,onSkip:t.skipDownload});case"business_info":return a.jsx(SS,{businessName:t.businessName,businessType:t.businessType,businessDescription:t.businessDescription,onChangeName:t.setBusinessName,onChangeType:t.setBusinessType,onChangeDescription:t.setBusinessDescription,onContinue:t.goToFounderStage,onBack:t.goToModel});case"founder_stage":return a.jsx(ZS,{founderPath:t.founderPath,founderFocus:t.founderFocus,onChangePath:t.setFounderPath,onChangeFocus:t.setFounderFocus,onContinue:t.goToAgentDiscovery,onBack:t.goToBusinessInfo});case"agent_discovery":return a.jsx(CS,{modelAvailable:t.modelAvailable,businessType:t.businessType,founderPath:t.founderPath,founderFocus:t.founderFocus,chatMessages:t.chatMessages,presets:t.presets,discoveredGoal:t.discoveredGoal,onSendMessage:t.sendChatMessage,onContinue:t.goToAgentSelection,onBack:t.goToFounderStage,streaming:t.chatStreaming});case"agent_selection":return a.jsx(HS,{presets:t.presets,selectedIds:t.selectedAgentIds,onToggle:t.toggleAgent,onContinue:t.goToIntegrationSetup,onBack:t.goToAgentDiscovery});case"integration_setup":return a.jsx(VS,{integrations:t.integrations,integrationValues:t.integrationValues,onSetValue:t.setIntegrationValue,onSkipIntegration:t.skipIntegration,skippedIds:t.skippedIntegrationIds,onContinue:t.goToReady,onBack:t.goToAgentSelection});case"ready":return a.jsx(_S,{selectedModel:t.selectedModel,loading:t.loading,error:t.error,onLaunch:l,businessName:t.businessName,agentCount:t.selectedAgentIds.size})}}function we(e,t=[]){const[l,i]=r.useState(null),[o,u]=r.useState(!!e),[d,h]=r.useState(null),[f,p]=r.useState(0),x=r.useCallback(()=>p(g=>g+1),[]);return r.useEffect(()=>{if(!e)return;let g=!1;return u(!0),me(e).then(b=>{g||(i(b.data),h(null))}).catch(b=>{g||h(b.message)}).finally(()=>{g||u(!1)}),()=>{g=!0}},[e,f,...t]),{data:l,loading:o,error:d,refetch:x}}function _t({label:e,value:t,subtitle:l,color:i="text-white"}){return a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:e}),a.jsx("p",{className:`text-2xl font-bold mt-1 ${i}`,children:t}),l&&a.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:l})]})}const V$={idle:"bg-white/5 text-neutral-400",working:"bg-blue-500/15 text-blue-400",completed:"bg-success/15 text-success",approved:"bg-success/15 text-success",in_progress:"bg-blue-500/15 text-blue-400",queued:"bg-warning/15 text-warning",needs_approval:"bg-warning/15 text-warning",failed:"bg-critical/15 text-critical",rejected:"bg-critical/15 text-critical",pending_review:"bg-warning/15 text-warning",delivered:"bg-success/15 text-success",delivery_failed:"bg-critical/15 text-critical",active:"bg-success/15 text-success",paused:"bg-warning/15 text-warning",disabled:"bg-white/5 text-neutral-400",draft:"bg-warning/15 text-warning",archived:"bg-white/5 text-neutral-400",executing:"bg-blue-500/15 text-blue-400",pending:"bg-warning/15 text-warning",error:"bg-critical/15 text-critical",suspended:"bg-warning/15 text-warning",disconnected:"bg-white/5 text-neutral-400",skipped:"bg-white/5 text-neutral-400",read_only:"bg-white/5 text-neutral-400",processed:"bg-success/15 text-success"};function ft({status:e}){const t=V$[e]||"bg-white/5 text-neutral-400",l=e.replace(/_/g," ");return a.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium capitalize ${t}`,children:l})}function tn({className:e=""}){return a.jsx("div",{className:`animate-pulse bg-white/5 rounded ${e}`})}function bi(){return a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 space-y-2",children:[a.jsx(tn,{className:"h-3 w-20"}),a.jsx(tn,{className:"h-7 w-16"})]})}function We({count:e=5}){return a.jsx("div",{className:"space-y-2",children:Array.from({length:e}).map((t,l)=>a.jsx(tn,{className:"h-12 w-full"},l))})}function ze({title:e,subtitle:t,action:l}){return a.jsxs("div",{className:"flex items-center justify-between mb-6",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-2xl font-bold",children:e}),t&&a.jsx("p",{className:"text-sm text-neutral-400 mt-0.5",children:t})]}),l]})}function _$({buckets:e}){const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],l=e?e.map(f=>({label:t[new Date(f.date+"T00:00:00").getDay()],completed:f.completed,failed:f.failed})):[],i=Math.max(1,...l.map(f=>f.completed+f.failed)),o=28,u=12,d=80,h=l.length*(o+u)-u;return e?a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 mb-8",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-3",children:"Task Activity (7 days)"}),a.jsx("div",{className:"flex justify-center",children:a.jsx("svg",{width:h,height:d+20,className:"overflow-visible",children:l.map((f,p)=>{const x=p*(o+u),g=(f.completed+f.failed)/i*d,b=f.completed/i*d,w=f.failed/i*d;return a.jsxs("g",{children:[a.jsx("rect",{x,y:0,width:o,height:d,rx:4,className:"fill-white/[0.03]"}),f.completed>0&&a.jsx("rect",{x,y:d-g,width:o,height:b,rx:4,className:"fill-success/60"}),f.failed>0&&a.jsx("rect",{x,y:d-w,width:o,height:w,rx:4,className:"fill-critical/60"}),a.jsx("text",{x:x+o/2,y:d+14,textAnchor:"middle",className:"fill-neutral-500 text-[10px]",children:f.label}),f.completed+f.failed>0&&a.jsx("text",{x:x+o/2,y:d-g-4,textAnchor:"middle",className:"fill-neutral-400 text-[10px]",children:f.completed+f.failed})]},p)})})}),a.jsxs("div",{className:"flex items-center gap-4 mt-3 justify-center",children:[a.jsxs("span",{className:"flex items-center gap-1.5 text-[10px] text-neutral-500",children:[a.jsx("span",{className:"inline-block w-2 h-2 rounded-sm bg-success/60"})," Completed"]}),a.jsxs("span",{className:"flex items-center gap-1.5 text-[10px] text-neutral-500",children:[a.jsx("span",{className:"inline-block w-2 h-2 rounded-sm bg-critical/60"})," Failed"]})]})]}):a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 mb-8",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-3",children:"Task Activity (7 days)"}),a.jsx("div",{className:"h-[100px] flex items-center justify-center",children:a.jsx("p",{className:"text-xs text-neutral-600",children:"Loading..."})})]})}function T$({agents:e,stats:t}){const l=e?e.filter(u=>u.status==="working").length:0,i=(t==null?void 0:t.completedToday)??0,o=(t==null?void 0:t.successRate)??null;return a.jsxs("div",{className:"flex gap-3 mb-8",children:[a.jsxs("div",{className:"flex-1 border border-white/[0.06] rounded-lg px-4 py-3 bg-white/[0.02]",children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"Working Now"}),a.jsx("p",{className:"text-lg font-semibold text-success mt-0.5",children:l})]}),a.jsxs("div",{className:"flex-1 border border-white/[0.06] rounded-lg px-4 py-3 bg-white/[0.02]",children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"Completed Today"}),a.jsx("p",{className:"text-lg font-semibold text-white mt-0.5",children:i})]}),a.jsxs("div",{className:"flex-1 border border-white/[0.06] rounded-lg px-4 py-3 bg-white/[0.02]",children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"Success Rate"}),a.jsx("p",{className:`text-lg font-semibold mt-0.5 ${o===null?"text-neutral-500":o>=80?"text-success":o>=50?"text-warning":"text-critical"}`,children:o===null?". ":`${o}%`})]})]})}function L$(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:String(e)}const L7={animate:{transition:{staggerChildren:.05}}},k7={initial:{opacity:0,y:8},animate:{opacity:1,y:0}};function k$(){const e=ga(["task:started","task:completed","task:failed"]),{data:t,loading:l}=we("/api/system/stats",[e]),{data:i}=we("/api/agents",[e]),{data:o}=we("/api/tasks?limit=5",[e]);return a.jsxs("div",{className:"p-6 max-w-5xl",children:[a.jsx(ze,{title:"Overview",subtitle:"Runtime at a glance"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-8",children:l?a.jsxs(a.Fragment,{children:[a.jsx(bi,{}),a.jsx(bi,{}),a.jsx(bi,{}),a.jsx(bi,{})]}):t?a.jsxs(a.Fragment,{children:[a.jsx(_t,{label:"Agents",value:t.totalAgents}),a.jsx(_t,{label:"Tasks",value:t.totalTasks,subtitle:`${t.activeTasks} active`}),a.jsx(_t,{label:"Approvals",value:t.pendingApprovals,color:t.pendingApprovals>0?"text-warning":"text-neutral-400"}),a.jsx(_t,{label:"Tokens",value:L$(t.totalTokens),subtitle:`$${(t.totalCostCents/100).toFixed(2)}`})]}):null}),a.jsx(_$,{buckets:(t==null?void 0:t.dayBuckets7d)??null}),a.jsx(T$,{agents:i,stats:t}),a.jsxs("div",{className:"mb-8",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider",children:"Agents"}),a.jsx(Be,{to:"/agents",className:"text-xs text-neutral-400 hover:text-white transition-colors",children:"View all"})]}),i!=null&&i.length?a.jsx(Ve.div,{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",variants:L7,initial:"initial",animate:"animate",children:i.slice(0,8).map(u=>{var d;return a.jsx(Ve.div,{variants:k7,children:a.jsxs(Be,{to:`/agents/${u.id}`,className:"block border border-white/[0.08] rounded-lg p-4 hover:bg-white/[0.02] transition-colors",children:[a.jsx("div",{className:"w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-xs font-bold mb-3",children:(d=u.name[0])==null?void 0:d.toUpperCase()}),a.jsx("p",{className:"text-sm font-medium truncate",children:u.name}),a.jsx("p",{className:"text-xs text-neutral-500 truncate mt-0.5",children:u.role}),a.jsx("div",{className:"mt-2",children:a.jsx(ft,{status:u.status})})]})},u.id)})}):a.jsx(We,{count:2})]}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider",children:"Recent Tasks"}),a.jsx(Be,{to:"/tasks",className:"text-xs text-neutral-400 hover:text-white transition-colors",children:"View all"})]}),o!=null&&o.length?a.jsx(Ve.div,{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",variants:L7,initial:"initial",animate:"animate",children:o.map(u=>a.jsx(Ve.div,{variants:k7,children:a.jsxs(Be,{to:`/tasks/${u.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[a.jsxs("div",{className:"min-w-0 mr-3",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:u.title}),a.jsx("p",{className:"text-xs text-neutral-500",children:new Date(u.created_at).toLocaleString()})]}),a.jsx(ft,{status:u.status})]})},u.id))}):a.jsx(We,{count:3})]})]})}function bt({icon:e,title:t,description:l,action:i}){return a.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center border border-white/[0.08] bg-white/[0.02] rounded-lg",children:[e&&a.jsx("div",{className:"text-neutral-500 mb-3",children:e}),a.jsx("p",{className:"text-sm font-medium text-neutral-200",children:t}),l&&a.jsx("p",{className:"text-xs text-neutral-400 mt-1 max-w-xs",children:l}),i&&a.jsx("div",{className:"mt-4",children:i})]})}function va({open:e,onClose:t,title:l,children:i,maxWidth:o="max-w-md"}){const u=r.useCallback(d=>{d.key==="Escape"&&t()},[t]);return r.useEffect(()=>{if(e)return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[e,u]),a.jsx(pa,{children:e&&a.jsx(Ve.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50 p-4",onClick:t,children:a.jsxs(Ve.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{duration:.15,ease:"easeOut"},className:`bg-neutral-950 border border-white/10 rounded-lg w-full ${o} max-h-[85vh] overflow-y-auto`,onClick:d=>d.stopPropagation(),children:[l&&a.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-white/10",children:[a.jsx("h3",{className:"text-sm font-semibold",children:l}),a.jsx("button",{onClick:t,className:"text-neutral-400 hover:text-white text-xs transition-colors",children:"Close"})]}),a.jsx("div",{className:"p-6",children:i})]})})})}const R$={1:{label:"L1",title:"Observer. every non-informational action needs approval"},2:{label:"L2",title:"Supervised. deliverable outputs need approval"},3:{label:"L3",title:"Trusted. approvals only on verifier escalations"},4:{label:"L4",title:"Autonomous. no approval gates"}};function u1(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return{}}return e||{}}function D$(e){const t=/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"),l=Date.now()-t.getTime();if(l<0)return"now";const i=Math.floor(l/6e4);if(i<60)return`${Math.max(1,i)}m`;const o=Math.floor(i/60);return o<24?`${o}h`:`${Math.floor(o/24)}d`}const O$={animate:{transition:{staggerChildren:.04}}},F$={initial:{opacity:0,y:8},animate:{opacity:1,y:0}};function z$(){const e=ga(["task:started","task:completed"]),{data:t,loading:l,refetch:i}=we("/api/agents",[e]),[o,u]=r.useState(!1),[d,h]=r.useState(""),[f,p]=r.useState("recent"),x=r.useMemo(()=>{if(!t)return[];let g=t;if(d.trim()){const w=d.toLowerCase();g=g.filter(N=>N.name.toLowerCase().includes(w)||N.role.toLowerCase().includes(w)||(N.description||"").toLowerCase().includes(w))}const b=[...g];return f==="name"?b.sort((w,N)=>w.name.localeCompare(N.name)):f==="tasks"?b.sort((w,N)=>(u1(N.stats).total_tasks||0)-(u1(w.stats).total_tasks||0)):b.sort((w,N)=>{const E=u1(w.stats).last_task_at||"",j=u1(N.stats).last_task_at||"";return!E&&!j?w.name.localeCompare(N.name):E?j?j.localeCompare(E):-1:1}),b},[t,d,f]);return a.jsxs("div",{className:"p-6 max-w-5xl",children:[a.jsx(ze,{title:"Agents",subtitle:"Your AI team",action:l?null:a.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:[a.jsx(Mt,{size:14,weight:"bold"}),"Create agent"]})}),l?a.jsx(We,{count:4}):t!=null&&t.length?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsxs("div",{className:"relative flex-1 max-w-sm",children:[a.jsx(xa,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:d,onChange:g=>h(g.target.value),placeholder:"Search by name, role, description...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("select",{value:f,onChange:g=>p(g.target.value),className:"bg-white/5 border border-white/10 rounded-lg px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"recent",children:"Most recent"}),a.jsx("option",{value:"tasks",children:"Most tasks"}),a.jsx("option",{value:"name",children:"Alphabetical"})]}),a.jsxs("span",{className:"text-xs text-neutral-500",children:[x.length," of ",t.length]})]}),a.jsx(Ve.div,{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",variants:O$,initial:"initial",animate:"animate",children:x.map(g=>{var E;const b=u1(g.stats),w=g.autonomy_level?R$[g.autonomy_level]:null,N=b.last_task_at;return a.jsx(Ve.div,{variants:F$,children:a.jsxs(Be,{to:`/agents/${g.id}`,className:"block border border-white/[0.08] rounded-lg p-4 hover:bg-white/[0.02] transition-colors h-full",children:[a.jsxs("div",{className:"flex items-start justify-between mb-3",children:[a.jsx("div",{className:"w-9 h-9 rounded-full bg-white/10 flex items-center justify-center text-sm font-bold",children:(E=g.name[0])==null?void 0:E.toUpperCase()}),a.jsxs("div",{className:"flex items-center gap-1.5",children:[g.paused===1&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-warning/10 text-warning",children:"paused"}),w&&a.jsx("span",{title:w.title,className:"text-[10px] px-1.5 py-0.5 rounded bg-white/5 text-neutral-400",children:w.label}),a.jsx(ft,{status:g.status})]})]}),a.jsx("p",{className:"text-sm font-medium truncate",children:g.name}),a.jsx("p",{className:"text-xs text-neutral-500 truncate mt-0.5",children:g.role}),a.jsxs("div",{className:"flex items-center justify-between mt-2",children:[a.jsxs("p",{className:"text-xs text-neutral-600",children:[b.total_tasks||0," ",b.total_tasks===1?"task":"tasks"]}),N&&a.jsx("p",{className:"text-[10px] text-neutral-600",children:D$(N)})]})]})},g.id)})})]}):a.jsx(bt,{icon:a.jsx(on,{size:32}),title:"No agents yet",description:"Create your first agent to get started.",action:a.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"})}),a.jsx($$,{open:o,onClose:()=>u(!1),onCreated:()=>{u(!1),i()}})]})}function $$({open:e,onClose:t,onCreated:l}){const[i,o]=r.useState(""),[u,d]=r.useState(""),[h,f]=r.useState(""),[p,x]=r.useState(""),[g,b]=r.useState(!1),[w,N]=r.useState(""),E=async j=>{if(j.preventDefault(),!i.trim()||!u.trim()||!h.trim()){N("Name, role, and system prompt are required.");return}b(!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(A){N(A instanceof Error?A.message:"Couldn't create agent. Try again?")}finally{b(!1)}};return a.jsx(va,{open:e,onClose:t,title:"Create agent",children:a.jsxs("form",{onSubmit:E,className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"Name"}),a.jsx("input",{type:"text",value:i,onChange:j=>o(j.target.value),placeholder:"e.g. Scout",className:"w-full px-3 py-2 text-sm bg-white/5 border border-white/10 rounded-md focus:outline-none focus:border-white/20",autoFocus:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"Role"}),a.jsx("input",{type:"text",value:u,onChange:j=>d(j.target.value),placeholder:"e.g. Sales Development",className:"w-full px-3 py-2 text-sm bg-white/5 border border-white/10 rounded-md focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"System Prompt"}),a.jsx("textarea",{value:h,onChange:j=>f(j.target.value),placeholder:"Describe what this agent does and how it should behave...",rows:4,className:"w-full px-3 py-2 text-sm bg-white/5 border border-white/10 rounded-md focus:outline-none focus:border-white/20 resize-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"Description (optional)"}),a.jsx("input",{type:"text",value:p,onChange:j=>x(j.target.value),placeholder:"Short description for the agent list",className:"w-full px-3 py-2 text-sm bg-white/5 border border-white/10 rounded-md focus:outline-none focus:border-white/20"})]}),w&&a.jsx("p",{className:"text-xs text-critical",children:w}),a.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[a.jsx("button",{type:"button",onClick:t,className:"px-3 py-1.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:g,className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:g?"Creating...":"Create"})]})]})})}function _1({checked:e,onChange:t,disabled:l=!1,size:i="md"}){const o=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 a.jsx("button",{type:"button",role:"switch","aria-checked":e,onClick:()=>!l&&t(!e),disabled:l,className:`relative ${o.track} rounded-full transition-colors disabled:opacity-50 ${e?"bg-success/30":"bg-white/10"}`,children:a.jsx("span",{className:`absolute top-0.5 left-0.5 ${o.thumb} rounded-full transition-transform ${e?`${o.translate} bg-success`:"translate-x-0 bg-neutral-400"}`})})}function q1({tabs:e,activeTab:t,onTabChange:l,layoutId:i="tab-underline"}){return a.jsx("div",{className:"flex gap-1 border-b border-white/[0.08]",children:e.map(o=>{const u=o.id===t;return a.jsxs("button",{onClick:()=>l(o.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:[a.jsxs("span",{className:"relative z-10 flex items-center gap-2",children:[o.label,o.count!=null&&a.jsx("span",{className:"text-[10px] bg-white/10 px-1.5 py-0.5 rounded-full min-w-[18px] text-center",children:o.count})]}),u&&a.jsx(Ve.div,{layoutId:i,className:"absolute bottom-0 left-0 right-0 h-0.5 bg-white",transition:{type:"spring",stiffness:350,damping:30}})]},o.id)})})}const q$=[{id:"development",label:"Development"},{id:"files",label:"Files"},{id:"databases",label:"Databases"},{id:"apis",label:"APIs"},{id:"communication",label:"Communication"}],I$=[{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"}],R7={name:"",transport:"stdio",command:"",args:"",env:"",url:""};function TS({servers:e,onChange:t,disabled:l}){const[i,o]=r.useState(!1),[u,d]=r.useState(R7),[h,f]=r.useState(""),[p,x]=r.useState(null),[g,b]=r.useState({}),[w,N]=r.useState(null),[E,j]=r.useState("popular"),A=()=>{d(R7),f(""),j("popular"),o(!0)},Z=()=>{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(V=>V.name===u.name.trim())){f("A server with that name already exists");return}const T=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()?B$(u.env.trim()):void 0}:{name:u.name.trim(),transport:"http",url:u.url.trim()};t([...e,T]),o(!1)},M=T=>{t(e.filter(V=>V.name!==T))},S=async T=>{if(!p){x(T.name);try{const H=await(await fetch("/api/mcp/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(T)})).json();H.success?(de.success(`Connected. ${H.tools.length===1?"1 tool":`${H.tools.length} tools`} found in ${H.latencyMs}ms`),b(L=>({...L,[T.name]:H.tools})),N(T.name)):de.error(H.error||"Couldn't connect to this server. Try again?")}catch{de.error("Couldn't reach the daemon to test the connection")}finally{x(null)}}},_=T=>{N(V=>V===T?null:T)};return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"mt-4",children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsx("h3",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider",children:"MCP Servers"}),a.jsx("button",{onClick:A,disabled:l,className:"text-xs text-white hover:text-white/80 disabled:opacity-50 transition-colors",children:"+ Add"})]}),e.length===0?a.jsx("p",{className:"text-xs text-neutral-400 py-2",children:"No MCP servers yet. Add one to extend what this agent can do."}):a.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(T=>{var D;const V=g[T.name],H=w===T.name,L=p===T.name;return a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{className:"min-w-0 mr-3 flex items-center gap-2",children:[V&&V.length>0&&a.jsx("button",{onClick:()=>_(T.name),className:"text-neutral-400 hover:text-white transition-colors shrink-0",children:H?a.jsx(Ya,{size:12}):a.jsx(is,{size:12})}),a.jsx("span",{className:"text-sm font-medium",children:T.name}),a.jsx("span",{className:"text-xs text-neutral-400",children:T.transport==="stdio"?`stdio · ${T.command}${(D=T.args)!=null&&D.length?" "+T.args.join(" "):""}`:`http · ${T.url}`}),V&&a.jsx("span",{className:"text-xs text-neutral-500",children:V.length===1?"1 tool":`${V.length} tools`})]}),a.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[a.jsx("button",{onClick:()=>S(T),disabled:l||L,className:`text-neutral-400 hover:text-uplink transition-colors disabled:opacity-50 ${L?"animate-pulse":""}`,title:"Test connection",children:a.jsx(sa,{size:14,weight:L?"fill":"bold"})}),a.jsx("button",{onClick:()=>M(T.name),disabled:l,className:"text-neutral-400 hover:text-error transition-colors disabled:opacity-50",children:a.jsx(Yt,{size:14})})]})]}),H&&V&&V.length>0&&a.jsx("div",{className:"px-4 pb-3 pl-10",children:a.jsx("div",{className:"bg-white/[0.03] rounded-md border border-white/[0.06] divide-y divide-white/[0.06]",children:V.map(B=>a.jsxs("div",{className:"px-3 py-2",children:[a.jsx("span",{className:"text-xs font-mono text-white/80",children:B.name}),B.description&&a.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:B.description})]},B.name))})})]},T.name)})})]}),a.jsx(va,{open:i,onClose:()=>o(!1),title:"Add MCP Server",maxWidth:"max-w-lg",children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex gap-1 bg-white/[0.04] rounded-md p-0.5",children:[a.jsx("button",{onClick:()=>j("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"}),a.jsx("button",{onClick:()=>j("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"&&a.jsx("div",{className:"space-y-4",children:q$.map(T=>{const V=I$.filter(H=>H.category===T.id);return V.length===0?null:a.jsxs("div",{children:[a.jsx("h4",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider mb-2",children:T.label}),a.jsx("div",{className:"grid grid-cols-2 gap-2",children:V.map(H=>{const L=e.some(D=>D.name===H.name);return a.jsxs("button",{onClick:()=>{L||(d({name:H.name,transport:H.transport,command:H.command,args:H.args.join(" "),env:H.envVarsRequired.map(D=>`${D.key}=`).join(`
|
|
72
|
-
`),url:""}),f(""),j("custom"))},disabled:L,className:`text-left p-3 rounded-lg border transition-colors ${L?"border-white/[0.06] bg-white/[0.02] opacity-50 cursor-not-allowed":"border-white/[0.08] bg-white/[0.04] hover:border-white/20 hover:bg-white/[0.06]"}`,children:[a.jsxs("div",{className:"flex items-start justify-between gap-1",children:[a.jsx("span",{className:"text-sm font-medium",children:H.name}),a.jsx("span",{className:"text-[10px] text-neutral-500 bg-white/[0.06] px-1.5 py-0.5 rounded shrink-0",children:T.label})]}),a.jsx("p",{className:"text-xs text-neutral-400 mt-1",children:H.description}),L&&a.jsx("p",{className:"text-[10px] text-neutral-500 mt-1",children:"Already added"})]},H.id)})})]},T.id)})}),E==="custom"&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Name"}),a.jsx("input",{value:u.name,onChange:T=>d(V=>({...V,name:T.target.value})),placeholder:"e.g. filesystem",className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Transport"}),a.jsxs("select",{value:u.transport,onChange:T=>d(V=>({...V,transport:T.target.value})),className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"stdio",children:"stdio (subprocess on this machine)"}),a.jsx("option",{value:"http",children:"http (remote server via URL)"})]})]}),u.transport==="stdio"?a.jsxs(a.Fragment,{children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Command"}),a.jsx("input",{value:u.command,onChange:T=>d(V=>({...V,command:T.target.value})),placeholder:"e.g. npx",className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Args (space-separated)"}),a.jsx("input",{value:u.args,onChange:T=>d(V=>({...V,args:T.target.value})),placeholder:"e.g. -y @modelcontextprotocol/server-filesystem /tmp",className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Env vars (optional, KEY=VALUE one per line)"}),a.jsx("textarea",{value:u.env,onChange:T=>d(V=>({...V,env:T.target.value})),placeholder:"MY_KEY=value",rows:3,className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20 resize-none"})]})]}):a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"URL"}),a.jsx("input",{value:u.url,onChange:T=>d(V=>({...V,url:T.target.value})),placeholder:"e.g. http://localhost:5173/sse",className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20"})]}),h&&a.jsx("p",{className:"text-xs text-error",children:h}),a.jsxs("div",{className:"flex justify-end gap-2",children:[a.jsx("button",{onClick:()=>o(!1),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{onClick:Z,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 B$(e){const t={};for(const l of e.split(`
|
|
73
|
-
`)){const i=l.trim();if(!i)continue;const o=i.indexOf("=");o>0&&(t[i.slice(0,o)]=i.slice(o+1))}return t}function D7(e){const t=Date.now()-new Date(e).getTime(),l=Math.floor(t/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 P$=[{id:"overview",label:"Overview"},{id:"tasks",label:"Tasks"},{id:"activity",label:"Activity"},{id:"performance",label:"Performance"},{id:"config",label:"Config"}];function U$(){var Tt;const{id:e}=L1(),t=ga(["task:started","task:completed","task:failed"]),{data:l,loading:i,refetch:o}=we(e?`/api/agents/${e}`:null,[t]),{data:u}=we(e?`/api/agents/${e}/memory`:null),{data:d}=we(e?`/api/tasks?agentId=${e}&limit=50`:null,[t]),{data:h}=we("/api/activity",[t]),f=r.useMemo(()=>!h||!e?[]:h.filter(ie=>ie.agent_id===e),[h,e]),p=r.useMemo(()=>{if(!(d!=null&&d.length))return null;const ie=d.filter(Ue=>Ue.status==="completed").length,pt=d.filter(Ue=>Ue.status==="failed").length,Oe=ie+pt>0?ie/(ie+pt):0,ut=d.filter(Ue=>Ue.duration_seconds!=null).map(Ue=>Ue.duration_seconds),yt=ut.length>0?ut.reduce((Ue,Lt)=>Ue+Lt,0)/ut.length:0,rt=d.reduce((Ue,Lt)=>Ue+(Lt.tokens_used||0),0),je=d.reduce((Ue,Lt)=>Ue+(Lt.cost_cents||0),0),et=d.length>0?Math.round(rt/d.length):0;return{completed:ie,failed:pt,successRate:Oe,avgDuration:yt,totalTokens:rt,totalCostCents:je,avgTokens:et}},[d]),[x,g]=r.useState("overview"),[b,w]=r.useState(!1),[N,E]=r.useState([]),[j,A]=r.useState(!1),[Z,M]=r.useState(!1),[S,_]=r.useState([]),[T,V]=r.useState(!1),[H,L]=r.useState(!1),[D,B]=r.useState([]),[K,J]=r.useState(!1),[se,le]=r.useState(0),[O,q]=r.useState(0),[I,Y]=r.useState(0);r.useEffect(()=>{me("/api/voice/health").then(()=>(w(!0),me("/api/voice/profiles"))).then(ie=>E(ie.data||[])).catch(()=>w(!1))},[]);const X=r.useMemo(()=>l?typeof l.config=="string"?JSON.parse(l.config):l.config||{}:{},[l]),k=r.useMemo(()=>l?typeof l.stats=="string"?JSON.parse(l.stats):l.stats||{}:{},[l]);r.useEffect(()=>{L(X.mcp_enabled===!0),B(Array.isArray(X.mcp_servers)?X.mcp_servers:[])},[X]),r.useEffect(()=>{if(l!=null&&l.autonomy_budget)try{const ie=JSON.parse(l.autonomy_budget);le(ie.perTaskCents||0),q(ie.dailyCents||0),Y(ie.monthlyCents||0)}catch{}},[l==null?void 0:l.autonomy_budget]);const U=X.local_files_enabled===!0&&X.bash_enabled===!0,[W,$]=r.useState([]),[F,z]=r.useState(""),[ae,fe]=r.useState("");r.useEffect(()=>{e&&me(`/api/agents/${e}/file-access`).then(ie=>$(ie.data||[])).catch(()=>{})},[e,X]);const pe=async()=>{if(!(!e||!F.trim())){fe("");try{await me(`/api/agents/${e}/file-access`,{method:"POST",body:JSON.stringify({path:F.trim()})});const ie=await me(`/api/agents/${e}/file-access`);$(ie.data||[]),z("")}catch(ie){fe(ie instanceof Error?ie.message:"Could not add path")}}},Ee=async ie=>{if(e)try{await me(`/api/agents/${e}/file-access/${ie}`,{method:"DELETE"}),$(pt=>pt.filter(Oe=>Oe.id!==ie))}catch{}},Me=r.useMemo(()=>[{key:"model",label:"Model",value:"router (auto)"},{key:"temperature",label:"Temperature",value:String(X.temperature??"0.7")},{key:"max_tokens",label:"Max tokens",value:String(X.max_tokens||"4096")},{key:"requires_approval",label:"Requires approval",value:String(X.requires_approval??"no")},{key:"web_search",label:"Web search",value:String(X.web_search??"no")},{key:"device_access",label:"Device access",value:U?"yes":"no"}],[X,U]),_e=r.useCallback(async ie=>{if(e){A(!0);try{await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({voice_profile_id:ie||null})}),o()}catch{}finally{A(!1)}}},[e,o]),Pe=r.useCallback(async()=>{if(!e||!l)return;const ie=l.status==="paused"?"idle":"paused";try{await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({status:ie})}),o()}catch{}},[e,l,o]),Te=r.useCallback(()=>{_(Me.map(ie=>({...ie}))),M(!0)},[Me]),Ae=r.useCallback(async()=>{if(e){V(!0);try{const ie={};for(const Oe of S){if(Oe.key==="device_access"){const ut=Oe.value==="true"||Oe.value==="yes";ie.local_files_enabled=ut,ie.bash_enabled=ut;continue}Oe.value==="true"||Oe.value==="yes"?ie[Oe.key]=!0:Oe.value==="false"||Oe.value==="no"?ie[Oe.key]=!1:!isNaN(Number(Oe.value))&&Oe.value!==""?ie[Oe.key]=Number(Oe.value):ie[Oe.key]=Oe.value}const pt=se||O||I?JSON.stringify({perTaskCents:se,dailyCents:O,monthlyCents:I,warnAt:.8}):null;await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({config:ie,autonomy_budget:pt})}),M(!1),o()}catch{}finally{V(!1)}}},[e,S,se,O,I,o]),$t=r.useCallback(async(ie,pt)=>{if(e){J(!0);try{await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({config:{...X,mcp_enabled:ie,mcp_servers:pt}})}),o()}catch{}finally{J(!1)}}},[e,X,o]);if(i)return a.jsx("div",{className:"p-6",children:a.jsx(We,{count:4})});if(!l)return a.jsx("div",{className:"p-6 text-neutral-400",children:"Agent not found"});const Ze=P$.map(ie=>({...ie,count:ie.id==="tasks"?d==null?void 0:d.length:void 0}));return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsxs(Be,{to:"/agents",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4 transition-colors",children:[a.jsx(ls,{size:14})," Back to agents"]}),a.jsx(ze,{title:l.name,subtitle:l.role,action:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("button",{onClick:Pe,className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-md border transition-colors ${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"?a.jsx(Nf,{size:14}):a.jsx($z,{size:14}),l.status==="paused"?"Resume":"Pause"]}),a.jsx(ft,{status:l.status})]})}),l.description&&a.jsx("p",{className:"text-sm text-neutral-400 mb-4",children:l.description}),a.jsx(q1,{tabs:Ze,activeTab:x,onTabChange:ie=>{g(ie),M(!1)},layoutId:"agent-detail-tab"}),a.jsxs("div",{className:"mt-6",children:[x==="overview"&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[a.jsx(_t,{label:"Tasks",value:k.total_tasks||0}),a.jsx(_t,{label:"Tokens",value:((Tt=k.tokens_used)==null?void 0:Tt.toLocaleString())||"0"}),a.jsx(_t,{label:"Cost",value:`$${((k.cost_cents||0)/100).toFixed(2)}`})]}),b&&a.jsxs(a.Fragment,{children:[a.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Voice"}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg px-4 py-3 mb-8",children:a.jsxs("label",{className:"flex items-center justify-between gap-4",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium",children:"Voice profile"}),a.jsx("p",{className:"text-xs text-neutral-500",children:"Choose which voice this agent uses during calls"})]}),a.jsxs("select",{value:l.voice_profile_id||"",onChange:ie=>_e(ie.target.value),disabled:j,className:"bg-black border border-white/10 rounded-md px-3 py-1.5 text-sm min-w-[180px]",children:[a.jsx("option",{value:"",children:"Default voice"}),N.map(ie=>a.jsx("option",{value:ie.id,children:ie.name},ie.id))]})]})})]}),a.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Memory"}),u!=null&&u.length?a.jsx("div",{className:"space-y-2",children:u.map(ie=>a.jsxs("div",{className:"border border-white/[0.08] rounded-lg px-4 py-3",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx("span",{className:"text-xs text-white font-medium",children:ie.memory_type}),a.jsx("span",{className:"text-xs text-neutral-500",children:new Date(ie.created_at).toLocaleDateString()})]}),a.jsx("p",{className:"text-sm text-neutral-300",children:ie.content})]},ie.id))}):a.jsx("p",{className:"text-sm text-neutral-500",children:"No memories yet. This agent will learn from completed tasks."}),l.system_prompt&&a.jsxs(a.Fragment,{children:[a.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3 mt-8",children:"System Prompt"}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:a.jsx("pre",{className:"text-sm whitespace-pre-wrap break-words text-neutral-300 max-h-[40vh] overflow-y-auto leading-relaxed",children:l.system_prompt})})]})]}),x==="tasks"&&a.jsx(a.Fragment,{children:d!=null&&d.length?a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:d.map(ie=>a.jsxs(Be,{to:`/tasks/${ie.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[a.jsxs("div",{className:"min-w-0 mr-3",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:ie.title}),a.jsx("p",{className:"text-xs text-neutral-500",children:D7(ie.created_at)})]}),a.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[ie.tokens_used?a.jsxs("span",{className:"text-xs text-neutral-500",children:[ie.tokens_used.toLocaleString()," tok"]}):null,ie.priority&&a.jsx("span",{className:"text-xs text-warning",children:ie.priority}),a.jsx(ft,{status:ie.status})]})]},ie.id))}):a.jsx(bt,{icon:a.jsx(H1,{size:32}),title:"No tasks yet",description:"Tasks will appear here as this agent works."})}),x==="activity"&&a.jsx(a.Fragment,{children:f.length?a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:f.map(ie=>a.jsxs("div",{className:"flex items-start gap-3 px-4 py-3",children:[a.jsxs("div",{className:"mt-0.5",children:[ie.activity_type==="task_completed"&&a.jsx(v0,{size:16,weight:"fill",className:"text-success"}),ie.activity_type==="task_failed"&&a.jsx(os,{size:16,weight:"fill",className:"text-critical"}),ie.activity_type==="task_started"&&a.jsx(ct,{size:16,className:"text-white animate-spin"}),!["task_completed","task_failed","task_started"].includes(ie.activity_type)&&a.jsx(Kr,{size:16,className:"text-neutral-400"})]}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"text-sm font-medium truncate",children:ie.title}),a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/5 text-neutral-500 shrink-0",children:ie.activity_type.replace(/_/g," ")})]}),ie.description&&a.jsx("p",{className:"text-xs text-neutral-500 mt-0.5 truncate",children:ie.description}),a.jsx("p",{className:"text-xs text-neutral-600 mt-1",children:D7(ie.created_at)})]})]},ie.id))}):a.jsx(bt,{icon:a.jsx(Kr,{size:32}),title:"No activity yet",description:"Activity will appear here as this agent works on tasks."})}),x==="performance"&&a.jsx(a.Fragment,{children:p?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-6",children:[a.jsx(_t,{label:"Success rate",value:`${(p.successRate*100).toFixed(0)}%`}),a.jsx(_t,{label:"Avg duration",value:p.avgDuration>0?`${p.avgDuration.toFixed(1)}s`:"N/A"}),a.jsx(_t,{label:"Total tokens",value:p.totalTokens.toLocaleString()})]}),a.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[a.jsx(_t,{label:"Total cost",value:`$${(p.totalCostCents/100).toFixed(2)}`}),a.jsx(_t,{label:"Avg tokens/task",value:p.avgTokens.toLocaleString()}),a.jsx(_t,{label:"Tasks evaluated",value:p.completed+p.failed})]}),a.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Task outcomes"}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:a.jsx("svg",{viewBox:"0 0 300 80",className:"w-full max-w-sm",role:"img","aria-label":"Task outcome chart",children:(()=>{const ie=p.completed+p.failed;if(ie===0)return null;const pt=p.completed/ie*260,Oe=p.failed/ie*260;return a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:20,y:10,width:pt,height:24,rx:4,fill:"#22c55e"}),a.jsxs("text",{x:20,y:52,className:"text-[10px]",fill:"#a3a3a3",fontSize:"10",children:["Completed: ",p.completed]}),a.jsx("rect",{x:20,y:56,width:Oe,height:24,rx:4,fill:"#ef4444"}),a.jsxs("text",{x:20+Oe+8,y:72,className:"text-[10px]",fill:"#a3a3a3",fontSize:"10",children:["Failed: ",p.failed]})]})})()})})]}):a.jsx(bt,{icon:a.jsx(Kr,{size:32}),title:"No performance data",description:"Complete some tasks first to see performance metrics."})}),x==="config"&&!Z&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[Me.map(ie=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsx("span",{className:"text-sm text-neutral-400",children:ie.label}),a.jsx("span",{className:"text-sm font-medium",children:ie.value})]},ie.key)),a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-sm text-neutral-400",children:"MCP tools"}),a.jsx("p",{className:"text-xs text-neutral-600",children:"Allow this agent to use MCP servers"})]}),a.jsx(_1,{checked:H,onChange:async ie=>{L(ie),await $t(ie,D)},disabled:K,size:"sm"})]}),a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-sm text-neutral-400",children:"Device access"}),a.jsx("p",{className:"text-xs text-neutral-600",children:"Allow filesystem and shell access to local directories"})]}),a.jsx(_1,{checked:U,onChange:async ie=>{if(e)try{await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({config:{...X,local_files_enabled:ie,bash_enabled:ie}})}),o()}catch{}},size:"sm"})]})]}),H&&a.jsx(TS,{servers:D,onChange:async ie=>{B(ie),await $t(H,ie)},disabled:K}),U&&a.jsxs("div",{className:"mt-4",children:[a.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Allowed directories"}),W.length>0?a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:W.map(ie=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5",children:[a.jsx("code",{className:"text-sm text-neutral-300",children:ie.path}),a.jsx("button",{onClick:()=>Ee(ie.id),className:"text-xs text-neutral-500 hover:text-red-400 transition-colors",children:"Remove"})]},ie.id))}):a.jsx("p",{className:"text-sm text-neutral-500 mb-3",children:"No directories configured yet."}),a.jsxs("div",{className:"flex gap-2 mt-3",children:[a.jsx("input",{value:F,onChange:ie=>{z(ie.target.value),fe("")},onKeyDown:ie=>{ie.key==="Enter"&&pe()},placeholder:"~/projects/myapp",className:"flex-1 bg-white/5 border border-white/10 rounded-md px-3 py-1.5 text-sm text-white placeholder:text-neutral-600 focus:outline-none focus:border-white/20"}),a.jsx("button",{onClick:pe,className:"px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-md hover:bg-white/10 transition-colors",children:"Add path"})]}),ae&&a.jsx("p",{className:"text-xs text-red-400 mt-1",children:ae})]}),a.jsxs("div",{className:"mt-6 border-t border-zinc-800 pt-4",children:[a.jsx("h4",{className:"text-sm font-medium text-zinc-400 mb-1",children:"Budget Limits"}),a.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Cost caps for external API providers. Local models are always unlimited."}),a.jsx("div",{className:"text-sm text-zinc-400",children:se||O||I?a.jsxs("div",{className:"flex gap-4",children:[se>0&&a.jsxs("span",{children:["Per task: ",se,"c"]}),O>0&&a.jsxs("span",{children:["Daily: ",O,"c"]}),I>0&&a.jsxs("span",{children:["Monthly: ",I,"c"]})]}):a.jsx("span",{className:"text-zinc-600",children:"No budget limits set"})})]}),a.jsx("div",{className:"mt-4",children:a.jsxs("button",{onClick:Te,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-md hover:bg-white/10 transition-colors",children:[a.jsx(Tz,{size:14})," Edit config"]})})]}),x==="config"&&Z&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:S.map((ie,pt)=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsx("label",{className:"text-sm text-neutral-400",htmlFor:`config-${ie.key}`,children:ie.label}),a.jsx("input",{id:`config-${ie.key}`,value:ie.value,onChange:Oe=>{const ut=[...S];ut[pt]={...ie,value:Oe.target.value},_(ut)},className:"bg-white/5 border border-white/10 rounded px-3 py-1.5 text-sm text-white text-right w-48 focus:outline-none focus:border-white/20"})]},ie.key))}),a.jsxs("div",{className:"mt-6 border-t border-zinc-800 pt-4",children:[a.jsx("h4",{className:"text-sm font-medium text-zinc-400 mb-1",children:"Budget Limits"}),a.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Cost caps for external API providers. Local models are always unlimited."}),a.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-zinc-500 block mb-1",children:"Per task (cents)"}),a.jsx("input",{type:"number",min:"0",value:se,onChange:ie=>le(Number(ie.target.value)),className:"w-full bg-zinc-900 border border-zinc-700 rounded px-2 py-1.5 text-sm text-zinc-200"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-zinc-500 block mb-1",children:"Daily (cents)"}),a.jsx("input",{type:"number",min:"0",value:O,onChange:ie=>q(Number(ie.target.value)),className:"w-full bg-zinc-900 border border-zinc-700 rounded px-2 py-1.5 text-sm text-zinc-200"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-zinc-500 block mb-1",children:"Monthly (cents)"}),a.jsx("input",{type:"number",min:"0",value:I,onChange:ie=>Y(Number(ie.target.value)),className:"w-full bg-zinc-900 border border-zinc-700 rounded px-2 py-1.5 text-sm text-zinc-200"})]})]})]}),a.jsxs("div",{className:"flex gap-2 mt-4",children:[a.jsx("button",{onClick:()=>M(!1),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{onClick:Ae,disabled:T,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:T?"Saving...":"Save config"})]})]})]})]})}const G$=["all","pending","in_progress","needs_approval","approved","completed","failed"],yi=50,Y$=["all","pending_review","approved","delivered","rejected"],O7={urgent:0,high:1,normal:2,low:3},F7={in_progress:0,pending:1,needs_approval:2,completed:3,failed:4};function K$(){const e=ga(["task:started","task:completed","task:failed"]),[t,l]=r.useState("tasks"),[i,o]=r.useState("all"),[u,d]=r.useState("all"),[h,f]=r.useState(!1),[p,x]=r.useState(""),[g,b]=r.useState("date"),{data:w}=we("/api/agents"),[N,E]=r.useState(null),[j,A]=r.useState(0),[Z,M]=r.useState(!0),[S,_]=r.useState(!1),T=r.useCallback(k=>{const U=[`limit=${yi}`,`offset=${k}`];return i!=="all"&&U.push(`status=${i}`),`/api/tasks?${U.join("&")}`},[i]);r.useEffect(()=>{let k=!1;return M(!0),me(T(0)).then(U=>{k||(E(U.data),A(U.total))}).catch(()=>{k||(E([]),A(0))}).finally(()=>{k||M(!1)}),()=>{k=!0}},[T,e]);const V=r.useCallback(()=>{me(T(0)).then(k=>{E(k.data),A(k.total)}).catch(()=>{})},[T]),H=async()=>{if(!(!N||S||N.length>=j)){_(!0);try{const k=await me(T(N.length));E([...N,...k.data]),A(k.total)}finally{_(!1)}}},[L,D]=r.useState(null),[B,K]=r.useState(0),[J,se]=r.useState(!1),[le,O]=r.useState(!1),q=r.useCallback(k=>{const U=[`limit=${yi}`,`offset=${k}`];return u!=="all"&&U.push(`status=${u}`),`/api/deliverables?${U.join("&")}`},[u]);r.useEffect(()=>{if(t!=="deliverables")return;let k=!1;return se(!0),me(q(0)).then(U=>{k||(D(U.data),K(U.total))}).catch(()=>{k||(D([]),K(0))}).finally(()=>{k||se(!1)}),()=>{k=!0}},[q,t,e]);const I=async()=>{if(!(!L||le||L.length>=B)){O(!0);try{const k=await me(q(L.length));D([...L,...k.data]),K(k.total)}finally{O(!1)}}},Y=r.useMemo(()=>{const k=new Map;return w==null||w.forEach(U=>k.set(U.id,U.name)),k},[w]),X=r.useMemo(()=>{if(!N)return[];let k=N;if(p.trim()){const U=p.toLowerCase();k=k.filter(W=>W.title.toLowerCase().includes(U)||(Y.get(W.agent_id)||"").toLowerCase().includes(U))}return g==="priority"?k=[...k].sort((U,W)=>{const $=O7[U.priority||"normal"]??2,F=O7[W.priority||"normal"]??2;return $-F||new Date(W.created_at).getTime()-new Date(U.created_at).getTime()}):g==="status"&&(k=[...k].sort((U,W)=>{const $=F7[U.status]??5,F=F7[W.status]??5;return $-F||new Date(W.created_at).getTime()-new Date(U.created_at).getTime()})),k},[N,p,g,Y]);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Tasks",subtitle:t==="tasks"?j>0?`${(N==null?void 0:N.length)??0} of ${j}${i==="all"?"":` ${i.replace(/_/g," ")}`} shown`:"All agent tasks":B>0?`${(L==null?void 0:L.length)??0} of ${B}${u==="all"?"":` ${u.replace(/_/g," ")}`} shown`:"Agent deliverables",action:a.jsxs("button",{onClick:()=>f(!h),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Mt,{size:14})," New task"]})}),a.jsxs("div",{className:"flex gap-2 mb-4",children:[a.jsxs("button",{onClick:()=>l("tasks"),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-md text-sm transition-colors ${t==="tasks"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:[a.jsx(H1,{size:14})," Tasks"]}),a.jsxs("button",{onClick:()=>l("deliverables"),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-md text-sm transition-colors ${t==="deliverables"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:[a.jsx(Nm,{size:14})," Deliverables"]})]}),t==="tasks"?a.jsxs(a.Fragment,{children:[h&&(w!=null&&w.length)?a.jsx(X$,{agents:w,onClose:()=>f(!1),onSuccess:V}):null,a.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:G$.map(k=>a.jsx("button",{onClick:()=>o(k),className:`px-3 py-1.5 rounded-md text-xs capitalize transition-colors ${i===k?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:k.replace(/_/g," ")},k))}),a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsxs("div",{className:"relative flex-1",children:[a.jsx(xa,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:p,onChange:k=>x(k.target.value),placeholder:"Search by title or agent...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("select",{value:g,onChange:k=>b(k.target.value),className:"bg-white/5 border border-white/10 rounded-lg px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"date",children:"Sort by date"}),a.jsx("option",{value:"priority",children:"Sort by priority"}),a.jsx("option",{value:"status",children:"Sort by status"})]})]}),Z?a.jsx(We,{count:5}):X.length?a.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:X.map(k=>a.jsxs(Be,{to:`/tasks/${k.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/5 transition-colors",children:[a.jsxs("div",{className:"min-w-0 mr-3",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:k.title}),a.jsxs("p",{className:"text-xs text-neutral-400",children:[Y.get(k.agent_id)&&a.jsx("span",{className:"text-white",children:Y.get(k.agent_id)}),Y.get(k.agent_id)&&" · ",new Date(k.created_at).toLocaleString()]})]}),a.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[k.priority&&k.priority!=="normal"&&a.jsx("span",{className:"text-xs text-warning",children:k.priority}),k.tokens_used?a.jsxs("span",{className:"text-xs text-neutral-400",children:[k.tokens_used.toLocaleString()," tok"]}):null,a.jsx(ft,{status:k.status})]})]},k.id))}):a.jsx(bt,{icon:a.jsx(H1,{size:32}),title:"Nothing here yet",description:p?`No tasks matching "${p}".`:i==="all"?"Tasks will appear as agents work.":`No ${i.replace(/_/g," ")} tasks.`}),!Z&&N&&N.length<j&&!p&&a.jsx("div",{className:"flex justify-center mt-4",children:a.jsx("button",{onClick:H,disabled:S,className:"px-4 py-2 text-xs text-neutral-300 border border-white/10 rounded-md hover:bg-white/5 transition-colors disabled:opacity-50",children:S?"Loading...":`Load ${Math.min(yi,j-N.length)} more`})})]}):a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:Y$.map(k=>a.jsx("button",{onClick:()=>d(k),className:`px-3 py-1.5 rounded-md text-xs capitalize transition-colors ${u===k?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:k.replace(/_/g," ")},k))}),J?a.jsx(We,{count:5}):L!=null&&L.length?a.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:L.map(k=>{const W={email:"bg-blue-500/15 text-blue-400",code:"bg-green-500/15 text-green-400",report:"bg-purple-500/15 text-purple-400",creative:"bg-pink-500/15 text-pink-400",plan:"bg-cyan-500/15 text-cyan-400",data:"bg-amber-500/15 text-amber-400",document:"bg-white/5 text-neutral-400"}[k.deliverable_type]||"bg-white/5 text-neutral-400";return a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{className:"min-w-0 mr-3 flex items-center gap-2",children:[k.task_id?a.jsx(Be,{to:`/tasks/${k.task_id}`,className:"text-sm font-medium truncate hover:text-blue-400 transition-colors",children:k.title}):a.jsx("span",{className:"text-sm font-medium truncate",children:k.title}),k.auto_created===1&&a.jsx("span",{className:"text-[10px] text-neutral-500 bg-white/5 px-1.5 py-0.5 rounded shrink-0",children:"auto"})]}),a.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[a.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium ${W}`,children:k.deliverable_type}),a.jsx(ft,{status:k.status}),a.jsx("span",{className:"text-xs text-neutral-500",children:new Date(k.created_at).toLocaleDateString()})]})]},k.id)})}):a.jsx(bt,{icon:a.jsx(Nm,{size:32}),title:"No deliverables yet",description:"Deliverables are created when agents produce work products like drafts, reports, and plans."}),!J&&L&&L.length<B&&a.jsx("div",{className:"flex justify-center mt-4",children:a.jsx("button",{onClick:I,disabled:le,className:"px-4 py-2 text-xs text-neutral-300 border border-white/10 rounded-md hover:bg-white/5 transition-colors disabled:opacity-50",children:le?"Loading...":`Load ${Math.min(yi,B-L.length)} more`})})]})]})}function X$({agents:e,onClose:t,onSuccess:l}){var b;const[i,o]=r.useState(((b=e[0])==null?void 0:b.id)||""),[u,d]=r.useState(""),[h,f]=r.useState(""),[p,x]=r.useState(!1),g=async w=>{if(w.preventDefault(),!(!i||!u.trim())){x(!0);try{await me("/api/tasks",{method:"POST",body:JSON.stringify({agentId:i,title:u.trim(),description:h.trim()||void 0})}),l(),t()}catch{}finally{x(!1)}}};return a.jsxs("form",{onSubmit:g,className:"bg-white/5 border border-white/[0.08] rounded-lg p-4 mb-4 space-y-3",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent"}),a.jsx("select",{value:i,onChange:w=>o(w.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:e.map(w=>a.jsx("option",{value:w.id,children:w.name},w.id))})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Title"}),a.jsx("input",{value: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"})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description (optional)"}),a.jsx("textarea",{value:h,onChange:w=>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"})]}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx("button",{type:"button",onClick:t,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:p||!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 fu({title:e,defaultOpen:t=!0,children:l}){const[i,o]=r.useState(t);return a.jsxs("div",{className:"mb-6",children:[a.jsxs("button",{type:"button",onClick:()=>o(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?a.jsx(Ya,{size:14,weight:"bold"}):a.jsx(is,{size:14,weight:"bold"}),e]}),a.jsx(pa,{initial:!1,children:i&&a.jsx(Ve.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 Q$(e){return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})}function J$({events:e}){return a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Timeline"}),a.jsxs("div",{className:"relative pl-6",children:[a.jsx("div",{className:"absolute left-[7px] top-1 bottom-1 w-px bg-white/[0.12]"}),a.jsx("div",{className:"space-y-4",children:e.map(t=>a.jsxs("div",{className:"relative flex items-start gap-3",children:[a.jsx("div",{className:"absolute -left-6 top-0.5 flex items-center justify-center w-[15px] h-[15px] rounded-full ring-2 ring-black",style:{backgroundColor:t.color},children:a.jsx("span",{className:"flex items-center justify-center text-black",children:t.icon})}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:"text-sm font-medium",children:t.label}),a.jsx("p",{className:"text-xs text-neutral-400",children:Q$(t.timestamp)})]})]},t.label))})]})]})}function W$(e){try{const t=JSON.parse(e);if(Array.isArray(t)){const l=t.filter(i=>i.type==="tool_use");if(l.length>0)return l.map(i=>({name:i.name,arguments:i.input??i.arguments??{}}))}if(t.tool_calls&&Array.isArray(t.tool_calls))return t.tool_calls.map(l=>{var i,o,u;return{name:((i=l.function)==null?void 0:i.name)??l.name,arguments:typeof((o=l.function)==null?void 0:o.arguments)=="string"?JSON.parse(l.function.arguments):((u=l.function)==null?void 0:u.arguments)??l.arguments??{}}});if(t.type==="tool_use"&&t.name)return[{name:t.name,arguments:t.input??t.arguments??{}}]}catch{}return null}function eq({call:e}){const[t,l]=r.useState(!1);return a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3 my-1",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-mono font-medium bg-blue-500/15 text-blue-400 border border-blue-500/30",children:e.name}),a.jsxs("button",{type:"button",onClick:()=>l(i=>!i),className:"text-xs text-neutral-400 hover:text-white transition-colors flex items-center gap-0.5",children:[t?a.jsx(Ya,{size:12}):a.jsx(is,{size:12}),t?"Hide args":"Show args"]})]}),a.jsx(pa,{initial:!1,children:t&&a.jsx(Ve.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.15},style:{overflow:"hidden"},children:a.jsx("pre",{className:"text-xs text-neutral-300 mt-2 whitespace-pre-wrap break-words bg-white/[0.03] rounded p-2",children:JSON.stringify(e.arguments,null,2)})})})]})}function tq({content:e}){const t=r.useMemo(()=>W$(e),[e]);return t?a.jsx("div",{className:"space-y-1",children:t.map((l,i)=>a.jsx(eq,{call:l},`${l.name}-${i}`))}):a.jsx("pre",{className:"whitespace-pre-wrap break-words",children:typeof e=="string"?e:JSON.stringify(e)})}const z7={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 aq({priority:e}){const t=z7[e.toLowerCase()]??z7.low;return a.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium border ${t}`,children:e})}function nq(){const{id:e}=L1(),{data:t,loading:l}=we(e?`/api/tasks/${e}`:null),{data:i}=we(e?`/api/tasks/${e}/messages`:null),{data:o}=we(e?`/api/tasks/${e}/deliverables`:null),{data:u}=we(t!=null&&t.agent_id?`/api/agents/${t.agent_id}`:null),d=r.useMemo(()=>{if(!t)return[];const h=[];if(h.push({label:"Created",timestamp:t.created_at,color:"#737373",icon:a.jsx(Y0,{size:9,weight:"bold"})}),t.started_at&&h.push({label:"Started",timestamp:t.started_at,color:"#3b82f6",icon:a.jsx(ct,{size:9,weight:"bold"})}),t.completed_at){const f=t.status==="failed"||t.status==="error";h.push({label:f?"Failed":"Completed",timestamp:t.completed_at,color:f?"#ef4444":"#22c55e",icon:f?a.jsx(os,{size:9,weight:"bold"}):a.jsx(v0,{size:9,weight:"bold"})})}return h},[t]);return l?a.jsx("div",{className:"p-6",children:a.jsx(We,{count:6})}):t?a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsxs(Be,{to:"/tasks",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4",children:[a.jsx(ls,{size:14})," Back to tasks"]}),a.jsx(ze,{title:t.title,action:a.jsxs("div",{className:"flex items-center gap-2",children:[t.priority&&a.jsx(aq,{priority:t.priority}),a.jsx(ft,{status:t.status})]})}),t.description&&a.jsx("p",{className:"text-sm text-neutral-400 mb-4",children:t.description}),d.length>0&&a.jsx(J$,{events:d}),a.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-6",children:[u&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:"Agent"}),a.jsx(Be,{to:`/agents/${u.id}`,className:"text-sm font-medium mt-0.5 text-blue-400 hover:text-blue-300 transition-colors block",children:u.name})]}),t.model_used&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:"Model"}),a.jsx("p",{className:"text-sm font-medium mt-0.5",children:t.model_used})]}),t.tokens_used!=null&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:"Tokens"}),a.jsx("p",{className:"text-sm font-medium mt-0.5",children:t.tokens_used.toLocaleString()})]}),t.cost_cents!=null&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:"Cost"}),a.jsxs("p",{className:"text-sm font-medium mt-0.5",children:["$",(t.cost_cents/100).toFixed(4)]})]}),t.duration_seconds!=null&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:"Duration"}),a.jsxs("p",{className:"text-sm font-medium mt-0.5",children:[t.duration_seconds,"s"]})]})]}),t.error_message&&a.jsx("div",{className:"bg-critical/10 border border-critical/30 rounded-lg p-4 mb-6",children:a.jsx("p",{className:"text-sm text-critical",children:t.error_message})}),t.output&&a.jsx(fu,{title:"Output",children:a.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:a.jsx("pre",{className:"text-sm whitespace-pre-wrap break-words",children:typeof t.output=="string"?t.output:JSON.stringify(t.output,null,2)})})}),o&&o.length>0&&a.jsx(fu,{title:"Deliverables",children:a.jsx("div",{className:"space-y-3",children:o.map(h=>{const p={email:"bg-blue-500/15 text-blue-400 border-blue-500/30",code:"bg-green-500/15 text-green-400 border-green-500/30",report:"bg-purple-500/15 text-purple-400 border-purple-500/30",creative:"bg-pink-500/15 text-pink-400 border-pink-500/30",plan:"bg-cyan-500/15 text-cyan-400 border-cyan-500/30",data:"bg-amber-500/15 text-amber-400 border-amber-500/30"}[h.deliverable_type]||"bg-white/5 text-neutral-400 border-white/10";let x="";try{const g=JSON.parse(h.content);x=g.text||g.body||g.content||JSON.stringify(g,null,2)}catch{x=h.content}return a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx("span",{className:"text-sm font-medium truncate flex-1",children:h.title}),a.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium border ${p}`,children:h.deliverable_type}),a.jsx(ft,{status:h.status}),h.auto_created===1&&a.jsx("span",{className:"text-[10px] text-neutral-500 bg-white/5 px-1.5 py-0.5 rounded",children:"auto"})]}),a.jsx("pre",{className:"text-sm whitespace-pre-wrap break-words text-neutral-300",children:typeof x=="string"?x.slice(0,2e3):x}),h.rejection_reason&&a.jsx("p",{className:"mt-2 text-sm text-red-400 bg-red-500/10 rounded p-2",children:h.rejection_reason})]},h.id)})})}),i&&i.length>0&&a.jsx(fu,{title:"Conversation",children:a.jsx("div",{className:"space-y-2",children:i.map(h=>a.jsxs("div",{className:`rounded-lg p-3 text-sm ${h.role==="user"?"bg-white/5 border border-white/[0.12]":"border border-white/[0.08]"}`,children:[a.jsx("p",{className:"text-xs text-neutral-400 mb-1 capitalize",children:h.role}),a.jsx(tq,{content:h.content})]},h.id))})})]}):a.jsx("div",{className:"p-6 text-neutral-400",children:"Task not found"})}function rq({text:e}){const l=e.split(`
|
|
74
|
-
`),i=l.length>12,[o,u]=r.useState(!1),d=!i||o?l:l.slice(0,12),h=[];let f=0;for(;f<d.length;){const p=d[f];if(p.startsWith("```")){const E=p.slice(3).trim(),j=[];for(f++;f<d.length&&!d[f].startsWith("```");)j.push(d[f]),f++;h.push(a.jsxs("pre",{className:"bg-white/[0.05] rounded px-3 py-2 text-[11px] text-neutral-300 overflow-x-auto my-1.5 whitespace-pre",children:[E&&a.jsx("span",{className:"text-neutral-500 text-[10px] block mb-1",children:E}),j.join(`
|
|
75
|
-
`)]},f)),f++;continue}const x=p.match(/^### (.+)/),g=p.match(/^## (.+)/),b=p.match(/^# (.+)/);if(x){h.push(a.jsx("p",{className:"text-xs font-semibold text-white mt-2 mb-0.5",children:x[1]},f)),f++;continue}if(g){h.push(a.jsx("p",{className:"text-xs font-semibold text-white mt-2 mb-0.5",children:g[1]},f)),f++;continue}if(b){h.push(a.jsx("p",{className:"text-sm font-semibold text-white mt-2 mb-1",children:b[1]},f)),f++;continue}const w=p.match(/^[-*+] (.+)/);if(w){h.push(a.jsxs("div",{className:"flex gap-1.5 text-xs text-neutral-300",children:[a.jsx("span",{className:"text-neutral-500 mt-px",children:"•"}),a.jsx("span",{children:pu(w[1])})]},f)),f++;continue}const N=p.match(/^(\d+)\.\s*(.*)$/);if(N){let E=N[2];if(!E.trim()){let j=f+1;for(;j<d.length&&d[j].trim()==="";)j++;j<d.length&&!/^(\d+\.|[-*+] |#{1,3} |```)/.test(d[j])&&(E=d[j],f=j)}h.push(a.jsxs("div",{className:"flex gap-1.5 text-xs text-neutral-300",children:[a.jsxs("span",{className:"text-neutral-500 shrink-0",children:[N[1],"."]}),a.jsx("span",{children:pu(E)})]},f)),f++;continue}if(p.trim()===""){h.push(a.jsx("div",{className:"h-1"},f)),f++;continue}h.push(a.jsx("p",{className:"text-xs text-neutral-300 leading-relaxed",children:pu(p)},f)),f++}return a.jsxs("div",{className:"mt-2 space-y-0.5",children:[h,i&&a.jsx("button",{onClick:()=>u(p=>!p),className:"text-[11px] text-neutral-400 hover:text-white transition-colors mt-1",children:o?"Show less":`Show ${l.length-12} more lines`})]})}function pu(e){return e.split(/(\*\*[^*]+\*\*|`[^`]+`)/g).map((l,i)=>l.startsWith("**")&&l.endsWith("**")?a.jsx("strong",{className:"text-white font-medium",children:l.slice(2,-2)},i):l.startsWith("`")&&l.endsWith("`")?a.jsx("code",{className:"bg-white/10 px-1 rounded text-[10px] text-neutral-200",children:l.slice(1,-1)},i):l)}function sq(e){if(!e)return null;if(typeof e=="string")try{return JSON.parse(e)}catch{return null}return e}function lq(){const e=ga(["task:completed"]),{data:t,loading:l,refetch:i}=we("/api/approvals",[e]),[o,u]=r.useState(null),[d,h]=r.useState(!1),[f,p]=r.useState(null),[x,g]=r.useState(""),b=r.useCallback(async j=>{u(j);try{await me(`/api/approvals/${j}/approve`,{method:"POST"}),i()}catch{}finally{u(null)}},[i]),w=r.useCallback(async()=>{if(f){u(f.id);try{await me(`/api/approvals/${f.id}/reject`,{method:"POST",body:JSON.stringify({reason:x.trim()||void 0})}),p(null),g(""),i()}catch{}finally{u(null)}}},[f,x,i]),N=r.useCallback(async()=>{if(t!=null&&t.length){h(!0);try{for(const j of t)await me(`/api/approvals/${j.id}/approve`,{method:"POST"});i()}catch{}finally{h(!1)}}},[t,i]),E=r.useCallback(async()=>{if(t!=null&&t.length){h(!0);try{for(const j of t)await me(`/api/approvals/${j.id}/reject`,{method:"POST"});i()}catch{}finally{h(!1)}}},[t,i]);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Approvals",subtitle:"Tasks waiting for your review",action:t!=null&&t.length?a.jsxs("div",{className:"flex gap-2",children:[a.jsxs("button",{onClick: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:[a.jsx(os,{size:14})," Reject all"]}),a.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:[a.jsx(v0,{size:14})," Approve all"]})]}):void 0}),l?a.jsx(We,{count:3}):t!=null&&t.length?a.jsx("div",{className:"space-y-3",children:t.map(j=>{const A=sq(j.deferred_action);return a.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:a.jsxs("div",{className:"flex items-start justify-between gap-4",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("p",{className:"text-sm font-medium",children:j.title}),A&&a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs bg-warning/15 text-warning",children:[A.provider==="gmail"?a.jsx(Zz,{size:12}):a.jsx(sa,{size:12}),A.type,A.params.to?` → ${A.params.to}`:""]})]}),a.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:new Date(j.created_at).toLocaleString()}),j.output&&a.jsx(rq,{text:typeof j.output=="string"?j.output.slice(0,1200):JSON.stringify(j.output).slice(0,1200)})]}),a.jsxs("div",{className:"flex gap-2 shrink-0",children:[a.jsx("button",{onClick:()=>{p(j),g("")},disabled:o===j.id||d,className:"px-3 py-1.5 text-xs text-critical border border-critical/30 rounded hover:bg-critical/10 transition-colors disabled:opacity-50",children:"Reject"}),a.jsx("button",{onClick:()=>b(j.id),disabled:o===j.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"})]})]})},j.id)})}):a.jsx(bt,{icon:a.jsx(zM,{size:32}),title:"All clear",description:"No tasks waiting for approval right now."}),f&&a.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50 p-4",children:a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 w-full max-w-md",children:[a.jsx("h3",{className:"text-sm font-semibold mb-1",children:"Reject task"}),a.jsxs("p",{className:"text-xs text-neutral-400 mb-4",children:["“",f.title,"”"]}),a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Reason (optional)"}),a.jsx("textarea",{value:x,onChange:j=>g(j.target.value),placeholder:"Why is this being rejected?",rows:3,autoFocus:!0,className:"w-full bg-white/5 border border-white/10 rounded-lg px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-critical/50 resize-none mb-4"}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx("button",{onClick:()=>p(null),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{onClick:w,disabled:o===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:o===f.id?"Rejecting...":"Reject"})]})]})})]})}const iq={task_completed:"text-success",task_failed:"text-critical",task_started:"text-white",task_needs_approval:"text-warning",trigger_fired:"text-warning",schedule_fired:"text-warning",agent_created:"text-white",orchestrator_tool:"text-neutral-300",orchestrator_tool_failed:"text-critical",permission_requested:"text-warning",permission_approved:"text-success",permission_denied:"text-critical",memory_extracted:"text-warning"},$7=50;function oq(e){if(e==="all")return null;const t=new Date;return e==="today"?(t.setHours(0,0,0,0),t):e==="7d"?(t.setDate(t.getDate()-7),t):(t.setDate(t.getDate()-30),t)}function LS(e){return e?/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"):new Date(NaN)}function cq(e){const t=Date.now()-LS(e).getTime();if(t<0)return"just now";const l=Math.floor(t/1e3);if(l<30)return"just now";if(l<60)return`${l}s ago`;const i=Math.floor(l/60);if(i<60)return`${i}m ago`;const o=Math.floor(i/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function uq(){const e=ga(["task:started","task:completed","task:failed","memory:extracted"]),[t,l]=r.useState("all"),[i,o]=r.useState("all"),[u,d]=r.useState(""),[h,f]=r.useState(null),[p,x]=r.useState(0),[g,b]=r.useState([]),[w,N]=r.useState(!0),[E,j]=r.useState(!1),A=r.useCallback(S=>{const _=[`limit=${$7}`,`offset=${S}`];return t!=="all"&&_.push(`activityType=${t}`),`/api/activity?${_.join("&")}`},[t]);r.useEffect(()=>{let S=!1;return N(!0),me(A(0)).then(_=>{S||(f(_.data),x(_.total),b(_.types))}).catch(()=>{S||(f([]),x(0))}).finally(()=>{S||N(!1)}),()=>{S=!0}},[A,e]);const Z=async()=>{if(!(!h||E||h.length>=p)){j(!0);try{const S=await me(A(h.length));f([...h,...S.data]),x(S.total)}finally{j(!1)}}},M=r.useMemo(()=>{if(!h)return[];let S=h;const _=oq(i);if(_&&(S=S.filter(T=>LS(T.created_at)>=_)),u.trim()){const T=u.toLowerCase();S=S.filter(V=>V.title.toLowerCase().includes(T)||(V.description||"").toLowerCase().includes(T))}return S},[h,i,u]);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Activity",subtitle:p>0?`${(h==null?void 0:h.length)??0} of ${p}${t==="all"?"":` ${t.replace(/_/g," ")}`} shown`:"Recent events"}),a.jsxs("div",{className:"flex gap-1 mb-3 overflow-x-auto",children:[a.jsx("button",{onClick:()=>l("all"),className:`px-3 py-1 rounded text-xs whitespace-nowrap transition-colors ${t==="all"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"All"}),g.map(({type:S,count:_})=>a.jsxs("button",{onClick:()=>l(S),className:`px-3 py-1 rounded text-xs whitespace-nowrap transition-colors ${t===S?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:[S.replace(/_/g," ")," ",a.jsx("span",{className:"text-neutral-500",children:_})]},S))]}),a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsx("div",{className:"flex gap-1",children:["all","today","7d","30d"].map(S=>a.jsx("button",{onClick:()=>o(S),className:`px-2.5 py-1 rounded text-xs transition-colors ${i===S?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:S==="all"?"All time":S==="today"?"Today":S==="7d"?"7 days":"30 days"},S))}),a.jsxs("div",{className:"relative flex-1",children:[a.jsx(xa,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:u,onChange:S=>d(S.target.value),placeholder:"Search activity...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),w?a.jsx(We,{count:8}):M.length?a.jsxs("div",{className:"space-y-1",children:[M.map((S,_)=>a.jsxs(Ve.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:_*.02},className:"flex items-start gap-3 px-4 py-3 rounded-lg border border-white/[0.06] bg-white/[0.02] hover:bg-white/[0.04] transition-colors",children:[a.jsx("span",{className:`text-xs font-mono mt-0.5 shrink-0 ${iq[S.activity_type]||"text-neutral-400"}`,children:S.activity_type.replace(/_/g," ")}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"text-sm",children:S.title}),S.description&&a.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:S.description})]}),a.jsx("span",{className:"text-xs text-neutral-500 shrink-0",children:cq(S.created_at)})]},S.id)),!w&&h&&h.length<p&&!u&&i==="all"&&a.jsx("div",{className:"flex justify-center pt-3",children:a.jsx("button",{onClick:Z,disabled:E,className:"px-4 py-2 text-xs text-neutral-300 border border-white/10 rounded-md hover:bg-white/5 transition-colors disabled:opacity-50",children:E?"Loading...":`Load ${Math.min($7,p-h.length)} more`})})]}):a.jsx(bt,{icon:a.jsx(VE,{size:32}),title:"Quiet so far",description:u||t!=="all"||i!=="all"?"No activity matching your filters.":"Activity will show up here as agents complete tasks."})]})}function b0({open:e,onClose:t,onConfirm:l,title:i="Confirm",message:o,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 a.jsxs(va,{open:e,onClose:t,title:i,children:[a.jsx("p",{className:"text-sm text-neutral-400 mb-6",children:o}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx("button",{onClick:t,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{onClick: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 q7=[{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 kS({value:e,onChange:t}){const[l,i]=r.useState(q7.some(o=>o.cron===e)?"preset":"custom");return a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"flex gap-1",children:[a.jsx("button",{type:"button",onClick:()=>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"}),a.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"?a.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:q7.map(o=>a.jsxs("button",{type:"button",onClick:()=>t(o.cron),className:`text-left px-3 py-2 rounded text-xs transition-colors border ${e===o.cron?"border-white/20 bg-white/10 text-white":"border-white/[0.08] hover:border-white/20 text-neutral-400 hover:text-white"}`,children:[a.jsx("span",{className:"block",children:o.label}),a.jsx("span",{className:"block font-mono text-[10px] text-neutral-400 mt-0.5",children:o.cron})]},o.cron))}):a.jsxs("div",{children:[a.jsx("input",{type:"text",value:e,onChange:o=>t(o.target.value),placeholder:"* * * * *",className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm text-white font-mono placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20"}),a.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:"Format: minute hour day month weekday"})]})]})}function dq(e){const t=Date.now()-new Date(e).getTime(),l=Math.floor(t/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 hq(e){const t=new Date(e).getTime()-Date.now();if(t<0)return"overdue";const l=Math.floor(t/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 I7=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],mq=6,fq=22;function pq(e){const t=e.trim().split(/\s+/);if(t.length<5)return{hours:[],dows:[]};const l=t[1],i=t[4],o=(f,p,x)=>{if(f==="*"){const b=[];for(let w=p;w<=x;w++)b.push(w);return b}const g=[];for(const b of f.split(","))if(b.includes("/")){const[w,N]=b.split("/"),E=parseInt(N,10),j=w==="*"?p:parseInt(w,10);for(let A=j;A<=x;A+=E)g.push(A)}else if(b.includes("-")){const[w,N]=b.split("-").map(Number);for(let E=w;E<=N;E++)g.push(E)}else{const w=parseInt(b,10);isNaN(w)||g.push(w)}return g},u=o(l,0,23),h=o(i,0,6).map(f=>f===0?6:f-1);return{hours:u,dows:h}}function xq(){const e=new Date,t=e.getDay(),l=t===0?-6:1-t,i=new Date(e);i.setDate(e.getDate()+l),i.setHours(0,0,0,0);const o=[];for(let u=0;u<7;u++){const d=new Date(i);d.setDate(i.getDate()+u),o.push(d)}return o}function gq({schedules:e}){const t=r.useMemo(()=>xq(),[]),l=r.useMemo(()=>e.filter(f=>f.enabled),[e]),i=r.useMemo(()=>l.map(f=>({label:f.label,...pq(f.cron_expression||f.cron)})),[l]),o=[];for(let f=mq;f<=fq;f++)o.push(f);const u=(f,p)=>i.filter(x=>x.dows.includes(f)&&x.hours.includes(p)),d=new Date,h=d.getDay()===0?6:d.getDay()-1;return a.jsxs(Ve.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2},className:"border border-white/[0.08] rounded-lg overflow-hidden",children:[a.jsxs("div",{className:"grid grid-cols-[64px_repeat(7,1fr)]",children:[a.jsx("div",{className:"bg-white/[0.02] border-b border-r border-white/[0.08] p-2"}),I7.map((f,p)=>a.jsxs("div",{className:`bg-white/[0.02] border-b border-white/[0.08] p-2 text-center text-xs font-medium ${p===h?"text-white":"text-neutral-500"} ${p<6?"border-r border-white/[0.08]":""}`,children:[a.jsx("div",{children:f}),a.jsx("div",{className:`text-[10px] mt-0.5 ${p===h?"text-neutral-300":"text-neutral-600"}`,children:t[p].getDate()})]},f))]}),a.jsx("div",{className:"max-h-[480px] overflow-y-auto",children:o.map(f=>a.jsxs("div",{className:"grid grid-cols-[64px_repeat(7,1fr)]",children:[a.jsx("div",{className:"border-b border-r border-white/[0.08] p-2 text-[10px] text-neutral-500 text-right pr-3 flex items-start justify-end",children:f===0?"12am":f<12?`${f}am`:f===12?"12pm":`${f-12}pm`}),I7.map((p,x)=>{const g=u(x,f);return a.jsx("div",{className:`border-b border-white/[0.08] min-h-[36px] p-1 ${x<6?"border-r border-white/[0.08]":""} ${g.length>0?"bg-success/15":""}`,children:g.map((b,w)=>a.jsx("div",{className:"text-[10px] text-success leading-tight truncate px-1 py-0.5 rounded",children:b.label},w))},p)})]},f))})]})}function vq(){const{data:e,loading:t,refetch:l}=we("/api/schedules"),[i,o]=r.useState(null),[u,d]=r.useState(!1),[h,f]=r.useState(null),[p,x]=r.useState(null),[g,b]=r.useState(!1),[w,N]=r.useState("list"),E=async A=>{o(A);try{await me(`/api/schedules/${A}/toggle`,{method:"POST"}),l()}catch{de("error","Couldn't toggle schedule. Try again?")}finally{o(null)}},j=async()=>{if(p){b(!0);try{await me(`/api/schedules/${p.id}`,{method:"DELETE"}),de("success","Schedule deleted"),l()}catch{de("error","Couldn't delete schedule. Try again?")}finally{b(!1),x(null)}}};return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Schedules",subtitle:"Automated task schedules",action:a.jsxs("button",{onClick:()=>d(!0),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Mt,{size:14})," New schedule"]})}),t?a.jsx(We,{count:3}):e!=null&&e.length?a.jsxs(a.Fragment,{children:[a.jsx(q1,{tabs:[{id:"list",label:"List",count:e.length},{id:"calendar",label:"Calendar"}],activeTab:w,onTabChange:N,layoutId:"schedules-tab"}),a.jsx("div",{className:"mt-4",children:w==="list"?a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(A=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-4",children:[a.jsxs("div",{className:"min-w-0 mr-4 flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:`w-2 h-2 rounded-full shrink-0 ${A.enabled?"bg-success":"bg-white/10"}`}),a.jsx("p",{className:"text-sm font-medium truncate",children:A.label})]}),a.jsxs("div",{className:"flex gap-3 mt-1 ml-4",children:[a.jsx("span",{className:"text-xs text-neutral-400 font-mono",children:A.cron_expression||A.cron}),A.next_run_at&&a.jsxs("span",{className:"text-xs text-neutral-400",children:["Next: ",hq(A.next_run_at)]}),A.last_run_at&&a.jsxs("span",{className:"text-xs text-neutral-400",children:["Last: ",dq(A.last_run_at)]})]}),A.task_prompt&&a.jsx("p",{className:"text-xs text-neutral-400 mt-1 ml-4 truncate max-w-md",children:A.task_prompt})]}),a.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[a.jsx("button",{onClick:()=>f(A),className:"text-neutral-400 hover:text-white transition-colors",title:"Edit",children:a.jsx(Sm,{size:14})}),a.jsx("button",{onClick:()=>x(A),className:"text-neutral-400 hover:text-critical transition-colors",title:"Delete",children:a.jsx(Yt,{size:14})}),a.jsx(_1,{checked:!!A.enabled,onChange:()=>E(A.id),disabled:i===A.id})]})]},A.id))}):a.jsx(gq,{schedules:e})})]}):a.jsx(bt,{icon:a.jsx(vz,{size:32}),title:"Nothing scheduled yet",description:"Set up recurring tasks to keep your agents busy.",action:a.jsxs("button",{onClick:()=>d(!0),className:"mt-3 flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Mt,{size:14})," Create your first schedule"]})}),u&&a.jsx(B7,{onClose:()=>d(!1),onSuccess:()=>{l(),d(!1)}}),h&&a.jsx(B7,{schedule:h,onClose:()=>f(null),onSuccess:()=>{l(),f(null)}}),a.jsx(b0,{open:!!p,onClose:()=>x(null),onConfirm:j,title:"Delete schedule",message:`Delete "${p==null?void 0:p.label}"? This can't be undone.`,confirmLabel:"Delete",loading:g})]})}function B7({schedule:e,onClose:t,onSuccess:l}){const i=!!e,{data:o}=we("/api/agents"),[u,d]=r.useState((e==null?void 0:e.label)||""),[h,f]=r.useState((e==null?void 0:e.cron_expression)||(e==null?void 0:e.cron)||"0 9 * * *"),[p,x]=r.useState((e==null?void 0:e.agent_id)||""),[g,b]=r.useState((e==null?void 0:e.task_prompt)||""),[w,N]=r.useState(!1),E=async j=>{if(j.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:g})}),de("success","Schedule updated")):(await me("/api/schedules",{method:"POST",body:JSON.stringify({label:u.trim(),cron:h.trim(),agent_id:p||null,task_prompt:g})}),de("success","Schedule created")),l()}catch{de("error",`Couldn't ${i?"update":"create"} schedule. Try again?`)}finally{N(!1)}}};return a.jsx(va,{open:!0,onClose:t,title:i?"Edit schedule":"New schedule",maxWidth:"max-w-lg",children:a.jsxs("form",{onSubmit:E,className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Title"}),a.jsx("input",{value:u,onChange:j=>d(j.target.value),placeholder:"Daily briefing",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20",autoFocus:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent"}),a.jsxs("select",{value:p,onChange:j=>x(j.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"",children:"Orchestrator (default)"}),o==null?void 0:o.map(j=>a.jsx("option",{value:j.id,children:j.name},j.id))]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Schedule"}),a.jsx(kS,{value:h,onChange:f})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Task prompt"}),a.jsx("textarea",{value:g,onChange:j=>b(j.target.value),placeholder:"What should the agent do?",rows:3,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none"})]}),a.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[a.jsx("button",{type:"button",onClick:t,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:w||!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 RS={SAMPLE_RATE:16e3,BIT_DEPTH:16,CHANNELS:1};function bq(e){const{SAMPLE_RATE:t,BIT_DEPTH:l,CHANNELS:i}=RS,o=t*i*(l/8),u=i*(l/8),d=e.byteLength,h=new ArrayBuffer(44+d),f=new DataView(h);return wi(f,0,"RIFF"),f.setUint32(4,36+d,!0),wi(f,8,"WAVE"),wi(f,12,"fmt "),f.setUint32(16,16,!0),f.setUint16(20,1,!0),f.setUint16(22,i,!0),f.setUint32(24,t,!0),f.setUint32(28,o,!0),f.setUint16(32,u,!0),f.setUint16(34,l,!0),wi(f,36,"data"),f.setUint32(40,d,!0),new Int16Array(h,44).set(e),h}function yq(e){const t=new Int16Array(e.length);for(let l=0;l<e.length;l++){const i=Math.max(-1,Math.min(1,e[l]));t[l]=i<0?i*32768:i*32767}return t}function wq(e,t,l){if(t===l)return e;const i=t/l,o=Math.round(e.length/i),u=new Float32Array(o);for(let d=0;d<o;d++){const h=Math.round(d*i);u[d]=e[Math.min(h,e.length-1)]}return u}async function Aq(e,t){const l=t||new AudioContext,i=await l.decodeAudioData(e.slice(0)),o=l.createBufferSource();return o.buffer=i,o.connect(l.destination),new Promise(u=>{o.onended=()=>u(),o.start(0)})}function jq(e){const t=new AudioContext;let l=[],i=!1;async function o(){if(l.length===0){i=!1;return}i=!0;const u=l.shift();await Aq(u,t),await o()}return{enqueue(u){l.push(u),i||o()},clear(){l=[],i=!1},close(){l=[],i=!1,t.close()},get isPlaying(){return i}}}function wi(e,t,l){for(let i=0;i<l.length;i++)e.setUint8(t+i,l.charCodeAt(i))}class Nq{constructor(t,l={}){Ca(this,"threshold");Ca(this,"minSpeechMs");Ca(this,"silenceMs");Ca(this,"onSpeechStart");Ca(this,"onSpeechEnd");Ca(this,"isSpeaking",!1);Ca(this,"speechStartTime",0);Ca(this,"lastSpeechTime",0);Ca(this,"audioChunks",[]);Ca(this,"sampleRate");Ca(this,"checkInterval",null);this.sampleRate=t,this.threshold=l.threshold??.01,this.minSpeechMs=l.minSpeechMs??300,this.silenceMs=l.silenceMs??800,this.onSpeechStart=l.onSpeechStart,this.onSpeechEnd=l.onSpeechEnd}processFrame(t){var o;const l=Eq(t),i=Date.now();l>this.threshold&&(this.isSpeaking||(this.isSpeaking=!0,this.speechStartTime=i,this.audioChunks=[],(o=this.onSpeechStart)==null||o.call(this)),this.lastSpeechTime=i),this.isSpeaking&&(this.audioChunks.push(new Float32Array(t)),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 t=Date.now()-this.speechStartTime;if(this.isSpeaking=!1,t<this.minSpeechMs||this.audioChunks.length===0){this.audioChunks=[];return}const l=this.audioChunks.reduce((p,x)=>p+x.length,0),i=new Float32Array(l);let o=0;for(const p of this.audioChunks)i.set(p,o),o+=p.length;this.audioChunks=[];const u=wq(i,this.sampleRate,RS.SAMPLE_RATE),d=yq(u),h=bq(d);(f=this.onSpeechEnd)==null||f.call(this,h)}}function Eq(e){let t=0;for(let l=0;l<e.length;l++)t+=e[l]*e[l];return Math.sqrt(t/e.length)}function Mq(){return typeof window>"u"?null:window.SpeechRecognition||window.webkitSpeechRecognition||null}function P7(e="en-US"){const t=Mq();if(!t)return{isSupported:!1,start(){},stop(){},onResult(){},onError(){}};const l=new t;l.continuous=!0,l.interimResults=!0,l.lang=e;let i=null,o=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"&&(o==null||o(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){o=u}}}function Sq(){if(typeof window>"u"||!window.speechSynthesis)return{isSupported:!1,speak(){},stop(){},isSpeaking:()=>!1,onStart(){},onEnd(){}};const e=window.speechSynthesis;let t=null,l=null;return{isSupported:!0,speak(i){const o=new SpeechSynthesisUtterance(i);o.onstart=()=>t==null?void 0:t(),o.onend=()=>l==null?void 0:l(),o.onerror=()=>l==null?void 0:l(),e.speak(o)},stop(){e.cancel()},isSpeaking:()=>e.speaking,onStart(i){t=i},onEnd(i){l=i}}}function Zq(){const e=un(),t=window.location.protocol==="https:"?"wss:":"ws:",l=window.location.host;return`${t}//${l}/ws/voice?token=${e}`}function Cq(){return""}async function Hq(){try{const e=un(),t=await fetch(`${Cq()}/api/voice/providers`,{headers:{Authorization:`Bearer ${e}`},signal:AbortSignal.timeout(3e3)});if(t.ok){const{data:l}=await t.json();if((l==null?void 0:l.recommendedMode)==="full")return"full"}}catch{}return"browser-native"}function DS(e){const[t,l]=r.useState("idle"),[i,o]=r.useState(""),[u,d]=r.useState(""),[h,f]=r.useState(null),[p,x]=r.useState(!1),[g,b]=r.useState(null),w=r.useRef(null),N=r.useRef(null),E=r.useRef(null),j=r.useRef(null),A=r.useRef(null),Z=r.useRef(null),M=r.useRef(null),S=r.useRef(null),_=r.useCallback(()=>{var B,K,J,se,le,O,q;(B=E.current)==null||B.stop(),E.current=null,(K=j.current)==null||K.disconnect(),j.current=null,(J=N.current)==null||J.getTracks().forEach(I=>I.stop()),N.current=null,(se=A.current)==null||se.close(),A.current=null,(le=Z.current)==null||le.close(),Z.current=null,(O=M.current)==null||O.stop(),M.current=null,(q=S.current)==null||q.stop(),S.current=null,w.current&&w.current.readyState!==WebSocket.CLOSED&&(w.current.send(JSON.stringify({type:"stop"})),w.current.close()),w.current=null,l("idle"),b(null),f(null)},[]);r.useEffect(()=>_,[_]);const T=r.useCallback(async()=>{f(null),o(""),d("");const B=await Hq();if(B==="browser-native"&&!P7().isSupported){f("Voice requires Chrome, Edge, or Safari. Firefox is not supported yet.");return}b(B);const K=new WebSocket(Zq());w.current=K,K.binaryType="arraybuffer",B==="browser-native"?await V(K,e):await H(K,e)},[e,_]),V=r.useCallback(async(B,K)=>{const J=P7(),se=Sq();M.current=J,S.current=se,se.onStart(()=>l("speaking")),se.onEnd(()=>l("listening")),B.onopen=()=>{B.send(JSON.stringify({type:"start",agentId:K,mode:"browser-native"})),J.onResult((le,O)=>{o(le),O&&le.trim()&&B.readyState===WebSocket.OPEN&&(B.send(JSON.stringify({type:"transcript",text:le})),l("processing"))}),J.onError(le=>{f(`Speech recognition error: ${le}`)}),J.start(),l("listening")},B.onmessage=le=>{if(!(le.data instanceof ArrayBuffer))try{const O=JSON.parse(le.data);switch(O.type){case"response":d(O.text),se.speak(O.text);break;case"transcription":o(O.text);break;case"error":f(O.message);break;case"state":O.state==="processing"&&l("processing");break}}catch{}},B.onerror=()=>{f("Couldn't connect to voice server. Is the runtime running?"),_()},B.onclose=()=>{_()}},[_]),H=r.useCallback(async(B,K)=>{let J;try{J=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=J;const se=new AudioContext;A.current=se;const le=se.createMediaStreamSource(J),O=jq();Z.current=O,B.onopen=()=>{B.send(JSON.stringify({type:"start",agentId:K}))},B.onmessage=X=>{if(X.data instanceof ArrayBuffer){O.enqueue(X.data);return}try{const k=JSON.parse(X.data);switch(k.type){case"state":l(k.state);break;case"transcription":o(k.text);break;case"response":d(k.text);break;case"error":f(k.message);break}}catch{}},B.onerror=()=>{f("Couldn't connect to voice server. Is the runtime running?"),_()},B.onclose=()=>{_()};const I=se.createScriptProcessor(4096,1,1);j.current=I;const Y=new Nq(se.sampleRate,{threshold:.01,minSpeechMs:300,silenceMs:800,onSpeechStart:()=>{l("listening")},onSpeechEnd:X=>{B.readyState===WebSocket.OPEN&&B.send(X)}});E.current=Y,Y.start(),I.onaudioprocess=X=>{if(p)return;const k=X.inputBuffer.getChannelData(0);Y.processFrame(k)},le.connect(I),I.connect(se.destination)},[p,_]),L=r.useCallback(()=>{_()},[_]),D=r.useCallback(()=>{x(B=>{var J,se,le;const K=!B;return(J=N.current)==null||J.getAudioTracks().forEach(O=>{O.enabled=!K}),K?(se=M.current)==null||se.stop():(le=M.current)==null||le.start(),K})},[]);return{state:t,transcript:i,response:u,error:h,startCall:T,endCall:L,toggleMute:D,isMuted:p,mode:g}}const Di=24,xu=3,gu=2,$r=2,I0=32;function Vq({state:e,className:t=""}){const l=r.useRef(null),i=r.useRef(0);return r.useEffect(()=>{const o=l.current;if(!o)return;const u=o.getContext("2d");if(!u)return;const d=Di*(xu+gu)-gu;o.width=d*2,o.height=I0*2,o.style.width=`${d}px`,o.style.height=`${I0}px`,u.scale(2,2);const h=new Float32Array(Di).fill(0);function f(){if(u){u.clearRect(0,0,d,I0);for(let p=0;p<Di;p++){const x=_q(e,p,Date.now());h[p]+=(x-h[p])*.15;const g=Math.max($r,h[p]),b=p*(xu+gu),w=(I0-g)/2;u.fillStyle=Tq(e),u.beginPath(),u.roundRect(b,w,xu,g,1.5),u.fill()}i.current=requestAnimationFrame(f)}}return f(),()=>cancelAnimationFrame(i.current)},[e]),a.jsx("canvas",{ref:l,className:t})}function _q(e,t,l){switch(e){case"listening":{const i=Math.sin(l/200+t*.5)*.5+.5;return $r+i*(I0*.6-$r)}case"processing":{const i=Di/2,o=Math.abs(t-i)/i,u=Math.sin(l/300)*.5+.5;return $r+(1-o)*u*I0*.4}case"speaking":{const i=Math.sin(l/150+t*.4)*.5+.5,o=Math.sin(l/250+t*.7)*.3+.3;return $r+(i+o)*(I0*.45)}default:return $r}}function Tq(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 Lq({isMuted:e,onToggleMute:t,onEndCall:l}){return a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("button",{onClick:t,className:`p-3 rounded-full transition-all duration-150 active:scale-95 ${e?"bg-red-500/20 text-red-400 hover:bg-red-500/30":"bg-white/[0.08] text-neutral-300 hover:bg-white/[0.12] hover:text-white"}`,title:e?"Unmute":"Mute",children:e?a.jsx(V1,{size:20,weight:"fill"}):a.jsx(an,{size:20,weight:"fill"})}),a.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:a.jsx(Iz,{size:20,weight:"fill"})})]})}const kq={idle:"Ready",listening:"Listening...",processing:"Thinking...",speaking:"Speaking..."};function Rq({state:e,transcript:t,response:l,error:i,isMuted:o,onToggleMute:u,onEndCall:d}){return r.useEffect(()=>{const h=f=>{f.key==="Escape"&&d()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[d]),a.jsxs("div",{className:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-black/90 backdrop-blur-sm",children:[a.jsx("div",{className:"absolute inset-0",onClick:d}),a.jsxs("div",{className:"relative z-10 flex flex-col items-center gap-8 max-w-md w-full px-6",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:`w-2 h-2 rounded-full ${e==="listening"?"bg-white animate-pulse":e==="processing"?"bg-purple-500 animate-pulse":e==="speaking"?"bg-green-500 animate-pulse":"bg-gray-600"}`}),a.jsx("span",{className:"text-sm text-neutral-400 font-mono",children:kq[e]})]}),a.jsx(Vq,{state:e}),t&&a.jsxs("div",{className:"w-full text-center",children:[a.jsx("p",{className:"text-xs text-neutral-500 mb-1 font-mono",children:"You said:"}),a.jsx("p",{className:"text-sm text-neutral-300",children:t})]}),l&&a.jsxs("div",{className:"w-full text-center",children:[a.jsx("p",{className:"text-xs text-neutral-500 mb-1 font-mono",children:"Response:"}),a.jsx("p",{className:"text-sm text-white",children:l})]}),i&&a.jsx("div",{className:"w-full text-center",children:a.jsx("p",{className:"text-sm text-red-400",children:i})}),a.jsx(Lq,{isMuted:o,onToggleMute:u,onEndCall:d}),a.jsx("p",{className:"text-xs text-neutral-600",children:"Press Esc to end call"})]})]})}function Dq({toolCall:e}){const[t,l]=r.useState(!1);return a.jsxs("div",{className:"bg-white/[0.04] border border-white/[0.08] rounded-lg overflow-hidden",children:[a.jsxs("button",{onClick:()=>l(!t),className:"flex items-center gap-2 px-3 py-1.5 text-xs text-neutral-300 hover:text-white transition-colors w-full text-left",children:[a.jsx(o$,{size:14,className:"text-neutral-400 shrink-0"}),a.jsx("span",{className:"font-medium truncate",children:e.name}),t?a.jsx(Ya,{size:12,className:"ml-auto shrink-0"}):a.jsx(is,{size:12,className:"ml-auto shrink-0"})]}),t&&a.jsxs("div",{className:"border-t border-white/[0.06] px-3 py-2 space-y-2 text-xs",children:[e.input&&Object.keys(e.input).length>0&&a.jsxs("div",{children:[a.jsx("span",{className:"text-neutral-500 block mb-1",children:"Input"}),a.jsx("pre",{className:"text-neutral-300 whitespace-pre-wrap break-words font-mono text-[11px] bg-white/[0.03] rounded px-2 py-1.5",children:JSON.stringify(e.input,null,2)})]}),e.output&&a.jsxs("div",{children:[a.jsx("span",{className:"text-neutral-500 block mb-1",children:"Output"}),a.jsx("pre",{className:"text-neutral-300 whitespace-pre-wrap break-words font-mono text-[11px] bg-white/[0.03] rounded px-2 py-1.5",children:e.output})]})]})]})}function Oq(){var le;const[e,t]=r.useState([]),[l,i]=r.useState(""),[o,u]=r.useState(!1),[d,h]=r.useState(()=>{const O=localStorage.getItem("ohwow-chat-session-id");if(O)return O;const q=crypto.randomUUID();return localStorage.setItem("ohwow-chat-session-id",q),q}),[f,p]=r.useState(!1),[x,g]=r.useState(!1),b=r.useRef(null),{modelReady:w,loading:N}=co(),[E,j]=r.useState([]),[A,Z]=r.useState(""),[M,S]=r.useState(!1),_=DS("orchestrator");r.useEffect(()=>{me("/api/system/models").then(O=>{j(O.data.models),O.data.currentModel&&Z(O.data.currentModel)}).catch(()=>{})},[]),r.useEffect(()=>{let O=!1;return me(`/api/chat/${d}`).then(q=>{var I;O||!((I=q.messages)!=null&&I.length)||t(q.messages.filter(Y=>Y.role==="user"||Y.role==="assistant").map(Y=>({role:Y.role,content:Y.content})))}).catch(()=>{}),()=>{O=!0}},[]),r.useEffect(()=>{let O=!1,q=!1;const I=()=>{fetch("/api/voice/providers").then(X=>X.json()).then(X=>{var U;if(O)return;g(!0);const k=!!((U=X==null?void 0:X.data)!=null&&U.anyAvailable);p(k),k&&(q=!0)}).catch(()=>{})};I();const Y=setInterval(()=>{!O&&!q&&I()},15e3);return()=>{O=!0,clearInterval(Y)}},[]);const T=r.useRef(""),V=r.useRef("");r.useEffect(()=>{_.transcript&&_.transcript!==T.current&&(T.current=_.transcript,t(O=>[...O,{role:"user",content:_.transcript}]))},[_.transcript]),r.useEffect(()=>{_.response&&_.response!==V.current&&(V.current=_.response,t(O=>[...O,{role:"assistant",content:_.response}]))},[_.response]),r.useEffect(()=>{var O;(O=b.current)==null||O.scrollTo({top:b.current.scrollHeight,behavior:"smooth"})},[e]);const H=async()=>{const O=l.trim();if(!O||o)return;i(""),t(Y=>[...Y,{role:"user",content:O}]),u(!0);let q="",I=[];t(Y=>[...Y,{role:"assistant",content:""}]);try{for await(const Y of oj(O,d,A||void 0))if(Y.type==="text")q+=Y.content,t(X=>{const k=[...X];return k[k.length-1]={role:"assistant",content:q,toolCalls:I.length>0?[...I]:void 0},k});else if(Y.type==="tool_use"||Y.type==="tool_call"){const X={name:Y.name,input:Y.input};I=[...I,X],t(k=>{const U=[...k];return U[U.length-1]={role:"assistant",content:q,toolCalls:[...I]},U})}else Y.type==="tool_result"&&I.length>0&&(I=[...I],I[I.length-1]={...I[I.length-1],output:Y.content},t(X=>{const k=[...X];return k[k.length-1]={role:"assistant",content:q,toolCalls:[...I]},k}))}catch{q+=`
|
|
76
|
-
|
|
77
|
-
[Connection lost. Try sending your message again.]`,t(Y=>{const X=[...Y];return X[X.length-1]={role:"assistant",content:q,toolCalls:I.length>0?[...I]:void 0},X})}finally{u(!1)}},L=O=>{O.key==="Enter"&&!O.shiftKey&&(O.preventDefault(),H())},D=()=>{const O=crypto.randomUUID();localStorage.setItem("ohwow-chat-session-id",O),h(O),t([]),T.current="",V.current=""},B=O=>{Z(O),S(!1)},K=((le=E.find(O=>O.id===A))==null?void 0:le.name)||A||"Auto",J=f&&!l.trim()&&!o,se=x&&!f&&!l.trim()&&!o;return!N&&!w&&e.length===0?a.jsxs("div",{className:"flex flex-col h-full",children:[a.jsx("div",{className:"px-6 pt-6 pb-0",children:a.jsx(ze,{title:"Chat",subtitle:"Talk to your orchestrator"})}),a.jsx("div",{className:"flex-1 flex items-center justify-center",children:a.jsxs("div",{className:"text-center space-y-3 max-w-sm",children:[a.jsx("p",{className:"text-lg text-white font-medium",children:"Your orchestrator needs a brain"}),a.jsx("p",{className:"text-sm text-neutral-400",children:"Download an AI model to start chatting."}),a.jsx(P0,{to:"/settings",className:"inline-block bg-white text-black rounded-md px-4 py-2 text-sm font-medium hover:bg-neutral-200 transition-colors",children:"Go to Settings"})]})})]}):a.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[a.jsx("div",{className:"px-6 pt-6 pb-0 shrink-0",children:a.jsx(ze,{title:"Chat",subtitle:"Talk to your orchestrator",action:a.jsxs("div",{className:"flex items-center gap-2",children:[E.length>0&&a.jsxs("div",{className:"relative",children:[a.jsxs("button",{onClick:()=>S(!M),className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-neutral-400 border border-white/10 rounded-lg hover:text-white hover:border-white/20 transition-colors",children:[a.jsx("span",{className:"max-w-[120px] truncate",children:K}),a.jsx(Ya,{size:12})]}),M&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>S(!1)}),a.jsx("div",{className:"absolute right-0 top-full mt-1 z-50 bg-neutral-950 border border-white/10 rounded-lg py-1 min-w-[200px] shadow-lg",children:E.map(O=>a.jsxs("button",{onClick:()=>B(O.id),className:`w-full text-left px-3 py-2 text-xs hover:bg-white/[0.06] transition-colors ${A===O.id,"text-white"}`,children:[a.jsx("span",{className:"block",children:O.name}),a.jsx("span",{className:"block text-neutral-400 text-[10px]",children:O.provider})]},O.id))})]})]}),a.jsxs("button",{onClick:D,disabled:o,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-lg hover:bg-white/10 transition-colors disabled:opacity-50",title:"New session",children:[a.jsx(Mt,{size:14})," New chat"]})]})})}),a.jsxs("div",{ref:b,className:"flex-1 overflow-y-auto min-h-0 px-6 py-4 space-y-4",children:[e.length===0&&a.jsx("div",{className:"flex items-center justify-center h-full text-neutral-400 text-sm",children:"Ask your orchestrator anything about your agents, tasks, or business."}),e.map((O,q)=>a.jsx("div",{className:`max-w-2xl ${O.role==="user"?"ml-auto":""}`,children:a.jsxs("div",{className:`px-4 py-3 text-sm ${O.role==="user"?"bg-white/10 rounded-xl text-white":"text-neutral-200"}`,children:[a.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:O.content||(o&&q===e.length-1?"...":"")}),O.toolCalls&&O.toolCalls.length>0&&a.jsx("div",{className:"flex flex-wrap gap-2 mt-3",children:O.toolCalls.map((I,Y)=>a.jsx(Dq,{toolCall:I},Y))})]})},q))]}),a.jsx("div",{className:"border-t border-white/[0.08] px-6 py-4 shrink-0",children:a.jsxs("div",{className:"flex gap-2 max-w-2xl",children:[a.jsx("textarea",{value:l,onChange:O=>i(O.target.value),onKeyDown:L,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"}),J?a.jsx("button",{onClick:()=>_.startCall(),className:"bg-white/5 border border-white/10 text-white rounded-xl px-4 hover:bg-white/10 transition-colors",title:"Start voice chat",children:a.jsx(an,{size:18})}):se?a.jsxs("div",{className:"flex gap-2",children:[a.jsx("button",{disabled:!0,className:"border border-white/10 text-neutral-500 rounded-xl px-4 cursor-not-allowed",title:"Voice is available when Voicebox is running. Enable it in Settings.",children:a.jsx(V1,{size:18})}),a.jsx("button",{onClick:H,disabled:o||!l.trim(),className:"bg-white text-black rounded-xl px-4 hover:bg-neutral-200 transition-colors disabled:opacity-50",children:a.jsx(Mm,{size:18})})]}):a.jsx("button",{onClick:H,disabled:o||!l.trim(),className:"bg-white text-black rounded-xl px-4 hover:bg-neutral-200 transition-colors disabled:opacity-50",children:a.jsx(Mm,{size:18})})]})}),_.state!=="idle"&&a.jsx(Rq,{state:_.state,transcript:_.transcript,response:_.response,error:_.error,isMuted:_.isMuted,onToggleMute:_.toggleMute,onEndCall:_.endCall})]})}let Fq=0;function vu(){return`lmsg-${++Fq}-${Date.now()}`}function zq(e){return typeof e=="string"?e:Array.isArray(e)?e.map(t=>t.type==="text"&&typeof t.text=="string"?t.text:t.type==="tool_use"?`[Tool: ${t.name||"unknown"}]`:t.type==="tool_result"&&typeof t.content=="string"?t.content:"").filter(Boolean).join(`
|
|
78
|
-
`):String(e||"")}function Lm(e){return e?/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"):new Date(NaN)}function Vf(e){const t=Date.now()-Lm(e).getTime();if(t<0)return"Just now";const l=Math.floor(t/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 o=Math.floor(i/24);return o<7?`${o}d ago`:Lm(e).toLocaleDateString()}function $q(e){const t=Lm(e);return Number.isFinite(t.getTime())?t.toLocaleString([],{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):""}function OS(e){return e.trim().split(/\s+/).slice(0,2).map(l=>{var i;return((i=l[0])==null?void 0:i.toUpperCase())??""}).join("")||"?"}function qq(){var F;const[e,t]=r.useState([]),[l,i]=r.useState([]),[o,u]=r.useState([]),[d,h]=r.useState(!1),[f,p]=r.useState(!0),[x,g]=r.useState(0),[b,w]=r.useState(!1),[N,E]=r.useState([]),[j,A]=r.useState(!0),[Z,M]=r.useState(null),[S,_]=r.useState(null),[T,V]=r.useState(!1),[H,L]=tT();r.useEffect(()=>{const z=H.get("pair");z&&(_({kind:"crm",pair:z}),L({},{replace:!0}))},[]);const D=r.useRef([]),B=r.useRef({type:"orchestrator",id:null}),K=r.useRef(null);r.useEffect(()=>{me("/api/orchestrator/sessions?limit=50&offset=0").then(z=>{t(z.sessions||[]),g(z.total||0)}).catch(()=>{}).finally(()=>p(!1)),me("/api/agents").then(z=>i(z.data||[])).catch(()=>{})},[]);const[J,se]=r.useState(0);r.useEffect(()=>{const z=setInterval(()=>se(ae=>ae+1),5e3);return()=>clearInterval(z)},[]),r.useEffect(()=>{let z=!1;return me("/api/conversations").then(ae=>{z||(E(ae.data??[]),A(!1))}).catch(()=>{z||A(!1)}),()=>{z=!0}},[J]),r.useEffect(()=>{if(!S||S.kind!=="crm")return;let z=!1;return me(`/api/conversations/${encodeURIComponent(S.pair)}`).then(ae=>{z||M(ae.data)}).catch(()=>{}),()=>{z=!0}},[S,J]);const le=r.useCallback(async()=>{if(!(b||e.length>=x)){w(!0);try{const z=await me(`/api/orchestrator/sessions?limit=50&offset=${e.length}`);t(ae=>[...ae,...z.sessions||[]]),g(z.total||0)}finally{w(!1)}}},[e.length,x,b]),O=r.useMemo(()=>!S||S.kind!=="ai"?null:e.find(z=>z.id===S.sessionId)??null,[S,e]),q=(O==null?void 0:O.target_type)||"orchestrator",I=q==="agent"?((F=l.find(z=>z.id===(O==null?void 0:O.target_id)))==null?void 0:F.name)||"Agent":"Orchestrator",Y=r.useCallback(async z=>{var ae;try{(ae=K.current)==null||ae.abort();const fe=await me(`/api/orchestrator/sessions/${z}`),Ee=(Array.isArray(fe.messages)?fe.messages:[]).map(Me=>({role:Me.role==="user"?"user":"assistant",content:zq(Me.content)}));D.current=Ee,B.current={type:fe.target_type||"orchestrator",id:fe.target_id||null},_({kind:"ai",sessionId:z}),h(!1),u(Ee.map(Me=>({id:vu(),role:Me.role,content:Me.content}))),V(!1)}catch{}},[]),X=r.useCallback(z=>{_({kind:"crm",pair:z}),V(!1)},[]),k=r.useCallback(async(z,ae,fe)=>{try{const pe=z==="agent"&&fe?`Chat with ${fe}`:"New conversation",Ee=await me("/api/orchestrator/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:pe,messages:[],target_type:z,target_id:ae})}),Me={id:Ee.id,title:Ee.title||pe,message_count:0,target_type:z,target_id:ae,updated_at:new Date().toISOString()};t(_e=>[Me,..._e]),_({kind:"ai",sessionId:Ee.id}),B.current={type:z,id:ae},D.current=[],u([]),h(!1),V(!1)}catch{}},[]),U=r.useCallback(async z=>{try{await me(`/api/orchestrator/sessions/${z}`,{method:"DELETE"}),t(ae=>ae.filter(fe=>fe.id!==z)),_(ae=>ae&&ae.kind==="ai"&&ae.sessionId===z?null:ae),u([]),D.current=[]}catch{}},[]),W=r.useCallback(async z=>{var Ee;if(d||!S||S.kind!=="ai")return;D.current.push({role:"user",content:z});const ae=vu(),fe=vu();u(Me=>[...Me,{id:ae,role:"user",content:z},{id:fe,role:"assistant",content:"",isStreaming:!0}]),h(!0);let pe="";try{for await(const Me of oj(z,S.sessionId))Me.type==="text"&&(pe+=Me.content,u(_e=>_e.map(Pe=>Pe.id===fe?{...Pe,content:pe}:Pe)))}catch{pe+=`
|
|
79
|
-
|
|
80
|
-
[Connection lost. Try again.]`}finally{u(Pe=>Pe.map(Te=>Te.id===fe?{...Te,content:pe||"No response.",isStreaming:!1}:Te)),D.current.push({role:"assistant",content:pe}),h(!1);const Me=S.sessionId,_e=D.current;if(_e.length>0){const Pe=((Ee=_e.find(Te=>Te.role==="user"))==null?void 0:Ee.content)||"Untitled";t(Te=>Te.map(Ae=>Ae.id===Me?{...Ae,message_count:_e.length,title:Pe.slice(0,60),updated_at:new Date().toISOString()}:Ae))}}},[d,S]),$=r.useCallback(async(z,ae)=>{if(!(!S||S.kind!=="crm"))try{await me(`/api/conversations/${encodeURIComponent(S.pair)}/messages`,{method:"POST",body:JSON.stringify({text:z,autoApprove:ae})}),se(fe=>fe+1)}catch(fe){throw fe instanceof Error?fe:new Error("send failed")}},[S]);return a.jsxs("div",{className:"flex flex-col h-full",children:[a.jsx("div",{className:"px-6 pt-6 pb-0",children:a.jsx(ze,{title:"Messages",subtitle:"CRM conversations and AI chats in one inbox"})}),a.jsxs("div",{className:"flex flex-1 min-h-0 mx-6 mb-6 border border-white/[0.08] rounded-xl overflow-hidden",children:[a.jsx("div",{className:"hidden md:flex w-72 flex-shrink-0",children:a.jsx(U7,{threads:N,threadsLoading:j,sessions:e,sessionsLoading:f,agents:l,active:S,onSelectCrm:X,onSelectAi:Y,onNewAiConversation:k,onDeleteAi:U,total:x,onLoadMore:le,loadingMore:b})}),a.jsxs("div",{className:"md:hidden",children:[a.jsx("button",{onClick:()=>V(!0),className:"absolute top-[120px] left-8 z-30 p-2 bg-black border border-white/10 rounded-lg text-neutral-400 hover:text-white transition-colors",children:a.jsx(mM,{size:18})}),a.jsx(pa,{children:T&&a.jsxs(a.Fragment,{children:[a.jsx(Ve.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>V(!1),className:"fixed inset-0 bg-black/60 z-40"}),a.jsx(Ve.div,{initial:{x:-300},animate:{x:0},exit:{x:-300},transition:{type:"spring",stiffness:350,damping:30},className:"fixed inset-y-0 left-0 w-[300px] z-50 bg-black",children:a.jsx(U7,{threads:N,threadsLoading:j,sessions:e,sessionsLoading:f,agents:l,active:S,onSelectCrm:X,onSelectAi:Y,onNewAiConversation:k,onDeleteAi:U,total:x,onLoadMore:le,loadingMore:b,onClose:()=>V(!1)})})]})})]}),(S==null?void 0:S.kind)==="crm"?a.jsx(Uq,{detail:Z,onSend:$}):a.jsx(Iq,{messages:o,streaming:d,activeSessionId:(S==null?void 0:S.kind)==="ai"?S.sessionId:null,targetType:q,targetName:I,onSend:W})]})]})}function U7({threads:e,threadsLoading:t,sessions:l,sessionsLoading:i,agents:o,active:u,onSelectCrm:d,onSelectAi:h,onNewAiConversation:f,onDeleteAi:p,onClose:x,total:g,onLoadMore:b,loadingMore:w}){var L;const[N,E]=r.useState(!1),[j,A]=r.useState(null),Z=l.filter(D=>D.target_type==="orchestrator"),M=l.filter(D=>D.target_type==="agent"),S=new Map;for(const D of M){const B=D.target_id||"unknown";S.has(B)||S.set(B,{name:((L=o.find(K=>K.id===B))==null?void 0:L.name)||"Agent",sessions:[]}),S.get(B).sessions.push(D)}const _=D=>{j===D?(p(D),A(null)):(A(D),setTimeout(()=>A(null),3e3))},T=(u==null?void 0:u.kind)==="crm"?u.pair:null,V=(u==null?void 0:u.kind)==="ai"?u.sessionId:null,H=!t&&!i&&e.length===0&&l.length===0;return a.jsxs("div",{className:"flex flex-col h-full border-r border-white/[0.08] bg-black/40 w-full",children:[a.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-white/[0.08]",children:[a.jsx("span",{className:"text-sm font-medium text-white",children:"Inbox"}),a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("button",{onClick:()=>E(!N),className:"p-1.5 text-neutral-500 hover:text-white transition-colors rounded-md hover:bg-white/5",title:"New AI conversation",children:a.jsx(Mt,{size:16,weight:"bold"})}),x&&a.jsx("button",{onClick:x,className:"p-1.5 text-neutral-500 hover:text-white transition-colors md:hidden",children:a.jsx(La,{size:16,weight:"bold"})})]})]}),a.jsx(pa,{children:N&&a.jsx(Ve.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"border-b border-white/[0.06] overflow-hidden",children:a.jsxs("div",{className:"p-2 space-y-0.5",children:[a.jsx("p",{className:"text-[10px] uppercase tracking-widest text-neutral-600 px-2 py-1",children:"New AI conversation with"}),a.jsxs("button",{onClick:()=>{f("orchestrator",null),E(!1)},className:"flex items-center gap-2.5 w-full px-2 py-2 text-sm text-neutral-400 hover:text-white hover:bg-white/[0.06] rounded-lg transition-all",children:[a.jsx(sa,{size:14,weight:"bold",className:"text-uplink"}),"Orchestrator"]}),o.filter(D=>D.status==="active").map(D=>a.jsxs("button",{onClick:()=>{f("agent",D.id,D.name),E(!1)},className:"flex items-center gap-2.5 w-full px-2 py-2 text-sm text-neutral-400 hover:text-white hover:bg-white/[0.06] rounded-lg transition-all",children:[a.jsx(on,{size:14,weight:"bold",className:"text-terminal"}),a.jsxs("div",{className:"text-left min-w-0",children:[a.jsx("span",{className:"block truncate",children:D.name}),a.jsx("span",{className:"block text-[10px] text-neutral-600 truncate",children:D.role})]})]},D.id))]})})}),a.jsxs("div",{className:"flex-1 overflow-y-auto",children:[H&&a.jsxs("div",{className:"flex flex-col items-center justify-center h-40 text-center px-4",children:[a.jsx(K0,{size:24,className:"text-neutral-600 mb-2"}),a.jsx("p",{className:"text-xs text-neutral-600",children:"No conversations yet"}),a.jsx("button",{onClick:()=>E(!0),className:"mt-2 text-xs text-neutral-500 hover:text-white transition-colors",children:"Start one"})]}),(t||e.length>0)&&a.jsxs("div",{className:"py-1",children:[a.jsxs("div",{className:"flex items-center gap-1.5 px-4 py-1.5",children:[a.jsx(e$,{size:12,weight:"bold",className:"text-info"}),a.jsx("span",{className:"text-[10px] uppercase tracking-widest text-neutral-600",children:"Contacts"}),e.length>0&&a.jsx("span",{className:"text-[10px] text-neutral-600 ml-auto",children:e.length})]}),t&&e.length===0&&a.jsx("div",{className:"space-y-2 px-3 py-1",children:[...Array(2)].map((D,B)=>a.jsx("div",{className:"h-12 bg-white/[0.04] rounded-lg animate-pulse"},B))}),e.map(D=>{const B=D.conversationPair===T,J=(D.lastMessageText||D.lastPreview||"(no messages yet)").replace(/\s+/g," ").slice(0,60);return a.jsx("button",{onClick:()=>d(D.conversationPair),className:`w-full text-left px-3 mx-1 rounded-md transition-colors ${B?"bg-white/[0.08]":"hover:bg-white/[0.04]"}`,children:a.jsxs("div",{className:"flex items-start gap-2.5 py-2.5",children:[a.jsx("div",{className:"flex-none w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-[11px] font-semibold mt-0.5",children:OS(D.displayName)}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[a.jsx("span",{className:"text-sm text-white truncate font-medium",children:D.displayName}),a.jsx("span",{className:"text-[10px] text-neutral-600 flex-none tabular-nums",children:Vf(D.lastSeenAt)})]}),a.jsxs("div",{className:"flex items-center gap-1.5 mt-0.5",children:[a.jsxs("p",{className:"text-[11px] text-neutral-500 truncate flex-1",children:[D.lastMessageDirection==="outbound"?"You: ":"",J]}),D.unreadCount>0&&a.jsx("span",{className:"text-[10px] bg-info text-black font-medium rounded-full px-1.5",children:D.unreadCount}),D.pendingApprovals>0&&a.jsxs("span",{className:"text-[10px] bg-warning/20 text-warning rounded-full px-1.5",title:"pending drafts",children:[D.pendingApprovals,"·d"]})]})]})]})},D.id)})]}),i&&l.length===0&&a.jsx("div",{className:"space-y-2 p-3",children:[...Array(3)].map((D,B)=>a.jsx("div",{className:"h-14 bg-white/[0.04] rounded-lg animate-pulse"},B))}),!i&&Z.length>0&&a.jsx(G7,{label:"Orchestrator",icon:a.jsx(sa,{size:12,weight:"bold",className:"text-uplink"}),sessions:Z,activeId:V,confirmId:j,onSelect:h,onDelete:_}),!i&&[...S.entries()].map(([D,B])=>a.jsx(G7,{label:B.name,icon:a.jsx(on,{size:12,weight:"bold",className:"text-terminal"}),sessions:B.sessions,activeId:V,confirmId:j,onSelect:h,onDelete:_},D)),!i&&l.length>0&&l.length<g&&a.jsxs("div",{className:"flex flex-col items-center gap-1 py-3",children:[a.jsx("button",{onClick:b,disabled:w,className:"text-xs text-neutral-400 hover:text-white transition-colors disabled:opacity-50",children:w?"Loading...":`Load ${Math.min(50,g-l.length)} more`}),a.jsxs("span",{className:"text-[10px] text-neutral-600",children:[l.length," of ",g]})]})]})]})}function G7({label:e,icon:t,sessions:l,activeId:i,confirmId:o,onSelect:u,onDelete:d}){return a.jsxs("div",{className:"py-1",children:[a.jsxs("div",{className:"flex items-center gap-1.5 px-4 py-1.5",children:[t,a.jsx("span",{className:"text-[10px] uppercase tracking-widest text-neutral-600",children:e})]}),l.map(h=>a.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:[a.jsxs("button",{onClick:()=>u(h.id),className:"flex-1 text-left py-2.5 min-w-0",children:[a.jsx("p",{className:"text-sm text-white truncate leading-snug",children:h.title}),a.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[a.jsx("span",{className:"text-[11px] text-neutral-600",children:Vf(h.updated_at)}),a.jsxs("span",{className:"text-[11px] text-neutral-600",children:[h.message_count," msg",h.message_count!==1?"s":""]})]})]}),a.jsx("button",{onClick:f=>{f.stopPropagation(),d(h.id)},className:`p-1 rounded transition-colors shrink-0 ${o===h.id?"text-critical bg-critical/10":"text-neutral-700 hover:text-critical opacity-0 group-hover:opacity-100"}`,title:o===h.id?"Click again to confirm":"Delete",children:a.jsx(Yt,{size:14})})]},h.id))]})}function Iq({messages:e,streaming:t,activeSessionId:l,targetType:i,targetName:o,onSend:u}){const d=r.useRef(null),[h,f]=r.useState("");r.useEffect(()=>{var g;(g=d.current)==null||g.scrollTo({top:d.current.scrollHeight,behavior:"smooth"})},[e]);const p=()=>{const g=h.trim();!g||t||(u(g),f(""))},x=g=>{g.key==="Enter"&&!g.shiftKey&&(g.preventDefault(),p())};return l?a.jsxs("div",{className:"flex-1 flex flex-col min-h-0",children:[a.jsxs("div",{className:"flex items-center gap-2.5 px-5 py-3 border-b border-white/[0.08]",children:[i==="agent"?a.jsx(on,{size:16,weight:"bold",className:"text-terminal"}):a.jsx(sa,{size:16,weight:"bold",className:"text-uplink"}),a.jsx("span",{className:"text-sm font-medium text-white",children:o}),t&&a.jsx("span",{className:"text-[11px] text-uplink ml-auto animate-pulse",children:"Responding..."})]}),a.jsxs("div",{ref:d,className:"flex-1 overflow-y-auto px-5 py-4 space-y-4",children:[e.length===0&&a.jsx("div",{className:"flex items-center justify-center h-full text-neutral-500 text-sm",children:"Send a message to start the conversation."}),e.map(g=>a.jsxs("div",{className:`flex gap-3 ${g.role==="user"?"flex-row-reverse":""}`,children:[a.jsx("div",{className:`w-7 h-7 rounded-full flex-shrink-0 flex items-center justify-center text-xs font-bold ${g.role==="user"?"bg-white/10 text-white":"bg-uplink/10 text-uplink"}`,children:g.role==="user"?"You":o[0]||"O"}),a.jsxs("div",{className:`max-w-[80%] rounded-xl px-4 py-3 text-sm ${g.role==="user"?"bg-white/[0.08] text-white":"bg-white/[0.03] border border-white/[0.08] text-neutral-200"}`,children:[a.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:g.content||(g.isStreaming?"...":"")}),g.isStreaming&&a.jsx("span",{className:"inline-block w-1.5 h-4 bg-uplink/70 animate-pulse ml-0.5 align-text-bottom rounded-sm"})]})]},g.id))]}),a.jsx("div",{className:"border-t border-white/[0.08] px-5 py-3",children:a.jsxs("div",{className:"flex gap-2 max-w-2xl",children:[a.jsx("textarea",{value:h,onChange:g=>f(g.target.value),onKeyDown:x,placeholder:"Type a message...",rows:1,disabled:t,className:"flex-1 bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none disabled:opacity-50"}),a.jsx("button",{onClick:p,disabled:t||!h.trim(),className:"bg-white text-black rounded-xl px-4 hover:bg-neutral-200 transition-colors disabled:opacity-50",children:a.jsx(Mm,{size:18})})]})})]}):a.jsx("div",{className:"flex-1 flex items-center justify-center",children:a.jsxs("div",{className:"text-center space-y-3",children:[a.jsx("div",{className:"w-14 h-14 rounded-full bg-white/[0.06] flex items-center justify-center mx-auto",children:a.jsx(K0,{size:28,weight:"duotone",className:"text-neutral-500"})}),a.jsx("h3",{className:"text-lg font-semibold text-white",children:"Messages"}),a.jsx("p",{className:"text-sm text-neutral-500 max-w-xs",children:"Select a contact, orchestrator, or agent conversation from the sidebar."})]})})}function Bq({m:e}){var d;if(e.direction==="unknown"&&!e.text)return null;const t=e.direction==="outbound",l=e.messageId.startsWith("outbound-"),i=(d=e.text)==null?void 0:d.match(/\[image:\s*([^\]]+)\]/i),o=i?e.text.replace(i[0],"").trim():e.text,u=i?i[1].split(",").map(h=>h.trim()).filter(Boolean):[];return a.jsx("div",{className:`flex ${t?"justify-end":"justify-start"} mb-2`,children:a.jsxs("div",{className:`max-w-[75%] rounded-2xl px-3.5 py-2 text-sm ${t?"bg-info/80 text-black rounded-br-sm":"bg-white/[0.08] text-neutral-100 rounded-bl-sm"}`,children:[o&&a.jsx("p",{className:"whitespace-pre-wrap",children:o}),u.length>0&&a.jsx("div",{className:"mt-2 space-y-1",children:u.map(h=>a.jsxs("div",{className:"text-[10px] italic opacity-70",children:["[attachment: ",h.split("/").pop(),"]"]},h))}),!o&&e.isMedia&&u.length===0&&a.jsx("p",{className:"italic text-xs opacity-70",children:"[media attachment]"}),a.jsxs("p",{className:`text-[10px] mt-1 ${t?"text-black/60":"text-neutral-500"}`,children:[$q(e.observedAt),l&&t&&a.jsx("span",{className:"ml-1",children:"· delivering"})]})]})})}function Pq({onSend:e,suggestedDraft:t}){const[l,i]=r.useState(""),[o,u]=r.useState(!0),[d,h]=r.useState(!1),[f,p]=r.useState(null),x=r.useRef(null);r.useEffect(()=>{t&&x.current!==t&&!l&&(i(t),x.current=t)},[t]);const g=async()=>{const b=l.trim();if(!(!b||d)){h(!0),p(null);try{await e(b,o),i(""),x.current=null}catch(w){p(w instanceof Error?w.message:"Could not queue reply.")}finally{h(!1)}}};return a.jsxs("div",{className:"border-t border-white/[0.08] bg-white/[0.01] p-3",children:[t&&l===t&&a.jsx("p",{className:"text-[10px] text-neutral-500 mb-1.5",children:"Loaded from analyst draft. Edit freely before sending."}),f&&a.jsx("p",{className:"text-[11px] text-critical mb-1.5",children:f}),a.jsxs("div",{className:"flex items-end gap-2",children:[a.jsx("textarea",{value:l,onChange:b=>i(b.target.value),onKeyDown:b=>{b.key==="Enter"&&(b.metaKey||b.ctrlKey)&&(b.preventDefault(),g())},placeholder:"Type a reply. ⌘+Enter to send.",rows:2,className:"flex-1 bg-white/[0.04] border border-white/[0.08] rounded-md px-3 py-2 text-sm text-white placeholder-neutral-600 outline-none focus:border-info/50 resize-none"}),a.jsx("button",{onClick:()=>void g(),disabled:!l.trim()||d,className:"bg-info text-black font-medium text-sm px-4 py-2 rounded-md disabled:opacity-40 disabled:cursor-not-allowed hover:brightness-110",children:d?"Queuing.":o?"Send":"Queue"})]}),a.jsxs("div",{className:"flex items-center justify-between mt-2 text-[11px]",children:[a.jsxs("label",{className:"flex items-center gap-1.5 text-neutral-400 cursor-pointer select-none",children:[a.jsx("input",{type:"checkbox",checked:o,onChange:b=>u(b.target.checked),className:"accent-info"}),"Auto-approve (send on next reply-dispatcher tick)"]}),a.jsxs("span",{className:"text-neutral-600 tabular-nums",children:[l.length," / 1000"]})]})]})}function Uq({detail:e,onSend:t}){var u,d;const l=r.useRef(null),i=(e==null?void 0:e.messages.length)??0;r.useEffect(()=>{l.current&&(l.current.scrollTop=l.current.scrollHeight)},[i]);const o=r.useMemo(()=>{if(!e)return null;const h=e.nextSteps.find(f=>f.status==="open"&&f.draftReply);return(h==null?void 0:h.draftReply)??null},[e]);return e?a.jsxs("div",{className:"flex-1 flex flex-col min-h-0",children:[a.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-b border-white/[0.08]",children:[a.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[a.jsx("div",{className:"flex-none w-9 h-9 rounded-full bg-white/10 flex items-center justify-center text-xs font-semibold",children:OS(e.thread.displayName)}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:"text-sm font-semibold truncate",children:e.thread.displayName}),a.jsxs("p",{className:"text-[11px] text-neutral-500 truncate",children:[(u=e.contact)!=null&&u.handle?`@${e.contact.handle} · `:"",(d=e.contact)!=null&&d.source?`${e.contact.source} · `:"","last seen ",Vf(e.thread.lastSeenAt),e.thread.counterpartyUserId&&` · uid ${e.thread.counterpartyUserId}`]})]})]}),a.jsxs("div",{className:"text-[11px] text-neutral-500 tabular-nums flex-none",children:[e.messages.length," msg · ",e.approvals.pending.length," pending · ",e.approvals.applied.length," sent"]})]}),e.nextSteps.some(h=>h.status==="open"||h.status==="dispatched")&&a.jsxs("div",{className:"border-b border-white/[0.06] bg-info/[0.03] px-5 py-2.5",children:[a.jsx("p",{className:"text-[10px] uppercase tracking-wider text-info mb-1.5",children:"Analyst next-steps for this contact"}),a.jsx("ul",{className:"space-y-1",children:e.nextSteps.slice(0,3).map(h=>a.jsxs("li",{className:"text-xs",children:[a.jsxs("span",{className:`uppercase tracking-wider text-[10px] mr-2 ${h.status==="open"?"text-warning":h.status==="dispatched"?"text-info":h.status==="shipped"?"text-success":"text-neutral-500"}`,children:[h.stepType.replace(/_/g," ")," · ",h.status]}),a.jsx("span",{className:"text-neutral-400",children:h.text.slice(0,140)}),h.sendConfirmed===!0&&a.jsx("span",{className:"ml-2 text-[10px] text-success",children:"✓ confirmed"})]},h.id))})]}),a.jsxs("div",{ref:l,className:"flex-1 overflow-y-auto px-5 py-4",children:[e.messages.length===0?a.jsx("p",{className:"text-sm text-neutral-500 text-center mt-10",children:"No messages observed yet for this thread."}):a.jsx(pa,{initial:!1,children:e.messages.map(h=>a.jsx(Ve.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.15},children:a.jsx(Bq,{m:h})},h.id))}),e.approvals.pending.length>0&&a.jsxs("div",{className:"mt-4 border border-warning/30 bg-warning/[0.04] rounded-lg p-3",children:[a.jsx("p",{className:"text-[10px] uppercase tracking-wider text-warning mb-2",children:"Pending outbound · awaiting operator"}),e.approvals.pending.map(h=>a.jsxs("div",{className:"text-xs text-neutral-300 mb-1.5 last:mb-0",children:[a.jsx("span",{className:"font-mono text-[10px] text-neutral-500",children:h.id.slice(0,8)})," ",a.jsx("span",{className:"uppercase tracking-wider text-[10px] text-neutral-500",children:h.status}),a.jsxs("p",{className:"mt-0.5",children:['"',h.text,'"']})]},h.id))]})]}),a.jsx(Pq,{onSend:t,suggestedDraft:o})]}):a.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-neutral-500",children:"Loading conversation."})}function FS(e){const t=Math.floor(e/86400),l=Math.floor(e%86400/3600),i=Math.floor(e%3600/60),o=[];return t&&o.push(`${t}d`),l&&o.push(`${l}h`),o.push(`${i}m`),o.join(" ")}function Gq(){const{data:e}=we("/health"),{data:t}=we("/api/system/stats");return a.jsxs(a.Fragment,{children:[e&&a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Runtime"}),a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[a.jsx(Ha,{label:"Status",value:e.status,valueColor:e.status==="healthy"?"text-success":"text-warning"}),a.jsx(Ha,{label:"Version",value:`v${e.version}`}),a.jsx(Ha,{label:"Uptime",value:FS(e.uptime)}),a.jsx(Ha,{label:"Database",value:e.database}),t&&a.jsx(Ha,{label:"Memory",value:`${t.memoryMb} MB`})]})]}),t&&a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Stats"}),a.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:[a.jsx(Ai,{label:"Agents",value:String(t.totalAgents)}),a.jsx(Ai,{label:"Tasks",value:String(t.totalTasks)}),a.jsx(Ai,{label:"Tokens",value:t.totalTokens.toLocaleString()}),a.jsx(Ai,{label:"Cost",value:`$${(t.totalCostCents/100).toFixed(2)}`})]})]})]})}function Ha({label:e,value:t,valueColor:l}){return a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsx("span",{className:"text-sm text-neutral-400",children:e}),a.jsx("span",{className:`text-sm font-medium ${l||""}`,children:t})]})}function Ai({label:e,value:t}){return a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:e}),a.jsx("p",{className:"text-lg font-bold",children:t})]})}function Yq(){const{data:e}=we("/api/settings/tunnel_url"),{data:t}=we("/api/settings/cloud_url"),{data:l,refetch:i}=we("/api/settings/notification_channels"),{data:o,refetch:u}=we("/api/settings/global_mcp_servers"),d=e==null?void 0:e.value,[h,f]=r.useState(!1),[p,x]=r.useState(!1),g=(()=>{try{return o!=null&&o.value?JSON.parse(o.value):[]}catch{return[]}})(),b=(()=>{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=r.useCallback(async E=>{x(!0);try{await me("/api/settings/global_mcp_servers",{method:"PUT",body:JSON.stringify({value:JSON.stringify(E)})}),u(),de("success","Global MCP servers updated")}catch{de("error","Couldn't update MCP servers")}finally{x(!1)}},[u]),N=r.useCallback(async E=>{f(!0);const j={...b,[E]:!b[E]};try{await me("/api/settings/notification_channels",{method:"PUT",body:JSON.stringify({value:JSON.stringify(j)})}),i(),de("success",`${E} notifications ${j[E]?"enabled":"disabled"}`)}catch{de("error","Couldn't update notification settings")}finally{f(!1)}},[b,i]);return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Webhooks"}),a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[a.jsx(Ha,{label:"Tunnel",value:d?"Active":"Not connected",valueColor:d?"text-success":"text-neutral-400"}),d&&a.jsxs(a.Fragment,{children:[a.jsx(Ha,{label:"URL",value:d}),a.jsx(Ha,{label:"GHL Hook",value:`${d}/webhooks/ghl`})]}),!d&&(t==null?void 0:t.value)&&a.jsx(Ha,{label:"Cloud proxy",value:t.value,valueColor:"text-success"})]})]}),a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-1",children:"MCP Servers"}),a.jsx("p",{className:"text-xs text-neutral-400 mb-3",children:"MCP servers extend what your AI team can do. Connect tools like GitHub, databases, or file systems."}),a.jsx(TS,{servers:g,onChange:w,disabled:p})]}),a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Notifications"}),a.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:["email","slack","telegram","whatsapp"].map(E=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsx("span",{className:"text-sm capitalize",children:E}),a.jsx(_1,{checked:b[E],onChange:()=>N(E),disabled:h,size:"sm"})]},E))})]})]})}async function bu(e,t,l){const i=e.body.getReader(),o=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+=o.decode(h,{stream:!0});const f=u.split(`
|
|
81
|
-
`);u=f.pop()||"";for(const p of f)if(p.startsWith("data: ")){const x=p.slice(6).trim();if(x==="[DONE]")return;let g;try{g=JSON.parse(x)}catch{continue}t(g)}}}finally{i.releaseLock()}}function Kq(){const[e,t]=r.useState({installed:[],catalog:[],activeModel:"",orchestratorModel:"",device:null,memoryTier:"",ollamaRunning:!1,loading:!0,catalogLoading:!1,catalogLoaded:!1,downloading:null,openRouterKey:"",openRouterModel:"",openRouterConnected:!1,cloudProvider:"anthropic"}),l=r.useRef(null);r.useEffect(()=>()=>{var A;(A=l.current)==null||A.abort()},[]);const i=r.useCallback(async()=>{t(A=>({...A,loading:!0}));try{const A=await me("/api/models/installed");t(Z=>({...Z,installed:A.data.models,activeModel:A.data.activeModel,orchestratorModel:A.data.orchestratorModel||"",ollamaRunning:A.data.ollamaRunning,loading:!1}))}catch{t(A=>({...A,loading:!1}))}},[]),o=r.useCallback(async()=>{t(A=>({...A,catalogLoading:!0}));try{const A=await me("/api/models/catalog");t(Z=>({...Z,catalog:A.data.catalog,device:A.data.device,memoryTier:A.data.memoryTier,catalogLoading:!1,catalogLoaded:!0}))}catch{t(A=>({...A,catalogLoading:!1}))}},[]),u=r.useCallback(async A=>{let Z="";t(M=>(Z=M.activeModel,{...M,activeModel:A,installed:M.installed.map(S=>({...S,isActive:S.tag===A}))}));try{await me("/api/models/active",{method:"PUT",body:JSON.stringify({model:A})}),de("success","Active model updated")}catch{t(M=>({...M,activeModel:Z,installed:M.installed.map(S=>({...S,isActive:S.tag===Z}))})),de("error","Couldn't update active model")}},[]),d=r.useCallback(async A=>{let Z="";t(M=>(Z=M.orchestratorModel,{...M,orchestratorModel:A,installed:M.installed.map(S=>({...S,isOrchestrator:A?S.tag===A:!1}))}));try{await me("/api/models/orchestrator",{method:"PUT",body:JSON.stringify({model:A})}),de("success",A?"Orchestrator model updated":"Orchestrator reset to auto")}catch{t(M=>({...M,orchestratorModel:Z,installed:M.installed.map(S=>({...S,isOrchestrator:Z?S.tag===Z:!1}))})),de("error","Couldn't update orchestrator model")}},[]),h=r.useCallback(async A=>{t(Z=>({...Z,installed:Z.installed.map(M=>M.tag===A?{...M,status:"installed"}:M)}));try{await me(`/api/models/${encodeURIComponent(A)}/unload`,{method:"POST"}),de("success","Model unloaded from memory")}catch{await i(),de("error","Couldn't unload model")}},[i]),f=r.useCallback(async A=>{if(l.current)return;const Z=new AbortController;l.current=Z,t(M=>({...M,downloading:{tag:A,percent:0,message:"Setting things up..."}}));try{const M=await fetch("/api/onboarding/ensure-ollama",{method:"POST",signal:Z.signal});if(!M.ok||!M.body)throw new Error("Couldn't start Ollama");await bu(M,V=>{if(t(H=>H.downloading?{...H,downloading:{...H.downloading,message:V.message}}:H),V.error)throw new Error(V.error)},Z.signal),t(V=>V.downloading?{...V,downloading:{...V.downloading,percent:0,message:"Starting download..."}}:V);const S=un(),_=await fetch("/api/onboarding/download-model",{method:"POST",headers:{"Content-Type":"application/json",...S?{Authorization:`Bearer ${S}`}:{}},body:JSON.stringify({tag:A}),signal:Z.signal});if(!_.ok||!_.body)throw new Error("Couldn't start download");await bu(_,V=>{if(t(H=>H.downloading?{...H,downloading:{...H.downloading,message:V.message,percent:V.percent??H.downloading.percent}}:H),V.error)throw new Error(V.error)},Z.signal),t(V=>({...V,downloading:null})),de("success","Model installed");const T=await me("/api/models/installed");t(V=>({...V,installed:T.data.models,activeModel:T.data.activeModel,orchestratorModel:T.data.orchestratorModel||"",ollamaRunning:T.data.ollamaRunning,catalog:V.catalog.map(H=>H.tag===A?{...H,installed:!0}:H)}))}catch(M){if(Z.signal.aborted)return;t(S=>({...S,downloading:null})),de("error",M instanceof Error?M.message:"Download failed")}finally{l.current=null}},[]),p=r.useCallback(()=>{var A;(A=l.current)==null||A.abort(),t(Z=>({...Z,downloading:null}))},[]),x=r.useCallback(async A=>{try{await me(`/api/models/${encodeURIComponent(A)}`,{method:"DELETE"}),de("success","Model deleted");const Z=await me("/api/models/installed");return t(M=>({...M,installed:Z.data.models,activeModel:Z.data.activeModel,orchestratorModel:Z.data.orchestratorModel||"",ollamaRunning:Z.data.ollamaRunning,catalog:M.catalog.map(S=>S.tag===A?{...S,installed:!1}:S)})),!0}catch{return de("error","Couldn't delete model"),!1}},[]),g=r.useCallback(async()=>{t(A=>({...A,downloading:{tag:"",percent:0,message:"Starting Ollama..."}}));try{const A=await fetch("/api/onboarding/ensure-ollama",{method:"POST"});if(!A.ok||!A.body)throw new Error("Couldn't start Ollama");await bu(A,Z=>{if(t(M=>M.downloading?{...M,downloading:{...M.downloading,message:Z.message}}:M),Z.error)throw new Error(Z.error)}),t(Z=>({...Z,downloading:null,ollamaRunning:!0})),de("success","Ollama is running"),await i()}catch(A){t(Z=>({...Z,downloading:null})),de("error",A instanceof Error?A.message:"Couldn't start Ollama")}},[i]),b=r.useCallback(async()=>{var A;try{const[Z,M]=await Promise.all([me("/api/settings/openrouter_api_key"),me("/api/settings/openrouter_model")]),S=!!((A=Z.data)!=null&&A.value);let _=!1;if(S)try{_=(await me("/api/models/openrouter")).data.configured}catch{_=!1}t(T=>{var V,H;return{...T,openRouterKey:((V=Z.data)==null?void 0:V.value)||"",openRouterModel:((H=M.data)==null?void 0:H.value)||"",openRouterConnected:_}})}catch{}},[]),w=r.useCallback(async A=>{try{if(await me("/api/settings/openrouter_api_key",{method:"PUT",body:JSON.stringify({value:A})}),A)try{const Z=await me("/api/models/openrouter"),M=Z.data.configured&&Z.data.models.length>0;t(S=>({...S,openRouterKey:"****"+A.slice(-4),openRouterConnected:M})),de("success",M?"OpenRouter connected":"Key saved but couldn't reach OpenRouter")}catch{t(Z=>({...Z,openRouterKey:"****"+A.slice(-4),openRouterConnected:!1})),de("success","OpenRouter API key saved")}else t(Z=>({...Z,openRouterKey:"",openRouterConnected:!1})),de("success","OpenRouter API key removed")}catch{de("error","Couldn't save OpenRouter API key")}},[]),N=r.useCallback(async A=>{try{await me("/api/settings/openrouter_model",{method:"PUT",body:JSON.stringify({value:A})}),t(Z=>({...Z,openRouterModel:A})),de("success","OpenRouter model updated")}catch{de("error","Couldn't update OpenRouter model")}},[]),E=r.useCallback(async()=>{var A;try{const M=(A=(await me("/api/settings/cloud_provider")).data)==null?void 0:A.value;(M==="anthropic"||M==="openrouter")&&t(S=>({...S,cloudProvider:M}))}catch{}},[]),j=r.useCallback(async A=>{try{await me("/api/settings/cloud_provider",{method:"PUT",body:JSON.stringify({value:A})}),t(Z=>({...Z,cloudProvider:A})),de("success",`Cloud provider set to ${A==="anthropic"?"Anthropic":"OpenRouter"}`)}catch{de("error","Couldn't update cloud provider")}},[]);return{...e,fetchInstalled:i,fetchCatalog:o,setActiveModel:u,setOrchestratorModel:d,unloadModel:h,installModel:f,cancelDownload:p,deleteModel:x,startOllama:g,fetchOpenRouter:b,saveOpenRouterKey:w,setOpenRouterModel:N,fetchCloudProvider:E,setCloudProvider:j}}const Xq=1e4;function Qq(){const[e,t]=r.useState(null),[l,i]=r.useState(!0),o=r.useRef(0),u=r.useCallback(async()=>{try{const d=await me("/api/inference/status");t(d)}catch{}finally{i(!1)}},[]);return r.useEffect(()=>{u();const d=setInterval(u,Xq);return()=>clearInterval(d)},[u]),Hf(r.useCallback(d=>{(d==="model:switch-started"||d==="model:switch-complete"||d==="model:switch-failed"||d==="inference:capabilities-changed")&&(o.current++,u())},[u])),{status:e,loading:l,refetch:u}}function Jq(e){return e<1e3?`${e}ms`:`${(e/1e3).toFixed(1)}s`}function yu({label:e,color:t}){return a.jsx("span",{className:`inline-flex items-center gap-0.5 px-1.5 py-0.5 text-[10px] font-medium rounded ${t}`,children:e})}function Wq({models:e,downloading:t,onSetActive:l,onSetOrchestrator:i,onUnload:o,onDelete:u,onCancelDownload:d}){return e.length===0&&!t?a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg p-6 text-center",children:[a.jsx("p",{className:"text-sm text-neutral-400 mb-1",children:"No models installed yet"}),a.jsx("p",{className:"text-xs text-neutral-400/70",children:"Browse the catalog below to install your first model"})]}):a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[t&&!e.some(h=>h.tag===t.tag)&&a.jsxs("div",{className:"px-4 py-3",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"text-sm font-medium",children:t.tag}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(ct,{size:14,className:"animate-spin text-white"}),a.jsxs("span",{className:"text-xs text-neutral-400",children:[t.percent,"%"]}),a.jsx("button",{onClick:d,className:"text-[11px] text-neutral-400 hover:text-critical transition-colors",children:"Cancel"})]})]}),a.jsxs("div",{className:"mt-2",children:[a.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-1.5",children:a.jsx("div",{className:"bg-white h-1.5 rounded-full transition-all duration-300",style:{width:`${t.percent}%`}})}),a.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:t.message})]})]}),e.map(h=>{const f=(t==null?void 0:t.tag)===h.tag,p=h.totalRequests>0?Jq(Math.round(h.totalDurationMs/h.totalRequests)):null;return a.jsxs("div",{className:`px-4 py-3 ${h.isActive?"border-l-2 border-l-white bg-white/5":""}`,children:[a.jsxs("div",{className:"flex items-start justify-between gap-3",children:[a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[a.jsx("span",{className:"text-sm font-medium truncate",children:h.label}),h.family&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/[0.06] rounded text-neutral-400 font-mono",children:h.family}),h.isActive&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/10 text-white rounded font-medium",children:"Active"}),h.isOrchestrator&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-purple-500/20 text-purple-400 rounded font-medium",children:"Orchestrator"}),h.status==="loaded"&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-success/20 text-success rounded",children:"Loaded"})]}),a.jsxs("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[h.mlxModelId&&a.jsx(yu,{label:"MLX",color:"bg-emerald-500/20 text-emerald-400"}),h.vision&&a.jsx(yu,{label:"Vision",color:"bg-purple-500/20 text-purple-400"}),h.toolCalling&&a.jsx(yu,{label:"Tools",color:"bg-white/10 text-neutral-300"}),h.sizeGB&&a.jsxs("span",{className:"text-[10px] text-neutral-400",children:[h.sizeGB," GB"]}),h.tag!==h.label&&a.jsx("span",{className:"text-[10px] text-neutral-600 font-mono",children:h.tag})]})]}),a.jsxs("div",{className:"hidden sm:flex items-center gap-4 text-[11px] text-neutral-400 shrink-0",children:[h.totalRequests>0&&a.jsxs("span",{children:[h.totalRequests.toLocaleString()," ",h.totalRequests===1?"request":"requests"]}),p&&a.jsxs("span",{children:["avg ",p]})]}),a.jsx("div",{className:"flex items-center gap-1.5 shrink-0",children:f?a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(ct,{size:14,className:"animate-spin text-white"}),a.jsxs("span",{className:"text-xs text-neutral-400",children:[t.percent,"%"]}),a.jsx("button",{onClick:d,className:"text-[11px] text-neutral-400 hover:text-critical transition-colors",children:"Cancel"})]}):a.jsxs(a.Fragment,{children:[!h.isActive&&a.jsx("button",{onClick:()=>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:a.jsx(Kz,{size:14})}),a.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:a.jsx(gz,{size:14})}),h.status==="loaded"&&!h.isActive&&!h.isOrchestrator&&a.jsx("button",{onClick:()=>o(h.tag),className:"px-2 py-1 text-[11px] text-neutral-400 hover:text-warning hover:bg-warning/10 rounded transition-colors",title:"Unload from memory",children:a.jsx(Sz,{size:14})}),a.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:a.jsx(Yt,{size:14})})]})})]}),f&&a.jsxs("div",{className:"mt-2",children:[a.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-1.5",children:a.jsx("div",{className:"bg-white h-1.5 rounded-full transition-all duration-300",style:{width:`${t.percent}%`}})}),a.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:t.message})]})]},h.tag)})]})}const Y7={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 eI({capacity:e}){const t=e.totalVramGB>0?Math.min(100,Math.round(e.usedVramGB/e.totalVramGB*100)):0,l=t>80?"bg-red-500":t>60?"bg-amber-500":"bg-emerald-500";return a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"text-[10px] text-neutral-500 whitespace-nowrap",children:"VRAM"}),a.jsx("div",{className:"w-20 bg-white/[0.06] rounded-full h-1.5",children:a.jsx("div",{className:`${l} h-1.5 rounded-full transition-all duration-500`,style:{width:`${t}%`}})}),a.jsxs("span",{className:"text-[10px] text-neutral-500 whitespace-nowrap",children:[e.usedVramGB.toFixed(1),"/",e.totalVramGB.toFixed(0)," GB"]})]})}function tI({activeProvider:e,mlxModel:t,switchInProgress:l,switchState:i,capacity:o}){const u=Y7[e]||Y7.ollama;return a.jsx("div",{className:"bg-white/[0.03] border border-white/[0.06] rounded-lg px-3 py-2 mb-3",children:a.jsxs("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("div",{className:`flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-medium ${u.bg} ${u.color}`,children:[e==="mlx"?a.jsx(sa,{size:10,weight:"fill"}):a.jsx(jz,{size:10}),u.label]}),t&&a.jsx("span",{className:"text-[10px] text-neutral-500 font-mono truncate max-w-[200px]",children:t})]}),(l||i)&&a.jsx("div",{className:"flex items-center gap-1.5",children:(i==null?void 0:i.status)==="switching"||l?a.jsxs(a.Fragment,{children:[a.jsx(ct,{size:12,className:"animate-spin text-sky-400"}),a.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"?a.jsxs(a.Fragment,{children:[a.jsx(v0,{size:12,className:"text-emerald-400"}),a.jsxs("span",{className:"text-[10px] text-emerald-400",children:["Now using ",i.model," via ",i.provider]})]}):(i==null?void 0:i.status)==="failed"?a.jsxs(a.Fragment,{children:[a.jsx(os,{size:12,className:"text-red-400"}),a.jsxs("span",{className:"text-[10px] text-red-400",children:["Switch failed: ",i.reason]})]}):null}),o&&o.totalVramGB>0&&a.jsx(eI,{capacity:o})]})})}const aI=[{value:"all",label:"All"},{value:"fits",label:"Fits your device"},{value:"vision",label:"Vision"},{value:"tools",label:"Tool calling"}];function nI(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 rI({catalog:e,device:t,memoryTier:l,loading:i,loaded:o,downloading:u,onInstall:d,onCancelDownload:h,onFetchCatalog:f}){const[p,x]=r.useState(!1),[g,b]=r.useState("all"),w=()=>{!p&&!o&&f(),x(A=>!A)},N=e.filter(A=>g==="fits"?A.fits:g==="vision"?A.vision:g==="tools"?A.toolCalling:!0),j=["tiny","small","medium","large","xlarge"].map(A=>({tier:A,models:N.filter(Z=>Z.tier===A)})).filter(A=>A.models.length>0);return a.jsxs("div",{children:[a.jsxs("button",{onClick:w,className:"flex items-center gap-2 text-sm font-medium text-neutral-400 uppercase tracking-wider hover:text-white transition-colors mb-3",children:["Browse Models",p?a.jsx(yz,{size:14}):a.jsx(Ya,{size:14})]}),p&&a.jsxs(a.Fragment,{children:[t&&a.jsxs("div",{className:"bg-white/5 rounded-lg p-3 mb-4 text-xs text-neutral-400",children:[a.jsx("span",{children:t.cpuModel}),a.jsx("span",{className:"mx-1.5",children:"·"}),a.jsxs("span",{children:[t.totalMemoryGB," GB RAM"]}),a.jsx("span",{className:"mx-1.5",children:"·"}),a.jsxs("span",{children:[l," tier"]})]}),a.jsx("div",{className:"flex gap-1.5 mb-4 flex-wrap",children:aI.map(A=>a.jsx("button",{onClick:()=>b(A.value),className:`px-2.5 py-1 text-[11px] rounded-full border transition-colors ${g===A.value?"border-white/20 bg-white/10 text-white":"border-white/[0.08] text-neutral-400 hover:border-white/20"}`,children:A.label},A.value))}),i?a.jsxs("div",{className:"flex items-center justify-center py-8 gap-2 text-sm text-neutral-400",children:[a.jsx(ct,{size:16,className:"animate-spin"})," Loading catalog..."]}):a.jsxs("div",{className:"space-y-4",children:[j.map(A=>a.jsxs("div",{children:[a.jsx("h4",{className:"text-[11px] font-medium text-neutral-400/70 uppercase tracking-wider mb-2",children:nI(A.tier)}),a.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:A.models.map(Z=>{const M=(u==null?void 0:u.tag)===Z.tag,S=!u&&!Z.installed;return a.jsxs("div",{className:`px-4 py-3 ${Z.fits?"":"opacity-50"}`,children:[a.jsxs("div",{className:"flex items-start justify-between gap-3",children:[a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[a.jsx("span",{className:"text-sm font-medium",children:Z.label}),a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/[0.06] rounded text-neutral-400 font-mono",children:Z.family}),Z.recommended&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-success/20 text-success rounded font-medium",children:"Recommended"})]}),a.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:Z.description}),a.jsxs("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[Z.vision&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-purple-500/20 text-purple-400 rounded",children:"Vision"}),Z.toolCalling&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/10 text-neutral-300 rounded",children:"Tools"}),a.jsxs("span",{className:"text-[10px] text-neutral-400",children:[Z.sizeGB," GB"]}),!Z.fits&&a.jsxs("span",{className:"text-[10px] text-warning",children:["Needs ",Z.minRAM," GB RAM"]})]})]}),a.jsx("div",{className:"shrink-0",children:Z.installed?a.jsx("span",{className:"text-[11px] text-success px-2 py-1",children:"Installed"}):M?a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(ct,{size:14,className:"animate-spin text-white"}),a.jsxs("span",{className:"text-xs text-neutral-400",children:[u.percent,"%"]}),a.jsx("button",{onClick:h,className:"text-[11px] text-neutral-400 hover:text-critical transition-colors",children:"Cancel"})]}):a.jsxs("button",{onClick:()=>d(Z.tag),disabled:!S||!Z.fits,className:"flex items-center gap-1 px-2.5 py-1 text-[11px] font-medium bg-white text-black rounded hover:bg-neutral-200 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:[a.jsx(Mz,{size:12})," Install"]})})]}),M&&a.jsxs("div",{className:"mt-2",children:[a.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-1.5",children:a.jsx("div",{className:"bg-white h-1.5 rounded-full transition-all duration-300",style:{width:`${u.percent}%`}})}),a.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:u.message})]})]},Z.tag)})})]},A.tier)),N.length===0&&a.jsx("p",{className:"text-sm text-neutral-400 text-center py-4",children:"No models match this filter"})]})]})]})}function sI({open:e,modelTag:t,modelLabel:l,isActive:i,isOrchestrator:o,loading:u,onConfirm:d,onClose:h}){return a.jsxs(va,{open:e,onClose:h,title:"Delete model",children:[a.jsxs("p",{className:"text-sm mb-3",children:["Remove ",a.jsx("strong",{children:l})," ",a.jsxs("span",{className:"text-neutral-400 font-mono text-xs",children:["(",t,")"]})," from your machine?"]}),i&&a.jsx("div",{className:"bg-warning/10 border border-warning/30 rounded-lg p-3 mb-3",children:a.jsx("p",{className:"text-xs text-warning",children:"This is your active model. Deleting it will clear the active model setting. You'll need to select a different model afterward."})}),o&&a.jsx("div",{className:"bg-purple-500/10 border border-purple-500/30 rounded-lg p-3 mb-3",children:a.jsx("p",{className:"text-xs text-purple-400",children:"This is your orchestrator model. Deleting it will reset the orchestrator to auto mode."})}),a.jsx("p",{className:"text-xs text-neutral-400 mb-4",children:"The model files will be removed from disk. You can reinstall it from the catalog later."}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx("button",{onClick:h,disabled:u,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors disabled:opacity-50",children:"Cancel"}),a.jsxs("button",{onClick:d,disabled: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&&a.jsx(ct,{size:12,className:"animate-spin"}),u?"Deleting...":"Delete"]})]})]})}function lI(){var rt;const{data:e,refetch:t}=we("/api/settings/anthropic_api_key"),[l,i]=r.useState(!1),[o,u]=r.useState(""),[d,h]=r.useState(!1),[f,p]=r.useState(null),[x,g]=r.useState(!1),[b,w]=r.useState(!1),[N,E]=r.useState(""),[j,A]=r.useState(!1),[Z,M]=r.useState(""),[S,_]=r.useState([]),[T,V]=r.useState(!1),{installed:H,catalog:L,device:D,memoryTier:B,ollamaRunning:K,loading:J,catalogLoading:se,catalogLoaded:le,downloading:O,openRouterKey:q,openRouterModel:I,openRouterConnected:Y,fetchInstalled:X,fetchCatalog:k,setActiveModel:U,setOrchestratorModel:W,unloadModel:$,installModel:F,cancelDownload:z,deleteModel:ae,startOllama:fe,fetchOpenRouter:pe,saveOpenRouterKey:Ee,setOpenRouterModel:Me,cloudProvider:_e,fetchCloudProvider:Pe,setCloudProvider:Te}=Kq(),{status:Ae}=Qq(),[$t,Ze]=r.useState(null);Hf(r.useCallback((je,et)=>{const Ue=et;je==="model:switch-started"?Ze({model:Ue.model,status:"switching"}):je==="model:switch-complete"?(Ze({model:Ue.model,status:"complete",provider:Ue.provider}),X(),setTimeout(()=>Ze(null),3e3)):je==="model:switch-failed"&&(Ze({model:Ue.model,status:"failed",reason:Ue.reason}),setTimeout(()=>Ze(null),5e3))},[X])),r.useEffect(()=>{X(),pe(),Pe()},[X,pe,Pe]),r.useEffect(()=>{Y&&(V(!0),me("/api/models/openrouter").then(je=>{_(je.data.models),V(!1)}).catch(()=>V(!1)))},[Y]);const Tt=r.useMemo(()=>{const je=Z.toLowerCase().trim();return je?S.filter(et=>et.id.toLowerCase().includes(je)||et.name.toLowerCase().includes(je)):S},[S,Z]),ie=(je,et=8)=>je?je.slice(0,et)+"•".repeat(Math.max(0,Math.min(je.length-et,20))):"Not set",pt=async()=>{if(o.trim()){h(!0);try{await me("/api/settings/anthropic_api_key",{method:"PUT",body:JSON.stringify({value:o.trim()})}),de("success","API key updated"),i(!1),u(""),t()}catch{de("error","Couldn't save API key")}finally{h(!1)}}},Oe=async()=>{A(!0);try{await Ee(N.trim()),w(!1),E("")}catch{de("error","Couldn't save OpenRouter key")}finally{A(!1)}},ut=je=>{const et=H.find(Ue=>Ue.tag===je);p({tag:je,label:(et==null?void 0:et.label)||je,isActive:(et==null?void 0:et.isActive)||!1,isOrchestrator:(et==null?void 0:et.isOrchestrator)||!1})},yt=r.useCallback(async()=>{if(!f||x)return;g(!0);const je=await ae(f.tag);g(!1),je&&p(null)},[f,x,ae]);return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Cloud Provider"}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("button",{onClick:()=>Te("anthropic"),className:`flex-1 px-3 py-2 rounded-lg text-sm font-medium transition-colors border ${_e==="anthropic"?"bg-white/10 border-white/20 text-white":"bg-white/[0.03] border-white/[0.06] text-neutral-400 hover:bg-white/[0.06]"}`,children:"Anthropic"}),a.jsx("button",{onClick:()=>Te("openrouter"),className:`flex-1 px-3 py-2 rounded-lg text-sm font-medium transition-colors border ${_e==="openrouter"?"bg-white/10 border-white/20 text-white":"bg-white/[0.03] border-white/[0.06] text-neutral-400 hover:bg-white/[0.06]"}`,children:"OpenRouter"})]}),a.jsx("p",{className:"text-[10px] text-neutral-500 mt-1.5",children:"Which provider to use when running in cloud mode"})]}),a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Anthropic API"}),a.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:l?a.jsxs("div",{className:"px-4 py-3",children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"API Key"}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("input",{type:"password",value:o,onChange:je=>u(je.target.value),placeholder:"sk-ant-...",className:"flex-1 bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm text-white placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20",autoFocus:!0}),a.jsx("button",{onClick:pt,disabled:d||!o.trim(),className:"text-success hover:text-success/80 transition-colors disabled:opacity-50",children:a.jsx(Qr,{size:16})}),a.jsx("button",{onClick:()=>{i(!1),u("")},className:"text-neutral-400 hover:text-white transition-colors",children:a.jsx(La,{size:16})})]})]}):a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-sm text-neutral-400",children:"API Key"}),a.jsx("span",{className:"text-sm font-medium ml-3",children:ie(e==null?void 0:e.value,12)})]}),a.jsx("button",{onClick:()=>i(!0),className:"text-neutral-400 hover:text-white transition-colors",children:a.jsx(Sm,{size:14})})]})})]}),a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:a.jsxs("span",{className:"flex items-center gap-1.5",children:["OpenRouter",Y&&a.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full bg-success"})]})}),a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[b?a.jsxs("div",{className:"px-4 py-3",children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"API Key"}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("input",{type:"password",value:N,onChange:je=>E(je.target.value),placeholder:"sk-or-...",className:"flex-1 bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm text-white placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20",autoFocus:!0}),a.jsx("button",{onClick:Oe,disabled:j,className:"text-success hover:text-success/80 transition-colors disabled:opacity-50",children:a.jsx(Qr,{size:16})}),a.jsx("button",{onClick:()=>{w(!1),E("")},className:"text-neutral-400 hover:text-white transition-colors",children:a.jsx(La,{size:16})})]}),a.jsx("p",{className:"text-[10px] text-neutral-500 mt-1.5",children:"300+ models from every AI lab. Leave empty to remove."})]}):a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-sm text-neutral-400",children:"API Key"}),a.jsx("span",{className:"text-sm font-medium ml-3",children:ie(q,8)})]}),a.jsx("button",{onClick:()=>w(!0),className:"text-neutral-400 hover:text-white transition-colors",children:a.jsx(Sm,{size:14})})]}),Y&&a.jsxs("div",{className:"px-4 py-3",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx(sa,{size:14,className:"text-amber-400"}),a.jsx("span",{className:"text-sm text-neutral-400",children:"Model"}),I&&a.jsx("span",{className:"text-xs text-white/60 ml-auto",children:I})]}),a.jsxs("div",{className:"relative mb-2",children:[a.jsx(xa,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-neutral-500"}),a.jsx("input",{type:"text",value:Z,onChange:je=>M(je.target.value),placeholder:"Search 300+ models...",className:"w-full bg-white/[0.04] border border-white/[0.08] rounded pl-8 pr-3 py-1.5 text-xs text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),T?a.jsxs("div",{className:"flex items-center gap-1.5 py-2 text-xs text-neutral-400",children:[a.jsx(ct,{size:12,className:"animate-spin"})," Loading models..."]}):a.jsxs("div",{className:"max-h-48 overflow-y-auto space-y-px",children:[Tt.slice(0,50).map(je=>{const et=je.id===I,Ue=je.contextLength>=1e6?`${Math.round(je.contextLength/1e6)}M`:je.contextLength>=1e3?`${Math.round(je.contextLength/1e3)}K`:String(je.contextLength);return a.jsxs("button",{onClick:()=>Me(je.id),className:`w-full text-left px-2.5 py-1.5 rounded text-xs transition-colors ${et?"bg-white/10 text-white":"text-neutral-300 hover:bg-white/[0.06]"}`,children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"truncate font-medium",children:je.name}),a.jsxs("span",{className:"flex items-center gap-1.5 text-neutral-500 shrink-0 ml-2",children:[je.isFree&&a.jsx("span",{className:"text-green-400",children:"free"}),je.supportsTools&&a.jsx("span",{children:"tools"}),je.supportsVision&&a.jsx("span",{children:"vision"}),a.jsx("span",{children:Ue})]})]}),a.jsx("div",{className:"text-[10px] text-neutral-500 truncate",children:je.id})]},je.id)}),Tt.length>50&&a.jsxs("p",{className:"text-[10px] text-neutral-500 px-2.5 py-1",children:[Tt.length-50," more. Refine your search."]}),Tt.length===0&&a.jsx("p",{className:"text-xs text-neutral-500 px-2.5 py-2",children:Z?"No models match your search":"No models available"})]})]})]})]}),a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Local Models"}),Ae&&a.jsx(tI,{activeProvider:Ae.activeProvider,mlxModel:(rt=Ae.mlx)==null?void 0:rt.model,switchInProgress:Ae.switchInProgress,switchState:$t,capacity:Ae.capacity}),!J&&!K&&a.jsxs("div",{className:"bg-warning/10 border border-warning/30 rounded-lg p-3 mb-3 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Zf,{size:16,className:"text-warning shrink-0"}),a.jsx("p",{className:"text-xs text-warning",children:"Ollama is not running"})]}),a.jsx("button",{onClick:fe,disabled:!!O,className:"px-2.5 py-1 text-[11px] font-medium bg-warning/10 border border-warning/30 text-warning rounded hover:bg-warning/20 disabled:opacity-50 transition-colors",children:(O==null?void 0:O.tag)===""?"Starting...":"Start Ollama"})]}),J?a.jsxs("div",{className:"flex items-center justify-center py-8 gap-2 text-sm text-neutral-400",children:[a.jsx(ct,{size:16,className:"animate-spin"})," Loading models..."]}):a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"mb-4",children:[a.jsx("div",{className:"flex items-center justify-between mb-2",children:a.jsxs("h3",{className:"text-xs text-neutral-400",children:["Installed Models",H.length>0&&a.jsxs("span",{className:"ml-1.5 text-neutral-600",children:["(",H.length,")"]})]})}),a.jsx(Wq,{models:H,downloading:O,onSetActive:U,onSetOrchestrator:W,onUnload:$,onDelete:ut,onCancelDownload:z})]}),a.jsx(rI,{catalog:L,device:D,memoryTier:B,loading:se,loaded:le,downloading:O,onInstall:F,onCancelDownload:z,onFetchCatalog:k})]})]}),a.jsx(sI,{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:x,onConfirm:yt,onClose:()=>{x||p(null)}})]})}function iI(){const[e,t]=r.useState(null),[l,i]=r.useState([]),[o,u]=r.useState(""),[d,h]=r.useState(!1),[f,p]=r.useState(!1),x=r.useCallback(async()=>{var N;try{const E=await me("/api/voice/providers");if(t(E.data),E.data.voiceboxAvailable){const[j,A]=await Promise.all([me("/api/voice/profiles"),me("/api/settings/orchestrator_voice_profile_id")]);i(j.data||[]),u(((N=A.data)==null?void 0:N.value)||"")}}catch{t(null)}},[]),g=r.useRef(!1);r.useEffect(()=>{e!=null&&e.voiceboxAvailable&&(g.current=!0)},[e==null?void 0:e.voiceboxAvailable]),r.useEffect(()=>{let N=!1,E;return(async()=>{await x(),!N&&!g.current&&(E=setInterval(async()=>{if(N||g.current){E&&clearInterval(E);return}await x()},1e4))})(),()=>{N=!0,E&&clearInterval(E)}},[x]);const b=r.useCallback(async()=>{p(!0);try{await me("/api/voice/enable",{method:"POST"}),await x()}catch{}finally{p(!1)}},[x]),w=r.useCallback(async 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 a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Voice"}),a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[e&&a.jsx("div",{className:"px-4 py-3",children:a.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[a.jsx("span",{className:`w-2 h-2 rounded-full ${e.voiceboxAvailable?"bg-success":"bg-white/10"}`}),a.jsx("span",{className:e.voiceboxAvailable?"":"text-neutral-400",children:e.voiceboxAvailable?"Voicebox is running":"Voicebox is not running"})]})}),e&&!e.voiceboxAvailable&&a.jsxs("div",{className:"px-4 py-3",children:[a.jsx("button",{onClick:b,disabled: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?a.jsxs(a.Fragment,{children:[a.jsx(ct,{size:14,className:"animate-spin"})," Starting Voicebox..."]}):"Enable Voicebox"}),a.jsx("p",{className:"text-xs text-neutral-400 mt-1.5",children:"Local speech-to-text and text-to-speech using Whisper and Coqui TTS."})]}),(e==null?void 0:e.voiceboxAvailable)&&a.jsx("div",{className:"px-4 py-3",children:a.jsxs("label",{className:"flex items-center justify-between gap-4",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium",children:"Orchestrator voice"}),a.jsx("p",{className:"text-xs text-neutral-400",children:"Voice used when chatting from the main conversation"})]}),a.jsxs("select",{value:o,onChange: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:[a.jsx("option",{value:"",children:"Default voice"}),l.map(N=>a.jsx("option",{value:N.id,children:N.name},N.id))]})]})})]})]})}const oI=["Cloud sync across devices","Cloud task dispatch","OAuth integrations (Gmail, Slack)","Webhook relay","Cloud dashboard at ohwow.fun","Team management"];function cI(){const{tier:e,loading:t}=co(),l=cn(),[i,o]=r.useState("general"),u=e!=="free",{data:d}=we("/health"),{data:h}=we("/api/settings/license_key"),{data:f}=we("/api/settings/cloud_url"),p=()=>{ij(),l("/login",{replace:!0})},x=(g,b=8)=>g?g.slice(0,b)+"•".repeat(Math.max(0,Math.min(g.length-b,20))):"Not set";return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Settings",subtitle:"Runtime configuration"}),!t&&a.jsx("div",{className:"mb-6",children:a.jsx("span",{"data-testid":"runtime-settings-tier-badge",className:`inline-flex items-center px-2.5 py-1 rounded-md text-xs font-semibold ${u?"bg-success/15 text-success":"bg-cyan-500/15 text-cyan-400"}`,children:u?"Connected":"Local"})}),d&&a.jsxs("div",{className:"mb-2 text-xs text-neutral-400",children:[a.jsx("span",{className:d.status==="healthy"?"text-success":"text-warning",children:"●"})," ","Connected · Running on v",d.version," · Up ",FS(d.uptime)]}),a.jsx("div",{className:"flex gap-1 mb-6 border-b border-white/[0.08]",children:[{key:"general",label:"General"},{key:"integrations",label:"Integrations"},{key:"models",label:"Models"}].map(g=>a.jsx("button",{onClick:()=>o(g.key),className:`px-3 py-2 text-xs font-medium border-b-2 transition-colors ${i===g.key?"border-white text-white":"border-transparent text-neutral-400 hover:text-white"}`,children:g.label},g.key))}),i==="general"&&a.jsxs(a.Fragment,{children:[u&&!t&&a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Connection"}),a.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[a.jsx(Ha,{label:"Cloud URL",value:(f==null?void 0:f.value)||"Not configured"}),a.jsx(Ha,{label:"Status",value:"Connected",valueColor:"text-success"}),a.jsx(Ha,{label:"License key",value:x(h==null?void 0:h.value)})]})]}),a.jsx(Gq,{}),a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Quick links"}),a.jsxs("div",{className:"flex gap-2 flex-wrap",children:[a.jsx(P0,{to:"/connections",className:"px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/[0.08] rounded-lg hover:border-white/20 transition-colors",children:"A2A Connections"}),a.jsx(P0,{to:"/schedules",className:"px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/[0.08] rounded-lg hover:border-white/20 transition-colors",children:"Schedules"}),a.jsx(P0,{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&&!t&&a.jsxs("div",{"data-testid":"runtime-settings-upgrade-cta",className:"mb-6 bg-white/[0.02] border border-white/[0.08] rounded-lg p-5",children:[a.jsx("h3",{className:"text-sm font-semibold text-white mb-2",children:"Connect to ohwow.fun cloud"}),a.jsx("p",{className:"text-xs text-neutral-400 mb-4",children:"Add cloud features to your local runtime:"}),a.jsx("ul",{className:"space-y-1.5 mb-4",children:oI.map(g=>a.jsxs("li",{className:"flex items-center gap-2 text-xs text-neutral-400",children:[a.jsx("span",{className:"text-white",children:"+"}),g]},g))}),a.jsx("a",{"data-testid":"runtime-settings-upgrade-link",href:"https://ohwow.fun",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center px-3 py-1.5 text-xs font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:"Get a license key"})]}),a.jsx("div",{className:"mb-6",children:a.jsx("button",{onClick:p,className:"px-4 py-2 text-sm text-critical border border-critical/30 rounded-lg hover:bg-critical/10 transition-colors",children:"Disconnect"})})]}),i==="integrations"&&a.jsx(Yq,{}),i==="models"&&a.jsx(lI,{}),i==="integrations"&&a.jsx(iI,{})]})}const uI=["all","lead","client","partner","vendor"];function dI(){const e=ga(["contact:upserted","contact:removed"]),[t,l]=r.useState("all"),[i,o]=r.useState(""),[u,d]=r.useState(!1),{data:h,loading:f,refetch:p}=we("/api/contacts",[e]),x=r.useMemo(()=>{if(!h)return[];let g=h;if(t!=="all"&&(g=g.filter(b=>b.contact_type===t)),i.trim()){const b=i.toLowerCase();g=g.filter(w=>w.name.toLowerCase().includes(b)||(w.email||"").toLowerCase().includes(b)||(w.company||"").toLowerCase().includes(b))}return g},[h,t,i]);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Contacts",subtitle:"People and companies your agents interact with",action:a.jsxs("button",{onClick:()=>d(!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:[a.jsx(Mt,{size:14})," New contact"]})}),u&&a.jsx(hI,{onClose:()=>d(!1),onSuccess:p}),a.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:uI.map(g=>a.jsx("button",{onClick:()=>l(g),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${t===g?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:g},g))}),a.jsxs("div",{className:"relative mb-4",children:[a.jsx(xa,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:i,onChange:g=>o(g.target.value),placeholder:"Search by name, email, or company...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),f?a.jsx(We,{count:5}):x.length?a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:x.map(g=>a.jsxs(Be,{to:`/contacts/${g.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[a.jsxs("div",{className:"min-w-0 mr-3",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:g.name}),a.jsxs("p",{className:"text-xs text-neutral-400",children:[g.email&&a.jsx("span",{children:g.email}),g.email&&g.company&&" · ",g.company&&a.jsx("span",{className:"text-white",children:g.company})]})]}),a.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[a.jsx("span",{className:"text-xs text-neutral-400 capitalize",children:g.contact_type}),a.jsx(ft,{status:g.status})]})]},g.id))}):a.jsx(bt,{icon:a.jsx(fz,{size:32}),title:"No contacts yet",description:i?`No contacts matching "${i}".`:"Add your first contact to get started."})]})}function hI({onClose:e,onSuccess:t}){const[l,i]=r.useState(""),[o,u]=r.useState(""),[d,h]=r.useState(""),[f,p]=r.useState("lead"),[x,g]=r.useState(!1),b=async w=>{if(w.preventDefault(),!!l.trim()){g(!0);try{await me("/api/contacts",{method:"POST",body:JSON.stringify({name:l.trim(),email:o.trim()||void 0,company:d.trim()||void 0,contact_type:f})}),t(),e()}catch{}finally{g(!1)}}};return a.jsxs("form",{onSubmit:b,className:"border border-white/[0.08] rounded-lg p-4 mb-4 space-y-3",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),a.jsx("input",{value: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"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Email"}),a.jsx("input",{value:o,onChange:w=>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"})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Company"}),a.jsx("input",{value:d,onChange:w=>h(w.target.value),placeholder:"Company name",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Type"}),a.jsxs("select",{value: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:[a.jsx("option",{value:"lead",children:"Lead"}),a.jsx("option",{value:"client",children:"Client"}),a.jsx("option",{value:"partner",children:"Partner"}),a.jsx("option",{value:"vendor",children:"Vendor"})]})]})]}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:x||!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:x?"Creating...":"Create contact"})]})]})}function K7(e){return e?/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"):new Date(NaN)}function ji(e){if(!e)return"";const t=Date.now()-K7(e).getTime();if(!Number.isFinite(t)||t<0)return"just now";const l=Math.floor(t/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 o=Math.floor(i/24);return o<7?`${o}d ago`:K7(e).toLocaleDateString()}function mI(e){if(e&&typeof e=="object"&&!Array.isArray(e))return e;if(typeof e=="string")try{const t=JSON.parse(e);return t&&typeof t=="object"?t:{}}catch{return{}}return{}}function fI(e){if(Array.isArray(e))return e;if(typeof e=="string")try{const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}return[]}function X7(e){return e?e.replace(/^x:/,"").replace(/:/g," ").replace(/_/g," "):"event"}function pI(e,t){const l=new Set(e.map(i=>i.kind??i.event_type??""));return l.has("plan:paid")?{stage:"paid",color:"bg-emerald-500/20 text-emerald-300 border-emerald-500/40"}:l.has("trial:started")?{stage:"trial",color:"bg-violet-500/20 text-violet-300 border-violet-500/40"}:l.has("demo:booked")?{stage:"demo",color:"bg-blue-500/20 text-blue-300 border-blue-500/40"}:l.has("x:reached")?{stage:"engaged",color:"bg-sky-500/20 text-sky-300 border-sky-500/40"}:t?{stage:"contacted",color:"bg-teal-500/20 text-teal-300 border-teal-500/40"}:l.has("x:qualified")?{stage:"qualified",color:"bg-amber-500/20 text-amber-300 border-amber-500/40"}:{stage:"lead",color:"bg-neutral-500/20 text-neutral-300 border-neutral-500/40"}}function xI(e){return e==="high"?"text-red-400":e==="medium"?"text-amber-400":"text-neutral-400"}function gI(e){return e.sendConfirmed===!0?{label:"shipped",cls:"bg-emerald-500/15 text-emerald-300 border-emerald-500/30"}:e.sendConfirmed===!1?{label:"not confirmed",cls:"bg-red-500/15 text-red-300 border-red-500/30"}:e.status==="dispatched"?{label:"dispatched",cls:"bg-blue-500/15 text-blue-300 border-blue-500/30"}:e.status==="ignored"?{label:"ignored",cls:"bg-neutral-500/15 text-neutral-400 border-neutral-500/30"}:{label:e.status||"open",cls:"bg-amber-500/15 text-amber-300 border-amber-500/30"}}function vI(){const{id:e}=L1(),t=cn(),l=ga(["contact:upserted","dm:message","approval:created"]),{data:i,loading:o,refetch:u}=we(e?`/api/contacts/${e}`:null,[l]),{data:d}=we(e?`/api/contacts/${e}/timeline`:null,[l]),h=r.useMemo(()=>mI(i==null?void 0:i.custom_fields),[i]),f=typeof h.x_conversation_pair=="string"?h.x_conversation_pair:null,p=typeof h.x_handle=="string"?h.x_handle:null,{data:x}=we(f?`/api/conversations/${encodeURIComponent(f)}`:null,[l]),[g,b]=r.useState(!1),[w,N]=r.useState(!1),[E,j]=r.useState({name:"",email:"",phone:"",company:"",notes:""}),[A,Z]=r.useState(!1),[M,S]=r.useState(!1),_=r.useCallback(()=>{i&&(j({name:i.name??"",email:i.email??"",phone:i.phone??"",company:i.company??"",notes:i.notes??""}),N(!0))},[i]),T=r.useCallback(async()=>{if(!(!e||!E.name.trim())){Z(!0);try{await me(`/api/contacts/${e}`,{method:"PUT",body:JSON.stringify({name:E.name.trim(),email:E.email.trim()||null,phone:E.phone.trim()||null,company:E.company.trim()||null,notes:E.notes.trim()||null})}),N(!1),u()}finally{Z(!1)}}},[e,E,u]),V=r.useCallback(async()=>{if(!(!e||!confirm("Delete this contact? This cannot be undone."))){S(!0);try{await me(`/api/contacts/${e}`,{method:"DELETE"}),t("/contacts")}catch{S(!1)}}},[e,t]);if(o&&!i)return a.jsx("div",{className:"p-6 text-neutral-400 text-sm",children:"Loading."});if(!i)return a.jsx("div",{className:"p-6 text-neutral-400",children:"Contact not found"});const H=d??[],L=fI(i.tags).filter(q=>typeof q=="string"),D=(x==null?void 0:x.thread.lastSeenAt)??i.updated_at,B=(x==null?void 0:x.messages.filter(q=>q.direction==="inbound").length)??0,K=(x==null?void 0:x.messages.filter(q=>q.direction==="outbound").length)??0,J=pI(H,K>0),se=(x==null?void 0:x.nextSteps.filter(q=>q.status==="open"||q.status==="dispatched").length)??0,le=(x==null?void 0:x.approvals.pending.length)??0,O=(x==null?void 0:x.messages.slice(-8))??[];return a.jsxs("div",{className:"p-6 max-w-5xl",children:[a.jsxs(Be,{to:"/contacts",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4",children:[a.jsx(ls,{size:14})," Back to contacts"]}),a.jsxs("div",{className:"flex items-start justify-between gap-4 mb-6",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[a.jsx("h1",{className:"text-2xl font-semibold truncate",children:i.name}),a.jsx("span",{className:`text-[10px] uppercase tracking-wider px-2 py-0.5 rounded-full border ${J.color}`,children:J.stage})]}),a.jsxs("p",{className:"text-xs text-neutral-400",children:[i.contact_type,p&&a.jsxs(a.Fragment,{children:[" · ",a.jsxs("span",{className:"text-sky-400",children:["@",p]})]}),typeof h.x_source=="string"&&a.jsxs(a.Fragment,{children:[" · via ",h.x_source]}),D&&a.jsxs(a.Fragment,{children:[" · last activity ",ji(D)]})]}),L.length>0&&a.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:L.map(q=>a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/5 text-neutral-300 border border-white/10",children:q},q))})]}),a.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[f&&a.jsxs(Be,{to:`/messages?pair=${encodeURIComponent(f)}`,className:"inline-flex items-center gap-1 px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-lg hover:bg-white/10",children:[a.jsx(K0,{size:14})," Open thread"]}),!w&&a.jsx("button",{onClick:_,className:"px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-lg hover:bg-white/10",children:"Edit"}),a.jsxs("button",{onClick:V,disabled:M,className:"inline-flex items-center gap-1 px-3 py-1.5 text-xs font-medium bg-critical/10 border border-critical/30 text-critical rounded-lg hover:bg-critical/20 disabled:opacity-50",children:[a.jsx(Yt,{size:14})," ",M?"Deleting":"Delete"]})]})]}),a.jsxs("div",{className:"grid grid-cols-4 gap-3 mb-6",children:[a.jsx(Ni,{label:"DMs in",value:B,hint:x?"observed":"no thread"}),a.jsx(Ni,{label:"DMs out",value:K,hint:K?"sent":"not reached"}),a.jsx(Ni,{label:"Next steps",value:se,hint:se?"open + dispatched":"nothing pending",accent:se>0?"warn":void 0}),a.jsx(Ni,{label:"Pending approval",value:le,hint:le?"awaiting you":"clear",accent:le>0?"warn":void 0})]}),w&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 mb-6 space-y-3",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsx(Ei,{label:"Name",value:E.name,onChange:q=>j(I=>({...I,name:q}))}),a.jsx(Ei,{label:"Email",value:E.email,onChange:q=>j(I=>({...I,email:q}))}),a.jsx(Ei,{label:"Phone",value:E.phone,onChange:q=>j(I=>({...I,phone:q}))}),a.jsx(Ei,{label:"Company",value:E.company,onChange:q=>j(I=>({...I,company:q}))})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Notes"}),a.jsx("textarea",{value:E.notes,onChange:q=>j(I=>({...I,notes:q.target.value})),rows:3,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white resize-none focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx("button",{onClick:()=>N(!1),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white",children:"Cancel"}),a.jsx("button",{onClick:T,disabled:A||!E.name.trim(),className:"px-3 py-1.5 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50",children:A?"Saving":"Save"})]})]}),f&&a.jsxs("section",{className:"mb-6",children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsxs("h2",{className:"text-[11px] uppercase tracking-wider text-neutral-400",children:["Thread · last ",O.length," of ",(x==null?void 0:x.messages.length)??0]}),a.jsxs(Be,{to:`/messages?pair=${encodeURIComponent(f)}`,className:"text-[11px] text-neutral-400 hover:text-white inline-flex items-center gap-1",children:["Full thread ",a.jsx(so,{size:12})]})]}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.06]",children:O.length===0?a.jsx("div",{className:"px-4 py-6 text-sm text-neutral-500",children:"No observed messages yet."}):O.map(q=>a.jsxs("div",{className:"px-4 py-3",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1 text-[11px]",children:[a.jsx("span",{className:q.direction==="outbound"?"text-emerald-400":"text-sky-400",children:q.direction}),a.jsx("span",{className:"text-neutral-500",children:ji(q.observedAt)}),q.isMedia&&a.jsx("span",{className:"text-neutral-500",children:"· media"})]}),a.jsx("div",{className:"text-sm whitespace-pre-wrap break-words",children:q.text??a.jsx("span",{className:"italic text-neutral-500",children:"(empty)"})})]},q.id))})]}),x&&x.nextSteps.length>0&&a.jsxs("section",{className:"mb-6",children:[a.jsx("h2",{className:"text-[11px] uppercase tracking-wider text-neutral-400 mb-2",children:"Next steps from this conversation"}),a.jsx("div",{className:"space-y-2",children:x.nextSteps.map(q=>{const I=gI(q);return a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsxs("div",{className:"flex items-center justify-between gap-2 mb-1 text-[11px]",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"uppercase tracking-wider text-neutral-400",children:X7(q.stepType)}),a.jsx("span",{className:xI(q.urgency),children:q.urgency}),a.jsx("span",{className:`px-1.5 py-0.5 rounded border ${I.cls}`,children:I.label})]}),a.jsx("span",{className:"text-neutral-500",children:ji(q.createdAt)})]}),a.jsx("div",{className:"text-sm mb-1",children:q.text}),q.suggestedAction&&a.jsxs("div",{className:"text-sm text-neutral-300",children:[a.jsx("span",{className:"text-neutral-500",children:"→ "}),q.suggestedAction]}),q.draftReply&&a.jsxs("div",{className:"mt-2 text-sm text-neutral-200 bg-white/[0.03] border border-white/5 rounded p-2 italic",children:["“",q.draftReply,"”"]})]},q.id)})})]}),a.jsxs("section",{className:"mb-6",children:[a.jsxs("button",{onClick:()=>b(q=>!q),className:"w-full flex items-center justify-between text-[11px] uppercase tracking-wider text-neutral-400 hover:text-white mb-2",children:[a.jsxs("span",{className:"inline-flex items-center gap-1",children:[g?a.jsx(Ya,{size:12}):a.jsx(is,{size:12}),"Raw events · ",H.length]}),a.jsx("span",{className:"normal-case text-neutral-500",children:g?"hide":"show"})]}),g&&(H.length===0?a.jsx("div",{className:"border border-white/[0.08] rounded-lg px-4 py-6 text-sm text-neutral-500 text-center",children:"No events logged for this contact yet."}):a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.06]",children:H.map(q=>{const I=q.occurred_at??q.created_at??"",Y=q.kind??q.event_type??"event";return a.jsxs("div",{className:"px-4 py-2",children:[a.jsxs("div",{className:"flex items-center justify-between text-[11px] mb-0.5",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"uppercase tracking-wider text-neutral-300",children:X7(Y)}),q.source&&a.jsxs("span",{className:"text-neutral-500",children:["via ",q.source]})]}),a.jsx("span",{className:"text-neutral-500",children:ji(I)})]}),q.description&&a.jsx("div",{className:"text-sm text-neutral-300",children:q.description})]},q.id)})}))]}),(i.email||i.phone||i.company||i.notes)&&a.jsxs("section",{children:[a.jsx("h2",{className:"text-[11px] uppercase tracking-wider text-neutral-400 mb-2",children:"CRM details"}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.06]",children:[{label:"Email",value:i.email},{label:"Phone",value:i.phone},{label:"Company",value:i.company},{label:"Notes",value:i.notes}].map(q=>q.value?a.jsxs("div",{className:"flex items-start justify-between gap-4 px-4 py-2.5",children:[a.jsx("span",{className:"text-xs text-neutral-400 shrink-0",children:q.label}),a.jsx("span",{className:"text-sm text-right",children:q.value})]},q.label):null)})]})]})}function Ni({label:e,value:t,hint:l,accent:i}){const o=i==="warn"&&t>0?"text-amber-300":"text-white";return a.jsxs("div",{className:"border border-white/[0.08] rounded-lg px-3 py-2.5",children:[a.jsx("div",{className:"text-[10px] uppercase tracking-wider text-neutral-400 mb-1",children:e}),a.jsx("div",{className:`text-xl font-semibold ${o}`,children:t}),a.jsx("div",{className:"text-[11px] text-neutral-500",children:l})]})}function Ei({label:e,value:t,onChange:l}){return a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:e}),a.jsx("input",{value:t,onChange:i=>l(i.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20"})]})}const bI=["all","active","completed","archived"],Q7={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 yI(){const e=ga(["project:created","project:updated"]),[t,l]=r.useState("all"),[i,o]=r.useState(""),[u,d]=r.useState(!1),{data:h,loading:f,refetch:p}=we("/api/projects",[e]),x=r.useMemo(()=>{if(!h)return[];let g=h;if(t!=="all"&&(g=g.filter(b=>b.status===t)),i.trim()){const b=i.toLowerCase();g=g.filter(w=>w.name.toLowerCase().includes(b)||(w.description||"").toLowerCase().includes(b))}return g},[h,t,i]);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Projects",subtitle:"Organize work into projects",action:a.jsxs("button",{onClick:()=>d(!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:[a.jsx(Mt,{size:14})," New project"]})}),u&&a.jsx(wI,{onClose:()=>d(!1),onSuccess:p}),a.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:bI.map(g=>a.jsx("button",{onClick:()=>l(g),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${t===g?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:g},g))}),a.jsxs("div",{className:"relative mb-4",children:[a.jsx(xa,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:i,onChange:g=>o(g.target.value),placeholder:"Search projects...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),f?a.jsx(We,{count:4}):x.length?a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:x.map(g=>a.jsxs(Be,{to:`/projects/${g.id}`,className:`border rounded-lg p-4 hover:bg-white/[0.02] transition-colors ${g.color&&Q7[g.color]?Q7[g.color]:"border-white/[0.08]"}`,children:[a.jsxs("div",{className:"flex items-start justify-between mb-2",children:[a.jsx("h3",{className:"text-sm font-medium truncate",children:g.name}),a.jsx(ft,{status:g.status})]}),g.description&&a.jsx("p",{className:"text-xs text-neutral-400 line-clamp-2",children:g.description}),a.jsxs("div",{className:"flex items-center justify-between mt-2",children:[a.jsxs("p",{className:"text-xs text-neutral-400",children:[g.task_count??0," ",(g.task_count??0)===1?"task":"tasks",!!g.open_task_count&&a.jsxs("span",{className:"text-warning ml-1.5",children:["· ",g.open_task_count," open"]})]}),a.jsx("p",{className:"text-xs text-neutral-500",children:new Date(g.created_at).toLocaleDateString()})]})]},g.id))}):a.jsx(bt,{icon:a.jsx(jf,{size:32}),title:"No projects yet",description:i?`No projects matching "${i}".`:"Create your first project to organize work."})]})}function wI({onClose:e,onSuccess:t}){const[l,i]=r.useState(""),[o,u]=r.useState(""),[d,h]=r.useState(""),[f,p]=r.useState(!1),x=async g=>{if(g.preventDefault(),!!l.trim()){p(!0);try{await me("/api/projects",{method:"POST",body:JSON.stringify({name:l.trim(),description:o.trim()||void 0,color:d||void 0})}),t(),e()}catch{}finally{p(!1)}}};return a.jsxs("form",{onSubmit:x,className:"border border-white/[0.08] rounded-lg p-4 mb-4 space-y-3",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),a.jsx("input",{value:l,onChange:g=>i(g.target.value),placeholder:"Project name",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Color"}),a.jsxs("select",{value:d,onChange:g=>h(g.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"",children:"None"}),a.jsx("option",{value:"blue",children:"Blue"}),a.jsx("option",{value:"green",children:"Green"}),a.jsx("option",{value:"red",children:"Red"}),a.jsx("option",{value:"yellow",children:"Yellow"}),a.jsx("option",{value:"purple",children:"Purple"})]})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description (optional)"}),a.jsx("textarea",{value:o,onChange:g=>u(g.target.value),rows:2,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none"})]}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled: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 AI=[{id:"pending",label:"Pending",textColor:"text-neutral-400",bgColor:"bg-white/[0.04]"},{id:"in_progress",label:"In Progress",textColor:"text-blue-400",bgColor:"bg-blue-500/[0.08]"},{id:"completed",label:"Completed",textColor:"text-success",bgColor:"bg-success/[0.08]"},{id:"failed",label:"Failed",textColor:"text-critical",bgColor:"bg-critical/[0.08]"}];function jI({task:e}){return a.jsx(Be,{to:`/tasks/${e.id}`,className:"block border border-white/[0.08] bg-white/[0.02] rounded-lg p-3 hover:bg-white/[0.04] transition-colors group",children:a.jsxs("div",{className:"flex items-start gap-2",children:[a.jsx(Ez,{size:14,className:"text-neutral-600 mt-0.5 shrink-0 opacity-0 group-hover:opacity-100 transition-opacity"}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:e.title}),a.jsxs("div",{className:"flex items-center gap-2 mt-1.5",children:[e.priority&&e.priority!=="normal"&&a.jsx("span",{className:"text-xs text-warning",children:e.priority}),e.tokens_used?a.jsxs("span",{className:"text-xs text-neutral-500",children:[e.tokens_used.toLocaleString()," tok"]}):null]}),a.jsx("p",{className:"text-xs text-neutral-500 mt-1",children:new Date(e.created_at).toLocaleDateString()})]})]})})}function NI({tasks:e}){const t=r.useMemo(()=>AI.map(l=>({...l,tasks:e.filter(i=>i.status===l.id)})),[e]);return a.jsx("div",{className:"flex gap-4 overflow-x-auto pb-4",children:t.map(l=>a.jsxs("div",{className:"min-w-[240px] flex-1",children:[a.jsxs("div",{className:`flex items-center justify-between rounded-lg px-3 py-2 mb-3 ${l.bgColor}`,children:[a.jsx("span",{className:`text-xs font-semibold uppercase tracking-wider ${l.textColor}`,children:l.label}),a.jsx("span",{className:`text-xs ${l.textColor} opacity-70`,children:l.tasks.length})]}),a.jsx("div",{className:"space-y-2",children:l.tasks.length===0?a.jsx("p",{className:"text-xs text-neutral-600 text-center py-6",children:"No tasks"}):l.tasks.map(i=>a.jsx(Ve.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2},children:a.jsx(jI,{task:i})},i.id))})]},l.id))})}const EI=[{id:"board",label:"Board"},{id:"list",label:"List"}];function MI(){const{id:e}=L1(),[t,l]=r.useState("board"),i=ga(["task:started","task:completed","task:failed"]),{data:o,loading:u}=we(e?`/api/projects/${e}`:null),{data:d}=we(e?`/api/projects/${e}/tasks`:null,[i]);return u?a.jsx("div",{className:"p-6",children:a.jsx(We,{count:4})}):o?a.jsxs("div",{className:"p-6 max-w-6xl",children:[a.jsxs(Be,{to:"/projects",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4",children:[a.jsx(ls,{size:14})," Back to projects"]}),a.jsx(ze,{title:o.name,subtitle:o.description||`Created ${new Date(o.created_at).toLocaleDateString()}`,action:a.jsx(ft,{status:o.status})}),d&&a.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:"Total tasks"}),a.jsx("p",{className:"text-lg font-bold",children:d.length})]}),a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:"Completed"}),a.jsx("p",{className:"text-lg font-bold",children:d.filter(h=>h.status==="completed").length})]}),a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[a.jsx("p",{className:"text-xs text-neutral-400",children:"In progress"}),a.jsx("p",{className:"text-lg font-bold",children:d.filter(h=>h.status==="in_progress").length})]})]}),a.jsx("div",{className:"mb-4",children:a.jsx(q1,{tabs:EI,activeTab:t,onTabChange:h=>l(h),layoutId:"project-view-tabs"})}),d!=null&&d.length?t==="board"?a.jsx(NI,{tasks:d}):a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:d.map(h=>a.jsxs(Be,{to:`/tasks/${h.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[a.jsxs("div",{className:"min-w-0 mr-3",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:h.title}),a.jsx("p",{className:"text-xs text-neutral-400",children:new Date(h.created_at).toLocaleString()})]}),a.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[h.priority&&h.priority!=="normal"&&a.jsx("span",{className:"text-xs text-warning",children:h.priority}),a.jsx(ft,{status:h.status})]})]},h.id))}):a.jsx(bt,{icon:a.jsx(H1,{size:32}),title:"No tasks in this project",description:"Tasks assigned to this project will appear here."})]}):a.jsx("div",{className:"p-6 text-neutral-400",children:"Project not found"})}const SI={webhook:$1,schedule:z1,event:Af,manual:Rn};function ZI(e){if(!e)return"Never";const t=/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"),l=Date.now()-t.getTime();if(l<0)return"just now";const i=Math.floor(l/6e4);if(i<1)return"just now";if(i<60)return`${i}m ago`;const o=Math.floor(i/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function CI(){const e=cn(),[t,l]=r.useState([]),[i,o]=r.useState(!0),[u,d]=r.useState(""),[h,f]=r.useState(null),p=async()=>{try{const w=await me("/api/automations");l(w.data||[])}catch{de("error","Couldn't load automations")}finally{o(!1)}};r.useEffect(()=>{p()},[]);const x=t.filter(w=>w.name.toLowerCase().includes(u.toLowerCase())),g=async(w,N)=>{try{await me(`/api/automations/${w}`,{method:"PATCH",body:JSON.stringify({enabled:N})}),l(E=>E.map(j=>j.id===w?{...j,enabled:N}:j))}catch{de("error","Couldn't update automation")}},b=async()=>{if(h){try{await me(`/api/automations/${h}`,{method:"DELETE"}),l(w=>w.filter(N=>N.id!==h)),de("success","Automation deleted")}catch{de("error","Couldn't delete automation")}f(null)}};return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Automations",subtitle:"Build visual automation flows with triggers, conditions, and actions",action:a.jsxs("button",{onClick:()=>e("/automations/new"),className:"flex items-center gap-1.5 rounded-lg bg-white px-3 py-1.5 text-xs font-medium text-black hover:bg-gray-200",children:[a.jsx(Mt,{size:14,weight:"bold"}),"New automation"]})}),t.length>0&&a.jsxs("div",{className:"relative mb-4",children:[a.jsx(xa,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-500"}),a.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?a.jsx("div",{className:"space-y-2",children:[1,2,3].map(w=>a.jsx(tn,{className:"h-16 rounded-lg"},w))}):t.length===0?a.jsx(bt,{icon:a.jsx(sa,{size:32}),title:"No automations yet",description:"Create your first automation to connect triggers with actions",action:a.jsxs("button",{onClick:()=>e("/automations/new"),className:"flex items-center gap-1.5 rounded-lg bg-white/10 px-3 py-1.5 text-xs text-white hover:bg-white/20",children:[a.jsx(Mt,{size:14,weight:"bold"}),"New automation"]})}):x.length===0?a.jsx("p",{className:"text-sm text-neutral-500 text-center py-8",children:"No automations match your search"}):a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:x.map(w=>{const N=SI[w.trigger_type]||sa;return a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("button",{onClick:()=>e(`/automations/${w.id}/edit`),className:"min-w-0 mr-3 text-left flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(N,{size:14,className:"text-neutral-500 shrink-0"}),a.jsx("p",{className:"text-sm font-medium truncate",children:w.name})]}),a.jsxs("p",{className:"text-xs text-neutral-400 mt-0.5",children:[w.steps.length," ",w.steps.length===1?"step":"steps",w.last_fired_at&&` · Last run ${ZI(w.last_fired_at)}`]})]}),a.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[a.jsx(_1,{checked:w.enabled,onChange:E=>g(w.id,E)}),a.jsx("button",{onClick:()=>f(w.id),className:"text-neutral-500 hover:text-red-400 transition-colors",title:"Delete",children:a.jsx(Yt,{size:14})})]})]},w.id)})}),a.jsx(b0,{open:!!h,title:"Delete automation",message:"This will permanently delete this automation and its history. This action can't be undone.",confirmLabel:"Delete",onConfirm:b,onClose:()=>f(null)})]})}const p0={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"},HI={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"},zS={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 G0(e){var t;return e.action_type==="transform_data"?(((t=e.action_config)==null?void 0:t.mappings)||[]).map(o=>o.target).filter(Boolean):zS[e.action_type]||[]}function Oi(e,t=""){const l={};for(const[i,o]of Object.entries(e)){const u=t?`${t}.${i}`:i;if(o!==null&&typeof o=="object"&&!Array.isArray(o)){const d=Oi(o,u);Object.assign(l,d.payload)}else l[u]=o}return{fields:Object.keys(l),payload:l}}function I1(e){var u;const{sampleFields:t,samplePayload:l,previousSteps:i}=e,o=[];if(t.length>0){const d=t.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}});o.push({label:"Trigger",prefix:"trigger",fields:d})}for(const d of i){let h=zS[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(x=>({name:x,path:`${d.id}.${x}`}));o.push({label:`Step ${d.id.replace("step_","")}: ${f}`,prefix:d.id,fields:p})}}return o}function $S(e){const t=[],l=/\{\{([^}]+)\}\}/g;let i;for(;(i=l.exec(e))!==null;)t.push(i[1].trim());return t}function VI(e,t){const l=new Set(t);return e.filter(i=>!l.has(i))}const u0={trigger:{width:280,height:80},step:{width:280,height:80},conditional:{width:280,height:100},addStep:{width:200,height:40}},nn="trigger",B0=e=>`add-after-${e}`;function _I(e,t){const l=JSON.stringify(e.action_config||{})+(e.prompt||""),i=$S(l);if(i.length===0)return[];const o={};for(const d of i){const h=d.split(".")[0];o[h]=(o[h]||0)+1}const u=[];for(const[d,h]of Object.entries(o))if(d==="trigger")u.push({label:"Trigger",count:h});else{const f=t.find(p=>p.id===d);u.push({label:(f==null?void 0:f.label)||d,count:h})}return u}function qS(e){const t=[],l=[],i=e.node_positions;t.push({id:nn,type:"trigger",position:(i==null?void 0:i[nn])||{x:0,y:0},...u0.trigger,data:{triggerType:e.trigger_type,triggerConfig:e.trigger_config,name:e.name,description:e.description||"",cooldownSeconds:e.cooldown_seconds,variables:e.variables||[],sampleFields:e.sample_fields||[],samplePayload:e.sample_payload||null}});let o=nn;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 x=f.action_config||{},g=x.condition||{field:"",operator:"equals",value:""};t.push({id:p,type:"conditional",position:(i==null?void 0:i[p])||{x:0,y:0},...u0.conditional,data:{stepIndex:h,stepId:f.id,stepType:f.step_type,label:f.label||"Conditional",actionConfig:x,outputFields:["branch","branch_output"],condition:g}}),l.push({id:`${o}->${p}`,source:o,target:p,type:"dataFlow"});const b=x.then_actions||[];let w=p;for(let Z=0;Z<b.length;Z++){const M=b[Z],S=`${p}-then-${Z}`;t.push({id:S,type:"step",position:(i==null?void 0:i[S])||{x:0,y:0},...u0.step,data:{stepIndex:-1,stepId:M.id,stepType:M.action_type,label:M.label||p0[M.action_type]||M.action_type,actionConfig:M.action_config||{},outputFields:G0(M),branchType:"then",parentConditionalId:p,branchIndex:Z}}),l.push({id:`${w}->${S}`,source:w,sourceHandle:w===p?"then":void 0,target:S,type:"dataFlow",data:{branchType:"then"}}),w=S}const N=B0(`${p}-then`);t.push({id:N,type:"addStep",position:(i==null?void 0:i[N])||{x:0,y:0},...u0.addStep,data:{parentNodeId:w,insertIndex:b.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=x.else_actions||[];let j=p;for(let Z=0;Z<E.length;Z++){const M=E[Z],S=`${p}-else-${Z}`;t.push({id:S,type:"step",position:(i==null?void 0:i[S])||{x:0,y:0},...u0.step,data:{stepIndex:-1,stepId:M.id,stepType:M.action_type,label:M.label||p0[M.action_type]||M.action_type,actionConfig:M.action_config||{},outputFields:G0(M),branchType:"else",parentConditionalId:p,branchIndex:Z}}),l.push({id:`${j}->${S}`,source:j,sourceHandle:j===p?"else":void 0,target:S,type:"dataFlow",data:{branchType:"else"}}),j=S}const A=B0(`${p}-else`);t.push({id:A,type:"addStep",position:(i==null?void 0:i[A])||{x:0,y:0},...u0.addStep,data:{parentNodeId:j,insertIndex:E.length,branchType:"else",conditionalNodeId:p}}),l.push({id:`${j}->${A}`,source:j,sourceHandle:j===p?"else":void 0,target:A,type:"addStepEdge",data:{branchType:"else"}}),u.push({id:f.id,label:f.label||"Conditional"}),o=p}else{const x={id:f.id,action_type:f.step_type,action_config:f.action_config||{},label:f.label},g=f.label||p0[f.step_type]||f.step_type,b=_I(f,u);t.push({id:p,type:"step",position:(i==null?void 0:i[p])||{x:0,y:0},...u0.step,data:{stepIndex:h,stepId:f.id,stepType:f.step_type,label:g,actionConfig:f.action_config||{},outputFields:G0(x),inputSources:b,agentId:f.agent_id,agentName:f.agent_name,prompt:f.prompt,requiredIntegrations:f.required_integrations,connectionId:f.connection_id}}),l.push({id:`${o}->${p}`,source:o,target:p,type:"dataFlow"}),u.push({id:f.id,label:g}),o=p}}const d=B0(o);return t.push({id:d,type:"addStep",position:(i==null?void 0:i[d])||{x:0,y:0},...u0.addStep,data:{parentNodeId:o,insertIndex:e.steps.length}}),l.push({id:`${o}->${d}`,source:o,target:d,type:"addStepEdge"}),{nodes:t,edges:l,hasCustomPositions:!!i&&Object.keys(i).length>0}}function TI(e,t){var d;const l=e.find(h=>h.type==="trigger");if(!l)throw new Error("No trigger node found");const i=l.data,o=LI(e,t),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:o,variables:(d=i.variables)!=null&&d.length?i.variables:void 0,cooldown_seconds:i.cooldownSeconds,node_positions:u}}function LI(e,t){const l=[],i=t.filter(d=>!d.sourceHandle||d.sourceHandle!=="then"&&d.sourceHandle!=="else");let o=nn;const u=new Set;for(;;){u.add(o);const d=i.find(f=>f.source===o&&!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=J7(e,t,h.id,"then"),x=J7(e,t,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:x}})}else if(h.type==="step"){const f=h.data;l.push(kI(f))}o=h.id}return l.map((d,h)=>({...d,id:`step_${h+1}`}))}function J7(e,t,l,i){const o=[];let u=l;const d=new Set;for(;;){d.add(u);const h=t.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;o.push({id:p.stepId,action_type:p.stepType,action_config:p.actionConfig,label:p.label})}u=f.id}return o.map((h,f)=>({...h,id:`${i}_step_${f+1}`}))}function kI(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 RI(){return qS({name:"",description:null,trigger_type:"webhook",trigger_config:{},steps:[],variables:[],cooldown_seconds:0,sample_payload:null,sample_fields:null})}function _f(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 wu,W7;function DI(){if(W7)return wu;W7=1;function e(){this.__data__=[],this.size=0}return wu=e,wu}var Au,e9;function cs(){if(e9)return Au;e9=1;function e(t,l){return t===l||t!==t&&l!==l}return Au=e,Au}var ju,t9;function uo(){if(t9)return ju;t9=1;var e=cs();function t(l,i){for(var o=l.length;o--;)if(e(l[o][0],i))return o;return-1}return ju=t,ju}var Nu,a9;function OI(){if(a9)return Nu;a9=1;var e=uo(),t=Array.prototype,l=t.splice;function i(o){var u=this.__data__,d=e(u,o);if(d<0)return!1;var h=u.length-1;return d==h?u.pop():l.call(u,d,1),--this.size,!0}return Nu=i,Nu}var Eu,n9;function FI(){if(n9)return Eu;n9=1;var e=uo();function t(l){var i=this.__data__,o=e(i,l);return o<0?void 0:i[o][1]}return Eu=t,Eu}var Mu,r9;function zI(){if(r9)return Mu;r9=1;var e=uo();function t(l){return e(this.__data__,l)>-1}return Mu=t,Mu}var Su,s9;function $I(){if(s9)return Su;s9=1;var e=uo();function t(l,i){var o=this.__data__,u=e(o,l);return u<0?(++this.size,o.push([l,i])):o[u][1]=i,this}return Su=t,Su}var Zu,l9;function ho(){if(l9)return Zu;l9=1;var e=DI(),t=OI(),l=FI(),i=zI(),o=$I();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=t,u.prototype.get=l,u.prototype.has=i,u.prototype.set=o,Zu=u,Zu}var Cu,i9;function qI(){if(i9)return Cu;i9=1;var e=ho();function t(){this.__data__=new e,this.size=0}return Cu=t,Cu}var Hu,o9;function II(){if(o9)return Hu;o9=1;function e(t){var l=this.__data__,i=l.delete(t);return this.size=l.size,i}return Hu=e,Hu}var Vu,c9;function BI(){if(c9)return Vu;c9=1;function e(t){return this.__data__.get(t)}return Vu=e,Vu}var _u,u9;function PI(){if(u9)return _u;u9=1;function e(t){return this.__data__.has(t)}return _u=e,_u}var Tu,d9;function IS(){if(d9)return Tu;d9=1;var e=typeof mi=="object"&&mi&&mi.Object===Object&&mi;return Tu=e,Tu}var Lu,h9;function Ka(){if(h9)return Lu;h9=1;var e=IS(),t=typeof self=="object"&&self&&self.Object===Object&&self,l=e||t||Function("return this")();return Lu=l,Lu}var ku,m9;function us(){if(m9)return ku;m9=1;var e=Ka(),t=e.Symbol;return ku=t,ku}var Ru,f9;function UI(){if(f9)return Ru;f9=1;var e=us(),t=Object.prototype,l=t.hasOwnProperty,i=t.toString,o=e?e.toStringTag:void 0;function u(d){var h=l.call(d,o),f=d[o];try{d[o]=void 0;var p=!0}catch{}var x=i.call(d);return p&&(h?d[o]=f:delete d[o]),x}return Ru=u,Ru}var Du,p9;function GI(){if(p9)return Du;p9=1;var e=Object.prototype,t=e.toString;function l(i){return t.call(i)}return Du=l,Du}var Ou,x9;function X0(){if(x9)return Ou;x9=1;var e=us(),t=UI(),l=GI(),i="[object Null]",o="[object Undefined]",u=e?e.toStringTag:void 0;function d(h){return h==null?h===void 0?o:i:u&&u in Object(h)?t(h):l(h)}return Ou=d,Ou}var Fu,g9;function Ra(){if(g9)return Fu;g9=1;function e(t){var l=typeof t;return t!=null&&(l=="object"||l=="function")}return Fu=e,Fu}var zu,v9;function B1(){if(v9)return zu;v9=1;var e=X0(),t=Ra(),l="[object AsyncFunction]",i="[object Function]",o="[object GeneratorFunction]",u="[object Proxy]";function d(h){if(!t(h))return!1;var f=e(h);return f==i||f==o||f==l||f==u}return zu=d,zu}var $u,b9;function YI(){if(b9)return $u;b9=1;var e=Ka(),t=e["__core-js_shared__"];return $u=t,$u}var qu,y9;function KI(){if(y9)return qu;y9=1;var e=YI(),t=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function l(i){return!!t&&t in i}return qu=l,qu}var Iu,w9;function BS(){if(w9)return Iu;w9=1;var e=Function.prototype,t=e.toString;function l(i){if(i!=null){try{return t.call(i)}catch{}try{return i+""}catch{}}return""}return Iu=l,Iu}var Bu,A9;function XI(){if(A9)return Bu;A9=1;var e=B1(),t=KI(),l=Ra(),i=BS(),o=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,d=Function.prototype,h=Object.prototype,f=d.toString,p=h.hasOwnProperty,x=RegExp("^"+f.call(p).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(b){if(!l(b)||t(b))return!1;var w=e(b)?x:u;return w.test(i(b))}return Bu=g,Bu}var Pu,j9;function QI(){if(j9)return Pu;j9=1;function e(t,l){return t==null?void 0:t[l]}return Pu=e,Pu}var Uu,N9;function Q0(){if(N9)return Uu;N9=1;var e=XI(),t=QI();function l(i,o){var u=t(i,o);return e(u)?u:void 0}return Uu=l,Uu}var Gu,E9;function Tf(){if(E9)return Gu;E9=1;var e=Q0(),t=Ka(),l=e(t,"Map");return Gu=l,Gu}var Yu,M9;function mo(){if(M9)return Yu;M9=1;var e=Q0(),t=e(Object,"create");return Yu=t,Yu}var Ku,S9;function JI(){if(S9)return Ku;S9=1;var e=mo();function t(){this.__data__=e?e(null):{},this.size=0}return Ku=t,Ku}var Xu,Z9;function WI(){if(Z9)return Xu;Z9=1;function e(t){var l=this.has(t)&&delete this.__data__[t];return this.size-=l?1:0,l}return Xu=e,Xu}var Qu,C9;function eB(){if(C9)return Qu;C9=1;var e=mo(),t="__lodash_hash_undefined__",l=Object.prototype,i=l.hasOwnProperty;function o(u){var d=this.__data__;if(e){var h=d[u];return h===t?void 0:h}return i.call(d,u)?d[u]:void 0}return Qu=o,Qu}var Ju,H9;function tB(){if(H9)return Ju;H9=1;var e=mo(),t=Object.prototype,l=t.hasOwnProperty;function i(o){var u=this.__data__;return e?u[o]!==void 0:l.call(u,o)}return Ju=i,Ju}var Wu,V9;function aB(){if(V9)return Wu;V9=1;var e=mo(),t="__lodash_hash_undefined__";function l(i,o){var u=this.__data__;return this.size+=this.has(i)?0:1,u[i]=e&&o===void 0?t:o,this}return Wu=l,Wu}var ed,_9;function nB(){if(_9)return ed;_9=1;var e=JI(),t=WI(),l=eB(),i=tB(),o=aB();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=t,u.prototype.get=l,u.prototype.has=i,u.prototype.set=o,ed=u,ed}var td,T9;function rB(){if(T9)return td;T9=1;var e=nB(),t=ho(),l=Tf();function i(){this.size=0,this.__data__={hash:new e,map:new(l||t),string:new e}}return td=i,td}var ad,L9;function sB(){if(L9)return ad;L9=1;function e(t){var l=typeof t;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?t!=="__proto__":t===null}return ad=e,ad}var nd,k9;function fo(){if(k9)return nd;k9=1;var e=sB();function t(l,i){var o=l.__data__;return e(i)?o[typeof i=="string"?"string":"hash"]:o.map}return nd=t,nd}var rd,R9;function lB(){if(R9)return rd;R9=1;var e=fo();function t(l){var i=e(this,l).delete(l);return this.size-=i?1:0,i}return rd=t,rd}var sd,D9;function iB(){if(D9)return sd;D9=1;var e=fo();function t(l){return e(this,l).get(l)}return sd=t,sd}var ld,O9;function oB(){if(O9)return ld;O9=1;var e=fo();function t(l){return e(this,l).has(l)}return ld=t,ld}var id,F9;function cB(){if(F9)return id;F9=1;var e=fo();function t(l,i){var o=e(this,l),u=o.size;return o.set(l,i),this.size+=o.size==u?0:1,this}return id=t,id}var od,z9;function Lf(){if(z9)return od;z9=1;var e=rB(),t=lB(),l=iB(),i=oB(),o=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=t,u.prototype.get=l,u.prototype.has=i,u.prototype.set=o,od=u,od}var cd,$9;function uB(){if($9)return cd;$9=1;var e=ho(),t=Tf(),l=Lf(),i=200;function o(u,d){var h=this.__data__;if(h instanceof e){var f=h.__data__;if(!t||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 cd=o,cd}var ud,q9;function po(){if(q9)return ud;q9=1;var e=ho(),t=qI(),l=II(),i=BI(),o=PI(),u=uB();function d(h){var f=this.__data__=new e(h);this.size=f.size}return d.prototype.clear=t,d.prototype.delete=l,d.prototype.get=i,d.prototype.has=o,d.prototype.set=u,ud=d,ud}var dd,I9;function kf(){if(I9)return dd;I9=1;function e(t,l){for(var i=-1,o=t==null?0:t.length;++i<o&&l(t[i],i,t)!==!1;);return t}return dd=e,dd}var hd,B9;function PS(){if(B9)return hd;B9=1;var e=Q0(),t=(function(){try{var l=e(Object,"defineProperty");return l({},"",{}),l}catch{}})();return hd=t,hd}var md,P9;function xo(){if(P9)return md;P9=1;var e=PS();function t(l,i,o){i=="__proto__"&&e?e(l,i,{configurable:!0,enumerable:!0,value:o,writable:!0}):l[i]=o}return md=t,md}var fd,U9;function go(){if(U9)return fd;U9=1;var e=xo(),t=cs(),l=Object.prototype,i=l.hasOwnProperty;function o(u,d,h){var f=u[d];(!(i.call(u,d)&&t(f,h))||h===void 0&&!(d in u))&&e(u,d,h)}return fd=o,fd}var pd,G9;function P1(){if(G9)return pd;G9=1;var e=go(),t=xo();function l(i,o,u,d){var h=!u;u||(u={});for(var f=-1,p=o.length;++f<p;){var x=o[f],g=d?d(u[x],i[x],x,u,i):void 0;g===void 0&&(g=i[x]),h?t(u,x,g):e(u,x,g)}return u}return pd=l,pd}var xd,Y9;function dB(){if(Y9)return xd;Y9=1;function e(t,l){for(var i=-1,o=Array(t);++i<t;)o[i]=l(i);return o}return xd=e,xd}var gd,K9;function dn(){if(K9)return gd;K9=1;function e(t){return t!=null&&typeof t=="object"}return gd=e,gd}var vd,X9;function hB(){if(X9)return vd;X9=1;var e=X0(),t=dn(),l="[object Arguments]";function i(o){return t(o)&&e(o)==l}return vd=i,vd}var bd,Q9;function U1(){if(Q9)return bd;Q9=1;var e=hB(),t=dn(),l=Object.prototype,i=l.hasOwnProperty,o=l.propertyIsEnumerable,u=e((function(){return arguments})())?e:function(d){return t(d)&&i.call(d,"callee")&&!o.call(d,"callee")};return bd=u,bd}var yd,J9;function St(){if(J9)return yd;J9=1;var e=Array.isArray;return yd=e,yd}var m1={exports:{}},wd,W9;function mB(){if(W9)return wd;W9=1;function e(){return!1}return wd=e,wd}m1.exports;var ev;function ds(){return ev||(ev=1,(function(e,t){var l=Ka(),i=mB(),o=t&&!t.nodeType&&t,u=o&&!0&&e&&!e.nodeType&&e,d=u&&u.exports===o,h=d?l.Buffer:void 0,f=h?h.isBuffer:void 0,p=f||i;e.exports=p})(m1,m1.exports)),m1.exports}var Ad,tv;function vo(){if(tv)return Ad;tv=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function l(i,o){var u=typeof i;return o=o??e,!!o&&(u=="number"||u!="symbol"&&t.test(i))&&i>-1&&i%1==0&&i<o}return Ad=l,Ad}var jd,av;function Rf(){if(av)return jd;av=1;var e=9007199254740991;function t(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=e}return jd=t,jd}var Nd,nv;function fB(){if(nv)return Nd;nv=1;var e=X0(),t=Rf(),l=dn(),i="[object Arguments]",o="[object Array]",u="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",p="[object Map]",x="[object Number]",g="[object Object]",b="[object RegExp]",w="[object Set]",N="[object String]",E="[object WeakMap]",j="[object ArrayBuffer]",A="[object DataView]",Z="[object Float32Array]",M="[object Float64Array]",S="[object Int8Array]",_="[object Int16Array]",T="[object Int32Array]",V="[object Uint8Array]",H="[object Uint8ClampedArray]",L="[object Uint16Array]",D="[object Uint32Array]",B={};B[Z]=B[M]=B[S]=B[_]=B[T]=B[V]=B[H]=B[L]=B[D]=!0,B[i]=B[o]=B[j]=B[u]=B[A]=B[d]=B[h]=B[f]=B[p]=B[x]=B[g]=B[b]=B[w]=B[N]=B[E]=!1;function K(J){return l(J)&&t(J.length)&&!!B[e(J)]}return Nd=K,Nd}var Ed,rv;function bo(){if(rv)return Ed;rv=1;function e(t){return function(l){return t(l)}}return Ed=e,Ed}var f1={exports:{}};f1.exports;var sv;function Df(){return sv||(sv=1,(function(e,t){var l=IS(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,u=o&&o.exports===i,d=u&&l.process,h=(function(){try{var f=o&&o.require&&o.require("util").types;return f||d&&d.binding&&d.binding("util")}catch{}})();e.exports=h})(f1,f1.exports)),f1.exports}var Md,lv;function G1(){if(lv)return Md;lv=1;var e=fB(),t=bo(),l=Df(),i=l&&l.isTypedArray,o=i?t(i):e;return Md=o,Md}var Sd,iv;function US(){if(iv)return Sd;iv=1;var e=dB(),t=U1(),l=St(),i=ds(),o=vo(),u=G1(),d=Object.prototype,h=d.hasOwnProperty;function f(p,x){var g=l(p),b=!g&&t(p),w=!g&&!b&&i(p),N=!g&&!b&&!w&&u(p),E=g||b||w||N,j=E?e(p.length,String):[],A=j.length;for(var Z in p)(x||h.call(p,Z))&&!(E&&(Z=="length"||w&&(Z=="offset"||Z=="parent")||N&&(Z=="buffer"||Z=="byteLength"||Z=="byteOffset")||o(Z,A)))&&j.push(Z);return j}return Sd=f,Sd}var Zd,ov;function yo(){if(ov)return Zd;ov=1;var e=Object.prototype;function t(l){var i=l&&l.constructor,o=typeof i=="function"&&i.prototype||e;return l===o}return Zd=t,Zd}var Cd,cv;function GS(){if(cv)return Cd;cv=1;function e(t,l){return function(i){return t(l(i))}}return Cd=e,Cd}var Hd,uv;function pB(){if(uv)return Hd;uv=1;var e=GS(),t=e(Object.keys,Object);return Hd=t,Hd}var Vd,dv;function Of(){if(dv)return Vd;dv=1;var e=yo(),t=pB(),l=Object.prototype,i=l.hasOwnProperty;function o(u){if(!e(u))return t(u);var d=[];for(var h in Object(u))i.call(u,h)&&h!="constructor"&&d.push(h);return d}return Vd=o,Vd}var _d,hv;function Dn(){if(hv)return _d;hv=1;var e=B1(),t=Rf();function l(i){return i!=null&&t(i.length)&&!e(i)}return _d=l,_d}var Td,mv;function y0(){if(mv)return Td;mv=1;var e=US(),t=Of(),l=Dn();function i(o){return l(o)?e(o):t(o)}return Td=i,Td}var Ld,fv;function xB(){if(fv)return Ld;fv=1;var e=P1(),t=y0();function l(i,o){return i&&e(o,t(o),i)}return Ld=l,Ld}var kd,pv;function gB(){if(pv)return kd;pv=1;function e(t){var l=[];if(t!=null)for(var i in Object(t))l.push(i);return l}return kd=e,kd}var Rd,xv;function vB(){if(xv)return Rd;xv=1;var e=Ra(),t=yo(),l=gB(),i=Object.prototype,o=i.hasOwnProperty;function u(d){if(!e(d))return l(d);var h=t(d),f=[];for(var p in d)p=="constructor"&&(h||!o.call(d,p))||f.push(p);return f}return Rd=u,Rd}var Dd,gv;function J0(){if(gv)return Dd;gv=1;var e=US(),t=vB(),l=Dn();function i(o){return l(o)?e(o,!0):t(o)}return Dd=i,Dd}var Od,vv;function bB(){if(vv)return Od;vv=1;var e=P1(),t=J0();function l(i,o){return i&&e(o,t(o),i)}return Od=l,Od}var p1={exports:{}};p1.exports;var bv;function YS(){return bv||(bv=1,(function(e,t){var l=Ka(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,u=o&&o.exports===i,d=u?l.Buffer:void 0,h=d?d.allocUnsafe:void 0;function f(p,x){if(x)return p.slice();var g=p.length,b=h?h(g):new p.constructor(g);return p.copy(b),b}e.exports=f})(p1,p1.exports)),p1.exports}var Fd,yv;function KS(){if(yv)return Fd;yv=1;function e(t,l){var i=-1,o=t.length;for(l||(l=Array(o));++i<o;)l[i]=t[i];return l}return Fd=e,Fd}var zd,wv;function XS(){if(wv)return zd;wv=1;function e(t,l){for(var i=-1,o=t==null?0:t.length,u=0,d=[];++i<o;){var h=t[i];l(h,i,t)&&(d[u++]=h)}return d}return zd=e,zd}var $d,Av;function QS(){if(Av)return $d;Av=1;function e(){return[]}return $d=e,$d}var qd,jv;function Ff(){if(jv)return qd;jv=1;var e=XS(),t=QS(),l=Object.prototype,i=l.propertyIsEnumerable,o=Object.getOwnPropertySymbols,u=o?function(d){return d==null?[]:(d=Object(d),e(o(d),function(h){return i.call(d,h)}))}:t;return qd=u,qd}var Id,Nv;function yB(){if(Nv)return Id;Nv=1;var e=P1(),t=Ff();function l(i,o){return e(i,t(i),o)}return Id=l,Id}var Bd,Ev;function zf(){if(Ev)return Bd;Ev=1;function e(t,l){for(var i=-1,o=l.length,u=t.length;++i<o;)t[u+i]=l[i];return t}return Bd=e,Bd}var Pd,Mv;function wo(){if(Mv)return Pd;Mv=1;var e=GS(),t=e(Object.getPrototypeOf,Object);return Pd=t,Pd}var Ud,Sv;function JS(){if(Sv)return Ud;Sv=1;var e=zf(),t=wo(),l=Ff(),i=QS(),o=Object.getOwnPropertySymbols,u=o?function(d){for(var h=[];d;)e(h,l(d)),d=t(d);return h}:i;return Ud=u,Ud}var Gd,Zv;function wB(){if(Zv)return Gd;Zv=1;var e=P1(),t=JS();function l(i,o){return e(i,t(i),o)}return Gd=l,Gd}var Yd,Cv;function WS(){if(Cv)return Yd;Cv=1;var e=zf(),t=St();function l(i,o,u){var d=o(i);return t(i)?d:e(d,u(i))}return Yd=l,Yd}var Kd,Hv;function eZ(){if(Hv)return Kd;Hv=1;var e=WS(),t=Ff(),l=y0();function i(o){return e(o,l,t)}return Kd=i,Kd}var Xd,Vv;function AB(){if(Vv)return Xd;Vv=1;var e=WS(),t=JS(),l=J0();function i(o){return e(o,l,t)}return Xd=i,Xd}var Qd,_v;function jB(){if(_v)return Qd;_v=1;var e=Q0(),t=Ka(),l=e(t,"DataView");return Qd=l,Qd}var Jd,Tv;function NB(){if(Tv)return Jd;Tv=1;var e=Q0(),t=Ka(),l=e(t,"Promise");return Jd=l,Jd}var Wd,Lv;function tZ(){if(Lv)return Wd;Lv=1;var e=Q0(),t=Ka(),l=e(t,"Set");return Wd=l,Wd}var e8,kv;function EB(){if(kv)return e8;kv=1;var e=Q0(),t=Ka(),l=e(t,"WeakMap");return e8=l,e8}var t8,Rv;function hs(){if(Rv)return t8;Rv=1;var e=jB(),t=Tf(),l=NB(),i=tZ(),o=EB(),u=X0(),d=BS(),h="[object Map]",f="[object Object]",p="[object Promise]",x="[object Set]",g="[object WeakMap]",b="[object DataView]",w=d(e),N=d(t),E=d(l),j=d(i),A=d(o),Z=u;return(e&&Z(new e(new ArrayBuffer(1)))!=b||t&&Z(new t)!=h||l&&Z(l.resolve())!=p||i&&Z(new i)!=x||o&&Z(new o)!=g)&&(Z=function(M){var S=u(M),_=S==f?M.constructor:void 0,T=_?d(_):"";if(T)switch(T){case w:return b;case N:return h;case E:return p;case j:return x;case A:return g}return S}),t8=Z,t8}var a8,Dv;function MB(){if(Dv)return a8;Dv=1;var e=Object.prototype,t=e.hasOwnProperty;function l(i){var o=i.length,u=new i.constructor(o);return o&&typeof i[0]=="string"&&t.call(i,"index")&&(u.index=i.index,u.input=i.input),u}return a8=l,a8}var n8,Ov;function aZ(){if(Ov)return n8;Ov=1;var e=Ka(),t=e.Uint8Array;return n8=t,n8}var r8,Fv;function $f(){if(Fv)return r8;Fv=1;var e=aZ();function t(l){var i=new l.constructor(l.byteLength);return new e(i).set(new e(l)),i}return r8=t,r8}var s8,zv;function SB(){if(zv)return s8;zv=1;var e=$f();function t(l,i){var o=i?e(l.buffer):l.buffer;return new l.constructor(o,l.byteOffset,l.byteLength)}return s8=t,s8}var l8,$v;function ZB(){if($v)return l8;$v=1;var e=/\w*$/;function t(l){var i=new l.constructor(l.source,e.exec(l));return i.lastIndex=l.lastIndex,i}return l8=t,l8}var i8,qv;function CB(){if(qv)return i8;qv=1;var e=us(),t=e?e.prototype:void 0,l=t?t.valueOf:void 0;function i(o){return l?Object(l.call(o)):{}}return i8=i,i8}var o8,Iv;function nZ(){if(Iv)return o8;Iv=1;var e=$f();function t(l,i){var o=i?e(l.buffer):l.buffer;return new l.constructor(o,l.byteOffset,l.length)}return o8=t,o8}var c8,Bv;function HB(){if(Bv)return c8;Bv=1;var e=$f(),t=SB(),l=ZB(),i=CB(),o=nZ(),u="[object Boolean]",d="[object Date]",h="[object Map]",f="[object Number]",p="[object RegExp]",x="[object Set]",g="[object String]",b="[object Symbol]",w="[object ArrayBuffer]",N="[object DataView]",E="[object Float32Array]",j="[object Float64Array]",A="[object Int8Array]",Z="[object Int16Array]",M="[object Int32Array]",S="[object Uint8Array]",_="[object Uint8ClampedArray]",T="[object Uint16Array]",V="[object Uint32Array]";function H(L,D,B){var K=L.constructor;switch(D){case w:return e(L);case u:case d:return new K(+L);case N:return t(L,B);case E:case j:case A:case Z:case M:case S:case _:case T:case V:return o(L,B);case h:return new K;case f:case g:return new K(L);case p:return l(L);case x:return new K;case b:return i(L)}}return c8=H,c8}var u8,Pv;function rZ(){if(Pv)return u8;Pv=1;var e=Ra(),t=Object.create,l=(function(){function i(){}return function(o){if(!e(o))return{};if(t)return t(o);i.prototype=o;var u=new i;return i.prototype=void 0,u}})();return u8=l,u8}var d8,Uv;function sZ(){if(Uv)return d8;Uv=1;var e=rZ(),t=wo(),l=yo();function i(o){return typeof o.constructor=="function"&&!l(o)?e(t(o)):{}}return d8=i,d8}var h8,Gv;function VB(){if(Gv)return h8;Gv=1;var e=hs(),t=dn(),l="[object Map]";function i(o){return t(o)&&e(o)==l}return h8=i,h8}var m8,Yv;function _B(){if(Yv)return m8;Yv=1;var e=VB(),t=bo(),l=Df(),i=l&&l.isMap,o=i?t(i):e;return m8=o,m8}var f8,Kv;function TB(){if(Kv)return f8;Kv=1;var e=hs(),t=dn(),l="[object Set]";function i(o){return t(o)&&e(o)==l}return f8=i,f8}var p8,Xv;function LB(){if(Xv)return p8;Xv=1;var e=TB(),t=bo(),l=Df(),i=l&&l.isSet,o=i?t(i):e;return p8=o,p8}var x8,Qv;function lZ(){if(Qv)return x8;Qv=1;var e=po(),t=kf(),l=go(),i=xB(),o=bB(),u=YS(),d=KS(),h=yB(),f=wB(),p=eZ(),x=AB(),g=hs(),b=MB(),w=HB(),N=sZ(),E=St(),j=ds(),A=_B(),Z=Ra(),M=LB(),S=y0(),_=J0(),T=1,V=2,H=4,L="[object Arguments]",D="[object Array]",B="[object Boolean]",K="[object Date]",J="[object Error]",se="[object Function]",le="[object GeneratorFunction]",O="[object Map]",q="[object Number]",I="[object Object]",Y="[object RegExp]",X="[object Set]",k="[object String]",U="[object Symbol]",W="[object WeakMap]",$="[object ArrayBuffer]",F="[object DataView]",z="[object Float32Array]",ae="[object Float64Array]",fe="[object Int8Array]",pe="[object Int16Array]",Ee="[object Int32Array]",Me="[object Uint8Array]",_e="[object Uint8ClampedArray]",Pe="[object Uint16Array]",Te="[object Uint32Array]",Ae={};Ae[L]=Ae[D]=Ae[$]=Ae[F]=Ae[B]=Ae[K]=Ae[z]=Ae[ae]=Ae[fe]=Ae[pe]=Ae[Ee]=Ae[O]=Ae[q]=Ae[I]=Ae[Y]=Ae[X]=Ae[k]=Ae[U]=Ae[Me]=Ae[_e]=Ae[Pe]=Ae[Te]=!0,Ae[J]=Ae[se]=Ae[W]=!1;function $t(Ze,Tt,ie,pt,Oe,ut){var yt,rt=Tt&T,je=Tt&V,et=Tt&H;if(ie&&(yt=Oe?ie(Ze,pt,Oe,ut):ie(Ze)),yt!==void 0)return yt;if(!Z(Ze))return Ze;var Ue=E(Ze);if(Ue){if(yt=b(Ze),!rt)return d(Ze,yt)}else{var Lt=g(Ze),K1=Lt==se||Lt==le;if(j(Ze))return u(Ze,rt);if(Lt==I||Lt==L||K1&&!Oe){if(yt=je||K1?{}:N(Ze),!rt)return je?f(Ze,o(yt,Ze)):h(Ze,i(yt,Ze))}else{if(!Ae[Lt])return Oe?Ze:{};yt=w(Ze,Lt,rt)}}ut||(ut=new e);var fs=ut.get(Ze);if(fs)return fs;ut.set(Ze,yt),M(Ze)?Ze.forEach(function(Kt){yt.add($t(Kt,Tt,ie,Kt,Ze,ut))}):A(Ze)&&Ze.forEach(function(Kt,xt){yt.set(xt,$t(Kt,Tt,ie,xt,Ze,ut))});var Zo=et?je?x:p:je?_:S,X1=Ue?void 0:Zo(Ze);return t(X1||Ze,function(Kt,xt){X1&&(xt=Kt,Kt=Ze[xt]),l(yt,xt,$t(Kt,Tt,ie,xt,Ze,ut))}),yt}return x8=$t,x8}var g8,Jv;function kB(){if(Jv)return g8;Jv=1;var e=lZ(),t=4;function l(i){return e(i,t)}return g8=l,g8}var v8,Wv;function qf(){if(Wv)return v8;Wv=1;function e(t){return function(){return t}}return v8=e,v8}var b8,eb;function RB(){if(eb)return b8;eb=1;function e(t){return function(l,i,o){for(var u=-1,d=Object(l),h=o(l),f=h.length;f--;){var p=h[t?f:++u];if(i(d[p],p,d)===!1)break}return l}}return b8=e,b8}var y8,tb;function If(){if(tb)return y8;tb=1;var e=RB(),t=e();return y8=t,y8}var w8,ab;function Bf(){if(ab)return w8;ab=1;var e=If(),t=y0();function l(i,o){return i&&e(i,o,t)}return w8=l,w8}var A8,nb;function DB(){if(nb)return A8;nb=1;var e=Dn();function t(l,i){return function(o,u){if(o==null)return o;if(!e(o))return l(o,u);for(var d=o.length,h=i?d:-1,f=Object(o);(i?h--:++h<d)&&u(f[h],h,f)!==!1;);return o}}return A8=t,A8}var j8,rb;function Ao(){if(rb)return j8;rb=1;var e=Bf(),t=DB(),l=t(e);return j8=l,j8}var N8,sb;function W0(){if(sb)return N8;sb=1;function e(t){return t}return N8=e,N8}var E8,lb;function iZ(){if(lb)return E8;lb=1;var e=W0();function t(l){return typeof l=="function"?l:e}return E8=t,E8}var M8,ib;function oZ(){if(ib)return M8;ib=1;var e=kf(),t=Ao(),l=iZ(),i=St();function o(u,d){var h=i(u)?e:t;return h(u,l(d))}return M8=o,M8}var S8,ob;function cZ(){return ob||(ob=1,S8=oZ()),S8}var Z8,cb;function OB(){if(cb)return Z8;cb=1;var e=Ao();function t(l,i){var o=[];return e(l,function(u,d,h){i(u,d,h)&&o.push(u)}),o}return Z8=t,Z8}var C8,ub;function FB(){if(ub)return C8;ub=1;var e="__lodash_hash_undefined__";function t(l){return this.__data__.set(l,e),this}return C8=t,C8}var H8,db;function zB(){if(db)return H8;db=1;function e(t){return this.__data__.has(t)}return H8=e,H8}var V8,hb;function uZ(){if(hb)return V8;hb=1;var e=Lf(),t=FB(),l=zB();function i(o){var u=-1,d=o==null?0:o.length;for(this.__data__=new e;++u<d;)this.add(o[u])}return i.prototype.add=i.prototype.push=t,i.prototype.has=l,V8=i,V8}var _8,mb;function $B(){if(mb)return _8;mb=1;function e(t,l){for(var i=-1,o=t==null?0:t.length;++i<o;)if(l(t[i],i,t))return!0;return!1}return _8=e,_8}var T8,fb;function dZ(){if(fb)return T8;fb=1;function e(t,l){return t.has(l)}return T8=e,T8}var L8,pb;function hZ(){if(pb)return L8;pb=1;var e=uZ(),t=$B(),l=dZ(),i=1,o=2;function u(d,h,f,p,x,g){var b=f&i,w=d.length,N=h.length;if(w!=N&&!(b&&N>w))return!1;var E=g.get(d),j=g.get(h);if(E&&j)return E==h&&j==d;var A=-1,Z=!0,M=f&o?new e:void 0;for(g.set(d,h),g.set(h,d);++A<w;){var S=d[A],_=h[A];if(p)var T=b?p(_,S,A,h,d,g):p(S,_,A,d,h,g);if(T!==void 0){if(T)continue;Z=!1;break}if(M){if(!t(h,function(V,H){if(!l(M,H)&&(S===V||x(S,V,f,p,g)))return M.push(H)})){Z=!1;break}}else if(!(S===_||x(S,_,f,p,g))){Z=!1;break}}return g.delete(d),g.delete(h),Z}return L8=u,L8}var k8,xb;function qB(){if(xb)return k8;xb=1;function e(t){var l=-1,i=Array(t.size);return t.forEach(function(o,u){i[++l]=[u,o]}),i}return k8=e,k8}var R8,gb;function Pf(){if(gb)return R8;gb=1;function e(t){var l=-1,i=Array(t.size);return t.forEach(function(o){i[++l]=o}),i}return R8=e,R8}var D8,vb;function IB(){if(vb)return D8;vb=1;var e=us(),t=aZ(),l=cs(),i=hZ(),o=qB(),u=Pf(),d=1,h=2,f="[object Boolean]",p="[object Date]",x="[object Error]",g="[object Map]",b="[object Number]",w="[object RegExp]",N="[object Set]",E="[object String]",j="[object Symbol]",A="[object ArrayBuffer]",Z="[object DataView]",M=e?e.prototype:void 0,S=M?M.valueOf:void 0;function _(T,V,H,L,D,B,K){switch(H){case Z:if(T.byteLength!=V.byteLength||T.byteOffset!=V.byteOffset)return!1;T=T.buffer,V=V.buffer;case A:return!(T.byteLength!=V.byteLength||!B(new t(T),new t(V)));case f:case p:case b:return l(+T,+V);case x:return T.name==V.name&&T.message==V.message;case w:case E:return T==V+"";case g:var J=o;case N:var se=L&d;if(J||(J=u),T.size!=V.size&&!se)return!1;var le=K.get(T);if(le)return le==V;L|=h,K.set(T,V);var O=i(J(T),J(V),L,D,B,K);return K.delete(T),O;case j:if(S)return S.call(T)==S.call(V)}return!1}return D8=_,D8}var O8,bb;function BB(){if(bb)return O8;bb=1;var e=eZ(),t=1,l=Object.prototype,i=l.hasOwnProperty;function o(u,d,h,f,p,x){var g=h&t,b=e(u),w=b.length,N=e(d),E=N.length;if(w!=E&&!g)return!1;for(var j=w;j--;){var A=b[j];if(!(g?A in d:i.call(d,A)))return!1}var Z=x.get(u),M=x.get(d);if(Z&&M)return Z==d&&M==u;var S=!0;x.set(u,d),x.set(d,u);for(var _=g;++j<w;){A=b[j];var T=u[A],V=d[A];if(f)var H=g?f(V,T,A,d,u,x):f(T,V,A,u,d,x);if(!(H===void 0?T===V||p(T,V,h,f,x):H)){S=!1;break}_||(_=A=="constructor")}if(S&&!_){var L=u.constructor,D=d.constructor;L!=D&&"constructor"in u&&"constructor"in d&&!(typeof L=="function"&&L instanceof L&&typeof D=="function"&&D instanceof D)&&(S=!1)}return x.delete(u),x.delete(d),S}return O8=o,O8}var F8,yb;function PB(){if(yb)return F8;yb=1;var e=po(),t=hZ(),l=IB(),i=BB(),o=hs(),u=St(),d=ds(),h=G1(),f=1,p="[object Arguments]",x="[object Array]",g="[object Object]",b=Object.prototype,w=b.hasOwnProperty;function N(E,j,A,Z,M,S){var _=u(E),T=u(j),V=_?x:o(E),H=T?x:o(j);V=V==p?g:V,H=H==p?g:H;var L=V==g,D=H==g,B=V==H;if(B&&d(E)){if(!d(j))return!1;_=!0,L=!1}if(B&&!L)return S||(S=new e),_||h(E)?t(E,j,A,Z,M,S):l(E,j,V,A,Z,M,S);if(!(A&f)){var K=L&&w.call(E,"__wrapped__"),J=D&&w.call(j,"__wrapped__");if(K||J){var se=K?E.value():E,le=J?j.value():j;return S||(S=new e),M(se,le,A,Z,S)}}return B?(S||(S=new e),i(E,j,A,Z,M,S)):!1}return F8=N,F8}var z8,wb;function mZ(){if(wb)return z8;wb=1;var e=PB(),t=dn();function l(i,o,u,d,h){return i===o?!0:i==null||o==null||!t(i)&&!t(o)?i!==i&&o!==o:e(i,o,u,d,l,h)}return z8=l,z8}var $8,Ab;function UB(){if(Ab)return $8;Ab=1;var e=po(),t=mZ(),l=1,i=2;function o(u,d,h,f){var p=h.length,x=p,g=!f;if(u==null)return!x;for(u=Object(u);p--;){var b=h[p];if(g&&b[2]?b[1]!==u[b[0]]:!(b[0]in u))return!1}for(;++p<x;){b=h[p];var w=b[0],N=u[w],E=b[1];if(g&&b[2]){if(N===void 0&&!(w in u))return!1}else{var j=new e;if(f)var A=f(N,E,w,u,d,j);if(!(A===void 0?t(E,N,l|i,f,j):A))return!1}}return!0}return $8=o,$8}var q8,jb;function fZ(){if(jb)return q8;jb=1;var e=Ra();function t(l){return l===l&&!e(l)}return q8=t,q8}var I8,Nb;function GB(){if(Nb)return I8;Nb=1;var e=fZ(),t=y0();function l(i){for(var o=t(i),u=o.length;u--;){var d=o[u],h=i[d];o[u]=[d,h,e(h)]}return o}return I8=l,I8}var B8,Eb;function pZ(){if(Eb)return B8;Eb=1;function e(t,l){return function(i){return i==null?!1:i[t]===l&&(l!==void 0||t in Object(i))}}return B8=e,B8}var P8,Mb;function YB(){if(Mb)return P8;Mb=1;var e=UB(),t=GB(),l=pZ();function i(o){var u=t(o);return u.length==1&&u[0][2]?l(u[0][0],u[0][1]):function(d){return d===o||e(d,o,u)}}return P8=i,P8}var U8,Sb;function ms(){if(Sb)return U8;Sb=1;var e=X0(),t=dn(),l="[object Symbol]";function i(o){return typeof o=="symbol"||t(o)&&e(o)==l}return U8=i,U8}var G8,Zb;function Uf(){if(Zb)return G8;Zb=1;var e=St(),t=ms(),l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function o(u,d){if(e(u))return!1;var h=typeof u;return h=="number"||h=="symbol"||h=="boolean"||u==null||t(u)?!0:i.test(u)||!l.test(u)||d!=null&&u in Object(d)}return G8=o,G8}var Y8,Cb;function KB(){if(Cb)return Y8;Cb=1;var e=Lf(),t="Expected a function";function l(i,o){if(typeof i!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var u=function(){var d=arguments,h=o?o.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,Y8=l,Y8}var K8,Hb;function XB(){if(Hb)return K8;Hb=1;var e=KB(),t=500;function l(i){var o=e(i,function(d){return u.size===t&&u.clear(),d}),u=o.cache;return o}return K8=l,K8}var X8,Vb;function QB(){if(Vb)return X8;Vb=1;var e=XB(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,i=e(function(o){var u=[];return o.charCodeAt(0)===46&&u.push(""),o.replace(t,function(d,h,f,p){u.push(f?p.replace(l,"$1"):h||d)}),u});return X8=i,X8}var Q8,_b;function jo(){if(_b)return Q8;_b=1;function e(t,l){for(var i=-1,o=t==null?0:t.length,u=Array(o);++i<o;)u[i]=l(t[i],i,t);return u}return Q8=e,Q8}var J8,Tb;function JB(){if(Tb)return J8;Tb=1;var e=us(),t=jo(),l=St(),i=ms(),o=e?e.prototype:void 0,u=o?o.toString:void 0;function d(h){if(typeof h=="string")return h;if(l(h))return t(h,d)+"";if(i(h))return u?u.call(h):"";var f=h+"";return f=="0"&&1/h==-1/0?"-0":f}return J8=d,J8}var W8,Lb;function xZ(){if(Lb)return W8;Lb=1;var e=JB();function t(l){return l==null?"":e(l)}return W8=t,W8}var e4,kb;function No(){if(kb)return e4;kb=1;var e=St(),t=Uf(),l=QB(),i=xZ();function o(u,d){return e(u)?u:t(u,d)?[u]:l(i(u))}return e4=o,e4}var t4,Rb;function Y1(){if(Rb)return t4;Rb=1;var e=ms();function t(l){if(typeof l=="string"||e(l))return l;var i=l+"";return i=="0"&&1/l==-1/0?"-0":i}return t4=t,t4}var a4,Db;function Eo(){if(Db)return a4;Db=1;var e=No(),t=Y1();function l(i,o){o=e(o,i);for(var u=0,d=o.length;i!=null&&u<d;)i=i[t(o[u++])];return u&&u==d?i:void 0}return a4=l,a4}var n4,Ob;function WB(){if(Ob)return n4;Ob=1;var e=Eo();function t(l,i,o){var u=l==null?void 0:e(l,i);return u===void 0?o:u}return n4=t,n4}var r4,Fb;function eP(){if(Fb)return r4;Fb=1;function e(t,l){return t!=null&&l in Object(t)}return r4=e,r4}var s4,zb;function gZ(){if(zb)return s4;zb=1;var e=No(),t=U1(),l=St(),i=vo(),o=Rf(),u=Y1();function d(h,f,p){f=e(f,h);for(var x=-1,g=f.length,b=!1;++x<g;){var w=u(f[x]);if(!(b=h!=null&&p(h,w)))break;h=h[w]}return b||++x!=g?b:(g=h==null?0:h.length,!!g&&o(g)&&i(w,g)&&(l(h)||t(h)))}return s4=d,s4}var l4,$b;function vZ(){if($b)return l4;$b=1;var e=eP(),t=gZ();function l(i,o){return i!=null&&t(i,o,e)}return l4=l,l4}var i4,qb;function tP(){if(qb)return i4;qb=1;var e=mZ(),t=WB(),l=vZ(),i=Uf(),o=fZ(),u=pZ(),d=Y1(),h=1,f=2;function p(x,g){return i(x)&&o(g)?u(d(x),g):function(b){var w=t(b,x);return w===void 0&&w===g?l(b,x):e(g,w,h|f)}}return i4=p,i4}var o4,Ib;function bZ(){if(Ib)return o4;Ib=1;function e(t){return function(l){return l==null?void 0:l[t]}}return o4=e,o4}var c4,Bb;function aP(){if(Bb)return c4;Bb=1;var e=Eo();function t(l){return function(i){return e(i,l)}}return c4=t,c4}var u4,Pb;function nP(){if(Pb)return u4;Pb=1;var e=bZ(),t=aP(),l=Uf(),i=Y1();function o(u){return l(u)?e(i(u)):t(u)}return u4=o,u4}var d4,Ub;function On(){if(Ub)return d4;Ub=1;var e=YB(),t=tP(),l=W0(),i=St(),o=nP();function u(d){return typeof d=="function"?d:d==null?l:typeof d=="object"?i(d)?t(d[0],d[1]):e(d):o(d)}return d4=u,d4}var h4,Gb;function yZ(){if(Gb)return h4;Gb=1;var e=XS(),t=OB(),l=On(),i=St();function o(u,d){var h=i(u)?e:t;return h(u,l(d,3))}return h4=o,h4}var m4,Yb;function rP(){if(Yb)return m4;Yb=1;var e=Object.prototype,t=e.hasOwnProperty;function l(i,o){return i!=null&&t.call(i,o)}return m4=l,m4}var f4,Kb;function wZ(){if(Kb)return f4;Kb=1;var e=rP(),t=gZ();function l(i,o){return i!=null&&t(i,o,e)}return f4=l,f4}var p4,Xb;function sP(){if(Xb)return p4;Xb=1;var e=Of(),t=hs(),l=U1(),i=St(),o=Dn(),u=ds(),d=yo(),h=G1(),f="[object Map]",p="[object Set]",x=Object.prototype,g=x.hasOwnProperty;function b(w){if(w==null)return!0;if(o(w)&&(i(w)||typeof w=="string"||typeof w.splice=="function"||u(w)||h(w)||l(w)))return!w.length;var N=t(w);if(N==f||N==p)return!w.size;if(d(w))return!e(w).length;for(var E in w)if(g.call(w,E))return!1;return!0}return p4=b,p4}var x4,Qb;function AZ(){if(Qb)return x4;Qb=1;function e(t){return t===void 0}return x4=e,x4}var g4,Jb;function jZ(){if(Jb)return g4;Jb=1;var e=Ao(),t=Dn();function l(i,o){var u=-1,d=t(i)?Array(i.length):[];return e(i,function(h,f,p){d[++u]=o(h,f,p)}),d}return g4=l,g4}var v4,Wb;function NZ(){if(Wb)return v4;Wb=1;var e=jo(),t=On(),l=jZ(),i=St();function o(u,d){var h=i(u)?e:l;return h(u,t(d,3))}return v4=o,v4}var b4,ey;function lP(){if(ey)return b4;ey=1;function e(t,l,i,o){var u=-1,d=t==null?0:t.length;for(o&&d&&(i=t[++u]);++u<d;)i=l(i,t[u],u,t);return i}return b4=e,b4}var y4,ty;function iP(){if(ty)return y4;ty=1;function e(t,l,i,o,u){return u(t,function(d,h,f){i=o?(o=!1,d):l(i,d,h,f)}),i}return y4=e,y4}var w4,ay;function EZ(){if(ay)return w4;ay=1;var e=lP(),t=Ao(),l=On(),i=iP(),o=St();function u(d,h,f){var p=o(d)?e:i,x=arguments.length<3;return p(d,l(h,4),f,x,t)}return w4=u,w4}var A4,ny;function oP(){if(ny)return A4;ny=1;var e=X0(),t=St(),l=dn(),i="[object String]";function o(u){return typeof u=="string"||!t(u)&&l(u)&&e(u)==i}return A4=o,A4}var j4,ry;function cP(){if(ry)return j4;ry=1;var e=bZ(),t=e("length");return j4=t,j4}var N4,sy;function uP(){if(sy)return N4;sy=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",l="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",o=t+l+i,u="\\ufe0e\\ufe0f",d="\\u200d",h=RegExp("["+d+e+o+u+"]");function f(p){return h.test(p)}return N4=f,N4}var E4,ly;function dP(){if(ly)return E4;ly=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",l="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",o=t+l+i,u="\\ufe0e\\ufe0f",d="["+e+"]",h="["+o+"]",f="\\ud83c[\\udffb-\\udfff]",p="(?:"+h+"|"+f+")",x="[^"+e+"]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",w="\\u200d",N=p+"?",E="["+u+"]?",j="(?:"+w+"(?:"+[x,g,b].join("|")+")"+E+N+")*",A=E+N+j,Z="(?:"+[x+h+"?",h,g,b,d].join("|")+")",M=RegExp(f+"(?="+f+")|"+Z+A,"g");function S(_){for(var T=M.lastIndex=0;M.test(_);)++T;return T}return E4=S,E4}var M4,iy;function hP(){if(iy)return M4;iy=1;var e=cP(),t=uP(),l=dP();function i(o){return t(o)?l(o):e(o)}return M4=i,M4}var S4,oy;function mP(){if(oy)return S4;oy=1;var e=Of(),t=hs(),l=Dn(),i=oP(),o=hP(),u="[object Map]",d="[object Set]";function h(f){if(f==null)return 0;if(l(f))return i(f)?o(f):f.length;var p=t(f);return p==u||p==d?f.size:e(f).length}return S4=h,S4}var Z4,cy;function fP(){if(cy)return Z4;cy=1;var e=kf(),t=rZ(),l=Bf(),i=On(),o=wo(),u=St(),d=ds(),h=B1(),f=Ra(),p=G1();function x(g,b,w){var N=u(g),E=N||d(g)||p(g);if(b=i(b,4),w==null){var j=g&&g.constructor;E?w=N?new j:[]:f(g)?w=h(j)?t(o(g)):{}:w={}}return(E?e:l)(g,function(A,Z,M){return b(w,A,Z,M)}),w}return Z4=x,Z4}var C4,uy;function pP(){if(uy)return C4;uy=1;var e=us(),t=U1(),l=St(),i=e?e.isConcatSpreadable:void 0;function o(u){return l(u)||t(u)||!!(i&&u&&u[i])}return C4=o,C4}var H4,dy;function Gf(){if(dy)return H4;dy=1;var e=zf(),t=pP();function l(i,o,u,d,h){var f=-1,p=i.length;for(u||(u=t),h||(h=[]);++f<p;){var x=i[f];o>0&&u(x)?o>1?l(x,o-1,u,d,h):e(h,x):d||(h[h.length]=x)}return h}return H4=l,H4}var V4,hy;function xP(){if(hy)return V4;hy=1;function e(t,l,i){switch(i.length){case 0:return t.call(l);case 1:return t.call(l,i[0]);case 2:return t.call(l,i[0],i[1]);case 3:return t.call(l,i[0],i[1],i[2])}return t.apply(l,i)}return V4=e,V4}var _4,my;function MZ(){if(my)return _4;my=1;var e=xP(),t=Math.max;function l(i,o,u){return o=t(o===void 0?i.length-1:o,0),function(){for(var d=arguments,h=-1,f=t(d.length-o,0),p=Array(f);++h<f;)p[h]=d[o+h];h=-1;for(var x=Array(o+1);++h<o;)x[h]=d[h];return x[o]=u(p),e(i,this,x)}}return _4=l,_4}var T4,fy;function gP(){if(fy)return T4;fy=1;var e=qf(),t=PS(),l=W0(),i=t?function(o,u){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(u),writable:!0})}:l;return T4=i,T4}var L4,py;function vP(){if(py)return L4;py=1;var e=800,t=16,l=Date.now;function i(o){var u=0,d=0;return function(){var h=l(),f=t-(h-d);if(d=h,f>0){if(++u>=e)return arguments[0]}else u=0;return o.apply(void 0,arguments)}}return L4=i,L4}var k4,xy;function SZ(){if(xy)return k4;xy=1;var e=gP(),t=vP(),l=t(e);return k4=l,k4}var R4,gy;function Mo(){if(gy)return R4;gy=1;var e=W0(),t=MZ(),l=SZ();function i(o,u){return l(t(o,u,e),o+"")}return R4=i,R4}var D4,vy;function ZZ(){if(vy)return D4;vy=1;function e(t,l,i,o){for(var u=t.length,d=i+(o?1:-1);o?d--:++d<u;)if(l(t[d],d,t))return d;return-1}return D4=e,D4}var O4,by;function bP(){if(by)return O4;by=1;function e(t){return t!==t}return O4=e,O4}var F4,yy;function yP(){if(yy)return F4;yy=1;function e(t,l,i){for(var o=i-1,u=t.length;++o<u;)if(t[o]===l)return o;return-1}return F4=e,F4}var z4,wy;function wP(){if(wy)return z4;wy=1;var e=ZZ(),t=bP(),l=yP();function i(o,u,d){return u===u?l(o,u,d):e(o,t,d)}return z4=i,z4}var $4,Ay;function AP(){if(Ay)return $4;Ay=1;var e=wP();function t(l,i){var o=l==null?0:l.length;return!!o&&e(l,i,0)>-1}return $4=t,$4}var q4,jy;function jP(){if(jy)return q4;jy=1;function e(t,l,i){for(var o=-1,u=t==null?0:t.length;++o<u;)if(i(l,t[o]))return!0;return!1}return q4=e,q4}var I4,Ny;function NP(){if(Ny)return I4;Ny=1;function e(){}return I4=e,I4}var B4,Ey;function EP(){if(Ey)return B4;Ey=1;var e=tZ(),t=NP(),l=Pf(),i=1/0,o=e&&1/l(new e([,-0]))[1]==i?function(u){return new e(u)}:t;return B4=o,B4}var P4,My;function MP(){if(My)return P4;My=1;var e=uZ(),t=AP(),l=jP(),i=dZ(),o=EP(),u=Pf(),d=200;function h(f,p,x){var g=-1,b=t,w=f.length,N=!0,E=[],j=E;if(x)N=!1,b=l;else if(w>=d){var A=p?null:o(f);if(A)return u(A);N=!1,b=i,j=new e}else j=p?[]:E;e:for(;++g<w;){var Z=f[g],M=p?p(Z):Z;if(Z=x||Z!==0?Z:0,N&&M===M){for(var S=j.length;S--;)if(j[S]===M)continue e;p&&j.push(M),E.push(Z)}else b(j,M,x)||(j!==E&&j.push(M),E.push(Z))}return E}return P4=h,P4}var U4,Sy;function CZ(){if(Sy)return U4;Sy=1;var e=Dn(),t=dn();function l(i){return t(i)&&e(i)}return U4=l,U4}var G4,Zy;function SP(){if(Zy)return G4;Zy=1;var e=Gf(),t=Mo(),l=MP(),i=CZ(),o=t(function(u){return l(e(u,1,i,!0))});return G4=o,G4}var Y4,Cy;function ZP(){if(Cy)return Y4;Cy=1;var e=jo();function t(l,i){return e(i,function(o){return l[o]})}return Y4=t,Y4}var K4,Hy;function HZ(){if(Hy)return K4;Hy=1;var e=ZP(),t=y0();function l(i){return i==null?[]:e(i,t(i))}return K4=l,K4}var X4,Vy;function Da(){if(Vy)return X4;Vy=1;var e;if(typeof _f=="function")try{e={clone:kB(),constant:qf(),each:cZ(),filter:yZ(),has:wZ(),isArray:St(),isEmpty:sP(),isFunction:B1(),isUndefined:AZ(),keys:y0(),map:NZ(),reduce:EZ(),size:mP(),transform:fP(),union:SP(),values:HZ()}}catch{}return e||(e=window._),X4=e,X4}var Q4,_y;function Yf(){if(_y)return Q4;_y=1;var e=Da();Q4=o;var t="\0",l="\0",i="";function o(x){this._isDirected=e.has(x,"directed")?x.directed:!0,this._isMultigraph=e.has(x,"multigraph")?x.multigraph:!1,this._isCompound=e.has(x,"compound")?x.compound:!1,this._label=void 0,this._defaultNodeLabelFn=e.constant(void 0),this._defaultEdgeLabelFn=e.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[l]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(x){return this._label=x,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(x){return e.isFunction(x)||(x=e.constant(x)),this._defaultNodeLabelFn=x,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return e.keys(this._nodes)},o.prototype.sources=function(){var x=this;return e.filter(this.nodes(),function(g){return e.isEmpty(x._in[g])})},o.prototype.sinks=function(){var x=this;return e.filter(this.nodes(),function(g){return e.isEmpty(x._out[g])})},o.prototype.setNodes=function(x,g){var b=arguments,w=this;return e.each(x,function(N){b.length>1?w.setNode(N,g):w.setNode(N)}),this},o.prototype.setNode=function(x,g){return e.has(this._nodes,x)?(arguments.length>1&&(this._nodes[x]=g),this):(this._nodes[x]=arguments.length>1?g:this._defaultNodeLabelFn(x),this._isCompound&&(this._parent[x]=l,this._children[x]={},this._children[l][x]=!0),this._in[x]={},this._preds[x]={},this._out[x]={},this._sucs[x]={},++this._nodeCount,this)},o.prototype.node=function(x){return this._nodes[x]},o.prototype.hasNode=function(x){return e.has(this._nodes,x)},o.prototype.removeNode=function(x){var g=this;if(e.has(this._nodes,x)){var b=function(w){g.removeEdge(g._edgeObjs[w])};delete this._nodes[x],this._isCompound&&(this._removeFromParentsChildList(x),delete this._parent[x],e.each(this.children(x),function(w){g.setParent(w)}),delete this._children[x]),e.each(e.keys(this._in[x]),b),delete this._in[x],delete this._preds[x],e.each(e.keys(this._out[x]),b),delete this._out[x],delete this._sucs[x],--this._nodeCount}return this},o.prototype.setParent=function(x,g){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(g))g=l;else{g+="";for(var b=g;!e.isUndefined(b);b=this.parent(b))if(b===x)throw new Error("Setting "+g+" as parent of "+x+" would create a cycle");this.setNode(g)}return this.setNode(x),this._removeFromParentsChildList(x),this._parent[x]=g,this._children[g][x]=!0,this},o.prototype._removeFromParentsChildList=function(x){delete this._children[this._parent[x]][x]},o.prototype.parent=function(x){if(this._isCompound){var g=this._parent[x];if(g!==l)return g}},o.prototype.children=function(x){if(e.isUndefined(x)&&(x=l),this._isCompound){var g=this._children[x];if(g)return e.keys(g)}else{if(x===l)return this.nodes();if(this.hasNode(x))return[]}},o.prototype.predecessors=function(x){var g=this._preds[x];if(g)return e.keys(g)},o.prototype.successors=function(x){var g=this._sucs[x];if(g)return e.keys(g)},o.prototype.neighbors=function(x){var g=this.predecessors(x);if(g)return e.union(g,this.successors(x))},o.prototype.isLeaf=function(x){var g;return this.isDirected()?g=this.successors(x):g=this.neighbors(x),g.length===0},o.prototype.filterNodes=function(x){var g=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});g.setGraph(this.graph());var b=this;e.each(this._nodes,function(E,j){x(j)&&g.setNode(j,E)}),e.each(this._edgeObjs,function(E){g.hasNode(E.v)&&g.hasNode(E.w)&&g.setEdge(E,b.edge(E))});var w={};function N(E){var j=b.parent(E);return j===void 0||g.hasNode(j)?(w[E]=j,j):j in w?w[j]:N(j)}return this._isCompound&&e.each(g.nodes(),function(E){g.setParent(E,N(E))}),g},o.prototype.setDefaultEdgeLabel=function(x){return e.isFunction(x)||(x=e.constant(x)),this._defaultEdgeLabelFn=x,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return e.values(this._edgeObjs)},o.prototype.setPath=function(x,g){var b=this,w=arguments;return e.reduce(x,function(N,E){return w.length>1?b.setEdge(N,E,g):b.setEdge(N,E),E}),this},o.prototype.setEdge=function(){var x,g,b,w,N=!1,E=arguments[0];typeof E=="object"&&E!==null&&"v"in E?(x=E.v,g=E.w,b=E.name,arguments.length===2&&(w=arguments[1],N=!0)):(x=E,g=arguments[1],b=arguments[3],arguments.length>2&&(w=arguments[2],N=!0)),x=""+x,g=""+g,e.isUndefined(b)||(b=""+b);var j=h(this._isDirected,x,g,b);if(e.has(this._edgeLabels,j))return N&&(this._edgeLabels[j]=w),this;if(!e.isUndefined(b)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(x),this.setNode(g),this._edgeLabels[j]=N?w:this._defaultEdgeLabelFn(x,g,b);var A=f(this._isDirected,x,g,b);return x=A.v,g=A.w,Object.freeze(A),this._edgeObjs[j]=A,u(this._preds[g],x),u(this._sucs[x],g),this._in[g][j]=A,this._out[x][j]=A,this._edgeCount++,this},o.prototype.edge=function(x,g,b){var w=arguments.length===1?p(this._isDirected,arguments[0]):h(this._isDirected,x,g,b);return this._edgeLabels[w]},o.prototype.hasEdge=function(x,g,b){var w=arguments.length===1?p(this._isDirected,arguments[0]):h(this._isDirected,x,g,b);return e.has(this._edgeLabels,w)},o.prototype.removeEdge=function(x,g,b){var w=arguments.length===1?p(this._isDirected,arguments[0]):h(this._isDirected,x,g,b),N=this._edgeObjs[w];return N&&(x=N.v,g=N.w,delete this._edgeLabels[w],delete this._edgeObjs[w],d(this._preds[g],x),d(this._sucs[x],g),delete this._in[g][w],delete this._out[x][w],this._edgeCount--),this},o.prototype.inEdges=function(x,g){var b=this._in[x];if(b){var w=e.values(b);return g?e.filter(w,function(N){return N.v===g}):w}},o.prototype.outEdges=function(x,g){var b=this._out[x];if(b){var w=e.values(b);return g?e.filter(w,function(N){return N.w===g}):w}},o.prototype.nodeEdges=function(x,g){var b=this.inEdges(x,g);if(b)return b.concat(this.outEdges(x,g))};function u(x,g){x[g]?x[g]++:x[g]=1}function d(x,g){--x[g]||delete x[g]}function h(x,g,b,w){var N=""+g,E=""+b;if(!x&&N>E){var j=N;N=E,E=j}return N+i+E+i+(e.isUndefined(w)?t:w)}function f(x,g,b,w){var N=""+g,E=""+b;if(!x&&N>E){var j=N;N=E,E=j}var A={v:N,w:E};return w&&(A.name=w),A}function p(x,g){return h(x,g.v,g.w,g.name)}return Q4}var J4,Ty;function CP(){return Ty||(Ty=1,J4="2.1.8"),J4}var W4,Ly;function HP(){return Ly||(Ly=1,W4={Graph:Yf(),version:CP()}),W4}var e6,ky;function VP(){if(ky)return e6;ky=1;var e=Da(),t=Yf();e6={write:l,read:u};function l(d){var h={options:{directed:d.isDirected(),multigraph:d.isMultigraph(),compound:d.isCompound()},nodes:i(d),edges:o(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),x={v:h};return e.isUndefined(f)||(x.value=f),e.isUndefined(p)||(x.parent=p),x})}function o(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 t(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 e6}var t6,Ry;function _P(){if(Ry)return t6;Ry=1;var e=Da();t6=t;function t(l){var i={},o=[],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&&o.push(u)}),o}return t6}var a6,Dy;function VZ(){if(Dy)return a6;Dy=1;var e=Da();a6=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(l){return l.key})},t.prototype.has=function(l){return e.has(this._keyIndices,l)},t.prototype.priority=function(l){var i=this._keyIndices[l];if(i!==void 0)return this._arr[i].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(l,i){var o=this._keyIndices;if(l=String(l),!e.has(o,l)){var u=this._arr,d=u.length;return o[l]=d,u.push({key:l,priority:i}),this._decrease(d),!0}return!1},t.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},t.prototype.decrease=function(l,i){var o=this._keyIndices[l];if(i>this._arr[o].priority)throw new Error("New priority is greater than current priority. Key: "+l+" Old: "+this._arr[o].priority+" New: "+i);this._arr[o].priority=i,this._decrease(o)},t.prototype._heapify=function(l){var i=this._arr,o=2*l,u=o+1,d=l;o<i.length&&(d=i[o].priority<i[d].priority?o:d,u<i.length&&(d=i[u].priority<i[d].priority?u:d),d!==l&&(this._swap(l,d),this._heapify(d)))},t.prototype._decrease=function(l){for(var i=this._arr,o=i[l].priority,u;l!==0&&(u=l>>1,!(i[u].priority<o));)this._swap(l,u),l=u},t.prototype._swap=function(l,i){var o=this._arr,u=this._keyIndices,d=o[l],h=o[i];o[l]=h,o[i]=d,u[h.key]=l,u[d.key]=i},a6}var n6,Oy;function _Z(){if(Oy)return n6;Oy=1;var e=Da(),t=VZ();n6=i;var l=e.constant(1);function i(u,d,h,f){return o(u,String(d),h||l,f||function(p){return u.outEdges(p)})}function o(u,d,h,f){var p={},x=new t,g,b,w=function(N){var E=N.v!==g?N.v:N.w,j=p[E],A=h(N),Z=b.distance+A;if(A<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+N+" Weight: "+A);Z<j.distance&&(j.distance=Z,j.predecessor=g,x.decrease(E,Z))};for(u.nodes().forEach(function(N){var E=N===d?0:Number.POSITIVE_INFINITY;p[N]={distance:E},x.add(N,E)});x.size()>0&&(g=x.removeMin(),b=p[g],b.distance!==Number.POSITIVE_INFINITY);)f(g).forEach(w);return p}return n6}var r6,Fy;function TP(){if(Fy)return r6;Fy=1;var e=_Z(),t=Da();r6=l;function l(i,o,u){return t.transform(i.nodes(),function(d,h){d[h]=e(i,h,o,u)},{})}return r6}var s6,zy;function TZ(){if(zy)return s6;zy=1;var e=Da();s6=t;function t(l){var i=0,o=[],u={},d=[];function h(f){var p=u[f]={onStack:!0,lowlink:i,index:i++};if(o.push(f),l.successors(f).forEach(function(b){e.has(u,b)?u[b].onStack&&(p.lowlink=Math.min(p.lowlink,u[b].index)):(h(b),p.lowlink=Math.min(p.lowlink,u[b].lowlink))}),p.lowlink===p.index){var x=[],g;do g=o.pop(),u[g].onStack=!1,x.push(g);while(f!==g);d.push(x)}}return l.nodes().forEach(function(f){e.has(u,f)||h(f)}),d}return s6}var l6,$y;function LP(){if($y)return l6;$y=1;var e=Da(),t=TZ();l6=l;function l(i){return e.filter(t(i),function(o){return o.length>1||o.length===1&&i.hasEdge(o[0],o[0])})}return l6}var i6,qy;function kP(){if(qy)return i6;qy=1;var e=Da();i6=l;var t=e.constant(1);function l(o,u,d){return i(o,u||t,d||function(h){return o.outEdges(h)})}function i(o,u,d){var h={},f=o.nodes();return f.forEach(function(p){h[p]={},h[p][p]={distance:0},f.forEach(function(x){p!==x&&(h[p][x]={distance:Number.POSITIVE_INFINITY})}),d(p).forEach(function(x){var g=x.v===p?x.w:x.v,b=u(x);h[p][g]={distance:b,predecessor:p}})}),f.forEach(function(p){var x=h[p];f.forEach(function(g){var b=h[g];f.forEach(function(w){var N=b[p],E=x[w],j=b[w],A=N.distance+E.distance;A<j.distance&&(j.distance=A,j.predecessor=E.predecessor)})})}),h}return i6}var o6,Iy;function LZ(){if(Iy)return o6;Iy=1;var e=Da();o6=t,t.CycleException=l;function t(i){var o={},u={},d=[];function h(f){if(e.has(u,f))throw new l;e.has(o,f)||(u[f]=!0,o[f]=!0,e.each(i.predecessors(f),h),delete u[f],d.push(f))}if(e.each(i.sinks(),h),e.size(o)!==i.nodeCount())throw new l;return d}function l(){}return l.prototype=new Error,o6}var c6,By;function RP(){if(By)return c6;By=1;var e=LZ();c6=t;function t(l){try{e(l)}catch(i){if(i instanceof e.CycleException)return!1;throw i}return!0}return c6}var u6,Py;function kZ(){if(Py)return u6;Py=1;var e=Da();u6=t;function t(i,o,u){e.isArray(o)||(o=[o]);var d=(i.isDirected()?i.successors:i.neighbors).bind(i),h=[],f={};return e.each(o,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,o,u,d,h,f){e.has(d,o)||(d[o]=!0,u||f.push(o),e.each(h(o),function(p){l(i,p,u,d,h,f)}),u&&f.push(o))}return u6}var d6,Uy;function DP(){if(Uy)return d6;Uy=1;var e=kZ();d6=t;function t(l,i){return e(l,i,"post")}return d6}var h6,Gy;function OP(){if(Gy)return h6;Gy=1;var e=kZ();h6=t;function t(l,i){return e(l,i,"pre")}return h6}var m6,Yy;function FP(){if(Yy)return m6;Yy=1;var e=Da(),t=Yf(),l=VZ();m6=i;function i(o,u){var d=new t,h={},f=new l,p;function x(b){var w=b.v===p?b.w:b.v,N=f.priority(w);if(N!==void 0){var E=u(b);E<N&&(h[w]=p,f.decrease(w,E))}}if(o.nodeCount()===0)return d;e.each(o.nodes(),function(b){f.add(b,Number.POSITIVE_INFINITY),d.setNode(b)}),f.decrease(o.nodes()[0],0);for(var g=!1;f.size()>0;){if(p=f.removeMin(),e.has(h,p))d.setEdge(p,h[p]);else{if(g)throw new Error("Input graph is not connected: "+o);g=!0}o.nodeEdges(p).forEach(x)}return d}return m6}var f6,Ky;function zP(){return Ky||(Ky=1,f6={components:_P(),dijkstra:_Z(),dijkstraAll:TP(),findCycles:LP(),floydWarshall:kP(),isAcyclic:RP(),postorder:DP(),preorder:OP(),prim:FP(),tarjan:TZ(),topsort:LZ()}),f6}var p6,Xy;function $P(){if(Xy)return p6;Xy=1;var e=HP();return p6={Graph:e.Graph,json:VP(),alg:zP(),version:e.version},p6}var x6,Qy;function Ua(){if(Qy)return x6;Qy=1;var e;if(typeof _f=="function")try{e=$P()}catch{}return e||(e=window.graphlib),x6=e,x6}var g6,Jy;function qP(){if(Jy)return g6;Jy=1;var e=lZ(),t=1,l=4;function i(o){return e(o,t|l)}return g6=i,g6}var v6,Wy;function So(){if(Wy)return v6;Wy=1;var e=cs(),t=Dn(),l=vo(),i=Ra();function o(u,d,h){if(!i(h))return!1;var f=typeof d;return(f=="number"?t(h)&&l(d,h.length):f=="string"&&d in h)?e(h[d],u):!1}return v6=o,v6}var b6,ew;function IP(){if(ew)return b6;ew=1;var e=Mo(),t=cs(),l=So(),i=J0(),o=Object.prototype,u=o.hasOwnProperty,d=e(function(h,f){h=Object(h);var p=-1,x=f.length,g=x>2?f[2]:void 0;for(g&&l(f[0],f[1],g)&&(x=1);++p<x;)for(var b=f[p],w=i(b),N=-1,E=w.length;++N<E;){var j=w[N],A=h[j];(A===void 0||t(A,o[j])&&!u.call(h,j))&&(h[j]=b[j])}return h});return b6=d,b6}var y6,tw;function BP(){if(tw)return y6;tw=1;var e=On(),t=Dn(),l=y0();function i(o){return function(u,d,h){var f=Object(u);if(!t(u)){var p=e(d,3);u=l(u),d=function(g){return p(f[g],g,f)}}var x=o(u,d,h);return x>-1?f[p?u[x]:x]:void 0}}return y6=i,y6}var w6,aw;function PP(){if(aw)return w6;aw=1;var e=/\s/;function t(l){for(var i=l.length;i--&&e.test(l.charAt(i)););return i}return w6=t,w6}var A6,nw;function UP(){if(nw)return A6;nw=1;var e=PP(),t=/^\s+/;function l(i){return i&&i.slice(0,e(i)+1).replace(t,"")}return A6=l,A6}var j6,rw;function GP(){if(rw)return j6;rw=1;var e=UP(),t=Ra(),l=ms(),i=NaN,o=/^[-+]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(t(p)){var x=typeof p.valueOf=="function"?p.valueOf():p;p=t(x)?x+"":x}if(typeof p!="string")return p===0?p:+p;p=e(p);var g=u.test(p);return g||d.test(p)?h(p.slice(2),g?2:8):o.test(p)?i:+p}return j6=f,j6}var N6,sw;function RZ(){if(sw)return N6;sw=1;var e=GP(),t=1/0,l=17976931348623157e292;function i(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-t){var u=o<0?-1:1;return u*l}return o===o?o:0}return N6=i,N6}var E6,lw;function YP(){if(lw)return E6;lw=1;var e=RZ();function t(l){var i=e(l),o=i%1;return i===i?o?i-o:i:0}return E6=t,E6}var M6,iw;function KP(){if(iw)return M6;iw=1;var e=ZZ(),t=On(),l=YP(),i=Math.max;function o(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,t(d,3),p)}return M6=o,M6}var S6,ow;function XP(){if(ow)return S6;ow=1;var e=BP(),t=KP(),l=e(t);return S6=l,S6}var Z6,cw;function DZ(){if(cw)return Z6;cw=1;var e=Gf();function t(l){var i=l==null?0:l.length;return i?e(l,1):[]}return Z6=t,Z6}var C6,uw;function QP(){if(uw)return C6;uw=1;var e=If(),t=iZ(),l=J0();function i(o,u){return o==null?o:e(o,t(u),l)}return C6=i,C6}var H6,dw;function JP(){if(dw)return H6;dw=1;function e(t){var l=t==null?0:t.length;return l?t[l-1]:void 0}return H6=e,H6}var V6,hw;function WP(){if(hw)return V6;hw=1;var e=xo(),t=Bf(),l=On();function i(o,u){var d={};return u=l(u,3),t(o,function(h,f,p){e(d,f,u(h,f,p))}),d}return V6=i,V6}var _6,mw;function Kf(){if(mw)return _6;mw=1;var e=ms();function t(l,i,o){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):o(f,p)))var p=f,x=h}return x}return _6=t,_6}var T6,fw;function eU(){if(fw)return T6;fw=1;function e(t,l){return t>l}return T6=e,T6}var L6,pw;function tU(){if(pw)return L6;pw=1;var e=Kf(),t=eU(),l=W0();function i(o){return o&&o.length?e(o,l,t):void 0}return L6=i,L6}var k6,xw;function OZ(){if(xw)return k6;xw=1;var e=xo(),t=cs();function l(i,o,u){(u!==void 0&&!t(i[o],u)||u===void 0&&!(o in i))&&e(i,o,u)}return k6=l,k6}var R6,gw;function aU(){if(gw)return R6;gw=1;var e=X0(),t=wo(),l=dn(),i="[object Object]",o=Function.prototype,u=Object.prototype,d=o.toString,h=u.hasOwnProperty,f=d.call(Object);function p(x){if(!l(x)||e(x)!=i)return!1;var g=t(x);if(g===null)return!0;var b=h.call(g,"constructor")&&g.constructor;return typeof b=="function"&&b instanceof b&&d.call(b)==f}return R6=p,R6}var D6,vw;function FZ(){if(vw)return D6;vw=1;function e(t,l){if(!(l==="constructor"&&typeof t[l]=="function")&&l!="__proto__")return t[l]}return D6=e,D6}var O6,bw;function nU(){if(bw)return O6;bw=1;var e=P1(),t=J0();function l(i){return e(i,t(i))}return O6=l,O6}var F6,yw;function rU(){if(yw)return F6;yw=1;var e=OZ(),t=YS(),l=nZ(),i=KS(),o=sZ(),u=U1(),d=St(),h=CZ(),f=ds(),p=B1(),x=Ra(),g=aU(),b=G1(),w=FZ(),N=nU();function E(j,A,Z,M,S,_,T){var V=w(j,Z),H=w(A,Z),L=T.get(H);if(L){e(j,Z,L);return}var D=_?_(V,H,Z+"",j,A,T):void 0,B=D===void 0;if(B){var K=d(H),J=!K&&f(H),se=!K&&!J&&b(H);D=H,K||J||se?d(V)?D=V:h(V)?D=i(V):J?(B=!1,D=t(H,!0)):se?(B=!1,D=l(H,!0)):D=[]:g(H)||u(H)?(D=V,u(V)?D=N(V):(!x(V)||p(V))&&(D=o(H))):B=!1}B&&(T.set(H,D),S(D,H,M,_,T),T.delete(H)),e(j,Z,D)}return F6=E,F6}var z6,ww;function sU(){if(ww)return z6;ww=1;var e=po(),t=OZ(),l=If(),i=rU(),o=Ra(),u=J0(),d=FZ();function h(f,p,x,g,b){f!==p&&l(p,function(w,N){if(b||(b=new e),o(w))i(f,p,N,x,h,g,b);else{var E=g?g(d(f,N),w,N+"",f,p,b):void 0;E===void 0&&(E=w),t(f,N,E)}},u)}return z6=h,z6}var $6,Aw;function lU(){if(Aw)return $6;Aw=1;var e=Mo(),t=So();function l(i){return e(function(o,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&&t(u[0],u[1],p)&&(f=h<3?void 0:f,h=1),o=Object(o);++d<h;){var x=u[d];x&&i(o,x,d,f)}return o})}return $6=l,$6}var q6,jw;function iU(){if(jw)return q6;jw=1;var e=sU(),t=lU(),l=t(function(i,o,u){e(i,o,u)});return q6=l,q6}var I6,Nw;function zZ(){if(Nw)return I6;Nw=1;function e(t,l){return t<l}return I6=e,I6}var B6,Ew;function oU(){if(Ew)return B6;Ew=1;var e=Kf(),t=zZ(),l=W0();function i(o){return o&&o.length?e(o,l,t):void 0}return B6=i,B6}var P6,Mw;function cU(){if(Mw)return P6;Mw=1;var e=Kf(),t=On(),l=zZ();function i(o,u){return o&&o.length?e(o,t(u,2),l):void 0}return P6=i,P6}var U6,Sw;function uU(){if(Sw)return U6;Sw=1;var e=Ka(),t=function(){return e.Date.now()};return U6=t,U6}var G6,Zw;function dU(){if(Zw)return G6;Zw=1;var e=go(),t=No(),l=vo(),i=Ra(),o=Y1();function u(d,h,f,p){if(!i(d))return d;h=t(h,d);for(var x=-1,g=h.length,b=g-1,w=d;w!=null&&++x<g;){var N=o(h[x]),E=f;if(N==="__proto__"||N==="constructor"||N==="prototype")return d;if(x!=b){var j=w[N];E=p?p(j,N,w):void 0,E===void 0&&(E=i(j)?j:l(h[x+1])?[]:{})}e(w,N,E),w=w[N]}return d}return G6=u,G6}var Y6,Cw;function hU(){if(Cw)return Y6;Cw=1;var e=Eo(),t=dU(),l=No();function i(o,u,d){for(var h=-1,f=u.length,p={};++h<f;){var x=u[h],g=e(o,x);d(g,x)&&t(p,l(x,o),g)}return p}return Y6=i,Y6}var K6,Hw;function mU(){if(Hw)return K6;Hw=1;var e=hU(),t=vZ();function l(i,o){return e(i,o,function(u,d){return t(i,d)})}return K6=l,K6}var X6,Vw;function fU(){if(Vw)return X6;Vw=1;var e=DZ(),t=MZ(),l=SZ();function i(o){return l(t(o,void 0,e),o+"")}return X6=i,X6}var Q6,_w;function pU(){if(_w)return Q6;_w=1;var e=mU(),t=fU(),l=t(function(i,o){return i==null?{}:e(i,o)});return Q6=l,Q6}var J6,Tw;function xU(){if(Tw)return J6;Tw=1;var e=Math.ceil,t=Math.max;function l(i,o,u,d){for(var h=-1,f=t(e((o-i)/(u||1)),0),p=Array(f);f--;)p[d?f:++h]=i,i+=u;return p}return J6=l,J6}var W6,Lw;function gU(){if(Lw)return W6;Lw=1;var e=xU(),t=So(),l=RZ();function i(o){return function(u,d,h){return h&&typeof h!="number"&&t(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,o)}}return W6=i,W6}var eh,kw;function vU(){if(kw)return eh;kw=1;var e=gU(),t=e();return eh=t,eh}var th,Rw;function bU(){if(Rw)return th;Rw=1;function e(t,l){var i=t.length;for(t.sort(l);i--;)t[i]=t[i].value;return t}return th=e,th}var ah,Dw;function yU(){if(Dw)return ah;Dw=1;var e=ms();function t(l,i){if(l!==i){var o=l!==void 0,u=l===null,d=l===l,h=e(l),f=i!==void 0,p=i===null,x=i===i,g=e(i);if(!p&&!g&&!h&&l>i||h&&f&&x&&!p&&!g||u&&f&&x||!o&&x||!d)return 1;if(!u&&!h&&!g&&l<i||g&&o&&d&&!u&&!h||p&&o&&d||!f&&d||!x)return-1}return 0}return ah=t,ah}var nh,Ow;function wU(){if(Ow)return nh;Ow=1;var e=yU();function t(l,i,o){for(var u=-1,d=l.criteria,h=i.criteria,f=d.length,p=o.length;++u<f;){var x=e(d[u],h[u]);if(x){if(u>=p)return x;var g=o[u];return x*(g=="desc"?-1:1)}}return l.index-i.index}return nh=t,nh}var rh,Fw;function AU(){if(Fw)return rh;Fw=1;var e=jo(),t=Eo(),l=On(),i=jZ(),o=bU(),u=bo(),d=wU(),h=W0(),f=St();function p(x,g,b){g.length?g=e(g,function(E){return f(E)?function(j){return t(j,E.length===1?E[0]:E)}:E}):g=[h];var w=-1;g=e(g,u(l));var N=i(x,function(E,j,A){var Z=e(g,function(M){return M(E)});return{criteria:Z,index:++w,value:E}});return o(N,function(E,j){return d(E,j,b)})}return rh=p,rh}var sh,zw;function jU(){if(zw)return sh;zw=1;var e=Gf(),t=AU(),l=Mo(),i=So(),o=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]]),t(u,e(d,1),[])});return sh=o,sh}var lh,$w;function NU(){if($w)return lh;$w=1;var e=xZ(),t=0;function l(i){var o=++t;return e(i)+o}return lh=l,lh}var ih,qw;function EU(){if(qw)return ih;qw=1;function e(t,l,i){for(var o=-1,u=t.length,d=l.length,h={};++o<u;){var f=o<d?l[o]:void 0;i(h,t[o],f)}return h}return ih=e,ih}var oh,Iw;function MU(){if(Iw)return oh;Iw=1;var e=go(),t=EU();function l(i,o){return t(i||[],o||[],e)}return oh=l,oh}var ch,Bw;function it(){if(Bw)return ch;Bw=1;var e;if(typeof _f=="function")try{e={cloneDeep:qP(),constant:qf(),defaults:IP(),each:cZ(),filter:yZ(),find:XP(),flatten:DZ(),forEach:oZ(),forIn:QP(),has:wZ(),isUndefined:AZ(),last:JP(),map:NZ(),mapValues:WP(),max:tU(),merge:iU(),min:oU(),minBy:cU(),now:uU(),pick:pU(),range:vU(),reduce:EZ(),sortBy:jU(),uniqueId:NU(),values:HZ(),zipObject:MU()}}catch{}return e||(e=window._),ch=e,ch}var uh,Pw;function SU(){if(Pw)return uh;Pw=1,uh=e;function e(){var i={};i._next=i._prev=i,this._sentinel=i}e.prototype.dequeue=function(){var i=this._sentinel,o=i._prev;if(o!==i)return t(o),o},e.prototype.enqueue=function(i){var o=this._sentinel;i._prev&&i._next&&t(i),i._next=o._next,o._next._prev=i,o._next=i,i._prev=o},e.prototype.toString=function(){for(var i=[],o=this._sentinel,u=o._prev;u!==o;)i.push(JSON.stringify(u,l)),u=u._prev;return"["+i.join(", ")+"]"};function t(i){i._prev._next=i._next,i._next._prev=i._prev,delete i._next,delete i._prev}function l(i,o){if(i!=="_next"&&i!=="_prev")return o}return uh}var dh,Uw;function ZU(){if(Uw)return dh;Uw=1;var e=it(),t=Ua().Graph,l=SU();dh=o;var i=e.constant(1);function o(p,x){if(p.nodeCount()<=1)return[];var g=h(p,x||i),b=u(g.graph,g.buckets,g.zeroIdx);return e.flatten(e.map(b,function(w){return p.outEdges(w.v,w.w)}),!0)}function u(p,x,g){for(var b=[],w=x[x.length-1],N=x[0],E;p.nodeCount();){for(;E=N.dequeue();)d(p,x,g,E);for(;E=w.dequeue();)d(p,x,g,E);if(p.nodeCount()){for(var j=x.length-2;j>0;--j)if(E=x[j].dequeue(),E){b=b.concat(d(p,x,g,E,!0));break}}}return b}function d(p,x,g,b,w){var N=w?[]:void 0;return e.forEach(p.inEdges(b.v),function(E){var j=p.edge(E),A=p.node(E.v);w&&N.push({v:E.v,w:E.w}),A.out-=j,f(x,g,A)}),e.forEach(p.outEdges(b.v),function(E){var j=p.edge(E),A=E.w,Z=p.node(A);Z.in-=j,f(x,g,Z)}),p.removeNode(b.v),N}function h(p,x){var g=new t,b=0,w=0;e.forEach(p.nodes(),function(j){g.setNode(j,{v:j,in:0,out:0})}),e.forEach(p.edges(),function(j){var A=g.edge(j.v,j.w)||0,Z=x(j),M=A+Z;g.setEdge(j.v,j.w,M),w=Math.max(w,g.node(j.v).out+=Z),b=Math.max(b,g.node(j.w).in+=Z)});var N=e.range(w+b+3).map(function(){return new l}),E=b+1;return e.forEach(g.nodes(),function(j){f(N,E,g.node(j))}),{graph:g,buckets:N,zeroIdx:E}}function f(p,x,g){g.out?g.in?p[g.out-g.in+x].enqueue(g):p[p.length-1].enqueue(g):p[0].enqueue(g)}return dh}var hh,Gw;function CU(){if(Gw)return hh;Gw=1;var e=it(),t=ZU();hh={run:l,undo:o};function l(u){var d=u.graph().acyclicer==="greedy"?t(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(x){e.has(f,x)||(f[x]=!0,h[x]=!0,e.forEach(u.outEdges(x),function(g){e.has(h,g.w)?d.push(g):p(g.w)}),delete h[x])}return e.forEach(u.nodes(),p),d}function o(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 hh}var mh,Yw;function ra(){if(Yw)return mh;Yw=1;var e=it(),t=Ua().Graph;mh={addDummyNode:l,simplify:i,asNonCompoundGraph:o,successorWeights:u,predecessorWeights:d,intersectRect:h,buildLayerMatrix:f,normalizeRanks:p,removeEmptyRanks:x,addBorderNode:g,maxRank:b,partition:w,time:N,notime:E};function l(j,A,Z,M){var S;do S=e.uniqueId(M);while(j.hasNode(S));return Z.dummy=A,j.setNode(S,Z),S}function i(j){var A=new t().setGraph(j.graph());return e.forEach(j.nodes(),function(Z){A.setNode(Z,j.node(Z))}),e.forEach(j.edges(),function(Z){var M=A.edge(Z.v,Z.w)||{weight:0,minlen:1},S=j.edge(Z);A.setEdge(Z.v,Z.w,{weight:M.weight+S.weight,minlen:Math.max(M.minlen,S.minlen)})}),A}function o(j){var A=new t({multigraph:j.isMultigraph()}).setGraph(j.graph());return e.forEach(j.nodes(),function(Z){j.children(Z).length||A.setNode(Z,j.node(Z))}),e.forEach(j.edges(),function(Z){A.setEdge(Z,j.edge(Z))}),A}function u(j){var A=e.map(j.nodes(),function(Z){var M={};return e.forEach(j.outEdges(Z),function(S){M[S.w]=(M[S.w]||0)+j.edge(S).weight}),M});return e.zipObject(j.nodes(),A)}function d(j){var A=e.map(j.nodes(),function(Z){var M={};return e.forEach(j.inEdges(Z),function(S){M[S.v]=(M[S.v]||0)+j.edge(S).weight}),M});return e.zipObject(j.nodes(),A)}function h(j,A){var Z=j.x,M=j.y,S=A.x-Z,_=A.y-M,T=j.width/2,V=j.height/2;if(!S&&!_)throw new Error("Not possible to find intersection inside of the rectangle");var H,L;return Math.abs(_)*T>Math.abs(S)*V?(_<0&&(V=-V),H=V*S/_,L=V):(S<0&&(T=-T),H=T,L=T*_/S),{x:Z+H,y:M+L}}function f(j){var A=e.map(e.range(b(j)+1),function(){return[]});return e.forEach(j.nodes(),function(Z){var M=j.node(Z),S=M.rank;e.isUndefined(S)||(A[S][M.order]=Z)}),A}function p(j){var A=e.min(e.map(j.nodes(),function(Z){return j.node(Z).rank}));e.forEach(j.nodes(),function(Z){var M=j.node(Z);e.has(M,"rank")&&(M.rank-=A)})}function x(j){var A=e.min(e.map(j.nodes(),function(_){return j.node(_).rank})),Z=[];e.forEach(j.nodes(),function(_){var T=j.node(_).rank-A;Z[T]||(Z[T]=[]),Z[T].push(_)});var M=0,S=j.graph().nodeRankFactor;e.forEach(Z,function(_,T){e.isUndefined(_)&&T%S!==0?--M:M&&e.forEach(_,function(V){j.node(V).rank+=M})})}function g(j,A,Z,M){var S={width:0,height:0};return arguments.length>=4&&(S.rank=Z,S.order=M),l(j,"border",S,A)}function b(j){return e.max(e.map(j.nodes(),function(A){var Z=j.node(A).rank;if(!e.isUndefined(Z))return Z}))}function w(j,A){var Z={lhs:[],rhs:[]};return e.forEach(j,function(M){A(M)?Z.lhs.push(M):Z.rhs.push(M)}),Z}function N(j,A){var Z=e.now();try{return A()}finally{console.log(j+" time: "+(e.now()-Z)+"ms")}}function E(j,A){return A()}return mh}var fh,Kw;function HU(){if(Kw)return fh;Kw=1;var e=it(),t=ra();fh={run:l,undo:o};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,x=u.node(p).rank,g=d.name,b=u.edge(d),w=b.labelRank;if(x!==f+1){u.removeEdge(d);var N,E,j;for(j=0,++f;f<x;++j,++f)b.points=[],E={width:0,height:0,edgeLabel:b,edgeObj:d,rank:f},N=t.addDummyNode(u,"edge",E,"_d"),f===w&&(E.width=b.width,E.height=b.height,E.dummy="edge-label",E.labelpos=b.labelpos),u.setEdge(h,N,{weight:b.weight},g),j===0&&u.graph().dummyChains.push(N),h=N;u.setEdge(h,p,{weight:b.weight},g)}}function o(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 fh}var ph,Xw;function Xi(){if(Xw)return ph;Xw=1;var e=it();ph={longestPath:t,slack:l};function t(i){var o={};function u(d){var h=i.node(d);if(e.has(o,d))return h.rank;o[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,o){return i.node(o.w).rank-i.node(o.v).rank-i.edge(o).minlen}return ph}var xh,Qw;function $Z(){if(Qw)return xh;Qw=1;var e=it(),t=Ua().Graph,l=Xi().slack;xh=i;function i(h){var f=new t({directed:!1}),p=h.nodes()[0],x=h.nodeCount();f.setNode(p,{});for(var g,b;o(f,h)<x;)g=u(f,h),b=f.hasNode(g.v)?l(h,g):-l(h,g),d(f,h,b);return f}function o(h,f){function p(x){e.forEach(f.nodeEdges(x),function(g){var b=g.v,w=x===b?g.w:b;!h.hasNode(w)&&!l(f,g)&&(h.setNode(w,{}),h.setEdge(x,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(x){f.node(x).rank+=p})}return xh}var gh,Jw;function VU(){if(Jw)return gh;Jw=1;var e=it(),t=$Z(),l=Xi().slack,i=Xi().longestPath,o=Ua().alg.preorder,u=Ua().alg.postorder,d=ra().simplify;gh=h,h.initLowLimValues=g,h.initCutValues=f,h.calcCutValue=x,h.leaveEdge=w,h.enterEdge=N,h.exchangeEdges=E;function h(M){M=d(M),i(M);var S=t(M);g(S),f(S,M);for(var _,T;_=w(S);)T=N(S,M,_),E(S,M,_,T)}function f(M,S){var _=u(M,M.nodes());_=_.slice(0,_.length-1),e.forEach(_,function(T){p(M,S,T)})}function p(M,S,_){var T=M.node(_),V=T.parent;M.edge(_,V).cutvalue=x(M,S,_)}function x(M,S,_){var T=M.node(_),V=T.parent,H=!0,L=S.edge(_,V),D=0;return L||(H=!1,L=S.edge(V,_)),D=L.weight,e.forEach(S.nodeEdges(_),function(B){var K=B.v===_,J=K?B.w:B.v;if(J!==V){var se=K===H,le=S.edge(B).weight;if(D+=se?le:-le,A(M,_,J)){var O=M.edge(_,J).cutvalue;D+=se?-O:O}}}),D}function g(M,S){arguments.length<2&&(S=M.nodes()[0]),b(M,{},1,S)}function b(M,S,_,T,V){var H=_,L=M.node(T);return S[T]=!0,e.forEach(M.neighbors(T),function(D){e.has(S,D)||(_=b(M,S,_,D,T))}),L.low=H,L.lim=_++,V?L.parent=V:delete L.parent,_}function w(M){return e.find(M.edges(),function(S){return M.edge(S).cutvalue<0})}function N(M,S,_){var T=_.v,V=_.w;S.hasEdge(T,V)||(T=_.w,V=_.v);var H=M.node(T),L=M.node(V),D=H,B=!1;H.lim>L.lim&&(D=L,B=!0);var K=e.filter(S.edges(),function(J){return B===Z(M,M.node(J.v),D)&&B!==Z(M,M.node(J.w),D)});return e.minBy(K,function(J){return l(S,J)})}function E(M,S,_,T){var V=_.v,H=_.w;M.removeEdge(V,H),M.setEdge(T.v,T.w,{}),g(M),f(M,S),j(M,S)}function j(M,S){var _=e.find(M.nodes(),function(V){return!S.node(V).parent}),T=o(M,_);T=T.slice(1),e.forEach(T,function(V){var H=M.node(V).parent,L=S.edge(V,H),D=!1;L||(L=S.edge(H,V),D=!0),S.node(V).rank=S.node(H).rank+(D?L.minlen:-L.minlen)})}function A(M,S,_){return M.hasEdge(S,_)}function Z(M,S,_){return _.low<=S.lim&&S.lim<=_.lim}return gh}var vh,Ww;function _U(){if(Ww)return vh;Ww=1;var e=Xi(),t=e.longestPath,l=$Z(),i=VU();vh=o;function o(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=t;function d(f){t(f),l(f)}function h(f){i(f)}return vh}var bh,eA;function TU(){if(eA)return bh;eA=1;var e=it();bh=t;function t(o){var u=i(o);e.forEach(o.graph().dummyChains,function(d){for(var h=o.node(d),f=h.edgeObj,p=l(o,u,f.v,f.w),x=p.path,g=p.lca,b=0,w=x[b],N=!0;d!==f.w;){if(h=o.node(d),N){for(;(w=x[b])!==g&&o.node(w).maxRank<h.rank;)b++;w===g&&(N=!1)}if(!N){for(;b<x.length-1&&o.node(w=x[b+1]).minRank<=h.rank;)b++;w=x[b]}o.setParent(d,w),d=o.successors(d)[0]}})}function l(o,u,d,h){var f=[],p=[],x=Math.min(u[d].low,u[h].low),g=Math.max(u[d].lim,u[h].lim),b,w;b=d;do b=o.parent(b),f.push(b);while(b&&(u[b].low>x||g>u[b].lim));for(w=b,b=h;(b=o.parent(b))!==w;)p.push(b);return{path:f.concat(p.reverse()),lca:w}}function i(o){var u={},d=0;function h(f){var p=d;e.forEach(o.children(f),h),u[f]={low:p,lim:d++}}return e.forEach(o.children(),h),u}return bh}var yh,tA;function LU(){if(tA)return yh;tA=1;var e=it(),t=ra();yh={run:l,cleanup:d};function l(h){var f=t.addDummyNode(h,"root",{},"_root"),p=o(h),x=e.max(e.values(p))-1,g=2*x+1;h.graph().nestingRoot=f,e.forEach(h.edges(),function(w){h.edge(w).minlen*=g});var b=u(h)+1;e.forEach(h.children(),function(w){i(h,f,g,b,x,p,w)}),h.graph().nodeRankFactor=g}function i(h,f,p,x,g,b,w){var N=h.children(w);if(!N.length){w!==f&&h.setEdge(f,w,{weight:0,minlen:p});return}var E=t.addBorderNode(h,"_bt"),j=t.addBorderNode(h,"_bb"),A=h.node(w);h.setParent(E,w),A.borderTop=E,h.setParent(j,w),A.borderBottom=j,e.forEach(N,function(Z){i(h,f,p,x,g,b,Z);var M=h.node(Z),S=M.borderTop?M.borderTop:Z,_=M.borderBottom?M.borderBottom:Z,T=M.borderTop?x:2*x,V=S!==_?1:g-b[w]+1;h.setEdge(E,S,{weight:T,minlen:V,nestingEdge:!0}),h.setEdge(_,j,{weight:T,minlen:V,nestingEdge:!0})}),h.parent(w)||h.setEdge(f,E,{weight:0,minlen:g+b[w]})}function o(h){var f={};function p(x,g){var b=h.children(x);b&&b.length&&e.forEach(b,function(w){p(w,g+1)}),f[x]=g}return e.forEach(h.children(),function(x){p(x,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 x=h.edge(p);x.nestingEdge&&h.removeEdge(p)})}return yh}var wh,aA;function kU(){if(aA)return wh;aA=1;var e=it(),t=ra();wh=l;function l(o){function u(d){var h=o.children(d),f=o.node(d);if(h.length&&e.forEach(h,u),e.has(f,"minRank")){f.borderLeft=[],f.borderRight=[];for(var p=f.minRank,x=f.maxRank+1;p<x;++p)i(o,"borderLeft","_bl",d,f,p),i(o,"borderRight","_br",d,f,p)}}e.forEach(o.children(),u)}function i(o,u,d,h,f,p){var x={width:0,height:0,rank:p,borderType:u},g=f[u][p-1],b=t.addDummyNode(o,"border",x,d);f[u][p]=b,o.setParent(b,h),g&&o.setEdge(g,b,{weight:1})}return wh}var Ah,nA;function RU(){if(nA)return Ah;nA=1;var e=it();Ah={adjust:t,undo:l};function t(p){var x=p.graph().rankdir.toLowerCase();(x==="lr"||x==="rl")&&i(p)}function l(p){var x=p.graph().rankdir.toLowerCase();(x==="bt"||x==="rl")&&u(p),(x==="lr"||x==="rl")&&(h(p),i(p))}function i(p){e.forEach(p.nodes(),function(x){o(p.node(x))}),e.forEach(p.edges(),function(x){o(p.edge(x))})}function o(p){var x=p.width;p.width=p.height,p.height=x}function u(p){e.forEach(p.nodes(),function(x){d(p.node(x))}),e.forEach(p.edges(),function(x){var g=p.edge(x);e.forEach(g.points,d),e.has(g,"y")&&d(g)})}function d(p){p.y=-p.y}function h(p){e.forEach(p.nodes(),function(x){f(p.node(x))}),e.forEach(p.edges(),function(x){var g=p.edge(x);e.forEach(g.points,f),e.has(g,"x")&&f(g)})}function f(p){var x=p.x;p.x=p.y,p.y=x}return Ah}var jh,rA;function DU(){if(rA)return jh;rA=1;var e=it();jh=t;function t(l){var i={},o=e.filter(l.nodes(),function(p){return!l.children(p).length}),u=e.max(e.map(o,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 x=l.node(p);d[x.rank].push(p),e.forEach(l.successors(p),h)}}var f=e.sortBy(o,function(p){return l.node(p).rank});return e.forEach(f,h),d}return jh}var Nh,sA;function OU(){if(sA)return Nh;sA=1;var e=it();Nh=t;function t(i,o){for(var u=0,d=1;d<o.length;++d)u+=l(i,o[d-1],o[d]);return u}function l(i,o,u){for(var d=e.zipObject(u,e.map(u,function(b,w){return w})),h=e.flatten(e.map(o,function(b){return e.sortBy(e.map(i.outEdges(b),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 x=e.map(new Array(p),function(){return 0}),g=0;return e.forEach(h.forEach(function(b){var w=b.pos+f;x[w]+=b.weight;for(var N=0;w>0;)w%2&&(N+=x[w+1]),w=w-1>>1,x[w]+=b.weight;g+=b.weight*N})),g}return Nh}var Eh,lA;function FU(){if(lA)return Eh;lA=1;var e=it();Eh=t;function t(l,i){return e.map(i,function(o){var u=l.inEdges(o);if(u.length){var d=e.reduce(u,function(h,f){var p=l.edge(f),x=l.node(f.v);return{sum:h.sum+p.weight*x.order,weight:h.weight+p.weight}},{sum:0,weight:0});return{v:o,barycenter:d.sum/d.weight,weight:d.weight}}else return{v:o}})}return Eh}var Mh,iA;function zU(){if(iA)return Mh;iA=1;var e=it();Mh=t;function t(o,u){var d={};e.forEach(o,function(f,p){var x=d[f.v]={indegree:0,in:[],out:[],vs:[f.v],i:p};e.isUndefined(f.barycenter)||(x.barycenter=f.barycenter,x.weight=f.weight)}),e.forEach(u.edges(),function(f){var p=d[f.v],x=d[f.w];!e.isUndefined(p)&&!e.isUndefined(x)&&(x.indegree++,p.out.push(d[f.w]))});var h=e.filter(d,function(f){return!f.indegree});return l(h)}function l(o){var u=[];function d(p){return function(x){x.merged||(e.isUndefined(x.barycenter)||e.isUndefined(p.barycenter)||x.barycenter>=p.barycenter)&&i(p,x)}}function h(p){return function(x){x.in.push(p),--x.indegree===0&&o.push(x)}}for(;o.length;){var f=o.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(o,u){var d=0,h=0;o.weight&&(d+=o.barycenter*o.weight,h+=o.weight),u.weight&&(d+=u.barycenter*u.weight,h+=u.weight),o.vs=u.vs.concat(o.vs),o.barycenter=d/h,o.weight=h,o.i=Math.min(u.i,o.i),u.merged=!0}return Mh}var Sh,oA;function $U(){if(oA)return Sh;oA=1;var e=it(),t=ra();Sh=l;function l(u,d){var h=t.partition(u,function(E){return e.has(E,"barycenter")}),f=h.lhs,p=e.sortBy(h.rhs,function(E){return-E.i}),x=[],g=0,b=0,w=0;f.sort(o(!!d)),w=i(x,p,w),e.forEach(f,function(E){w+=E.vs.length,x.push(E.vs),g+=E.barycenter*E.weight,b+=E.weight,w=i(x,p,w)});var N={vs:e.flatten(x,!0)};return b&&(N.barycenter=g/b,N.weight=b),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 o(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 Sh}var Zh,cA;function qU(){if(cA)return Zh;cA=1;var e=it(),t=FU(),l=zU(),i=$U();Zh=o;function o(h,f,p,x){var g=h.children(f),b=h.node(f),w=b?b.borderLeft:void 0,N=b?b.borderRight:void 0,E={};w&&(g=e.filter(g,function(_){return _!==w&&_!==N}));var j=t(h,g);e.forEach(j,function(_){if(h.children(_.v).length){var T=o(h,_.v,p,x);E[_.v]=T,e.has(T,"barycenter")&&d(_,T)}});var A=l(j,p);u(A,E);var Z=i(A,x);if(w&&(Z.vs=e.flatten([w,Z.vs,N],!0),h.predecessors(w).length)){var M=h.node(h.predecessors(w)[0]),S=h.node(h.predecessors(N)[0]);e.has(Z,"barycenter")||(Z.barycenter=0,Z.weight=0),Z.barycenter=(Z.barycenter*Z.weight+M.order+S.order)/(Z.weight+2),Z.weight+=2}return Z}function u(h,f){e.forEach(h,function(p){p.vs=e.flatten(p.vs.map(function(x){return f[x]?f[x].vs:x}),!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 Zh}var Ch,uA;function IU(){if(uA)return Ch;uA=1;var e=it(),t=Ua().Graph;Ch=l;function l(o,u,d){var h=i(o),f=new t({compound:!0}).setGraph({root:h}).setDefaultNodeLabel(function(p){return o.node(p)});return e.forEach(o.nodes(),function(p){var x=o.node(p),g=o.parent(p);(x.rank===u||x.minRank<=u&&u<=x.maxRank)&&(f.setNode(p),f.setParent(p,g||h),e.forEach(o[d](p),function(b){var w=b.v===p?b.w:b.v,N=f.edge(w,p),E=e.isUndefined(N)?0:N.weight;f.setEdge(w,p,{weight:o.edge(b).weight+E})}),e.has(x,"minRank")&&f.setNode(p,{borderLeft:x.borderLeft[u],borderRight:x.borderRight[u]}))}),f}function i(o){for(var u;o.hasNode(u=e.uniqueId("_root")););return u}return Ch}var Hh,dA;function BU(){if(dA)return Hh;dA=1;var e=it();Hh=t;function t(l,i,o){var u={},d;e.forEach(o,function(h){for(var f=l.parent(h),p,x;f;){if(p=l.parent(f),p?(x=u[p],u[p]=f):(x=d,d=f),x&&x!==f){i.setEdge(x,f);return}f=p}})}return Hh}var Vh,hA;function PU(){if(hA)return Vh;hA=1;var e=it(),t=DU(),l=OU(),i=qU(),o=IU(),u=BU(),d=Ua().Graph,h=ra();Vh=f;function f(b){var w=h.maxRank(b),N=p(b,e.range(1,w+1),"inEdges"),E=p(b,e.range(w-1,-1,-1),"outEdges"),j=t(b);g(b,j);for(var A=Number.POSITIVE_INFINITY,Z,M=0,S=0;S<4;++M,++S){x(M%2?N:E,M%4>=2),j=h.buildLayerMatrix(b);var _=l(b,j);_<A&&(S=0,Z=e.cloneDeep(j),A=_)}g(b,Z)}function p(b,w,N){return e.map(w,function(E){return o(b,E,N)})}function x(b,w){var N=new d;e.forEach(b,function(E){var j=E.graph().root,A=i(E,j,N,w);e.forEach(A.vs,function(Z,M){E.node(Z).order=M}),u(E,N,A.vs)})}function g(b,w){e.forEach(w,function(N){e.forEach(N,function(E,j){b.node(E).order=j})})}return Vh}var _h,mA;function UU(){if(mA)return _h;mA=1;var e=it(),t=Ua().Graph,l=ra();_h={positionX:N,findType1Conflicts:i,findType2Conflicts:o,addConflict:d,hasConflict:h,verticalAlignment:f,horizontalCompaction:p,alignCoordinates:b,findSmallestWidthAlignment:g,balance:w};function i(A,Z){var M={};function S(_,T){var V=0,H=0,L=_.length,D=e.last(T);return e.forEach(T,function(B,K){var J=u(A,B),se=J?A.node(J).order:L;(J||B===D)&&(e.forEach(T.slice(H,K+1),function(le){e.forEach(A.predecessors(le),function(O){var q=A.node(O),I=q.order;(I<V||se<I)&&!(q.dummy&&A.node(le).dummy)&&d(M,O,le)})}),H=K+1,V=se)}),T}return e.reduce(Z,S),M}function o(A,Z){var M={};function S(T,V,H,L,D){var B;e.forEach(e.range(V,H),function(K){B=T[K],A.node(B).dummy&&e.forEach(A.predecessors(B),function(J){var se=A.node(J);se.dummy&&(se.order<L||se.order>D)&&d(M,J,B)})})}function _(T,V){var H=-1,L,D=0;return e.forEach(V,function(B,K){if(A.node(B).dummy==="border"){var J=A.predecessors(B);J.length&&(L=A.node(J[0]).order,S(V,D,K,H,L),D=K,H=L)}S(V,D,V.length,L,T.length)}),V}return e.reduce(Z,_),M}function u(A,Z){if(A.node(Z).dummy)return e.find(A.predecessors(Z),function(M){return A.node(M).dummy})}function d(A,Z,M){if(Z>M){var S=Z;Z=M,M=S}var _=A[Z];_||(A[Z]=_={}),_[M]=!0}function h(A,Z,M){if(Z>M){var S=Z;Z=M,M=S}return e.has(A[Z],M)}function f(A,Z,M,S){var _={},T={},V={};return e.forEach(Z,function(H){e.forEach(H,function(L,D){_[L]=L,T[L]=L,V[L]=D})}),e.forEach(Z,function(H){var L=-1;e.forEach(H,function(D){var B=S(D);if(B.length){B=e.sortBy(B,function(O){return V[O]});for(var K=(B.length-1)/2,J=Math.floor(K),se=Math.ceil(K);J<=se;++J){var le=B[J];T[D]===D&&L<V[le]&&!h(M,D,le)&&(T[le]=D,T[D]=_[D]=_[le],L=V[le])}}})}),{root:_,align:T}}function p(A,Z,M,S,_){var T={},V=x(A,Z,M,_),H=_?"borderLeft":"borderRight";function L(K,J){for(var se=V.nodes(),le=se.pop(),O={};le;)O[le]?K(le):(O[le]=!0,se.push(le),se=se.concat(J(le))),le=se.pop()}function D(K){T[K]=V.inEdges(K).reduce(function(J,se){return Math.max(J,T[se.v]+V.edge(se))},0)}function B(K){var J=V.outEdges(K).reduce(function(le,O){return Math.min(le,T[O.w]-V.edge(O))},Number.POSITIVE_INFINITY),se=A.node(K);J!==Number.POSITIVE_INFINITY&&se.borderType!==H&&(T[K]=Math.max(T[K],J))}return L(D,V.predecessors.bind(V)),L(B,V.successors.bind(V)),e.forEach(S,function(K){T[K]=T[M[K]]}),T}function x(A,Z,M,S){var _=new t,T=A.graph(),V=E(T.nodesep,T.edgesep,S);return e.forEach(Z,function(H){var L;e.forEach(H,function(D){var B=M[D];if(_.setNode(B),L){var K=M[L],J=_.edge(K,B);_.setEdge(K,B,Math.max(V(A,D,L),J||0))}L=D})}),_}function g(A,Z){return e.minBy(e.values(Z),function(M){var S=Number.NEGATIVE_INFINITY,_=Number.POSITIVE_INFINITY;return e.forIn(M,function(T,V){var H=j(A,V)/2;S=Math.max(T+H,S),_=Math.min(T-H,_)}),S-_})}function b(A,Z){var M=e.values(Z),S=e.min(M),_=e.max(M);e.forEach(["u","d"],function(T){e.forEach(["l","r"],function(V){var H=T+V,L=A[H],D;if(L!==Z){var B=e.values(L);D=V==="l"?S-e.min(B):_-e.max(B),D&&(A[H]=e.mapValues(L,function(K){return K+D}))}})})}function w(A,Z){return e.mapValues(A.ul,function(M,S){if(Z)return A[Z.toLowerCase()][S];var _=e.sortBy(e.map(A,S));return(_[1]+_[2])/2})}function N(A){var Z=l.buildLayerMatrix(A),M=e.merge(i(A,Z),o(A,Z)),S={},_;e.forEach(["u","d"],function(V){_=V==="u"?Z:e.values(Z).reverse(),e.forEach(["l","r"],function(H){H==="r"&&(_=e.map(_,function(K){return e.values(K).reverse()}));var L=(V==="u"?A.predecessors:A.successors).bind(A),D=f(A,_,M,L),B=p(A,_,D.root,D.align,H==="r");H==="r"&&(B=e.mapValues(B,function(K){return-K})),S[V+H]=B})});var T=g(A,S);return b(S,T),w(S,A.graph().align)}function E(A,Z,M){return function(S,_,T){var V=S.node(_),H=S.node(T),L=0,D;if(L+=V.width/2,e.has(V,"labelpos"))switch(V.labelpos.toLowerCase()){case"l":D=-V.width/2;break;case"r":D=V.width/2;break}if(D&&(L+=M?D:-D),D=0,L+=(V.dummy?Z:A)/2,L+=(H.dummy?Z:A)/2,L+=H.width/2,e.has(H,"labelpos"))switch(H.labelpos.toLowerCase()){case"l":D=H.width/2;break;case"r":D=-H.width/2;break}return D&&(L+=M?D:-D),D=0,L}}function j(A,Z){return A.node(Z).width}return _h}var Th,fA;function GU(){if(fA)return Th;fA=1;var e=it(),t=ra(),l=UU().positionX;Th=i;function i(u){u=t.asNonCompoundGraph(u),o(u),e.forEach(l(u),function(d,h){u.node(h).x=d})}function o(u){var d=t.buildLayerMatrix(u),h=u.graph().ranksep,f=0;e.forEach(d,function(p){var x=e.max(e.map(p,function(g){return u.node(g).height}));e.forEach(p,function(g){u.node(g).y=f+x/2}),f+=x+h})}return Th}var Lh,pA;function YU(){if(pA)return Lh;pA=1;var e=it(),t=CU(),l=HU(),i=_U(),o=ra().normalizeRanks,u=TU(),d=ra().removeEmptyRanks,h=LU(),f=kU(),p=RU(),x=PU(),g=GU(),b=ra(),w=Ua().Graph;Lh=N;function N($,F){var z=F&&F.debugTiming?b.time:b.notime;z("layout",function(){var ae=z(" buildLayoutGraph",function(){return L($)});z(" runLayout",function(){E(ae,z)}),z(" updateInputGraph",function(){j($,ae)})})}function E($,F){F(" makeSpaceForEdgeLabels",function(){D($)}),F(" removeSelfEdges",function(){Y($)}),F(" acyclic",function(){t.run($)}),F(" nestingGraph.run",function(){h.run($)}),F(" rank",function(){i(b.asNonCompoundGraph($))}),F(" injectEdgeLabelProxies",function(){B($)}),F(" removeEmptyRanks",function(){d($)}),F(" nestingGraph.cleanup",function(){h.cleanup($)}),F(" normalizeRanks",function(){o($)}),F(" assignRankMinMax",function(){K($)}),F(" removeEdgeLabelProxies",function(){J($)}),F(" normalize.run",function(){l.run($)}),F(" parentDummyChains",function(){u($)}),F(" addBorderSegments",function(){f($)}),F(" order",function(){x($)}),F(" insertSelfEdges",function(){X($)}),F(" adjustCoordinateSystem",function(){p.adjust($)}),F(" position",function(){g($)}),F(" positionSelfEdges",function(){k($)}),F(" removeBorderNodes",function(){I($)}),F(" normalize.undo",function(){l.undo($)}),F(" fixupEdgeLabelCoords",function(){O($)}),F(" undoCoordinateSystem",function(){p.undo($)}),F(" translateGraph",function(){se($)}),F(" assignNodeIntersects",function(){le($)}),F(" reversePoints",function(){q($)}),F(" acyclic.undo",function(){t.undo($)})}function j($,F){e.forEach($.nodes(),function(z){var ae=$.node(z),fe=F.node(z);ae&&(ae.x=fe.x,ae.y=fe.y,F.children(z).length&&(ae.width=fe.width,ae.height=fe.height))}),e.forEach($.edges(),function(z){var ae=$.edge(z),fe=F.edge(z);ae.points=fe.points,e.has(fe,"x")&&(ae.x=fe.x,ae.y=fe.y)}),$.graph().width=F.graph().width,$.graph().height=F.graph().height}var A=["nodesep","edgesep","ranksep","marginx","marginy"],Z={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},M=["acyclicer","ranker","rankdir","align"],S=["width","height"],_={width:0,height:0},T=["minlen","weight","width","height","labeloffset"],V={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},H=["labelpos"];function L($){var F=new w({multigraph:!0,compound:!0}),z=W($.graph());return F.setGraph(e.merge({},Z,U(z,A),e.pick(z,M))),e.forEach($.nodes(),function(ae){var fe=W($.node(ae));F.setNode(ae,e.defaults(U(fe,S),_)),F.setParent(ae,$.parent(ae))}),e.forEach($.edges(),function(ae){var fe=W($.edge(ae));F.setEdge(ae,e.merge({},V,U(fe,T),e.pick(fe,H)))}),F}function D($){var F=$.graph();F.ranksep/=2,e.forEach($.edges(),function(z){var ae=$.edge(z);ae.minlen*=2,ae.labelpos.toLowerCase()!=="c"&&(F.rankdir==="TB"||F.rankdir==="BT"?ae.width+=ae.labeloffset:ae.height+=ae.labeloffset)})}function B($){e.forEach($.edges(),function(F){var z=$.edge(F);if(z.width&&z.height){var ae=$.node(F.v),fe=$.node(F.w),pe={rank:(fe.rank-ae.rank)/2+ae.rank,e:F};b.addDummyNode($,"edge-proxy",pe,"_ep")}})}function K($){var F=0;e.forEach($.nodes(),function(z){var ae=$.node(z);ae.borderTop&&(ae.minRank=$.node(ae.borderTop).rank,ae.maxRank=$.node(ae.borderBottom).rank,F=e.max(F,ae.maxRank))}),$.graph().maxRank=F}function J($){e.forEach($.nodes(),function(F){var z=$.node(F);z.dummy==="edge-proxy"&&($.edge(z.e).labelRank=z.rank,$.removeNode(F))})}function se($){var F=Number.POSITIVE_INFINITY,z=0,ae=Number.POSITIVE_INFINITY,fe=0,pe=$.graph(),Ee=pe.marginx||0,Me=pe.marginy||0;function _e(Pe){var Te=Pe.x,Ae=Pe.y,$t=Pe.width,Ze=Pe.height;F=Math.min(F,Te-$t/2),z=Math.max(z,Te+$t/2),ae=Math.min(ae,Ae-Ze/2),fe=Math.max(fe,Ae+Ze/2)}e.forEach($.nodes(),function(Pe){_e($.node(Pe))}),e.forEach($.edges(),function(Pe){var Te=$.edge(Pe);e.has(Te,"x")&&_e(Te)}),F-=Ee,ae-=Me,e.forEach($.nodes(),function(Pe){var Te=$.node(Pe);Te.x-=F,Te.y-=ae}),e.forEach($.edges(),function(Pe){var Te=$.edge(Pe);e.forEach(Te.points,function(Ae){Ae.x-=F,Ae.y-=ae}),e.has(Te,"x")&&(Te.x-=F),e.has(Te,"y")&&(Te.y-=ae)}),pe.width=z-F+Ee,pe.height=fe-ae+Me}function le($){e.forEach($.edges(),function(F){var z=$.edge(F),ae=$.node(F.v),fe=$.node(F.w),pe,Ee;z.points?(pe=z.points[0],Ee=z.points[z.points.length-1]):(z.points=[],pe=fe,Ee=ae),z.points.unshift(b.intersectRect(ae,pe)),z.points.push(b.intersectRect(fe,Ee))})}function O($){e.forEach($.edges(),function(F){var z=$.edge(F);if(e.has(z,"x"))switch((z.labelpos==="l"||z.labelpos==="r")&&(z.width-=z.labeloffset),z.labelpos){case"l":z.x-=z.width/2+z.labeloffset;break;case"r":z.x+=z.width/2+z.labeloffset;break}})}function q($){e.forEach($.edges(),function(F){var z=$.edge(F);z.reversed&&z.points.reverse()})}function I($){e.forEach($.nodes(),function(F){if($.children(F).length){var z=$.node(F),ae=$.node(z.borderTop),fe=$.node(z.borderBottom),pe=$.node(e.last(z.borderLeft)),Ee=$.node(e.last(z.borderRight));z.width=Math.abs(Ee.x-pe.x),z.height=Math.abs(fe.y-ae.y),z.x=pe.x+z.width/2,z.y=ae.y+z.height/2}}),e.forEach($.nodes(),function(F){$.node(F).dummy==="border"&&$.removeNode(F)})}function Y($){e.forEach($.edges(),function(F){if(F.v===F.w){var z=$.node(F.v);z.selfEdges||(z.selfEdges=[]),z.selfEdges.push({e:F,label:$.edge(F)}),$.removeEdge(F)}})}function X($){var F=b.buildLayerMatrix($);e.forEach(F,function(z){var ae=0;e.forEach(z,function(fe,pe){var Ee=$.node(fe);Ee.order=pe+ae,e.forEach(Ee.selfEdges,function(Me){b.addDummyNode($,"selfedge",{width:Me.label.width,height:Me.label.height,rank:Ee.rank,order:pe+ ++ae,e:Me.e,label:Me.label},"_se")}),delete Ee.selfEdges})})}function k($){e.forEach($.nodes(),function(F){var z=$.node(F);if(z.dummy==="selfedge"){var ae=$.node(z.e.v),fe=ae.x+ae.width/2,pe=ae.y,Ee=z.x-fe,Me=ae.height/2;$.setEdge(z.e,z.label),$.removeNode(F),z.label.points=[{x:fe+2*Ee/3,y:pe-Me},{x:fe+5*Ee/6,y:pe-Me},{x:fe+Ee,y:pe},{x:fe+5*Ee/6,y:pe+Me},{x:fe+2*Ee/3,y:pe+Me}],z.label.x=z.x,z.label.y=z.y}})}function U($,F){return e.mapValues(e.pick($,F),Number)}function W($){var F={};return e.forEach($,function(z,ae){F[ae.toLowerCase()]=z}),F}return Lh}var kh,xA;function KU(){if(xA)return kh;xA=1;var e=it(),t=ra(),l=Ua().Graph;kh={debugOrdering:i};function i(o){var u=t.buildLayerMatrix(o),d=new l({compound:!0,multigraph:!0}).setGraph({});return e.forEach(o.nodes(),function(h){d.setNode(h,{label:h}),d.setParent(h,"layer"+o.node(h).rank)}),e.forEach(o.edges(),function(h){d.setEdge(h.v,h.w,{},h.name)}),e.forEach(u,function(h,f){var p="layer"+f;d.setNode(p,{rank:"same"}),e.reduce(h,function(x,g){return d.setEdge(x,g,{style:"invis"}),g})}),d}return kh}var Rh,gA;function XU(){return gA||(gA=1,Rh="0.8.5"),Rh}var Dh,vA;function QU(){return vA||(vA=1,Dh={graphlib:Ua(),layout:YU(),debug:KU(),util:{time:ra().time,notime:ra().notime},version:XU()}),Dh}var JU=QU();const Qi=xV(JU),Oh=280,Fh=80,zh=200,bA=40,WU=80,eG=100,tG=60;function aG(e,t){const l=new Qi.graphlib.Graph;l.setDefaultEdgeLabel(()=>({})),l.setGraph({rankdir:"TB",nodesep:WU,ranksep:eG,marginx:40,marginy:40});for(const d of e){const h=d.type==="addStep";l.setNode(d.id,{width:h?zh:Oh,height:h?bA:Fh})}for(const d of t)l.setEdge(d.source,d.target);Qi.layout(l);const i=new Map;for(const d of t){const h=e.find(f=>f.id===d.target);(h==null?void 0:h.type)==="addStep"&&i.set(d.target,d.source)}const o=e.map(d=>{const h=l.node(d.id);if(!h)return d;const f=d.type==="addStep",p=f?zh:Oh,x=f?bA:Fh;return{...d,position:{x:h.x-p/2,y:h.y-x/2}}}),u=new Map(o.map(d=>[d.id,d]));for(const d of o){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:Oh,height:Fh};d.position={x:f.position.x+(p.width-zh)/2,y:f.position.y+p.height+tG}}return o}function nG(){return{applyLayout:r.useCallback((t,l)=>t.length===0?t:aG(t,l),[])}}const Fi=280,x1=80,rG=100,j1=200,yA=40,sG=80,qZ=60;function lG(e,t){const l=new Map;for(const o of t){const u=e.find(d=>d.id===o.target);(u==null?void 0:u.type)==="addStep"&&l.set(o.target,o.source)}const i=new Map(e.map(o=>[o.id,o]));return e.map(o=>{if(o.type!=="addStep")return o;const u=l.get(o.id);if(!u)return o;const d=i.get(u);if(!d)return o;const h=d.type==="conditional"?rG:x1,f=d.type==="addStep"?j1:Fi;return{...o,position:{x:d.position.x+(f-j1)/2,y:d.position.y+h+qZ}}})}function wA(e){let t=0;for(const l of e)if(l.type==="step"||l.type==="conditional"){const i=l.id.match(/^step_(\d+)$/);i&&(t=Math.max(t,parseInt(i[1],10)))}return`step_${t+1}`}function Mi(e,t){const l=new Set(e.map(o=>o.id)),i=new Set;return t.filter(o=>{if(!l.has(o.source)||!l.has(o.target))return!1;const u=`${o.source}|${o.sourceHandle??""}|${o.target}`;return i.has(u)?!1:(i.add(u),!0)})}function iG(e,t){const l=new Set,i=[e];for(;i.length>0;){const o=i.shift();for(const u of t)u.source===o&&!l.has(u.target)&&(l.add(u.target),i.push(u.target))}return l}function oG(e,t,l){const{applyLayout:i}=nG(),[o]=r.useState(()=>l!=null&&l.hasCustomPositions?lG(e,t):i(e,t)),[u,d]=r.useState(o),[h,f]=r.useState(t),[p,x]=r.useState(null),g=r.useRef(t),b=r.useRef(o);r.useEffect(()=>{g.current=h},[h]),r.useEffect(()=>{b.current=u},[u]);const w=u.find(T=>T.id===p)||null,N=r.useCallback((T,V)=>{d(H=>H.map(L=>L.id===T?{...L,position:V}:L))},[d]),E=r.useCallback((T,V)=>{d(H=>H.map(L=>L.id===T?{...L,data:{...L.data,...V}}:L))},[d]),j=r.useCallback((T,V="run_agent")=>{const H=b.current,L=g.current,D=B0(T),B=H.find(_e=>_e.id===D),K=B==null?void 0:B.data,J=K==null?void 0:K.branchType,se=K==null?void 0:K.conditionalNodeId,le=H.filter(_e=>_e.type==="step"||_e.type==="conditional").length,O=wA(H),q={action_type:V,action_config:{}},I={stepIndex:J?-1:le,stepId:O,stepType:V,label:p0[V]||V,actionConfig:{},outputFields:G0(q)};J&&se&&(I.branchType=J,I.parentConditionalId=se);const Y=(B==null?void 0:B.position)??{x:0,y:0},X=Y.x+(j1-Fi)/2,k=Y.y+(yA-x1)/2,U={id:O,type:"step",position:{x:X,y:k},data:I},W=L.find(_e=>_e.source===T&&_e.target===D),$=W==null?void 0:W.sourceHandle;let F=L.filter(_e=>!(_e.source===T&&_e.target===D));F.push({id:`${T}->${O}`,source:T,sourceHandle:$||void 0,target:O,type:"dataFlow",data:J?{branchType:J}:void 0});const z=B0(O),ae=X+(Fi-j1)/2,fe=k+x1+qZ,pe={id:z,type:"addStep",position:{x:ae,y:fe},data:{parentNodeId:O,insertIndex:le+1,...J?{branchType:J,conditionalNodeId:se}:{}}};F.push({id:`${O}->${z}`,source:O,target:z,type:"addStepEdge",data:J?{branchType:J}:void 0});const Ee=H.filter(_e=>_e.id!==D);F=F.filter(_e=>_e.source!==D&&_e.target!==D);const Me=[...Ee,U,pe];d(Me),f(Mi(Me,F)),x(O)},[d,f]),A=r.useCallback(T=>{var O;const V=b.current,H=g.current,L=V.find(q=>q.id===T);if(!L||L.type==="trigger")return;const D=H.find(q=>q.target===T),B=H.filter(q=>q.source===T),K=D==null?void 0:D.source;let J=H.filter(q=>q.source!==T&&q.target!==T);const se=B0(T);J=J.filter(q=>q.source!==se&&q.target!==se);let le=V.filter(q=>q.id!==T&&q.id!==se);if(K){const q=D==null?void 0:D.sourceHandle,I=(O=D==null?void 0:D.data)==null?void 0:O.branchType,Y=B.find(X=>{const k=V.find(U=>U.id===X.target);return k&&k.type!=="addStep"});if(Y)J.push({id:`${K}->${Y.target}`,source:K,sourceHandle:q,target:Y.target,type:"dataFlow",data:I?{branchType:I}:void 0});else{const X=L.position,k=B0(K),U={id:k,type:"addStep",position:{x:X.x+(Fi-j1)/2,y:X.y+(x1-yA)/2},data:{parentNodeId:K,insertIndex:0,...I?{branchType:I,conditionalNodeId:K}:{}}};J.push({id:`${K}->${k}`,source:K,sourceHandle:q,target:k,type:"addStepEdge",data:I?{branchType:I}:void 0}),le=[...le,U]}}d(le),f(Mi(le,J)),x(null)},[d,f]),Z=r.useCallback((T,V,H,L)=>{const D=b.current,B=g.current,K=D.find(q=>q.id===T),J=D.find(q=>q.id===H);if(!K||!J||B.find(q=>q.source===T&&q.sourceHandle===(V==="source"?void 0:V)&&q.target===H))return;let le=B.filter(q=>q.source!==T?!0:(q.sourceHandle||"source")!==V);le=le.filter(q=>q.target!==H||q.type==="addStepEdge");const O=V==="then"||V==="else"?V:void 0;le.push({id:`${T}->${H}`,source:T,sourceHandle:V==="source"?void 0:V,target:H,type:"dataFlow",data:O?{branchType:O}:void 0}),f(Mi(D,le))},[]),M=r.useCallback((T,V)=>{var F;const H=b.current,L=g.current,D=H.find(z=>z.id===T),B=H.find(z=>z.id===V);if(!D||!B)return;const K=wA(H),J=L.find(z=>z.source===T&&z.target===V),se=(F=J==null?void 0:J.data)==null?void 0:F.branchType,le={action_type:"run_agent",action_config:{}},O=(D.position.x+B.position.x)/2,q=(D.position.y+B.position.y)/2,I={stepIndex:se?-1:H.filter(z=>z.type==="step"||z.type==="conditional").length,stepId:K,stepType:"run_agent",label:p0.run_agent,actionConfig:{},outputFields:G0(le)};se&&T&&(I.branchType=se,I.parentConditionalId=T);const Y={id:K,type:"step",position:{x:O,y:q},data:I},X=x1+sG,k=iG(V,L);k.add(V);const U=H.map(z=>k.has(z.id)?{...z,position:{x:z.position.x,y:z.position.y+X}}:z),W=[...L.filter(z=>!(z.source===T&&z.target===V)),{id:`${T}->${K}`,source:T,sourceHandle:J==null?void 0:J.sourceHandle,target:K,type:"dataFlow",data:se?{branchType:se}:void 0},{id:`${K}->${V}`,source:K,target:V,type:"dataFlow",data:se?{branchType:se}:void 0}],$=[...U,Y];d($),f(Mi($,W)),x(K)},[d,f]),S=r.useCallback((T,V)=>{if(V.type==="addStep"){const H=V.data;j(H.parentNodeId)}else x(V.id)},[j]),_=r.useCallback(()=>{x(null)},[]);return{nodes:u,edges:h,selectedNodeId:p,selectedNode:w,onNodeClick:S,onPaneClick:_,updateNodeData:E,updateNodePosition:N,addStep:j,deleteStep:A,connectNodes:Z,insertStepBetween:M,setSelectedNodeId:x,setNodes:d,setEdges:f}}const cG={trigger:{width:280,height:80},step:{width:280,height:80},conditional:{width:280,height:100},addStep:{width:200,height:40}};function uG(e){return e.width&&e.height?{width:e.width,height:e.height}:cG[e.type||"step"]||{width:280,height:80}}function dG(e){const t=new Map;for(const l of e){const{width:i,height:o}=uG(l),u=l.position.x+i/2;switch(l.type){case"trigger":t.set(`${l.id}:source`,{nodeId:l.id,handleId:"source",type:"source",x:u,y:l.position.y+o});break;case"step":t.set(`${l.id}:target`,{nodeId:l.id,handleId:"target",type:"target",x:u,y:l.position.y}),t.set(`${l.id}:source`,{nodeId:l.id,handleId:"source",type:"source",x:u,y:l.position.y+o});break;case"conditional":t.set(`${l.id}:target`,{nodeId:l.id,handleId:"target",type:"target",x:u,y:l.position.y}),t.set(`${l.id}:then`,{nodeId:l.id,handleId:"then",type:"source",x:l.position.x+i*.35,y:l.position.y+o}),t.set(`${l.id}:else`,{nodeId:l.id,handleId:"else",type:"source",x:l.position.x+i*.65,y:l.position.y+o}),t.set(`${l.id}:source`,{nodeId:l.id,handleId:"source",type:"source",x:u,y:l.position.y+o});break;case"addStep":t.set(`${l.id}:target`,{nodeId:l.id,handleId:"target",type:"target",x:u,y:l.position.y});break;default:t.set(`${l.id}:target`,{nodeId:l.id,handleId:"target",type:"target",x:u,y:l.position.y}),t.set(`${l.id}:source`,{nodeId:l.id,handleId:"source",type:"source",x:u,y:l.position.y+o});break}}return t}function hG(e,t){const l=e.sourceHandle||"source",i=`${e.source}:${l}`,o=t.get(i),u=e.targetHandle||"target",d=`${e.target}:${u}`,h=t.get(d);return!o||!h?null:{sourceX:o.x,sourceY:o.y,targetX:h.x,targetY:h.y}}function AA(e,t,l,i,o=16){const u=l-e,d=i-t;if(Math.abs(u)<1)return`M ${e} ${t} L ${l} ${i}`;const h=t+d/2,f=Math.min(o,Math.abs(u)/2,Math.abs(d)/4),p=u>0?1:-1;return[`M ${e} ${t}`,`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 $h=.3,qh=2,jA=.2,mG=.002;function fG(e,t={}){const{fitViewOnMount:l=!0,fitViewPadding:i=.3}=t,[o,u]=r.useState({x:0,y:0,zoom:1}),[d,h]=r.useState(!1),f=r.useRef(null),p=r.useRef(!1),x=r.useRef({x:0,y:0}),g=r.useRef({x:0,y:0}),b=r.useRef(!1),w=r.useCallback(_=>{if(_.length===0)return{minX:0,minY:0,maxX:100,maxY:100};let T=1/0,V=1/0,H=-1/0,L=-1/0;for(const D of _){const B=D.width||280,K=D.height||80;T=Math.min(T,D.position.x),V=Math.min(V,D.position.y),H=Math.max(H,D.position.x+B),L=Math.max(L,D.position.y+K)}return{minX:T,minY:V,maxX:H,maxY:L}},[]),N=r.useCallback(_=>{const T=f.current;if(!T)return;const V=_||e;if(V.length===0)return;const{minX:H,minY:L,maxX:D,maxY:B}=w(V),K=D-H,J=B-L,se=T.clientWidth,le=T.clientHeight;if(se===0||le===0)return;const O=se/(K*(1+i)),q=le/(J*(1+i)),I=Math.min(Math.max(Math.min(O,q),$h),qh),Y=(H+D)/2,X=(L+B)/2;u({x:se/2-Y*I,y:le/2-X*I,zoom:I})},[e,w,i]);r.useEffect(()=>{if(l&&!b.current&&e.length>0){const _=setTimeout(()=>{N(),b.current=!0},50);return()=>clearTimeout(_)}},[l,e.length,N]);const E=r.useCallback(_=>{_.preventDefault();const T=f.current;if(!T)return;const V=T.getBoundingClientRect(),H=_.clientX-V.left,L=_.clientY-V.top;u(D=>{const B=-_.deltaY*mG,K=Math.min(Math.max(D.zoom+B*D.zoom,$h),qh),J=K/D.zoom;return{x:H-(H-D.x)*J,y:L-(L-D.y)*J,zoom:K}})},[]),j=r.useCallback(_=>{_.button===0&&(p.current=!0,h(!0),x.current={x:_.clientX,y:_.clientY},g.current={x:o.x,y:o.y},_.target.setPointerCapture(_.pointerId))},[o.x,o.y]),A=r.useCallback(_=>{if(!p.current)return;const T=_.clientX-x.current.x,V=_.clientY-x.current.y;u(H=>({...H,x:g.current.x+T,y:g.current.y+V}))},[]),Z=r.useCallback(()=>{p.current=!1,h(!1)},[]),M=r.useCallback(()=>{u(_=>{const T=f.current;if(!T)return _;const V=T.clientWidth/2,H=T.clientHeight/2,L=Math.min(_.zoom+jA,qh),D=L/_.zoom;return{x:V-(V-_.x)*D,y:H-(H-_.y)*D,zoom:L}})},[]),S=r.useCallback(()=>{u(_=>{const T=f.current;if(!T)return _;const V=T.clientWidth/2,H=T.clientHeight/2,L=Math.max(_.zoom-jA,$h),D=L/_.zoom;return{x:V-(V-_.x)*D,y:H-(H-_.y)*D,zoom:L}})},[]);return{viewport:o,isPanning:d,containerRef:f,onWheel:E,onPointerDown:j,onPointerMove:A,onPointerUp:Z,fitView:N,zoomIn:M,zoomOut:S}}const pG=20;function xG({containerRef:e,viewport:t,handleMap:l,onConnect:i}){const[o,u]=r.useState(null),[d,h]=r.useState(null),f=r.useRef(null),p=r.useRef(null),x=r.useRef(null),g=r.useCallback((A,Z)=>{var S;const M=(S=e.current)==null?void 0:S.getBoundingClientRect();return M?{x:(A-M.left-t.x)/t.zoom,y:(Z-M.top-t.y)/t.zoom}:{x:A,y:Z}},[e,t]),b=r.useCallback((A,Z,M)=>{const S=M.sourceType==="source"?"target":"source";let _=pG,T=null;for(const V of l.values()){if(V.type!==S||V.nodeId===M.sourceNodeId)continue;const H=V.x-A,L=V.y-Z,D=Math.sqrt(H*H+L*L);D<_&&(_=D,T={nodeId:V.nodeId,handleId:V.handleId})}return T},[l]),w=r.useCallback((A,Z,M,S)=>{var V;A.stopPropagation(),A.preventDefault();const _=g(A.clientX,A.clientY),T={sourceNodeId:Z,sourceHandleId:M,sourceType:S,cursorX:_.x,cursorY:_.y};f.current=T,u(T),(V=e.current)==null||V.setPointerCapture(A.pointerId),x.current=A.pointerId},[g,e]),N=r.useCallback(A=>{if(!f.current)return;const Z=g(A.clientX,A.clientY),M={...f.current,cursorX:Z.x,cursorY:Z.y};f.current=M,u(M);const S=b(Z.x,Z.y,M);p.current=S,h(S)},[g,b]),E=r.useCallback(A=>{var S;const Z=f.current;let M=p.current;if(Z&&!M&&A){const _=g(A.clientX,A.clientY);M=b(_.x,_.y,Z)}Z&&M&&i&&(Z.sourceType==="source"?i(Z.sourceNodeId,Z.sourceHandleId,M.nodeId,M.handleId):i(M.nodeId,M.handleId,Z.sourceNodeId,Z.sourceHandleId)),x.current!==null&&((S=e.current)==null||S.releasePointerCapture(x.current),x.current=null),f.current=null,p.current=null,u(null),h(null)},[i,e,g,b]);return{connectionDrag:o,handleInteractionProps:{onPointerDown:w,activeDropTarget:d},onDragPointerMove:N,onDragPointerUp:E,isDragging:o!==null}}const gG=5;function vG({containerRef:e,viewport:t}){const l=r.useRef(null),i=r.useRef(t);r.useEffect(()=>{i.current=t},[t]);const o=r.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=r.useCallback(h=>{var b;const f=l.current;if(!f)return null;const p=h.clientX-f.startPointerX,x=h.clientY-f.startPointerY;if(!f.isDragging){if(Math.sqrt(p*p+x*x)<gG)return null;f.isDragging=!0,(b=e.current)==null||b.setPointerCapture(h.pointerId)}const g=i.current;return{nodeId:f.nodeId,x:f.startNodeX+p/g.zoom,y:f.startNodeY+x/g.zoom}},[e]),d=r.useCallback(()=>{const h=l.current;if(!h)return!1;const f=h.isDragging;return l.current=null,f},[]);return{onNodePointerDown:o,onNodeDragMove:u,onNodeDragUp:d,isDragging:()=>{var h;return((h=l.current)==null?void 0:h.isDragging)??!1}}}const bG=r.memo(function({edges:t,edgeTypes:l,onInsertStep:i}){return a.jsx("svg",{className:"absolute left-0 top-0 overflow-visible",style:{width:1,height:1,pointerEvents:"none"},children:t.map(({edge:o,path:u,sourceX:d,sourceY:h,targetX:f,targetY:p})=>{const x=l[o.type||"dataFlow"];if(!x)return null;const g={id:o.id,path:u,source:o.source,target:o.target,data:o.data,sourceX:d,sourceY:h,targetX:f,targetY:p,onInsertStep:o.type==="dataFlow"?i:void 0};return a.jsx(x,{...g},o.id)})})}),yG=r.memo(function({viewport:t,gap:l=20,size:i=1,color:o="rgba(255, 255, 255, 0.03)"}){const u=l*t.zoom;return a.jsx("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:`radial-gradient(circle, ${o} ${i}px, transparent ${i}px)`,backgroundSize:`${u}px ${u}px`,backgroundPosition:`${t.x%u}px ${t.y%u}px`}})}),wG=r.memo(function({onZoomIn:t,onZoomOut:l,onFitView:i}){return a.jsxs("div",{className:"absolute bottom-4 left-4 flex flex-col rounded-lg border border-white/[0.06] bg-black/60 shadow-lg backdrop-blur-sm","data-testid":"flow-controls",children:[a.jsx("button",{onClick:t,className:"flex h-8 w-8 items-center justify-center border-b border-white/[0.06] text-neutral-400 transition-colors hover:bg-white/[0.05] hover:text-white","aria-label":"Zoom in",children:a.jsx(Mt,{size:14,weight:"bold"})}),a.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:a.jsx(Oz,{size:14,weight:"bold"})}),a.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:a.jsx(Nz,{size:14,weight:"bold"})})]})}),NA={trigger:"#60a5fa",conditional:"#fb923c",addStep:"rgba(255,255,255,0.1)",step:"rgba(255,255,255,0.2)"},EA=160,MA=100,AG=r.memo(function({nodes:t,viewport:l,containerWidth:i,containerHeight:o}){const{rects:u,viewBox:d,viewportRect:h}=r.useMemo(()=>{if(t.length===0)return{rects:[],viewBox:"0 0 100 100",viewportRect:{x:0,y:0,width:100,height:100}};let f=1/0,p=1/0,x=-1/0,g=-1/0;for(const S of t){const _=S.width||280,T=S.height||80;f=Math.min(f,S.position.x),p=Math.min(p,S.position.y),x=Math.max(x,S.position.x+_),g=Math.max(g,S.position.y+T)}const b=50;f-=b,p-=b,x+=b,g+=b;const w=x-f,N=g-p,E=t.map(S=>({id:S.id,x:S.position.x,y:S.position.y,width:S.width||(S.type==="addStep"?40:280),height:S.height||(S.type==="addStep"?40:S.type==="conditional"?100:80),color:NA[S.type||"step"]||NA.step})),j=-l.x/l.zoom,A=-l.y/l.zoom,Z=i/l.zoom,M=o/l.zoom;return{rects:E,viewBox:`${f} ${p} ${w} ${N}`,viewportRect:{x:j,y:A,width:Z,height:M}}},[t,l,i,o]);return a.jsx("div",{className:"absolute bottom-4 right-4 rounded-lg border border-white/[0.06] bg-black/60 backdrop-blur-sm","data-testid":"flow-minimap",style:{width:EA,height:MA},children:a.jsxs("svg",{width:EA,height:MA,viewBox:d,preserveAspectRatio:"xMidYMid meet",children:[u.map(f=>a.jsx("rect",{x:f.x,y:f.y,width:f.width,height:f.height,fill:f.color,rx:4},f.id)),a.jsx("rect",{x:h.x,y:h.y,width:h.width,height:h.height,fill:"rgba(255, 255, 255, 0.05)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:2,rx:2})]})})}),IZ=r.memo(function({nodes:t,edges:l,selectedNodeId:i,nodeTypes:o,edgeTypes:u,onNodeClick:d,onPaneClick:h,onConnect:f,onNodeDrag:p,onInsertStep:x,fitViewOnMount:g=!0}){const{viewport:b,isPanning:w,containerRef:N,onWheel:E,onPointerDown:j,onPointerMove:A,onPointerUp:Z,fitView:M,zoomIn:S,zoomOut:_}=fG(t,{fitViewOnMount:g}),[T,V]=r.useState({width:0,height:0});r.useEffect(()=>{const F=N.current;if(!F)return;const z=new ResizeObserver(ae=>{const fe=ae[0];fe&&V({width:fe.contentRect.width,height:fe.contentRect.height})});return z.observe(F),()=>z.disconnect()},[N]);const H=r.useMemo(()=>dG(t),[t]),{connectionDrag:L,handleInteractionProps:D,onDragPointerMove:B,onDragPointerUp:K,isDragging:J}=xG({containerRef:N,viewport:b,handleMap:H,onConnect:f}),{onNodePointerDown:se,onNodeDragMove:le,onNodeDragUp:O,isDragging:q}=vG({containerRef:N,viewport:b}),I=r.useMemo(()=>l.map(F=>{const z=hG(F,H);if(!z)return null;const ae=AA(z.sourceX,z.sourceY,z.targetX,z.targetY);return{edge:F,path:ae,sourceX:z.sourceX,sourceY:z.sourceY,targetX:z.targetX,targetY:z.targetY}}).filter(F=>F!==null),[l,H]),Y=r.useCallback(F=>{const z=le(F);if(z){p==null||p(z.nodeId,{x:z.x,y:z.y});return}B(F),A(F)},[le,p,B,A]),X=r.useCallback(F=>{O()&&(W.current=!0),K(F),Z()},[O,K,Z]),k=r.useCallback(F=>{(F.target===F.currentTarget||F.target.dataset.paneTarget)&&j(F)},[j]),U=r.useCallback(F=>{(F.target===F.currentTarget||F.target.dataset.paneTarget)&&(h==null||h())},[h]),W=r.useRef(!1),$=r.useCallback((F,z,ae)=>{if(W.current){queueMicrotask(()=>{W.current=!1}),F.stopPropagation();return}F.stopPropagation(),d==null||d(z,ae)},[d]);return a.jsxs("div",{ref:N,className:"relative h-full w-full overflow-hidden",onWheel:E,onPointerMove:Y,onPointerUp:X,onPointerDown:k,onClick:U,style:{touchAction:"none",cursor:q()?"grabbing":J?"crosshair":w?"grabbing":"default"},"data-testid":"flow-canvas",children:[a.jsx(yG,{viewport:b}),a.jsxs("div",{className:"absolute origin-top-left",style:{transform:`translate(${b.x}px, ${b.y}px) scale(${b.zoom})`,willChange:"transform"},"data-pane-target":"true",children:[a.jsx(bG,{edges:I,edgeTypes:u,onInsertStep:x}),L&&(()=>{const F=`${L.sourceNodeId}:${L.sourceHandleId}`,z=H.get(F);if(!z)return null;const ae=AA(z.x,z.y,L.cursorX,L.cursorY);return a.jsx("svg",{className:"pointer-events-none absolute left-0 top-0 overflow-visible",style:{width:1,height:1},children:a.jsx("path",{d:ae,fill:"none",stroke:"rgba(255,255,255,0.4)",strokeWidth:2,strokeDasharray:"6 4"})})})(),t.map(F=>{const z=o[F.type||"step"];if(!z)return null;const ae=F.type!=="addStep";return a.jsx("div",{className:"absolute",style:{left:F.position.x,top:F.position.y,cursor:q()?"grabbing":"pointer"},"data-testid":`flow-node-${F.id}`,onClick:fe=>$(fe,F.id,F),onPointerDown:ae?fe=>se(fe,F.id,F.position):void 0,children:a.jsx(z,{id:F.id,data:F.data,selected:F.id===i,handleProps:D})},F.id)})]}),a.jsx(wG,{onZoomIn:S,onZoomOut:_,onFitView:M}),a.jsx(AG,{nodes:t,viewport:b,containerWidth:T.width,containerHeight:T.height})]})}),jG={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"},NG={webhook:"#60a5fa",schedule:"#a78bfa",event:"#fbbf24",manual:"#34d399"},Pa=r.memo(function({nodeId:t,handleId:l,type:i,position:o,left:u,colorClass:d="bg-white/30",handleProps:h}){var b,w;const f=((b=h==null?void 0:h.activeDropTarget)==null?void 0:b.nodeId)===t&&((w=h==null?void 0:h.activeDropTarget)==null?void 0:w.handleId)===l,p=r.useCallback(N=>{h==null||h.onPointerDown(N,t,l,i)},[h,t,l,i]),x=o==="top"?"-top-1.5":"-bottom-1.5",g=u??"50%";return a.jsx("div",{className:`
|
|
82
|
-
absolute ${x} h-3 w-3 -translate-x-1/2 rounded-full border-2 border-[#0a0a0a]
|
|
83
|
-
${d}
|
|
84
|
-
transition-transform duration-100
|
|
85
|
-
${f?"scale-150 ring-2 ring-white/40":""}
|
|
86
|
-
${h?"cursor-crosshair":""}
|
|
87
|
-
`,style:{left:g},onPointerDown:h?p:void 0,"data-handle":!0,"data-handle-node":t,"data-handle-id":l,"data-handle-type":i})}),EG={webhook:$1,schedule:z1,event:Af,manual:Rn},MG={webhook:"Webhook",schedule:"Schedule",event:"Event",manual:"Manual"},SG=r.memo(function({id:t,data:l,selected:i,handleProps:o}){const u=l,d=EG[u.triggerType]||$1,h=NG[u.triggerType]||"#60a5fa",f=MG[u.triggerType]||"Trigger";return a.jsxs("div",{className:`
|
|
88
|
-
relative w-[280px] rounded-xl border-2 bg-[#0a0a0a] px-4 py-3
|
|
89
|
-
transition-all duration-150
|
|
90
|
-
${i?"ring-2 ring-white/20 shadow-lg shadow-white/5":"hover:border-white/20"}
|
|
91
|
-
`,style:{borderColor:i?h:`${h}40`},children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg",style:{backgroundColor:`${h}15`},children:a.jsx(d,{size:20,weight:"fill",style:{color:h}})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"text-[11px] font-medium uppercase tracking-wider",style:{color:h},children:[f," Trigger"]}),a.jsx("div",{className:"truncate text-sm font-medium text-white",children:u.name||"Untitled automation"})]})]}),u.sampleFields&&u.sampleFields.length>0&&a.jsxs("div",{className:"mt-1.5 text-[10px] text-neutral-500",children:["Emits ",u.sampleFields.length," ",u.sampleFields.length===1?"field":"fields"]}),a.jsx(Pa,{nodeId:t,handleId:"source",type:"source",position:"bottom",handleProps:o})]})}),BZ=r.createContext({overlayRun:null,getStepResult:()=>{}}),ZG=BZ.Provider;function PZ(){return r.useContext(BZ)}const CG={agent_prompt:on,run_agent:on,a2a_call:Jr,save_contact:r$,update_contact:n$,log_contact_event:Fz,webhook_forward:l$,transform_data:Bz,create_task:jf,take_screenshot:Am,generate_chart:bE},HG=r.memo(function({id:t,data:l,selected:i,handleProps:o}){const u=l,d=CG[u.stepType]||on,h=jG[u.stepType]||"#818cf8",f=p0[u.stepType]||u.stepType,{overlayRun:p,getStepResult:x}=PZ(),g=p?x(u.stepId):void 0;return a.jsxs("div",{className:`
|
|
92
|
-
relative w-[280px] rounded-xl border bg-[#0a0a0a] px-4 py-3
|
|
93
|
-
transition-all duration-150
|
|
94
|
-
${i?"border-white/30 ring-2 ring-white/10 shadow-lg shadow-white/5":"border-white/[0.08] hover:border-white/20"}
|
|
95
|
-
`,children:[a.jsx(Pa,{nodeId:t,handleId:"target",type:"target",position:"top",handleProps:o}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${h}15`},children:a.jsx(d,{size:18,weight:"duotone",style:{color:h}})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("div",{className:"text-[10px] font-medium uppercase tracking-wider text-neutral-500",children:f}),a.jsx("div",{className:"truncate text-sm text-white",children:u.label||f})]}),u.outputFields.length>0&&a.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[u.outputFields.slice(0,2).map(b=>a.jsx("span",{className:"rounded bg-white/[0.06] px-1.5 py-0.5 font-mono text-[9px] text-neutral-500",children:b},b)),u.outputFields.length>2&&a.jsxs("span",{className:"text-[9px] text-neutral-600",children:["+",u.outputFields.length-2]})]})]}),u.inputSources&&u.inputSources.length>0&&a.jsxs("div",{className:"mt-1.5 flex items-center gap-1 text-[9px] text-neutral-600",children:[a.jsx(pz,{size:10,className:"shrink-0 text-neutral-600"}),a.jsxs("span",{className:"truncate",children:["from"," ",u.inputSources.map(b=>`${b.label}(${b.count})`).join(", ")]})]}),g&&a.jsxs("div",{className:"mt-2 border-t border-white/[0.06] pt-2",children:[a.jsxs("div",{className:"flex items-center gap-1.5",children:[g.status==="completed"&&a.jsx(v0,{size:12,className:"text-emerald-400",weight:"fill"}),g.status==="failed"&&a.jsx(os,{size:12,className:"text-red-400",weight:"fill"}),g.status==="running"&&a.jsx(PM,{size:12,className:"animate-spin text-blue-400",weight:"bold"}),a.jsx("span",{className:`text-[10px] ${g.status==="completed"?"text-emerald-400":g.status==="failed"?"text-red-400":"text-blue-400"}`,children:g.status})]}),g.status==="completed"&&g.text_output&&a.jsxs("p",{className:"mt-1 truncate text-[9px] text-neutral-500",children:[g.text_output.slice(0,60),g.text_output.length>60?"...":""]}),g.status==="completed"&&g.output&&!g.text_output&&a.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:Object.entries(g.output).slice(0,2).map(([b,w])=>a.jsxs("span",{className:"font-mono text-[9px] text-neutral-500",children:[b,"=",String(w).slice(0,20)]},b))}),g.status==="failed"&&g.error&&a.jsx("p",{className:"mt-1 truncate text-[9px] text-red-400/80",children:g.error.slice(0,60)})]}),a.jsx(Pa,{nodeId:t,handleId:"source",type:"source",position:"bottom",handleProps:o})]})}),VG={equals:"=",not_equals:"!=",contains:"contains",not_contains:"!contains",greater_than:">",less_than:"<",exists:"exists",not_exists:"!exists"},_G=r.memo(function({id:t,data:l,selected:i,handleProps:o}){const u=l,{condition:d}=u,h=VG[d.operator]||d.operator,f=d.field?`${d.field} ${h}${d.value?` ${d.value}`:""}`:"No condition set";return a.jsxs("div",{className:`
|
|
96
|
-
relative w-[280px] rounded-xl border bg-[#0a0a0a] px-4 py-3
|
|
97
|
-
transition-all duration-150
|
|
98
|
-
${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"}
|
|
99
|
-
`,children:[a.jsx(Pa,{nodeId:t,handleId:"target",type:"target",position:"top",handleProps:o}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-orange-500/10",children:a.jsx(eM,{size:18,weight:"duotone",className:"text-orange-400"})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("div",{className:"text-[10px] font-medium uppercase tracking-wider text-orange-400",children:"Conditional"}),a.jsx("div",{className:"truncate text-sm text-white/70 font-mono text-xs",children:f})]})]}),a.jsx(Pa,{nodeId:t,handleId:"then",type:"source",position:"bottom",left:"35%",colorClass:"bg-emerald-400",handleProps:o}),a.jsx("div",{className:"pointer-events-none absolute text-[9px] font-medium text-emerald-400",style:{bottom:-16,left:"35%",transform:"translateX(-50%)"},children:"Then"}),a.jsx(Pa,{nodeId:t,handleId:"else",type:"source",position:"bottom",left:"65%",colorClass:"bg-amber-400",handleProps:o}),a.jsx("div",{className:"pointer-events-none absolute text-[9px] font-medium text-amber-400",style:{bottom:-16,left:"65%",transform:"translateX(-50%)"},children:"Else"})]})}),TG=r.memo(function({id:t,data:l,handleProps:i}){return a.jsxs("div",{className:"group relative flex h-10 w-[200px] items-center justify-center",children:[a.jsx(Pa,{nodeId:t,handleId:"target",type:"target",position:"top",handleProps:i}),a.jsx("button",{className:"flex h-8 w-8 items-center justify-center rounded-full border border-dashed border-white/10 bg-white/[0.02] text-neutral-600 transition-all hover:border-white/20 hover:bg-white/[0.05] hover:text-white","data-testid":"add-step-button",children:a.jsx(Mt,{size:14,weight:"bold"})})]})}),LG=r.memo(function(t){const{path:l,source:i,target:o,data:u,sourceX:d,sourceY:h,targetX:f,targetY:p,onInsertStep:x}=t,[g,b]=r.useState(!1),{overlayRun:w,getStepResult:N}=PZ(),E=u==null?void 0:u.branchType;let j;if(w){const T=N(o);(T==null?void 0:T.status)==="completed"?j="rgba(52, 211, 153, 0.5)":(T==null?void 0:T.status)==="failed"?j="rgba(248, 113, 113, 0.5)":(T==null?void 0:T.status)==="running"?j="rgba(96, 165, 250, 0.5)":j="rgba(255, 255, 255, 0.12)"}else j=E==="then"?"rgba(52, 211, 153, 0.3)":E==="else"?"rgba(251, 191, 36, 0.3)":"rgba(255, 255, 255, 0.2)";const A=r.useCallback(T=>{T.stopPropagation(),x==null||x(i,o)},[x,i,o]),Z=x&&d!=null&&h!=null&&f!=null&&p!=null,M=Z?(d+f)/2:0,S=Z?(h+p)/2:0,_=24;return a.jsxs("g",{onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:[a.jsx("path",{d:l,fill:"none",stroke:"transparent",strokeWidth:20,style:{pointerEvents:"stroke"}}),a.jsx("path",{d:l,fill:"none",stroke:j,strokeWidth:2,style:{pointerEvents:"none"}}),Z&&g&&a.jsx("foreignObject",{x:M-_/2,y:S-_/2,width:_,height:_,style:{overflow:"visible",pointerEvents:"all"},children:a.jsx("button",{type:"button",onClick:A,className:"flex h-6 w-6 items-center justify-center rounded-full border border-white/20 bg-zinc-800 text-xs text-white/70 shadow-lg transition-all hover:border-white/40 hover:bg-zinc-700 hover:text-white",title:"Insert step",children:"+"})})]})}),kG=r.memo(function(t){const{path:l}=t;return a.jsx("path",{d:l,fill:"none",stroke:"rgba(255, 255, 255, 0.15)",strokeWidth:1.5,strokeDasharray:"6 4"})}),RG=r.memo(function({nodes:t,edges:l,selectedNodeId:i,onNodeClick:o,onPaneClick:u,onConnect:d,onNodeDrag:h,onInsertStep:f}){const p=r.useMemo(()=>({trigger:SG,step:HG,conditional:_G,addStep:TG}),[]),x=r.useMemo(()=>({dataFlow:LG,addStepEdge:kG}),[]);return a.jsx("div",{className:"h-full w-full","data-testid":"flow-canvas-wrapper",children:a.jsx(IZ,{nodes:t,edges:l,selectedNodeId:i,nodeTypes:p,edgeTypes:x,onNodeClick:o,onPaneClick:u,onConnect:d,onNodeDrag:h,onInsertStep:f,fitViewOnMount:!0})})});function DG({name:e,onNameChange:t,description:l,onDescriptionChange:i,onSave:o,onRun:u,saving:d,isNew:h}){const f=cn(),p=()=>{f("/automations")};return a.jsxs("div",{className:"flex h-14 shrink-0 items-center gap-3 border-b border-white/[0.06] px-4",children:[a.jsx("button",{onClick:p,className:"flex h-8 w-8 items-center justify-center rounded-lg text-neutral-500 transition-colors hover:bg-white/[0.05] hover:text-white","data-testid":"flow-builder-back",children:a.jsx(ls,{size:18})}),a.jsx("div",{className:"h-5 w-px bg-white/[0.06]"}),a.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[a.jsx("input",{type:"text",value:e,onChange:x=>t(x.target.value),placeholder:"Automation name","data-testid":"flow-builder-name",className:"min-w-0 flex-1 bg-transparent text-sm font-medium text-white placeholder-gray-600 focus:outline-none"}),a.jsx("input",{type:"text",value:l,onChange:x=>i(x.target.value),placeholder:"Description (optional)",className:"hidden min-w-0 flex-1 bg-transparent text-sm text-neutral-400 placeholder-gray-700 focus:outline-none md:block"})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[u&&!h&&a.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:[a.jsx(Nf,{size:12,weight:"fill"}),"Run"]}),a.jsxs("button",{onClick:o,disabled:d,"data-testid":"flow-builder-save",className:"flex items-center gap-1.5 rounded-lg bg-white px-3 py-1.5 text-xs font-medium text-black transition-all hover:bg-gray-200 active:scale-[0.98] disabled:opacity-50",children:[a.jsx(Hz,{size:14,weight:"bold"}),d?"Saving...":h?"Create":"Save"]})]})]})}function OG({onSampleParsed:e,existingSamplePayload:t}){const[l,i]=r.useState(t?"history":"paste"),[o,u]=r.useState(""),[d,h]=r.useState(null),[f,p]=r.useState([]),[x,g]=r.useState(null);function b(j){if(u(j),h(null),p([]),g(null),!!j.trim())try{const A=JSON.parse(j);if(typeof A!="object"||A===null||Array.isArray(A)){h("Must be a JSON object (not an array or primitive)");return}const{fields:Z,payload:M}=Oi(A);p(Z),g(M)}catch{h("Invalid JSON")}}function w(){x&&f.length>0&&e(f,x)}function N(){if(!t)return;const{fields:j,payload:A}=Oi(t);e(j,A)}const E=[{id:"paste",label:"Paste JSON",icon:Az},...t?[{id:"history",label:"Previous data",icon:Y0}]:[]];return a.jsxs("div",{className:"space-y-3",children:[E.length>1&&a.jsx("div",{className:"flex gap-1 rounded-lg bg-white/[0.03] p-0.5",children:E.map(({id:j,label:A,icon:Z})=>a.jsxs("button",{onClick:()=>i(j),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===j?"bg-white/[0.08] text-white":"text-neutral-500 hover:text-neutral-400"}`,children:[a.jsx(Z,{size:13}),A]},j))}),l==="paste"&&a.jsxs("div",{className:"space-y-2",children:[a.jsx("textarea",{value:o,onChange:j=>b(j.target.value),placeholder:`{
|
|
100
|
-
"email": "jane@example.com",
|
|
101
|
-
"name": "Jane Smith"
|
|
102
|
-
}`,className:"h-32 w-full resize-none rounded-lg border border-white/10 bg-white/[0.03] px-3 py-2 font-mono text-xs text-white placeholder:text-neutral-700 focus:border-white/20 focus:outline-none"}),d&&a.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] text-red-400",children:[a.jsx(Zf,{size:12}),d]}),f.length>0&&a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"flex flex-wrap gap-1",children:[f.slice(0,12).map(j=>a.jsx("span",{className:"rounded bg-white/[0.06] px-1.5 py-0.5 font-mono text-[10px] text-neutral-400",children:j},j)),f.length>12&&a.jsxs("span",{className:"px-1 text-[10px] text-neutral-600",children:["+",f.length-12," more"]})]}),a.jsxs("button",{onClick:w,className:"flex w-full items-center justify-center gap-1.5 rounded-lg bg-white/[0.08] px-3 py-2 text-xs font-medium text-white transition-colors hover:bg-white/[0.12]",children:[a.jsx(Qr,{size:14}),"Use these ",f.length," ",f.length===1?"field":"fields"]})]})]}),l==="history"&&t&&a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"rounded-lg border border-white/[0.06] bg-white/[0.02] p-3",children:[a.jsx("p",{className:"mb-2 text-[10px] uppercase tracking-wider text-neutral-500",children:"Previously captured data"}),a.jsx("div",{className:"flex flex-wrap gap-1",children:Object.keys(Oi(t).payload).slice(0,12).map(j=>a.jsx("span",{className:"rounded bg-white/[0.06] px-1.5 py-0.5 font-mono text-[10px] text-neutral-400",children:j},j))})]}),a.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:[a.jsx(Qr,{size:14}),"Reuse this data"]})]})]})}const UZ=[{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 FG(e){return UZ.some(t=>t.seconds===e)}const zG=[{type:"webhook",label:"Webhook",description:"Triggered by incoming data",icon:$1},{type:"schedule",label:"Schedule",description:"Runs on a timer",icon:z1},{type:"event",label:"Event",description:"Listens for system events",icon:Af},{type:"manual",label:"Manual",description:"Run on demand",icon:Rn}];function $G({data:e,onChange:t}){var d;const l=!FG(e.cooldownSeconds),[i,o]=r.useState(!1),u=(((d=e.sampleFields)==null?void 0:d.length)??0)>0;return a.jsxs("div",{className:"space-y-5",children:[a.jsxs("div",{children:[a.jsx("label",{className:"mb-2 block text-xs uppercase tracking-wider text-neutral-400",children:"Trigger Type"}),a.jsx("div",{className:"grid grid-cols-2 gap-2",children:zG.map(({type:h,label:f,description:p,icon:x})=>a.jsxs("button",{onClick:()=>t({triggerType:h,triggerConfig:{}}),"data-testid":`flow-trigger-type-${h}`,className:`flex flex-col items-start rounded-lg border p-3 text-left transition-all ${e.triggerType===h?"border-white/20 bg-white/[0.05]":"border-white/[0.06] bg-white/[0.02] hover:border-white/10"}`,children:[a.jsx(x,{size:18,weight:e.triggerType===h?"fill":"regular",className:e.triggerType===h?"text-white":"text-neutral-500"}),a.jsx("span",{className:`mt-1.5 text-xs font-medium ${e.triggerType===h?"text-white":"text-neutral-400"}`,children:f}),a.jsx("span",{className:"mt-0.5 text-[10px] text-neutral-600",children:p})]},h))})]}),e.triggerType==="webhook"&&a.jsxs("div",{className:"space-y-3",children:[u&&a.jsxs("div",{className:"rounded-lg border border-emerald-500/20 bg-emerald-500/[0.05] p-3",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx(v0,{size:14,className:"text-emerald-400",weight:"fill"}),a.jsxs("span",{className:"text-xs font-medium text-emerald-400",children:[e.sampleFields.length," ",e.sampleFields.length===1?"field":"fields"," loaded"]})]}),a.jsx("button",{onClick:()=>t({sampleFields:[],samplePayload:null}),className:"text-neutral-500 hover:text-neutral-400",children:a.jsx(La,{size:14})})]}),a.jsxs("div",{className:"mt-2 flex flex-wrap gap-1",children:[e.sampleFields.slice(0,8).map(h=>a.jsx("span",{className:"rounded bg-white/[0.06] px-1.5 py-0.5 font-mono text-[10px] text-neutral-400",children:h},h)),e.sampleFields.length>8&&a.jsxs("span",{className:"px-1 text-[10px] text-neutral-600",children:["+",e.sampleFields.length-8," more"]})]})]}),a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>o(!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:[a.jsx("span",{children:u?"Change sample data":"Load sample data"}),a.jsx(Ya,{size:12,className:`transition-transform ${i?"rotate-180":""}`})]}),i&&a.jsx("div",{className:"mt-2",children:a.jsx(OG,{existingSamplePayload:e.samplePayload,onSampleParsed:(h,f)=>{t({sampleFields:h,samplePayload:f}),o(!1)}})})]})]}),e.triggerType==="schedule"&&a.jsxs("div",{children:[a.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Schedule"}),a.jsx(kS,{value:e.triggerConfig.cron||"",onChange:h=>t({triggerConfig:{...e.triggerConfig,cron:h}})})]}),e.triggerType==="event"&&a.jsxs("div",{children:[a.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"System Event"}),a.jsxs("select",{value:e.triggerConfig.event_name||"",onChange:h=>t({triggerConfig:{...e.triggerConfig,event_name:h.target.value}}),className:"w-full rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white focus:border-white/20 focus:outline-none",children:[a.jsx("option",{value:"",className:"bg-black",children:"Select event..."}),a.jsx("option",{value:"task_completed",className:"bg-black",children:"Task Completed"}),a.jsx("option",{value:"agent_error",className:"bg-black",children:"Agent Error"}),a.jsx("option",{value:"contact_created",className:"bg-black",children:"Contact Created"})]})]}),(e.triggerType==="webhook"||e.triggerType==="event")&&a.jsxs("div",{children:[a.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Run at most every"}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("select",{value:l?-1:e.cooldownSeconds,onChange:h=>{const f=parseInt(h.target.value,10);t(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:[UZ.map(h=>a.jsx("option",{value:h.seconds,className:"bg-black",children:h.label},h.seconds)),a.jsx("option",{value:-1,className:"bg-black",children:"Custom"})]}),l&&a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("input",{type:"number",value:e.cooldownSeconds,onChange:h=>t({cooldownSeconds:parseInt(h.target.value,10)||0}),min:0,className:"w-20 rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white focus:border-white/20 focus:outline-none"}),a.jsx("span",{className:"text-xs text-neutral-500",children:"seconds"})]})]}),a.jsx("p",{className:"mt-1 text-[10px] text-neutral-600",children:"Prevents this automation from running too often"})]})]})}function Gr({value:e,onChange:t,placeholder:l,fieldGroups:i,mode:o="path",className:u}){const[d,h]=r.useState(!1),f=r.useRef(null),p=r.useRef(null);r.useEffect(()=>{if(!d)return;const b=w=>{f.current&&!f.current.contains(w.target)&&h(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[d]);const x=b=>{t(o==="template"?`{{${b}}}`:b),h(!1)},g=i.some(b=>b.fields.length>0);return a.jsxs("div",{ref:f,className:"relative",children:[a.jsxs("div",{className:"flex",children:[a.jsx("input",{ref:p,type:"text",value:e,onChange:b=>t(b.target.value),placeholder: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:()=>g&&h(!0)}),g&&a.jsx("button",{type:"button",onClick:()=>h(!d),className:"absolute right-0 top-0 bottom-0 px-2 text-neutral-500 hover:text-neutral-300 transition-colors",tabIndex:-1,children:a.jsx(Ya,{size:12})})]}),d&&g&&a.jsx("div",{className:"absolute z-50 top-full left-0 right-0 mt-1 max-h-60 overflow-y-auto border border-white/10 rounded-lg bg-[#1a1a1a] shadow-xl",children:i.map(b=>b.fields.length===0?null:a.jsxs("div",{children:[a.jsx("div",{className:"px-3 py-1.5 text-[10px] uppercase tracking-wider text-neutral-500 font-medium bg-white/[0.02] sticky top-0",children:b.label}),b.fields.map(w=>a.jsxs("button",{type:"button",onClick:()=>x(w.path),className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs hover:bg-white/[0.06] transition-colors text-left",children:[a.jsx("span",{className:"font-mono text-neutral-300",children:w.name}),w.value&&a.jsx("span",{className:"text-neutral-600 truncate",children:w.value})]},w.path))]},b.prefix))})]})}function km({fieldGroups:e,textareaRef:t,onInsert:l}){const[i,o]=r.useState(!1),u=r.useRef(null);r.useEffect(()=>{if(!i)return;const f=p=>{u.current&&!u.current.contains(p.target)&&o(!1)};return document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)},[i]);const d=f=>{const p=t.current;if(!p)return;const x=p.selectionStart??p.value.length,g=p.selectionEnd??x,b=p.value,w=`{{${f}}}`,N=b.substring(0,x)+w+b.substring(g);l(N),o(!1),requestAnimationFrame(()=>{p.focus();const E=x+w.length;p.setSelectionRange(E,E)})};return e.some(f=>f.fields.length>0)?a.jsxs("div",{ref:u,className:"relative inline-block",children:[a.jsx("button",{type:"button",onClick:()=>o(!i),className:"text-[10px] text-neutral-500 hover:text-neutral-300 transition-colors",children:"+ Insert field"}),i&&a.jsx("div",{className:"absolute z-50 top-full left-0 mt-1 w-64 max-h-52 overflow-y-auto border border-white/10 rounded-lg bg-[#1a1a1a] shadow-xl",children:e.map(f=>f.fields.length===0?null:a.jsxs("div",{children:[a.jsx("div",{className:"px-3 py-1.5 text-[10px] uppercase tracking-wider text-neutral-500 font-medium bg-white/[0.02] sticky top-0",children:f.label}),f.fields.map(p=>a.jsxs("button",{type:"button",onClick:()=>d(p.path),className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs hover:bg-white/[0.06] transition-colors text-left",children:[a.jsx("span",{className:"font-mono text-neutral-300",children:p.name}),p.value&&a.jsx("span",{className:"text-neutral-600 truncate",children:p.value})]},p.path))]},f.prefix))})]}):null}function qG({config:e,onChange:t,previousSteps:l,sampleFields:i,samplePayload:o}){const[u,d]=r.useState([]),h=r.useRef(null),f=r.useRef(null);r.useEffect(()=>{me("/api/agents").then(A=>d(A.data)).catch(()=>{})},[]);const p=e.agent_id||"",x=e.agent_name||"",g=e.task_prompt||"",b=e.image_url||"",w=I1({sampleFields:i,samplePayload:o,previousSteps:l}),N=r.useMemo(()=>w.flatMap(A=>A.fields.map(Z=>Z.path)),[w]),E=r.useMemo(()=>{if(!b||i.length===0)return[];const A=$S(b);return VI(A,N)},[b,i,N]),j=A=>{const Z=u.find(M=>M.id===A);t({...e,agent_id:A,agent_name:(Z==null?void 0:Z.name)||""})};return a.jsxs("div",{className:"space-y-3","data-testid":"agent-prompt-config",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent"}),a.jsxs("select",{value:p,onChange:A=>j(A.target.value),"data-testid":"agent-prompt-agent-select",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white focus:border-white/20 focus:outline-none",children:[a.jsx("option",{value:"",className:"bg-black",children:"Select an agent..."}),u.map(A=>a.jsxs("option",{value:A.id,className:"bg-black",children:[A.name," (",A.role,")"]},A.id))]}),x&&p&&a.jsxs("p",{className:"text-[10px] text-neutral-600 mt-1",children:["Selected: ",x]})]}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between mb-1",children:[a.jsxs("label",{className:"text-xs text-neutral-400",children:["Task Prompt",a.jsxs("span",{className:"text-neutral-600 ml-1",children:["Use ","{{trigger.field}}"," or ","{{step_1.field}}"," for variables"]})]}),a.jsx(km,{fieldGroups:w,textareaRef:h,onInsert:A=>t({...e,task_prompt:A})})]}),a.jsx("textarea",{ref:h,value:g,onChange:A=>t({...e,task_prompt:A.target.value}),placeholder:"Research the company {{trigger.company_name}} and create a summary.",rows:4,"data-testid":"agent-prompt-textarea",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none resize-y"})]}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between mb-1",children:[a.jsxs("label",{className:"text-xs text-neutral-400",children:["Image URL",a.jsx("span",{className:"text-neutral-600 ml-1",children:"(optional)"})]}),a.jsx(km,{fieldGroups:w,textareaRef:f,onInsert:A=>t({...e,image_url:A})})]}),a.jsx("input",{ref:f,type:"text",value:b,onChange:A=>t({...e,image_url:A.target.value}),placeholder:"{{trigger.photo_url}}","data-testid":"agent-prompt-image-url",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"}),E.length>0&&a.jsxs("div",{className:"flex items-start gap-1.5 mt-1.5 p-1.5 bg-amber-500/10 border border-amber-500/20 rounded",children:[a.jsx(Zf,{size:12,className:"text-amber-400 mt-0.5 flex-shrink-0"}),a.jsxs("p",{className:"text-[10px] text-amber-400",children:["Unknown ",E.length===1?"field":"fields",":"," ",E.map(A=>`{{${A}}}`).join(", "),"."," ","This may not resolve at runtime."]})]})]})]})}const IG=[{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 BG({config:e,onChange:t,previousSteps:l,sampleFields:i,samplePayload:o}){const u=e.mappings||[],d=(x,g,b)=>{const w=u.map((N,E)=>E===x?{...N,[g]:b||void 0}:N);t({...e,mappings:w})},h=()=>{t({...e,mappings:[...u,{target:"",source:""}]})},f=x=>{t({...e,mappings:u.filter((g,b)=>b!==x)})},p=I1({sampleFields:i,samplePayload:o,previousSteps:l});return a.jsxs("div",{className:"space-y-3","data-testid":"transform-data-config",children:[a.jsx("p",{className:"text-xs text-neutral-500",children:"Map and transform data from previous steps. Pick a source field or type a path manually."}),u.map((x,g)=>a.jsxs("div",{className:"grid grid-cols-[1fr_1fr_auto_auto] gap-2 items-end",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Source"}),a.jsx(Gr,{value:x.source||"",onChange:b=>d(g,"source",b),placeholder:"trigger.email",fieldGroups:p})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Target Field"}),a.jsx("input",{type:"text",value:x.target||"",onChange:b=>d(g,"target",b.target.value),placeholder:"formatted_name",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Transform"}),a.jsx("select",{value:x.transform||"",onChange:b=>d(g,"transform",b.target.value),className:"px-2 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white focus:border-white/20 focus:outline-none",children:IG.map(({value:b,label:w})=>a.jsx("option",{value:b,className:"bg-black",children:w},b))})]}),a.jsx("button",{onClick:()=>f(g),className:"p-2 text-neutral-600 hover:text-red-400 transition-colors",children:a.jsx(Yt,{size:14})})]},g)),a.jsxs("button",{onClick:h,className:"flex items-center gap-1 text-xs text-neutral-400 hover:text-white transition-colors",children:[a.jsx(Mt,{size:12,weight:"bold"}),"Add Mapping"]})]})}function PG({stepType:e,config:t,onChange:l,previousSteps:i,sampleFields:o,samplePayload:u}){const d=I1({sampleFields:o,samplePayload:u,previousSteps:i});return e==="save_contact"?a.jsxs("div",{className:"space-y-3",children:[a.jsx("p",{className:"text-xs text-neutral-500",children:"Map incoming data to contact fields."}),["name","email","phone","company"].map(h=>a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1 capitalize",children:h}),a.jsx(Gr,{value:t[h]||"",onChange:f=>l({...t,[h]:f}),placeholder:`trigger.${h}`,fieldGroups:d})]},h)),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Tags"}),a.jsx("input",{type:"text",value:t.tags||"",onChange:h=>l({...t,tags:h.target.value}),placeholder:"tag1, tag2",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"}),a.jsx("p",{className:"text-[10px] text-neutral-600 mt-1",children:"Comma-separated tags"})]})]}):e==="update_contact"?a.jsxs("div",{className:"space-y-3",children:[a.jsx("p",{className:"text-xs text-neutral-500",children:"Find a contact and update their fields."}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Find by email"}),a.jsx(Gr,{value:t.lookup_email||"",onChange:h=>l({...t,lookup_email:h}),placeholder:"trigger.email",fieldGroups:d})]}),["name","phone","company"].map(h=>a.jsxs("div",{children:[a.jsxs("label",{className:"text-xs text-neutral-400 block mb-1 capitalize",children:["New ",h]}),a.jsx(Gr,{value:t[h]||"",onChange:f=>l({...t,[h]:f}),placeholder:`trigger.${h}`,fieldGroups:d})]},h))]}):a.jsxs("div",{className:"space-y-3",children:[a.jsx("p",{className:"text-xs text-neutral-500",children:"Log an event to a contact's timeline."}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Contact email"}),a.jsx(Gr,{value:t.contact_email||"",onChange:h=>l({...t,contact_email:h}),placeholder:"trigger.email",fieldGroups:d})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Event type"}),a.jsx("input",{type:"text",value:t.event_type||"",onChange:h=>l({...t,event_type:h.target.value}),placeholder:"form_submitted",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description"}),a.jsx("input",{type:"text",value:t.description||"",onChange:h=>l({...t,description:h.target.value}),placeholder:"Filled out the contact form",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"})]})]})}function UG({config:e,onChange:t,previousSteps:l,sampleFields:i,samplePayload:o}){const u=r.useRef(null),d=I1({sampleFields:i,samplePayload:o,previousSteps:l});return a.jsxs("div",{className:"space-y-3","data-testid":"webhook-forward-config",children:[a.jsx("p",{className:"text-xs text-neutral-500",children:"Forward data to an external URL."}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between mb-1",children:[a.jsx("label",{className:"text-xs text-neutral-400",children:"URL"}),a.jsx(km,{fieldGroups:d,textareaRef:u,onInsert:h=>t({...e,url:h})})]}),a.jsx("input",{ref:u,type:"text",value:e.url||"",onChange:h=>t({...e,url:h.target.value}),placeholder:"https://example.com/webhook",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Method"}),a.jsxs("select",{value:e.method||"POST",onChange:h=>t({...e,method:h.target.value}),className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white focus:border-white/20 focus:outline-none",children:[a.jsx("option",{value:"POST",className:"bg-black",children:"POST"}),a.jsx("option",{value:"PUT",className:"bg-black",children:"PUT"}),a.jsx("option",{value:"PATCH",className:"bg-black",children:"PATCH"})]})]}),a.jsx("div",{children:a.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[a.jsx("input",{type:"checkbox",checked:e.include_all_data??!0,onChange:h=>t({...e,include_all_data:h.target.checked}),className:"rounded border-white/20 bg-white/[0.03]"}),a.jsx("span",{className:"text-xs text-neutral-400",children:"Include all trigger and step data"})]})})]})}const GG=[{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 YG({config:e,onChange:t,previousSteps:l,sampleFields:i,samplePayload:o}){const u=e.condition||{field:"",operator:"equals",value:""},d=!["exists","not_exists"].includes(u.operator),h=I1({sampleFields:i,samplePayload:o,previousSteps:l}),f=(p,x)=>{const g={...u,[p]:x};t({...e,condition:g})};return a.jsxs("div",{className:"space-y-3","data-testid":"condition-form",children:[a.jsx("p",{className:"text-xs text-neutral-500",children:"Branch execution based on a condition. Pick a field or type a path manually."}),a.jsxs("div",{children:[a.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Field"}),a.jsx(Gr,{value:u.field,onChange:p=>f("field",p),placeholder:"trigger.country",fieldGroups:h})]}),a.jsxs("div",{children:[a.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Operator"}),a.jsx("select",{value: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:GG.map(({value:p,label:x})=>a.jsx("option",{value:p,className:"bg-black",children:x},p))})]}),d&&a.jsxs("div",{children:[a.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Value"}),a.jsx("input",{type:"text",value: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 KG=Object.entries(p0);function XG({data:e,node:t,onChange:l,nodes:i}){const o=QG(t,i),u=JG(i),d=WG(i),h=x=>{const g={id:e.stepId,action_type:x,action_config:{}};l({stepType:x,label:p0[x]||x,actionConfig:{},outputFields:G0(g)})},f=x=>{const g={id:e.stepId,action_type:e.stepType,action_config:x};l({actionConfig:x,outputFields:G0(g)})},p=x=>{l({label:x})};return a.jsxs("div",{className:"space-y-5",children:[a.jsxs("div",{children:[a.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Label"}),a.jsx("input",{type:"text",value:e.label,onChange:x=>p(x.target.value),placeholder:"Step label",className:"w-full rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Step Type"}),a.jsx("select",{value:e.stepType,onChange:x=>h(x.target.value),"data-testid":"flow-step-type",className:"w-full rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white focus:border-white/20 focus:outline-none",children:KG.map(([x,g])=>a.jsx("option",{value:x,className:"bg-black",children:g},x))}),a.jsx("p",{className:"mt-1 text-[10px] text-neutral-600",children:HI[e.stepType]||""})]}),a.jsxs("div",{className:"border-t border-white/[0.06] pt-4",children:[(e.stepType==="agent_prompt"||e.stepType==="run_agent")&&a.jsx(qG,{config:e.actionConfig,onChange:f,previousSteps:o,sampleFields:u,samplePayload:d}),e.stepType==="transform_data"&&a.jsx(BG,{config:e.actionConfig,onChange:f,previousSteps:o,sampleFields:u,samplePayload:d}),e.stepType==="conditional"&&a.jsx(YG,{config:e.actionConfig,onChange:f,previousSteps:o,sampleFields:u,samplePayload:d}),(e.stepType==="save_contact"||e.stepType==="update_contact"||e.stepType==="log_contact_event")&&a.jsx(PG,{stepType:e.stepType,config:e.actionConfig,onChange:f,previousSteps:o,sampleFields:u}),e.stepType==="webhook_forward"&&a.jsx(UG,{config:e.actionConfig,onChange:f,previousSteps:o,sampleFields:u})]})]})}function QG(e,t){const l=t.filter(o=>(o.type==="step"||o.type==="conditional")&&o.id!==e.id),i=e.data;return l.filter(o=>{const u=o.data;return u.stepIndex>=0&&u.stepIndex<i.stepIndex}).sort((o,u)=>{const d=o.data,h=u.data;return d.stepIndex-h.stepIndex}).map(o=>{const u=o.data;return{id:u.stepId,action_type:u.stepType,action_config:u.actionConfig,label:u.label}})}function JG(e){const t=e.find(i=>i.id===nn);return t?t.data.sampleFields||[]:[]}function WG(e){const t=e.find(i=>i.id===nn);return t&&t.data.samplePayload||null}function eY({selectedNode:e,onClose:t,onUpdateNodeData:l,onDeleteStep:i,nodes:o,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 a.jsx(pa,{children:e&&a.jsx(Ve.div,{initial:{width:0,opacity:0},animate:{width:400,opacity:1},exit:{width:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"flex h-full shrink-0 flex-col overflow-hidden border-l border-white/[0.06]","data-testid":"flow-side-panel",children:a.jsxs("div",{className:"flex h-full w-[400px] flex-col",children:[a.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b border-white/[0.06] px-4",children:[a.jsx("h3",{className:"text-sm font-medium text-white",children:d?"Trigger":"Step Configuration"}),a.jsxs("div",{className:"flex items-center gap-1",children:[h&&!d&&a.jsx("button",{onClick:()=>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:a.jsx(Yt,{size:14})}),a.jsx("button",{onClick:t,className:"flex h-7 w-7 items-center justify-center rounded text-neutral-500 transition-colors hover:bg-white/[0.05] hover:text-white",children:a.jsx(La,{size:14})})]})]}),a.jsxs("div",{className:"flex-1 overflow-y-auto p-4 pb-6",children:[d&&a.jsx($G,{data:e.data,onChange:f=>l(e.id,f)}),h&&!d&&a.jsx(XG,{data:e.data,node:e,onChange:f=>l(e.id,f),nodes:o,automationId:u})]})]})})})}const SA={completed:Qr,failed:La,running:PM,pending:Y0,cancelled:La},ZA={completed:"text-emerald-400",failed:"text-red-400",running:"text-blue-400",pending:"text-neutral-400",cancelled:"text-neutral-500"};function CA(e){const t=Date.now()-new Date(e).getTime(),l=Math.floor(t/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 tY({runs:e,selectedRun:t,onSelectRun:l,overlayEnabled:i,onToggleOverlay:o}){const[u,d]=r.useState(!1),h=t||e[0]||null,f=e.length>0;return a.jsxs("div",{className:"absolute right-3 top-3 z-10 flex items-center gap-2 rounded-lg border border-white/[0.08] bg-black/60 px-3 py-1.5 shadow-lg backdrop-blur-sm",children:[a.jsx(sa,{size:14,className:"text-neutral-500",weight:"fill"}),f?a.jsxs(a.Fragment,{children:[a.jsx("button",{onClick:()=>o(!i),className:`relative h-5 w-9 rounded-full transition-colors ${i?"bg-white/20":"bg-white/[0.06]"}`,children:a.jsx("div",{className:`absolute top-0.5 h-4 w-4 rounded-full bg-white transition-all ${i?"left-[18px]":"left-0.5"}`})}),a.jsxs("div",{className:"relative",children:[a.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=SA[h.status]||Y0;return a.jsx(p,{size:12,className:`${ZA[h.status]||"text-neutral-400"} ${h.status==="running"?"animate-spin":""}`,weight:h.status==="running"?"bold":"fill"})})(),a.jsx("span",{children:h?CA(h.created_at):"Select run"}),a.jsx(Ya,{size:10})]}),u&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>d(!1)}),a.jsx("div",{className:"absolute right-0 top-full z-20 mt-1 w-48 rounded-lg border border-white/[0.08] bg-black/80 py-1 shadow-xl backdrop-blur-sm",children:e.slice(0,8).map(p=>{var g;const x=SA[p.status]||Y0;return a.jsxs("button",{onClick:()=>{l(p),o(!0),d(!1)},className:`flex w-full items-center gap-2 px-3 py-1.5 text-left text-[11px] hover:bg-white/[0.05] ${(t==null?void 0:t.id)===p.id?"bg-white/[0.05] text-white":"text-neutral-400"}`,children:[a.jsx(x,{size:11,className:`${ZA[p.status]} ${p.status==="running"?"animate-spin":""}`,weight:p.status==="running"?"bold":"fill"}),a.jsx("span",{className:"flex-1",children:CA(p.created_at)}),a.jsxs("span",{className:"text-[10px] text-neutral-600",children:[((g=p.step_results)==null?void 0:g.length)||0,"/",p.total_steps," steps"]})]},p.id)})})]})]})]}):a.jsx("span",{className:"text-[11px] text-neutral-600",children:"No runs yet"})]})}const aY=[];function nY({automation:e}){const t=cn(),l=!e,[i,o]=r.useState(aY),[u,d]=r.useState(!1),[h,f]=r.useState(null),p=r.useMemo(()=>u&&(h||i[0])||null,[u,h,i]),x=r.useCallback(W=>{var $;if(p)return($=p.step_results)==null?void 0:$.find(F=>F.step_id===W)},[p]),g=r.useMemo(()=>({overlayRun:p,getStepResult:x}),[p,x]);r.useEffect(()=>{e!=null&&e.id&&me(`/api/automations/${e.id}/runs`).then(W=>{var $;return o((($=W.data)==null?void 0:$.runs)||[])}).catch(()=>{})},[e==null?void 0:e.id]);const{nodes:b,edges:w,hasCustomPositions:N}=r.useMemo(()=>e?qS(e):RI(),[e==null?void 0:e.id]),{nodes:E,edges:j,selectedNode:A,selectedNodeId:Z,onNodeClick:M,onPaneClick:S,updateNodeData:_,updateNodePosition:T,deleteStep:V,connectNodes:H,insertStepBetween:L,setSelectedNodeId:D}=oG(b,w,{hasCustomPositions:N}),[B,K]=r.useState(!1),J=E.find(W=>W.id===nn),se=J==null?void 0:J.data,le=(se==null?void 0:se.name)||"",O=(se==null?void 0:se.description)||"",q=r.useCallback(W=>{_(nn,{name:W})},[_]),I=r.useCallback(W=>{_(nn,{description:W})},[_]),Y=r.useCallback(async()=>{var W,$;if(!le.trim()){de("error","Give it a name first");return}K(!0);try{const F=TI(E,j),z=((W=E.find(fe=>fe.id===nn))==null?void 0:W.data)??{},ae={name:F.name,description:F.description,trigger_type:F.trigger_type,trigger_config:F.trigger_config,steps:F.steps,variables:F.variables,cooldown_seconds:F.cooldown_seconds,node_positions:F.node_positions,sample_payload:z.samplePayload??null,sample_fields:($=z.sampleFields)!=null&&$.length?z.sampleFields:null};if(l){const fe=await me("/api/automations",{method:"POST",body:JSON.stringify(ae)});de("success","Automation created"),t(`/automations/${fe.data.id}/edit`)}else await me(`/api/automations/${e.id}`,{method:"PATCH",body:JSON.stringify(ae)}),de("success","Automation updated")}catch(F){de("error",F instanceof Error?F.message:"Couldn't save. Try again?")}finally{K(!1)}},[le,E,j,l,e,t]),X=r.useCallback(async()=>{if(e!=null&&e.id)try{await me(`/api/automations/${e.id}/execute`,{method:"POST"}),de("success","Automation started")}catch(W){de("error",W instanceof Error?W.message:"Couldn't run automation. Try again?")}},[e==null?void 0:e.id]),k=r.useCallback((W,$)=>{T(W,$)},[T]),U=r.useCallback(()=>{D(null)},[D]);return r.useEffect(()=>{const W=$=>{const F=$.target.tagName;F==="INPUT"||F==="TEXTAREA"||F==="SELECT"||($.key==="Escape"&&D(null),($.key==="Delete"||$.key==="Backspace")&&A&&A.type!=="trigger"&&V(A.id),($.metaKey||$.ctrlKey)&&$.key==="s"&&($.preventDefault(),Y()))};return window.addEventListener("keydown",W),()=>window.removeEventListener("keydown",W)},[A,V,Y,D]),a.jsxs("div",{className:"flex h-full flex-col","data-testid":"flow-builder",children:[a.jsx(DG,{name:le,onNameChange:q,description:O,onDescriptionChange:I,onSave:Y,onRun:(e==null?void 0:e.trigger_type)==="manual"?X:void 0,saving:B,isNew:l}),a.jsx(ZG,{value:g,children:a.jsxs("div",{className:"flex min-h-0 flex-1",children:[a.jsxs("div",{className:"relative min-w-0 flex-1",children:[a.jsx(RG,{nodes:E,edges:j,selectedNodeId:Z,onNodeClick:M,onPaneClick:S,onConnect:H,onNodeDrag:k,onInsertStep:L}),!l&&a.jsx(tY,{runs:i,selectedRun:h,onSelectRun:f,overlayEnabled:u,onToggleOverlay:d})]}),a.jsx(eY,{selectedNode:A,onClose:U,onUpdateNodeData:_,onDeleteStep:V,nodes:E,automationId:e==null?void 0:e.id})]})})]})}function HA(){const{id:e}=L1(),[t,l]=r.useState(null),[i,o]=r.useState(!!e);return r.useEffect(()=>{e&&me(`/api/automations/${e}`).then(u=>l(u.data)).catch(()=>{}).finally(()=>o(!1))},[e]),i?a.jsx("div",{className:"flex h-full items-center justify-center",children:a.jsx("div",{className:"text-sm text-neutral-500",children:"Loading..."})}):a.jsx("div",{className:"h-full",children:a.jsx(nY,{automation:e?t:void 0})})}function hn({icon:e,title:t,description:l,capabilities:i,action:o,variant:u="full"}){if(u==="compact")return a.jsxs("div",{className:"border border-white/[0.06] bg-white/[0.02] rounded-lg p-4 flex items-center gap-4",children:[a.jsx("div",{className:"shrink-0 w-10 h-10 rounded-lg bg-white/[0.04] flex items-center justify-center",children:a.jsx(e,{size:20,className:"text-neutral-400"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-sm font-medium text-neutral-300",children:t}),a.jsx("div",{className:"flex gap-2 mt-1.5 flex-wrap",children:i.map(h=>a.jsx("span",{className:"text-[10px] bg-white/[0.04] border border-white/[0.06] px-2 py-0.5 rounded-full text-neutral-500",children:h.label},h.label))})]}),o&&a.jsxs("button",{onClick:o.onClick,className:"text-xs text-neutral-400 hover:text-white transition-colors shrink-0",children:[o.label," →"]})]});const d=i.length<=2?"grid-cols-2":i.length===3?"grid-cols-3":"grid-cols-2 md:grid-cols-4";return a.jsxs(Ve.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3},className:"border border-white/[0.06] bg-white/[0.02] rounded-lg py-12 px-6",children:[a.jsxs("div",{className:"flex flex-col items-center text-center max-w-lg mx-auto",children:[a.jsx("div",{className:"w-14 h-14 rounded-xl bg-white/[0.04] flex items-center justify-center mb-4",children:a.jsx(e,{size:28,className:"text-neutral-400"})}),a.jsx("h3",{className:"text-sm font-medium text-neutral-300",children:t}),l&&a.jsx("p",{className:"text-xs text-neutral-500 mt-1.5 max-w-sm",children:l})]}),a.jsx("div",{className:`grid ${d} gap-3 mt-8 max-w-2xl mx-auto`,children:i.map((h,f)=>a.jsxs(Ve.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:[a.jsx(h.icon,{size:16,className:"text-neutral-500 mb-2"}),a.jsx("p",{className:"text-xs font-medium text-neutral-300",children:h.label}),h.description&&a.jsx("p",{className:"text-[10px] text-neutral-500 mt-0.5",children:h.description})]},h.label))}),o&&a.jsx("div",{className:"flex justify-center mt-6",children:a.jsx("button",{onClick:o.onClick,className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:o.label})})]})}function Xf(e){const t=Date.now()-new Date(e).getTime(),l=Math.floor(t/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 rY=[{id:"overview",label:"Overview"},{id:"outbound",label:"Outbound"},{id:"activity",label:"Activity"}];function sY(){const[e,t]=r.useState("overview"),[l,i]=r.useState(""),[o,u]=r.useState(!1),[d,h]=r.useState(null),[f,p]=r.useState(null),[x,g]=r.useState(null),[b,w]=r.useState(!1),{data:N,loading:E,refetch:j}=we("/api/a2a/connections"),A=r.useMemo(()=>{if(!N)return[];if(!l.trim())return N;const T=l.toLowerCase();return N.filter(V=>V.name.toLowerCase().includes(T)||V.endpoint_url.toLowerCase().includes(T))},[N,l]),Z=r.useMemo(()=>N?{total:N.length,active:N.filter(T=>T.status==="active").length,error:N.filter(T=>T.status==="error").length}:{total:0,active:0,error:0},[N]),M=async T=>{h(T);try{await me(`/api/a2a/connections/${T}/test`,{method:"POST"}),de("success","Connection is healthy"),j()}catch{de("error","Connection test failed"),j()}finally{h(null)}},S=async()=>{if(x){w(!0);try{await me(`/api/a2a/connections/${x.id}`,{method:"DELETE"}),de("success","Connection deleted"),j()}catch{de("error","Couldn't delete connection")}finally{w(!1),g(null)}}},_=!E&&(!N||N.length===0);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Connections",subtitle:"Agent-to-Agent protocol connections",action:a.jsxs("button",{onClick:()=>{u(!o),t("outbound")},className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Mt,{size:14})," New connection"]})}),a.jsx("div",{className:"mb-6",children:a.jsx(q1,{tabs:rY,activeTab:e,onTabChange:t,layoutId:"connections-tab"})}),e==="overview"&&a.jsx(lY,{stats:Z,connections:N||[],loading:E,isEmpty:_,onAddConnection:()=>{u(!0),t("outbound")}}),e==="outbound"&&a.jsx(iY,{connections:A,loading:E,search:l,onSearchChange:i,testing:d,onTest:M,onView:p,onDelete:g,showForm:o,onToggleForm:()=>u(!o),onFormSuccess:()=>{j(),u(!1)}}),e==="activity"&&a.jsx(oY,{connections:N||[],loading:E}),f&&a.jsx(uY,{connection:f,onClose:()=>p(null),onTest:()=>M(f.id),testing:d===f.id}),a.jsx(b0,{open:!!x,onClose:()=>g(null),onConfirm:S,title:"Delete connection",message:`Delete "${x==null?void 0:x.name}"? This can't be undone.`,confirmLabel:"Delete",loading:b})]})}function lY({stats:e,connections:t,loading:l,isEmpty:i,onAddConnection:o}){return l?a.jsx(We,{count:4}):i?a.jsx(hn,{icon:Jr,title:"No connections yet",description:"Connect to external A2A agents to delegate tasks and share capabilities.",capabilities:[{icon:so,label:"Outbound calls",description:"Delegate tasks to remote agents"},{icon:ls,label:"Inbound requests",description:"Receive tasks from other workspaces"},{icon:ym,label:"Bidirectional",description:"Full two-way communication"},{icon:Kr,label:"Health monitoring",description:"Track connection status"}],action:{label:"Add your first connection",onClick:o}}):a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[a.jsx(_t,{label:"Connections",value:e.total}),a.jsx(_t,{label:"Active",value:e.active,color:"text-success"}),a.jsx(_t,{label:"Errors",value:e.error,color:e.error>0?"text-critical":void 0})]}),a.jsx("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-6",children:a.jsxs("div",{className:"flex items-center justify-center gap-8",children:[a.jsxs("div",{className:"text-center",children:[a.jsx("p",{className:"text-[10px] uppercase tracking-wider text-neutral-500 mb-2",children:"Outbound"}),a.jsxs("div",{className:"space-y-1.5",children:[t.slice(0,3).map(u=>a.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[a.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${u.status==="active"?"bg-success":"bg-warning"}`}),a.jsx("span",{className:"text-neutral-300 truncate max-w-[120px]",children:u.name})]},u.id)),t.length>3&&a.jsxs("p",{className:"text-[10px] text-neutral-500",children:["+",t.length-3," more"]})]})]}),a.jsxs("div",{className:"flex flex-col items-center",children:[a.jsx(ym,{size:20,className:"text-neutral-500 mb-1"}),a.jsx("div",{className:"w-12 h-12 rounded-full border border-white/10 bg-white/[0.04] flex items-center justify-center",children:a.jsx(Jr,{size:20,className:"text-white"})}),a.jsx("p",{className:"text-[10px] text-neutral-500 mt-1",children:"Your workspace"})]}),a.jsxs("div",{className:"text-center",children:[a.jsx("p",{className:"text-[10px] uppercase tracking-wider text-neutral-500 mb-2",children:"Inbound"}),a.jsx("p",{className:"text-xs text-neutral-500",children:"API keys not yet configured"})]})]})}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider mb-2",children:"Recent connections"}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:t.slice(0,5).map(u=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[a.jsx("span",{className:`w-2 h-2 rounded-full shrink-0 ${u.status==="active"?"bg-success":u.status==="error"?"bg-critical":"bg-warning"}`}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:u.name}),a.jsx("p",{className:"text-xs text-neutral-500 truncate",children:u.endpoint_url})]})]}),a.jsx(ft,{status:u.status})]},u.id))})]})]})}function iY({connections:e,loading:t,search:l,onSearchChange:i,testing:o,onTest:u,onView:d,onDelete:h,showForm:f,onToggleForm:p,onFormSuccess:x}){return a.jsxs("div",{children:[f&&a.jsx("div",{className:"mb-4",children:a.jsx(cY,{onClose:p,onSuccess:x})}),a.jsxs("div",{className:"relative mb-4",children:[a.jsx(xa,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:l,onChange:g=>i(g.target.value),placeholder:"Search connections...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),t?a.jsx(We,{count:4}):e.length?a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(g=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("button",{className:"min-w-0 mr-3 text-left flex-1",onClick:()=>d(g),children:[a.jsx("p",{className:"text-sm font-medium truncate hover:text-white transition-colors",children:g.name}),a.jsxs("p",{className:"text-xs text-neutral-400 truncate",children:[a.jsx("span",{className:"text-white",children:g.endpoint_url}),a.jsxs("span",{className:"ml-2",children:["· ",g.trust_level.replace(/_/g," ")]}),g.last_health_check_at&&a.jsxs("span",{className:"ml-2",children:["· checked ",Xf(g.last_health_check_at)]})]}),g.skills&&g.skills.length>0&&a.jsxs("div",{className:"flex gap-1 mt-1",children:[g.skills.slice(0,3).map(b=>a.jsx("span",{className:"text-[10px] bg-white/[0.06] px-1.5 py-0.5 rounded text-neutral-400",children:b},b)),g.skills.length>3&&a.jsxs("span",{className:"text-[10px] text-neutral-400",children:["+",g.skills.length-3]})]})]}),a.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[a.jsx(ft,{status:g.status}),a.jsx("button",{onClick:()=>d(g),className:"text-neutral-400 hover:text-white transition-colors",title:"Details",children:a.jsx(kn,{size:14})}),a.jsx("button",{onClick:()=>u(g.id),disabled:o===g.id,className:"text-neutral-400 hover:text-white transition-colors disabled:opacity-50",title:"Test connection",children:a.jsx(ss,{size:14,className:o===g.id?"animate-spin":""})}),a.jsx("button",{onClick:()=>h(g),className:"text-neutral-400 hover:text-critical transition-colors",title:"Delete",children:a.jsx(Yt,{size:14})})]})]},g.id))}):a.jsx(bt,{icon:a.jsx(Jr,{size:32}),title:l?"No matches":"No outbound connections",description:l?`Nothing matching "${l}".`:"Add a connection to start delegating tasks."})]})}function oY({connections:e,loading:t}){if(t)return a.jsx(We,{count:4});const l=e.filter(i=>i.last_health_check_at).sort((i,o)=>new Date(o.last_health_check_at).getTime()-new Date(i.last_health_check_at).getTime());return l.length?a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:l.map(i=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{className:"min-w-0 mr-3",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:i.name}),a.jsxs("p",{className:"text-xs text-neutral-400",children:["Health check · ",i.last_health_status||"unknown",a.jsxs("span",{className:"ml-2",children:["· ",Xf(i.last_health_check_at)]})]})]}),a.jsx(ft,{status:i.last_health_status==="healthy"?"active":"error"})]},i.id))}):a.jsx(bt,{icon:a.jsx(Kr,{size:32}),title:"No activity yet",description:"Health checks and task delegations will appear here."})}function cY({onClose:e,onSuccess:t}){const[l,i]=r.useState(""),[o,u]=r.useState(""),[d,h]=r.useState(""),[f,p]=r.useState("read_only"),[x,g]=r.useState("none"),[b,w]=r.useState(""),[N,E]=r.useState(!1),[j,A]=r.useState(!1),Z=async()=>{if(o.trim()){A(!0);try{const S=await fetch(o.trim());if(S.ok){const _=await S.json();_.name&&!l&&i(_.name),_.url&&!d&&h(_.url),de("success","Agent card loaded")}}catch{de("error","Couldn't fetch agent card")}finally{A(!1)}}},M=async S=>{if(S.preventDefault(),!(!l.trim()||!o.trim()||!d.trim())){E(!0);try{await me("/api/a2a/connections",{method:"POST",body:JSON.stringify({name:l.trim(),agent_card_url:o.trim(),endpoint_url:d.trim(),trust_level:f,auth_type:x,...x!=="none"&&b.trim()?{credential:b.trim()}:{}})}),de("success","Connection created"),t()}catch{de("error","Couldn't create connection")}finally{E(!1)}}};return a.jsx(Ve.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},className:"overflow-hidden",children:a.jsxs("form",{onSubmit:M,className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4 space-y-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent card URL"}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("input",{value:o,onChange:S=>u(S.target.value),placeholder:"https://agent.example.com/.well-known/agent-card.json",className:"flex-1 bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"}),a.jsx("button",{type:"button",onClick:Z,disabled:j||!o.trim(),className:"px-3 py-2 text-xs bg-white/5 border border-white/10 text-white rounded-md hover:bg-white/10 transition-colors disabled:opacity-50 shrink-0",children:j?a.jsx(ct,{size:14,className:"animate-spin"}):"Discover"})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),a.jsx("input",{value:l,onChange:S=>i(S.target.value),placeholder:"Connection name",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Trust level"}),a.jsxs("select",{value:f,onChange:S=>p(S.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"read_only",children:"Read only"}),a.jsx("option",{value:"execute",children:"Execute"}),a.jsx("option",{value:"autonomous",children:"Autonomous"})]})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Endpoint URL"}),a.jsx("input",{value:d,onChange:S=>h(S.target.value),placeholder:"https://agent.example.com/a2a",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Auth type"}),a.jsxs("select",{value:x,onChange:S=>g(S.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"none",children:"None"}),a.jsx("option",{value:"bearer_token",children:"Bearer token"}),a.jsx("option",{value:"api_key",children:"API key"})]})]}),x!=="none"&&a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:x==="bearer_token"?"Token":"API Key"}),a.jsx("input",{type:"password",value:b,onChange:S=>w(S.target.value),placeholder:x==="bearer_token"?"Bearer token":"API key value",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),a.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[a.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:N||!l.trim()||!o.trim()||!d.trim(),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:N?"Creating...":"Create connection"})]})]})})}function uY({connection:e,onClose:t,onTest:l,testing:i}){return a.jsx(va,{open:!0,onClose:t,title:"Connection details",maxWidth:"max-w-lg",children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"text-sm font-semibold",children:e.name}),e.description&&a.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:e.description})]}),a.jsx(ft,{status:e.status})]}),a.jsxs("div",{className:"bg-white/5 rounded-lg p-3 space-y-2 text-sm",children:[a.jsx(Or,{label:"Endpoint",value:e.endpoint_url}),a.jsx(Or,{label:"Agent card",value:e.agent_card_url}),a.jsx(Or,{label:"Trust level",value:e.trust_level.replace(/_/g," ")}),a.jsx(Or,{label:"Auth type",value:e.auth_type==="none"?"None":e.auth_type.replace(/_/g," ")}),e.last_health_check_at&&a.jsx(Or,{label:"Last health check",value:`${Xf(e.last_health_check_at)} (${e.last_health_status||"unknown"})`}),a.jsx(Or,{label:"Created",value:new Date(e.created_at).toLocaleDateString()})]}),e.skills&&e.skills.length>0&&a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1.5",children:"Skills"}),a.jsx("div",{className:"flex gap-1.5 flex-wrap",children:e.skills.map(o=>a.jsx("span",{className:"text-xs bg-white/5 border border-white/10 px-2 py-1 rounded",children:o},o))})]}),a.jsx("div",{className:"flex gap-2 justify-end pt-2",children:a.jsx("button",{onClick: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?a.jsxs(a.Fragment,{children:[a.jsx(ct,{size:14,className:"animate-spin"})," Testing..."]}):a.jsxs(a.Fragment,{children:[a.jsx(ss,{size:14})," Test connection"]})})})]})})}function Or({label:e,value:t}){return a.jsxs("div",{className:"flex justify-between gap-4",children:[a.jsx("span",{className:"text-neutral-400 shrink-0",children:e}),a.jsx("span",{className:"font-medium text-right break-all",children:t})]})}function dY(){const{data:e,loading:t,refetch:l}=we("/api/knowledge"),[i,o]=r.useState(""),[u,d]=r.useState(!1),h=e==null?void 0:e.filter(p=>p.title.toLowerCase().includes(i.toLowerCase())),f=r.useCallback(async p=>{try{await me(`/api/knowledge/${p}`,{method:"DELETE"}),de("success","Document removed"),l()}catch{de("error","Couldn't remove document")}},[l]);return a.jsxs("div",{className:"p-6 max-w-5xl",children:[a.jsx(ze,{title:"Knowledge",subtitle:"Documents and context for your agents",action:a.jsx("button",{onClick:()=>d(!0),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:"Add document"})}),a.jsx("div",{className:"mb-4",children:a.jsxs("div",{className:"relative",children:[a.jsx(xa,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-500"}),a.jsx("input",{type:"text",placeholder:"Search documents...",value:i,onChange:p=>o(p.target.value),className:"w-full pl-9 pr-4 py-2 text-sm bg-white/5 border border-white/10 rounded-lg text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})}),t?a.jsx("div",{className:"space-y-2",children:Array.from({length:3}).map((p,x)=>a.jsx("div",{className:"h-16 bg-white/5 rounded-lg animate-pulse"},x))}):h!=null&&h.length?a.jsx("div",{className:"space-y-2",children:h.map(p=>a.jsxs("div",{className:"flex items-center gap-4 px-4 py-3 border border-white/[0.08] rounded-lg hover:bg-white/[0.02] transition-colors",children:[a.jsx("div",{className:"w-8 h-8 rounded-lg bg-white/5 flex items-center justify-center text-neutral-400",children:p.type==="url"?a.jsx($1,{size:16}):a.jsx(Nm,{size:16})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:p.title}),a.jsxs("p",{className:"text-xs text-neutral-500",children:[p.chunk_count!=null?`${p.chunk_count} ${p.chunk_count===1?"chunk":"chunks"}`:p.type," · ",new Date(p.created_at).toLocaleDateString()]})]}),a.jsx(ft,{status:p.status}),a.jsx("button",{onClick:()=>f(p.id),className:"text-neutral-500 hover:text-critical transition-colors",children:a.jsx(Yt,{size:16})})]},p.id))}):a.jsx(bt,{icon:a.jsx(iE,{size:32}),title:"Nothing here yet",description:"Upload documents or add URLs to give your agents more context.",action:a.jsx("button",{onClick:()=>d(!0),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:"Add your first document"})}),a.jsx(hY,{open:u,onClose:()=>d(!1),onSuccess:()=>{d(!1),l()}})]})}function hY({open:e,onClose:t,onSuccess:l}){const[i,o]=r.useState("file"),[u,d]=r.useState(""),[h,f]=r.useState(!1),[p,x]=r.useState(!1),g=r.useCallback(async w=>{if(w!=null&&w.length){f(!0);try{const N=new FormData;Array.from(w).forEach(j=>N.append("files",j));const E=un();await fetch("/api/knowledge/upload",{method:"POST",headers:E?{Authorization:`Bearer ${E}`}:{},body:N}),de("success",`Uploaded ${w.length===1?"1 document":`${w.length} documents`}`),l()}catch{de("error","Couldn't upload. Try again?")}finally{f(!1)}}},[l]),b=r.useCallback(async()=>{if(u.trim()){f(!0);try{await me("/api/knowledge/url",{method:"POST",body:JSON.stringify({url:u.trim()})}),de("success","URL imported"),l()}catch{de("error","Couldn't import URL. Try again?")}finally{f(!1)}}},[u,l]);return a.jsxs(va,{open:e,onClose:t,title:"Add document",children:[a.jsxs("div",{className:"flex gap-2 mb-4",children:[a.jsx("button",{onClick:()=>o("file"),className:`px-3 py-1.5 text-xs font-medium rounded transition-colors ${i==="file"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Upload file"}),a.jsx("button",{onClick:()=>o("url"),className:`px-3 py-1.5 text-xs font-medium rounded transition-colors ${i==="url"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Import URL"})]}),i==="file"?a.jsxs("div",{onDragOver:w=>{w.preventDefault(),x(!0)},onDragLeave:()=>x(!1),onDrop:w=>{w.preventDefault(),x(!1),g(w.dataTransfer.files)},className:`border-2 border-dashed rounded-lg p-8 text-center transition-colors ${p?"border-white/30 bg-white/5":"border-white/10"}`,children:[a.jsx(Wz,{size:24,className:"mx-auto text-neutral-500 mb-2"}),a.jsx("p",{className:"text-sm text-neutral-400 mb-2",children:"Drag and drop files here"}),a.jsxs("label",{className:"inline-block px-4 py-2 text-xs font-medium bg-white/10 text-white rounded cursor-pointer hover:bg-white/15 transition-colors",children:["Choose files",a.jsx("input",{type:"file",multiple:!0,className:"hidden",onChange:w=>g(w.target.files)})]})]}):a.jsxs("div",{className:"space-y-3",children:[a.jsx("input",{type:"url",placeholder:"https://...",value: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"}),a.jsx("button",{onClick:b,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"&&a.jsx("p",{className:"text-xs text-neutral-400 mt-3 text-center",children:"Uploading..."})]})}const Ih={lead_gen:{label:"Lead Gen",Icon:Dz},content:{label:"Content",Icon:qz},support:{label:"Support",Icon:Rz},operations:{label:"Ops",Icon:JE},analytics:{label:"Analytics",Icon:bE},sales:{label:"Sales",Icon:kz}},mY={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 fY(){const[e,t]=r.useState([]),[l,i]=r.useState(!0),[o,u]=r.useState(""),[d,h]=r.useState(null),[f,p]=r.useState(null),[x,g]=r.useState(!1),[b,w]=r.useState({});r.useEffect(()=>{N()},[]);const N=async()=>{try{const M=await me("/api/templates");t(M.templates||[])}catch{de("error","Couldn't load templates")}finally{i(!1)}},E=r.useMemo(()=>{let M=e;if(d&&(M=M.filter(S=>S.category===d)),o){const S=o.toLowerCase();M=M.filter(_=>_.name.toLowerCase().includes(S)||_.description.toLowerCase().includes(S))}return M},[e,d,o]),j=M=>{p(M);const S={};M.variables.forEach(_=>{S[_.key]=_.default_value||""}),w(S)},A=async()=>{if(f){g(!0);try{await me(`/api/templates/${f.slug}/install`,{method:"POST",body:JSON.stringify({variableValues:b})}),de("success",`Installed "${f.name}"`),p(null),N()}catch{de("error","Couldn't install template. Try again?")}finally{g(!1)}}},Z=["all",...Object.keys(Ih)];return a.jsxs("div",{className:"p-6 max-w-5xl",children:[a.jsx(ze,{title:"Templates",subtitle:"Pre-built agent and automation bundles you can install in one click."}),a.jsxs("div",{className:"flex items-center gap-3 mt-4 mb-6 flex-wrap",children:[a.jsx("div",{className:"flex items-center gap-1.5 flex-wrap",children:Z.map(M=>{var S;return a.jsx("button",{onClick:()=>h(M==="all"?null:M),className:`px-3 py-1 text-xs rounded-full transition-colors ${M==="all"&&!d||M===d?"bg-white/10 text-white border border-white/20":"bg-white/[0.03] text-neutral-500 border border-white/[0.06] hover:text-neutral-300"}`,children:M==="all"?"All":((S=Ih[M])==null?void 0:S.label)||M},M)})}),a.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[a.jsx(xa,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-neutral-500"}),a.jsx("input",{type:"text",value:o,onChange:M=>u(M.target.value),placeholder:"Search templates...",className:"w-full pl-8 pr-3 py-1.5 text-xs bg-white/[0.04] border border-white/[0.08] rounded-lg text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),l?a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[1,2,3].map(M=>a.jsx(tn,{className:"h-48 rounded-lg"},M))}):E.length===0?a.jsx(bt,{icon:a.jsx(jm,{size:40,weight:"thin"}),title:"No templates found",description:o||d?"Try a different filter.":"Templates will appear here."}):a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:E.map(M=>{const S=Ih[M.category],_=(S==null?void 0:S.Icon)||jm;return a.jsxs("button",{onClick:()=>M.installed?null:j(M),className:"text-left border border-white/[0.06] rounded-lg bg-white/[0.02] hover:bg-white/[0.04] p-4 transition-colors",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx(_,{size:20,weight:"bold",className:"text-neutral-400"}),a.jsx("span",{className:"text-sm font-medium text-white truncate",children:M.name}),M.installed&&a.jsx(v0,{size:16,weight:"fill",className:"text-green-400 ml-auto flex-shrink-0"})]}),a.jsx("p",{className:"text-xs text-neutral-400 line-clamp-2 mb-3",children:M.description}),a.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[a.jsx("span",{className:"text-[10px] px-2 py-0.5 rounded-full bg-white/[0.06] text-neutral-400",children:(S==null?void 0:S.label)||M.category}),a.jsx("span",{className:`text-[10px] px-2 py-0.5 rounded-full ${mY[M.difficulty]||"bg-white/[0.06] text-neutral-400"}`,children:M.difficulty}),a.jsxs("span",{className:"text-[10px] text-neutral-500 flex items-center gap-0.5",children:[a.jsx(on,{size:10})," ",M.agents.length]}),a.jsxs("span",{className:"text-[10px] text-neutral-500 flex items-center gap-0.5",children:[a.jsx(sa,{size:10})," ",M.automations.length]})]})]},M.id)})}),f&&a.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",onClick:()=>!x&&p(null),children:a.jsxs("div",{className:"bg-[#111] border border-white/10 rounded-xl p-6 w-full max-w-md",onClick:M=>M.stopPropagation(),children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsxs("h2",{className:"text-lg font-semibold",children:["Install ",f.name]}),a.jsx("button",{onClick:()=>p(null),className:"text-neutral-500 hover:text-white",disabled:x,children:a.jsx(La,{size:18})})]}),a.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&&a.jsx("div",{className:"space-y-3 mb-4",children:f.variables.map(M=>a.jsxs("div",{children:[a.jsxs("label",{className:"block text-xs text-neutral-400 mb-1",children:[M.label,M.required&&a.jsx("span",{className:"text-red-400 ml-0.5",children:"*"})]}),M.type==="select"&&M.options?a.jsxs("select",{value:b[M.key]||"",onChange:S=>w(_=>({..._,[M.key]:S.target.value})),className:"w-full px-3 py-2 bg-white/5 border border-white/10 rounded-lg text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"",children:"Select..."}),M.options.map(S=>a.jsx("option",{value:S.value,children:S.label},S.value))]}):a.jsx("input",{type:M.type==="email"?"email":M.type==="url"?"url":"text",value:b[M.key]||"",onChange:S=>w(_=>({..._,[M.key]:S.target.value})),placeholder:M.placeholder||"",className:"w-full px-3 py-2 bg-white/5 border border-white/10 rounded-lg text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"}),M.description&&a.jsx("p",{className:"text-[10px] text-neutral-500 mt-0.5",children:M.description})]},M.key))}),a.jsx("button",{onClick:A,disabled:x,className:"w-full py-2.5 bg-white text-black text-sm font-medium rounded-lg hover:bg-gray-200 disabled:opacity-40 disabled:cursor-not-allowed transition-colors flex items-center justify-center gap-2",children:x?a.jsxs(a.Fragment,{children:[a.jsx(Gz,{size:14,className:"animate-spin"}),"Installing..."]}):a.jsxs(a.Fragment,{children:["Install Template",a.jsx(so,{size:14})]})})]})})]})}const pY=[{to:"/schedules",icon:z1,color:"blue",title:"Schedules",description:"Set up recurring tasks on a cron schedule. Agents run automatically at the times you define.",features:[{icon:Jz,label:"Cron expressions"},{icon:VE,label:"Run history"}]},{to:"/automations",icon:sa,color:"amber",title:"Automations",description:"Build event-driven flows triggered by webhooks, schedules, or manual input. Chain multiple steps together.",features:[{icon:Ef,label:"Webhook triggers"},{icon:eM,label:"Visual builder"}]}],xY={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 gY(){const{data:e}=we("/api/schedules"),{data:t}=we("/api/automations"),l={"/schedules":(e==null?void 0:e.length)??0,"/automations":(t==null?void 0:t.length)??0};return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Workflows",subtitle:"Automate recurring tasks and event-driven flows"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:pY.map((i,o)=>{const u=xY[i.color],d=l[i.to]??0;return a.jsx(Ve.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3,delay:o*.08},children:a.jsxs(Be,{to:i.to,className:`block border ${u.border} ${u.bg} bg-white/[0.02] rounded-lg p-5 transition-all group`,children:[a.jsxs("div",{className:"flex items-start justify-between mb-3",children:[a.jsx("div",{className:`w-10 h-10 rounded-lg ${u.iconBg} flex items-center justify-center`,children:a.jsx(i.icon,{size:20,weight:"bold",className:"text-white"})}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("span",{className:"text-xs text-neutral-400",children:[d," ",d===1?"item":"items"]}),a.jsx(so,{size:16,className:"text-neutral-500 group-hover:text-white group-hover:translate-x-0.5 transition-all"})]})]}),a.jsx("h3",{className:"text-sm font-semibold text-white mb-1",children:i.title}),a.jsx("p",{className:"text-xs text-neutral-400 mb-4 leading-relaxed",children:i.description}),a.jsx("div",{className:"flex gap-2",children:i.features.map(h=>a.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] bg-white/[0.04] border border-white/[0.06] px-2 py-1 rounded-full text-neutral-400",children:[a.jsx(h.icon,{size:10}),h.label]},h.label))})]})},i.to)})})]})}function vY(e){const t=Date.now()-new Date(e).getTime(),l=Math.floor(t/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 VA(e){try{return JSON.parse(e)}catch{return e}}function bY(){const[e,t]=r.useState("all"),[l,i]=r.useState(null),{data:o,loading:u,refetch:d}=we("/api/webhook-events"),h=o?e==="all"?o:e==="processed"?o.filter(p=>p.processed===1):o.filter(p=>p.processed===0):[],f=[{key:"all",label:"All"},{key:"pending",label:"Pending"},{key:"processed",label:"Processed"}];return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Webhook Events",subtitle:"Audit log of incoming webhooks",action:a.jsxs("button",{onClick:d,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-neutral-400 border border-white/10 rounded-md hover:bg-white/5 hover:text-white transition-colors",children:[a.jsx(ss,{size:14})," Refresh"]})}),a.jsxs("div",{className:"flex items-center gap-1 mb-4",children:[a.jsx(_z,{size:14,className:"text-neutral-500 mr-1"}),f.map(p=>a.jsx("button",{onClick:()=>t(p.key),className:`px-3 py-1 rounded-full text-xs transition-colors ${e===p.key?"bg-white/10 text-white border border-white/20":"text-neutral-500 hover:text-white border border-transparent"}`,children:p.label},p.key))]}),u?a.jsx(We,{count:6}):h.length?a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:h.map(p=>a.jsxs("button",{onClick:()=>i(p),className:"flex items-center justify-between w-full px-4 py-3 text-left hover:bg-white/[0.02] transition-colors",children:[a.jsxs("div",{className:"min-w-0 mr-3 flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:p.event_type||"Unknown event"}),a.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded ${p.processed?"bg-success/15 text-success":"bg-warning/15 text-warning"}`,children:p.processed?"processed":"pending"})]}),a.jsxs("p",{className:"text-xs text-neutral-400 mt-0.5",children:[p.source,a.jsx("span",{className:"mx-1.5",children:"·"}),vY(p.created_at)]})]}),a.jsx(kn,{size:14,className:"text-neutral-500 shrink-0"})]},p.id))}):a.jsx(bt,{icon:a.jsx(Ef,{size:32}),title:"No webhook events yet",description:"Events will appear here when webhooks are received by your triggers."}),l&&a.jsx(va,{open:!0,onClose:()=>i(null),title:"Webhook event",maxWidth:"max-w-lg",children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("h4",{className:"text-sm font-semibold",children:l.event_type}),a.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"})]}),a.jsxs("div",{className:"bg-white/5 rounded-lg p-3 space-y-2 text-sm",children:[a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-neutral-400",children:"Source"}),a.jsx("span",{className:"font-medium",children:l.source})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-neutral-400",children:"Event type"}),a.jsx("span",{className:"font-medium",children:l.event_type})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-neutral-400",children:"Received"}),a.jsx("span",{className:"font-medium",children:new Date(l.created_at).toLocaleString()})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Payload"}),a.jsx("pre",{className:"bg-white/[0.04] border border-white/[0.08] rounded-lg p-3 text-xs text-neutral-400 overflow-x-auto max-h-64 whitespace-pre-wrap font-mono",children:JSON.stringify(VA(l.payload),null,2)})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Headers"}),a.jsx("pre",{className:"bg-white/[0.04] border border-white/[0.08] rounded-lg p-3 text-xs text-neutral-500 overflow-x-auto max-h-32 whitespace-pre-wrap font-mono",children:JSON.stringify(VA(l.headers),null,2)})]})]})})]})}const _A={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"},TA=["#3b82f6","#8b5cf6","#ec4899","#f59e0b","#10b981","#06b6d4","#ef4444","#84cc16","#f97316"],yY=[{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 wY(){const{data:e,loading:t,refetch:l}=we("/api/goals"),[i,o]=r.useState(!1),[u,d]=r.useState(null),[h,f]=r.useState(null),[p,x]=r.useState(!1),[g,b]=r.useState({active:!0,paused:!1,completed:!1,archived:!1}),w=r.useMemo(()=>{var Z;if(!e)return{};const A={};for(const M of e)(A[Z=M.status]??(A[Z]=[])).push(M);return A},[e]),N=async()=>{if(h){x(!0);try{await me(`/api/goals/${h.id}`,{method:"DELETE"}),de("success","Goal deleted"),l()}catch{de("error","Couldn't delete goal")}finally{x(!1),f(null)}}},E=A=>{b(Z=>({...Z,[A]:!Z[A]}))},j=!t&&(!e||e.length===0);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Goals",subtitle:"Track objectives and measure progress",action:a.jsxs("button",{onClick:()=>{d(null),o(!0)},className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Mt,{size:14})," New goal"]})}),t?a.jsx(We,{count:4}):j?a.jsx(hn,{icon:Cm,title:"No goals yet",description:"Set goals to track your progress toward business objectives.",capabilities:[{icon:Cm,label:"Objectives",description:"Define what you want to achieve"},{icon:Hm,label:"Progress tracking",description:"Monitor current vs target"},{icon:Cz,label:"Priority levels",description:"Focus on what matters most"},{icon:bz,label:"Deadlines",description:"Stay on track with due dates"}],action:{label:"Create your first goal",onClick:()=>{d(null),o(!0)}}}):a.jsx("div",{className:"space-y-4",children:yY.map(A=>{const Z=w[A.status]||[];if(Z.length===0)return null;const M=g[A.status];return a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>E(A.status),className:"flex items-center gap-2 mb-2 text-sm text-neutral-400 hover:text-white transition-colors",children:[M?a.jsx(Ya,{size:12}):a.jsx(is,{size:12}),a.jsx("span",{className:"font-medium capitalize",children:A.label}),a.jsx("span",{className:"text-xs text-neutral-600",children:Z.length})]}),a.jsx(pa,{children:M&&a.jsx(Ve.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"space-y-2 overflow-hidden",children:Z.map(S=>a.jsx(AY,{goal:S,onEdit:()=>{d(S),o(!0)},onDelete:()=>f(S)},S.id))})})]},A.status)})}),i&&a.jsx(jY,{goal:u,onClose:()=>{o(!1),d(null)},onSuccess:()=>{l(),o(!1),d(null)}}),a.jsx(b0,{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 AY({goal:e,onEdit:t,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 a.jsxs(Ve.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4",children:[a.jsxs("div",{className:"flex items-start justify-between mb-2",children:[a.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.color&&a.jsx("div",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:e.color}}),a.jsx("h4",{className:"text-sm font-medium truncate",children:e.name}),a.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded capitalize ${_A[e.priority]||_A.medium}`,children:e.priority})]}),a.jsxs("div",{className:"flex items-center gap-1.5 shrink-0 ml-2",children:[a.jsx("button",{onClick:t,className:"text-neutral-500 hover:text-white transition-colors",children:a.jsx(oo,{size:13})}),a.jsx("button",{onClick:l,className:"text-neutral-500 hover:text-critical transition-colors",children:a.jsx(Yt,{size:13})})]})]}),e.description&&a.jsx("p",{className:"text-xs text-neutral-400 mb-3",children:e.description}),i!==null&&a.jsxs("div",{className:"mb-2",children:[a.jsxs("div",{className:"flex justify-between text-[10px] text-neutral-500 mb-1",children:[a.jsx("span",{children:e.target_metric||"Progress"}),a.jsxs("span",{children:[e.current_value," / ",e.target_value," ",e.unit||"",a.jsxs("span",{className:"ml-1.5 text-neutral-400",children:[i,"%"]})]})]}),a.jsx("div",{className:"h-1.5 bg-white/[0.06] rounded-full overflow-hidden",children:a.jsx(Ve.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&&a.jsxs("p",{className:"text-[10px] text-neutral-500",children:["Due ",new Date(e.due_date).toLocaleDateString()]})]})}function jY({goal:e,onClose:t,onSuccess:l}){var D,B,K;const[i,o]=r.useState((e==null?void 0:e.name)||""),[u,d]=r.useState((e==null?void 0:e.description)||""),[h,f]=r.useState((e==null?void 0:e.priority)||"medium"),[p,x]=r.useState((e==null?void 0:e.status)||"active"),[g,b]=r.useState((e==null?void 0:e.target_metric)||""),[w,N]=r.useState(((D=e==null?void 0:e.target_value)==null?void 0:D.toString())||""),[E,j]=r.useState(((B=e==null?void 0:e.current_value)==null?void 0:B.toString())||"0"),[A,Z]=r.useState((e==null?void 0:e.unit)||""),[M,S]=r.useState(((K=e==null?void 0:e.due_date)==null?void 0:K.split("T")[0])||""),[_,T]=r.useState((e==null?void 0:e.color)||TA[0]),[V,H]=r.useState(!1),L=async J=>{if(J.preventDefault(),!!i.trim()){H(!0);try{const se={name:i.trim(),description:u.trim()||null,priority:h,status:p,target_metric:g.trim()||null,target_value:w?Number(w):null,current_value:E?Number(E):null,unit:A.trim()||null,due_date:M||null,color:_};e?(await me(`/api/goals/${e.id}`,{method:"PUT",body:JSON.stringify(se)}),de("success","Goal updated")):(await me("/api/goals",{method:"POST",body:JSON.stringify(se)}),de("success","Goal created")),l()}catch{de("error",e?"Couldn't update goal":"Couldn't create goal")}finally{H(!1)}}};return a.jsx(va,{open:!0,onClose:t,title:e?"Edit goal":"New goal",maxWidth:"max-w-md",children:a.jsxs("form",{onSubmit:L,className:"space-y-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),a.jsx("input",{value:i,onChange:J=>o(J.target.value),placeholder:"Reach 100 customers",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20",autoFocus:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description"}),a.jsx("textarea",{value:u,onChange:J=>d(J.target.value),placeholder:"What does achieving this goal look like?",rows:2,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none"})]}),a.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Metric"}),a.jsx("input",{value:g,onChange:J=>b(J.target.value),placeholder:"Revenue",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Target"}),a.jsx("input",{type:"number",value:w,onChange:J=>N(J.target.value),placeholder:"100",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Unit"}),a.jsx("input",{value:A,onChange:J=>Z(J.target.value),placeholder:"users",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),e&&a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Current value"}),a.jsx("input",{type:"number",value:E,onChange:J=>j(J.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Priority"}),a.jsxs("select",{value:h,onChange:J=>f(J.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"low",children:"Low"}),a.jsx("option",{value:"medium",children:"Medium"}),a.jsx("option",{value:"high",children:"High"}),a.jsx("option",{value:"critical",children:"Critical"})]})]}),e&&a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Status"}),a.jsxs("select",{value:p,onChange:J=>x(J.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"active",children:"Active"}),a.jsx("option",{value:"paused",children:"Paused"}),a.jsx("option",{value:"completed",children:"Completed"}),a.jsx("option",{value:"archived",children:"Archived"})]})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Due date"}),a.jsx("input",{type:"date",value:M,onChange:J=>S(J.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Color"}),a.jsx("div",{className:"flex gap-2",children:TA.map(J=>a.jsx("button",{type:"button",onClick:()=>T(J),className:`w-6 h-6 rounded-full transition-all ${_===J?"ring-2 ring-white ring-offset-2 ring-offset-black scale-110":"hover:scale-110"}`,style:{backgroundColor:J}},J))})]}),a.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[a.jsx("button",{type:"button",onClick:t,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:V||!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:V?e?"Updating...":"Creating...":e?"Update goal":"Create goal"})]})]})})}const GZ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function NY(){const{data:e,loading:t,refetch:l}=we("/api/revenue"),[i,o]=r.useState(!1),[u,d]=r.useState(null),[h,f]=r.useState(null),[p,x]=r.useState(!1),g=r.useMemo(()=>{if(!e||e.length===0)return 0;const E=new Date;return e.filter(A=>A.month===E.getMonth()+1&&A.year===E.getFullYear()).reduce((A,Z)=>A+Z.amount_cents,0)},[e]),b=r.useMemo(()=>e?[...e].sort((E,j)=>E.year!==j.year?j.year-E.year:j.month-E.month):[],[e]),w=async()=>{if(h){x(!0);try{await me(`/api/revenue/${h.id}`,{method:"DELETE"}),de("success","Entry deleted"),l()}catch{de("error","Couldn't delete entry")}finally{x(!1),f(null)}}},N=!t&&(!e||e.length===0);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Revenue",subtitle:"Track monthly revenue and growth",action:a.jsxs("div",{className:"flex items-center gap-3",children:[g>0&&a.jsxs("div",{className:"flex items-center gap-1.5 text-success",children:[a.jsx(Hm,{size:14,weight:"bold"}),a.jsxs("span",{className:"text-sm font-semibold",children:["$",(g/100).toLocaleString()," MRR"]})]}),a.jsxs("button",{onClick:()=>{d(null),o(!0)},className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Mt,{size:14})," Add entry"]})]})}),a.jsx(pa,{children:i&&a.jsx(EY,{entry:u,onClose:()=>{o(!1),d(null)},onSuccess:()=>{l(),o(!1),d(null)}})}),t?a.jsx(We,{count:4}):N?a.jsx(hn,{icon:RE,title:"No revenue entries yet",description:"Start tracking monthly revenue to measure growth over time.",capabilities:[{icon:wz,label:"Monthly tracking",description:"Record revenue each month"},{icon:Hm,label:"MRR calculation",description:"See current monthly recurring revenue"},{icon:Xz,label:"Revenue sources",description:"Tag where revenue comes from"},{icon:zz,label:"Notes",description:"Add context to each entry"}],action:{label:"Add your first entry",onClick:()=>{d(null),o(!0)}}}):a.jsxs("div",{className:"border border-white/[0.08] rounded-lg overflow-hidden",children:[a.jsxs("div",{className:"grid grid-cols-[1fr_1fr_1fr_1fr_auto] gap-4 px-4 py-2 text-[10px] uppercase tracking-wider text-neutral-500 border-b border-white/[0.08] bg-white/[0.02]",children:[a.jsx("span",{children:"Period"}),a.jsx("span",{children:"Source"}),a.jsx("span",{className:"text-right",children:"Amount"}),a.jsx("span",{children:"Notes"}),a.jsx("span",{className:"w-16"})]}),a.jsx("div",{className:"divide-y divide-white/[0.06]",children:b.map(E=>a.jsxs(Ve.div,{layout:!0,initial:{opacity:0},animate:{opacity:1},className:"grid grid-cols-[1fr_1fr_1fr_1fr_auto] gap-4 px-4 py-3 items-center hover:bg-white/[0.02] transition-colors group",children:[a.jsxs("span",{className:"text-sm font-medium",children:[GZ[E.month-1]," ",E.year]}),a.jsx("span",{className:"text-sm text-neutral-400 truncate",children:E.source||"No source"}),a.jsxs("span",{className:"text-sm font-semibold text-right text-success",children:["$",(E.amount_cents/100).toLocaleString(void 0,{minimumFractionDigits:2})]}),a.jsx("span",{className:"text-xs text-neutral-500 truncate",children:E.notes||""}),a.jsxs("div",{className:"flex items-center gap-1.5 w-16 justify-end opacity-0 group-hover:opacity-100 transition-opacity",children:[a.jsx("button",{onClick:()=>{d(E),o(!0)},className:"text-neutral-500 hover:text-white transition-colors",children:a.jsx(oo,{size:13})}),a.jsx("button",{onClick:()=>f(E),className:"text-neutral-500 hover:text-critical transition-colors",children:a.jsx(Yt,{size:13})})]})]},E.id))})]}),a.jsx(b0,{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 EY({entry:e,onClose:t,onSuccess:l}){var A,Z;const i=new Date,[o,u]=r.useState(e?(e.amount_cents/100).toString():""),[d,h]=r.useState((e==null?void 0:e.source)||""),[f,p]=r.useState(((A=e==null?void 0:e.month)==null?void 0:A.toString())||(i.getMonth()+1).toString()),[x,g]=r.useState(((Z=e==null?void 0:e.year)==null?void 0:Z.toString())||i.getFullYear().toString()),[b,w]=r.useState((e==null?void 0:e.notes)||""),[N,E]=r.useState(!1),j=async M=>{if(M.preventDefault(),!!o){E(!0);try{const S={amount_cents:Math.round(Number(o)*100),month:Number(f),year:Number(x),source:d.trim()||null,notes:b.trim()||null};e?(await me(`/api/revenue/${e.id}`,{method:"PUT",body:JSON.stringify(S)}),de("success","Entry updated")):(await me("/api/revenue",{method:"POST",body:JSON.stringify(S)}),de("success","Entry added")),l()}catch{de("error",e?"Couldn't update entry":"Couldn't add entry")}finally{E(!1)}}};return a.jsx(Ve.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mb-4 overflow-hidden",children:a.jsxs("form",{onSubmit:j,className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4 space-y-3",children:[a.jsxs("div",{className:"flex items-center justify-between mb-1",children:[a.jsx("span",{className:"text-sm font-medium",children:e?"Edit entry":"New entry"}),a.jsx("button",{type:"button",onClick:t,className:"text-neutral-500 hover:text-white transition-colors",children:a.jsx(La,{size:14})})]}),a.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Amount ($)"}),a.jsx("input",{type:"number",step:"0.01",value:o,onChange:M=>u(M.target.value),placeholder:"500.00",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20",autoFocus:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Source"}),a.jsx("input",{value:d,onChange:M=>h(M.target.value),placeholder:"Subscription",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Month"}),a.jsx("select",{value:f,onChange:M=>p(M.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:GZ.map((M,S)=>a.jsx("option",{value:S+1,children:M},S))})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Year"}),a.jsx("input",{type:"number",value:x,onChange:M=>g(M.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20"})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Notes"}),a.jsx("textarea",{value:b,onChange:M=>w(M.target.value),placeholder:"Optional notes",rows:2,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none"})]}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx("button",{type:"button",onClick:t,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:N||!o,className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:N?"Saving...":e?"Update":"Add entry"})]})]})})}function MY(){const{data:e,loading:t,refetch:l}=we("/api/whatsapp/connections"),i=e==null?void 0:e.connections,[o,u]=r.useState(!1),[d,h]=r.useState(!1),[f,p]=r.useState(""),[x,g]=r.useState(!1),[b,w]=r.useState(!1),N=async()=>{u(!0);try{await me("/api/whatsapp/connect",{method:"POST"}),de("success","Connecting to WhatsApp. Check for QR code."),l()}catch{de("error","Couldn't start WhatsApp connection")}finally{u(!1)}},E=async()=>{h(!0);try{await me("/api/whatsapp/disconnect",{method:"POST"}),de("success","WhatsApp disconnected"),l()}catch{de("error","Couldn't disconnect WhatsApp")}finally{h(!1)}},j=async()=>{if(f.trim()){g(!0);try{await me("/api/whatsapp/chats",{method:"POST",body:JSON.stringify({chatId:f.trim()})}),de("success","Chat added to allowed list"),p(""),w(!1),l()}catch{de("error","Couldn't add chat")}finally{g(!1)}}},A=(i==null?void 0:i.filter(S=>S.connectionId))??[],Z=!t&&A.length===0,M=A.find(S=>S.status==="connected"||S.status==="active");return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Messaging",subtitle:"WhatsApp and messaging channel connections",action:M?a.jsxs("button",{onClick:E,disabled:d,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:[d?a.jsx(ct,{size:14,className:"animate-spin"}):a.jsx(Z7,{size:14}),"Disconnect"]}):a.jsxs("button",{onClick:N,disabled:o,className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:[o?a.jsx(ct,{size:14,className:"animate-spin"}):a.jsx(C7,{size:14}),"Connect WhatsApp"]})}),t?a.jsx(We,{count:3}):Z?a.jsx(hn,{icon:A1,title:"No messaging channels connected",description:"Connect WhatsApp to let your agents communicate through messaging apps.",capabilities:[{icon:C7,label:"QR pairing",description:"Scan to connect"},{icon:A1,label:"Chat filtering",description:"Control which chats agents can access"},{icon:Z7,label:"Easy management",description:"Connect and disconnect anytime"}],action:{label:"Connect WhatsApp",onClick:N}}):a.jsxs("div",{className:"space-y-6",children:[a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:A.map((S,_)=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-green-500/10 flex items-center justify-center",children:a.jsx(A1,{size:20,className:"text-green-400"})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium",children:S.phoneNumber||S.label||"WhatsApp"}),a.jsx("p",{className:"text-xs text-neutral-500",children:S.status==="connected"?"Connected":"No activity yet"})]})]}),a.jsx(ft,{status:S.status==="connected"?"active":S.status})]},S.connectionId??_))}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider",children:"Allowed chats"}),a.jsxs("button",{onClick:()=>w(!b),className:"flex items-center gap-1 text-xs text-neutral-400 hover:text-white transition-colors",children:[a.jsx(Mt,{size:12})," Add chat"]})]}),a.jsx(pa,{children:b&&a.jsx(Ve.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mb-3 overflow-hidden",children:a.jsxs("div",{className:"flex gap-2",children:[a.jsx("input",{value:f,onChange:S=>p(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"}),a.jsx("button",{onClick:j,disabled:x||!f.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:x?"Adding...":"Add"}),a.jsx("button",{onClick:()=>{w(!1),p("")},className:"text-neutral-500 hover:text-white transition-colors px-2",children:a.jsx(La,{size:14})})]})})}),a.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."})]})]})]})}const SY=120*1e3;function LA(e){if(e.status!=="connected")return!1;const t=e.last_health_at||e.last_seen_at||e.last_seen;if(!t)return!1;const l=/Z$|[+-]\d\d:?\d\d$/.test(t)?new Date(t):new Date(t.replace(" ","T")+"Z");return Date.now()-l.getTime()<SY&&(e.consecutive_failures??0)===0}function kA(e){const t=/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"),l=Date.now()-t.getTime(),i=Math.floor(l/6e4);if(i<1)return"just now";if(i<60)return`${i}m ago`;const o=Math.floor(i/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function ZY(){const{data:e,loading:t,refetch:l}=we("/api/peers"),[i,o]=r.useState(""),[u,d]=r.useState(!1),[h,f]=r.useState(null),[p,x]=r.useState(null),[g,b]=r.useState(null),[w,N]=r.useState(!1),[E,j]=r.useState([]),[A,Z]=r.useState(!1),M=r.useMemo(()=>{if(!e)return[];if(!i.trim())return e;const L=i.toLowerCase();return e.filter(D=>D.name.toLowerCase().includes(L)||D.base_url.toLowerCase().includes(L))},[e,i]),S=r.useMemo(()=>e?{total:e.length,online:e.filter(LA).length}:{total:0,online:0},[e]),_=async L=>{f(L);try{await me(`/api/peers/${L}/test`,{method:"POST"}),de("success","Peer is reachable"),l()}catch{de("error","Peer unreachable"),l()}finally{f(null)}},T=async L=>{x(L),Z(!0);try{const D=await me(`/api/peers/${L.id}/agents`);j(D.data||[])}catch{j([])}finally{Z(!1)}},V=async()=>{if(g){N(!0);try{await me(`/api/peers/${g.id}`,{method:"DELETE"}),de("success","Peer removed"),l()}catch{de("error","Couldn't remove peer")}finally{N(!1),b(null)}}},H=!t&&(!e||e.length===0);return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Peers",subtitle:"Workspace-to-workspace connections",action:a.jsxs("button",{onClick:()=>d(!0),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Mt,{size:14})," Add peer"]})}),t?a.jsx(We,{count:3}):H?a.jsx(hn,{icon:Zm,title:"No peer connections",description:"Connect to other ohwow workspaces to delegate tasks across devices.",capabilities:[{icon:Zm,label:"Task delegation",description:"Send tasks to remote agents"},{icon:s$,label:"Agent discovery",description:"Browse remote agent capabilities"},{icon:vS,label:"Health checks",description:"Monitor peer connectivity"},{icon:ym,label:"Bidirectional",description:"Two-way communication"}],action:{label:"Add your first peer",onClick:()=>d(!0)}}):a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-6",children:[a.jsx(_t,{label:"Total peers",value:S.total}),a.jsx(_t,{label:"Online",value:S.online,color:"text-success"})]}),a.jsxs("div",{className:"relative mb-4",children:[a.jsx(xa,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:i,onChange:L=>o(L.target.value),placeholder:"Search peers...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:M.map(L=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("button",{className:"min-w-0 mr-3 text-left flex-1",onClick:()=>T(L),children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:`w-2 h-2 rounded-full ${LA(L)?"bg-success":"bg-neutral-500"}`}),a.jsx("p",{className:"text-sm font-medium truncate",children:L.name})]}),a.jsxs("p",{className:"text-xs text-neutral-400 ml-4",children:[L.base_url,(L.last_health_at||L.last_seen_at||L.last_seen)&&a.jsxs("span",{className:"ml-2",children:["· seen ",kA(L.last_health_at||L.last_seen_at||L.last_seen)]})]})]}),a.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[a.jsx(ft,{status:L.status}),a.jsx("button",{onClick:()=>T(L),className:"text-neutral-400 hover:text-white transition-colors",children:a.jsx(kn,{size:14})}),a.jsx("button",{onClick:()=>_(L.id),disabled:h===L.id,className:"text-neutral-400 hover:text-white transition-colors disabled:opacity-50",children:a.jsx(ss,{size:14,className:h===L.id?"animate-spin":""})}),a.jsx("button",{onClick:()=>b(L),className:"text-neutral-400 hover:text-critical transition-colors",children:a.jsx(Yt,{size:14})})]})]},L.id))})]}),u&&a.jsx(CY,{onClose:()=>d(!1),onSuccess:()=>{l(),d(!1)}}),p&&a.jsx(va,{open:!0,onClose:()=>{x(null),j([])},title:`Peer: ${p.name}`,maxWidth:"max-w-lg",children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"bg-white/5 rounded-lg p-3 space-y-2 text-sm",children:[a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-neutral-400",children:"URL"}),a.jsx("span",{className:"font-medium break-all",children:p.base_url})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-neutral-400",children:"Status"}),a.jsx(ft,{status:p.status})]}),p.last_seen&&a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-neutral-400",children:"Last seen"}),a.jsx("span",{className:"font-medium",children:kA(p.last_seen)})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider mb-2",children:"Remote agents"}),A?a.jsx(We,{count:2}):E.length===0?a.jsx("p",{className:"text-xs text-neutral-500",children:"No agents found or peer is unreachable."}):a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:E.map(L=>a.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium",children:L.name}),a.jsx("p",{className:"text-xs text-neutral-500",children:L.role})]}),a.jsx(ft,{status:L.status})]},L.id))})]})]})}),a.jsx(b0,{open:!!g,onClose:()=>b(null),onConfirm:V,title:"Remove peer",message:`Remove "${g==null?void 0:g.name}"? You can re-add it later.`,confirmLabel:"Remove",loading:w})]})}function CY({onClose:e,onSuccess:t}){const[l,i]=r.useState(""),[o,u]=r.useState(""),[d,h]=r.useState(""),[f,p]=r.useState(!1),x=async g=>{if(g.preventDefault(),!(!l.trim()||!o.trim())){p(!0);try{await me("/api/peers",{method:"POST",body:JSON.stringify({name:l.trim(),base_url:o.trim(),token:d.trim()||void 0})}),de("success","Peer added"),t()}catch{de("error","Couldn't add peer")}finally{p(!1)}}};return a.jsx(va,{open:!0,onClose:e,title:"Add peer",maxWidth:"max-w-md",children:a.jsxs("form",{onSubmit:x,className:"space-y-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),a.jsx("input",{value:l,onChange:g=>i(g.target.value),placeholder:"My other device",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20",autoFocus:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Base URL"}),a.jsx("input",{value:o,onChange:g=>u(g.target.value),placeholder:"http://192.168.1.100:7700",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Token (optional)"}),a.jsx("input",{type:"password",value:d,onChange:g=>h(g.target.value),placeholder:"Peer auth token",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[a.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:f||!l.trim()||!o.trim(),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:f?"Adding...":"Add peer"})]})]})})}const HY=["","#ef4444","#f97316","#eab308","#22c55e","#3b82f6"],VY=r.memo(function({id:t,data:l,selected:i,handleProps:o}){const u=l;return a.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:[a.jsx(Pa,{nodeId:t,handleId:"target",type:"target",position:"top",handleProps:o}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:HY[u.autonomyLevel]||"#666"}}),a.jsx("span",{className:"text-sm font-medium text-zinc-200 truncate",children:u.name})]}),u.role&&a.jsx("p",{className:"text-xs text-zinc-500 mt-0.5 truncate",children:u.role}),a.jsx(Pa,{nodeId:t,handleId:"source",type:"source",position:"bottom",handleProps:o})]})}),_Y={organ_system:"#3b82f6",tissue:"#8b5cf6",microbiome:"#10b981"},TY=r.memo(function({id:t,data:l,selected:i,handleProps:o}){const u=l,d=_Y[u.systemType]||"#3b82f6";return a.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:[a.jsx(Pa,{nodeId:t,handleId:"target",type:"target",position:"top",handleProps:o}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"text-sm font-semibold text-zinc-200 truncate",children:u.name}),a.jsxs("span",{className:"text-[10px] bg-zinc-800 text-zinc-400 rounded px-1.5 py-0.5 shrink-0 ml-2",children:[u.agentCount," ",u.agentCount===1?"agent":"agents"]})]}),u.telos&&a.jsx("p",{className:"text-xs text-zinc-500 mt-0.5 truncate",children:u.telos}),a.jsx(Pa,{nodeId:t,handleId:"source",type:"source",position:"bottom",handleProps:o})]})}),LY={coordination:"#3b82f6",delegation:"#f97316",nurture:"#22c55e",symbiotic:"#8b5cf6",immune:"#ef4444"},RA=r.memo(function({path:t,data:l,sourceX:i,sourceY:o,targetX:u,targetY:d}){const[h,f]=r.useState(!1);if((l==null?void 0:l.edgeType)==="membership")return a.jsxs("g",{children:[a.jsx("path",{d:t,fill:"none",stroke:"transparent",strokeWidth:12}),a.jsx("path",{d:t,fill:"none",stroke:"#525252",strokeWidth:1,strokeDasharray:"4 3",opacity:.5})]});const x=l,g=LY[(x==null?void 0:x.synapseType)||""]||"#666",b=1+((x==null?void 0:x.strength)||.5)*3,w=(x==null?void 0:x.origin)==="emergent",N=i!=null&&u!=null?(i+u)/2:0,E=o!=null&&d!=null?(o+d)/2:0;return a.jsxs("g",{onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),style:{pointerEvents:"all"},children:[a.jsx("path",{d:t,fill:"none",stroke:"transparent",strokeWidth:12}),a.jsx("path",{d:t,fill:"none",stroke:g,strokeWidth:b,strokeDasharray:w?"6 4":void 0,opacity:h?1:.7}),h&&(x==null?void 0:x.synapseType)&&a.jsxs("g",{transform:`translate(${N}, ${E})`,children:[a.jsx("rect",{x:-40,y:-10,width:80,height:20,rx:4,fill:"#18181b",stroke:g,strokeWidth:.5,opacity:.95}),a.jsxs("text",{x:0,y:4,textAnchor:"middle",fill:g,fontSize:10,fontFamily:"system-ui, sans-serif",children:[x.synapseType," ",Math.round((x.strength||0)*100),"%"]})]})]})});function kY(e){const t=[],l=[];for(const i of e.organSystems)t.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)t.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:t,edges:l}}function RY(e,t){if(e.length===0)return e;const l=new Qi.graphlib.Graph;l.setDefaultEdgeLabel(()=>({})),l.setGraph({rankdir:"TB",nodesep:60,ranksep:80,marginx:40,marginy:40});for(const i of e){const o=i.width||(i.type==="organSystem"?240:220),u=i.height||(i.type==="organSystem"?60:70);l.setNode(i.id,{width:o,height:u})}for(const i of t)l.setEdge(i.source,i.target);return Qi.layout(l),e.map(i=>{const o=l.node(i.id);if(!o)return i;const u=i.width||220,d=i.height||70;return{...i,position:{x:o.x-u/2,y:o.y-d/2}}})}const DY={agent:VY,organSystem:TY},OY={synapse:RA,membership:RA};function FY(){const e=ga(["agent:upserted","agent:removed","department:upserted","department:removed"]),{data:t,loading:l}=we("/api/org/topology",[e]),[i,o]=r.useState(null),{nodes:u,edges:d}=r.useMemo(()=>{if(!t)return{nodes:[],edges:[]};const p=kY(t);return{nodes:RY(p.nodes,p.edges),edges:p.edges}},[t]),h=r.useCallback((p,x)=>{o(p)},[]),f=r.useCallback(()=>{o(null)},[]);return l?a.jsx("div",{className:"flex items-center justify-center h-64 text-zinc-500",children:"Loading topology..."}):u.length===0?a.jsxs("div",{className:"flex flex-col items-center justify-center h-64 text-zinc-500",children:[a.jsx("p",{className:"text-lg mb-1",children:"No agents or departments yet"}),a.jsx("p",{className:"text-sm text-zinc-600",children:"Create agents and departments to see the org topology"})]}):a.jsx("div",{className:"h-[600px] border border-zinc-800 rounded-lg overflow-hidden",children:a.jsx(IZ,{nodes:u,edges:d,selectedNodeId:i,nodeTypes:DY,edgeTypes:OY,onNodeClick:h,onPaneClick:f,fitViewOnMount:!0})})}const zY=[{id:"departments",label:"Departments"},{id:"members",label:"Members"},{id:"topology",label:"Topology"}];function $Y(){const[e,t]=r.useState("departments");return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Team",subtitle:"Departments and team members"}),a.jsx("div",{className:"mb-6",children:a.jsx(q1,{tabs:zY,activeTab:e,onTabChange:t,layoutId:"team-tab"})}),e==="departments"&&a.jsx(qY,{}),e==="members"&&a.jsx(BY,{}),e==="topology"&&a.jsx(FY,{})]})}function qY(){const{data:e,loading:t,refetch:l}=we("/api/departments"),[i,o]=r.useState(!1),[u,d]=r.useState(null),[h,f]=r.useState(null),[p,x]=r.useState(!1),g=async()=>{if(h){x(!0);try{await me(`/api/departments/${h.id}`,{method:"DELETE"}),de("success","Department deleted"),l()}catch{de("error","Couldn't delete department")}finally{x(!1),f(null)}}};return t?a.jsx(We,{count:3}):e!=null&&e.length?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"flex justify-end mb-4",children:a.jsxs("button",{onClick:()=>{d(null),o(!0)},className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[a.jsx(Mt,{size:14})," Add department"]})}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(b=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium",children:b.name}),b.description&&a.jsx("p",{className:"text-xs text-neutral-400",children:b.description})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("button",{onClick:()=>{d(b),o(!0)},className:"text-neutral-400 hover:text-white transition-colors",children:a.jsx(oo,{size:13})}),a.jsx("button",{onClick:()=>f(b),className:"text-neutral-400 hover:text-critical transition-colors",children:a.jsx(Yt,{size:13})})]})]},b.id))}),i&&a.jsx(IY,{dept:u,onClose:()=>{o(!1),d(null)},onSuccess:()=>{l(),o(!1),d(null)}}),a.jsx(b0,{open:!!h,onClose:()=>f(null),onConfirm:g,title:"Delete department",message:`Delete "${h==null?void 0:h.name}"?`,confirmLabel:"Delete",loading:p})]}):a.jsx(hn,{icon:Ki,title:"No departments yet",description:"Create departments to organize your agents and team members.",capabilities:[{icon:Ki,label:"Organization",description:"Group agents by function"},{icon:mS,label:"Team structure",description:"Define team hierarchy"}],action:{label:"Create department",onClick:()=>{d(null),o(!0)}}})}function IY({dept:e,onClose:t,onSuccess:l}){const[i,o]=r.useState((e==null?void 0:e.name)||""),[u,d]=r.useState((e==null?void 0:e.description)||""),[h,f]=r.useState(!1),p=async x=>{if(x.preventDefault(),!!i.trim()){f(!0);try{const g={name:i.trim(),description:u.trim()||null};e?(await me(`/api/departments/${e.id}`,{method:"PUT",body:JSON.stringify(g)}),de("success","Department updated")):(await me("/api/departments",{method:"POST",body:JSON.stringify(g)}),de("success","Department created")),l()}catch{de("error",e?"Couldn't update department":"Couldn't create department")}finally{f(!1)}}};return a.jsx(va,{open:!0,onClose:t,title:e?"Edit department":"New department",maxWidth:"max-w-md",children:a.jsxs("form",{onSubmit:p,className:"space-y-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),a.jsx("input",{value:i,onChange:x=>o(x.target.value),placeholder:"Engineering",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20",autoFocus:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description"}),a.jsx("input",{value:u,onChange:x=>d(x.target.value),placeholder:"What this department does",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[a.jsx("button",{type:"button",onClick:t,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:h||!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 BY(){const{data:e,loading:t,refetch:l}=we("/api/team-members"),{data:i}=we("/api/departments"),[o,u]=r.useState(!1),[d,h]=r.useState(null),[f,p]=r.useState(null),[x,g]=r.useState(!1),b=N=>{var E;return!N||!i?null:((E=i.find(j=>j.id===N))==null?void 0:E.name)||null},w=async()=>{if(f){g(!0);try{await me(`/api/team-members/${f.id}`,{method:"DELETE"}),de("success","Member removed"),l()}catch{de("error","Couldn't remove member")}finally{g(!1),p(null)}}};return t?a.jsx(We,{count:3}):e!=null&&e.length?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"flex justify-end mb-4",children:a.jsxs("button",{onClick:()=>{h(null),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:[a.jsx(Mt,{size:14})," Add member"]})}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(N=>{var E;return a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-xs font-bold",children:(E=N.name[0])==null?void 0:E.toUpperCase()}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium",children:N.name}),a.jsxs("p",{className:"text-xs text-neutral-400",children:[N.role||"No role",b(N.department_id)&&a.jsxs("span",{className:"ml-2",children:["· ",b(N.department_id)]}),N.email&&a.jsxs("span",{className:"ml-2",children:["· ",N.email]})]})]})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("button",{onClick:()=>{h(N),u(!0)},className:"text-neutral-400 hover:text-white transition-colors",children:a.jsx(oo,{size:13})}),a.jsx("button",{onClick:()=>p(N),className:"text-neutral-400 hover:text-critical transition-colors",children:a.jsx(Yt,{size:13})})]})]},N.id)})}),o&&a.jsx(PY,{member:d,departments:i||[],onClose:()=>{u(!1),h(null)},onSuccess:()=>{l(),u(!1),h(null)}}),a.jsx(b0,{open:!!f,onClose:()=>p(null),onConfirm:w,title:"Remove member",message:`Remove "${f==null?void 0:f.name}"?`,confirmLabel:"Remove",loading:x})]}):a.jsx(hn,{icon:Vm,title:"No team members yet",description:"Add team members to track human collaborators alongside your AI agents.",capabilities:[{icon:Vm,label:"Profiles",description:"Name, email, role"},{icon:Ki,label:"Departments",description:"Assign to departments"}],action:{label:"Add team member",onClick:()=>{h(null),u(!0)}}})}function PY({member:e,departments:t,onClose:l,onSuccess:i}){const[o,u]=r.useState((e==null?void 0:e.name)||""),[d,h]=r.useState((e==null?void 0:e.email)||""),[f,p]=r.useState((e==null?void 0:e.role)||""),[x,g]=r.useState((e==null?void 0:e.department_id)||""),[b,w]=r.useState(!1),N=async E=>{if(E.preventDefault(),!!o.trim()){w(!0);try{const j={name:o.trim(),email:d.trim()||null,role:f.trim()||null,department_id:x||null};e?(await me(`/api/team-members/${e.id}`,{method:"PUT",body:JSON.stringify(j)}),de("success","Member updated")):(await me("/api/team-members",{method:"POST",body:JSON.stringify(j)}),de("success","Member added")),i()}catch{de("error",e?"Couldn't update member":"Couldn't add member")}finally{w(!1)}}};return a.jsx(va,{open:!0,onClose:l,title:e?"Edit member":"New member",maxWidth:"max-w-md",children:a.jsxs("form",{onSubmit:N,className:"space-y-3",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),a.jsx("input",{value:o,onChange: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})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Email"}),a.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"})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Role"}),a.jsx("input",{value: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"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Department"}),a.jsxs("select",{value:x,onChange:E=>g(E.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[a.jsx("option",{value:"",children:"None"}),t.map(E=>a.jsx("option",{value:E.id,children:E.name},E.id))]})]})]}),a.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[a.jsx("button",{type:"button",onClick:l,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:b||!o.trim(),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:b?"Saving...":e?"Update":"Add member"})]})]})})}function UY(){const[e,t]=r.useState(null),[l,i]=r.useState(!0),[o,u]=r.useState(null),[d,h]=r.useState(null),[f,p]=r.useState(!1),[x,g]=r.useState(!1),b=async()=>{try{const E=await fetch("/browser/health");if(E.ok){const j=await E.json();t({active:!0,url:j.url,title:j.title})}else t({active:!1})}catch{t({active:!1})}finally{i(!1)}};r.useEffect(()=>{b()},[]);const w=async()=>{p(!0);try{const E=await fetch("/browser/session/screenshot");if(E.ok){const j=await E.blob(),A=URL.createObjectURL(j);u(A)}else de("error","Couldn't capture screenshot")}catch{de("error","Browser session not active")}finally{p(!1)}},N=async()=>{g(!0);try{const E=await me("/browser/session/snapshot");h(typeof E.data=="string"?E.data:JSON.stringify(E.data,null,2))}catch{de("error","Couldn't get accessibility snapshot")}finally{g(!1)}};return l?a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Browser",subtitle:"Browser automation viewer"}),a.jsxs("div",{className:"flex items-center gap-2 text-neutral-400 text-sm",children:[a.jsx(ct,{size:14,className:"animate-spin"})," Checking browser status..."]})]}):a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Browser",subtitle:"Browser automation viewer",action:a.jsxs("button",{onClick:b,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-neutral-400 border border-white/10 rounded-md hover:bg-white/5 hover:text-white transition-colors",children:[a.jsx(ss,{size:14})," Refresh"]})}),e!=null&&e.active?a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[a.jsx("span",{className:"w-2 h-2 rounded-full bg-success animate-pulse"}),a.jsx("span",{className:"text-sm font-medium",children:"Active session"})]}),e.url&&a.jsx("p",{className:"text-xs text-neutral-400 truncate ml-5",children:e.url}),e.title&&a.jsx("p",{className:"text-xs text-neutral-500 ml-5",children:e.title})]}),a.jsxs("div",{className:"flex gap-3",children:[a.jsxs("button",{onClick:w,disabled: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?a.jsx(ct,{size:14,className:"animate-spin"}):a.jsx(Am,{size:14}),"Capture screenshot"]}),a.jsxs("button",{onClick:N,disabled:x,className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white/5 border border-white/10 text-white rounded-md hover:bg-white/10 disabled:opacity-50 transition-colors",children:[x?a.jsx(ct,{size:14,className:"animate-spin"}):a.jsx(H7,{size:14}),"Accessibility tree"]})]}),o&&a.jsxs("div",{children:[a.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-2",children:"Screenshot"}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg overflow-hidden",children:a.jsx("img",{src:o,alt:"Browser screenshot",className:"w-full"})})]}),d&&a.jsxs("div",{children:[a.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-2",children:"Accessibility tree"}),a.jsx("pre",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4 text-xs text-neutral-400 overflow-x-auto max-h-96 whitespace-pre-wrap font-mono",children:d})]})]}):a.jsx(hn,{icon:wm,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:Am,label:"Screenshots",description:"Capture the current page"},{icon:H7,label:"Accessibility tree",description:"View page structure"},{icon:wm,label:"Live view",description:"See what your agent sees"}]})]})}function DA(e){const t=/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"),l=Date.now()-t.getTime();if(l<0)return"just now";const i=Math.floor(l/6e4);if(i<1)return"just now";if(i<60)return`${i}m ago`;const o=Math.floor(i/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}const GY=["briefing","suggestion","insight","anomaly","proactive"];function YY(){const{data:e,loading:t}=we("/api/activity"),l=r.useMemo(()=>e?e.filter(u=>GY.some(d=>(u.activity_type??"").toLowerCase().includes(d))):[],[e]),i=r.useMemo(()=>e?e.filter(u=>u.activity_type==="task_completed").slice(0,10):[],[e]),o=!t&&l.length===0&&i.length===0;return a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Briefings",subtitle:"Agent insights and daily digest"}),t?a.jsx(We,{count:4}):o?a.jsx(hn,{icon:Em,title:"No briefings yet",description:"Briefings appear here as your agents generate insights, detect anomalies, and complete work.",capabilities:[{icon:Em,label:"Daily digest",description:"Summary of completed work"},{icon:S7,label:"Suggestions",description:"Agent improvement ideas"},{icon:on,label:"Proactive insights",description:"Anomalies and opportunities"}]}):a.jsxs("div",{className:"space-y-6",children:[l.length>0&&a.jsxs("div",{children:[a.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Insights"}),a.jsx("div",{className:"space-y-2",children:l.map((u,d)=>a.jsx(Ve.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:d*.04},className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4",children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500/10 flex items-center justify-center shrink-0 mt-0.5",children:a.jsx(S7,{size:16,className:"text-amber-400"})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx("p",{className:"text-sm font-medium",children:u.title}),a.jsx("span",{className:"text-[10px] bg-white/[0.06] px-1.5 py-0.5 rounded text-neutral-400",children:u.activity_type})]}),u.description&&a.jsx("p",{className:"text-xs text-neutral-400",children:u.description}),a.jsxs("p",{className:"text-[10px] text-neutral-500 mt-1.5 flex items-center gap-1",children:[a.jsx(Y0,{size:10})," ",DA(u.created_at)]})]})]})},u.id))})]}),i.length>0&&a.jsxs("div",{children:[a.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Recent completions"}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:i.map(u=>a.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[a.jsxs("div",{className:"min-w-0 mr-3",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:u.title}),u.description&&a.jsx("p",{className:"text-xs text-neutral-400 truncate",children:u.description})]}),a.jsx("span",{className:"text-xs text-neutral-500 shrink-0",children:DA(u.created_at)})]},u.id))})]})]})]})}function KY(){const[e,t]=r.useState(""),[l,i]=r.useState(""),[o,u]=r.useState(!1),[d,h]=r.useState(null),f=r.useRef(null),p=async()=>{if(e.trim()){u(!0),h(null);try{const b=(await me("/api/podcast/generate",{method:"POST",body:JSON.stringify({content:e.trim(),title:l.trim()||void 0})})).data.jobId;h({jobId:b,status:"queued"}),de("success","Podcast generation started"),x(b)}catch{de("error","Couldn't start podcast generation")}finally{u(!1)}}},x=g=>{f.current&&clearInterval(f.current),f.current=setInterval(async()=>{try{const b=await me(`/api/podcast/status/${g}`);h(b.data),(b.data.status==="completed"||b.data.status==="failed")&&(f.current&&clearInterval(f.current),f.current=null,b.data.status==="completed"?de("success","Podcast ready"):de("error",b.data.error||"Generation failed"))}catch{f.current&&clearInterval(f.current),f.current=null}},3e3)};return r.useEffect(()=>()=>{f.current&&clearInterval(f.current)},[]),a.jsxs("div",{className:"p-6 max-w-4xl",children:[a.jsx(ze,{title:"Podcast",subtitle:"Generate audio content from text"}),a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4 space-y-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Title (optional)"}),a.jsx("input",{value:l,onChange:g=>i(g.target.value),placeholder:"Episode title",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Content"}),a.jsx("textarea",{value:e,onChange:g=>t(g.target.value),placeholder:"Paste the text you want to convert into a podcast episode...",rows:8,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none"})]}),a.jsx("div",{className:"flex justify-end",children:a.jsxs("button",{onClick:p,disabled:o||!e.trim(),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:[o?a.jsx(ct,{size:14,className:"animate-spin"}):a.jsx(an,{size:14}),"Generate podcast"]})})]}),d&&a.jsxs("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[d.status==="queued"||d.status==="processing"?a.jsx(ct,{size:18,className:"text-blue-400 animate-spin"}):d.status==="completed"?a.jsx(V7,{size:18,className:"text-success"}):a.jsx(an,{size:18,className:"text-critical"}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium capitalize",children:d.status}),d.status==="processing"&&d.progress!=null&&a.jsxs("p",{className:"text-xs text-neutral-400",children:[Math.round(d.progress*100),"% complete"]})]})]}),d.status==="processing"&&d.progress!=null&&a.jsx("div",{className:"h-1.5 bg-white/[0.06] rounded-full overflow-hidden mb-3",children:a.jsx("div",{className:"h-full bg-blue-500 rounded-full transition-all duration-500",style:{width:`${Math.round(d.progress*100)}%`}})}),d.status==="completed"&&d.audioUrl&&a.jsx("audio",{controls:!0,className:"w-full mt-2",src:d.audioUrl,children:"Your browser does not support audio playback."}),d.status==="failed"&&d.error&&a.jsx("p",{className:"text-xs text-critical",children:d.error})]}),!e&&!d&&a.jsx(hn,{icon:an,title:"AI Podcast Generator",description:"Convert any text content into a natural-sounding podcast episode using local TTS models.",capabilities:[{icon:an,label:"Text to speech",description:"Natural-sounding voices"},{icon:V7,label:"Audio output",description:"Download or play in browser"},{icon:Nf,label:"Multiple voices",description:"Different speakers for dialogue"}],variant:"compact"})]})]})}const XY=3e3,QY=3e4,JY=500,WY=8,eK=.6,tK=.2,aK=2e3;function nK(e){const{confirmMs:t=XY,absentMs:l=QY,frameIntervalMs:i=JY}=e,[o,u]=r.useState(!1),[d,h]=r.useState("inactive"),[f,p]=r.useState(0),[x,g]=r.useState(null),b=r.useRef(null),w=r.useRef(null),N=r.useRef(null),E=r.useRef(null),j=r.useRef(null),A=r.useRef(null),Z=r.useRef(null),M=r.useRef(null),S=r.useRef(null),_=r.useRef(!1),T=r.useRef(null),V=r.useRef(null),H=r.useRef(null),L=r.useRef("inactive"),D=r.useRef(0),B=r.useRef(0),K=r.useRef(e.onPresenceChange);r.useEffect(()=>{K.current=e.onPresenceChange});const J=r.useCallback(()=>{if(typeof globalThis.FaceDetector<"u")try{return Z.current=new FaceDetector({fastMode:!0,maxDetectedFaces:1}),!0}catch{console.warn("[CameraPresence] FaceDetector API not available")}return!1},[]),se=r.useCallback(Y=>{const X=Y.data,k=A.current;if(!k)return A.current=new Uint8ClampedArray(X),!0;let U=0,W=0;for(let F=0;F<X.length;F+=64){const z=X[F]*.299+X[F+1]*.587+X[F+2]*.114,ae=k[F]*.299+k[F+1]*.587+k[F+2]*.114;U+=Math.abs(z-ae),W++}return A.current=new Uint8ClampedArray(X),U/W>WY},[]),le=r.useCallback(async()=>{const Y=b.current;if(!Y||Y.readyState<2)return;w.current||(w.current=document.createElement("canvas"));const X=w.current,k=X.getContext("2d",{willReadFrequently:!0});if(!k)return;X.width=160,X.height=120,k.drawImage(Y,0,0,160,120);const U=k.getImageData(0,0,160,120);if(!se(U)){const z=Date.now();L.current!=="absent"&&L.current!=="inactive"&&z-B.current>l&&(L.current="absent",h("absent"),p(0),K.current({type:"departure",confidence:0}));return}let W=!1,$=0;if(Z.current)try{const z=await createImageBitmap(X),ae=await Z.current.detect(z);if(z.close(),ae.length>0){W=!0;const fe=ae[0],pe=fe.boundingBox.width*fe.boundingBox.height/19200;$=Math.min(1,pe*10+.5)}}catch{W=!0,$=.4}else W=!0,$=.5;if(!W||$<eK){const z=Date.now();L.current!=="absent"&&L.current!=="inactive"&&z-B.current>l&&(L.current="absent",h("absent"),p(0),K.current({type:"departure",confidence:0}));return}const F=Date.now();B.current=F,p($),L.current==="absent"||L.current==="inactive"?(L.current="detected",h("detected"),D.current=F):L.current==="detected"&&F-D.current>=t&&(L.current="confirmed",h("confirmed"),K.current({type:"arrival",confidence:$}))},[se,t,l]),O=r.useCallback(async()=>{try{if(N.current)for(const X of N.current.getTracks())X.stop();const Y=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user",width:{ideal:320},height:{ideal:240}},audio:!1});N.current=Y,b.current&&(b.current.srcObject=Y,await b.current.play());try{"wakeLock"in navigator&&(E.current=await navigator.wakeLock.request("screen"))}catch{}console.info("[CameraPresence] Camera restarted after background")}catch(Y){console.error({err:Y},"[CameraPresence] Camera restart failed")}},[]),q=r.useCallback(async()=>{try{g(null);const Y=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user",width:{ideal:320},height:{ideal:240}},audio:!1});N.current=Y,b.current&&(b.current.srcObject=Y,await b.current.play());try{"wakeLock"in navigator&&(E.current=await navigator.wakeLock.request("screen"))}catch{console.warn("[CameraPresence] Wake lock not available")}J();let X=i;try{"getBattery"in navigator&&(await navigator.getBattery()).level<tK&&(X=aK)}catch{}L.current="absent",h("absent"),u(!0),j.current=setInterval(()=>{le().catch(()=>{})},X);const k=()=>{document.hidden&&b.current&&document.pictureInPictureEnabled&&(document.pictureInPictureElement||b.current.requestPictureInPicture().catch(()=>{}))};document.addEventListener("visibilitychange",k),T.current=()=>document.removeEventListener("visibilitychange",k),"locks"in navigator&&navigator.locks.request("eye-camera-lock",{mode:"exclusive"},()=>new Promise(W=>{H.current=W})).catch(()=>{}),M.current=setInterval(()=>{if(N.current){const W=N.current.getVideoTracks()[0];W&&W.readyState==="ended"&&(_.current=!0,console.warn("[CameraPresence] Camera stream died in background"))}},1e4);const U=()=>{!document.hidden&&_.current&&L.current!=="inactive"&&(_.current=!1,console.info("[CameraPresence] Restarting camera after background death"),O())};document.addEventListener("visibilitychange",U),V.current=()=>document.removeEventListener("visibilitychange",U),S.current=setInterval(()=>{(L.current==="confirmed"||L.current==="detected")&&K.current({type:"still_here",confidence:.5})},3e4)}catch(Y){const X=Y instanceof Error?Y.message:"Camera access denied";g(X),console.error({err:Y},"[CameraPresence] Start failed")}},[i,J,le,O]),I=r.useCallback(()=>{var Y,X;if(j.current&&(clearInterval(j.current),j.current=null),N.current){for(const k of N.current.getTracks())k.stop();N.current=null}E.current&&(E.current.release().catch(()=>{}),E.current=null),M.current&&(clearInterval(M.current),M.current=null),S.current&&(clearInterval(S.current),S.current=null),(Y=T.current)==null||Y.call(T),T.current=null,(X=V.current)==null||X.call(V),V.current=null,H.current&&(H.current(),H.current=null),_.current=!1,document.pictureInPictureElement&&document.exitPictureInPicture().catch(()=>{}),A.current=null,L.current="inactive",h("inactive"),u(!1),p(0)},[]);return r.useEffect(()=>()=>{I()},[I]),{isActive:o,phase:d,confidence:f,error:x,start:q,stop:I,videoRef:b}}const rK="modulepreload",sK=function(e){return"/ui/"+e},OA={},lK=function(t,l,i){let o=Promise.resolve();if(l&&l.length>0){let d=function(p){return Promise.all(p.map(x=>Promise.resolve(x).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),f=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));o=d(l.map(p=>{if(p=sK(p),p in OA)return;OA[p]=!0;const x=p.endsWith(".css"),g=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const b=document.createElement("link");if(b.rel=x?"stylesheet":rK,x||(b.as="script"),b.crossOrigin="",b.href=p,f&&b.setAttribute("nonce",f),document.head.appendChild(b),x)return new Promise((w,N)=>{b.addEventListener("load",w),b.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function u(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return o.then(d=>{for(const h of d||[])h.status==="rejected"&&u(h.reason);return t().catch(u)})},iK=10,oK=.65,cK=3,uK={Open_Palm:1500,Thumb_Up:3e3,Thumb_Down:3e3,Pointing_Up:2e3,Victory:5e3,ILoveYou:5e3},dK=2e3,hK=120,FA=3,mK="https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.32/wasm",fK="https://storage.googleapis.com/mediapipe-models/gesture_recognizer/gesture_recognizer/float16/latest/gesture_recognizer.task";let _n=null,Si=!1,g1=null;const d1=[];async function pK(){if(_n)return _n;if(g1)throw new Error(g1);if(Si)return new Promise((e,t)=>{d1.push(()=>{_n?e(_n):t(new Error(g1||"Load failed"))})});Si=!0;try{const e=await lK(()=>import("./vision_bundle-CCf8DAA1.js"),[]),t=await e.FilesetResolver.forVisionTasks(mK);return _n=await e.GestureRecognizer.createFromModelPath(t,fK),await _n.setOptions({runningMode:"VIDEO"}),Si=!1,console.info("[HandGestures] GestureRecognizer loaded"),d1.forEach(l=>l()),d1.length=0,_n}catch(e){throw g1=e instanceof Error?e.message:"Failed to load gesture model",Si=!1,d1.forEach(l=>l()),d1.length=0,e}}function xK(e){const{videoRef:t,enabled:l=!1,targetFps:i=iK,minConfidence:o=oK,onGesture:u}=e,[d,h]=r.useState(!!_n),[f,p]=r.useState(null),[x,g]=r.useState(null),[b,w]=r.useState(g1),N=r.useRef(null),E=r.useRef(0),j=r.useRef(i),A=r.useRef(u),Z=r.useRef(o),M=r.useRef({name:"",count:0}),S=r.useRef({});r.useEffect(()=>{A.current=u}),r.useEffect(()=>{Z.current=o},[o]),r.useEffect(()=>{j.current=i},[i]);const _=r.useCallback(()=>{const V=_n;if(!V)return;const H=()=>{var W,$,F;if(!t.current||document.hidden){N.current=requestAnimationFrame(H);return}const L=performance.now(),D=1e3/j.current;if(L-E.current<D){N.current=requestAnimationFrame(H);return}const B=t.current;if(B.readyState<2){N.current=requestAnimationFrame(H);return}const K=performance.now();let J;try{J=V.recognizeForVideo(B,L)}catch{N.current=requestAnimationFrame(H);return}const se=performance.now()-K;E.current=L,se>hK&&j.current>FA&&(j.current=Math.max(FA,Math.floor(j.current/2)),console.warn(`[HandGestures] Slowing down — inference ${Math.round(se)}ms, new FPS: ${j.current}`));const le=J.landmarks??[];g(le.length>0?le:null);const O=J.gestures,q=J.handedness;if(!O||O.length===0||!O[0]||O[0].length===0){p(null),M.current={name:"",count:0},N.current=requestAnimationFrame(H);return}const I=O[0][0],Y=I.categoryName??I.displayName??"",X=I.score??0;if(Y==="None"||X<Z.current){p(null),M.current={name:"",count:0},N.current=requestAnimationFrame(H);return}const k=(($=(W=q==null?void 0:q[0])==null?void 0:W[0])==null?void 0:$.categoryName)==="Right"?"Right":"Left",U={name:Y,confidence:X,handedness:k,landmarks:le[0]??[]};if(p(U),M.current.name===Y?M.current.count++:M.current={name:Y,count:1},M.current.count>=cK){const z=S.current[Y]||0,ae=uK[Y]??dK;L-z>ae&&(S.current[Y]=L,(F=A.current)==null||F.call(A,U))}N.current=requestAnimationFrame(H)};N.current=requestAnimationFrame(H)},[t]),T=r.useCallback(()=>{N.current!==null&&(cancelAnimationFrame(N.current),N.current=null),queueMicrotask(()=>{p(null),g(null)}),M.current={name:"",count:0}},[]);return r.useEffect(()=>{if(!l){T();return}let V=!1;return(async()=>{try{if(await pK(),V)return;h(!0),w(null),_()}catch(H){if(V)return;const L=H instanceof Error?H.message:"Gesture model failed to load";w(L),console.error("[HandGestures] Failed to initialize",H)}})(),()=>{V=!0,T()}},[l,_,T]),{isReady:d,currentGesture:f,landmarks:x,error:b}}const gK=[[0,1],[1,2],[2,3],[3,4],[0,5],[5,6],[6,7],[7,8],[0,9],[9,10],[10,11],[11,12],[0,13],[13,14],[14,15],[15,16],[0,17],[17,18],[18,19],[19,20],[5,9],[9,13],[13,17]];function vK({landmarks:e,videoRef:t}){const l=r.useRef(null);return r.useEffect(()=>{const i=t.current,o=l.current;if(!i||!o)return;const u=()=>{const h=i.clientWidth,f=i.clientHeight;o.width!==h&&(o.width=h),o.height!==f&&(o.height=f)};u();const d=new ResizeObserver(u);return d.observe(i),()=>d.disconnect()},[t]),r.useEffect(()=>{const i=l.current,o=t.current;if(!i||!o)return;const u=i.getContext("2d");if(!u||(u.clearRect(0,0,i.width,i.height),!e||e.length===0))return;const d=i.width,h=i.height,f=o.videoWidth||d,p=o.videoHeight||h,x=Math.max(d/f,h/p),g=f*x,b=p*x,w=(g-d)/2,N=(b-h)/2,E=j=>[d-(j.x*g-w),j.y*b-N];for(const j of e){if(j.length<21)continue;u.strokeStyle="rgba(0, 220, 255, 0.3)",u.lineWidth=1.5,u.lineCap="round";for(const[Z,M]of gK){const[S,_]=E(j[Z]),[T,V]=E(j[M]);u.beginPath(),u.moveTo(S,_),u.lineTo(T,V),u.stroke()}for(const Z of j){const[M,S]=E(Z);u.beginPath(),u.arc(M,S,2.5,0,Math.PI*2),u.fillStyle="rgba(0, 220, 255, 0.5)",u.fill()}const A=[4,8,12,16,20];for(const Z of A){const[M,S]=E(j[Z]);u.beginPath(),u.arc(M,S,4,0,Math.PI*2),u.fillStyle="rgba(0, 220, 255, 0.6)",u.fill()}}},[e,t]),a.jsx("canvas",{ref:l,className:"absolute inset-0 w-full h-full pointer-events-none z-[7]"})}const bK={Open_Palm:{label:"Open Palm",icon:a.jsx(sM,{size:14,weight:"fill"}),color:"text-cyan-400"},Closed_Fist:{label:"Fist",icon:a.jsx(Lz,{size:14,weight:"fill"}),color:"text-neutral-400"},Pointing_Up:{label:"Raise Hand",icon:a.jsx(Rn,{size:14,weight:"fill"}),color:"text-amber-400"},Thumb_Up:{label:"Thumbs Up",icon:a.jsx(Sf,{size:14,weight:"fill"}),color:"text-green-400"},Thumb_Down:{label:"Thumbs Down",icon:a.jsx(Mf,{size:14,weight:"fill"}),color:"text-red-400"},Victory:{label:"Peace",icon:a.jsx(Rn,{size:14,weight:"fill"}),color:"text-violet-400"},ILoveYou:{label:"Love",icon:a.jsx(lo,{size:14,weight:"fill"}),color:"text-pink-400"}},yK={mute:{icon:a.jsx(V1,{size:32,weight:"fill"}),color:"text-red-400",bg:"bg-red-500/10"},unmute:{icon:a.jsx(an,{size:32,weight:"fill"}),color:"text-green-400",bg:"bg-green-500/10"},"thumbs-up":{icon:a.jsx(Sf,{size:32,weight:"fill"}),color:"text-green-400",bg:"bg-green-500/10"},"thumbs-down":{icon:a.jsx(Mf,{size:32,weight:"fill"}),color:"text-red-400",bg:"bg-red-500/10"},interrupt:{icon:a.jsx(Rn,{size:32,weight:"fill"}),color:"text-amber-400",bg:"bg-amber-500/10"},peace:{icon:a.jsx(Rn,{size:32,weight:"fill"}),color:"text-violet-400",bg:"bg-violet-500/10"},love:{icon:a.jsx(lo,{size:32,weight:"fill"}),color:"text-pink-400",bg:"bg-pink-500/10"}};function wK({gesture:e,action:t}){const[l,i]=r.useState(null);r.useEffect(()=>{if(!t)return;queueMicrotask(()=>i({action:t,fading:!1}));const d=setTimeout(()=>{i(f=>f?{...f,fading:!0}:null)},1e3),h=setTimeout(()=>{i(null)},1500);return()=>{clearTimeout(d),clearTimeout(h)}},[t==null?void 0:t.ts]);const o=e?bK[e]:null,u=l?yK[l.action.type]:null;return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"fixed top-16 right-4 z-20 flex flex-col items-end gap-2",children:o&&a.jsxs("div",{className:`flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-black/40 backdrop-blur-sm border border-white/[0.08] transition-all duration-300 ${o.color}`,children:[o.icon,a.jsx("span",{className:"text-[11px] font-medium",children:o.label})]})}),u&&l&&a.jsx("div",{className:`fixed inset-0 z-30 flex items-center justify-center pointer-events-none transition-opacity duration-500 ${l.fading?"opacity-0":"opacity-100"}`,children:a.jsxs("div",{className:`flex flex-col items-center gap-2 p-6 rounded-3xl ${u.bg} backdrop-blur-sm border border-white/[0.06] gesture-pop`,style:{animation:l.fading?"none":"gesture-pop 0.3s ease-out"},children:[a.jsx("div",{className:u.color,children:u.icon}),a.jsx("span",{className:`text-xs font-medium ${u.color} opacity-70`,children:l.action.type.replace("-"," ")})]})})]})}const AK=5e3,jK=8e3;function NK(){return""}function EK(){const[e,t]=r.useState(!0),[l,i]=r.useState(null),[o,u]=r.useState(!1),d=r.useRef(0),h=r.useRef(null),f=r.useRef(0),p=r.useRef(!1),x=r.useRef(null),g=2,b=r.useCallback(async X=>{const k=Date.now();if(k-d.current<AK)return;d.current=k;const U=un();try{await fetch(`${NK()}/api/presence/event`,{method:"POST",headers:{"Content-Type":"application/json",...U?{Authorization:`Bearer ${U}`}:{}},body:JSON.stringify({eventType:X.type,confidence:X.confidence})})}catch{}},[]),{isActive:w,phase:N,confidence:E,error:j,start:A,stop:Z,videoRef:M}=nK({onPresenceChange:b}),S=DS("orchestrator"),{tier:_}=co(),T=S.state!=="idle",V=S.state==="speaking",H=r.useCallback(X=>{switch(X.name){case"Open_Palm":T&&S.toggleMute(),i({type:S.isMuted?"unmute":"mute",ts:Date.now()});break;case"Thumb_Up":i({type:"thumbs-up",ts:Date.now()});break;case"Thumb_Down":i({type:"thumbs-down",ts:Date.now()});break;case"Pointing_Up":V&&S.toggleMute(),i({type:"interrupt",ts:Date.now()});break;case"Victory":i({type:"peace",ts:Date.now()});break;case"ILoveYou":i({type:"love",ts:Date.now()});break}},[T,V,S]),{currentGesture:L,landmarks:D,isReady:B,error:K}=xK({videoRef:M,enabled:w,onGesture:H}),J=r.useMemo(()=>w?V?"speaking":S.state==="connecting"?"processing":S.state==="listening"?"listening":"watching":"inactive",[w,V,S.state]);r.useEffect(()=>{(S.transcript||S.response)&&(u(!0),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>u(!1),jK))},[S.transcript,S.response]);const se=r.useRef(0);r.useEffect(()=>{T?(se.current=Date.now(),p.current=!1):(se.current>0&&Date.now()-se.current>5e3&&(f.current=0),se.current=0,p.current=!1)},[T]),r.useEffect(()=>{N!=="confirmed"&&(p.current=!1,f.current=0)},[N]);const le=r.useRef(S.startCall);r.useEffect(()=>{le.current=S.startCall},[S.startCall]),r.useEffect(()=>{e&&N==="confirmed"&&!T&&!p.current&&!S.error&&f.current<g&&(p.current=!0,f.current++,le.current().catch(()=>{p.current=!1}))},[N,e,T,S.error]);const O=async()=>{w?(S.endCall(),Z()):await A()},q=()=>{T?S.endCall():S.startCall()},I=j||S.error||K,Y=!!(S.transcript||S.response);return a.jsxs("div",{className:"fixed inset-0 bg-black flex flex-col select-none touch-manipulation overflow-hidden",children:[a.jsx("video",{ref:M,autoPlay:!0,playsInline:!0,muted:!0,className:"absolute inset-0 w-full h-full object-cover transition-opacity duration-700",style:{filter:"brightness(0.18) saturate(0.6)",opacity:w?1:0,transform:"scaleX(-1)"}}),w&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/60 via-transparent to-black/70 pointer-events-none z-[5]"}),a.jsx("div",{className:"absolute inset-0 bg-black/20 pointer-events-none z-[5]"})]}),a.jsx(vK,{landmarks:D,videoRef:M}),a.jsx(wK,{gesture:(L==null?void 0:L.name)??null,action:l}),a.jsxs("div",{className:"relative z-10 shrink-0 flex items-center gap-3 px-4 pt-[env(safe-area-inset-top,12px)] pb-2",children:[a.jsxs("button",{onClick:O,className:`relative w-12 h-12 shrink-0 rounded-full flex items-center justify-center border transition-all duration-500 ${N==="confirmed"?"border-green-500/30 bg-green-500/[0.08]":N==="detected"?"border-amber-500/30 bg-amber-500/[0.06]":w?"border-white/10 bg-white/[0.04]":"border-white/[0.06] bg-white/[0.02]"}`,children:[a.jsx(MK,{state:J,size:20}),N==="detected"&&a.jsx("div",{className:"absolute inset-0 rounded-full border border-amber-400/30 animate-ping"})]}),a.jsxs("div",{className:"flex flex-col min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(SK,{phase:N,isActive:w}),T&&a.jsx("span",{className:"text-[10px] text-violet-400/60 shrink-0",children:S.isMuted?"muted":V?"speaking":S.state==="connecting"?"thinking":"live"}),T&&S.isMuted&&a.jsx(V1,{size:12,weight:"fill",className:"text-red-400/70 shrink-0"})]}),I&&a.jsx("p",{className:"text-[10px] text-red-400/70 truncate mt-0.5",children:I})]}),a.jsxs("div",{className:"ml-auto flex items-center gap-1.5 shrink-0",children:[B&&a.jsx("span",{className:"px-2 py-0.5 text-[10px] text-cyan-400/60 rounded-full border border-cyan-500/15 bg-cyan-500/[0.04]",children:"gestures"}),w&&a.jsxs("button",{onClick:()=>t(X=>!X),className:`px-2 py-0.5 text-[10px] rounded-full border transition-colors ${e?"text-green-400/70 border-green-500/20 bg-green-500/[0.06]":"text-neutral-600 border-white/[0.06]"}`,children:["auto ",e?"on":"off"]})]})]}),w&&N!=="inactive"&&a.jsx("div",{className:"relative z-10 shrink-0 h-px bg-white/[0.04] mx-4",children:a.jsx("div",{className:`h-full transition-all duration-500 ${N==="confirmed"?"bg-green-500/40":N==="detected"?"bg-amber-500/40":"bg-white/[0.06]"}`,style:{width:`${Math.round(E*100)}%`}})}),a.jsxs("div",{ref:x,className:"relative z-10 flex-1 overflow-y-auto overscroll-contain px-4 py-3 space-y-1",children:[!Y&&a.jsx(a.Fragment,{children:w?a.jsx(ZK,{gesturesReady:B,isVoiceActive:T,gestureError:K}):a.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center px-8",children:[a.jsx(BE,{size:32,weight:"light",className:"text-white/10 mb-3"}),a.jsx("p",{className:"text-sm text-neutral-600",children:"Tap the eye to start"})]})}),Y&&a.jsxs("div",{className:`flex flex-col gap-2 transition-opacity duration-500 ${o?"opacity-100":"opacity-30"}`,children:[S.transcript&&a.jsx("div",{className:"flex justify-end",children:a.jsxs("div",{className:"max-w-[85%] px-3 py-2 rounded-2xl rounded-br-md bg-white/[0.08] text-neutral-300 text-sm",children:[S.transcript,a.jsx("span",{className:"inline-block w-1 h-3 ml-0.5 bg-neutral-500 animate-pulse rounded-full"})]})}),S.response&&a.jsx("div",{className:"flex justify-start",children:a.jsxs("div",{className:"max-w-[85%] px-3 py-2 rounded-2xl rounded-bl-md bg-violet-500/[0.08] text-neutral-200 text-sm leading-relaxed",children:[S.response,V&&a.jsx("span",{className:"inline-block w-1 h-3 ml-0.5 bg-violet-400 animate-pulse rounded-full"})]})})]})]}),a.jsxs("div",{className:"relative z-10 shrink-0 border-t border-white/[0.04] bg-black/60 backdrop-blur-md pb-[env(safe-area-inset-bottom,8px)]",children:[a.jsxs("div",{className:"flex items-center justify-center gap-5 py-3 px-4",children:[a.jsx("button",{onClick:O,className:`w-14 h-14 rounded-full flex items-center justify-center transition-all duration-300 ${w?"bg-violet-600/20 border-2 border-violet-500/40 active:bg-violet-600/40":"bg-white/5 border-2 border-white/10 active:bg-white/10"}`,children:w?a.jsx(kn,{size:24,weight:"fill",className:"text-violet-400"}):a.jsx(kn,{size:24,weight:"light",className:"text-neutral-500"})}),w&&a.jsx("button",{onClick:q,className:`w-14 h-14 rounded-full flex items-center justify-center transition-all duration-300 ${T&&S.isMuted?"bg-red-600/20 border-2 border-red-500/40 active:bg-red-600/40":T?"bg-green-600/20 border-2 border-green-500/40 active:bg-green-600/40":"bg-white/5 border-2 border-white/10 active:bg-white/10"}`,children:T&&S.isMuted?a.jsx(V1,{size:24,weight:"fill",className:"text-red-400"}):T?a.jsx(an,{size:24,weight:"fill",className:"text-green-400"}):a.jsx(an,{size:24,weight:"light",className:"text-neutral-500"})})]}),a.jsxs("div",{className:"flex items-center justify-between px-4 pb-1",children:[a.jsxs("div",{className:"flex items-center gap-1.5",children:[w?a.jsx(vS,{size:12,className:"text-green-500/50"}):a.jsx(i$,{size:12,className:"text-neutral-700"}),a.jsxs("span",{className:"text-[10px] text-neutral-700",children:[a.jsx("span",{className:"text-green-500/50",children:_==="free"?"local":"cloud"}),S.mode?` · ${S.mode}`:""]})]}),a.jsx("span",{className:"text-[10px] text-neutral-800",children:w?T&&S.isMuted?"muted · open palm to unmute":T?"tap mic to stop":"tap mic to talk":"tap eye to start"})]})]})]})}function MK({state:e,size:t}){switch(e){case"speaking":return a.jsx(Uz,{size:t,weight:"fill",className:"text-violet-400 animate-pulse"});case"processing":return a.jsx(ct,{size:t,weight:"bold",className:"text-violet-400 animate-spin"});case"listening":return a.jsx(kn,{size:t,weight:"fill",className:"text-green-400"});case"watching":return a.jsx(kn,{size:t,weight:"light",className:"text-white/30 animate-pulse"});default:return a.jsx(BE,{size:t,weight:"light",className:"text-white/15"})}}function SK({phase:e,isActive:t}){if(!t)return a.jsx("span",{className:"text-xs text-neutral-600",children:"Inactive"});switch(e){case"confirmed":return a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx(t$,{size:14,weight:"fill",className:"text-green-400"}),a.jsx("span",{className:"text-xs text-green-400/80",children:"Present"})]});case"detected":return a.jsxs("div",{className:"flex items-center gap-1.5 animate-pulse",children:[a.jsx(Vm,{size:14,weight:"fill",className:"text-amber-400"}),a.jsx("span",{className:"text-xs text-amber-400/80",children:"Detecting..."})]});case"absent":return a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx(a$,{size:14,weight:"light",className:"text-neutral-600"}),a.jsx("span",{className:"text-xs text-neutral-600",children:"No one here"})]});default:return a.jsx("span",{className:"text-xs text-neutral-600",children:"Starting..."})}}function ZK({gesturesReady:e,isVoiceActive:t,gestureError:l}){const i=[{icon:a.jsx(sM,{size:16,weight:"fill",className:"text-cyan-400"}),label:"Open palm",action:"Mute / unmute"},{icon:a.jsx(Sf,{size:16,weight:"fill",className:"text-green-400"}),label:"Thumbs up",action:"Good response"},{icon:a.jsx(Mf,{size:16,weight:"fill",className:"text-red-400"}),label:"Thumbs down",action:"Bad response"},{icon:a.jsx(Rn,{size:16,weight:"fill",className:"text-amber-400"}),label:"Point up",action:"Interrupt AI"},{icon:a.jsx(Rn,{size:16,weight:"fill",className:"text-violet-400"}),label:"Peace sign",action:"Easter egg"},{icon:a.jsx(lo,{size:16,weight:"fill",className:"text-pink-400"}),label:"I love you",action:"Easter egg"}];return a.jsxs("div",{className:"h-full flex flex-col items-center justify-center px-6",children:[a.jsx("p",{className:"text-sm text-neutral-500 mb-4",children:t?"Speak naturally or use gestures":"Tap mic to talk, or use gestures"}),a.jsx("div",{className:"w-full max-w-xs space-y-1.5",children:i.map(o=>a.jsxs("div",{className:"flex items-center gap-3 px-3 py-1.5 rounded-lg bg-white/[0.02] border border-white/[0.04]",children:[a.jsx("div",{className:"w-6 flex justify-center shrink-0",children:o.icon}),a.jsx("span",{className:"text-xs text-neutral-400 flex-1",children:o.label}),a.jsx("span",{className:"text-[10px] text-neutral-600",children:o.action})]},o.label))}),!e&&a.jsx("div",{className:"flex items-center gap-2 mt-4",children:l?a.jsx("span",{className:"text-[10px] text-neutral-600",children:"Gestures unavailable"}):a.jsxs(a.Fragment,{children:[a.jsx(ct,{size:12,className:"text-cyan-400/40 animate-spin"}),a.jsx("span",{className:"text-[10px] text-neutral-600",children:"Loading gesture model..."})]})}),a.jsx("p",{className:"text-[10px] text-neutral-700 mt-4 text-center max-w-xs",children:"Hold any gesture steady for a moment"})]})}function Vn(e){return Number.isFinite(e)?Math.abs(e)>=1e6?`${(e/1e6).toFixed(1)}M`:Math.abs(e)>=1e3?`${(e/1e3).toFixed(1)}K`:String(e):"0"}function Pt(e){return e>=1e5?`$${(e/1e5).toFixed(1)}K`:`$${(e/100).toFixed(e>=1e3?0:2)}`}function YZ(e){if(e===null||!Number.isFinite(e))return".";const t=Math.floor(e/1e3);if(t<60)return`${t}s ago`;const l=Math.floor(t/60);if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<48?`${i}h ago`:`${Math.floor(i/24)}d ago`}function Fr(e){const t=/[zZ]|[+-]\d{2}:?\d{2}$/.test(e)?e:e.replace(" ","T")+"Z",l=new Date(t).getTime();return Number.isFinite(l)?YZ(Date.now()-l):"."}function CK(e){return e==="pass"?"text-success":e==="warning"?"text-warning":e==="fail"||e==="error"?"text-critical":"text-neutral-400"}function Rm(e){return e==="pass"?"bg-success":e==="warning"?"bg-warning":e==="fail"||e==="error"?"bg-critical":"bg-neutral-500"}function HK(e){return e?e.replace(/-/g," "):"unattributed"}function KZ(e){return e?e.replace(/[-_]/g," "):"unsourced"}const VK={"x:qualified":{color:"bg-info",label:"qualified"},"x:reached":{color:"bg-sky-400",label:"reached"},"demo:booked":{color:"bg-violet-400",label:"demo"},"trial:started":{color:"bg-amber-400",label:"trial"},"plan:paid":{color:"bg-success",label:"paid"}};function _K({heartbeat:e,ageMs:t}){const l=e==="live"?"bg-success":e==="slow"?"bg-warning":"bg-critical",i=e==="live"?"LOOP LIVE":e==="slow"?"LOOP SLOW":"LOOP IDLE";return a.jsxs("div",{className:"inline-flex items-center gap-2",children:[a.jsxs("span",{className:"relative inline-flex w-2.5 h-2.5",children:[a.jsx(Ve.span,{className:`absolute inset-0 rounded-full ${l}`,animate:{opacity:e==="live"?[1,.4,1]:1},transition:{duration:1.6,repeat:e==="live"?1/0:0}}),e==="live"&&a.jsx("span",{className:`absolute inset-0 rounded-full ${l} opacity-40 animate-ping`})]}),a.jsx("span",{className:"text-[10px] uppercase tracking-widest text-neutral-400",children:i}),a.jsxs("span",{className:"text-[10px] text-neutral-600",children:["· last call ",YZ(t)]})]})}function d0({label:e,value:t,sub:l,accent:i="text-white",hint:o}){return a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 bg-white/[0.01]",children:[a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:e}),o&&a.jsx("span",{className:"text-[10px] text-neutral-600",title:o,children:"ⓘ"})]}),a.jsx("p",{className:`text-2xl font-semibold mt-1 tabular-nums ${i}`,children:t}),l&&a.jsx("p",{className:"text-[11px] text-neutral-500 mt-0.5",children:l})]})}function TK({funnel:e}){const t=[{key:"leads",label:"CRM leads",total:e.leads.total,h24:e.leads.h24,color:"bg-neutral-400"},{key:"qualified",label:"Qualified",total:e.qualified.total,h24:e.qualified.h24,color:"bg-info"},{key:"contacted",label:"Contacted",total:e.contacted.total,h24:e.contacted.h24,color:"bg-teal-400"},{key:"reached",label:"Engaged",total:e.reached.total,h24:e.reached.h24,color:"bg-sky-400"},{key:"demos",label:"Demo booked",total:e.demos.total,h24:e.demos.h24,color:"bg-violet-400"},{key:"trials",label:"Trial started",total:e.trials.total,h24:e.trials.h24,color:"bg-amber-400"},{key:"paid",label:"Paid",total:e.paid.total,h24:e.paid.h24,color:"bg-success"}],l=Math.max(1,...t.map(i=>i.total));return a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:"Sales funnel"}),a.jsxs("p",{className:"text-[10px] text-neutral-600 mt-0.5",children:["Lead → Qualified → Contacted → Engaged → Demo → Trial → Paid · counts = all time · ",a.jsx("span",{className:"text-success",children:"24h delta shown in green"})]})]}),a.jsx(Be,{to:"/contacts",className:"text-xs text-neutral-400 hover:text-white transition-colors",children:"Browse contacts →"})]}),a.jsx("div",{className:"space-y-1.5",children:t.map((i,o)=>{const u=i.total/l*100,d=o===0?null:t[o-1],h=d&&d.total>0?i.total/d.total*100:null;return a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-28 text-xs text-neutral-400 truncate",children:i.label}),a.jsxs("div",{className:"flex-1 relative h-6 rounded bg-white/[0.03] overflow-hidden",children:[a.jsx(Ve.div,{initial:{width:0},animate:{width:`${u}%`},transition:{duration:.5,ease:"easeOut"},className:`h-full ${i.color} opacity-60`}),a.jsxs("div",{className:"absolute inset-0 flex items-center px-2 text-xs tabular-nums",children:[a.jsx("span",{className:"text-white font-medium",children:i.total}),i.h24>0&&a.jsxs("span",{className:"text-success ml-2",children:["+",i.h24," · 24h"]}),h!==null&&i.total>0&&a.jsxs("span",{className:"ml-auto text-[10px] text-neutral-400",children:[h.toFixed(0),"% from ",d==null?void 0:d.label.toLowerCase()]})]})]})]},i.key)})})]})}function LK({rows:e}){const t=e.reduce((i,o)=>i+o.c,0)||1,l=["bg-info","bg-success","bg-warning","bg-violet-400","bg-sky-400","bg-neutral-500"];return a.jsxs("div",{children:[a.jsx("div",{className:"flex h-2 rounded-full overflow-hidden bg-white/[0.04]",children:e.map((i,o)=>a.jsx("div",{style:{width:`${i.c/t*100}%`},className:l[o%l.length],title:`${i.source}: ${i.c}`},i.source))}),a.jsx("div",{className:"flex flex-wrap gap-x-4 gap-y-1 mt-2 text-[11px]",children:e.map((i,o)=>a.jsxs("span",{className:"text-neutral-300",children:[a.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full mr-1 align-middle ${l[o%l.length]}`}),KZ(i.source)," ",a.jsx("span",{className:"text-neutral-500 ml-1",children:i.c})]},i.source))})]})}function kK(e){const t=[];for(const l of e.pipeline.nextSteps.slice(0,6)){const i=l.stepType==="bug_report"?"bg-critical":l.stepType==="feature_request"?"bg-violet-400":l.stepType==="question"||l.stepType==="follow_up"?"bg-info":"bg-neutral-500",o=l.status==="dispatched"&&l.dispatchedKind?`${l.status} → ${l.dispatchedKind}`:l.status;t.push({ts:l.createdAt,kind:"next_step",color:i,label:`next_step · ${l.stepType.replace(/_/g," ")}`,title:`${l.contactName??"contact"} · ${o}`,body:l.text})}for(const l of e.pipeline.crmMilestones){const i=VK[l.kind??""]??{color:"bg-info",label:l.kind??"event"};t.push({ts:l.ts,kind:"milestone",color:i.color,label:i.label,title:l.contact_name??l.title,body:l.title})}for(const l of e.findings.recent.slice(0,8))t.push({ts:l.created_at,kind:"finding",color:Rm(l.verdict),label:l.experiment_id??"finding",title:l.subject??l.experiment_id??"finding",body:l.summary??""});for(const l of e.patches.recent.slice(0,5))t.push({ts:l.proposed_at,kind:"patch",color:l.outcome==="held"?"bg-success":l.outcome==="reverted"?"bg-critical":"bg-info",label:`patch · ${l.patch_mode??l.tier??""}`.trim(),title:l.commit_sha?l.commit_sha.substring(0,8):l.id.substring(0,8),body:`${l.outcome} · finding ${l.finding_id.substring(0,8)}`});for(const l of e.business.recentReflexes)t.push({ts:l.created_at,kind:"reflex",color:"bg-orange-400",label:`reflex · ${l.metric}`,title:l.action_type,body:l.outcome??`severity ${l.severity.toFixed(2)}`});return t.sort((l,i)=>l.ts<i.ts?1:-1).slice(0,20)}function RK(){var A,Z,M,S,_,T,V;const[e,t]=r.useState(0);r.useEffect(()=>{const H=setInterval(()=>t(L=>L+1),5e3);return()=>clearInterval(H)},[]);const{data:l,loading:i,error:o}=we("/api/pulse",[e]),u=r.useMemo(()=>l?kK(l):[],[l]);if(o)return a.jsxs("div",{className:"p-6 max-w-6xl",children:[a.jsx("h1",{className:"text-2xl font-semibold mb-2",children:"Pulse"}),a.jsxs("div",{className:"border border-critical/30 bg-critical/5 rounded-lg p-4 text-sm text-critical",children:["Couldn't load pulse. ",o]})]});if(i&&!l)return a.jsxs("div",{className:"p-6 max-w-6xl",children:[a.jsx("h1",{className:"text-2xl font-semibold mb-2",children:"Pulse"}),a.jsx("p",{className:"text-sm text-neutral-500",children:"Warming up."})]});if(!l)return null;const{pipeline:d}=l,h=l.findings.activeByVerdict,f=((A=l.patches.byOutcome.find(H=>H.outcome==="held"))==null?void 0:A.c)??0,p=((Z=l.patches.byOutcome.find(H=>H.outcome==="reverted"))==null?void 0:Z.c)??0,x=((M=l.patches.byOutcome.find(H=>H.outcome==="pending"))==null?void 0:M.c)??0,g=f+p+x,b=l.llm.h24.cost_cents,w=d.revenue.h24,N=b>0?w/b:0,E=((S=d.outbound.dmMessages24h.find(H=>H.direction==="inbound"))==null?void 0:S.c)??0,j=((_=d.outbound.dmMessages24h.find(H=>H.direction==="outbound"))==null?void 0:_.c)??0;return a.jsxs("div",{className:"p-6 max-w-6xl",children:[a.jsxs("div",{className:"flex items-center justify-between mb-6",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-2xl font-semibold",children:"Pulse"}),a.jsx("p",{className:"text-sm text-neutral-500 mt-0.5",children:"The system's goal is revenue. Every cycle below is measured against it."})]}),a.jsx(_K,{heartbeat:l.heartbeat,ageMs:l.heartbeatAgeMs})]}),a.jsxs("div",{className:"border border-success/20 bg-success/[0.03] rounded-lg p-5 mb-6",children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsx("p",{className:"text-[11px] text-success uppercase tracking-wider",children:"Revenue · the north star"}),a.jsx(Be,{to:"/revenue",className:"text-xs text-neutral-400 hover:text-white transition-colors",children:"Ledger →"})]}),a.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"Last 24h"}),a.jsx("p",{className:"text-3xl font-semibold tabular-nums text-success mt-1",children:Pt(d.revenue.h24)}),a.jsxs("p",{className:"text-[11px] text-neutral-500 mt-0.5",children:["burn ",Pt(b)," · ",N>0?`${N.toFixed(2)}×`:"0×"," ratio"]})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"7 days"}),a.jsx("p",{className:"text-2xl font-semibold tabular-nums mt-1",children:Pt(d.revenue.d7)}),a.jsxs("p",{className:"text-[11px] text-neutral-500 mt-0.5",children:["avg ",Pt(Math.round(d.revenue.d7/7))," / day"]})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"30 days"}),a.jsx("p",{className:"text-2xl font-semibold tabular-nums mt-1",children:Pt(d.revenue.d30)}),a.jsxs("p",{className:"text-[11px] text-neutral-500 mt-0.5",children:[d.funnel.paid.total," paid contacts"]})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"Lifetime"}),a.jsx("p",{className:"text-2xl font-semibold tabular-nums mt-1",children:Pt(d.revenue.total)}),a.jsxs("p",{className:"text-[11px] text-neutral-500 mt-0.5",children:["MRR ",((T=l.business.latestVitals)==null?void 0:T.mrr)!==null&&((V=l.business.latestVitals)==null?void 0:V.mrr)!==void 0?`$${l.business.latestVitals.mrr.toLocaleString()}`:"not set"]})]})]})]}),a.jsx("div",{className:"border border-white/[0.08] rounded-lg p-5 mb-6 bg-white/[0.01]",children:a.jsx(TK,{funnel:d.funnel})}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6",children:[a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 bg-white/[0.01]",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-3",children:"Where leads come from"}),d.contactsBySource.length===0?a.jsx("p",{className:"text-xs text-neutral-600",children:"No contacts yet."}):a.jsx(LK,{rows:d.contactsBySource})]}),a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 bg-white/[0.01]",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-3",children:"Outbound dispatch · 24h"}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"X posts"}),a.jsx("p",{className:"text-xl font-semibold tabular-nums mt-1",children:d.outbound.postsLast24h.reduce((H,L)=>H+L.c,0)}),a.jsxs("p",{className:"text-[11px] text-neutral-500 mt-0.5",children:[d.outbound.postsAllTime," all time"]})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"DM msgs"}),a.jsx("p",{className:"text-xl font-semibold tabular-nums mt-1",children:E+j}),a.jsxs("p",{className:"text-[11px] text-neutral-500 mt-0.5",children:[E," in · ",j," out"]})]}),a.jsxs("div",{className:"col-span-2",children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider mb-1",children:"DM threads linked to CRM"}),a.jsx("div",{className:"h-1.5 rounded-full bg-white/[0.04] overflow-hidden",children:a.jsx("div",{className:"h-full bg-success/60",style:{width:`${d.outbound.dmThreads>0?d.outbound.dmThreadsWithContact/d.outbound.dmThreads*100:0}%`}})}),a.jsxs("p",{className:"text-[11px] text-neutral-500 mt-1",children:[d.outbound.dmThreadsWithContact," of ",d.outbound.dmThreads," threads attributed"]})]})]})]}),a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 bg-white/[0.01]",children:[a.jsxs("div",{className:"flex items-start justify-between mb-3",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:"Human-in-the-loop"}),a.jsx(Be,{to:"/approvals",className:"text-[10px] text-neutral-400 hover:text-white transition-colors",children:"Queue →"})]}),a.jsx("p",{className:`text-3xl font-semibold tabular-nums ${d.approvalsPending>0?"text-warning":"text-neutral-400"}`,children:d.approvalsPending}),a.jsx("p",{className:"text-[11px] text-neutral-500 mt-1",children:"tasks awaiting approval. The loop stalls on the slowest human."})]})]}),a.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-6",children:[a.jsx(d0,{label:"Cost per lead",value:Pt(d.efficiency.costPerLeadCents),sub:`${d.funnel.leads.total} leads · ${Pt(d.efficiency.totalBurnCents)} total burn`,hint:"All-time LLM burn ÷ all-time CRM leads. The loop's cost of discovering one human."}),a.jsx(d0,{label:"Cost per qualified",value:d.funnel.qualified.total>0?Pt(d.efficiency.costPerQualifiedCents):".",sub:`${d.funnel.qualified.total} qualified`,accent:d.funnel.qualified.total>0?"text-info":"text-neutral-500",hint:"Cost to produce a buyer-intent-qualified lead."}),a.jsx(d0,{label:"Cost per paid",value:d.funnel.paid.total>0?Pt(d.efficiency.costPerPaidCents):".",sub:d.funnel.paid.total>0?`${d.funnel.paid.total} paid`:"no paid conversions yet",accent:d.funnel.paid.total>0?"text-success":"text-neutral-500",hint:"Total burn ÷ paid conversions. This is the number that has to shrink."}),a.jsx(d0,{label:"DM threads unlinked",value:d.dmHealth.threadsUnlinked,sub:`${d.dmHealth.threadsLinked} of ${d.dmHealth.threadsTotal} linked to a contact`,accent:d.dmHealth.threadsUnlinked>0?"text-warning":"text-success",hint:"Every unlinked DM thread is a lead the loop is talking to but can't route revenue events back to."})]}),d.unlinkedThreads.length>0&&a.jsxs("div",{className:"border border-warning/20 bg-warning/[0.02] rounded-lg p-5 mb-6",children:[a.jsx("div",{className:"flex items-center justify-between mb-3",children:a.jsxs("div",{children:[a.jsx("p",{className:"text-[11px] text-warning uppercase tracking-wider",children:"Unlinked DM threads · leak"}),a.jsx("p",{className:"text-[10px] text-neutral-500 mt-0.5",children:"These conversations aren't bound to a CRM contact. Without a contact row, the funnel doesn't count them and revenue can't attribute."})]})}),a.jsx("ul",{className:"divide-y divide-white/[0.04]",children:d.unlinkedThreads.map(H=>a.jsxs("li",{className:"flex items-start gap-3 py-2 text-xs",children:[a.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full mt-1.5 bg-warning flex-none"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("p",{className:"text-neutral-200 truncate font-medium",children:[H.primary_name??"Unknown sender",H.counterparty_user_id?a.jsxs("span",{className:"text-[10px] text-neutral-500 ml-2",children:["uid ",H.counterparty_user_id]}):a.jsx("span",{className:"text-[10px] text-critical ml-2",children:"no user id"})]}),H.last_preview&&a.jsxs("p",{className:"text-neutral-500 truncate mt-0.5",children:['"',H.last_preview,'"']})]}),a.jsx("span",{className:"text-[10px] text-neutral-600 flex-none tabular-nums",children:Fr(H.last_seen_at)})]},H.id))})]}),a.jsxs("div",{className:"border border-info/20 bg-info/[0.03] rounded-lg p-5 mb-6",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-[11px] text-info uppercase tracking-wider",children:"Next steps · conversation → loop"}),a.jsx("p",{className:"text-[10px] text-neutral-500 mt-0.5",children:"The analyst reads each contact's DM thread (with screenshots via vision) and extracts actionable items. The dispatcher routes them — bugs → proposal findings, follow-ups/questions → approval tasks."})]}),a.jsxs("div",{className:"flex items-center gap-3 text-[11px]",children:[a.jsxs("span",{className:"text-warning",children:["open ",d.nextStepsRollup.open]}),a.jsxs("span",{className:"text-info",children:["dispatched ",d.nextStepsRollup.dispatched]}),a.jsxs("span",{className:"text-success",children:["shipped ",d.nextStepsRollup.shipped]}),d.nextStepsRollup.confirmed>0&&a.jsxs("span",{className:"text-success font-medium",children:["· ",d.nextStepsRollup.confirmed," confirmed"]}),d.nextStepsRollup.unconfirmed>0&&a.jsxs("span",{className:"text-critical",children:["unconfirmed ",d.nextStepsRollup.unconfirmed]}),a.jsxs("span",{className:"text-neutral-500",children:["ignored ",d.nextStepsRollup.ignored]})]})]}),d.nextSteps.length===0?a.jsx("p",{className:"text-xs text-neutral-600",children:"No next-steps extracted yet. Waiting for the analyst's first tick."}):a.jsx("ul",{className:"divide-y divide-white/[0.04]",children:d.nextSteps.slice(0,12).map(H=>{const L=H.sendConfirmed===!0?"bg-success":H.sendConfirmed===!1?"bg-critical":H.status==="open"?"bg-warning":H.status==="dispatched"?"bg-info":H.status==="shipped"?"bg-success":"bg-neutral-600",D=H.urgency==="high"?"!":H.urgency==="medium"?"·":" ";return a.jsxs("li",{className:"flex items-start gap-3 py-2.5 text-xs",children:[a.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full mt-1.5 flex-none ${L}`}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[a.jsxs("span",{className:"text-[10px] uppercase tracking-wider text-neutral-500",children:[D," ",H.stepType.replace(/_/g," ")]}),H.contactId?a.jsx(Be,{to:`/contacts/${H.contactId}`,className:"text-neutral-300 font-medium truncate hover:text-white hover:underline",children:H.contactName??"Unknown"}):a.jsx("span",{className:"text-neutral-300 font-medium truncate",children:H.contactName??"Unknown"}),a.jsx("span",{className:`text-[10px] uppercase tracking-wider ${H.status==="open"?"text-warning":H.status==="dispatched"?"text-info":H.status==="shipped"?"text-success":"text-neutral-500"}`,children:H.status}),H.dispatchedKind&&a.jsxs("span",{className:"text-[10px] text-neutral-500",children:["→ ",H.dispatchedKind.replace(/_/g," ")]}),H.sendConfirmed===!0&&a.jsx("span",{className:"text-[10px] text-success uppercase tracking-wider font-medium",title:H.realMessageId,children:"✓ confirmed"}),H.sendConfirmed===!1&&a.jsx("span",{className:"text-[10px] text-critical uppercase tracking-wider font-medium",children:"✗ never landed"})]}),a.jsx("p",{className:"text-neutral-400 mt-0.5 line-clamp-2",children:H.text}),H.draftReply?a.jsxs("p",{className:"text-neutral-300 mt-1 italic line-clamp-2 border-l-2 border-info/30 pl-2",children:['"',H.draftReply,'"']}):H.suggestedAction?a.jsxs("p",{className:"text-neutral-500 mt-0.5 italic line-clamp-1",children:["→ ",H.suggestedAction]}):null]}),a.jsx("span",{className:"text-[10px] text-neutral-600 flex-none tabular-nums",children:Fr(H.createdAt)})]},H.id)})})]}),d.replyQueue.counts.pending+d.replyQueue.counts.approved+d.replyQueue.counts.autoApplied+d.replyQueue.counts.applied>0&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 mb-6 bg-white/[0.01]",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:"DM reply queue"}),a.jsx("p",{className:"text-[10px] text-neutral-600 mt-0.5",children:"Dispatched next-steps land here as x_dm_outbound approvals. The reply dispatcher consumes approved rows and sends the DM via the authenticated browser."})]}),d.replyQueue.lastShippedAt&&a.jsxs("span",{className:"text-[10px] text-success",children:["last shipped ",Fr(d.replyQueue.lastShippedAt)]})]}),a.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-2 mb-4",children:[a.jsxs("div",{className:"border border-warning/20 bg-warning/[0.04] rounded px-3 py-2",children:[a.jsx("p",{className:"text-[10px] text-warning uppercase tracking-wider",children:"Pending"}),a.jsx("p",{className:"text-lg font-semibold tabular-nums mt-0.5",children:d.replyQueue.counts.pending})]}),a.jsxs("div",{className:"border border-info/20 bg-info/[0.04] rounded px-3 py-2",children:[a.jsx("p",{className:"text-[10px] text-info uppercase tracking-wider",children:"Approved"}),a.jsx("p",{className:"text-lg font-semibold tabular-nums mt-0.5",children:d.replyQueue.counts.approved})]}),a.jsxs("div",{className:"border border-info/20 bg-info/[0.04] rounded px-3 py-2",children:[a.jsx("p",{className:"text-[10px] text-info uppercase tracking-wider",children:"Auto-applied"}),a.jsx("p",{className:"text-lg font-semibold tabular-nums mt-0.5",children:d.replyQueue.counts.autoApplied})]}),a.jsxs("div",{className:"border border-success/20 bg-success/[0.04] rounded px-3 py-2",children:[a.jsx("p",{className:"text-[10px] text-success uppercase tracking-wider",children:"Shipped"}),a.jsx("p",{className:"text-lg font-semibold tabular-nums mt-0.5",children:d.replyQueue.counts.applied})]}),a.jsxs("div",{className:"border border-critical/20 bg-critical/[0.04] rounded px-3 py-2",children:[a.jsx("p",{className:"text-[10px] text-critical uppercase tracking-wider",children:"Rejected"}),a.jsx("p",{className:"text-lg font-semibold tabular-nums mt-0.5",children:d.replyQueue.counts.rejected})]})]}),d.replyQueue.recent.length>0&&a.jsx("ul",{className:"divide-y divide-white/[0.04]",children:d.replyQueue.recent.map(H=>{const L=H.status==="pending"?"bg-warning":H.status==="approved"||H.status==="auto_applied"?"bg-info":H.status==="applied"?"bg-success":H.status==="rejected"?"bg-critical":"bg-neutral-500",D=H.status==="pending"?"text-warning":H.status==="approved"||H.status==="auto_applied"?"text-info":H.status==="applied"?"text-success":H.status==="rejected"?"text-critical":"text-neutral-500",B=a.jsxs(a.Fragment,{children:[a.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full mt-1.5 flex-none ${L}`}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:`text-[10px] uppercase tracking-wider ${D}`,children:H.status.replace("_"," ")}),a.jsx("span",{className:"text-neutral-300 truncate",children:H.contactName??"contact"})]}),a.jsxs("p",{className:"text-neutral-500 truncate mt-0.5",children:['"',H.textPreview,'"']})]}),a.jsx("span",{className:"text-[10px] text-neutral-600 flex-none tabular-nums",children:Fr(H.ts)})]});return H.conversationPair?a.jsx("li",{className:"text-xs",children:a.jsx(Be,{to:`/messages?pair=${encodeURIComponent(H.conversationPair)}`,className:"flex items-start gap-3 py-2 hover:bg-white/[0.02] -mx-2 px-2 rounded",children:B})},H.approvalId):a.jsx("li",{className:"flex items-start gap-3 py-2 text-xs",children:B},H.approvalId)})})]}),d.eventsByKind.length>0&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 mb-6 bg-white/[0.01]",children:[a.jsx("div",{className:"flex items-center justify-between mb-3",children:a.jsxs("div",{children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:"Contact events · last 30 days"}),a.jsx("p",{className:"text-[10px] text-neutral-600 mt-0.5",children:"Every meaningful pipeline interaction, whether or not it maps to a funnel stage."})]})}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-2",children:d.eventsByKind.map(H=>a.jsxs("div",{className:"border border-white/[0.06] rounded px-3 py-2 bg-white/[0.01]",children:[a.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider truncate",children:H.kind}),a.jsx("p",{className:"text-lg font-semibold tabular-nums mt-0.5",children:H.c})]},H.kind))})]}),d.revenueByContact.length>0&&a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 mb-6 bg-white/[0.01]",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-3",children:"Top revenue contributors"}),a.jsx("div",{className:"divide-y divide-white/[0.04]",children:d.revenueByContact.map(H=>a.jsxs(Be,{to:H.contact_id?`/contacts/${H.contact_id}`:"/contacts",className:"flex items-center justify-between py-2 text-sm hover:bg-white/[0.02] transition-colors px-2 -mx-2 rounded",children:[a.jsxs("span",{className:"truncate",children:[a.jsx("span",{className:"text-neutral-200",children:H.name??"Unknown"}),H.source&&a.jsx("span",{className:"text-[10px] text-neutral-500 ml-2 uppercase tracking-wider",children:KZ(H.source)})]}),a.jsx("span",{className:"tabular-nums text-success ml-4",children:Pt(H.cents)})]},H.contact_id??H.name??"unknown"))})]}),a.jsx("div",{className:"mb-3 flex items-center justify-between",children:a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:"Autonomous loop · the engine behind the funnel"})}),a.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-6",children:[a.jsx(d0,{label:"Loop Calls · 5m",value:Vn(l.llm.m5.calls),sub:`${Pt(l.llm.m5.cost_cents)} · ${Vn(l.llm.m5.tokens)} tok`,hint:"LLM calls the runtime made in the last 5 minutes"}),a.jsx(d0,{label:"Loop Calls · 1h",value:Vn(l.llm.h1.calls),sub:`${Pt(l.llm.h1.cost_cents)} · ${Vn(l.llm.h1.tokens)} tok`,accent:"text-info"}),a.jsx(d0,{label:"Findings · Active",value:Vn(l.findings.activeTotal),sub:`${Vn(l.findings.rate5m)} new/5m`,hint:"Self-bench experiments writing verdicts into the ledger"}),a.jsx(d0,{label:"Autonomous Patches",value:g,sub:`${f} held · ${p} reverted · ${x} pending`,accent:g>0?"text-success":"text-neutral-400",hint:"Patches the loop authored against its own source. Layer 5 reverts bad ones."})]}),a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 mb-6 bg-white/[0.01]",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:"Findings verdict distribution"}),a.jsx("p",{className:"text-[10px] text-neutral-600 mt-0.5",children:"active, all-time · warnings dominate when the loop is proposing, pass dominates when it's validating"})]}),a.jsx(Be,{to:"/activity",className:"text-xs text-neutral-400 hover:text-white transition-colors",children:"Browse →"})]}),a.jsx("div",{className:"flex h-2 rounded-full overflow-hidden bg-white/[0.04]",children:["pass","warning","fail","error"].map(H=>{const L=h.find(B=>B.verdict===H);if(!L)return null;const D=h.reduce((B,K)=>B+K.c,0)||1;return a.jsx("div",{style:{width:`${L.c/D*100}%`},className:Rm(H),title:`${H}: ${L.c}`},H)})}),a.jsx("div",{className:"flex items-center gap-4 mt-2 text-[11px]",children:h.map(H=>a.jsxs("span",{className:CK(H.verdict),children:[a.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full mr-1 align-middle ${Rm(H.verdict)}`}),H.verdict," ",Vn(H.c)]},H.verdict))})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 mb-6",children:[a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 bg-white/[0.01]",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-1",children:"Top models · last hour"}),a.jsx("p",{className:"text-[10px] text-neutral-600 mb-3",children:"Where the LLM budget actually went."}),l.llm.topModels.length===0?a.jsx("p",{className:"text-xs text-neutral-600",children:"No calls in the last hour."}):a.jsx("div",{className:"space-y-2",children:l.llm.topModels.map(H=>{const L=Math.max(...l.llm.topModels.map(B=>B.calls)),D=H.calls/L*100;return a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between text-xs mb-1",children:[a.jsx("span",{className:"truncate mr-2 text-neutral-300",children:H.model}),a.jsxs("span",{className:"text-neutral-500 tabular-nums",children:[Vn(H.calls)," · ",Pt(H.cost_cents)]})]}),a.jsx("div",{className:"h-1 rounded-full bg-white/[0.04] overflow-hidden",children:a.jsx("div",{className:"h-full bg-info/60",style:{width:`${D}%`}})})]},H.model)})})]}),a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 bg-white/[0.01]",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-1",children:"Experiment burn · last hour"}),a.jsx("p",{className:"text-[10px] text-neutral-600 mb-3",children:"Cost attributed per self-bench experiment. Unattributed = system calls."}),l.llm.topExperiments.length===0?a.jsx("p",{className:"text-xs text-neutral-600",children:"No attributed experiment activity."}):a.jsx("div",{className:"space-y-2",children:l.llm.topExperiments.map(H=>{const L=Math.max(...l.llm.topExperiments.map(B=>B.cost_cents||B.c)),D=(H.cost_cents||H.c)/L*100;return a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between text-xs mb-1",children:[a.jsx("span",{className:"truncate mr-2 text-neutral-300",children:HK(H.experiment_id)}),a.jsxs("span",{className:"text-neutral-500 tabular-nums",children:[Vn(H.c)," · ",Pt(H.cost_cents)]})]}),a.jsx("div",{className:"h-1 rounded-full bg-white/[0.04] overflow-hidden",children:a.jsx("div",{className:"h-full bg-warning/60",style:{width:`${D}%`}})})]},H.experiment_id)})})]})]}),a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 mb-6 bg-white/[0.01]",children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-1",children:"Homeostasis reflexes"}),a.jsx("p",{className:"text-[10px] text-neutral-600 mb-3",children:"The biological layer fires when revenue-vs-burn, bios, or load cross a threshold. Silence here means vitals are in range."}),l.business.recentReflexes.length===0?a.jsx("p",{className:"text-xs text-neutral-600",children:"No reflexes fired recently."}):a.jsx("ul",{className:"space-y-2",children:l.business.recentReflexes.map((H,L)=>a.jsxs("li",{className:"flex items-start gap-3 text-xs",children:[a.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full mt-1.5 bg-orange-400"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("p",{className:"text-neutral-200 truncate",children:[a.jsx("span",{className:"font-medium",children:H.metric}),a.jsxs("span",{className:"text-neutral-500",children:[" · ",H.action_type]})]}),a.jsxs("p",{className:"text-neutral-500 truncate",children:[H.outcome??`severity ${H.severity.toFixed(2)}`," · ",Fr(H.created_at)]})]})]},`${H.metric}-${H.created_at}-${L}`))})]}),a.jsxs("div",{className:"border border-white/[0.08] rounded-lg bg-white/[0.01]",children:[a.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-b border-white/[0.06]",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:"Live stream"}),a.jsx("p",{className:"text-[10px] text-neutral-600 mt-0.5",children:"CRM milestones · findings · patches · reflexes. newest first"})]}),a.jsx("span",{className:"text-[10px] text-neutral-600",children:"auto-refresh · 5s"})]}),a.jsx("div",{className:"divide-y divide-white/[0.04]",children:a.jsx(pa,{initial:!1,children:u.map((H,L)=>a.jsxs(Ve.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0},className:"flex items-start gap-3 px-5 py-2.5 text-xs hover:bg-white/[0.02] transition-colors",children:[a.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full mt-1.5 flex-none ${H.color}`}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"text-neutral-500 uppercase tracking-wider text-[10px]",children:H.label}),a.jsx("span",{className:"text-neutral-300 truncate",children:H.title})]}),H.body&&a.jsx("p",{className:"text-neutral-500 truncate mt-0.5",children:H.body})]}),a.jsx("span",{className:"text-[10px] text-neutral-600 flex-none tabular-nums",children:Fr(H.ts)})]},`${H.kind}-${H.ts}-${L}`))})})]})]})}const zA={delivered:{bg:"bg-success/10",text:"text-success",label:"Delivered"},approved:{bg:"bg-info/10",text:"text-info",label:"Approved"},pending_review:{bg:"bg-warning/10",text:"text-warning",label:"Pending"},rejected:{bg:"bg-critical/10",text:"text-critical",label:"Rejected"}},DK={x:NS,email:M7,gmail:M7,dm:K0},$A=50;function XZ(e){return e?/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"):new Date(NaN)}function OK(e){const t=Date.now()-XZ(e).getTime();if(t<0)return"just now";const l=Math.floor(t/1e3);if(l<30)return"just now";if(l<60)return`${l}s ago`;const i=Math.floor(l/60);if(i<60)return`${i}m ago`;const o=Math.floor(i/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function FK(e){if(e==="all")return null;const t=new Date;return e==="today"?(t.setHours(0,0,0,0),t):e==="7d"?(t.setDate(t.getDate()-7),t):(t.setDate(t.getDate()-30),t)}function zK({provider:e}){const t=DK[e??""]??io,l=e==="x"?"X":e==="gmail"?"Email":e??"Post";return a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[11px] bg-white/5 text-neutral-400",children:[a.jsx(t,{size:12,weight:"bold"}),l]})}function $K({ok:e,error:t}){return e===!0?a.jsx(v0,{size:16,weight:"fill",className:"text-success shrink-0"}):e===!1?a.jsx("span",{title:t??"Failed",children:a.jsx(os,{size:16,weight:"fill",className:"text-critical shrink-0"})}):a.jsx(Y0,{size:16,className:"text-neutral-500 shrink-0"})}function qK(){const e=ga(["task:completed","task:failed"]),[t,l]=r.useState("all"),[i,o]=r.useState("all"),[u,d]=r.useState("all"),[h,f]=r.useState(""),[p,x]=r.useState(null),[g,b]=r.useState(0),[w,N]=r.useState({}),[E,j]=r.useState(!0),[A,Z]=r.useState(!1),M=r.useCallback(V=>{const H=[`limit=${$A}`,`offset=${V}`];return t!=="all"&&H.push(`status=${t}`),i!=="all"&&H.push(`provider=${i}`),`/api/marketing/posts?${H.join("&")}`},[t,i]);r.useEffect(()=>{let V=!1;return j(!0),me(M(0)).then(H=>{V||(x(H.data),b(H.total),N(H.statusCounts))}).catch(()=>{V||(x([]),b(0))}).finally(()=>{V||j(!1)}),()=>{V=!0}},[M,e]);const S=async()=>{if(!(!p||A||p.length>=g)){Z(!0);try{const V=await me(M(p.length));x([...p,...V.data]),b(V.total)}finally{Z(!1)}}},_=r.useMemo(()=>{if(!p)return[];let V=p;const H=FK(u);if(H&&(V=V.filter(L=>XZ(L.created_at)>=H)),h.trim()){const L=h.toLowerCase();V=V.filter(D=>D.text_preview.toLowerCase().includes(L)||(D.title??"").toLowerCase().includes(L)||(D.agent_name??"").toLowerCase().includes(L))}return V},[p,u,h]),T=(w.delivered??0)+(w.approved??0)+(w.rejected??0)+(w.pending_review??0);return a.jsxs("div",{className:"p-6 max-w-5xl",children:[a.jsx(ze,{title:"Marketing",subtitle:g>0?`${(p==null?void 0:p.length)??0} of ${g} posts shown`:"All outbound content across channels"}),a.jsx("div",{className:"grid grid-cols-4 gap-3 mb-5",children:[{label:"Total",value:T,color:"text-white"},{label:"Delivered",value:w.delivered??0,color:"text-success"},{label:"Pending",value:(w.approved??0)+(w.pending_review??0),color:"text-warning"},{label:"Rejected",value:w.rejected??0,color:"text-critical"}].map(V=>a.jsxs("div",{className:"px-4 py-3 rounded-lg border border-white/[0.06] bg-white/[0.02]",children:[a.jsx("p",{className:"text-xs text-neutral-500",children:V.label}),a.jsx("p",{className:`text-2xl font-semibold ${V.color}`,children:V.value})]},V.label))}),a.jsx("div",{className:"flex gap-1 mb-3 overflow-x-auto",children:[{key:"all",label:"All",count:T},{key:"delivered",label:"Delivered",count:w.delivered??0},{key:"approved",label:"Approved",count:w.approved??0},{key:"pending_review",label:"Pending",count:w.pending_review??0},{key:"rejected",label:"Rejected",count:w.rejected??0}].map(V=>a.jsxs("button",{onClick:()=>l(V.key),className:`px-3 py-1 rounded text-xs whitespace-nowrap transition-colors ${t===V.key?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:[V.label," ",a.jsx("span",{className:"text-neutral-500",children:V.count})]},V.key))}),a.jsxs("div",{className:"flex items-center gap-3 mb-4 flex-wrap",children:[a.jsx("div",{className:"flex gap-1",children:[{key:"all",label:"All channels"},{key:"x",label:"X"},{key:"gmail",label:"Email"}].map(V=>a.jsx("button",{onClick:()=>o(V.key),className:`px-2.5 py-1 rounded text-xs transition-colors ${i===V.key?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:V.label},V.key))}),a.jsx("div",{className:"w-px h-5 bg-white/10"}),a.jsx("div",{className:"flex gap-1",children:["all","today","7d","30d"].map(V=>a.jsx("button",{onClick:()=>d(V),className:`px-2.5 py-1 rounded text-xs transition-colors ${u===V?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:V==="all"?"All time":V==="today"?"Today":V==="7d"?"7 days":"30 days"},V))}),a.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[a.jsx(xa,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:h,onChange:V=>f(V.target.value),placeholder:"Search content...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),E?a.jsx(We,{count:8}):_.length?a.jsxs("div",{className:"space-y-1",children:[_.map((V,H)=>{const L=zA[V.status]??zA.pending_review;return a.jsxs(Ve.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:Math.min(H*.02,.3)},className:"flex items-start gap-3 px-4 py-3 rounded-lg border border-white/[0.06] bg-white/[0.02] hover:bg-white/[0.04] transition-colors",children:[a.jsxs("div",{className:"flex flex-col items-center gap-1 shrink-0 pt-0.5",children:[a.jsx("span",{className:`px-2 py-0.5 rounded text-[10px] font-medium ${L.bg} ${L.text}`,children:L.label}),a.jsx(zK,{provider:V.provider})]}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"text-sm text-white leading-relaxed",children:V.text_preview||V.title||"No content"}),a.jsxs("div",{className:"flex items-center gap-3 mt-1.5",children:[V.agent_name&&a.jsxs("span",{className:"text-[11px] text-neutral-500",children:["by ",V.agent_name]}),V.auto_created&&a.jsxs("span",{className:"inline-flex items-center gap-0.5 text-[11px] text-neutral-600",children:[a.jsx(ss,{size:10})," auto"]})]})]}),a.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[a.jsx($K,{ok:V.delivery_ok,error:V.delivery_error}),a.jsx("span",{className:"text-xs text-neutral-500 w-16 text-right",children:OK(V.delivered_at??V.created_at)})]})]},V.id)}),!E&&p&&p.length<g&&!h&&u==="all"&&a.jsx("div",{className:"flex justify-center pt-3",children:a.jsx("button",{onClick:S,disabled:A,className:"px-4 py-2 text-xs text-neutral-300 border border-white/10 rounded-md hover:bg-white/5 transition-colors disabled:opacity-50",children:A?"Loading...":`Load ${Math.min($A,g-p.length)} more`})})]}):a.jsx(bt,{icon:a.jsx(io,{size:32}),title:"No posts yet",description:h||t!=="all"||i!=="all"||u!=="all"?"No posts matching your filters.":"Content will appear here as agents post across channels."})]})}const qA=50;function QZ(e){return e?/Z$|[+-]\d\d:?\d\d$/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z"):new Date(NaN)}function IK(e){const t=Date.now()-QZ(e).getTime();if(t<0)return"just now";const l=Math.floor(t/1e3);if(l<30)return"just now";if(l<60)return`${l}s ago`;const i=Math.floor(l/60);if(i<60)return`${i}m ago`;const o=Math.floor(i/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function BK(e){if(e==="all")return null;const t=new Date;return e==="today"?(t.setHours(0,0,0,0),t):e==="7d"?(t.setDate(t.getDate()-7),t):(t.setDate(t.getDate()-30),t)}function Zi(e){return e<1e3?String(e):e<1e4?`${(e/1e3).toFixed(1).replace(/\.0$/,"")}k`:e<1e6?`${Math.round(e/1e3)}k`:`${(e/1e6).toFixed(1).replace(/\.0$/,"")}m`}function PK(e){try{return new URL(e).pathname.replace(/^\//,"")}catch{return e}}function UK({platform:e}){return e==="x"?a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[11px] bg-white/5 text-neutral-300",children:[a.jsx(NS,{size:11,weight:"bold"})," X"]}):a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[11px] bg-white/5 text-neutral-300",children:[a.jsx(Qz,{size:12,weight:"bold"})," Threads"]})}function GK({kind:e}){return e==="reply"?a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[10px] font-medium bg-info/10 text-info",children:[a.jsx(K0,{size:10,weight:"bold"})," Reply"]}):a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[10px] font-medium bg-white/5 text-neutral-300",children:[a.jsx(io,{size:10,weight:"bold"})," Post"]})}function YK({eng:e}){return a.jsxs("div",{className:"flex items-center gap-3 text-[11px] text-neutral-500",children:[a.jsxs("span",{className:"inline-flex items-center gap-1",title:`${e.likes} likes`,children:[a.jsx(lo,{size:11,weight:"bold"})," ",Zi(e.likes)]}),a.jsxs("span",{className:"inline-flex items-center gap-1",title:`${e.replies} replies`,children:[a.jsx(K0,{size:11,weight:"bold"})," ",Zi(e.replies)]}),a.jsxs("span",{className:"inline-flex items-center gap-1",title:`${e.reposts} reposts`,children:[a.jsx(xz,{size:11,weight:"bold"})," ",Zi(e.reposts)]}),a.jsxs("span",{className:"inline-flex items-center gap-1",title:`${e.views} views`,children:[a.jsx(kn,{size:11,weight:"bold"})," ",Zi(e.views)]}),a.jsxs("a",{href:e.permalink.startsWith("http")?e.permalink:`https://x.com${e.permalink}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-0.5 text-neutral-500 hover:text-white transition-colors",children:[a.jsx(aE,{size:10,weight:"bold"})," view"]})]})}function KK(){const e=ga(["task:completed","task:failed"]),[t,l]=r.useState("all"),[i,o]=r.useState("all"),[u,d]=r.useState("all"),[h,f]=r.useState(""),[p,x]=r.useState(null),[g,b]=r.useState(0),[w,N]=r.useState({x:0,threads:0}),[E,j]=r.useState({post:0,reply:0}),[A,Z]=r.useState(!0),[M,S]=r.useState(!1),_=r.useCallback(L=>{const D=[`limit=${qA}`,`offset=${L}`];return t!=="all"&&D.push(`platform=${t}`),i!=="all"&&D.push(`kind=${i}`),`/api/social/posts?${D.join("&")}`},[t,i]);r.useEffect(()=>{let L=!1;return Z(!0),me(_(0)).then(D=>{L||(x(D.data),b(D.total),N(D.platformCounts),j(D.kindCounts))}).catch(()=>{L||(x([]),b(0))}).finally(()=>{L||Z(!1)}),()=>{L=!0}},[_,e]);const T=async()=>{if(!(!p||M||p.length>=g)){S(!0);try{const L=await me(_(p.length));x([...p,...L.data]),b(L.total)}finally{S(!1)}}},V=r.useMemo(()=>{if(!p)return[];let L=p;const D=BK(u);if(D&&(L=L.filter(B=>QZ(B.posted_at)>=D)),h.trim()){const B=h.toLowerCase();L=L.filter(K=>K.text_preview.toLowerCase().includes(B)||(K.task_title??"").toLowerCase().includes(B)||(K.reply_to_url??"").toLowerCase().includes(B))}return L},[p,u,h]),H=w.x+w.threads;return a.jsxs("div",{className:"p-6 max-w-5xl",children:[a.jsx(ze,{title:"Social",subtitle:g>0?`${(p==null?void 0:p.length)??0} of ${g} shown`:"Every posted X + Threads item, including replies"}),a.jsx("div",{className:"grid grid-cols-4 gap-3 mb-5",children:[{label:"Total",value:H,color:"text-white"},{label:"X",value:w.x,color:"text-white"},{label:"Threads",value:w.threads,color:"text-white"},{label:"Replies",value:E.reply,color:"text-info"}].map(L=>a.jsxs("div",{className:"px-4 py-3 rounded-lg border border-white/[0.06] bg-white/[0.02]",children:[a.jsx("p",{className:"text-xs text-neutral-500",children:L.label}),a.jsx("p",{className:`text-2xl font-semibold ${L.color}`,children:L.value})]},L.label))}),a.jsx("div",{className:"flex gap-1 mb-3 overflow-x-auto",children:[{key:"all",label:"All",count:H},{key:"x",label:"X",count:w.x},{key:"threads",label:"Threads",count:w.threads}].map(L=>a.jsxs("button",{onClick:()=>l(L.key),className:`px-3 py-1 rounded text-xs whitespace-nowrap transition-colors ${t===L.key?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:[L.label," ",a.jsx("span",{className:"text-neutral-500",children:L.count})]},L.key))}),a.jsxs("div",{className:"flex items-center gap-3 mb-4 flex-wrap",children:[a.jsx("div",{className:"flex gap-1",children:[{key:"all",label:"All kinds"},{key:"post",label:`Posts (${E.post})`},{key:"reply",label:`Replies (${E.reply})`}].map(L=>a.jsx("button",{onClick:()=>o(L.key),className:`px-2.5 py-1 rounded text-xs transition-colors ${i===L.key?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:L.label},L.key))}),a.jsx("div",{className:"w-px h-5 bg-white/10"}),a.jsx("div",{className:"flex gap-1",children:["all","today","7d","30d"].map(L=>a.jsx("button",{onClick:()=>d(L),className:`px-2.5 py-1 rounded text-xs transition-colors ${u===L?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:L==="all"?"All time":L==="today"?"Today":L==="7d"?"7 days":"30 days"},L))}),a.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[a.jsx(xa,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),a.jsx("input",{value:h,onChange:L=>f(L.target.value),placeholder:"Search text, task, reply target...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),A?a.jsx(We,{count:8}):V.length?a.jsxs("div",{className:"space-y-1",children:[V.map((L,D)=>a.jsxs(Ve.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:Math.min(D*.02,.3)},className:"flex items-start gap-3 px-4 py-3 rounded-lg border border-white/[0.06] bg-white/[0.02] hover:bg-white/[0.04] transition-colors",children:[a.jsxs("div",{className:"flex flex-col items-start gap-1 shrink-0 pt-0.5 w-24",children:[a.jsx(GK,{kind:L.kind}),a.jsx(UK,{platform:L.platform})]}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"text-sm text-white leading-relaxed whitespace-pre-wrap",children:L.text_preview||"(no preview)"}),a.jsxs("div",{className:"flex items-center gap-3 mt-1.5 flex-wrap",children:[L.kind==="reply"&&L.reply_to_url&&a.jsxs("a",{href:L.reply_to_url,target:"_blank",rel:"noopener noreferrer",className:"text-[11px] text-info hover:underline inline-flex items-center gap-0.5",title:L.reply_to_url,children:[a.jsx(aE,{size:10,weight:"bold"}),"to ",PK(L.reply_to_url)]}),L.task_title&&a.jsx("span",{className:"text-[11px] text-neutral-500 truncate max-w-[240px]",children:L.task_title}),L.engagement&&a.jsx(YK,{eng:L.engagement})]})]}),a.jsx("div",{className:"flex items-center gap-3 shrink-0",children:a.jsx("span",{className:"text-xs text-neutral-500 w-16 text-right",children:IK(L.posted_at)})})]},L.id)),!A&&p&&p.length<g&&!h&&u==="all"&&a.jsx("div",{className:"flex justify-center pt-3",children:a.jsx("button",{onClick:T,disabled:M,className:"px-4 py-2 text-xs text-neutral-300 border border-white/10 rounded-md hover:bg-white/5 transition-colors disabled:opacity-50",children:M?"Loading...":`Load ${Math.min(qA,g-p.length)} more`})})]}):a.jsx(bt,{icon:a.jsx(NE,{size:32}),title:"Nothing posted yet",description:h||t!=="all"||i!=="all"||u!=="all"?"No posts matching your filters.":"Published X and Threads content will show up here."})]})}function Bh(){return a.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 space-y-3",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx(tn,{className:"h-4 w-32"}),a.jsx(tn,{className:"h-5 w-16 rounded"})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(tn,{className:"h-2 w-2 rounded-full"}),a.jsx(tn,{className:"h-3 w-20"})]}),a.jsx(tn,{className:"h-8 w-24 rounded"})]})}function XK(){const[e,t]=r.useState(0);r.useEffect(()=>{const o=setInterval(()=>t(u=>u+1),5e3);return()=>clearInterval(o)},[]);const{data:l,loading:i}=we("/api/workspaces",[e]);return a.jsxs("div",{className:"p-6",children:[a.jsx(ze,{title:"Businesses",action:a.jsx(Be,{to:"/new-business",className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md text-sm font-medium bg-white/[0.06] hover:bg-white/[0.10] text-neutral-200 transition-colors",children:"+ New Business"})}),i&&!l?a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[a.jsx(Bh,{}),a.jsx(Bh,{}),a.jsx(Bh,{})]}):!l||l.length===0?a.jsx(bt,{title:"No businesses yet.",description:"Each business runs its own AI team on its own port. Create one to get started.",action:a.jsx(Be,{to:"/new-business",className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md text-sm font-medium bg-white/[0.06] hover:bg-white/[0.10] text-neutral-200 transition-colors",children:"+ New Business"})}):a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:l.map(o=>{const u=o.port?`http://localhost:${o.port}/ui/`:null;return a.jsxs("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-5 flex flex-col gap-3",children:[a.jsxs("div",{className:"flex items-start justify-between gap-2",children:[a.jsx("span",{className:"text-sm font-semibold text-neutral-100 leading-snug",children:o.displayName}),a.jsx("span",{className:"shrink-0 inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-white/5 text-neutral-400 capitalize",children:o.mode})]}),a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx("span",{className:`inline-block h-2 w-2 rounded-full ${o.running?"bg-green-500":"bg-neutral-600"}`}),a.jsx("span",{className:"text-xs text-neutral-400",children:o.running?"Running":"Stopped"})]}),a.jsx("div",{className:"mt-auto pt-1",children:o.isActive?a.jsx("span",{className:"text-xs font-medium text-green-400",children:"You're here"}):u?a.jsx("a",{href:u,className:"inline-flex items-center px-3 py-1.5 rounded-md text-xs font-medium bg-white/[0.06] hover:bg-white/[0.10] text-neutral-200 transition-colors",children:"Switch"}):a.jsx("span",{className:"text-xs text-neutral-600",children:"Not started"})})]},o.name)})})]})}function QK(){const e=cn(),t=MS({mode:"new-workspace",onWorkspaceCreated:()=>e("/portfolio")}),l=async()=>{await t.completeOnboarding()};switch(t.screen){case"business_info":return a.jsx(SS,{businessName:t.businessName,businessType:t.businessType,businessDescription:t.businessDescription,onChangeName:t.setBusinessName,onChangeType:t.setBusinessType,onChangeDescription:t.setBusinessDescription,onContinue:t.goToFounderStage,onBack:()=>e("/portfolio")});case"founder_stage":return a.jsx(ZS,{founderPath:t.founderPath,founderFocus:t.founderFocus,onChangePath:t.setFounderPath,onChangeFocus:t.setFounderFocus,onContinue:t.goToAgentDiscovery,onBack:t.goToBusinessInfo});case"agent_discovery":return a.jsx(CS,{modelAvailable:t.modelAvailable,businessType:t.businessType,founderPath:t.founderPath,founderFocus:t.founderFocus,chatMessages:t.chatMessages,presets:t.presets,discoveredGoal:t.discoveredGoal,onSendMessage:t.sendChatMessage,onContinue:t.goToAgentSelection,onBack:t.goToFounderStage,streaming:t.chatStreaming});case"agent_selection":return a.jsx(HS,{presets:t.presets,selectedIds:t.selectedAgentIds,onToggle:t.toggleAgent,onContinue:t.goToIntegrationSetup,onBack:t.goToAgentDiscovery});case"integration_setup":return a.jsx(VS,{integrations:t.integrations,integrationValues:t.integrationValues,onSetValue:t.setIntegrationValue,onSkipIntegration:t.skipIntegration,skippedIds:t.skippedIntegrationIds,onContinue:t.goToReady,onBack:t.goToAgentSelection});case"ready":return a.jsx(_S,{selectedModel:t.selectedModel,loading:t.loading,error:t.error,onLaunch:l,businessName:t.businessName,agentCount:t.selectedAgentIds.size,launchLabel:"Create Business"});default:return null}}function JK({children:e}){return un()?a.jsx(a.Fragment,{children:e}):a.jsx(Uh,{to:"/login",replace:!0})}function WK(){return a.jsxs(cj,{children:[a.jsxs(M_,{children:[a.jsx(Se,{path:"/login",element:a.jsx(y$,{})}),a.jsx(Se,{path:"/onboarding",element:a.jsx(H$,{})}),a.jsx(Se,{path:"/new-business",element:a.jsx(QK,{})}),a.jsxs(Se,{path:"/*",element:a.jsx(JK,{children:a.jsx(b$,{})}),children:[a.jsx(Se,{index:!0,element:a.jsx(RK,{})}),a.jsx(Se,{path:"chat",element:a.jsx(Oq,{})}),a.jsx(Se,{path:"dashboard",element:a.jsx(k$,{})}),a.jsx(Se,{path:"agents",element:a.jsx(z$,{})}),a.jsx(Se,{path:"agents/:id",element:a.jsx(U$,{})}),a.jsx(Se,{path:"tasks",element:a.jsx(K$,{})}),a.jsx(Se,{path:"tasks/:id",element:a.jsx(nq,{})}),a.jsx(Se,{path:"contacts",element:a.jsx(dI,{})}),a.jsx(Se,{path:"contacts/:id",element:a.jsx(vI,{})}),a.jsx(Se,{path:"projects",element:a.jsx(yI,{})}),a.jsx(Se,{path:"projects/:id",element:a.jsx(MI,{})}),a.jsx(Se,{path:"templates",element:a.jsx(fY,{})}),a.jsx(Se,{path:"automations",element:a.jsx(CI,{})}),a.jsx(Se,{path:"automations/new",element:a.jsx(HA,{})}),a.jsx(Se,{path:"automations/:id/edit",element:a.jsx(HA,{})}),a.jsx(Se,{path:"connections",element:a.jsx(sY,{})}),a.jsx(Se,{path:"approvals",element:a.jsx(lq,{})}),a.jsx(Se,{path:"activity",element:a.jsx(uq,{})}),a.jsx(Se,{path:"schedules",element:a.jsx(vq,{})}),a.jsx(Se,{path:"knowledge",element:a.jsx(dY,{})}),a.jsx(Se,{path:"messages",element:a.jsx(qq,{})}),a.jsx(Se,{path:"conversations",element:a.jsx(Uh,{to:"/messages",replace:!0})}),a.jsx(Se,{path:"conversations/:pair",element:a.jsx(Uh,{to:"/messages",replace:!0})}),a.jsx(Se,{path:"workflows",element:a.jsx(gY,{})}),a.jsx(Se,{path:"webhook-events",element:a.jsx(bY,{})}),a.jsx(Se,{path:"goals",element:a.jsx(wY,{})}),a.jsx(Se,{path:"revenue",element:a.jsx(NY,{})}),a.jsx(Se,{path:"messaging",element:a.jsx(MY,{})}),a.jsx(Se,{path:"peers",element:a.jsx(ZY,{})}),a.jsx(Se,{path:"team",element:a.jsx($Y,{})}),a.jsx(Se,{path:"browser",element:a.jsx(UY,{})}),a.jsx(Se,{path:"briefings",element:a.jsx(YY,{})}),a.jsx(Se,{path:"podcast",element:a.jsx(KY,{})}),a.jsx(Se,{path:"eye",element:a.jsx(EK,{})}),a.jsx(Se,{path:"marketing",element:a.jsx(qK,{})}),a.jsx(Se,{path:"social",element:a.jsx(KK,{})}),a.jsx(Se,{path:"portfolio",element:a.jsx(XK,{})}),a.jsx(Se,{path:"settings",element:a.jsx(cI,{})})]})]}),a.jsx(u$,{})]})}MV.createRoot(document.getElementById("root")).render(a.jsx(r.StrictMode,{children:a.jsx(Q_,{basename:"/ui",children:a.jsx(WK,{})})}));
|