(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))i(c);new MutationObserver(c=>{for(const s of c)if(s.type==="childList")for(const d of s.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function o(c){const s={};return c.integrity&&(s.integrity=c.integrity),c.referrerPolicy&&(s.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?s.credentials="include":c.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(c){if(c.ep)return;c.ep=!0;const s=o(c);fetch(c.href,s)}})();var Jg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zo(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Os={exports:{}},ql={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Fg;function A0(){if(Fg)return ql;Fg=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(i,c,s){var d=null;if(s!==void 0&&(d=""+s),c.key!==void 0&&(d=""+c.key),"key"in c){s={};for(var m in c)m!=="key"&&(s[m]=c[m])}else s=c;return c=s.ref,{$$typeof:n,type:i,key:d,ref:c!==void 0?c:null,props:s}}return ql.Fragment=r,ql.jsx=o,ql.jsxs=o,ql}var eh;function T0(){return eh||(eh=1,Os.exports=A0()),Os.exports}var h=T0(),_s={exports:{}},we={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var th;function C0(){if(th)return we;th=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),S=Symbol.iterator;function j(x){return x===null||typeof x!="object"?null:(x=S&&x[S]||x["@@iterator"],typeof x=="function"?x:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,B={};function R(x,K,te){this.props=x,this.context=K,this.refs=B,this.updater=te||C}R.prototype.isReactComponent={},R.prototype.setState=function(x,K){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,K,"setState")},R.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function P(){}P.prototype=R.prototype;function w(x,K,te){this.props=x,this.context=K,this.refs=B,this.updater=te||C}var _=w.prototype=new P;_.constructor=w,$(_,R.prototype),_.isPureReactComponent=!0;var M=Array.isArray,A={H:null,A:null,T:null,S:null,V:null},N=Object.prototype.hasOwnProperty;function X(x,K,te,ae,re,fe){return te=fe.ref,{$$typeof:n,type:x,key:K,ref:te!==void 0?te:null,props:fe}}function V(x,K){return X(x.type,K,void 0,void 0,void 0,x.props)}function Y(x){return typeof x=="object"&&x!==null&&x.$$typeof===n}function ne(x){var K={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(te){return K[te]})}var ee=/\/+/g;function Q(x,K){return typeof x=="object"&&x!==null&&x.key!=null?ne(""+x.key):K.toString(36)}function ce(){}function pe(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(ce,ce):(x.status="pending",x.then(function(K){x.status==="pending"&&(x.status="fulfilled",x.value=K)},function(K){x.status==="pending"&&(x.status="rejected",x.reason=K)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function le(x,K,te,ae,re){var fe=typeof x;(fe==="undefined"||fe==="boolean")&&(x=null);var F=!1;if(x===null)F=!0;else switch(fe){case"bigint":case"string":case"number":F=!0;break;case"object":switch(x.$$typeof){case n:case r:F=!0;break;case y:return F=x._init,le(F(x._payload),K,te,ae,re)}}if(F)return re=re(x),F=ae===""?"."+Q(x,0):ae,M(re)?(te="",F!=null&&(te=F.replace(ee,"$&/")+"/"),le(re,K,te,"",function(Pe){return Pe})):re!=null&&(Y(re)&&(re=V(re,te+(re.key==null||x&&x.key===re.key?"":(""+re.key).replace(ee,"$&/")+"/")+F)),K.push(re)),1;F=0;var ye=ae===""?".":ae+":";if(M(x))for(var xe=0;xe<x.length;xe++)ae=x[xe],fe=ye+Q(ae,xe),F+=le(ae,K,te,fe,re);else if(xe=j(x),typeof xe=="function")for(x=xe.call(x),xe=0;!(ae=x.next()).done;)ae=ae.value,fe=ye+Q(ae,xe++),F+=le(ae,K,te,fe,re);else if(fe==="object"){if(typeof x.then=="function")return le(pe(x),K,te,ae,re);throw K=String(x),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return F}function k(x,K,te){if(x==null)return x;var ae=[],re=0;return le(x,ae,"","",function(fe){return K.call(te,fe,re++)}),ae}function I(x){if(x._status===-1){var K=x._result;K=K(),K.then(function(te){(x._status===0||x._status===-1)&&(x._status=1,x._result=te)},function(te){(x._status===0||x._status===-1)&&(x._status=2,x._result=te)}),x._status===-1&&(x._status=0,x._result=K)}if(x._status===1)return x._result.default;throw x._result}var D=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)};function ue(){}return we.Children={map:k,forEach:function(x,K,te){k(x,function(){K.apply(this,arguments)},te)},count:function(x){var K=0;return k(x,function(){K++}),K},toArray:function(x){return k(x,function(K){return K})||[]},only:function(x){if(!Y(x))throw Error("React.Children.only expected to receive a single React element child.");return x}},we.Component=R,we.Fragment=o,we.Profiler=c,we.PureComponent=w,we.StrictMode=i,we.Suspense=g,we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,we.__COMPILER_RUNTIME={__proto__:null,c:function(x){return A.H.useMemoCache(x)}},we.cache=function(x){return function(){return x.apply(null,arguments)}},we.cloneElement=function(x,K,te){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var ae=$({},x.props),re=x.key,fe=void 0;if(K!=null)for(F in K.ref!==void 0&&(fe=void 0),K.key!==void 0&&(re=""+K.key),K)!N.call(K,F)||F==="key"||F==="__self"||F==="__source"||F==="ref"&&K.ref===void 0||(ae[F]=K[F]);var F=arguments.length-2;if(F===1)ae.children=te;else if(1<F){for(var ye=Array(F),xe=0;xe<F;xe++)ye[xe]=arguments[xe+2];ae.children=ye}return X(x.type,re,void 0,void 0,fe,ae)},we.createContext=function(x){return x={$$typeof:d,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:s,_context:x},x},we.createElement=function(x,K,te){var ae,re={},fe=null;if(K!=null)for(ae in K.key!==void 0&&(fe=""+K.key),K)N.call(K,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(re[ae]=K[ae]);var F=arguments.length-2;if(F===1)re.children=te;else if(1<F){for(var ye=Array(F),xe=0;xe<F;xe++)ye[xe]=arguments[xe+2];re.children=ye}if(x&&x.defaultProps)for(ae in F=x.defaultProps,F)re[ae]===void 0&&(re[ae]=F[ae]);return X(x,fe,void 0,void 0,null,re)},we.createRef=function(){return{current:null}},we.forwardRef=function(x){return{$$typeof:m,render:x}},we.isValidElement=Y,we.lazy=function(x){return{$$typeof:y,_payload:{_status:-1,_result:x},_init:I}},we.memo=function(x,K){return{$$typeof:b,type:x,compare:K===void 0?null:K}},we.startTransition=function(x){var K=A.T,te={};A.T=te;try{var ae=x(),re=A.S;re!==null&&re(te,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(ue,D)}catch(fe){D(fe)}finally{A.T=K}},we.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},we.use=function(x){return A.H.use(x)},we.useActionState=function(x,K,te){return A.H.useActionState(x,K,te)},we.useCallback=function(x,K){return A.H.useCallback(x,K)},we.useContext=function(x){return A.H.useContext(x)},we.useDebugValue=function(){},we.useDeferredValue=function(x,K){return A.H.useDeferredValue(x,K)},we.useEffect=function(x,K,te){var ae=A.H;if(typeof te=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ae.useEffect(x,K)},we.useId=function(){return A.H.useId()},we.useImperativeHandle=function(x,K,te){return A.H.useImperativeHandle(x,K,te)},we.useInsertionEffect=function(x,K){return A.H.useInsertionEffect(x,K)},we.useLayoutEffect=function(x,K){return A.H.useLayoutEffect(x,K)},we.useMemo=function(x,K){return A.H.useMemo(x,K)},we.useOptimistic=function(x,K){return A.H.useOptimistic(x,K)},we.useReducer=function(x,K,te){return A.H.useReducer(x,K,te)},we.useRef=function(x){return A.H.useRef(x)},we.useState=function(x){return A.H.useState(x)},we.useSyncExternalStore=function(x,K,te){return A.H.useSyncExternalStore(x,K,te)},we.useTransition=function(){return A.H.useTransition()},we.version="19.1.0",we}var nh;function Io(){return nh||(nh=1,_s.exports=C0()),_s.exports}var q=Io();const G=Zo(q);var ws={exports:{}},Gl={},Es={exports:{}},js={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ah;function k0(){return ah||(ah=1,function(n){function r(k,I){var D=k.length;k.push(I);e:for(;0<D;){var ue=D-1>>>1,x=k[ue];if(0<c(x,I))k[ue]=I,k[D]=x,D=ue;else break e}}function o(k){return k.length===0?null:k[0]}function i(k){if(k.length===0)return null;var I=k[0],D=k.pop();if(D!==I){k[0]=D;e:for(var ue=0,x=k.length,K=x>>>1;ue<K;){var te=2*(ue+1)-1,ae=k[te],re=te+1,fe=k[re];if(0>c(ae,D))re<x&&0>c(fe,ae)?(k[ue]=fe,k[re]=D,ue=re):(k[ue]=ae,k[te]=D,ue=te);else if(re<x&&0>c(fe,D))k[ue]=fe,k[re]=D,ue=re;else break e}}return I}function c(k,I){var D=k.sortIndex-I.sortIndex;return D!==0?D:k.id-I.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var g=[],b=[],y=1,S=null,j=3,C=!1,$=!1,B=!1,R=!1,P=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function M(k){for(var I=o(b);I!==null;){if(I.callback===null)i(b);else if(I.startTime<=k)i(b),I.sortIndex=I.expirationTime,r(g,I);else break;I=o(b)}}function A(k){if(B=!1,M(k),!$)if(o(g)!==null)$=!0,N||(N=!0,Q());else{var I=o(b);I!==null&&le(A,I.startTime-k)}}var N=!1,X=-1,V=5,Y=-1;function ne(){return R?!0:!(n.unstable_now()-Y<V)}function ee(){if(R=!1,N){var k=n.unstable_now();Y=k;var I=!0;try{e:{$=!1,B&&(B=!1,w(X),X=-1),C=!0;var D=j;try{t:{for(M(k),S=o(g);S!==null&&!(S.expirationTime>k&&ne());){var ue=S.callback;if(typeof ue=="function"){S.callback=null,j=S.priorityLevel;var x=ue(S.expirationTime<=k);if(k=n.unstable_now(),typeof x=="function"){S.callback=x,M(k),I=!0;break t}S===o(g)&&i(g),M(k)}else i(g);S=o(g)}if(S!==null)I=!0;else{var K=o(b);K!==null&&le(A,K.startTime-k),I=!1}}break e}finally{S=null,j=D,C=!1}I=void 0}}finally{I?Q():N=!1}}}var Q;if(typeof _=="function")Q=function(){_(ee)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,pe=ce.port2;ce.port1.onmessage=ee,Q=function(){pe.postMessage(null)}}else Q=function(){P(ee,0)};function le(k,I){X=P(function(){k(n.unstable_now())},I)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(k){k.callback=null},n.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<k?Math.floor(1e3/k):5},n.unstable_getCurrentPriorityLevel=function(){return j},n.unstable_next=function(k){switch(j){case 1:case 2:case 3:var I=3;break;default:I=j}var D=j;j=I;try{return k()}finally{j=D}},n.unstable_requestPaint=function(){R=!0},n.unstable_runWithPriority=function(k,I){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var D=j;j=k;try{return I()}finally{j=D}},n.unstable_scheduleCallback=function(k,I,D){var ue=n.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?ue+D:ue):D=ue,k){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=D+x,k={id:y++,callback:I,priorityLevel:k,startTime:D,expirationTime:x,sortIndex:-1},D>ue?(k.sortIndex=D,r(b,k),o(g)===null&&k===o(b)&&(B?(w(X),X=-1):B=!0,le(A,D-ue))):(k.sortIndex=x,r(g,k),$||C||($=!0,N||(N=!0,Q()))),k},n.unstable_shouldYield=ne,n.unstable_wrapCallback=function(k){var I=j;return function(){var D=j;j=I;try{return k.apply(this,arguments)}finally{j=D}}}}(js)),js}var rh;function M0(){return rh||(rh=1,Es.exports=k0()),Es.exports}var Ns={exports:{}},Ot={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var lh;function R0(){if(lh)return Ot;lh=1;var n=Io();function r(g){var b="https://react.dev/errors/"+g;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)b+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+g+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={d:{f:o,r:function(){throw Error(r(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function s(g,b,y){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:g,containerInfo:b,implementation:y}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,b){if(g==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}return Ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Ot.createPortal=function(g,b){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error(r(299));return s(g,b,null,y)},Ot.flushSync=function(g){var b=d.T,y=i.p;try{if(d.T=null,i.p=2,g)return g()}finally{d.T=b,i.p=y,i.d.f()}},Ot.preconnect=function(g,b){typeof g=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,i.d.C(g,b))},Ot.prefetchDNS=function(g){typeof g=="string"&&i.d.D(g)},Ot.preinit=function(g,b){if(typeof g=="string"&&b&&typeof b.as=="string"){var y=b.as,S=m(y,b.crossOrigin),j=typeof b.integrity=="string"?b.integrity:void 0,C=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;y==="style"?i.d.S(g,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:S,integrity:j,fetchPriority:C}):y==="script"&&i.d.X(g,{crossOrigin:S,integrity:j,fetchPriority:C,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},Ot.preinitModule=function(g,b){if(typeof g=="string")if(typeof b=="object"&&b!==null){if(b.as==null||b.as==="script"){var y=m(b.as,b.crossOrigin);i.d.M(g,{crossOrigin:y,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})}}else b==null&&i.d.M(g)},Ot.preload=function(g,b){if(typeof g=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){var y=b.as,S=m(y,b.crossOrigin);i.d.L(g,y,{crossOrigin:S,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},Ot.preloadModule=function(g,b){if(typeof g=="string")if(b){var y=m(b.as,b.crossOrigin);i.d.m(g,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:y,integrity:typeof b.integrity=="string"?b.integrity:void 0})}else i.d.m(g)},Ot.requestFormReset=function(g){i.d.r(g)},Ot.unstable_batchedUpdates=function(g,b){return g(b)},Ot.useFormState=function(g,b,y){return d.H.useFormState(g,b,y)},Ot.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ot.version="19.1.0",Ot}var ih;function D0(){if(ih)return Ns.exports;ih=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Ns.exports=R0(),Ns.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var oh;function z0(){if(oh)return Gl;oh=1;var n=M0(),r=Io(),o=D0();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(s(e)!==e)throw Error(i(188))}function g(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(i(188));return t!==e?null:e}for(var a=e,l=t;;){var u=a.return;if(u===null)break;var f=u.alternate;if(f===null){if(l=u.return,l!==null){a=l;continue}break}if(u.child===f.child){for(f=u.child;f;){if(f===a)return m(u),e;if(f===l)return m(u),t;f=f.sibling}throw Error(i(188))}if(a.return!==l.return)a=u,l=f;else{for(var v=!1,p=u.child;p;){if(p===a){v=!0,a=u,l=f;break}if(p===l){v=!0,l=u,a=f;break}p=p.sibling}if(!v){for(p=f.child;p;){if(p===a){v=!0,a=f,l=u;break}if(p===l){v=!0,l=f,a=u;break}p=p.sibling}if(!v)throw Error(i(189))}}if(a.alternate!==l)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,S=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),w=Symbol.for("react.consumer"),_=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),ne=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function Q(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function pe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $:return"Fragment";case R:return"Profiler";case B:return"StrictMode";case A:return"Suspense";case N:return"SuspenseList";case Y:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case _:return(e.displayName||"Context")+".Provider";case w:return(e._context.displayName||"Context")+".Consumer";case M:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:pe(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}var le=Array.isArray,k=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},ue=[],x=-1;function K(e){return{current:e}}function te(e){0>x||(e.current=ue[x],ue[x]=null,x--)}function ae(e,t){x++,ue[x]=e.current,e.current=t}var re=K(null),fe=K(null),F=K(null),ye=K(null);function xe(e,t){switch(ae(F,t),ae(fe,e),ae(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?jg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=jg(t),e=Ng(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}te(re),ae(re,e)}function Pe(){te(re),te(fe),te(F)}function dt(e){e.memoizedState!==null&&ae(ye,e);var t=re.current,a=Ng(t,e.type);t!==a&&(ae(fe,e),ae(re,a))}function Ct(e){fe.current===e&&(te(re),te(fe)),ye.current===e&&(te(ye),Ul._currentValue=D)}var kt=Object.prototype.hasOwnProperty,Xe=n.unstable_scheduleCallback,hn=n.unstable_cancelCallback,Gr=n.unstable_shouldYield,Ba=n.unstable_requestPaint,Bt=n.unstable_now,qe=n.unstable_getCurrentPriorityLevel,pa=n.unstable_ImmediatePriority,Kr=n.unstable_UserBlockingPriority,Pa=n.unstable_NormalPriority,su=n.unstable_LowPriority,Vr=n.unstable_IdlePriority,Qr=n.log,pn=n.unstable_setDisableYieldValue,on=null,yt=null;function Pt(e){if(typeof Qr=="function"&&pn(e),yt&&typeof yt.setStrictMode=="function")try{yt.setStrictMode(on,e)}catch{}}var tt=Math.clz32?Math.clz32:mu,fu=Math.log,du=Math.LN2;function mu(e){return e>>>=0,e===0?32:31-(fu(e)/du|0)|0}var Xa=256,ie=4194304;function Ne(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Oe(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var u=0,f=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var p=l&134217727;return p!==0?(l=p&~f,l!==0?u=Ne(l):(v&=p,v!==0?u=Ne(v):a||(a=p&~e,a!==0&&(u=Ne(a))))):(p=l&~f,p!==0?u=Ne(p):v!==0?u=Ne(v):a||(a=l&~e,a!==0&&(u=Ne(a)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:u}function _e(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ot(){var e=Xa;return Xa<<=1,(Xa&4194048)===0&&(Xa=256),e}function Xt(){var e=ie;return ie<<=1,(ie&62914560)===0&&(ie=4194304),e}function bn(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function en(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Bn(e,t,a,l,u,f){var v=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var p=e.entanglements,O=e.expirationTimes,L=e.hiddenUpdates;for(a=v&~a;0<a;){var W=31-tt(a),J=1<<W;p[W]=0,O[W]=-1;var H=L[W];if(H!==null)for(L[W]=null,W=0;W<H.length;W++){var U=H[W];U!==null&&(U.lane&=-536870913)}a&=~J}l!==0&&Mt(e,l,0),f!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=f&~(v&~t))}function Mt(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-tt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function tn(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-tt(a),u=1<<l;u&t|e[l]&t&&(e[l]|=t),a&=~u}}function yn(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function mt(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Pn(){var e=I.p;return e!==0?e:(e=window.event,e===void 0?32:Kg(e.type))}function vu(e,t){var a=I.p;try{return I.p=e,t()}finally{I.p=a}}var qt=Math.random().toString(36).slice(2),Ie="__reactFiber$"+qt,vt="__reactProps$"+qt,xt="__reactContainer$"+qt,xn="__reactEvents$"+qt,vi="__reactListeners$"+qt,gi="__reactHandles$"+qt,Wr="__reactResources$"+qt,Zr="__reactMarker$"+qt;function gu(e){delete e[Ie],delete e[vt],delete e[xn],delete e[vi],delete e[gi]}function qa(e){var t=e[Ie];if(t)return t;for(var a=e.parentNode;a;){if(t=a[xt]||a[Ie]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=kg(e);e!==null;){if(a=e[Ie])return a;e=kg(e)}return t}e=a,a=e.parentNode}return null}function Ga(e){if(e=e[Ie]||e[xt]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Ir(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ka(e){var t=e[Wr];return t||(t=e[Wr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[Zr]=!0}var gd=new Set,hd={};function ba(e,t){Va(e,t),Va(e+"Capture",t)}function Va(e,t){for(hd[e]=t,e=0;e<t.length;e++)gd.add(t[e])}var xb=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]*$"),pd={},bd={};function Sb(e){return kt.call(bd,e)?!0:kt.call(pd,e)?!1:xb.test(e)?bd[e]=!0:(pd[e]=!0,!1)}function hi(e,t,a){if(Sb(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function pi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Sn(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}var hu,yd;function Qa(e){if(hu===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);hu=t&&t[1]||"",yd=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+hu+e+yd}var pu=!1;function bu(e,t){if(!e||pu)return"";pu=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(U){var H=U}Reflect.construct(e,[],J)}else{try{J.call()}catch(U){H=U}e.call(J.prototype)}}else{try{throw Error()}catch(U){H=U}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(U){if(U&&H&&typeof U.stack=="string")return[U.stack,H.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),v=f[0],p=f[1];if(v&&p){var O=v.split(`
`),L=p.split(`
`);for(u=l=0;l<O.length&&!O[l].includes("DetermineComponentFrameRoot");)l++;for(;u<L.length&&!L[u].includes("DetermineComponentFrameRoot");)u++;if(l===O.length||u===L.length)for(l=O.length-1,u=L.length-1;1<=l&&0<=u&&O[l]!==L[u];)u--;for(;1<=l&&0<=u;l--,u--)if(O[l]!==L[u]){if(l!==1||u!==1)do if(l--,u--,0>u||O[l]!==L[u]){var W=`
`+O[l].replace(" at new "," at ");return e.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",e.displayName)),W}while(1<=l&&0<=u);break}}}finally{pu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Qa(a):""}function Ob(e){switch(e.tag){case 26:case 27:case 5:return Qa(e.type);case 16:return Qa("Lazy");case 13:return Qa("Suspense");case 19:return Qa("SuspenseList");case 0:case 15:return bu(e.type,!1);case 11:return bu(e.type.render,!1);case 1:return bu(e.type,!0);case 31:return Qa("Activity");default:return""}}function xd(e){try{var t="";do t+=Ob(e),e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}function Gt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _b(e){var t=Sd(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,f=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(v){l=""+v,f.call(this,v)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bi(e){e._valueTracker||(e._valueTracker=_b(e))}function Od(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Sd(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function yi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var wb=/[\n"\\]/g;function Kt(e){return e.replace(wb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function yu(e,t,a,l,u,f,v,p){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Gt(t)):e.value!==""+Gt(t)&&(e.value=""+Gt(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?xu(e,v,Gt(t)):a!=null?xu(e,v,Gt(a)):l!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+Gt(p):e.removeAttribute("name")}function _d(e,t,a,l,u,f,v,p){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;a=a!=null?""+Gt(a):"",t=t!=null?""+Gt(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=p?e.checked:!!l,e.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v)}function xu(e,t,a){t==="number"&&yi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Wa(e,t,a,l){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Gt(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function wd(e,t,a){if(t!=null&&(t=""+Gt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Gt(a):""}function Ed(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(i(92));if(le(l)){if(1<l.length)throw Error(i(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Gt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function Za(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Eb=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 jd(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||Eb.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Nd(e,t,a){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in t)l=t[u],t.hasOwnProperty(u)&&a[u]!==l&&jd(e,u,l)}else for(var f in t)t.hasOwnProperty(f)&&jd(e,f,t[f])}function Su(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var jb=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"]]),Nb=/^[\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 xi(e){return Nb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ou=null;function _u(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ia=null,Ja=null;function Ad(e){var t=Ga(e);if(t&&(e=t.stateNode)){var a=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(yu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Kt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var u=l[vt]||null;if(!u)throw Error(i(90));yu(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Od(l)}break e;case"textarea":wd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Wa(e,!!a.multiple,t,!1)}}}var wu=!1;function Td(e,t,a){if(wu)return e(t,a);wu=!0;try{var l=e(t);return l}finally{if(wu=!1,(Ia!==null||Ja!==null)&&(lo(),Ia&&(t=Ia,e=Ja,Ja=Ia=null,Ad(t),e)))for(t=0;t<e.length;t++)Ad(e[t])}}function Jr(e,t){var a=e.stateNode;if(a===null)return null;var l=a[vt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(i(231,t,typeof a));return a}var On=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eu=!1;if(On)try{var Fr={};Object.defineProperty(Fr,"passive",{get:function(){Eu=!0}}),window.addEventListener("test",Fr,Fr),window.removeEventListener("test",Fr,Fr)}catch{Eu=!1}var Xn=null,ju=null,Si=null;function Cd(){if(Si)return Si;var e,t=ju,a=t.length,l,u="value"in Xn?Xn.value:Xn.textContent,f=u.length;for(e=0;e<a&&t[e]===u[e];e++);var v=a-e;for(l=1;l<=v&&t[a-l]===u[f-l];l++);return Si=u.slice(e,1<l?1-l:void 0)}function Oi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _i(){return!0}function kd(){return!1}function wt(e){function t(a,l,u,f,v){this._reactName=a,this._targetInst=u,this.type=l,this.nativeEvent=f,this.target=v,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(f):f[p]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?_i:kd,this.isPropagationStopped=kd,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=_i)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=_i)},persist:function(){},isPersistent:_i}),t}var ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wi=wt(ya),el=y({},ya,{view:0,detail:0}),Ab=wt(el),Nu,Au,tl,Ei=y({},el,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==tl&&(tl&&e.type==="mousemove"?(Nu=e.screenX-tl.screenX,Au=e.screenY-tl.screenY):Au=Nu=0,tl=e),Nu)},movementY:function(e){return"movementY"in e?e.movementY:Au}}),Md=wt(Ei),Tb=y({},Ei,{dataTransfer:0}),Cb=wt(Tb),kb=y({},el,{relatedTarget:0}),Tu=wt(kb),Mb=y({},ya,{animationName:0,elapsedTime:0,pseudoElement:0}),Rb=wt(Mb),Db=y({},ya,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zb=wt(Db),Lb=y({},ya,{data:0}),Rd=wt(Lb),Hb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$b={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"},Ub={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ub[e])?!!t[e]:!1}function Cu(){return Yb}var Bb=y({},el,{key:function(e){if(e.key){var t=Hb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$b[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cu,charCode:function(e){return e.type==="keypress"?Oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Pb=wt(Bb),Xb=y({},Ei,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dd=wt(Xb),qb=y({},el,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cu}),Gb=wt(qb),Kb=y({},ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vb=wt(Kb),Qb=y({},Ei,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Wb=wt(Qb),Zb=y({},ya,{newState:0,oldState:0}),Ib=wt(Zb),Jb=[9,13,27,32],ku=On&&"CompositionEvent"in window,nl=null;On&&"documentMode"in document&&(nl=document.documentMode);var Fb=On&&"TextEvent"in window&&!nl,zd=On&&(!ku||nl&&8<nl&&11>=nl),Ld=" ",Hd=!1;function $d(e,t){switch(e){case"keyup":return Jb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ud(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fa=!1;function ey(e,t){switch(e){case"compositionend":return Ud(t);case"keypress":return t.which!==32?null:(Hd=!0,Ld);case"textInput":return e=t.data,e===Ld&&Hd?null:e;default:return null}}function ty(e,t){if(Fa)return e==="compositionend"||!ku&&$d(e,t)?(e=Cd(),Si=ju=Xn=null,Fa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zd&&t.locale!=="ko"?null:t.data;default:return null}}var ny={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 Yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ny[e.type]:t==="textarea"}function Bd(e,t,a,l){Ia?Ja?Ja.push(l):Ja=[l]:Ia=l,t=fo(t,"onChange"),0<t.length&&(a=new wi("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var al=null,rl=null;function ay(e){Sg(e,0)}function ji(e){var t=Ir(e);if(Od(t))return e}function Pd(e,t){if(e==="change")return t}var Xd=!1;if(On){var Mu;if(On){var Ru="oninput"in document;if(!Ru){var qd=document.createElement("div");qd.setAttribute("oninput","return;"),Ru=typeof qd.oninput=="function"}Mu=Ru}else Mu=!1;Xd=Mu&&(!document.documentMode||9<document.documentMode)}function Gd(){al&&(al.detachEvent("onpropertychange",Kd),rl=al=null)}function Kd(e){if(e.propertyName==="value"&&ji(rl)){var t=[];Bd(t,rl,e,_u(e)),Td(ay,t)}}function ry(e,t,a){e==="focusin"?(Gd(),al=t,rl=a,al.attachEvent("onpropertychange",Kd)):e==="focusout"&&Gd()}function ly(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ji(rl)}function iy(e,t){if(e==="click")return ji(t)}function oy(e,t){if(e==="input"||e==="change")return ji(t)}function uy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rt=typeof Object.is=="function"?Object.is:uy;function ll(e,t){if(Rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var u=a[l];if(!kt.call(t,u)||!Rt(e[u],t[u]))return!1}return!0}function Vd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qd(e,t){var a=Vd(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Vd(a)}}function Wd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=yi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=yi(e.document)}return t}function Du(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var cy=On&&"documentMode"in document&&11>=document.documentMode,er=null,zu=null,il=null,Lu=!1;function Id(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Lu||er==null||er!==yi(l)||(l=er,"selectionStart"in l&&Du(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),il&&ll(il,l)||(il=l,l=fo(zu,"onSelect"),0<l.length&&(t=new wi("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=er)))}function xa(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var tr={animationend:xa("Animation","AnimationEnd"),animationiteration:xa("Animation","AnimationIteration"),animationstart:xa("Animation","AnimationStart"),transitionrun:xa("Transition","TransitionRun"),transitionstart:xa("Transition","TransitionStart"),transitioncancel:xa("Transition","TransitionCancel"),transitionend:xa("Transition","TransitionEnd")},Hu={},Jd={};On&&(Jd=document.createElement("div").style,"AnimationEvent"in window||(delete tr.animationend.animation,delete tr.animationiteration.animation,delete tr.animationstart.animation),"TransitionEvent"in window||delete tr.transitionend.transition);function Sa(e){if(Hu[e])return Hu[e];if(!tr[e])return e;var t=tr[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Jd)return Hu[e]=t[a];return e}var Fd=Sa("animationend"),em=Sa("animationiteration"),tm=Sa("animationstart"),sy=Sa("transitionrun"),fy=Sa("transitionstart"),dy=Sa("transitioncancel"),nm=Sa("transitionend"),am=new Map,$u="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(" ");$u.push("scrollEnd");function nn(e,t){am.set(e,t),ba(t,[e])}var rm=new WeakMap;function Vt(e,t){if(typeof e=="object"&&e!==null){var a=rm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:xd(t)},rm.set(e,t),t)}return{value:e,source:t,stack:xd(t)}}var Qt=[],nr=0,Uu=0;function Ni(){for(var e=nr,t=Uu=nr=0;t<e;){var a=Qt[t];Qt[t++]=null;var l=Qt[t];Qt[t++]=null;var u=Qt[t];Qt[t++]=null;var f=Qt[t];if(Qt[t++]=null,l!==null&&u!==null){var v=l.pending;v===null?u.next=u:(u.next=v.next,v.next=u),l.pending=u}f!==0&&lm(a,u,f)}}function Ai(e,t,a,l){Qt[nr++]=e,Qt[nr++]=t,Qt[nr++]=a,Qt[nr++]=l,Uu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Yu(e,t,a,l){return Ai(e,t,a,l),Ti(e)}function ar(e,t){return Ai(e,null,null,t),Ti(e)}function lm(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var u=!1,f=e.return;f!==null;)f.childLanes|=a,l=f.alternate,l!==null&&(l.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(u=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,u&&t!==null&&(u=31-tt(a),e=f.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=a|536870912),f):null}function Ti(e){if(50<kl)throw kl=0,Kc=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var rr={};function my(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,a,l){return new my(e,t,a,l)}function Bu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _n(e,t){var a=e.alternate;return a===null?(a=Dt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function im(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ci(e,t,a,l,u,f){var v=0;if(l=e,typeof e=="function")Bu(e)&&(v=1);else if(typeof e=="string")v=g0(e,a,re.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Y:return e=Dt(31,a,t,u),e.elementType=Y,e.lanes=f,e;case $:return Oa(a.children,u,f,t);case B:v=8,u|=24;break;case R:return e=Dt(12,a,t,u|2),e.elementType=R,e.lanes=f,e;case A:return e=Dt(13,a,t,u),e.elementType=A,e.lanes=f,e;case N:return e=Dt(19,a,t,u),e.elementType=N,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case P:case _:v=10;break e;case w:v=9;break e;case M:v=11;break e;case X:v=14;break e;case V:v=16,l=null;break e}v=29,a=Error(i(130,e===null?"null":typeof e,"")),l=null}return t=Dt(v,a,t,u),t.elementType=e,t.type=l,t.lanes=f,t}function Oa(e,t,a,l){return e=Dt(7,e,l,t),e.lanes=a,e}function Pu(e,t,a){return e=Dt(6,e,null,t),e.lanes=a,e}function Xu(e,t,a){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var lr=[],ir=0,ki=null,Mi=0,Wt=[],Zt=0,_a=null,wn=1,En="";function wa(e,t){lr[ir++]=Mi,lr[ir++]=ki,ki=e,Mi=t}function om(e,t,a){Wt[Zt++]=wn,Wt[Zt++]=En,Wt[Zt++]=_a,_a=e;var l=wn;e=En;var u=32-tt(l)-1;l&=~(1<<u),a+=1;var f=32-tt(t)+u;if(30<f){var v=u-u%5;f=(l&(1<<v)-1).toString(32),l>>=v,u-=v,wn=1<<32-tt(t)+u|a<<u|l,En=f+e}else wn=1<<f|a<<u|l,En=e}function qu(e){e.return!==null&&(wa(e,1),om(e,1,0))}function Gu(e){for(;e===ki;)ki=lr[--ir],lr[ir]=null,Mi=lr[--ir],lr[ir]=null;for(;e===_a;)_a=Wt[--Zt],Wt[Zt]=null,En=Wt[--Zt],Wt[Zt]=null,wn=Wt[--Zt],Wt[Zt]=null}var _t=null,We=null,Re=!1,Ea=null,un=!1,Ku=Error(i(519));function ja(e){var t=Error(i(418,""));throw cl(Vt(t,e)),Ku}function um(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[Ie]=e,t[vt]=l,a){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(a=0;a<Rl.length;a++)Te(Rl[a],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),_d(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),bi(t);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),Ed(t,l.value,l.defaultValue,l.children),bi(t)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Eg(t.textContent,a)?(l.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),l.onScroll!=null&&Te("scroll",t),l.onScrollEnd!=null&&Te("scrollend",t),l.onClick!=null&&(t.onclick=mo),t=!0):t=!1,t||ja(e)}function cm(e){for(_t=e.return;_t;)switch(_t.tag){case 5:case 13:un=!1;return;case 27:case 3:un=!0;return;default:_t=_t.return}}function ol(e){if(e!==_t)return!1;if(!Re)return cm(e),Re=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||us(e.type,e.memoizedProps)),a=!a),a&&We&&ja(e),cm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){We=rn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}We=null}}else t===27?(t=We,la(e.type)?(e=ds,ds=null,We=e):We=t):We=_t?rn(e.stateNode.nextSibling):null;return!0}function ul(){We=_t=null,Re=!1}function sm(){var e=Ea;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),Ea=null),e}function cl(e){Ea===null?Ea=[e]:Ea.push(e)}var Vu=K(null),Na=null,jn=null;function qn(e,t,a){ae(Vu,t._currentValue),t._currentValue=a}function Nn(e){e._currentValue=Vu.current,te(Vu)}function Qu(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Wu(e,t,a,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var f=u.dependencies;if(f!==null){var v=u.child;f=f.firstContext;e:for(;f!==null;){var p=f;f=u;for(var O=0;O<t.length;O++)if(p.context===t[O]){f.lanes|=a,p=f.alternate,p!==null&&(p.lanes|=a),Qu(f.return,a,e),l||(v=null);break e}f=p.next}}else if(u.tag===18){if(v=u.return,v===null)throw Error(i(341));v.lanes|=a,f=v.alternate,f!==null&&(f.lanes|=a),Qu(v,a,e),v=null}else v=u.child;if(v!==null)v.return=u;else for(v=u;v!==null;){if(v===e){v=null;break}if(u=v.sibling,u!==null){u.return=v.return,v=u;break}v=v.return}u=v}}function sl(e,t,a,l){e=null;for(var u=t,f=!1;u!==null;){if(!f){if((u.flags&524288)!==0)f=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var v=u.alternate;if(v===null)throw Error(i(387));if(v=v.memoizedProps,v!==null){var p=u.type;Rt(u.pendingProps.value,v.value)||(e!==null?e.push(p):e=[p])}}else if(u===ye.current){if(v=u.alternate,v===null)throw Error(i(387));v.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Ul):e=[Ul])}u=u.return}e!==null&&Wu(t,e,a,l),t.flags|=262144}function Ri(e){for(e=e.firstContext;e!==null;){if(!Rt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Aa(e){Na=e,jn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function St(e){return fm(Na,e)}function Di(e,t){return Na===null&&Aa(e),fm(e,t)}function fm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},jn===null){if(e===null)throw Error(i(308));jn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else jn=jn.next=t;return a}var vy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},gy=n.unstable_scheduleCallback,hy=n.unstable_NormalPriority,lt={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zu(){return{controller:new vy,data:new Map,refCount:0}}function fl(e){e.refCount--,e.refCount===0&&gy(hy,function(){e.controller.abort()})}var dl=null,Iu=0,or=0,ur=null;function py(e,t){if(dl===null){var a=dl=[];Iu=0,or=Fc(),ur={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Iu++,t.then(dm,dm),t}function dm(){if(--Iu===0&&dl!==null){ur!==null&&(ur.status="fulfilled");var e=dl;dl=null,or=0,ur=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function by(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(l.status="rejected",l.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),l}var mm=k.S;k.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&py(e,t),mm!==null&&mm(e,t)};var Ta=K(null);function Ju(){var e=Ta.current;return e!==null?e:Ye.pooledCache}function zi(e,t){t===null?ae(Ta,Ta.current):ae(Ta,t.pool)}function vm(){var e=Ju();return e===null?null:{parent:lt._currentValue,pool:e}}var ml=Error(i(460)),gm=Error(i(474)),Li=Error(i(542)),Fu={then:function(){}};function hm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Hi(){}function pm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Hi,Hi),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ym(e),e;default:if(typeof t.status=="string")t.then(Hi,Hi);else{if(e=Ye,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=l}},function(l){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ym(e),e}throw vl=t,ml}}var vl=null;function bm(){if(vl===null)throw Error(i(459));var e=vl;return vl=null,e}function ym(e){if(e===ml||e===Li)throw Error(i(483))}var Gn=!1;function ec(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Vn(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(De&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=Ti(e),lm(e,null,a),t}return Ai(e,l,t,a),Ti(e)}function gl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,tn(e,a)}}function nc(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var u=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var v={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?u=f=v:f=f.next=v,a=a.next}while(a!==null);f===null?u=f=t:f=f.next=t}else u=f=t;a={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var ac=!1;function hl(){if(ac){var e=ur;if(e!==null)throw e}}function pl(e,t,a,l){ac=!1;var u=e.updateQueue;Gn=!1;var f=u.firstBaseUpdate,v=u.lastBaseUpdate,p=u.shared.pending;if(p!==null){u.shared.pending=null;var O=p,L=O.next;O.next=null,v===null?f=L:v.next=L,v=O;var W=e.alternate;W!==null&&(W=W.updateQueue,p=W.lastBaseUpdate,p!==v&&(p===null?W.firstBaseUpdate=L:p.next=L,W.lastBaseUpdate=O))}if(f!==null){var J=u.baseState;v=0,W=L=O=null,p=f;do{var H=p.lane&-536870913,U=H!==p.lane;if(U?(ke&H)===H:(l&H)===H){H!==0&&H===or&&(ac=!0),W!==null&&(W=W.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var Se=e,ge=p;H=t;var $e=a;switch(ge.tag){case 1:if(Se=ge.payload,typeof Se=="function"){J=Se.call($e,J,H);break e}J=Se;break e;case 3:Se.flags=Se.flags&-65537|128;case 0:if(Se=ge.payload,H=typeof Se=="function"?Se.call($e,J,H):Se,H==null)break e;J=y({},J,H);break e;case 2:Gn=!0}}H=p.callback,H!==null&&(e.flags|=64,U&&(e.flags|=8192),U=u.callbacks,U===null?u.callbacks=[H]:U.push(H))}else U={lane:H,tag:p.tag,payload:p.payload,callback:p.callback,next:null},W===null?(L=W=U,O=J):W=W.next=U,v|=H;if(p=p.next,p===null){if(p=u.shared.pending,p===null)break;U=p,p=U.next,U.next=null,u.lastBaseUpdate=U,u.shared.pending=null}}while(!0);W===null&&(O=J),u.baseState=O,u.firstBaseUpdate=L,u.lastBaseUpdate=W,f===null&&(u.shared.lanes=0),ta|=v,e.lanes=v,e.memoizedState=J}}function xm(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Sm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)xm(a[e],t)}var cr=K(null),$i=K(0);function Om(e,t){e=Dn,ae($i,e),ae(cr,t),Dn=e|t.baseLanes}function rc(){ae($i,Dn),ae(cr,cr.current)}function lc(){Dn=$i.current,te(cr),te($i)}var Qn=0,Ee=null,Le=null,nt=null,Ui=!1,sr=!1,Ca=!1,Yi=0,bl=0,fr=null,yy=0;function Je(){throw Error(i(321))}function ic(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Rt(e[a],t[a]))return!1;return!0}function oc(e,t,a,l,u,f){return Qn=f,Ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?lv:iv,Ca=!1,f=a(l,u),Ca=!1,sr&&(f=wm(t,a,l,u)),_m(e),f}function _m(e){k.H=Ki;var t=Le!==null&&Le.next!==null;if(Qn=0,nt=Le=Ee=null,Ui=!1,bl=0,fr=null,t)throw Error(i(300));e===null||ct||(e=e.dependencies,e!==null&&Ri(e)&&(ct=!0))}function wm(e,t,a,l){Ee=e;var u=0;do{if(sr&&(fr=null),bl=0,sr=!1,25<=u)throw Error(i(301));if(u+=1,nt=Le=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}k.H=jy,f=t(a,l)}while(sr);return f}function xy(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?yl(t):t,e=e.useState()[0],(Le!==null?Le.memoizedState:null)!==e&&(Ee.flags|=1024),t}function uc(){var e=Yi!==0;return Yi=0,e}function cc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function sc(e){if(Ui){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ui=!1}Qn=0,nt=Le=Ee=null,sr=!1,bl=Yi=0,fr=null}function Et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?Ee.memoizedState=nt=e:nt=nt.next=e,nt}function at(){if(Le===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=nt===null?Ee.memoizedState:nt.next;if(t!==null)nt=t,Le=e;else{if(e===null)throw Ee.alternate===null?Error(i(467)):Error(i(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},nt===null?Ee.memoizedState=nt=e:nt=nt.next=e}return nt}function fc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yl(e){var t=bl;return bl+=1,fr===null&&(fr=[]),e=pm(fr,e,t),t=Ee,(nt===null?t.memoizedState:nt.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?lv:iv),e}function Bi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return yl(e);if(e.$$typeof===_)return St(e)}throw Error(i(438,String(e)))}function dc(e){var t=null,a=Ee.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=Ee.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=fc(),Ee.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=ne;return t.index++,a}function An(e,t){return typeof t=="function"?t(e):t}function Pi(e){var t=at();return mc(t,Le,e)}function mc(e,t,a){var l=e.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=a;var u=e.baseQueue,f=l.pending;if(f!==null){if(u!==null){var v=u.next;u.next=f.next,f.next=v}t.baseQueue=u=f,l.pending=null}if(f=e.baseState,u===null)e.memoizedState=f;else{t=u.next;var p=v=null,O=null,L=t,W=!1;do{var J=L.lane&-536870913;if(J!==L.lane?(ke&J)===J:(Qn&J)===J){var H=L.revertLane;if(H===0)O!==null&&(O=O.next={lane:0,revertLane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),J===or&&(W=!0);else if((Qn&H)===H){L=L.next,H===or&&(W=!0);continue}else J={lane:0,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},O===null?(p=O=J,v=f):O=O.next=J,Ee.lanes|=H,ta|=H;J=L.action,Ca&&a(f,J),f=L.hasEagerState?L.eagerState:a(f,J)}else H={lane:J,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},O===null?(p=O=H,v=f):O=O.next=H,Ee.lanes|=J,ta|=J;L=L.next}while(L!==null&&L!==t);if(O===null?v=f:O.next=p,!Rt(f,e.memoizedState)&&(ct=!0,W&&(a=ur,a!==null)))throw a;e.memoizedState=f,e.baseState=v,e.baseQueue=O,l.lastRenderedState=f}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function vc(e){var t=at(),a=t.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var l=a.dispatch,u=a.pending,f=t.memoizedState;if(u!==null){a.pending=null;var v=u=u.next;do f=e(f,v.action),v=v.next;while(v!==u);Rt(f,t.memoizedState)||(ct=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,l]}function Em(e,t,a){var l=Ee,u=at(),f=Re;if(f){if(a===void 0)throw Error(i(407));a=a()}else a=t();var v=!Rt((Le||u).memoizedState,a);v&&(u.memoizedState=a,ct=!0),u=u.queue;var p=Am.bind(null,l,u,e);if(xl(2048,8,p,[e]),u.getSnapshot!==t||v||nt!==null&&nt.memoizedState.tag&1){if(l.flags|=2048,dr(9,Xi(),Nm.bind(null,l,u,a,t),null),Ye===null)throw Error(i(349));f||(Qn&124)!==0||jm(l,t,a)}return a}function jm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ee.updateQueue,t===null?(t=fc(),Ee.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Nm(e,t,a,l){t.value=a,t.getSnapshot=l,Tm(t)&&Cm(e)}function Am(e,t,a){return a(function(){Tm(t)&&Cm(e)})}function Tm(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Rt(e,a)}catch{return!0}}function Cm(e){var t=ar(e,2);t!==null&&Ut(t,e,2)}function gc(e){var t=Et();if(typeof e=="function"){var a=e;if(e=a(),Ca){Pt(!0);try{a()}finally{Pt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:e},t}function km(e,t,a,l){return e.baseState=a,mc(e,Le,typeof l=="function"?l:An)}function Sy(e,t,a,l,u){if(Gi(e))throw Error(i(485));if(e=t.action,e!==null){var f={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){f.listeners.push(v)}};k.T!==null?a(!0):f.isTransition=!1,l(f),a=t.pending,a===null?(f.next=t.pending=f,Mm(t,f)):(f.next=a.next,t.pending=a.next=f)}}function Mm(e,t){var a=t.action,l=t.payload,u=e.state;if(t.isTransition){var f=k.T,v={};k.T=v;try{var p=a(u,l),O=k.S;O!==null&&O(v,p),Rm(e,t,p)}catch(L){hc(e,t,L)}finally{k.T=f}}else try{f=a(u,l),Rm(e,t,f)}catch(L){hc(e,t,L)}}function Rm(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Dm(e,t,l)},function(l){return hc(e,t,l)}):Dm(e,t,a)}function Dm(e,t,a){t.status="fulfilled",t.value=a,zm(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Mm(e,a)))}function hc(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,zm(t),t=t.next;while(t!==l)}e.action=null}function zm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Lm(e,t){return t}function Hm(e,t){if(Re){var a=Ye.formState;if(a!==null){e:{var l=Ee;if(Re){if(We){t:{for(var u=We,f=un;u.nodeType!==8;){if(!f){u=null;break t}if(u=rn(u.nextSibling),u===null){u=null;break t}}f=u.data,u=f==="F!"||f==="F"?u:null}if(u){We=rn(u.nextSibling),l=u.data==="F!";break e}}ja(l)}l=!1}l&&(t=a[0])}}return a=Et(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lm,lastRenderedState:t},a.queue=l,a=nv.bind(null,Ee,l),l.dispatch=a,l=gc(!1),f=Sc.bind(null,Ee,!1,l.queue),l=Et(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,a=Sy.bind(null,Ee,u,f,a),u.dispatch=a,l.memoizedState=e,[t,a,!1]}function $m(e){var t=at();return Um(t,Le,e)}function Um(e,t,a){if(t=mc(e,t,Lm)[0],e=Pi(An)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=yl(t)}catch(v){throw v===ml?Li:v}else l=t;t=at();var u=t.queue,f=u.dispatch;return a!==t.memoizedState&&(Ee.flags|=2048,dr(9,Xi(),Oy.bind(null,u,a),null)),[l,f,e]}function Oy(e,t){e.action=t}function Ym(e){var t=at(),a=Le;if(a!==null)return Um(t,a,e);at(),t=t.memoizedState,a=at();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function dr(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=Ee.updateQueue,t===null&&(t=fc(),Ee.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Xi(){return{destroy:void 0,resource:void 0}}function Bm(){return at().memoizedState}function qi(e,t,a,l){var u=Et();l=l===void 0?null:l,Ee.flags|=e,u.memoizedState=dr(1|t,Xi(),a,l)}function xl(e,t,a,l){var u=at();l=l===void 0?null:l;var f=u.memoizedState.inst;Le!==null&&l!==null&&ic(l,Le.memoizedState.deps)?u.memoizedState=dr(t,f,a,l):(Ee.flags|=e,u.memoizedState=dr(1|t,f,a,l))}function Pm(e,t){qi(8390656,8,e,t)}function Xm(e,t){xl(2048,8,e,t)}function qm(e,t){return xl(4,2,e,t)}function Gm(e,t){return xl(4,4,e,t)}function Km(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Vm(e,t,a){a=a!=null?a.concat([e]):null,xl(4,4,Km.bind(null,t,e),a)}function pc(){}function Qm(e,t){var a=at();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&ic(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Wm(e,t){var a=at();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&ic(t,l[1]))return l[0];if(l=e(),Ca){Pt(!0);try{e()}finally{Pt(!1)}}return a.memoizedState=[l,t],l}function bc(e,t,a){return a===void 0||(Qn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=Jv(),Ee.lanes|=e,ta|=e,a)}function Zm(e,t,a,l){return Rt(a,t)?a:cr.current!==null?(e=bc(e,a,l),Rt(e,t)||(ct=!0),e):(Qn&42)===0?(ct=!0,e.memoizedState=a):(e=Jv(),Ee.lanes|=e,ta|=e,t)}function Im(e,t,a,l,u){var f=I.p;I.p=f!==0&&8>f?f:8;var v=k.T,p={};k.T=p,Sc(e,!1,t,a);try{var O=u(),L=k.S;if(L!==null&&L(p,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var W=by(O,l);Sl(e,t,W,$t(e))}else Sl(e,t,l,$t(e))}catch(J){Sl(e,t,{then:function(){},status:"rejected",reason:J},$t())}finally{I.p=f,k.T=v}}function _y(){}function yc(e,t,a,l){if(e.tag!==5)throw Error(i(476));var u=Jm(e).queue;Im(e,u,t,D,a===null?_y:function(){return Fm(e),a(l)})}function Jm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:D},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Fm(e){var t=Jm(e).next.queue;Sl(e,t,{},$t())}function xc(){return St(Ul)}function ev(){return at().memoizedState}function tv(){return at().memoizedState}function wy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=$t();e=Kn(a);var l=Vn(t,e,a);l!==null&&(Ut(l,t,a),gl(l,t,a)),t={cache:Zu()},e.payload=t;return}t=t.return}}function Ey(e,t,a){var l=$t();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Gi(e)?av(t,a):(a=Yu(e,t,a,l),a!==null&&(Ut(a,e,l),rv(a,t,l)))}function nv(e,t,a){var l=$t();Sl(e,t,a,l)}function Sl(e,t,a,l){var u={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Gi(e))av(t,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var v=t.lastRenderedState,p=f(v,a);if(u.hasEagerState=!0,u.eagerState=p,Rt(p,v))return Ai(e,t,u,0),Ye===null&&Ni(),!1}catch{}finally{}if(a=Yu(e,t,u,l),a!==null)return Ut(a,e,l),rv(a,t,l),!0}return!1}function Sc(e,t,a,l){if(l={lane:2,revertLane:Fc(),action:l,hasEagerState:!1,eagerState:null,next:null},Gi(e)){if(t)throw Error(i(479))}else t=Yu(e,a,l,2),t!==null&&Ut(t,e,2)}function Gi(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function av(e,t){sr=Ui=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function rv(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,tn(e,a)}}var Ki={readContext:St,use:Bi,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je},lv={readContext:St,use:Bi,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:St,useEffect:Pm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,qi(4194308,4,Km.bind(null,t,e),a)},useLayoutEffect:function(e,t){return qi(4194308,4,e,t)},useInsertionEffect:function(e,t){qi(4,2,e,t)},useMemo:function(e,t){var a=Et();t=t===void 0?null:t;var l=e();if(Ca){Pt(!0);try{e()}finally{Pt(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=Et();if(a!==void 0){var u=a(t);if(Ca){Pt(!0);try{a(t)}finally{Pt(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=Ey.bind(null,Ee,e),[l.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:function(e){e=gc(e);var t=e.queue,a=nv.bind(null,Ee,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:pc,useDeferredValue:function(e,t){var a=Et();return bc(a,e,t)},useTransition:function(){var e=gc(!1);return e=Im.bind(null,Ee,e.queue,!0,!1),Et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=Ee,u=Et();if(Re){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Ye===null)throw Error(i(349));(ke&124)!==0||jm(l,t,a)}u.memoizedState=a;var f={value:a,getSnapshot:t};return u.queue=f,Pm(Am.bind(null,l,f,e),[e]),l.flags|=2048,dr(9,Xi(),Nm.bind(null,l,f,a,t),null),a},useId:function(){var e=Et(),t=Ye.identifierPrefix;if(Re){var a=En,l=wn;a=(l&~(1<<32-tt(l)-1)).toString(32)+a,t="«"+t+"R"+a,a=Yi++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=yy++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:xc,useFormState:Hm,useActionState:Hm,useOptimistic:function(e){var t=Et();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Sc.bind(null,Ee,!0,a),a.dispatch=t,[e,t]},useMemoCache:dc,useCacheRefresh:function(){return Et().memoizedState=wy.bind(null,Ee)}},iv={readContext:St,use:Bi,useCallback:Qm,useContext:St,useEffect:Xm,useImperativeHandle:Vm,useInsertionEffect:qm,useLayoutEffect:Gm,useMemo:Wm,useReducer:Pi,useRef:Bm,useState:function(){return Pi(An)},useDebugValue:pc,useDeferredValue:function(e,t){var a=at();return Zm(a,Le.memoizedState,e,t)},useTransition:function(){var e=Pi(An)[0],t=at().memoizedState;return[typeof e=="boolean"?e:yl(e),t]},useSyncExternalStore:Em,useId:ev,useHostTransitionStatus:xc,useFormState:$m,useActionState:$m,useOptimistic:function(e,t){var a=at();return km(a,Le,e,t)},useMemoCache:dc,useCacheRefresh:tv},jy={readContext:St,use:Bi,useCallback:Qm,useContext:St,useEffect:Xm,useImperativeHandle:Vm,useInsertionEffect:qm,useLayoutEffect:Gm,useMemo:Wm,useReducer:vc,useRef:Bm,useState:function(){return vc(An)},useDebugValue:pc,useDeferredValue:function(e,t){var a=at();return Le===null?bc(a,e,t):Zm(a,Le.memoizedState,e,t)},useTransition:function(){var e=vc(An)[0],t=at().memoizedState;return[typeof e=="boolean"?e:yl(e),t]},useSyncExternalStore:Em,useId:ev,useHostTransitionStatus:xc,useFormState:Ym,useActionState:Ym,useOptimistic:function(e,t){var a=at();return Le!==null?km(a,Le,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:dc,useCacheRefresh:tv},mr=null,Ol=0;function Vi(e){var t=Ol;return Ol+=1,mr===null&&(mr=[]),pm(mr,e,t)}function _l(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Qi(e,t){throw t.$$typeof===S?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ov(e){var t=e._init;return t(e._payload)}function uv(e){function t(T,E){if(e){var z=T.deletions;z===null?(T.deletions=[E],T.flags|=16):z.push(E)}}function a(T,E){if(!e)return null;for(;E!==null;)t(T,E),E=E.sibling;return null}function l(T){for(var E=new Map;T!==null;)T.key!==null?E.set(T.key,T):E.set(T.index,T),T=T.sibling;return E}function u(T,E){return T=_n(T,E),T.index=0,T.sibling=null,T}function f(T,E,z){return T.index=z,e?(z=T.alternate,z!==null?(z=z.index,z<E?(T.flags|=67108866,E):z):(T.flags|=67108866,E)):(T.flags|=1048576,E)}function v(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function p(T,E,z,Z){return E===null||E.tag!==6?(E=Pu(z,T.mode,Z),E.return=T,E):(E=u(E,z),E.return=T,E)}function O(T,E,z,Z){var de=z.type;return de===$?W(T,E,z.props.children,Z,z.key):E!==null&&(E.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===V&&ov(de)===E.type)?(E=u(E,z.props),_l(E,z),E.return=T,E):(E=Ci(z.type,z.key,z.props,null,T.mode,Z),_l(E,z),E.return=T,E)}function L(T,E,z,Z){return E===null||E.tag!==4||E.stateNode.containerInfo!==z.containerInfo||E.stateNode.implementation!==z.implementation?(E=Xu(z,T.mode,Z),E.return=T,E):(E=u(E,z.children||[]),E.return=T,E)}function W(T,E,z,Z,de){return E===null||E.tag!==7?(E=Oa(z,T.mode,Z,de),E.return=T,E):(E=u(E,z),E.return=T,E)}function J(T,E,z){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Pu(""+E,T.mode,z),E.return=T,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case j:return z=Ci(E.type,E.key,E.props,null,T.mode,z),_l(z,E),z.return=T,z;case C:return E=Xu(E,T.mode,z),E.return=T,E;case V:var Z=E._init;return E=Z(E._payload),J(T,E,z)}if(le(E)||Q(E))return E=Oa(E,T.mode,z,null),E.return=T,E;if(typeof E.then=="function")return J(T,Vi(E),z);if(E.$$typeof===_)return J(T,Di(T,E),z);Qi(T,E)}return null}function H(T,E,z,Z){var de=E!==null?E.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return de!==null?null:p(T,E,""+z,Z);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case j:return z.key===de?O(T,E,z,Z):null;case C:return z.key===de?L(T,E,z,Z):null;case V:return de=z._init,z=de(z._payload),H(T,E,z,Z)}if(le(z)||Q(z))return de!==null?null:W(T,E,z,Z,null);if(typeof z.then=="function")return H(T,E,Vi(z),Z);if(z.$$typeof===_)return H(T,E,Di(T,z),Z);Qi(T,z)}return null}function U(T,E,z,Z,de){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return T=T.get(z)||null,p(E,T,""+Z,de);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case j:return T=T.get(Z.key===null?z:Z.key)||null,O(E,T,Z,de);case C:return T=T.get(Z.key===null?z:Z.key)||null,L(E,T,Z,de);case V:var je=Z._init;return Z=je(Z._payload),U(T,E,z,Z,de)}if(le(Z)||Q(Z))return T=T.get(z)||null,W(E,T,Z,de,null);if(typeof Z.then=="function")return U(T,E,z,Vi(Z),de);if(Z.$$typeof===_)return U(T,E,z,Di(E,Z),de);Qi(E,Z)}return null}function Se(T,E,z,Z){for(var de=null,je=null,me=E,he=E=0,ft=null;me!==null&&he<z.length;he++){me.index>he?(ft=me,me=null):ft=me.sibling;var Me=H(T,me,z[he],Z);if(Me===null){me===null&&(me=ft);break}e&&me&&Me.alternate===null&&t(T,me),E=f(Me,E,he),je===null?de=Me:je.sibling=Me,je=Me,me=ft}if(he===z.length)return a(T,me),Re&&wa(T,he),de;if(me===null){for(;he<z.length;he++)me=J(T,z[he],Z),me!==null&&(E=f(me,E,he),je===null?de=me:je.sibling=me,je=me);return Re&&wa(T,he),de}for(me=l(me);he<z.length;he++)ft=U(me,T,he,z[he],Z),ft!==null&&(e&&ft.alternate!==null&&me.delete(ft.key===null?he:ft.key),E=f(ft,E,he),je===null?de=ft:je.sibling=ft,je=ft);return e&&me.forEach(function(sa){return t(T,sa)}),Re&&wa(T,he),de}function ge(T,E,z,Z){if(z==null)throw Error(i(151));for(var de=null,je=null,me=E,he=E=0,ft=null,Me=z.next();me!==null&&!Me.done;he++,Me=z.next()){me.index>he?(ft=me,me=null):ft=me.sibling;var sa=H(T,me,Me.value,Z);if(sa===null){me===null&&(me=ft);break}e&&me&&sa.alternate===null&&t(T,me),E=f(sa,E,he),je===null?de=sa:je.sibling=sa,je=sa,me=ft}if(Me.done)return a(T,me),Re&&wa(T,he),de;if(me===null){for(;!Me.done;he++,Me=z.next())Me=J(T,Me.value,Z),Me!==null&&(E=f(Me,E,he),je===null?de=Me:je.sibling=Me,je=Me);return Re&&wa(T,he),de}for(me=l(me);!Me.done;he++,Me=z.next())Me=U(me,T,he,Me.value,Z),Me!==null&&(e&&Me.alternate!==null&&me.delete(Me.key===null?he:Me.key),E=f(Me,E,he),je===null?de=Me:je.sibling=Me,je=Me);return e&&me.forEach(function(N0){return t(T,N0)}),Re&&wa(T,he),de}function $e(T,E,z,Z){if(typeof z=="object"&&z!==null&&z.type===$&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case j:e:{for(var de=z.key;E!==null;){if(E.key===de){if(de=z.type,de===$){if(E.tag===7){a(T,E.sibling),Z=u(E,z.props.children),Z.return=T,T=Z;break e}}else if(E.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===V&&ov(de)===E.type){a(T,E.sibling),Z=u(E,z.props),_l(Z,z),Z.return=T,T=Z;break e}a(T,E);break}else t(T,E);E=E.sibling}z.type===$?(Z=Oa(z.props.children,T.mode,Z,z.key),Z.return=T,T=Z):(Z=Ci(z.type,z.key,z.props,null,T.mode,Z),_l(Z,z),Z.return=T,T=Z)}return v(T);case C:e:{for(de=z.key;E!==null;){if(E.key===de)if(E.tag===4&&E.stateNode.containerInfo===z.containerInfo&&E.stateNode.implementation===z.implementation){a(T,E.sibling),Z=u(E,z.children||[]),Z.return=T,T=Z;break e}else{a(T,E);break}else t(T,E);E=E.sibling}Z=Xu(z,T.mode,Z),Z.return=T,T=Z}return v(T);case V:return de=z._init,z=de(z._payload),$e(T,E,z,Z)}if(le(z))return Se(T,E,z,Z);if(Q(z)){if(de=Q(z),typeof de!="function")throw Error(i(150));return z=de.call(z),ge(T,E,z,Z)}if(typeof z.then=="function")return $e(T,E,Vi(z),Z);if(z.$$typeof===_)return $e(T,E,Di(T,z),Z);Qi(T,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,E!==null&&E.tag===6?(a(T,E.sibling),Z=u(E,z),Z.return=T,T=Z):(a(T,E),Z=Pu(z,T.mode,Z),Z.return=T,T=Z),v(T)):a(T,E)}return function(T,E,z,Z){try{Ol=0;var de=$e(T,E,z,Z);return mr=null,de}catch(me){if(me===ml||me===Li)throw me;var je=Dt(29,me,null,T.mode);return je.lanes=Z,je.return=T,je}finally{}}}var vr=uv(!0),cv=uv(!1),It=K(null),cn=null;function Wn(e){var t=e.alternate;ae(it,it.current&1),ae(It,e),cn===null&&(t===null||cr.current!==null||t.memoizedState!==null)&&(cn=e)}function sv(e){if(e.tag===22){if(ae(it,it.current),ae(It,e),cn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(cn=e)}}else Zn()}function Zn(){ae(it,it.current),ae(It,It.current)}function Tn(e){te(It),cn===e&&(cn=null),te(it)}var it=K(0);function Wi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||fs(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Oc(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var _c={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=$t(),u=Kn(l);u.payload=t,a!=null&&(u.callback=a),t=Vn(e,u,l),t!==null&&(Ut(t,e,l),gl(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=$t(),u=Kn(l);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=Vn(e,u,l),t!==null&&(Ut(t,e,l),gl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=$t(),l=Kn(a);l.tag=2,t!=null&&(l.callback=t),t=Vn(e,l,a),t!==null&&(Ut(t,e,a),gl(t,e,a))}};function fv(e,t,a,l,u,f,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,v):t.prototype&&t.prototype.isPureReactComponent?!ll(a,l)||!ll(u,f):!0}function dv(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&_c.enqueueReplaceState(t,t.state,null)}function ka(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}var Zi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function mv(e){Zi(e)}function vv(e){console.error(e)}function gv(e){Zi(e)}function Ii(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function hv(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function wc(e,t,a){return a=Kn(a),a.tag=3,a.payload={element:null},a.callback=function(){Ii(e,t)},a}function pv(e){return e=Kn(e),e.tag=3,e}function bv(e,t,a,l){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var f=l.value;e.payload=function(){return u(f)},e.callback=function(){hv(t,a,l)}}var v=a.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){hv(t,a,l),typeof u!="function"&&(na===null?na=new Set([this]):na.add(this));var p=l.stack;this.componentDidCatch(l.value,{componentStack:p!==null?p:""})})}function Ny(e,t,a,l,u){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&sl(t,a,u,!0),a=It.current,a!==null){switch(a.tag){case 13:return cn===null?Qc():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=u,l===Fu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Zc(e,l,u)),!1;case 22:return a.flags|=65536,l===Fu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Zc(e,l,u)),!1}throw Error(i(435,a.tag))}return Zc(e,l,u),Qc(),!1}if(Re)return t=It.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==Ku&&(e=Error(i(422),{cause:l}),cl(Vt(e,a)))):(l!==Ku&&(t=Error(i(423),{cause:l}),cl(Vt(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=Vt(l,a),u=wc(e.stateNode,l,u),nc(e,u),Ze!==4&&(Ze=2)),!1;var f=Error(i(520),{cause:l});if(f=Vt(f,a),Cl===null?Cl=[f]:Cl.push(f),Ze!==4&&(Ze=2),t===null)return!0;l=Vt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=wc(a.stateNode,l,e),nc(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(na===null||!na.has(f))))return a.flags|=65536,u&=-u,a.lanes|=u,u=pv(u),bv(u,e,a,l),nc(a,u),!1}a=a.return}while(a!==null);return!1}var yv=Error(i(461)),ct=!1;function gt(e,t,a,l){t.child=e===null?cv(t,null,a,l):vr(t,e.child,a,l)}function xv(e,t,a,l,u){a=a.render;var f=t.ref;if("ref"in l){var v={};for(var p in l)p!=="ref"&&(v[p]=l[p])}else v=l;return Aa(t),l=oc(e,t,a,v,f,u),p=uc(),e!==null&&!ct?(cc(e,t,u),Cn(e,t,u)):(Re&&p&&qu(t),t.flags|=1,gt(e,t,l,u),t.child)}function Sv(e,t,a,l,u){if(e===null){var f=a.type;return typeof f=="function"&&!Bu(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,Ov(e,t,f,l,u)):(e=Ci(a.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Mc(e,u)){var v=f.memoizedProps;if(a=a.compare,a=a!==null?a:ll,a(v,l)&&e.ref===t.ref)return Cn(e,t,u)}return t.flags|=1,e=_n(f,l),e.ref=t.ref,e.return=t,t.child=e}function Ov(e,t,a,l,u){if(e!==null){var f=e.memoizedProps;if(ll(f,l)&&e.ref===t.ref)if(ct=!1,t.pendingProps=l=f,Mc(e,u))(e.flags&131072)!==0&&(ct=!0);else return t.lanes=e.lanes,Cn(e,t,u)}return Ec(e,t,a,l,u)}function _v(e,t,a){var l=t.pendingProps,u=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=f!==null?f.baseLanes|a:a,e!==null){for(u=t.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;t.childLanes=f&~l}else t.childLanes=0,t.child=null;return wv(e,t,l,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&zi(t,f!==null?f.cachePool:null),f!==null?Om(t,f):rc(),sv(t);else return t.lanes=t.childLanes=536870912,wv(e,t,f!==null?f.baseLanes|a:a,a)}else f!==null?(zi(t,f.cachePool),Om(t,f),Zn(),t.memoizedState=null):(e!==null&&zi(t,null),rc(),Zn());return gt(e,t,u,a),t.child}function wv(e,t,a,l){var u=Ju();return u=u===null?null:{parent:lt._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&zi(t,null),rc(),sv(t),e!==null&&sl(e,t,l,!0),null}function Ji(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Ec(e,t,a,l,u){return Aa(t),a=oc(e,t,a,l,void 0,u),l=uc(),e!==null&&!ct?(cc(e,t,u),Cn(e,t,u)):(Re&&l&&qu(t),t.flags|=1,gt(e,t,a,u),t.child)}function Ev(e,t,a,l,u,f){return Aa(t),t.updateQueue=null,a=wm(t,l,a,u),_m(e),l=uc(),e!==null&&!ct?(cc(e,t,f),Cn(e,t,f)):(Re&&l&&qu(t),t.flags|=1,gt(e,t,a,f),t.child)}function jv(e,t,a,l,u){if(Aa(t),t.stateNode===null){var f=rr,v=a.contextType;typeof v=="object"&&v!==null&&(f=St(v)),f=new a(l,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=_c,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=l,f.state=t.memoizedState,f.refs={},ec(t),v=a.contextType,f.context=typeof v=="object"&&v!==null?St(v):rr,f.state=t.memoizedState,v=a.getDerivedStateFromProps,typeof v=="function"&&(Oc(t,a,v,l),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(v=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),v!==f.state&&_c.enqueueReplaceState(f,f.state,null),pl(t,l,f,u),hl(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){f=t.stateNode;var p=t.memoizedProps,O=ka(a,p);f.props=O;var L=f.context,W=a.contextType;v=rr,typeof W=="object"&&W!==null&&(v=St(W));var J=a.getDerivedStateFromProps;W=typeof J=="function"||typeof f.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,W||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(p||L!==v)&&dv(t,f,l,v),Gn=!1;var H=t.memoizedState;f.state=H,pl(t,l,f,u),hl(),L=t.memoizedState,p||H!==L||Gn?(typeof J=="function"&&(Oc(t,a,J,l),L=t.memoizedState),(O=Gn||fv(t,a,O,l,H,L,v))?(W||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=L),f.props=l,f.state=L,f.context=v,l=O):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{f=t.stateNode,tc(e,t),v=t.memoizedProps,W=ka(a,v),f.props=W,J=t.pendingProps,H=f.context,L=a.contextType,O=rr,typeof L=="object"&&L!==null&&(O=St(L)),p=a.getDerivedStateFromProps,(L=typeof p=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v!==J||H!==O)&&dv(t,f,l,O),Gn=!1,H=t.memoizedState,f.state=H,pl(t,l,f,u),hl();var U=t.memoizedState;v!==J||H!==U||Gn||e!==null&&e.dependencies!==null&&Ri(e.dependencies)?(typeof p=="function"&&(Oc(t,a,p,l),U=t.memoizedState),(W=Gn||fv(t,a,W,l,H,U,O)||e!==null&&e.dependencies!==null&&Ri(e.dependencies))?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,U,O),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,U,O)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=U),f.props=l,f.state=U,f.context=O,l=W):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),l=!1)}return f=l,Ji(e,t),l=(t.flags&128)!==0,f||l?(f=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&l?(t.child=vr(t,e.child,null,u),t.child=vr(t,null,a,u)):gt(e,t,a,u),t.memoizedState=f.state,e=t.child):e=Cn(e,t,u),e}function Nv(e,t,a,l){return ul(),t.flags|=256,gt(e,t,a,l),t.child}var jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nc(e){return{baseLanes:e,cachePool:vm()}}function Ac(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Jt),e}function Av(e,t,a){var l=t.pendingProps,u=!1,f=(t.flags&128)!==0,v;if((v=f)||(v=e!==null&&e.memoizedState===null?!1:(it.current&2)!==0),v&&(u=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(u?Wn(t):Zn(),Re){var p=We,O;if(O=p){e:{for(O=p,p=un;O.nodeType!==8;){if(!p){p=null;break e}if(O=rn(O.nextSibling),O===null){p=null;break e}}p=O}p!==null?(t.memoizedState={dehydrated:p,treeContext:_a!==null?{id:wn,overflow:En}:null,retryLane:536870912,hydrationErrors:null},O=Dt(18,null,null,0),O.stateNode=p,O.return=t,t.child=O,_t=t,We=null,O=!0):O=!1}O||ja(t)}if(p=t.memoizedState,p!==null&&(p=p.dehydrated,p!==null))return fs(p)?t.lanes=32:t.lanes=536870912,null;Tn(t)}return p=l.children,l=l.fallback,u?(Zn(),u=t.mode,p=Fi({mode:"hidden",children:p},u),l=Oa(l,u,a,null),p.return=t,l.return=t,p.sibling=l,t.child=p,u=t.child,u.memoizedState=Nc(a),u.childLanes=Ac(e,v,a),t.memoizedState=jc,l):(Wn(t),Tc(t,p))}if(O=e.memoizedState,O!==null&&(p=O.dehydrated,p!==null)){if(f)t.flags&256?(Wn(t),t.flags&=-257,t=Cc(e,t,a)):t.memoizedState!==null?(Zn(),t.child=e.child,t.flags|=128,t=null):(Zn(),u=l.fallback,p=t.mode,l=Fi({mode:"visible",children:l.children},p),u=Oa(u,p,a,null),u.flags|=2,l.return=t,u.return=t,l.sibling=u,t.child=l,vr(t,e.child,null,a),l=t.child,l.memoizedState=Nc(a),l.childLanes=Ac(e,v,a),t.memoizedState=jc,t=u);else if(Wn(t),fs(p)){if(v=p.nextSibling&&p.nextSibling.dataset,v)var L=v.dgst;v=L,l=Error(i(419)),l.stack="",l.digest=v,cl({value:l,source:null,stack:null}),t=Cc(e,t,a)}else if(ct||sl(e,t,a,!1),v=(a&e.childLanes)!==0,ct||v){if(v=Ye,v!==null&&(l=a&-a,l=(l&42)!==0?1:yn(l),l=(l&(v.suspendedLanes|a))!==0?0:l,l!==0&&l!==O.retryLane))throw O.retryLane=l,ar(e,l),Ut(v,e,l),yv;p.data==="$?"||Qc(),t=Cc(e,t,a)}else p.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=O.treeContext,We=rn(p.nextSibling),_t=t,Re=!0,Ea=null,un=!1,e!==null&&(Wt[Zt++]=wn,Wt[Zt++]=En,Wt[Zt++]=_a,wn=e.id,En=e.overflow,_a=t),t=Tc(t,l.children),t.flags|=4096);return t}return u?(Zn(),u=l.fallback,p=t.mode,O=e.child,L=O.sibling,l=_n(O,{mode:"hidden",children:l.children}),l.subtreeFlags=O.subtreeFlags&65011712,L!==null?u=_n(L,u):(u=Oa(u,p,a,null),u.flags|=2),u.return=t,l.return=t,l.sibling=u,t.child=l,l=u,u=t.child,p=e.child.memoizedState,p===null?p=Nc(a):(O=p.cachePool,O!==null?(L=lt._currentValue,O=O.parent!==L?{parent:L,pool:L}:O):O=vm(),p={baseLanes:p.baseLanes|a,cachePool:O}),u.memoizedState=p,u.childLanes=Ac(e,v,a),t.memoizedState=jc,l):(Wn(t),a=e.child,e=a.sibling,a=_n(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=a,t.memoizedState=null,a)}function Tc(e,t){return t=Fi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fi(e,t){return e=Dt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Cc(e,t,a){return vr(t,e.child,null,a),e=Tc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Tv(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Qu(e.return,t,a)}function kc(e,t,a,l,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:u}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=u)}function Cv(e,t,a){var l=t.pendingProps,u=l.revealOrder,f=l.tail;if(gt(e,t,l.children,a),l=it.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Tv(e,a,t);else if(e.tag===19)Tv(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(ae(it,l),u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&Wi(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),kc(t,!1,u,a,f);break;case"backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Wi(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}kc(t,!0,a,null,f);break;case"together":kc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Cn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ta|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(sl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,a=_n(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=_n(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Mc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ri(e)))}function Ay(e,t,a){switch(t.tag){case 3:xe(t,t.stateNode.containerInfo),qn(t,lt,e.memoizedState.cache),ul();break;case 27:case 5:dt(t);break;case 4:xe(t,t.stateNode.containerInfo);break;case 10:qn(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Wn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Av(e,t,a):(Wn(t),e=Cn(e,t,a),e!==null?e.sibling:null);Wn(t);break;case 19:var u=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(sl(e,t,a,!1),l=(a&t.childLanes)!==0),u){if(l)return Cv(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ae(it,it.current),l)break;return null;case 22:case 23:return t.lanes=0,_v(e,t,a);case 24:qn(t,lt,e.memoizedState.cache)}return Cn(e,t,a)}function kv(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ct=!0;else{if(!Mc(e,a)&&(t.flags&128)===0)return ct=!1,Ay(e,t,a);ct=(e.flags&131072)!==0}else ct=!1,Re&&(t.flags&1048576)!==0&&om(t,Mi,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,u=l._init;if(l=u(l._payload),t.type=l,typeof l=="function")Bu(l)?(e=ka(l,e),t.tag=1,t=jv(null,t,l,e,a)):(t.tag=0,t=Ec(null,t,l,e,a));else{if(l!=null){if(u=l.$$typeof,u===M){t.tag=11,t=xv(null,t,l,e,a);break e}else if(u===X){t.tag=14,t=Sv(null,t,l,e,a);break e}}throw t=pe(l)||l,Error(i(306,t,""))}}return t;case 0:return Ec(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,u=ka(l,t.pendingProps),jv(e,t,l,u,a);case 3:e:{if(xe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));l=t.pendingProps;var f=t.memoizedState;u=f.element,tc(e,t),pl(t,l,null,a);var v=t.memoizedState;if(l=v.cache,qn(t,lt,l),l!==f.cache&&Wu(t,[lt],a,!0),hl(),l=v.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Nv(e,t,l,a);break e}else if(l!==u){u=Vt(Error(i(424)),t),cl(u),t=Nv(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(We=rn(e.firstChild),_t=t,Re=!0,Ea=null,un=!0,a=cv(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ul(),l===u){t=Cn(e,t,a);break e}gt(e,t,l,a)}t=t.child}return t;case 26:return Ji(e,t),e===null?(a=zg(t.type,null,t.pendingProps,null))?t.memoizedState=a:Re||(a=t.type,e=t.pendingProps,l=vo(F.current).createElement(a),l[Ie]=t,l[vt]=e,pt(l,a,e),ut(l),t.stateNode=l):t.memoizedState=zg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return dt(t),e===null&&Re&&(l=t.stateNode=Mg(t.type,t.pendingProps,F.current),_t=t,un=!0,u=We,la(t.type)?(ds=u,We=rn(l.firstChild)):We=u),gt(e,t,t.pendingProps.children,a),Ji(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((u=l=We)&&(l=n0(l,t.type,t.pendingProps,un),l!==null?(t.stateNode=l,_t=t,We=rn(l.firstChild),un=!1,u=!0):u=!1),u||ja(t)),dt(t),u=t.type,f=t.pendingProps,v=e!==null?e.memoizedProps:null,l=f.children,us(u,f)?l=null:v!==null&&us(u,v)&&(t.flags|=32),t.memoizedState!==null&&(u=oc(e,t,xy,null,null,a),Ul._currentValue=u),Ji(e,t),gt(e,t,l,a),t.child;case 6:return e===null&&Re&&((e=a=We)&&(a=a0(a,t.pendingProps,un),a!==null?(t.stateNode=a,_t=t,We=null,e=!0):e=!1),e||ja(t)),null;case 13:return Av(e,t,a);case 4:return xe(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=vr(t,null,l,a):gt(e,t,l,a),t.child;case 11:return xv(e,t,t.type,t.pendingProps,a);case 7:return gt(e,t,t.pendingProps,a),t.child;case 8:return gt(e,t,t.pendingProps.children,a),t.child;case 12:return gt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,qn(t,t.type,l.value),gt(e,t,l.children,a),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,Aa(t),u=St(u),l=l(u),t.flags|=1,gt(e,t,l,a),t.child;case 14:return Sv(e,t,t.type,t.pendingProps,a);case 15:return Ov(e,t,t.type,t.pendingProps,a);case 19:return Cv(e,t,a);case 31:return l=t.pendingProps,a=t.mode,l={mode:l.mode,children:l.children},e===null?(a=Fi(l,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=_n(e.child,l),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return _v(e,t,a);case 24:return Aa(t),l=St(lt),e===null?(u=Ju(),u===null&&(u=Ye,f=Zu(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=a),u=f),t.memoizedState={parent:l,cache:u},ec(t),qn(t,lt,u)):((e.lanes&a)!==0&&(tc(e,t),pl(t,null,null,a),hl()),u=e.memoizedState,f=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),qn(t,lt,l)):(l=f.cache,qn(t,lt,l),l!==u.cache&&Wu(t,[lt],a,!0))),gt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function kn(e){e.flags|=4}function Mv(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Yg(t)){if(t=It.current,t!==null&&((ke&4194048)===ke?cn!==null:(ke&62914560)!==ke&&(ke&536870912)===0||t!==cn))throw vl=Fu,gm;e.flags|=8192}}function eo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xt():536870912,e.lanes|=t,br|=t)}function wl(e,t){if(!Re)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Ty(e,t,a){var l=t.pendingProps;switch(Gu(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return Ke(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Nn(lt),Pe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ol(t)?kn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sm())),Ke(t),null;case 26:return a=t.memoizedState,e===null?(kn(t),a!==null?(Ke(t),Mv(t,a)):(Ke(t),t.flags&=-16777217)):a?a!==e.memoizedState?(kn(t),Ke(t),Mv(t,a)):(Ke(t),t.flags&=-16777217):(e.memoizedProps!==l&&kn(t),Ke(t),t.flags&=-16777217),null;case 27:Ct(t),a=F.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&kn(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Ke(t),null}e=re.current,ol(t)?um(t):(e=Mg(u,l,a),t.stateNode=e,kn(t))}return Ke(t),null;case 5:if(Ct(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&kn(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Ke(t),null}if(e=re.current,ol(t))um(t);else{switch(u=vo(F.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?u.createElement(a,{is:l.is}):u.createElement(a)}}e[Ie]=t,e[vt]=l;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=e;e:switch(pt(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&kn(t)}}return Ke(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&kn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(i(166));if(e=F.current,ol(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,u=_t,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[Ie]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Eg(e.nodeValue,a)),e||ja(t)}else e=vo(e).createTextNode(l),e[Ie]=t,t.stateNode=e}return Ke(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=ol(t),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(i(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(317));u[Ie]=t}else ul(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),u=!1}else u=sm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Tn(t),t):(Tn(t),null)}if(Tn(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=t.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool);var f=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==u&&(l.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),eo(t,t.updateQueue),Ke(t),null;case 4:return Pe(),e===null&&as(t.stateNode.containerInfo),Ke(t),null;case 10:return Nn(t.type),Ke(t),null;case 19:if(te(it),u=t.memoizedState,u===null)return Ke(t),null;if(l=(t.flags&128)!==0,f=u.rendering,f===null)if(l)wl(u,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Wi(e),f!==null){for(t.flags|=128,wl(u,!1),e=f.updateQueue,t.updateQueue=e,eo(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)im(a,e),a=a.sibling;return ae(it,it.current&1|2),t.child}e=e.sibling}u.tail!==null&&Bt()>ao&&(t.flags|=128,l=!0,wl(u,!1),t.lanes=4194304)}else{if(!l)if(e=Wi(f),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,eo(t,e),wl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!f.alternate&&!Re)return Ke(t),null}else 2*Bt()-u.renderingStartTime>ao&&a!==536870912&&(t.flags|=128,l=!0,wl(u,!1),t.lanes=4194304);u.isBackwards?(f.sibling=t.child,t.child=f):(e=u.last,e!==null?e.sibling=f:t.child=f,u.last=f)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Bt(),t.sibling=null,e=it.current,ae(it,l?e&1|2:e&1),t):(Ke(t),null);case 22:case 23:return Tn(t),lc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),a=t.updateQueue,a!==null&&eo(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&te(Ta),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Nn(lt),Ke(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Cy(e,t){switch(Gu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Nn(lt),Pe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ct(t),null;case 13:if(Tn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return te(it),null;case 4:return Pe(),null;case 10:return Nn(t.type),null;case 22:case 23:return Tn(t),lc(),e!==null&&te(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Nn(lt),null;case 25:return null;default:return null}}function Rv(e,t){switch(Gu(t),t.tag){case 3:Nn(lt),Pe();break;case 26:case 27:case 5:Ct(t);break;case 4:Pe();break;case 13:Tn(t);break;case 19:te(it);break;case 10:Nn(t.type);break;case 22:case 23:Tn(t),lc(),e!==null&&te(Ta);break;case 24:Nn(lt)}}function El(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var u=l.next;a=u;do{if((a.tag&e)===e){l=void 0;var f=a.create,v=a.inst;l=f(),v.destroy=l}a=a.next}while(a!==u)}}catch(p){Ue(t,t.return,p)}}function In(e,t,a){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var f=u.next;l=f;do{if((l.tag&e)===e){var v=l.inst,p=v.destroy;if(p!==void 0){v.destroy=void 0,u=t;var O=a,L=p;try{L()}catch(W){Ue(u,O,W)}}}l=l.next}while(l!==f)}}catch(W){Ue(t,t.return,W)}}function Dv(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Sm(t,a)}catch(l){Ue(e,e.return,l)}}}function zv(e,t,a){a.props=ka(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ue(e,t,l)}}function jl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(u){Ue(e,t,u)}}function sn(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(u){Ue(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Ue(e,t,u)}else a.current=null}function Lv(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(u){Ue(e,e.return,u)}}function Rc(e,t,a){try{var l=e.stateNode;Iy(l,e.type,a,t),l[vt]=t}catch(u){Ue(e,e.return,u)}}function Hv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&la(e.type)||e.tag===4}function Dc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&la(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function zc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=mo));else if(l!==4&&(l===27&&la(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(zc(e,t,a),e=e.sibling;e!==null;)zc(e,t,a),e=e.sibling}function to(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&la(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(to(e,t,a),e=e.sibling;e!==null;)to(e,t,a),e=e.sibling}function $v(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);pt(t,l,a),t[Ie]=e,t[vt]=a}catch(f){Ue(e,e.return,f)}}var Mn=!1,Fe=!1,Lc=!1,Uv=typeof WeakSet=="function"?WeakSet:Set,st=null;function ky(e,t){if(e=e.containerInfo,is=xo,e=Zd(e),Du(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var u=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var v=0,p=-1,O=-1,L=0,W=0,J=e,H=null;t:for(;;){for(var U;J!==a||u!==0&&J.nodeType!==3||(p=v+u),J!==f||l!==0&&J.nodeType!==3||(O=v+l),J.nodeType===3&&(v+=J.nodeValue.length),(U=J.firstChild)!==null;)H=J,J=U;for(;;){if(J===e)break t;if(H===a&&++L===u&&(p=v),H===f&&++W===l&&(O=v),(U=J.nextSibling)!==null)break;J=H,H=J.parentNode}J=U}a=p===-1||O===-1?null:{start:p,end:O}}else a=null}a=a||{start:0,end:0}}else a=null;for(os={focusedElem:e,selectionRange:a},xo=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,f=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=t,u=f.memoizedProps,f=f.memoizedState,l=a.stateNode;try{var Se=ka(a.type,u,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(Se,f),l.__reactInternalSnapshotBeforeUpdate=e}catch(ge){Ue(a,a.return,ge)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)ss(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ss(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,st=e;break}st=t.return}}function Yv(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Jn(e,a),l&4&&El(5,a);break;case 1:if(Jn(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(v){Ue(a,a.return,v)}else{var u=ka(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){Ue(a,a.return,v)}}l&64&&Dv(a),l&512&&jl(a,a.return);break;case 3:if(Jn(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Sm(e,t)}catch(v){Ue(a,a.return,v)}}break;case 27:t===null&&l&4&&$v(a);case 26:case 5:Jn(e,a),t===null&&l&4&&Lv(a),l&512&&jl(a,a.return);break;case 12:Jn(e,a);break;case 13:Jn(e,a),l&4&&Xv(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Yy.bind(null,a),r0(e,a))));break;case 22:if(l=a.memoizedState!==null||Mn,!l){t=t!==null&&t.memoizedState!==null||Fe,u=Mn;var f=Fe;Mn=l,(Fe=t)&&!f?Fn(e,a,(a.subtreeFlags&8772)!==0):Jn(e,a),Mn=u,Fe=f}break;case 30:break;default:Jn(e,a)}}function Bv(e){var t=e.alternate;t!==null&&(e.alternate=null,Bv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&gu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ge=null,jt=!1;function Rn(e,t,a){for(a=a.child;a!==null;)Pv(e,t,a),a=a.sibling}function Pv(e,t,a){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(on,a)}catch{}switch(a.tag){case 26:Fe||sn(a,t),Rn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Fe||sn(a,t);var l=Ge,u=jt;la(a.type)&&(Ge=a.stateNode,jt=!1),Rn(e,t,a),zl(a.stateNode),Ge=l,jt=u;break;case 5:Fe||sn(a,t);case 6:if(l=Ge,u=jt,Ge=null,Rn(e,t,a),Ge=l,jt=u,Ge!==null)if(jt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(a.stateNode)}catch(f){Ue(a,t,f)}else try{Ge.removeChild(a.stateNode)}catch(f){Ue(a,t,f)}break;case 18:Ge!==null&&(jt?(e=Ge,Cg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Xl(e)):Cg(Ge,a.stateNode));break;case 4:l=Ge,u=jt,Ge=a.stateNode.containerInfo,jt=!0,Rn(e,t,a),Ge=l,jt=u;break;case 0:case 11:case 14:case 15:Fe||In(2,a,t),Fe||In(4,a,t),Rn(e,t,a);break;case 1:Fe||(sn(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&zv(a,t,l)),Rn(e,t,a);break;case 21:Rn(e,t,a);break;case 22:Fe=(l=Fe)||a.memoizedState!==null,Rn(e,t,a),Fe=l;break;default:Rn(e,t,a)}}function Xv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Xl(e)}catch(a){Ue(t,t.return,a)}}function My(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Uv),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Uv),t;default:throw Error(i(435,e.tag))}}function Hc(e,t){var a=My(e);t.forEach(function(l){var u=By.bind(null,e,l);a.has(l)||(a.add(l),l.then(u,u))})}function zt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var u=a[l],f=e,v=t,p=v;e:for(;p!==null;){switch(p.tag){case 27:if(la(p.type)){Ge=p.stateNode,jt=!1;break e}break;case 5:Ge=p.stateNode,jt=!1;break e;case 3:case 4:Ge=p.stateNode.containerInfo,jt=!0;break e}p=p.return}if(Ge===null)throw Error(i(160));Pv(f,v,u),Ge=null,jt=!1,f=u.alternate,f!==null&&(f.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)qv(t,e),t=t.sibling}var an=null;function qv(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:zt(t,e),Lt(e),l&4&&(In(3,e,e.return),El(3,e),In(5,e,e.return));break;case 1:zt(t,e),Lt(e),l&512&&(Fe||a===null||sn(a,a.return)),l&64&&Mn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var u=an;if(zt(t,e),Lt(e),l&512&&(Fe||a===null||sn(a,a.return)),l&4){var f=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":f=u.getElementsByTagName("title")[0],(!f||f[Zr]||f[Ie]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=u.createElement(l),u.head.insertBefore(f,u.querySelector("head > title"))),pt(f,l,a),f[Ie]=e,ut(f),l=f;break e;case"link":var v=$g("link","href",u).get(l+(a.href||""));if(v){for(var p=0;p<v.length;p++)if(f=v[p],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){v.splice(p,1);break t}}f=u.createElement(l),pt(f,l,a),u.head.appendChild(f);break;case"meta":if(v=$g("meta","content",u).get(l+(a.content||""))){for(p=0;p<v.length;p++)if(f=v[p],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){v.splice(p,1);break t}}f=u.createElement(l),pt(f,l,a),u.head.appendChild(f);break;default:throw Error(i(468,l))}f[Ie]=e,ut(f),l=f}e.stateNode=l}else Ug(u,e.type,e.stateNode);else e.stateNode=Hg(u,l,e.memoizedProps);else f!==l?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,l===null?Ug(u,e.type,e.stateNode):Hg(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Rc(e,e.memoizedProps,a.memoizedProps)}break;case 27:zt(t,e),Lt(e),l&512&&(Fe||a===null||sn(a,a.return)),a!==null&&l&4&&Rc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(zt(t,e),Lt(e),l&512&&(Fe||a===null||sn(a,a.return)),e.flags&32){u=e.stateNode;try{Za(u,"")}catch(U){Ue(e,e.return,U)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,Rc(e,u,a!==null?a.memoizedProps:u)),l&1024&&(Lc=!0);break;case 6:if(zt(t,e),Lt(e),l&4){if(e.stateNode===null)throw Error(i(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(U){Ue(e,e.return,U)}}break;case 3:if(po=null,u=an,an=go(t.containerInfo),zt(t,e),an=u,Lt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Xl(t.containerInfo)}catch(U){Ue(e,e.return,U)}Lc&&(Lc=!1,Gv(e));break;case 4:l=an,an=go(e.stateNode.containerInfo),zt(t,e),Lt(e),an=l;break;case 12:zt(t,e),Lt(e);break;case 13:zt(t,e),Lt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Xc=Bt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Hc(e,l)));break;case 22:u=e.memoizedState!==null;var O=a!==null&&a.memoizedState!==null,L=Mn,W=Fe;if(Mn=L||u,Fe=W||O,zt(t,e),Fe=W,Mn=L,Lt(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||O||Mn||Fe||Ma(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){O=a=t;try{if(f=O.stateNode,u)v=f.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{p=O.stateNode;var J=O.memoizedProps.style,H=J!=null&&J.hasOwnProperty("display")?J.display:null;p.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(U){Ue(O,O.return,U)}}}else if(t.tag===6){if(a===null){O=t;try{O.stateNode.nodeValue=u?"":O.memoizedProps}catch(U){Ue(O,O.return,U)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Hc(e,a))));break;case 19:zt(t,e),Lt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Hc(e,l)));break;case 30:break;case 21:break;default:zt(t,e),Lt(e)}}function Lt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Hv(l)){a=l;break}l=l.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var u=a.stateNode,f=Dc(e);to(e,f,u);break;case 5:var v=a.stateNode;a.flags&32&&(Za(v,""),a.flags&=-33);var p=Dc(e);to(e,p,v);break;case 3:case 4:var O=a.stateNode.containerInfo,L=Dc(e);zc(e,L,O);break;default:throw Error(i(161))}}catch(W){Ue(e,e.return,W)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Gv(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Jn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Yv(e,t.alternate,t),t=t.sibling}function Ma(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:In(4,t,t.return),Ma(t);break;case 1:sn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&zv(t,t.return,a),Ma(t);break;case 27:zl(t.stateNode);case 26:case 5:sn(t,t.return),Ma(t);break;case 22:t.memoizedState===null&&Ma(t);break;case 30:Ma(t);break;default:Ma(t)}e=e.sibling}}function Fn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,u=e,f=t,v=f.flags;switch(f.tag){case 0:case 11:case 15:Fn(u,f,a),El(4,f);break;case 1:if(Fn(u,f,a),l=f,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(L){Ue(l,l.return,L)}if(l=f,u=l.updateQueue,u!==null){var p=l.stateNode;try{var O=u.shared.hiddenCallbacks;if(O!==null)for(u.shared.hiddenCallbacks=null,u=0;u<O.length;u++)xm(O[u],p)}catch(L){Ue(l,l.return,L)}}a&&v&64&&Dv(f),jl(f,f.return);break;case 27:$v(f);case 26:case 5:Fn(u,f,a),a&&l===null&&v&4&&Lv(f),jl(f,f.return);break;case 12:Fn(u,f,a);break;case 13:Fn(u,f,a),a&&v&4&&Xv(u,f);break;case 22:f.memoizedState===null&&Fn(u,f,a),jl(f,f.return);break;case 30:break;default:Fn(u,f,a)}t=t.sibling}}function $c(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&fl(a))}function Uc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fl(e))}function fn(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Kv(e,t,a,l),t=t.sibling}function Kv(e,t,a,l){var u=t.flags;switch(t.tag){case 0:case 11:case 15:fn(e,t,a,l),u&2048&&El(9,t);break;case 1:fn(e,t,a,l);break;case 3:fn(e,t,a,l),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fl(e)));break;case 12:if(u&2048){fn(e,t,a,l),e=t.stateNode;try{var f=t.memoizedProps,v=f.id,p=f.onPostCommit;typeof p=="function"&&p(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){Ue(t,t.return,O)}}else fn(e,t,a,l);break;case 13:fn(e,t,a,l);break;case 23:break;case 22:f=t.stateNode,v=t.alternate,t.memoizedState!==null?f._visibility&2?fn(e,t,a,l):Nl(e,t):f._visibility&2?fn(e,t,a,l):(f._visibility|=2,gr(e,t,a,l,(t.subtreeFlags&10256)!==0)),u&2048&&$c(v,t);break;case 24:fn(e,t,a,l),u&2048&&Uc(t.alternate,t);break;default:fn(e,t,a,l)}}function gr(e,t,a,l,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var f=e,v=t,p=a,O=l,L=v.flags;switch(v.tag){case 0:case 11:case 15:gr(f,v,p,O,u),El(8,v);break;case 23:break;case 22:var W=v.stateNode;v.memoizedState!==null?W._visibility&2?gr(f,v,p,O,u):Nl(f,v):(W._visibility|=2,gr(f,v,p,O,u)),u&&L&2048&&$c(v.alternate,v);break;case 24:gr(f,v,p,O,u),u&&L&2048&&Uc(v.alternate,v);break;default:gr(f,v,p,O,u)}t=t.sibling}}function Nl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,u=l.flags;switch(l.tag){case 22:Nl(a,l),u&2048&&$c(l.alternate,l);break;case 24:Nl(a,l),u&2048&&Uc(l.alternate,l);break;default:Nl(a,l)}t=t.sibling}}var Al=8192;function hr(e){if(e.subtreeFlags&Al)for(e=e.child;e!==null;)Vv(e),e=e.sibling}function Vv(e){switch(e.tag){case 26:hr(e),e.flags&Al&&e.memoizedState!==null&&p0(an,e.memoizedState,e.memoizedProps);break;case 5:hr(e);break;case 3:case 4:var t=an;an=go(e.stateNode.containerInfo),hr(e),an=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Al,Al=16777216,hr(e),Al=t):hr(e));break;default:hr(e)}}function Qv(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Tl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];st=l,Zv(l,e)}Qv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Wv(e),e=e.sibling}function Wv(e){switch(e.tag){case 0:case 11:case 15:Tl(e),e.flags&2048&&In(9,e,e.return);break;case 3:Tl(e);break;case 12:Tl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,no(e)):Tl(e);break;default:Tl(e)}}function no(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];st=l,Zv(l,e)}Qv(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:In(8,t,t.return),no(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,no(t));break;default:no(t)}e=e.sibling}}function Zv(e,t){for(;st!==null;){var a=st;switch(a.tag){case 0:case 11:case 15:In(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:fl(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,st=l;else e:for(a=e;st!==null;){l=st;var u=l.sibling,f=l.return;if(Bv(l),l===a){st=null;break e}if(u!==null){u.return=f,st=u;break e}st=f}}}var Ry={getCacheForType:function(e){var t=St(lt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},Dy=typeof WeakMap=="function"?WeakMap:Map,De=0,Ye=null,Ae=null,ke=0,ze=0,Ht=null,ea=!1,pr=!1,Yc=!1,Dn=0,Ze=0,ta=0,Ra=0,Bc=0,Jt=0,br=0,Cl=null,Nt=null,Pc=!1,Xc=0,ao=1/0,ro=null,na=null,ht=0,aa=null,yr=null,xr=0,qc=0,Gc=null,Iv=null,kl=0,Kc=null;function $t(){if((De&2)!==0&&ke!==0)return ke&-ke;if(k.T!==null){var e=or;return e!==0?e:Fc()}return Pn()}function Jv(){Jt===0&&(Jt=(ke&536870912)===0||Re?ot():536870912);var e=It.current;return e!==null&&(e.flags|=32),Jt}function Ut(e,t,a){(e===Ye&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(Sr(e,0),ra(e,ke,Jt,!1)),en(e,a),((De&2)===0||e!==Ye)&&(e===Ye&&((De&2)===0&&(Ra|=a),Ze===4&&ra(e,ke,Jt,!1)),dn(e))}function Fv(e,t,a){if((De&6)!==0)throw Error(i(327));var l=!a&&(t&124)===0&&(t&e.expiredLanes)===0||_e(e,t),u=l?Hy(e,t):Wc(e,t,!0),f=l;do{if(u===0){pr&&!l&&ra(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!zy(a)){u=Wc(e,t,!1),f=!1;continue}if(u===2){if(f=t,e.errorRecoveryDisabledLanes&f)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var p=e;u=Cl;var O=p.current.memoizedState.isDehydrated;if(O&&(Sr(p,v).flags|=256),v=Wc(p,v,!1),v!==2){if(Yc&&!O){p.errorRecoveryDisabledLanes|=f,Ra|=f,u=4;break e}f=Nt,Nt=u,f!==null&&(Nt===null?Nt=f:Nt.push.apply(Nt,f))}u=v}if(f=!1,u!==2)continue}}if(u===1){Sr(e,0),ra(e,t,0,!0);break}e:{switch(l=e,f=u,f){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:ra(l,t,Jt,!ea);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(u=Xc+300-Bt(),10<u)){if(ra(l,t,Jt,!ea),Oe(l,0,!0)!==0)break e;l.timeoutHandle=Ag(eg.bind(null,l,a,Nt,ro,Pc,t,Jt,Ra,br,ea,f,2,-0,0),u);break e}eg(l,a,Nt,ro,Pc,t,Jt,Ra,br,ea,f,0,-0,0)}}break}while(!0);dn(e)}function eg(e,t,a,l,u,f,v,p,O,L,W,J,H,U){if(e.timeoutHandle=-1,J=t.subtreeFlags,(J&8192||(J&16785408)===16785408)&&($l={stylesheets:null,count:0,unsuspend:h0},Vv(t),J=b0(),J!==null)){e.cancelPendingCommit=J(og.bind(null,e,t,f,a,l,u,v,p,O,W,1,H,U)),ra(e,f,v,!L);return}og(e,t,f,a,l,u,v,p,O)}function zy(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var u=a[l],f=u.getSnapshot;u=u.value;try{if(!Rt(f(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ra(e,t,a,l){t&=~Bc,t&=~Ra,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var f=31-tt(u),v=1<<f;l[f]=-1,u&=~v}a!==0&&Mt(e,a,t)}function lo(){return(De&6)===0?(Ml(0),!1):!0}function Vc(){if(Ae!==null){if(ze===0)var e=Ae.return;else e=Ae,jn=Na=null,sc(e),mr=null,Ol=0,e=Ae;for(;e!==null;)Rv(e.alternate,e),e=e.return;Ae=null}}function Sr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Fy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Vc(),Ye=e,Ae=a=_n(e.current,null),ke=t,ze=0,Ht=null,ea=!1,pr=_e(e,t),Yc=!1,br=Jt=Bc=Ra=ta=Ze=0,Nt=Cl=null,Pc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var u=31-tt(l),f=1<<u;t|=e[u],l&=~f}return Dn=t,Ni(),a}function tg(e,t){Ee=null,k.H=Ki,t===ml||t===Li?(t=bm(),ze=3):t===gm?(t=bm(),ze=4):ze=t===yv?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ht=t,Ae===null&&(Ze=1,Ii(e,Vt(t,e.current)))}function ng(){var e=k.H;return k.H=Ki,e===null?Ki:e}function ag(){var e=k.A;return k.A=Ry,e}function Qc(){Ze=4,ea||(ke&4194048)!==ke&&It.current!==null||(pr=!0),(ta&134217727)===0&&(Ra&134217727)===0||Ye===null||ra(Ye,ke,Jt,!1)}function Wc(e,t,a){var l=De;De|=2;var u=ng(),f=ag();(Ye!==e||ke!==t)&&(ro=null,Sr(e,t)),t=!1;var v=Ze;e:do try{if(ze!==0&&Ae!==null){var p=Ae,O=Ht;switch(ze){case 8:Vc(),v=6;break e;case 3:case 2:case 9:case 6:It.current===null&&(t=!0);var L=ze;if(ze=0,Ht=null,Or(e,p,O,L),a&&pr){v=0;break e}break;default:L=ze,ze=0,Ht=null,Or(e,p,O,L)}}Ly(),v=Ze;break}catch(W){tg(e,W)}while(!0);return t&&e.shellSuspendCounter++,jn=Na=null,De=l,k.H=u,k.A=f,Ae===null&&(Ye=null,ke=0,Ni()),v}function Ly(){for(;Ae!==null;)rg(Ae)}function Hy(e,t){var a=De;De|=2;var l=ng(),u=ag();Ye!==e||ke!==t?(ro=null,ao=Bt()+500,Sr(e,t)):pr=_e(e,t);e:do try{if(ze!==0&&Ae!==null){t=Ae;var f=Ht;t:switch(ze){case 1:ze=0,Ht=null,Or(e,t,f,1);break;case 2:case 9:if(hm(f)){ze=0,Ht=null,lg(t);break}t=function(){ze!==2&&ze!==9||Ye!==e||(ze=7),dn(e)},f.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:hm(f)?(ze=0,Ht=null,lg(t)):(ze=0,Ht=null,Or(e,t,f,7));break;case 5:var v=null;switch(Ae.tag){case 26:v=Ae.memoizedState;case 5:case 27:var p=Ae;if(!v||Yg(v)){ze=0,Ht=null;var O=p.sibling;if(O!==null)Ae=O;else{var L=p.return;L!==null?(Ae=L,io(L)):Ae=null}break t}}ze=0,Ht=null,Or(e,t,f,5);break;case 6:ze=0,Ht=null,Or(e,t,f,6);break;case 8:Vc(),Ze=6;break e;default:throw Error(i(462))}}$y();break}catch(W){tg(e,W)}while(!0);return jn=Na=null,k.H=l,k.A=u,De=a,Ae!==null?0:(Ye=null,ke=0,Ni(),Ze)}function $y(){for(;Ae!==null&&!Gr();)rg(Ae)}function rg(e){var t=kv(e.alternate,e,Dn);e.memoizedProps=e.pendingProps,t===null?io(e):Ae=t}function lg(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Ev(a,t,t.pendingProps,t.type,void 0,ke);break;case 11:t=Ev(a,t,t.pendingProps,t.type.render,t.ref,ke);break;case 5:sc(t);default:Rv(a,t),t=Ae=im(t,Dn),t=kv(a,t,Dn)}e.memoizedProps=e.pendingProps,t===null?io(e):Ae=t}function Or(e,t,a,l){jn=Na=null,sc(t),mr=null,Ol=0;var u=t.return;try{if(Ny(e,u,t,a,ke)){Ze=1,Ii(e,Vt(a,e.current)),Ae=null;return}}catch(f){if(u!==null)throw Ae=u,f;Ze=1,Ii(e,Vt(a,e.current)),Ae=null;return}t.flags&32768?(Re||l===1?e=!0:pr||(ke&536870912)!==0?e=!1:(ea=e=!0,(l===2||l===9||l===3||l===6)&&(l=It.current,l!==null&&l.tag===13&&(l.flags|=16384))),ig(t,e)):io(t)}function io(e){var t=e;do{if((t.flags&32768)!==0){ig(t,ea);return}e=t.return;var a=Ty(t.alternate,t,Dn);if(a!==null){Ae=a;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);Ze===0&&(Ze=5)}function ig(e,t){do{var a=Cy(e.alternate,e);if(a!==null){a.flags&=32767,Ae=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=a}while(e!==null);Ze=6,Ae=null}function og(e,t,a,l,u,f,v,p,O){e.cancelPendingCommit=null;do oo();while(ht!==0);if((De&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(f=t.lanes|t.childLanes,f|=Uu,Bn(e,a,f,v,p,O),e===Ye&&(Ae=Ye=null,ke=0),yr=t,aa=e,xr=a,qc=f,Gc=u,Iv=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Py(Pa,function(){return dg(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=k.T,k.T=null,u=I.p,I.p=2,v=De,De|=4;try{ky(e,t,a)}finally{De=v,I.p=u,k.T=l}}ht=1,ug(),cg(),sg()}}function ug(){if(ht===1){ht=0;var e=aa,t=yr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var l=I.p;I.p=2;var u=De;De|=4;try{qv(t,e);var f=os,v=Zd(e.containerInfo),p=f.focusedElem,O=f.selectionRange;if(v!==p&&p&&p.ownerDocument&&Wd(p.ownerDocument.documentElement,p)){if(O!==null&&Du(p)){var L=O.start,W=O.end;if(W===void 0&&(W=L),"selectionStart"in p)p.selectionStart=L,p.selectionEnd=Math.min(W,p.value.length);else{var J=p.ownerDocument||document,H=J&&J.defaultView||window;if(H.getSelection){var U=H.getSelection(),Se=p.textContent.length,ge=Math.min(O.start,Se),$e=O.end===void 0?ge:Math.min(O.end,Se);!U.extend&&ge>$e&&(v=$e,$e=ge,ge=v);var T=Qd(p,ge),E=Qd(p,$e);if(T&&E&&(U.rangeCount!==1||U.anchorNode!==T.node||U.anchorOffset!==T.offset||U.focusNode!==E.node||U.focusOffset!==E.offset)){var z=J.createRange();z.setStart(T.node,T.offset),U.removeAllRanges(),ge>$e?(U.addRange(z),U.extend(E.node,E.offset)):(z.setEnd(E.node,E.offset),U.addRange(z))}}}}for(J=[],U=p;U=U.parentNode;)U.nodeType===1&&J.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<J.length;p++){var Z=J[p];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}xo=!!is,os=is=null}finally{De=u,I.p=l,k.T=a}}e.current=t,ht=2}}function cg(){if(ht===2){ht=0;var e=aa,t=yr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var l=I.p;I.p=2;var u=De;De|=4;try{Yv(e,t.alternate,t)}finally{De=u,I.p=l,k.T=a}}ht=3}}function sg(){if(ht===4||ht===3){ht=0,Ba();var e=aa,t=yr,a=xr,l=Iv;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ht=5:(ht=0,yr=aa=null,fg(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(na=null),mt(a),t=t.stateNode,yt&&typeof yt.onCommitFiberRoot=="function")try{yt.onCommitFiberRoot(on,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=k.T,u=I.p,I.p=2,k.T=null;try{for(var f=e.onRecoverableError,v=0;v<l.length;v++){var p=l[v];f(p.value,{componentStack:p.stack})}}finally{k.T=t,I.p=u}}(xr&3)!==0&&oo(),dn(e),u=e.pendingLanes,(a&4194090)!==0&&(u&42)!==0?e===Kc?kl++:(kl=0,Kc=e):kl=0,Ml(0)}}function fg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fl(t)))}function oo(e){return ug(),cg(),sg(),dg()}function dg(){if(ht!==5)return!1;var e=aa,t=qc;qc=0;var a=mt(xr),l=k.T,u=I.p;try{I.p=32>a?32:a,k.T=null,a=Gc,Gc=null;var f=aa,v=xr;if(ht=0,yr=aa=null,xr=0,(De&6)!==0)throw Error(i(331));var p=De;if(De|=4,Wv(f.current),Kv(f,f.current,v,a),De=p,Ml(0,!1),yt&&typeof yt.onPostCommitFiberRoot=="function")try{yt.onPostCommitFiberRoot(on,f)}catch{}return!0}finally{I.p=u,k.T=l,fg(e,t)}}function mg(e,t,a){t=Vt(a,t),t=wc(e.stateNode,t,2),e=Vn(e,t,2),e!==null&&(en(e,2),dn(e))}function Ue(e,t,a){if(e.tag===3)mg(e,e,a);else for(;t!==null;){if(t.tag===3){mg(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(na===null||!na.has(l))){e=Vt(a,e),a=pv(2),l=Vn(t,a,2),l!==null&&(bv(a,l,t,e),en(l,2),dn(l));break}}t=t.return}}function Zc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Dy;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(a)||(Yc=!0,u.add(a),e=Uy.bind(null,e,t,a),t.then(e,e))}function Uy(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ye===e&&(ke&a)===a&&(Ze===4||Ze===3&&(ke&62914560)===ke&&300>Bt()-Xc?(De&2)===0&&Sr(e,0):Bc|=a,br===ke&&(br=0)),dn(e)}function vg(e,t){t===0&&(t=Xt()),e=ar(e,t),e!==null&&(en(e,t),dn(e))}function Yy(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),vg(e,a)}function By(e,t){var a=0;switch(e.tag){case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(t),vg(e,a)}function Py(e,t){return Xe(e,t)}var uo=null,_r=null,Ic=!1,co=!1,Jc=!1,Da=0;function dn(e){e!==_r&&e.next===null&&(_r===null?uo=_r=e:_r=_r.next=e),co=!0,Ic||(Ic=!0,qy())}function Ml(e,t){if(!Jc&&co){Jc=!0;do for(var a=!1,l=uo;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var f=0;else{var v=l.suspendedLanes,p=l.pingedLanes;f=(1<<31-tt(42|e)+1)-1,f&=u&~(v&~p),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,bg(l,f))}else f=ke,f=Oe(l,l===Ye?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||_e(l,f)||(a=!0,bg(l,f));l=l.next}while(a);Jc=!1}}function Xy(){gg()}function gg(){co=Ic=!1;var e=0;Da!==0&&(Jy()&&(e=Da),Da=0);for(var t=Bt(),a=null,l=uo;l!==null;){var u=l.next,f=hg(l,t);f===0?(l.next=null,a===null?uo=u:a.next=u,u===null&&(_r=a)):(a=l,(e!==0||(f&3)!==0)&&(co=!0)),l=u}Ml(e)}function hg(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var v=31-tt(f),p=1<<v,O=u[v];O===-1?((p&a)===0||(p&l)!==0)&&(u[v]=Qe(p,t)):O<=t&&(e.expiredLanes|=p),f&=~p}if(t=Ye,a=ke,a=Oe(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&hn(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||_e(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&hn(l),mt(a)){case 2:case 8:a=Kr;break;case 32:a=Pa;break;case 268435456:a=Vr;break;default:a=Pa}return l=pg.bind(null,e),a=Xe(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&hn(l),e.callbackPriority=2,e.callbackNode=null,2}function pg(e,t){if(ht!==0&&ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(oo()&&e.callbackNode!==a)return null;var l=ke;return l=Oe(e,e===Ye?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Fv(e,l,t),hg(e,Bt()),e.callbackNode!=null&&e.callbackNode===a?pg.bind(null,e):null)}function bg(e,t){if(oo())return null;Fv(e,t,!0)}function qy(){e0(function(){(De&6)!==0?Xe(pa,Xy):gg()})}function Fc(){return Da===0&&(Da=ot()),Da}function yg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xi(""+e)}function xg(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Gy(e,t,a,l,u){if(t==="submit"&&a&&a.stateNode===u){var f=yg((u[vt]||null).action),v=l.submitter;v&&(t=(t=v[vt]||null)?yg(t.formAction):v.getAttribute("formAction"),t!==null&&(f=t,v=null));var p=new wi("action","action",null,l,u);e.push({event:p,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Da!==0){var O=v?xg(u,v):new FormData(u);yc(a,{pending:!0,data:O,method:u.method,action:f},null,O)}}else typeof f=="function"&&(p.preventDefault(),O=v?xg(u,v):new FormData(u),yc(a,{pending:!0,data:O,method:u.method,action:f},f,O))},currentTarget:u}]})}}for(var es=0;es<$u.length;es++){var ts=$u[es],Ky=ts.toLowerCase(),Vy=ts[0].toUpperCase()+ts.slice(1);nn(Ky,"on"+Vy)}nn(Fd,"onAnimationEnd"),nn(em,"onAnimationIteration"),nn(tm,"onAnimationStart"),nn("dblclick","onDoubleClick"),nn("focusin","onFocus"),nn("focusout","onBlur"),nn(sy,"onTransitionRun"),nn(fy,"onTransitionStart"),nn(dy,"onTransitionCancel"),nn(nm,"onTransitionEnd"),Va("onMouseEnter",["mouseout","mouseover"]),Va("onMouseLeave",["mouseout","mouseover"]),Va("onPointerEnter",["pointerout","pointerover"]),Va("onPointerLeave",["pointerout","pointerover"]),ba("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ba("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ba("onBeforeInput",["compositionend","keypress","textInput","paste"]),ba("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ba("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ba("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rl));function Sg(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],u=l.event;l=l.listeners;e:{var f=void 0;if(t)for(var v=l.length-1;0<=v;v--){var p=l[v],O=p.instance,L=p.currentTarget;if(p=p.listener,O!==f&&u.isPropagationStopped())break e;f=p,u.currentTarget=L;try{f(u)}catch(W){Zi(W)}u.currentTarget=null,f=O}else for(v=0;v<l.length;v++){if(p=l[v],O=p.instance,L=p.currentTarget,p=p.listener,O!==f&&u.isPropagationStopped())break e;f=p,u.currentTarget=L;try{f(u)}catch(W){Zi(W)}u.currentTarget=null,f=O}}}}function Te(e,t){var a=t[xn];a===void 0&&(a=t[xn]=new Set);var l=e+"__bubble";a.has(l)||(Og(t,e,2,!1),a.add(l))}function ns(e,t,a){var l=0;t&&(l|=4),Og(a,e,l,t)}var so="_reactListening"+Math.random().toString(36).slice(2);function as(e){if(!e[so]){e[so]=!0,gd.forEach(function(a){a!=="selectionchange"&&(Qy.has(a)||ns(a,!1,e),ns(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[so]||(t[so]=!0,ns("selectionchange",!1,t))}}function Og(e,t,a,l){switch(Kg(t)){case 2:var u=S0;break;case 8:u=O0;break;default:u=ps}a=u.bind(null,t,a,e),u=void 0,!Eu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function rs(e,t,a,l,u){var f=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var v=l.tag;if(v===3||v===4){var p=l.stateNode.containerInfo;if(p===u)break;if(v===4)for(v=l.return;v!==null;){var O=v.tag;if((O===3||O===4)&&v.stateNode.containerInfo===u)return;v=v.return}for(;p!==null;){if(v=qa(p),v===null)return;if(O=v.tag,O===5||O===6||O===26||O===27){l=f=v;continue e}p=p.parentNode}}l=l.return}Td(function(){var L=f,W=_u(a),J=[];e:{var H=am.get(e);if(H!==void 0){var U=wi,Se=e;switch(e){case"keypress":if(Oi(a)===0)break e;case"keydown":case"keyup":U=Pb;break;case"focusin":Se="focus",U=Tu;break;case"focusout":Se="blur",U=Tu;break;case"beforeblur":case"afterblur":U=Tu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=Md;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Cb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Gb;break;case Fd:case em:case tm:U=Rb;break;case nm:U=Vb;break;case"scroll":case"scrollend":U=Ab;break;case"wheel":U=Wb;break;case"copy":case"cut":case"paste":U=zb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Dd;break;case"toggle":case"beforetoggle":U=Ib}var ge=(t&4)!==0,$e=!ge&&(e==="scroll"||e==="scrollend"),T=ge?H!==null?H+"Capture":null:H;ge=[];for(var E=L,z;E!==null;){var Z=E;if(z=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||z===null||T===null||(Z=Jr(E,T),Z!=null&&ge.push(Dl(E,Z,z))),$e)break;E=E.return}0<ge.length&&(H=new U(H,Se,null,a,W),J.push({event:H,listeners:ge}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",H&&a!==Ou&&(Se=a.relatedTarget||a.fromElement)&&(qa(Se)||Se[xt]))break e;if((U||H)&&(H=W.window===W?W:(H=W.ownerDocument)?H.defaultView||H.parentWindow:window,U?(Se=a.relatedTarget||a.toElement,U=L,Se=Se?qa(Se):null,Se!==null&&($e=s(Se),ge=Se.tag,Se!==$e||ge!==5&&ge!==27&&ge!==6)&&(Se=null)):(U=null,Se=L),U!==Se)){if(ge=Md,Z="onMouseLeave",T="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(ge=Dd,Z="onPointerLeave",T="onPointerEnter",E="pointer"),$e=U==null?H:Ir(U),z=Se==null?H:Ir(Se),H=new ge(Z,E+"leave",U,a,W),H.target=$e,H.relatedTarget=z,Z=null,qa(W)===L&&(ge=new ge(T,E+"enter",Se,a,W),ge.target=z,ge.relatedTarget=$e,Z=ge),$e=Z,U&&Se)t:{for(ge=U,T=Se,E=0,z=ge;z;z=wr(z))E++;for(z=0,Z=T;Z;Z=wr(Z))z++;for(;0<E-z;)ge=wr(ge),E--;for(;0<z-E;)T=wr(T),z--;for(;E--;){if(ge===T||T!==null&&ge===T.alternate)break t;ge=wr(ge),T=wr(T)}ge=null}else ge=null;U!==null&&_g(J,H,U,ge,!1),Se!==null&&$e!==null&&_g(J,$e,Se,ge,!0)}}e:{if(H=L?Ir(L):window,U=H.nodeName&&H.nodeName.toLowerCase(),U==="select"||U==="input"&&H.type==="file")var de=Pd;else if(Yd(H))if(Xd)de=oy;else{de=ly;var je=ry}else U=H.nodeName,!U||U.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?L&&Su(L.elementType)&&(de=Pd):de=iy;if(de&&(de=de(e,L))){Bd(J,de,a,W);break e}je&&je(e,H,L),e==="focusout"&&L&&H.type==="number"&&L.memoizedProps.value!=null&&xu(H,"number",H.value)}switch(je=L?Ir(L):window,e){case"focusin":(Yd(je)||je.contentEditable==="true")&&(er=je,zu=L,il=null);break;case"focusout":il=zu=er=null;break;case"mousedown":Lu=!0;break;case"contextmenu":case"mouseup":case"dragend":Lu=!1,Id(J,a,W);break;case"selectionchange":if(cy)break;case"keydown":case"keyup":Id(J,a,W)}var me;if(ku)e:{switch(e){case"compositionstart":var he="onCompositionStart";break e;case"compositionend":he="onCompositionEnd";break e;case"compositionupdate":he="onCompositionUpdate";break e}he=void 0}else Fa?$d(e,a)&&(he="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(he="onCompositionStart");he&&(zd&&a.locale!=="ko"&&(Fa||he!=="onCompositionStart"?he==="onCompositionEnd"&&Fa&&(me=Cd()):(Xn=W,ju="value"in Xn?Xn.value:Xn.textContent,Fa=!0)),je=fo(L,he),0<je.length&&(he=new Rd(he,e,null,a,W),J.push({event:he,listeners:je}),me?he.data=me:(me=Ud(a),me!==null&&(he.data=me)))),(me=Fb?ey(e,a):ty(e,a))&&(he=fo(L,"onBeforeInput"),0<he.length&&(je=new Rd("onBeforeInput","beforeinput",null,a,W),J.push({event:je,listeners:he}),je.data=me)),Gy(J,e,L,a,W)}Sg(J,t)})}function Dl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function fo(e,t){for(var a=t+"Capture",l=[];e!==null;){var u=e,f=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||f===null||(u=Jr(e,a),u!=null&&l.unshift(Dl(e,u,f)),u=Jr(e,t),u!=null&&l.push(Dl(e,u,f))),e.tag===3)return l;e=e.return}return[]}function wr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function _g(e,t,a,l,u){for(var f=t._reactName,v=[];a!==null&&a!==l;){var p=a,O=p.alternate,L=p.stateNode;if(p=p.tag,O!==null&&O===l)break;p!==5&&p!==26&&p!==27||L===null||(O=L,u?(L=Jr(a,f),L!=null&&v.unshift(Dl(a,L,O))):u||(L=Jr(a,f),L!=null&&v.push(Dl(a,L,O)))),a=a.return}v.length!==0&&e.push({event:t,listeners:v})}var Wy=/\r\n?/g,Zy=/\u0000|\uFFFD/g;function wg(e){return(typeof e=="string"?e:""+e).replace(Wy,`
`).replace(Zy,"")}function Eg(e,t){return t=wg(t),wg(e)===t}function mo(){}function He(e,t,a,l,u,f){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Za(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Za(e,""+l);break;case"className":pi(e,"class",l);break;case"tabIndex":pi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":pi(e,a,l);break;case"style":Nd(e,l,f);break;case"data":if(t!=="object"){pi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=xi(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"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 f=="function"&&(a==="formAction"?(t!=="input"&&He(e,t,"name",u.name,u,null),He(e,t,"formEncType",u.formEncType,u,null),He(e,t,"formMethod",u.formMethod,u,null),He(e,t,"formTarget",u.formTarget,u,null)):(He(e,t,"encType",u.encType,u,null),He(e,t,"method",u.method,u,null),He(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=xi(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=mo);break;case"onScroll":l!=null&&Te("scroll",e);break;case"onScrollEnd":l!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=xi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Te("beforetoggle",e),Te("toggle",e),hi(e,"popover",l);break;case"xlinkActuate":Sn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Sn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Sn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Sn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Sn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Sn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":hi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=jb.get(a)||a,hi(e,a,l))}}function ls(e,t,a,l,u,f){switch(a){case"style":Nd(e,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Za(e,l):(typeof l=="number"||typeof l=="bigint")&&Za(e,""+l);break;case"onScroll":l!=null&&Te("scroll",e);break;case"onScrollEnd":l!=null&&Te("scrollend",e);break;case"onClick":l!=null&&(e.onclick=mo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),f=e[vt]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,u),typeof l=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,u);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):hi(e,a,l)}}}function pt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var l=!1,u=!1,f;for(f in a)if(a.hasOwnProperty(f)){var v=a[f];if(v!=null)switch(f){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:He(e,t,f,v,a,null)}}u&&He(e,t,"srcSet",a.srcSet,a,null),l&&He(e,t,"src",a.src,a,null);return;case"input":Te("invalid",e);var p=f=v=u=null,O=null,L=null;for(l in a)if(a.hasOwnProperty(l)){var W=a[l];if(W!=null)switch(l){case"name":u=W;break;case"type":v=W;break;case"checked":O=W;break;case"defaultChecked":L=W;break;case"value":f=W;break;case"defaultValue":p=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(i(137,t));break;default:He(e,t,l,W,a,null)}}_d(e,f,p,O,L,v,u,!1),bi(e);return;case"select":Te("invalid",e),l=v=f=null;for(u in a)if(a.hasOwnProperty(u)&&(p=a[u],p!=null))switch(u){case"value":f=p;break;case"defaultValue":v=p;break;case"multiple":l=p;default:He(e,t,u,p,a,null)}t=f,a=v,e.multiple=!!l,t!=null?Wa(e,!!l,t,!1):a!=null&&Wa(e,!!l,a,!0);return;case"textarea":Te("invalid",e),f=u=l=null;for(v in a)if(a.hasOwnProperty(v)&&(p=a[v],p!=null))switch(v){case"value":l=p;break;case"defaultValue":u=p;break;case"children":f=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(i(91));break;default:He(e,t,v,p,a,null)}Ed(e,l,u,f),bi(e);return;case"option":for(O in a)if(a.hasOwnProperty(O)&&(l=a[O],l!=null))switch(O){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:He(e,t,O,l,a,null)}return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(l=0;l<Rl.length;l++)Te(Rl[l],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in a)if(a.hasOwnProperty(L)&&(l=a[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:He(e,t,L,l,a,null)}return;default:if(Su(t)){for(W in a)a.hasOwnProperty(W)&&(l=a[W],l!==void 0&&ls(e,t,W,l,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(l=a[p],l!=null&&He(e,t,p,l,a,null))}function Iy(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,f=null,v=null,p=null,O=null,L=null,W=null;for(U in a){var J=a[U];if(a.hasOwnProperty(U)&&J!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":O=J;default:l.hasOwnProperty(U)||He(e,t,U,null,l,J)}}for(var H in l){var U=l[H];if(J=a[H],l.hasOwnProperty(H)&&(U!=null||J!=null))switch(H){case"type":f=U;break;case"name":u=U;break;case"checked":L=U;break;case"defaultChecked":W=U;break;case"value":v=U;break;case"defaultValue":p=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(i(137,t));break;default:U!==J&&He(e,t,H,U,l,J)}}yu(e,v,p,O,L,W,f,u);return;case"select":U=v=p=H=null;for(f in a)if(O=a[f],a.hasOwnProperty(f)&&O!=null)switch(f){case"value":break;case"multiple":U=O;default:l.hasOwnProperty(f)||He(e,t,f,null,l,O)}for(u in l)if(f=l[u],O=a[u],l.hasOwnProperty(u)&&(f!=null||O!=null))switch(u){case"value":H=f;break;case"defaultValue":p=f;break;case"multiple":v=f;default:f!==O&&He(e,t,u,f,l,O)}t=p,a=v,l=U,H!=null?Wa(e,!!a,H,!1):!!l!=!!a&&(t!=null?Wa(e,!!a,t,!0):Wa(e,!!a,a?[]:"",!1));return;case"textarea":U=H=null;for(p in a)if(u=a[p],a.hasOwnProperty(p)&&u!=null&&!l.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:He(e,t,p,null,l,u)}for(v in l)if(u=l[v],f=a[v],l.hasOwnProperty(v)&&(u!=null||f!=null))switch(v){case"value":H=u;break;case"defaultValue":U=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(i(91));break;default:u!==f&&He(e,t,v,u,l,f)}wd(e,H,U);return;case"option":for(var Se in a)if(H=a[Se],a.hasOwnProperty(Se)&&H!=null&&!l.hasOwnProperty(Se))switch(Se){case"selected":e.selected=!1;break;default:He(e,t,Se,null,l,H)}for(O in l)if(H=l[O],U=a[O],l.hasOwnProperty(O)&&H!==U&&(H!=null||U!=null))switch(O){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:He(e,t,O,H,l,U)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ge in a)H=a[ge],a.hasOwnProperty(ge)&&H!=null&&!l.hasOwnProperty(ge)&&He(e,t,ge,null,l,H);for(L in l)if(H=l[L],U=a[L],l.hasOwnProperty(L)&&H!==U&&(H!=null||U!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(i(137,t));break;default:He(e,t,L,H,l,U)}return;default:if(Su(t)){for(var $e in a)H=a[$e],a.hasOwnProperty($e)&&H!==void 0&&!l.hasOwnProperty($e)&&ls(e,t,$e,void 0,l,H);for(W in l)H=l[W],U=a[W],!l.hasOwnProperty(W)||H===U||H===void 0&&U===void 0||ls(e,t,W,H,l,U);return}}for(var T in a)H=a[T],a.hasOwnProperty(T)&&H!=null&&!l.hasOwnProperty(T)&&He(e,t,T,null,l,H);for(J in l)H=l[J],U=a[J],!l.hasOwnProperty(J)||H===U||H==null&&U==null||He(e,t,J,H,l,U)}var is=null,os=null;function vo(e){return e.nodeType===9?e:e.ownerDocument}function jg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ng(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function us(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var cs=null;function Jy(){var e=window.event;return e&&e.type==="popstate"?e===cs?!1:(cs=e,!0):(cs=null,!1)}var Ag=typeof setTimeout=="function"?setTimeout:void 0,Fy=typeof clearTimeout=="function"?clearTimeout:void 0,Tg=typeof Promise=="function"?Promise:void 0,e0=typeof queueMicrotask=="function"?queueMicrotask:typeof Tg<"u"?function(e){return Tg.resolve(null).then(e).catch(t0)}:Ag;function t0(e){setTimeout(function(){throw e})}function la(e){return e==="head"}function Cg(e,t){var a=t,l=0,u=0;do{var f=a.nextSibling;if(e.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(0<l&&8>l){a=l;var v=e.ownerDocument;if(a&1&&zl(v.documentElement),a&2&&zl(v.body),a&4)for(a=v.head,zl(a),v=a.firstChild;v;){var p=v.nextSibling,O=v.nodeName;v[Zr]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&v.rel.toLowerCase()==="stylesheet"||a.removeChild(v),v=p}}if(u===0){e.removeChild(f),Xl(t);return}u--}else a==="$"||a==="$?"||a==="$!"?u++:l=a.charCodeAt(0)-48;else l=0;a=f}while(a);Xl(t)}function ss(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":ss(a),gu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function n0(e,t,a,l){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Zr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=rn(e.nextSibling),e===null)break}return null}function a0(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=rn(e.nextSibling),e===null))return null;return e}function fs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function r0(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function rn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var ds=null;function kg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function Mg(e,t,a){switch(t=vo(a),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function zl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gu(e)}var Ft=new Map,Rg=new Set;function go(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var zn=I.d;I.d={f:l0,r:i0,D:o0,C:u0,L:c0,m:s0,X:d0,S:f0,M:m0};function l0(){var e=zn.f(),t=lo();return e||t}function i0(e){var t=Ga(e);t!==null&&t.tag===5&&t.type==="form"?Fm(t):zn.r(e)}var Er=typeof document>"u"?null:document;function Dg(e,t,a){var l=Er;if(l&&typeof t=="string"&&t){var u=Kt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Rg.has(u)||(Rg.add(u),e={rel:e,crossOrigin:a,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),pt(t,"link",e),ut(t),l.head.appendChild(t)))}}function o0(e){zn.D(e),Dg("dns-prefetch",e,null)}function u0(e,t){zn.C(e,t),Dg("preconnect",e,t)}function c0(e,t,a){zn.L(e,t,a);var l=Er;if(l&&e&&t){var u='link[rel="preload"][as="'+Kt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Kt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Kt(a.imageSizes)+'"]')):u+='[href="'+Kt(e)+'"]';var f=u;switch(t){case"style":f=jr(e);break;case"script":f=Nr(e)}Ft.has(f)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Ft.set(f,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(Ll(f))||t==="script"&&l.querySelector(Hl(f))||(t=l.createElement("link"),pt(t,"link",e),ut(t),l.head.appendChild(t)))}}function s0(e,t){zn.m(e,t);var a=Er;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Kt(l)+'"][href="'+Kt(e)+'"]',f=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Nr(e)}if(!Ft.has(f)&&(e=y({rel:"modulepreload",href:e},t),Ft.set(f,e),a.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Hl(f)))return}l=a.createElement("link"),pt(l,"link",e),ut(l),a.head.appendChild(l)}}}function f0(e,t,a){zn.S(e,t,a);var l=Er;if(l&&e){var u=Ka(l).hoistableStyles,f=jr(e);t=t||"default";var v=u.get(f);if(!v){var p={loading:0,preload:null};if(v=l.querySelector(Ll(f)))p.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Ft.get(f))&&ms(e,a);var O=v=l.createElement("link");ut(O),pt(O,"link",e),O._p=new Promise(function(L,W){O.onload=L,O.onerror=W}),O.addEventListener("load",function(){p.loading|=1}),O.addEventListener("error",function(){p.loading|=2}),p.loading|=4,ho(v,t,l)}v={type:"stylesheet",instance:v,count:1,state:p},u.set(f,v)}}}function d0(e,t){zn.X(e,t);var a=Er;if(a&&e){var l=Ka(a).hoistableScripts,u=Nr(e),f=l.get(u);f||(f=a.querySelector(Hl(u)),f||(e=y({src:e,async:!0},t),(t=Ft.get(u))&&vs(e,t),f=a.createElement("script"),ut(f),pt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(u,f))}}function m0(e,t){zn.M(e,t);var a=Er;if(a&&e){var l=Ka(a).hoistableScripts,u=Nr(e),f=l.get(u);f||(f=a.querySelector(Hl(u)),f||(e=y({src:e,async:!0,type:"module"},t),(t=Ft.get(u))&&vs(e,t),f=a.createElement("script"),ut(f),pt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(u,f))}}function zg(e,t,a,l){var u=(u=F.current)?go(u):null;if(!u)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=jr(a.href),a=Ka(u).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=jr(a.href);var f=Ka(u).hoistableStyles,v=f.get(e);if(v||(u=u.ownerDocument||u,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,v),(f=u.querySelector(Ll(e)))&&!f._p&&(v.instance=f,v.state.loading=5),Ft.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ft.set(e,a),f||v0(u,e,a,v.state))),t&&l===null)throw Error(i(528,""));return v}if(t&&l!==null)throw Error(i(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Nr(a),a=Ka(u).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function jr(e){return'href="'+Kt(e)+'"'}function Ll(e){return'link[rel="stylesheet"]['+e+"]"}function Lg(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function v0(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),pt(t,"link",a),ut(t),e.head.appendChild(t))}function Nr(e){return'[src="'+Kt(e)+'"]'}function Hl(e){return"script[async]"+e}function Hg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Kt(a.href)+'"]');if(l)return t.instance=l,ut(l),l;var u=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ut(l),pt(l,"style",u),ho(l,a.precedence,e),t.instance=l;case"stylesheet":u=jr(a.href);var f=e.querySelector(Ll(u));if(f)return t.state.loading|=4,t.instance=f,ut(f),f;l=Lg(a),(u=Ft.get(u))&&ms(l,u),f=(e.ownerDocument||e).createElement("link"),ut(f);var v=f;return v._p=new Promise(function(p,O){v.onload=p,v.onerror=O}),pt(f,"link",l),t.state.loading|=4,ho(f,a.precedence,e),t.instance=f;case"script":return f=Nr(a.src),(u=e.querySelector(Hl(f)))?(t.instance=u,ut(u),u):(l=a,(u=Ft.get(f))&&(l=y({},a),vs(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),ut(u),pt(u,"link",l),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ho(l,a.precedence,e));return t.instance}function ho(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,f=u,v=0;v<l.length;v++){var p=l[v];if(p.dataset.precedence===t)f=p;else if(f!==u)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function ms(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var po=null;function $g(e,t,a){if(po===null){var l=new Map,u=po=new Map;u.set(a,l)}else u=po,l=u.get(a),l||(l=new Map,u.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var f=a[u];if(!(f[Zr]||f[Ie]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var v=f.getAttribute(t)||"";v=e+v;var p=l.get(v);p?p.push(f):l.set(v,[f])}}return l}function Ug(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function g0(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Yg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var $l=null;function h0(){}function p0(e,t,a){if($l===null)throw Error(i(475));var l=$l;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=jr(a.href),f=e.querySelector(Ll(u));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=bo.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=f,ut(f);return}f=e.ownerDocument||e,a=Lg(a),(u=Ft.get(u))&&ms(a,u),f=f.createElement("link"),ut(f);var v=f;v._p=new Promise(function(p,O){v.onload=p,v.onerror=O}),pt(f,"link",a),t.instance=f}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=bo.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function b0(){if($l===null)throw Error(i(475));var e=$l;return e.stylesheets&&e.count===0&&gs(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&gs(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function bo(){if(this.count--,this.count===0){if(this.stylesheets)gs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var yo=null;function gs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,yo=new Map,t.forEach(y0,e),yo=null,bo.call(e))}function y0(e,t){if(!(t.state.loading&4)){var a=yo.get(e);if(a)var l=a.get(null);else{a=new Map,yo.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<u.length;f++){var v=u[f];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(a.set(v.dataset.precedence,v),l=v)}l&&a.set(null,l)}u=t.instance,v=u.getAttribute("data-precedence"),f=a.get(v)||l,f===l&&a.set(null,u),a.set(v,u),this.count++,l=bo.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),f?f.parentNode.insertBefore(u,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Ul={$$typeof:_,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function x0(e,t,a,l,u,f,v,p){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=bn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bn(0),this.hiddenUpdates=bn(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=f,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function Bg(e,t,a,l,u,f,v,p,O,L,W,J){return e=new x0(e,t,a,v,p,O,L,J),t=1,f===!0&&(t|=24),f=Dt(3,null,null,t),e.current=f,f.stateNode=e,t=Zu(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:l,isDehydrated:a,cache:t},ec(f),e}function Pg(e){return e?(e=rr,e):rr}function Xg(e,t,a,l,u,f){u=Pg(u),l.context===null?l.context=u:l.pendingContext=u,l=Kn(t),l.payload={element:a},f=f===void 0?null:f,f!==null&&(l.callback=f),a=Vn(e,l,t),a!==null&&(Ut(a,e,t),gl(a,e,t))}function qg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function hs(e,t){qg(e,t),(e=e.alternate)&&qg(e,t)}function Gg(e){if(e.tag===13){var t=ar(e,67108864);t!==null&&Ut(t,e,67108864),hs(e,67108864)}}var xo=!0;function S0(e,t,a,l){var u=k.T;k.T=null;var f=I.p;try{I.p=2,ps(e,t,a,l)}finally{I.p=f,k.T=u}}function O0(e,t,a,l){var u=k.T;k.T=null;var f=I.p;try{I.p=8,ps(e,t,a,l)}finally{I.p=f,k.T=u}}function ps(e,t,a,l){if(xo){var u=bs(l);if(u===null)rs(e,t,l,So,a),Vg(e,l);else if(w0(u,e,t,a,l))l.stopPropagation();else if(Vg(e,l),t&4&&-1<_0.indexOf(e)){for(;u!==null;){var f=Ga(u);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var v=Ne(f.pendingLanes);if(v!==0){var p=f;for(p.pendingLanes|=2,p.entangledLanes|=2;v;){var O=1<<31-tt(v);p.entanglements[1]|=O,v&=~O}dn(f),(De&6)===0&&(ao=Bt()+500,Ml(0))}}break;case 13:p=ar(f,2),p!==null&&Ut(p,f,2),lo(),hs(f,2)}if(f=bs(l),f===null&&rs(e,t,l,So,a),f===u)break;u=f}u!==null&&l.stopPropagation()}else rs(e,t,l,null,a)}}function bs(e){return e=_u(e),ys(e)}var So=null;function ys(e){if(So=null,e=qa(e),e!==null){var t=s(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return So=e,null}function Kg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(qe()){case pa:return 2;case Kr:return 8;case Pa:case su:return 32;case Vr:return 268435456;default:return 32}default:return 32}}var xs=!1,ia=null,oa=null,ua=null,Yl=new Map,Bl=new Map,ca=[],_0="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 Vg(e,t){switch(e){case"focusin":case"focusout":ia=null;break;case"dragenter":case"dragleave":oa=null;break;case"mouseover":case"mouseout":ua=null;break;case"pointerover":case"pointerout":Yl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bl.delete(t.pointerId)}}function Pl(e,t,a,l,u,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:f,targetContainers:[u]},t!==null&&(t=Ga(t),t!==null&&Gg(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function w0(e,t,a,l,u){switch(t){case"focusin":return ia=Pl(ia,e,t,a,l,u),!0;case"dragenter":return oa=Pl(oa,e,t,a,l,u),!0;case"mouseover":return ua=Pl(ua,e,t,a,l,u),!0;case"pointerover":var f=u.pointerId;return Yl.set(f,Pl(Yl.get(f)||null,e,t,a,l,u)),!0;case"gotpointercapture":return f=u.pointerId,Bl.set(f,Pl(Bl.get(f)||null,e,t,a,l,u)),!0}return!1}function Qg(e){var t=qa(e.target);if(t!==null){var a=s(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,vu(e.priority,function(){if(a.tag===13){var l=$t();l=yn(l);var u=ar(a,l);u!==null&&Ut(u,a,l),hs(a,l)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Oo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=bs(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Ou=l,a.target.dispatchEvent(l),Ou=null}else return t=Ga(a),t!==null&&Gg(t),e.blockedOn=a,!1;t.shift()}return!0}function Wg(e,t,a){Oo(e)&&a.delete(t)}function E0(){xs=!1,ia!==null&&Oo(ia)&&(ia=null),oa!==null&&Oo(oa)&&(oa=null),ua!==null&&Oo(ua)&&(ua=null),Yl.forEach(Wg),Bl.forEach(Wg)}function _o(e,t){e.blockedOn===t&&(e.blockedOn=null,xs||(xs=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,E0)))}var wo=null;function Zg(e){wo!==e&&(wo=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){wo===e&&(wo=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],u=e[t+2];if(typeof l!="function"){if(ys(l||a)===null)continue;break}var f=Ga(a);f!==null&&(e.splice(t,3),t-=3,yc(f,{pending:!0,data:u,method:a.method,action:l},l,u))}}))}function Xl(e){function t(O){return _o(O,e)}ia!==null&&_o(ia,e),oa!==null&&_o(oa,e),ua!==null&&_o(ua,e),Yl.forEach(t),Bl.forEach(t);for(var a=0;a<ca.length;a++){var l=ca[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ca.length&&(a=ca[0],a.blockedOn===null);)Qg(a),a.blockedOn===null&&ca.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var u=a[l],f=a[l+1],v=u[vt]||null;if(typeof f=="function")v||Zg(a);else if(v){var p=null;if(f&&f.hasAttribute("formAction")){if(u=f,v=f[vt]||null)p=v.formAction;else if(ys(u)!==null)continue}else p=v.action;typeof p=="function"?a[l+1]=p:(a.splice(l,3),l-=3),Zg(a)}}}function Ss(e){this._internalRoot=e}Eo.prototype.render=Ss.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,l=$t();Xg(a,l,e,t,null,null)},Eo.prototype.unmount=Ss.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xg(e.current,2,null,e,null,null),lo(),t[xt]=null}};function Eo(e){this._internalRoot=e}Eo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pn();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ca.length&&t!==0&&t<ca[a].priority;a++);ca.splice(a,0,e),a===0&&Qg(e)}};var Ig=r.version;if(Ig!=="19.1.0")throw Error(i(527,Ig,"19.1.0"));I.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=g(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var j0={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var jo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jo.isDisabled&&jo.supportsFiber)try{on=jo.inject(j0),yt=jo}catch{}}return Gl.createRoot=function(e,t){if(!c(e))throw Error(i(299));var a=!1,l="",u=mv,f=vv,v=gv,p=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(p=t.unstable_transitionCallbacks)),t=Bg(e,1,!1,null,null,a,l,u,f,v,p,null),e[xt]=t.current,as(e),new Ss(t)},Gl.hydrateRoot=function(e,t,a){if(!c(e))throw Error(i(299));var l=!1,u="",f=mv,v=vv,p=gv,O=null,L=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(O=a.unstable_transitionCallbacks),a.formState!==void 0&&(L=a.formState)),t=Bg(e,1,!0,t,a??null,l,u,f,v,p,O,L),t.context=Pg(null),a=t.current,l=$t(),l=yn(l),u=Kn(l),u.callback=null,Vn(a,u,l),a=l,t.current.lanes=a,en(t,a),dn(t),e[xt]=t.current,as(e),new Eo(t)},Gl.version="19.1.0",Gl}var uh;function L0(){if(uh)return ws.exports;uh=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),ws.exports=z0(),ws.exports}var H0=L0();const ch=n=>{let r;const o=new Set,i=(b,y)=>{const S=typeof b=="function"?b(r):b;if(!Object.is(S,r)){const j=r;r=y??(typeof S!="object"||S===null)?S:Object.assign({},r,S),o.forEach(C=>C(r,j))}},c=()=>r,m={setState:i,getState:c,getInitialState:()=>g,subscribe:b=>(o.add(b),()=>o.delete(b))},g=r=n(i,c,m);return m},$0=n=>n?ch(n):ch,U0=n=>n;function Y0(n,r=U0){const o=G.useSyncExternalStore(n.subscribe,()=>r(n.getState()),()=>r(n.getInitialState()));return G.useDebugValue(o),o}const sh=n=>{const r=$0(n),o=i=>Y0(r,i);return Object.assign(o,r),o},Xf=n=>n?sh(n):sh,Jo=Xf((n,r)=>({apiKey:sessionStorage.getItem("apiKey"),isAuthenticated:!!sessionStorage.getItem("apiKey"),isLoading:!1,error:null,setApiKey:o=>{o?(sessionStorage.setItem("apiKey",o),n({apiKey:o,isAuthenticated:!0,error:null})):(sessionStorage.removeItem("apiKey"),n({apiKey:null,isAuthenticated:!1}))},validateApiKey:async o=>{n({isLoading:!0,error:null});try{const i=await fetch("/status",{method:"GET",headers:{"X-API-Key":o}});if(i.ok)return r().setApiKey(o),n({isAuthenticated:!0,isLoading:!1,error:null}),!0;{const c=await i.json();return n({isAuthenticated:!1,isLoading:!1,error:c.detail||"Invalid API Key or API error."}),sessionStorage.removeItem("apiKey"),!1}}catch(i){console.error("API Key validation error:",i);const c=i instanceof Error?i.message:"Network error or API is down.";return n({isAuthenticated:!1,isLoading:!1,error:c}),sessionStorage.removeItem("apiKey"),!1}},clearAuth:()=>{sessionStorage.removeItem("apiKey"),n({apiKey:null,isAuthenticated:!1,error:null,isLoading:!1})}})),B0=()=>{const{isAuthenticated:n,isLoading:r,error:o,validateApiKey:i}=Jo(),[c,s]=q.useState(""),d=async m=>{m.preventDefault(),c.trim()&&await i(c.trim())};return n?null:h.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-dracula-background bg-opacity-75 backdrop-blur-sm",children:h.jsxs("div",{className:"bg-dracula-current-line p-8 rounded-lg shadow-xl w-full max-w-md border border-dracula-comment",children:[h.jsx("h2",{className:"text-2xl font-semibold mb-6 text-center text-dracula-foreground",children:"Enter API Key"}),h.jsxs("form",{onSubmit:d,children:[h.jsxs("div",{className:"mb-4",children:[h.jsx("label",{htmlFor:"apiKey",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"API Key"}),h.jsx("input",{type:"password",id:"apiKey",value:c,onChange:m=>s(m.target.value),className:"w-full px-4 py-2 border border-dracula-comment rounded-md bg-dracula-background text-dracula-foreground placeholder-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink outline-none",placeholder:"Enter your API key",required:!0,disabled:r})]}),o&&h.jsx("div",{className:"mb-4 p-3 bg-dracula-red bg-opacity-80 text-dracula-foreground border border-dracula-red rounded-md text-sm",children:o}),h.jsx("button",{type:"submit",className:"w-full bg-dracula-pink hover:bg-opacity-80 text-dracula-background font-semibold py-2 px-4 rounded-md focus:outline-none focus:ring-2 focus:ring-dracula-purple focus:ring-opacity-50 transition duration-150 ease-in-out disabled:opacity-50 disabled:bg-dracula-comment",disabled:r,children:r?"Validating...":"Submit"})]}),h.jsx("p",{className:"mt-4 text-xs text-dracula-comment text-center",children:"The API key will be stored in session storage."})]})})},Br=Xf(n=>({selectedAction:"configure",selectedComponent:"agents",setSelectedAction:r=>n({selectedAction:r}),setSelectedComponent:r=>n({selectedComponent:r})})),et=async(n,r={})=>{var b;const{apiKey:o,clearAuth:i}=Jo.getState();let c=r.body;const s=new Headers(r.headers||{});o&&s.append("X-API-Key",o),c&&typeof c=="object"&&!(c instanceof Blob)&&!(c instanceof FormData)&&!(c instanceof URLSearchParams)&&!(typeof ReadableStream<"u"&&c instanceof ReadableStream)&&(s.has("Content-Type")||s.append("Content-Type","application/json"),(b=s.get("Content-Type"))!=null&&b.includes("application/json")&&(c=JSON.stringify(c)));const d={...r,headers:s,body:c},m="http://localhost:8000";let g;if(n.startsWith("http"))g=n;else{const y=n.startsWith("/")?n:`/${n}`,S=y.startsWith("/api/")?y.substring(4):y;g=`${m}${S.startsWith("/")?S:`/${S}`}`}try{const y=await fetch(g,d);if(y.status===401)throw console.warn("API request unauthorized (401). Clearing auth state."),i(),new Error("Unauthorized - API Key rejected or missing.");return y}catch(y){throw console.error("API Client Error:",y),y}};async function P0(n,r,o){const i=await et("/projects/create_file",{method:"POST",body:{filename:n,project_name:r,project_description:o}});if(!i.ok){const c=await i.json().catch(()=>({message:i.statusText}));throw{message:c.detail||c.message||"Failed to create project file",status:i.status,details:c}}return i.json()}async function X0(n){const r=await et("/projects/load_components",{method:"POST",body:{project_config_path:n}});if(!r.ok){const o=await r.json().catch(()=>({message:r.statusText}));throw{message:o.detail||o.message||"Failed to load project components",status:r.status,details:o}}return r.json()}async function q0(){const n=await et("/projects/list_files",{method:"GET"});if(!n.ok){const r=await n.json().catch(()=>({message:n.statusText}));throw{message:r.detail||r.message||"Failed to list project files",status:n.status,details:r}}return n.json()}async function Fo(n){let r="",o=n;n==="projects"?r="/projects/list_files":(n==="llms"?o="llms":n==="simple_workflows"?o="simple-workflows":n==="custom_workflows"&&(o="custom-workflows"),r=`/configs/${o}`);const i=await et(r,{method:"GET"});if(!i.ok){const c=await i.json().catch(()=>({message:i.statusText}));throw{message:c.detail||c.message||`Failed to list ${n} files`,status:i.status,details:c}}return i.json()}async function eu(n,r){let o="",i=n;n==="projects"?o=`/projects/file/${r}`:(n==="llms"?i="llms":n==="simple_workflows"?i="simple-workflows":n==="custom_workflows"&&(i="custom-workflows"),o=`/configs/${i}/${r}`);const c=await et(o,{method:"GET"});if(!c.ok){const s=await c.json().catch(()=>({message:c.statusText}));throw{message:s.detail||s.message||`Failed to get ${r}`,status:c.status,details:s}}return c.json()}async function G0(n,r,o){let i="",c=n;n==="projects"?i=`/projects/file/${r}`:(n==="llms"?c="llms":n==="simple_workflows"?c="simple-workflows":n==="custom_workflows"&&(c="custom-workflows"),i=`/configs/${c}/${r}`);const s=await et(i,{method:"PUT",body:{content:o}});if(!s.ok){const d=await s.json().catch(()=>({message:s.statusText}));throw{message:d.detail||d.message||`Failed to save ${r}`,status:s.status,details:d}}return s.json()}async function fa(n,r){let o=n;n==="llms"?o="llms":n==="simple_workflows"?o="simple-workflows":n==="custom_workflows"&&(o="custom-workflows");const i=encodeURIComponent(r),c=`/configs/${o}/id/${i}`,s=await et(c,{method:"GET"});if(!s.ok){const d=await s.json().catch(()=>({message:s.statusText}));throw{message:d.detail||d.message||`Failed to get ${n} config for ${r}`,status:s.status,details:d}}return s.json()}async function K0(){const n=await et("/components/agents",{method:"GET"});if(!n.ok){const r=await n.json().catch(()=>({message:n.statusText}));throw{message:r.detail||r.message||"Failed to list registered agents",status:n.status,details:r}}return n.json()}async function V0(){const n=await et("/components/workflows",{method:"GET"});if(!n.ok){const r=await n.json().catch(()=>({message:n.statusText}));throw{message:r.detail||r.message||"Failed to list registered simple workflows",status:n.status,details:r}}return n.json()}async function Q0(){const n=await et("/components/custom_workflows",{method:"GET"});if(!n.ok){const r=await n.json().catch(()=>({message:n.statusText}));throw{message:r.detail||r.message||"Failed to list registered custom workflows",status:n.status,details:r}}return n.json()}async function gp(n){const r=await et("/llms/register",{method:"POST",body:n});if(!r.ok){const o=await r.json().catch(()=>({message:r.statusText}));throw{message:o.detail||o.message||"Failed to register LLM config",status:r.status,details:o}}return r.json()}async function hp(n){const r=await et("/agents/register",{method:"POST",body:n});if(!r.ok){const o=await r.json().catch(()=>({message:r.statusText}));throw{message:o.detail||o.message||"Failed to register agent",status:r.status,details:o}}return r.json()}async function W0(n){const r=await et("/custom_workflows/register",{method:"POST",body:n});if(!r.ok){const o=await r.json().catch(()=>({message:r.statusText}));throw{message:o.detail||o.message||"Failed to register custom workflow",status:r.status,details:o}}return r.json()}async function Z0(n,r){const o=encodeURIComponent(n),i=await et(`/custom_workflows/${o}/execute`,{method:"POST",body:{initial_input:r}});if(!i.ok){const c=await i.json().catch(()=>({message:i.statusText}));throw{message:c.detail||c.message||`Failed to execute custom workflow ${n}`,status:i.status,details:c}}return i.json()}async function I0(n){const r=await et("/workflows/register",{method:"POST",body:n});if(!r.ok){const o=await r.json().catch(()=>({message:r.statusText}));throw{message:o.detail||o.message||"Failed to register simple workflow",status:r.status,details:o}}return r.json()}async function J0(n,r){const o=encodeURIComponent(n),i=await et(`/workflows/${o}/execute`,{method:"POST",body:{initial_user_message:r}});if(!i.ok){const c=await i.json().catch(()=>({message:i.statusText}));throw{message:c.detail||c.message||`Failed to execute simple workflow ${n}`,status:i.status,details:c}}return i.json()}async function Kl(n,r){const o=encodeURIComponent(r),i=`/projects/active/component/${n}/${o}`,c=await et(i,{method:"GET"});if(!c.ok){const s=await c.json().catch(()=>({message:c.statusText}));throw{message:s.detail||s.message||`Failed to get active project component ${r} of type ${n}`,status:c.status,details:s}}return c.json()}async function tu(n,r,o){const i=encodeURIComponent(r),c=`/configs/${n}/${i}`,s=await et(c,{method:"POST",body:{content:o}});if(!s.ok){const d=await s.json().catch(()=>({message:s.statusText}));throw{message:d.detail||d.message||`Failed to save config file ${r}`,status:s.status,details:d}}return s.json()}async function pp(){const n=await et("/projects/get_active_project_config",{method:"GET"});if(!n.ok){const r=await n.json().catch(()=>({message:n.statusText}));throw{message:r.detail||r.message||"Failed to get active project configuration",status:n.status,details:r}}return n.json()}async function F0(){const n=await et("/host/clients/active",{method:"GET"});if(!n.ok){const r=await n.json().catch(()=>({message:n.statusText}));throw{message:r.detail||r.message||"Failed to list active host clients",status:n.status,details:r}}return n.json()}async function e1(n){const r=await et("/clients/register",{method:"POST",body:n});if(!r.ok){const o=await r.json().catch(()=>({message:r.statusText}));throw{message:o.detail||o.message||"Failed to register client",status:r.status,details:o}}return r.json()}const qf=Xf(n=>({availableProjectFiles:[],isLoadingProjectFiles:!1,projectFileError:null,lastComponentsUpdateTimestamp:null,fetchAvailableProjectFiles:async()=>{n({isLoadingProjectFiles:!0,projectFileError:null});try{const r=await q0();n({availableProjectFiles:r,isLoadingProjectFiles:!1})}catch(r){n({projectFileError:r,isLoadingProjectFiles:!1}),console.error("Failed to fetch project files:",r)}},notifyComponentsUpdated:()=>{n({lastComponentsUpdateTimestamp:Date.now()})}})),t1=({isOpen:n,onClose:r})=>{const[o,i]=q.useState(""),[c,s]=q.useState(""),[d,m]=q.useState(""),[g,b]=q.useState(!1),[y,S]=q.useState(null),[j,C]=q.useState(null),{fetchAvailableProjectFiles:$}=qf.getState(),B=async R=>{if(R.preventDefault(),b(!0),S(null),C(null),!o.endsWith(".json")){S({message:"Filename must end with .json"}),b(!1);return}try{await P0(o,c,d),C(`Project "${c}" created successfully in ${o}!`),$(),setTimeout(()=>{i(""),s(""),m(""),r(),C(null)},2e3)}catch(P){S(P)}finally{b(!1)}};return n?h.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4",children:h.jsxs("div",{className:"bg-dracula-current-line p-6 rounded-lg shadow-xl w-full max-w-md",children:[h.jsx("h2",{className:"text-xl font-semibold text-dracula-foreground mb-4",children:"Create New Project"}),h.jsxs("form",{onSubmit:B,children:[h.jsxs("div",{className:"mb-4",children:[h.jsx("label",{htmlFor:"filename",className:"block text-sm font-medium text-dracula-comment mb-1",children:"Project Filename (e.g., my_project.json)"}),h.jsx("input",{type:"text",id:"filename",value:o,onChange:R=>i(R.target.value),className:"w-full p-2 bg-dracula-background border border-dracula-comment rounded-md text-dracula-foreground focus:ring-dracula-pink focus:border-dracula-pink",required:!0})]}),h.jsxs("div",{className:"mb-4",children:[h.jsx("label",{htmlFor:"projectName",className:"block text-sm font-medium text-dracula-comment mb-1",children:"Project Name"}),h.jsx("input",{type:"text",id:"projectName",value:c,onChange:R=>s(R.target.value),className:"w-full p-2 bg-dracula-background border border-dracula-comment rounded-md text-dracula-foreground focus:ring-dracula-pink focus:border-dracula-pink",required:!0})]}),h.jsxs("div",{className:"mb-4",children:[h.jsx("label",{htmlFor:"projectDescription",className:"block text-sm font-medium text-dracula-comment mb-1",children:"Project Description (Optional)"}),h.jsx("textarea",{id:"projectDescription",value:d,onChange:R=>m(R.target.value),rows:3,className:"w-full p-2 bg-dracula-background border border-dracula-comment rounded-md text-dracula-foreground focus:ring-dracula-pink focus:border-dracula-pink"})]}),y&&h.jsxs("div",{className:"mb-4 p-3 bg-dracula-red bg-opacity-20 text-dracula-red rounded-md text-sm",children:["Error: ",y.message,y.details&&h.jsx("pre",{className:"text-xs whitespace-pre-wrap",children:JSON.stringify(y.details,null,2)})]}),j&&h.jsx("div",{className:"mb-4 p-3 bg-dracula-green bg-opacity-20 text-dracula-green rounded-md text-sm",children:j}),h.jsxs("div",{className:"flex justify-end space-x-3",children:[h.jsx("button",{type:"button",onClick:()=>{r(),S(null),C(null)},className:"py-2 px-4 bg-dracula-comment text-dracula-foreground rounded-md hover:bg-opacity-80 transition-colors",disabled:g,children:"Cancel"}),h.jsx("button",{type:"submit",className:"py-2 px-4 bg-dracula-pink text-dracula-background rounded-md hover:bg-opacity-80 transition-colors disabled:opacity-50",disabled:g,children:g?"Creating...":"Create Project"})]})]})]})}):null},n1=()=>{const{availableProjectFiles:n,fetchAvailableProjectFiles:r,isLoadingProjectFiles:o,projectFileError:i,notifyComponentsUpdated:c}=qf(),[s,d]=q.useState(!1),[m,g]=q.useState(!1),[b,y]=q.useState(null),[S,j]=q.useState(null),C=q.useRef(null);q.useEffect(()=>{r()},[r]),q.useEffect(()=>{const B=R=>{C.current&&!C.current.contains(R.target)&&d(!1)};return document.addEventListener("mousedown",B),()=>{document.removeEventListener("mousedown",B)}},[]);const $=async B=>{g(!0),y(null),j(null),d(!1);const R=`config/projects/${B}`;try{const P=await X0(R);j(P.message||`Successfully loaded components from ${B}.`),c(),setTimeout(()=>j(null),3e3)}catch(P){y(P),setTimeout(()=>y(null),5e3)}finally{g(!1)}};return h.jsxs("div",{className:"relative",ref:C,children:[h.jsx("button",{onClick:()=>{d(!s),s||r()},className:"py-2 px-4 bg-dracula-purple text-dracula-foreground rounded-md hover:bg-opacity-80 transition-colors focus:outline-none focus:ring-2 focus:ring-dracula-pink focus:ring-opacity-75",children:"Load Project"}),s&&h.jsx("div",{className:"absolute right-0 mt-2 w-64 bg-dracula-current-line rounded-md shadow-lg z-50 border border-dracula-comment",children:h.jsxs("div",{className:"p-2",children:[o&&h.jsx("div",{className:"p-2 text-dracula-comment",children:"Loading projects..."}),i&&h.jsxs("div",{className:"p-2 text-dracula-red",children:["Error: ",i.message]}),!o&&!i&&n.length===0&&h.jsx("div",{className:"p-2 text-dracula-comment",children:"No projects found."}),!o&&n.length>0&&h.jsx("ul",{children:n.map(B=>h.jsx("li",{children:h.jsx("button",{onClick:()=>$(B),className:"w-full text-left px-3 py-2 text-sm text-dracula-foreground hover:bg-dracula-selection rounded-md transition-colors",disabled:m,children:B})},B))})]})}),m&&h.jsx("div",{className:"fixed bottom-4 right-4 p-3 bg-dracula-comment text-dracula-foreground rounded-md shadow-lg z-50",children:"Loading selected project..."}),b&&h.jsxs("div",{className:"fixed bottom-4 right-4 p-3 bg-dracula-red text-white rounded-md shadow-lg z-50",children:["Error: ",b.message]}),S&&h.jsx("div",{className:"fixed bottom-4 right-4 p-3 bg-dracula-green text-dracula-background rounded-md shadow-lg z-50",children:S})]})},a1=[{id:"build",label:"Build"},{id:"configure",label:"Configure"},{id:"execute",label:"Execute"},{id:"evaluate",label:"Evaluate"}],r1=()=>{const{selectedAction:n,setSelectedAction:r}=Br(),[o,i]=q.useState(!1);return h.jsxs(h.Fragment,{children:[" ",h.jsx("nav",{className:"w-full bg-dracula-current-line text-dracula-foreground p-4 shadow-lg",children:h.jsxs("div",{className:"w-full flex items-center",children:[" ",h.jsxs("div",{className:"flex items-center space-x-2 mr-6",children:[" ",h.jsx("div",{className:"w-8 h-8 bg-dracula-purple rounded-full flex items-center justify-center text-dracula-background font-bold",children:"A"}),h.jsx("h1",{className:"text-xl font-semibold text-dracula-foreground",children:"Aurite AI Studio"})]}),h.jsx("div",{className:"flex items-center space-x-2",children:a1.map(c=>h.jsx("button",{onClick:()=>r(c.id),className:`py-2 px-4 font-medium text-sm rounded-md transition-colors duration-150 ease-in-out focus:outline-none focus:ring-2 focus:ring-dracula-pink focus:ring-opacity-75
                ${n===c.id?"bg-dracula-pink text-dracula-background":"text-dracula-comment hover:text-dracula-foreground hover:bg-dracula-comment hover:bg-opacity-25"}
              `,children:c.label},c.id))}),h.jsxs("div",{className:"flex items-center space-x-2 ml-4",children:[" ",h.jsx("button",{onClick:()=>i(!0),className:"py-2 px-4 bg-dracula-green text-dracula-background rounded-md hover:bg-opacity-80 transition-colors focus:outline-none focus:ring-2 focus:ring-dracula-pink focus:ring-opacity-75",children:"Create Project"}),h.jsx(n1,{})]}),h.jsx("div",{className:"flex items-center space-x-4 ml-auto",children:h.jsx("div",{className:"w-8 h-8 bg-dracula-comment bg-opacity-50 rounded-full flex items-center justify-center",children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-5 h-5 text-dracula-foreground",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})})})})]})}),h.jsx(t1,{isOpen:o,onClose:()=>i(!1)})]})},l1=[{id:"clients",label:"Clients"},{id:"agents",label:"Agents"},{id:"llms",label:"LLMs"},{id:"simple_workflows",label:"Simple Workflows"},{id:"custom_workflows",label:"Custom Workflows"}],No={id:"projects",label:"Active Project Files"},i1=()=>{const{selectedComponent:n,setSelectedComponent:r}=Br(),o=()=>h.jsxs(h.Fragment,{children:[h.jsxs("div",{children:[h.jsx("h3",{className:"px-2 py-1 text-xs font-semibold text-dracula-comment uppercase tracking-wider mb-1",children:"Component Types"}),l1.map(i=>h.jsx("button",{onClick:()=>r(i.id),className:`w-full text-left px-3 py-2 rounded-md text-sm font-medium transition-colors duration-150 ease-in-out focus:outline-none focus:ring-2 focus:ring-dracula-pink bg-transparent
              ${n===i.id?"bg-dracula-purple text-dracula-foreground":"text-dracula-foreground hover:bg-dracula-current-line hover:text-dracula-foreground"}
            `,children:i.label},`sidebar-item-${i.id}`))]}),h.jsx("hr",{className:"border-dracula-current-line my-3"}),h.jsxs("div",{children:[h.jsx("h3",{className:"px-2 py-1 text-xs font-semibold text-dracula-comment uppercase tracking-wider mb-1",children:"Project Management"}),h.jsx("button",{onClick:()=>r(No.id),className:`w-full text-left px-3 py-2 rounded-md text-sm font-medium transition-colors duration-150 ease-in-out focus:outline-none focus:ring-2 focus:ring-dracula-pink bg-transparent
            ${n===No.id?"bg-dracula-green text-dracula-background font-semibold":"text-dracula-foreground hover:bg-dracula-current-line hover:text-dracula-foreground"}
          `,children:No.label},`sidebar-item-${No.id}`)]})]});return h.jsx("aside",{className:"w-64 bg-dracula-background p-4 space-y-4 shadow-lg border-r border-dracula-current-line",children:o()})};var At={},fh;function o1(){if(fh)return At;fh=1;var n=At&&At.__assign||function(){return n=Object.assign||function(A){for(var N,X=1,V=arguments.length;X<V;X++){N=arguments[X];for(var Y in N)Object.prototype.hasOwnProperty.call(N,Y)&&(A[Y]=N[Y])}return A},n.apply(this,arguments)},r=At&&At.__createBinding||(Object.create?function(A,N,X,V){V===void 0&&(V=X);var Y=Object.getOwnPropertyDescriptor(N,X);(!Y||("get"in Y?!N.__esModule:Y.writable||Y.configurable))&&(Y={enumerable:!0,get:function(){return N[X]}}),Object.defineProperty(A,V,Y)}:function(A,N,X,V){V===void 0&&(V=X),A[V]=N[X]}),o=At&&At.__setModuleDefault||(Object.create?function(A,N){Object.defineProperty(A,"default",{enumerable:!0,value:N})}:function(A,N){A.default=N}),i=At&&At.__importStar||function(A){if(A&&A.__esModule)return A;var N={};if(A!=null)for(var X in A)X!=="default"&&Object.prototype.hasOwnProperty.call(A,X)&&r(N,A,X);return o(N,A),N},c=At&&At.__rest||function(A,N){var X={};for(var V in A)Object.prototype.hasOwnProperty.call(A,V)&&N.indexOf(V)<0&&(X[V]=A[V]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,V=Object.getOwnPropertySymbols(A);Y<V.length;Y++)N.indexOf(V[Y])<0&&Object.prototype.propertyIsEnumerable.call(A,V[Y])&&(X[V[Y]]=A[V[Y]]);return X};Object.defineProperty(At,"__esModule",{value:!0});var s=i(Io()),d=89,m=90,g=77,b=57,y=219,S=222,j=192,C=100,$=3e3,B=typeof window<"u"&&"navigator"in window&&/Win/i.test(navigator.platform),R=typeof window<"u"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),P="npm__react-simple-code-editor__textarea",w=`
/**
 * Reset the text fill color so that placeholder is visible
 */
.`.concat(P,`:empty {
  -webkit-text-fill-color: inherit !important;
}

/**
 * Hack to apply on some CSS on IE10 and IE11
 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  /**
    * IE doesn't support '-webkit-text-fill-color'
    * So we use 'color: transparent' to make the text transparent on IE
    * Unlike other browsers, it doesn't affect caret color in IE
    */
  .`).concat(P,` {
    color: transparent !important;
  }

  .`).concat(P,`::selection {
    background-color: #accef7 !important;
    color: transparent !important;
  }
}
`),_=s.forwardRef(function(N,X){var V=N.autoFocus,Y=N.disabled,ne=N.form,ee=N.highlight,Q=N.ignoreTabKey,ce=Q===void 0?!1:Q,pe=N.insertSpaces,le=pe===void 0?!0:pe,k=N.maxLength,I=N.minLength,D=N.name,ue=N.onBlur,x=N.onClick,K=N.onFocus,te=N.onKeyDown,ae=N.onKeyUp,re=N.onValueChange,fe=N.padding,F=fe===void 0?0:fe,ye=N.placeholder,xe=N.preClassName,Pe=N.readOnly,dt=N.required,Ct=N.style,kt=N.tabSize,Xe=kt===void 0?2:kt,hn=N.textareaClassName,Gr=N.textareaId,Ba=N.value,Bt=c(N,["autoFocus","disabled","form","highlight","ignoreTabKey","insertSpaces","maxLength","minLength","name","onBlur","onClick","onFocus","onKeyDown","onKeyUp","onValueChange","padding","placeholder","preClassName","readOnly","required","style","tabSize","textareaClassName","textareaId","value"]),qe=s.useRef({stack:[],offset:-1}),pa=s.useRef(null),Kr=s.useState(!0),Pa=Kr[0],su=Kr[1],Vr={paddingTop:typeof F=="object"?F.top:F,paddingRight:typeof F=="object"?F.right:F,paddingBottom:typeof F=="object"?F.bottom:F,paddingLeft:typeof F=="object"?F.left:F},Qr=ee(Ba),pn=function(ie,Ne){return ie.substring(0,Ne).split(`
`)},on=s.useCallback(function(ie,Ne){var Oe,_e,Qe;Ne===void 0&&(Ne=!1);var ot=qe.current,Xt=ot.stack,bn=ot.offset;if(Xt.length&&bn>-1){qe.current.stack=Xt.slice(0,bn+1);var en=qe.current.stack.length;if(en>C){var Bn=en-C;qe.current.stack=Xt.slice(Bn,en),qe.current.offset=Math.max(qe.current.offset-Bn,0)}}var Mt=Date.now();if(Ne){var tn=qe.current.stack[qe.current.offset];if(tn&&Mt-tn.timestamp<$){var yn=/[^a-z0-9]([a-z0-9]+)$/i,mt=(Oe=pn(tn.value,tn.selectionStart).pop())===null||Oe===void 0?void 0:Oe.match(yn),Pn=(_e=pn(ie.value,ie.selectionStart).pop())===null||_e===void 0?void 0:_e.match(yn);if(mt!=null&&mt[1]&&(!((Qe=Pn==null?void 0:Pn[1])===null||Qe===void 0)&&Qe.startsWith(mt[1]))){qe.current.stack[qe.current.offset]=n(n({},ie),{timestamp:Mt});return}}}qe.current.stack.push(n(n({},ie),{timestamp:Mt})),qe.current.offset++},[]),yt=s.useCallback(function(){var ie=pa.current;if(ie){var Ne=ie.value,Oe=ie.selectionStart,_e=ie.selectionEnd;on({value:Ne,selectionStart:Oe,selectionEnd:_e})}},[on]),Pt=function(ie){var Ne=pa.current;Ne&&(Ne.value=ie.value,Ne.selectionStart=ie.selectionStart,Ne.selectionEnd=ie.selectionEnd,re==null||re(ie.value))},tt=function(ie){var Ne=pa.current,Oe=qe.current.stack[qe.current.offset];Oe&&Ne&&(qe.current.stack[qe.current.offset]=n(n({},Oe),{selectionStart:Ne.selectionStart,selectionEnd:Ne.selectionEnd})),on(ie),Pt(ie)},fu=function(){var ie=qe.current,Ne=ie.stack,Oe=ie.offset,_e=Ne[Oe-1];_e&&(Pt(_e),qe.current.offset=Math.max(Oe-1,0))},du=function(){var ie=qe.current,Ne=ie.stack,Oe=ie.offset,_e=Ne[Oe+1];_e&&(Pt(_e),qe.current.offset=Math.min(Oe+1,Ne.length-1))},mu=function(ie){if(!(te&&(te(ie),ie.defaultPrevented))){ie.key==="Escape"&&ie.currentTarget.blur();var Ne=ie.currentTarget,Oe=Ne.value,_e=Ne.selectionStart,Qe=Ne.selectionEnd,ot=(le?" ":"	").repeat(Xe);if(ie.key==="Tab"&&!ce&&Pa)if(ie.preventDefault(),ie.shiftKey){var Xt=pn(Oe,_e),bn=Xt.length-1,en=pn(Oe,Qe).length-1,Bn=Oe.split(`
`).map(function(xn,vi){return vi>=bn&&vi<=en&&xn.startsWith(ot)?xn.substring(ot.length):xn}).join(`
`);if(Oe!==Bn){var Mt=Xt[bn];tt({value:Bn,selectionStart:Mt!=null&&Mt.startsWith(ot)?_e-ot.length:_e,selectionEnd:Qe-(Oe.length-Bn.length)})}}else if(_e!==Qe){var Xt=pn(Oe,_e),tn=Xt.length-1,yn=pn(Oe,Qe).length-1,Mt=Xt[tn];tt({value:Oe.split(`
`).map(function(gi,Wr){return Wr>=tn&&Wr<=yn?ot+gi:gi}).join(`
`),selectionStart:Mt&&/\S/.test(Mt)?_e+ot.length:_e,selectionEnd:Qe+ot.length*(yn-tn+1)})}else{var mt=_e+ot.length;tt({value:Oe.substring(0,_e)+ot+Oe.substring(Qe),selectionStart:mt,selectionEnd:mt})}else if(ie.key==="Backspace"){var Pn=_e!==Qe,vu=Oe.substring(0,_e);if(vu.endsWith(ot)&&!Pn){ie.preventDefault();var mt=_e-ot.length;tt({value:Oe.substring(0,_e-ot.length)+Oe.substring(Qe),selectionStart:mt,selectionEnd:mt})}}else if(ie.key==="Enter"){if(_e===Qe){var qt=pn(Oe,_e).pop(),Ie=qt==null?void 0:qt.match(/^\s+/);if(Ie!=null&&Ie[0]){ie.preventDefault();var vt=`
`+Ie[0],mt=_e+vt.length;tt({value:Oe.substring(0,_e)+vt+Oe.substring(Qe),selectionStart:mt,selectionEnd:mt})}}}else if(ie.keyCode===b||ie.keyCode===y||ie.keyCode===S||ie.keyCode===j){var xt=void 0;ie.keyCode===b&&ie.shiftKey?xt=["(",")"]:ie.keyCode===y?ie.shiftKey?xt=["{","}"]:xt=["[","]"]:ie.keyCode===S?ie.shiftKey?xt=['"','"']:xt=["'","'"]:ie.keyCode===j&&!ie.shiftKey&&(xt=["`","`"]),_e!==Qe&&xt&&(ie.preventDefault(),tt({value:Oe.substring(0,_e)+xt[0]+Oe.substring(_e,Qe)+xt[1]+Oe.substring(Qe),selectionStart:_e,selectionEnd:Qe+2}))}else(R?ie.metaKey&&ie.keyCode===m:ie.ctrlKey&&ie.keyCode===m)&&!ie.shiftKey&&!ie.altKey?(ie.preventDefault(),fu()):(R?ie.metaKey&&ie.keyCode===m&&ie.shiftKey:B?ie.ctrlKey&&ie.keyCode===d:ie.ctrlKey&&ie.keyCode===m&&ie.shiftKey)&&!ie.altKey?(ie.preventDefault(),du()):ie.keyCode===g&&ie.ctrlKey&&(!R||ie.shiftKey)&&(ie.preventDefault(),su(function(xn){return!xn}))}},Xa=function(ie){var Ne=ie.currentTarget,Oe=Ne.value,_e=Ne.selectionStart,Qe=Ne.selectionEnd;on({value:Oe,selectionStart:_e,selectionEnd:Qe},!0),re(Oe)};return s.useEffect(function(){yt()},[yt]),s.useImperativeHandle(X,function(){return{get session(){return{history:qe.current}},set session(ie){qe.current=ie.history}}},[]),s.createElement("div",n({},Bt,{style:n(n({},M.container),Ct)}),s.createElement("pre",n({className:xe,"aria-hidden":"true",style:n(n(n({},M.editor),M.highlight),Vr)},typeof Qr=="string"?{dangerouslySetInnerHTML:{__html:Qr+"<br />"}}:{children:Qr})),s.createElement("textarea",{ref:function(ie){return pa.current=ie},style:n(n(n({},M.editor),M.textarea),Vr),className:P+(hn?" ".concat(hn):""),id:Gr,value:Ba,onChange:Xa,onKeyDown:mu,onClick:x,onKeyUp:ae,onFocus:K,onBlur:ue,disabled:Y,form:ne,maxLength:k,minLength:I,name:D,placeholder:ye,readOnly:Pe,required:dt,autoFocus:V,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),s.createElement("style",{dangerouslySetInnerHTML:{__html:w}}))}),M={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};return At.default=_,At}var u1=o1();const c1=Zo(u1);var As={exports:{}},dh;function s1(){return dh||(dh=1,function(n){var r=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
 * Prism: Lightweight, robust, elegant syntax highlighting
 *
 * @license MIT <https://opensource.org/licenses/MIT>
 * @author Lea Verou <https://lea.verou.me>
 * @namespace
 * @public
 */var o=function(i){var c=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,d={},m={manual:i.Prism&&i.Prism.manual,disableWorkerMessageHandler:i.Prism&&i.Prism.disableWorkerMessageHandler,util:{encode:function w(_){return _ instanceof g?new g(_.type,w(_.content),_.alias):Array.isArray(_)?_.map(w):_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(w){return Object.prototype.toString.call(w).slice(8,-1)},objId:function(w){return w.__id||Object.defineProperty(w,"__id",{value:++s}),w.__id},clone:function w(_,M){M=M||{};var A,N;switch(m.util.type(_)){case"Object":if(N=m.util.objId(_),M[N])return M[N];A={},M[N]=A;for(var X in _)_.hasOwnProperty(X)&&(A[X]=w(_[X],M));return A;case"Array":return N=m.util.objId(_),M[N]?M[N]:(A=[],M[N]=A,_.forEach(function(V,Y){A[Y]=w(V,M)}),A);default:return _}},getLanguage:function(w){for(;w;){var _=c.exec(w.className);if(_)return _[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,_){w.className=w.className.replace(RegExp(c,"gi"),""),w.classList.add("language-"+_)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(A){var w=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(A.stack)||[])[1];if(w){var _=document.getElementsByTagName("script");for(var M in _)if(_[M].src==w)return _[M]}return null}},isActive:function(w,_,M){for(var A="no-"+_;w;){var N=w.classList;if(N.contains(_))return!0;if(N.contains(A))return!1;w=w.parentElement}return!!M}},languages:{plain:d,plaintext:d,text:d,txt:d,extend:function(w,_){var M=m.util.clone(m.languages[w]);for(var A in _)M[A]=_[A];return M},insertBefore:function(w,_,M,A){A=A||m.languages;var N=A[w],X={};for(var V in N)if(N.hasOwnProperty(V)){if(V==_)for(var Y in M)M.hasOwnProperty(Y)&&(X[Y]=M[Y]);M.hasOwnProperty(V)||(X[V]=N[V])}var ne=A[w];return A[w]=X,m.languages.DFS(m.languages,function(ee,Q){Q===ne&&ee!=w&&(this[ee]=X)}),X},DFS:function w(_,M,A,N){N=N||{};var X=m.util.objId;for(var V in _)if(_.hasOwnProperty(V)){M.call(_,V,_[V],A||V);var Y=_[V],ne=m.util.type(Y);ne==="Object"&&!N[X(Y)]?(N[X(Y)]=!0,w(Y,M,null,N)):ne==="Array"&&!N[X(Y)]&&(N[X(Y)]=!0,w(Y,M,V,N))}}},plugins:{},highlightAll:function(w,_){m.highlightAllUnder(document,w,_)},highlightAllUnder:function(w,_,M){var A={callback:M,container:w,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};m.hooks.run("before-highlightall",A),A.elements=Array.prototype.slice.apply(A.container.querySelectorAll(A.selector)),m.hooks.run("before-all-elements-highlight",A);for(var N=0,X;X=A.elements[N++];)m.highlightElement(X,_===!0,A.callback)},highlightElement:function(w,_,M){var A=m.util.getLanguage(w),N=m.languages[A];m.util.setLanguage(w,A);var X=w.parentElement;X&&X.nodeName.toLowerCase()==="pre"&&m.util.setLanguage(X,A);var V=w.textContent,Y={element:w,language:A,grammar:N,code:V};function ne(Q){Y.highlightedCode=Q,m.hooks.run("before-insert",Y),Y.element.innerHTML=Y.highlightedCode,m.hooks.run("after-highlight",Y),m.hooks.run("complete",Y),M&&M.call(Y.element)}if(m.hooks.run("before-sanity-check",Y),X=Y.element.parentElement,X&&X.nodeName.toLowerCase()==="pre"&&!X.hasAttribute("tabindex")&&X.setAttribute("tabindex","0"),!Y.code){m.hooks.run("complete",Y),M&&M.call(Y.element);return}if(m.hooks.run("before-highlight",Y),!Y.grammar){ne(m.util.encode(Y.code));return}if(_&&i.Worker){var ee=new Worker(m.filename);ee.onmessage=function(Q){ne(Q.data)},ee.postMessage(JSON.stringify({language:Y.language,code:Y.code,immediateClose:!0}))}else ne(m.highlight(Y.code,Y.grammar,Y.language))},highlight:function(w,_,M){var A={code:w,grammar:_,language:M};if(m.hooks.run("before-tokenize",A),!A.grammar)throw new Error('The language "'+A.language+'" has no grammar.');return A.tokens=m.tokenize(A.code,A.grammar),m.hooks.run("after-tokenize",A),g.stringify(m.util.encode(A.tokens),A.language)},tokenize:function(w,_){var M=_.rest;if(M){for(var A in M)_[A]=M[A];delete _.rest}var N=new S;return j(N,N.head,w),y(w,N,_,N.head,0),$(N)},hooks:{all:{},add:function(w,_){var M=m.hooks.all;M[w]=M[w]||[],M[w].push(_)},run:function(w,_){var M=m.hooks.all[w];if(!(!M||!M.length))for(var A=0,N;N=M[A++];)N(_)}},Token:g};i.Prism=m;function g(w,_,M,A){this.type=w,this.content=_,this.alias=M,this.length=(A||"").length|0}g.stringify=function w(_,M){if(typeof _=="string")return _;if(Array.isArray(_)){var A="";return _.forEach(function(ne){A+=w(ne,M)}),A}var N={type:_.type,content:w(_.content,M),tag:"span",classes:["token",_.type],attributes:{},language:M},X=_.alias;X&&(Array.isArray(X)?Array.prototype.push.apply(N.classes,X):N.classes.push(X)),m.hooks.run("wrap",N);var V="";for(var Y in N.attributes)V+=" "+Y+'="'+(N.attributes[Y]||"").replace(/"/g,"&quot;")+'"';return"<"+N.tag+' class="'+N.classes.join(" ")+'"'+V+">"+N.content+"</"+N.tag+">"};function b(w,_,M,A){w.lastIndex=_;var N=w.exec(M);if(N&&A&&N[1]){var X=N[1].length;N.index+=X,N[0]=N[0].slice(X)}return N}function y(w,_,M,A,N,X){for(var V in M)if(!(!M.hasOwnProperty(V)||!M[V])){var Y=M[V];Y=Array.isArray(Y)?Y:[Y];for(var ne=0;ne<Y.length;++ne){if(X&&X.cause==V+","+ne)return;var ee=Y[ne],Q=ee.inside,ce=!!ee.lookbehind,pe=!!ee.greedy,le=ee.alias;if(pe&&!ee.pattern.global){var k=ee.pattern.toString().match(/[imsuy]*$/)[0];ee.pattern=RegExp(ee.pattern.source,k+"g")}for(var I=ee.pattern||ee,D=A.next,ue=N;D!==_.tail&&!(X&&ue>=X.reach);ue+=D.value.length,D=D.next){var x=D.value;if(_.length>w.length)return;if(!(x instanceof g)){var K=1,te;if(pe){if(te=b(I,ue,w,ce),!te||te.index>=w.length)break;var F=te.index,ae=te.index+te[0].length,re=ue;for(re+=D.value.length;F>=re;)D=D.next,re+=D.value.length;if(re-=D.value.length,ue=re,D.value instanceof g)continue;for(var fe=D;fe!==_.tail&&(re<ae||typeof fe.value=="string");fe=fe.next)K++,re+=fe.value.length;K--,x=w.slice(ue,re),te.index-=ue}else if(te=b(I,0,x,ce),!te)continue;var F=te.index,ye=te[0],xe=x.slice(0,F),Pe=x.slice(F+ye.length),dt=ue+x.length;X&&dt>X.reach&&(X.reach=dt);var Ct=D.prev;xe&&(Ct=j(_,Ct,xe),ue+=xe.length),C(_,Ct,K);var kt=new g(V,Q?m.tokenize(ye,Q):ye,le,ye);if(D=j(_,Ct,kt),Pe&&j(_,D,Pe),K>1){var Xe={cause:V+","+ne,reach:dt};y(w,_,M,D.prev,ue,Xe),X&&Xe.reach>X.reach&&(X.reach=Xe.reach)}}}}}}function S(){var w={value:null,prev:null,next:null},_={value:null,prev:w,next:null};w.next=_,this.head=w,this.tail=_,this.length=0}function j(w,_,M){var A=_.next,N={value:M,prev:_,next:A};return _.next=N,A.prev=N,w.length++,N}function C(w,_,M){for(var A=_.next,N=0;N<M&&A!==w.tail;N++)A=A.next;_.next=A,A.prev=_,w.length-=N}function $(w){for(var _=[],M=w.head.next;M!==w.tail;)_.push(M.value),M=M.next;return _}if(!i.document)return i.addEventListener&&(m.disableWorkerMessageHandler||i.addEventListener("message",function(w){var _=JSON.parse(w.data),M=_.language,A=_.code,N=_.immediateClose;i.postMessage(m.highlight(A,m.languages[M],M)),N&&i.close()},!1)),m;var B=m.util.currentScript();B&&(m.filename=B.src,B.hasAttribute("data-manual")&&(m.manual=!0));function R(){m.manual||m.highlightAll()}if(!m.manual){var P=document.readyState;P==="loading"||P==="interactive"&&B&&B.defer?document.addEventListener("DOMContentLoaded",R):window.requestAnimationFrame?window.requestAnimationFrame(R):window.setTimeout(R,16)}return m}(r);n.exports&&(n.exports=o),typeof Jg<"u"&&(Jg.Prism=o)}(As)),As.exports}var mh=s1();Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;const f1=({componentType:n,filename:r,onClose:o})=>{const[i]=q.useState(n),[c]=q.useState(r),[s,d]=q.useState("// Loading..."),[m,g]=q.useState(!1),[b,y]=q.useState(null),[S,j]=q.useState(!1),[C,$]=q.useState(null),[B,R]=q.useState(null);q.useEffect(()=>{(async()=>{if(!(!i||!c)){g(!0),y(null);try{const M=await eu(i,c);d(JSON.stringify(M,null,2))}catch(M){console.error("Error fetching config content:",M),y(M instanceof Error?M.message:"An unknown error occurred"),d(`// Error loading ${c}:
// ${M instanceof Error?M.message:"Unknown error"}`)}finally{g(!1)}}})()},[i,c]);const P=async()=>{j(!0),$(null),R(null);let _;try{_=JSON.parse(s)}catch{R("Invalid JSON format. Please correct and try again."),j(!1);return}try{await G0(i,c,_),$("Configuration saved successfully!"),setTimeout(()=>$(null),3e3)}catch(M){console.error("Error saving config content:",M),R(M instanceof Error?M.message:"An unknown error occurred during save.")}finally{j(!1)}},w={fontFamily:'"Fira code", "Fira Mono", monospace',fontSize:14,backgroundColor:"#282a36",borderRadius:"0.375rem",border:"1px solid #44475a",minHeight:"300px",overflow:"auto"};return m?h.jsx("p",{className:"text-dracula-comment",children:"Loading editor..."}):h.jsxs("div",{className:"p-1",children:[h.jsxs("div",{className:"flex justify-between items-center mb-4",children:[h.jsxs("h3",{className:"text-lg font-semibold text-dracula-purple",children:["Editing: ",c," (",i,")"]}),h.jsx("button",{onClick:o,className:"bg-dracula-comment hover:bg-opacity-80 text-dracula-foreground font-semibold py-2 px-4 rounded-md text-sm",children:"Back to List"})]}),b&&h.jsxs("p",{className:"text-dracula-red mb-2",children:["Initial Load Error: ",b]}),h.jsx("div",{className:"bg-dracula-background p-0.5 rounded-md shadow-lg",style:{minHeight:"300px"},children:h.jsx(c1,{value:s,onValueChange:_=>d(_),highlight:_=>mh.highlight(_,mh.languages.json,"json"),padding:10,style:w,className:"text-dracula-foreground",disabled:m||S})}),C&&h.jsx("p",{className:"mt-2 text-sm text-dracula-green",children:C}),B&&h.jsx("p",{className:"mt-2 text-sm text-dracula-red",children:B}),h.jsx("button",{onClick:P,className:"mt-4 bg-dracula-green hover:bg-opacity-80 text-dracula-background font-semibold py-2 px-4 rounded-md focus:outline-none focus:ring-2 focus:ring-dracula-pink disabled:opacity-50 disabled:bg-dracula-comment",disabled:m||S,children:S?"Saving...":"Save Configuration"})]})},d1=()=>{const{selectedComponent:n}=Br(),{lastComponentsUpdateTimestamp:r}=qf(),[o,i]=q.useState([]),[c,s]=q.useState(!1),[d,m]=q.useState(null),[g,b]=q.useState(null);q.useEffect(()=>{b(null),(async()=>{if(n){s(!0),m(null),i([]);try{const C=await Fo(n);i(C.map($=>({name:$})))}catch(C){console.error("Error fetching config files:",C),m(C instanceof Error?C.message:"An unknown error occurred")}finally{s(!1)}}})()},[n,r]);const y=j=>{b(j)},S=()=>{b(null)};return g&&n?h.jsx(f1,{componentType:n,filename:g,onClose:S}):n?c?h.jsx("p",{className:"text-dracula-comment p-1",children:"Loading configuration files..."}):d?h.jsxs("p",{className:"text-dracula-red p-1",children:["Error: ",d]}):h.jsxs("div",{className:"p-1",children:[h.jsxs("h3",{className:"text-lg font-semibold text-dracula-purple mb-3",children:[n.charAt(0).toUpperCase()+n.slice(1)," Configurations"]}),o.length===0?h.jsxs("p",{className:"text-dracula-comment",children:["No configuration files found for ",n,"."]}):h.jsx("ul",{className:"space-y-2",children:o.map(j=>h.jsx("li",{children:h.jsx("button",{onClick:()=>y(j.name),className:`w-full text-left p-3 rounded-md transition-colors duration-150 ease-in-out
                  focus:outline-none focus:ring-2 focus:ring-dracula-pink
                  ${g===j.name?"bg-dracula-pink text-dracula-background":"bg-dracula-current-line hover:bg-opacity-80 text-dracula-foreground focus:bg-dracula-comment focus:bg-opacity-50"}
                `,children:j.name})},j.name))})]}):h.jsx("p",{className:"text-dracula-comment p-1",children:"Please select a component type from the sidebar."})};var Ts={exports:{}},Cs,vh;function m1(){if(vh)return Cs;vh=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Cs=n,Cs}var ks,gh;function v1(){if(gh)return ks;gh=1;var n=m1();function r(){}function o(){}return o.resetWarningCache=r,ks=function(){function i(d,m,g,b,y,S){if(S!==n){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}}i.isRequired=i;function c(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:c,element:i,elementType:i,instanceOf:c,node:i,objectOf:c,oneOf:c,oneOfType:c,shape:c,exact:c,checkPropTypes:o,resetWarningCache:r};return s.PropTypes=s,s},ks}var hh;function g1(){return hh||(hh=1,Ts.exports=v1()()),Ts.exports}var h1=g1();const oe=Zo(h1);var be="cs",Ms={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var ph;function p1(){return ph||(ph=1,function(n){(function(){var r={}.hasOwnProperty;function o(){for(var s="",d=0;d<arguments.length;d++){var m=arguments[d];m&&(s=c(s,i(m)))}return s}function i(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return o.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var d="";for(var m in s)r.call(s,m)&&s[m]&&(d=c(d,m));return d}function c(s,d){return d?s?s+" "+d:s+d:s}n.exports?(o.default=o,n.exports=o):window.classNames=o})()}(Ms)),Ms.exports}var b1=p1();const Ce=Zo(b1);var bp=["available","unavailable","away","dnd","invisible","eager"],yp=["xs","sm","md","lg","fluid"];function Il(n){"@babel/helpers - typeof";return Il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Il(n)}var y1=["status","size","className","name","selected","children"];function Ks(){return Ks=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},Ks.apply(this,arguments)}function bh(n,r,o){return r=x1(r),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function x1(n){var r=S1(n,"string");return Il(r)=="symbol"?r:String(r)}function S1(n,r){if(Il(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r);if(Il(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function O1(n,r){if(n==null)return{};var o=_1(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function _1(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var xp=function(r){var o=r.status,i=r.size,c=i===void 0?"md":i,s=r.className,d=r.name,m=r.selected,g=r.children,b=O1(r,y1),y="".concat(be,"-status"),S=G.createElement("div",{className:"".concat(y,"__bullet")}),j=d||g;return G.createElement("div",Ks({},b,{"aria-selected":m===!0?"":null,className:Ce(y,"".concat(y,"--").concat(c),"".concat(y,"--").concat(o),bh({},"".concat(y,"--selected"),m),bh({},"".concat(y,"--named"),j),s)}),S,j&&G.createElement("div",{className:"".concat(y,"__name")},d||g))};function Jl(n){"@babel/helpers - typeof";return Jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jl(n)}var w1=["name","src","size","status","className","active","children"];function Vs(){return Vs=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},Vs.apply(this,arguments)}function E1(n,r,o){return r=j1(r),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function j1(n){var r=N1(n,"string");return Jl(r)=="symbol"?r:String(r)}function N1(n,r){if(Jl(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r);if(Jl(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function A1(n,r){if(n==null)return{};var o=T1(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function T1(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}function C1(n,r){var o=n.name,i=o===void 0?"":o,c=n.src,s=c===void 0?"":c,d=n.size,m=d===void 0?"md":d,g=n.status,b=n.className,y=n.active,S=y===void 0?!1:y,j=n.children,C=A1(n,w1),$="".concat(be,"-avatar"),B=typeof m<"u"?" ".concat($,"--").concat(m):"",R=q.useRef();return q.useImperativeHandle(r,function(){return{focus:function(){return R.current.focus()}}}),G.createElement("div",Vs({ref:R},C,{className:Ce("".concat($).concat(B),E1({},"".concat($,"--active"),S),b)}),j||G.createElement(G.Fragment,null,G.createElement("img",{src:s,alt:i}),typeof g=="string"&&G.createElement(xp,{status:g,size:m})," "))}var ui=q.forwardRef(C1);ui.displayName="Avatar";ui.propTypes={children:oe.node,name:oe.string,src:oe.string,size:oe.oneOf(yp),status:oe.oneOf(bp),active:oe.bool,className:oe.string};function yh(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);r&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),o.push.apply(o,i)}return o}function Ao(n){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?yh(Object(o),!0).forEach(function(i){k1(n,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):yh(Object(o)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(o,i))})}return n}function k1(n,r,o){return r=M1(r),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function M1(n){var r=R1(n,"string");return va(r)=="symbol"?r:String(r)}function R1(n,r){if(va(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r);if(va(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function va(n){"@babel/helpers - typeof";return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},va(n)}var Mo=function(){},D1=function(r){return r==null||Array.isArray(r)&&r.length===0},ci=function(r,o){var i=[],c=o.map(function(s){return s.displayName||s.name});return G.Children.toArray(r).forEach(function(s){var d=o.indexOf(s.type);if(d!==-1)i[d]=s;else{var m,g,b,y=(m=s==null||(g=s.props)===null||g===void 0?void 0:g.as)!==null&&m!==void 0?m:s==null||(b=s.props)===null||b===void 0?void 0:b.is,S=va(y);if(S==="function"){var j=o.indexOf(y);j!==-1&&(i[j]=G.cloneElement(s,Ao(Ao({},s.props),{},{as:null})))}else if(S==="object"){var C=y.name||y.displayName,$=c.indexOf(C);$!==-1&&(i[$]=G.cloneElement(s,Ao(Ao({},s.props),{},{as:null})))}else if(S==="string"){var B=c.indexOf(y);B!==-1&&(i[B]=s)}}}),i},Sp=function(r){if(typeof r=="string")return r;if("type"in r){var o=va(r.type);if(o==="function"||o==="object"){if("displayName"in r.type)return r.type.displayName;if("name"in r.type)return r.type.name}else if(o==="string")return r.type;return"undefined"}return"undefined"},Op=function(r){return function(o,i,c){var s=r.map(function(y){return y.name||y.displayName}),d=G.Children.toArray(o[i]).find(function(y){if(typeof y=="string"&&y.trim().length===0)return!1;if(r.indexOf(y.type)===-1){var S,j,C=(y==null||(S=y.props)===null||S===void 0?void 0:S.as)||(y==null||(j=y.props)===null||j===void 0?void 0:j.is),$=va(C);if($==="function")return r.indexOf(C)===-1;if($==="object"){var B=C.name||C.displayName;return s.indexOf(B)===-1}else return $==="string"?s.indexOf(C)===-1:!0}});if(typeof d<"u"){var m=Sp(d),g=r.map(function(y){return y.name||y.displayName}).join(", "),b='"'.concat(m,'" is not a valid child for ').concat(c,". Allowed types: ").concat(g);return new Error(b)}}},z1=["children","size","className","max","activeIndex","hoverToFront"];function Qs(){return Qs=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},Qs.apply(this,arguments)}function L1(n,r){if(n==null)return{};var o=H1(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function H1(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var _p=function(r){var o=r.children,i=r.size,c=i===void 0?"md":i,s=r.className,d=r.max,m=r.activeIndex,g=r.hoverToFront,b=L1(r,z1),y="".concat(be,"-avatar-group"),S=typeof d=="number"&&G.Children.count(o)>d?G.Children.toArray(o).reverse().slice(0,d):G.Children.toArray(o).reverse(),j=typeof m=="number"?S.length-m-1:void 0;return G.createElement("div",Qs({},b,{className:Ce(y,"".concat(y,"--").concat(c),s)}),S.map(function(C,$){var B=typeof j=="number"?{active:j===$}:{};return g===!0&&(B.className=Ce("".concat(be,"-avatar--active-on-hover"),C.props.className)),G.cloneElement(C,B)}))};_p.displayName="AvatarGroup";var $1=["children","className","icon","border","labelPosition"];function Ws(){return Ws=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},Ws.apply(this,arguments)}function U1(n,r){if(n==null)return{};var o=Y1(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function Y1(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var Gf=function(r){var o=r.children,i=o===void 0?void 0:o,c=r.className,s=c===void 0?"":c,d=r.icon,m=d===void 0?void 0:d,g=r.border,b=g===void 0?!1:g,y=r.labelPosition,S=y===void 0?void 0:y,j=U1(r,$1),C="".concat(be,"-button"),$=typeof S<"u"?S:"right",B=G.Children.count(i)>0?"".concat(C,"--").concat($):"",R=b===!0?"".concat(C,"--border"):"";return G.createElement("button",Ws({},j,{className:Ce(C,B,R,s)}),$==="left"&&i,m,$==="right"&&i)};/*!
 * Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 * Copyright 2022 Fonticons, Inc.
 */function xh(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);r&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),o.push.apply(o,i)}return o}function se(n){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?xh(Object(o),!0).forEach(function(i){q1(n,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):xh(Object(o)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(o,i))})}return n}function Ho(n){"@babel/helpers - typeof";return Ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ho(n)}function B1(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function P1(n,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function X1(n,r,o){return r&&P1(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function q1(n,r,o){return r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function Kf(n,r){return K1(n)||Q1(n,r)||wp(n,r)||Z1()}function nu(n){return G1(n)||V1(n)||wp(n)||W1()}function G1(n){if(Array.isArray(n))return Zs(n)}function K1(n){if(Array.isArray(n))return n}function V1(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Q1(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i=[],c=!0,s=!1,d,m;try{for(o=o.call(n);!(c=(d=o.next()).done)&&(i.push(d.value),!(r&&i.length===r));c=!0);}catch(g){s=!0,m=g}finally{try{!c&&o.return!=null&&o.return()}finally{if(s)throw m}}return i}}function wp(n,r){if(n){if(typeof n=="string")return Zs(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Zs(n,r)}}function Zs(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,i=new Array(r);o<r;o++)i[o]=n[o];return i}function W1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Sh=function(){},Vf={},Ep={},jp=null,Np={mark:Sh,measure:Sh};try{typeof window<"u"&&(Vf=window),typeof document<"u"&&(Ep=document),typeof MutationObserver<"u"&&(jp=MutationObserver),typeof performance<"u"&&(Np=performance)}catch{}var I1=Vf.navigator||{},Oh=I1.userAgent,_h=Oh===void 0?"":Oh,ga=Vf,Be=Ep,wh=jp,To=Np;ga.document;var Yn=!!Be.documentElement&&!!Be.head&&typeof Be.addEventListener=="function"&&typeof Be.createElement=="function",Ap=~_h.indexOf("MSIE")||~_h.indexOf("Trident/"),Ln="___FONT_AWESOME___",Is=16,Tp="fa",Cp="svg-inline--fa",Ua="data-fa-i2svg",Js="data-fa-pseudo-element",J1="data-fa-pseudo-element-pending",Qf="data-prefix",Wf="data-icon",Eh="fontawesome-i2svg",F1="async",e2=["HTML","HEAD","STYLE","SCRIPT"],kp=function(){try{return!0}catch{return!1}}(),Zf={fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit",fa:"solid"},$o={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},Mp={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},t2={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},n2=/fa[srltdbk\-\ ]/,Rp="fa-layers-text",a2=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,r2={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},Dp=[1,2,3,4,5,6,7,8,9,10],l2=Dp.concat([11,12,13,14,15,16,17,18,19,20]),i2=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ha={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},o2=[].concat(nu(Object.keys($o)),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Ha.GROUP,Ha.SWAP_OPACITY,Ha.PRIMARY,Ha.SECONDARY]).concat(Dp.map(function(n){return"".concat(n,"x")})).concat(l2.map(function(n){return"w-".concat(n)})),zp=ga.FontAwesomeConfig||{};function u2(n){var r=Be.querySelector("script["+n+"]");if(r)return r.getAttribute(n)}function c2(n){return n===""?!0:n==="false"?!1:n==="true"?!0:n}if(Be&&typeof Be.querySelector=="function"){var s2=[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];s2.forEach(function(n){var r=Kf(n,2),o=r[0],i=r[1],c=c2(u2(o));c!=null&&(zp[i]=c)})}var f2={familyPrefix:Tp,styleDefault:"solid",replacementClass:Cp,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},Wl=se(se({},f2),zp);Wl.autoReplaceSvg||(Wl.observeMutations=!1);var ve={};Object.keys(Wl).forEach(function(n){Object.defineProperty(ve,n,{enumerable:!0,set:function(o){Wl[n]=o,Ro.forEach(function(i){return i(ve)})},get:function(){return Wl[n]}})});ga.FontAwesomeConfig=ve;var Ro=[];function d2(n){return Ro.push(n),function(){Ro.splice(Ro.indexOf(n),1)}}var Ar=Is,mn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function m2(n){if(!(!n||!Yn)){var r=Be.createElement("style");r.setAttribute("type","text/css"),r.innerHTML=n;for(var o=Be.head.childNodes,i=null,c=o.length-1;c>-1;c--){var s=o[c],d=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(d)>-1&&(i=s)}return Be.head.insertBefore(r,i),n}}var v2="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Fl(){for(var n=12,r="";n-- >0;)r+=v2[Math.random()*62|0];return r}function Pr(n){for(var r=[],o=(n||[]).length>>>0;o--;)r[o]=n[o];return r}function If(n){return n.classList?Pr(n.classList):(n.getAttribute("class")||"").split(" ").filter(function(r){return r})}function Lp(n){return"".concat(n).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function g2(n){return Object.keys(n||{}).reduce(function(r,o){return r+"".concat(o,'="').concat(Lp(n[o]),'" ')},"").trim()}function au(n){return Object.keys(n||{}).reduce(function(r,o){return r+"".concat(o,": ").concat(n[o].trim(),";")},"")}function Jf(n){return n.size!==mn.size||n.x!==mn.x||n.y!==mn.y||n.rotate!==mn.rotate||n.flipX||n.flipY}function h2(n){var r=n.transform,o=n.containerWidth,i=n.iconWidth,c={transform:"translate(".concat(o/2," 256)")},s="translate(".concat(r.x*32,", ").concat(r.y*32,") "),d="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),m="rotate(".concat(r.rotate," 0 0)"),g={transform:"".concat(s," ").concat(d," ").concat(m)},b={transform:"translate(".concat(i/2*-1," -256)")};return{outer:c,inner:g,path:b}}function p2(n){var r=n.transform,o=n.width,i=o===void 0?Is:o,c=n.height,s=c===void 0?Is:c,d="";return Ap?d+="translate(".concat(r.x/Ar-i/2,"em, ").concat(r.y/Ar-s/2,"em) "):d+="translate(calc(-50% + ".concat(r.x/Ar,"em), calc(-50% + ").concat(r.y/Ar,"em)) "),d+="scale(".concat(r.size/Ar*(r.flipX?-1:1),", ").concat(r.size/Ar*(r.flipY?-1:1),") "),d+="rotate(".concat(r.rotate,"deg) "),d}var b2=`:root, :host {
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
}

svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
  overflow: visible;
  box-sizing: content-box;
}

.svg-inline--fa {
  display: var(--fa-display, inline-block);
  height: 1em;
  overflow: visible;
  vertical-align: -0.125em;
}
.svg-inline--fa.fa-2xs {
  vertical-align: 0.1em;
}
.svg-inline--fa.fa-xs {
  vertical-align: 0em;
}
.svg-inline--fa.fa-sm {
  vertical-align: -0.0714285705em;
}
.svg-inline--fa.fa-lg {
  vertical-align: -0.2em;
}
.svg-inline--fa.fa-xl {
  vertical-align: -0.25em;
}
.svg-inline--fa.fa-2xl {
  vertical-align: -0.3125em;
}
.svg-inline--fa.fa-pull-left {
  margin-right: var(--fa-pull-margin, 0.3em);
  width: auto;
}
.svg-inline--fa.fa-pull-right {
  margin-left: var(--fa-pull-margin, 0.3em);
  width: auto;
}
.svg-inline--fa.fa-li {
  width: var(--fa-li-width, 2em);
  top: 0.25em;
}
.svg-inline--fa.fa-fw {
  width: var(--fa-fw-width, 1.25em);
}

.fa-layers svg.svg-inline--fa {
  bottom: 0;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
}

.fa-layers-counter, .fa-layers-text {
  display: inline-block;
  position: absolute;
  text-align: center;
}

.fa-layers {
  display: inline-block;
  height: 1em;
  position: relative;
  text-align: center;
  vertical-align: -0.125em;
  width: 1em;
}
.fa-layers svg.svg-inline--fa {
  -webkit-transform-origin: center center;
          transform-origin: center center;
}

.fa-layers-text {
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  -webkit-transform-origin: center center;
          transform-origin: center center;
}

.fa-layers-counter {
  background-color: var(--fa-counter-background-color, #ff253a);
  border-radius: var(--fa-counter-border-radius, 1em);
  box-sizing: border-box;
  color: var(--fa-inverse, #fff);
  line-height: var(--fa-counter-line-height, 1);
  max-width: var(--fa-counter-max-width, 5em);
  min-width: var(--fa-counter-min-width, 1.5em);
  overflow: hidden;
  padding: var(--fa-counter-padding, 0.25em 0.5em);
  right: var(--fa-right, 0);
  text-overflow: ellipsis;
  top: var(--fa-top, 0);
  -webkit-transform: scale(var(--fa-counter-scale, 0.25));
          transform: scale(var(--fa-counter-scale, 0.25));
  -webkit-transform-origin: top right;
          transform-origin: top right;
}

.fa-layers-bottom-right {
  bottom: var(--fa-bottom, 0);
  right: var(--fa-right, 0);
  top: auto;
  -webkit-transform: scale(var(--fa-layers-scale, 0.25));
          transform: scale(var(--fa-layers-scale, 0.25));
  -webkit-transform-origin: bottom right;
          transform-origin: bottom right;
}

.fa-layers-bottom-left {
  bottom: var(--fa-bottom, 0);
  left: var(--fa-left, 0);
  right: auto;
  top: auto;
  -webkit-transform: scale(var(--fa-layers-scale, 0.25));
          transform: scale(var(--fa-layers-scale, 0.25));
  -webkit-transform-origin: bottom left;
          transform-origin: bottom left;
}

.fa-layers-top-right {
  top: var(--fa-top, 0);
  right: var(--fa-right, 0);
  -webkit-transform: scale(var(--fa-layers-scale, 0.25));
          transform: scale(var(--fa-layers-scale, 0.25));
  -webkit-transform-origin: top right;
          transform-origin: top right;
}

.fa-layers-top-left {
  left: var(--fa-left, 0);
  right: auto;
  top: var(--fa-top, 0);
  -webkit-transform: scale(var(--fa-layers-scale, 0.25));
          transform: scale(var(--fa-layers-scale, 0.25));
  -webkit-transform-origin: top left;
          transform-origin: top left;
}

.fa-1x {
  font-size: 1em;
}

.fa-2x {
  font-size: 2em;
}

.fa-3x {
  font-size: 3em;
}

.fa-4x {
  font-size: 4em;
}

.fa-5x {
  font-size: 5em;
}

.fa-6x {
  font-size: 6em;
}

.fa-7x {
  font-size: 7em;
}

.fa-8x {
  font-size: 8em;
}

.fa-9x {
  font-size: 9em;
}

.fa-10x {
  font-size: 10em;
}

.fa-2xs {
  font-size: 0.625em;
  line-height: 0.1em;
  vertical-align: 0.225em;
}

.fa-xs {
  font-size: 0.75em;
  line-height: 0.0833333337em;
  vertical-align: 0.125em;
}

.fa-sm {
  font-size: 0.875em;
  line-height: 0.0714285718em;
  vertical-align: 0.0535714295em;
}

.fa-lg {
  font-size: 1.25em;
  line-height: 0.05em;
  vertical-align: -0.075em;
}

.fa-xl {
  font-size: 1.5em;
  line-height: 0.0416666682em;
  vertical-align: -0.125em;
}

.fa-2xl {
  font-size: 2em;
  line-height: 0.03125em;
  vertical-align: -0.1875em;
}

.fa-fw {
  text-align: center;
  width: 1.25em;
}

.fa-ul {
  list-style-type: none;
  margin-left: var(--fa-li-margin, 2.5em);
  padding-left: 0;
}
.fa-ul > li {
  position: relative;
}

.fa-li {
  left: calc(var(--fa-li-width, 2em) * -1);
  position: absolute;
  text-align: center;
  width: var(--fa-li-width, 2em);
  line-height: inherit;
}

.fa-border {
  border-color: var(--fa-border-color, #eee);
  border-radius: var(--fa-border-radius, 0.1em);
  border-style: var(--fa-border-style, solid);
  border-width: var(--fa-border-width, 0.08em);
  padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
}

.fa-pull-left {
  float: left;
  margin-right: var(--fa-pull-margin, 0.3em);
}

.fa-pull-right {
  float: right;
  margin-left: var(--fa-pull-margin, 0.3em);
}

.fa-beat {
  -webkit-animation-name: fa-beat;
          animation-name: fa-beat;
  -webkit-animation-delay: var(--fa-animation-delay, 0);
          animation-delay: var(--fa-animation-delay, 0);
  -webkit-animation-direction: var(--fa-animation-direction, normal);
          animation-direction: var(--fa-animation-direction, normal);
  -webkit-animation-duration: var(--fa-animation-duration, 1s);
          animation-duration: var(--fa-animation-duration, 1s);
  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
          animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
          animation-timing-function: var(--fa-animation-timing, ease-in-out);
}

.fa-bounce {
  -webkit-animation-name: fa-bounce;
          animation-name: fa-bounce;
  -webkit-animation-delay: var(--fa-animation-delay, 0);
          animation-delay: var(--fa-animation-delay, 0);
  -webkit-animation-direction: var(--fa-animation-direction, normal);
          animation-direction: var(--fa-animation-direction, normal);
  -webkit-animation-duration: var(--fa-animation-duration, 1s);
          animation-duration: var(--fa-animation-duration, 1s);
  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
          animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
}

.fa-fade {
  -webkit-animation-name: fa-fade;
          animation-name: fa-fade;
  -webkit-animation-delay: var(--fa-animation-delay, 0);
          animation-delay: var(--fa-animation-delay, 0);
  -webkit-animation-direction: var(--fa-animation-direction, normal);
          animation-direction: var(--fa-animation-direction, normal);
  -webkit-animation-duration: var(--fa-animation-duration, 1s);
          animation-duration: var(--fa-animation-duration, 1s);
  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
          animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}

.fa-beat-fade {
  -webkit-animation-name: fa-beat-fade;
          animation-name: fa-beat-fade;
  -webkit-animation-delay: var(--fa-animation-delay, 0);
          animation-delay: var(--fa-animation-delay, 0);
  -webkit-animation-direction: var(--fa-animation-direction, normal);
          animation-direction: var(--fa-animation-direction, normal);
  -webkit-animation-duration: var(--fa-animation-duration, 1s);
          animation-duration: var(--fa-animation-duration, 1s);
  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
          animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}

.fa-flip {
  -webkit-animation-name: fa-flip;
          animation-name: fa-flip;
  -webkit-animation-delay: var(--fa-animation-delay, 0);
          animation-delay: var(--fa-animation-delay, 0);
  -webkit-animation-direction: var(--fa-animation-direction, normal);
          animation-direction: var(--fa-animation-direction, normal);
  -webkit-animation-duration: var(--fa-animation-duration, 1s);
          animation-duration: var(--fa-animation-duration, 1s);
  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
          animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
          animation-timing-function: var(--fa-animation-timing, ease-in-out);
}

.fa-shake {
  -webkit-animation-name: fa-shake;
          animation-name: fa-shake;
  -webkit-animation-delay: var(--fa-animation-delay, 0);
          animation-delay: var(--fa-animation-delay, 0);
  -webkit-animation-direction: var(--fa-animation-direction, normal);
          animation-direction: var(--fa-animation-direction, normal);
  -webkit-animation-duration: var(--fa-animation-duration, 1s);
          animation-duration: var(--fa-animation-duration, 1s);
  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
          animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  -webkit-animation-timing-function: var(--fa-animation-timing, linear);
          animation-timing-function: var(--fa-animation-timing, linear);
}

.fa-spin {
  -webkit-animation-name: fa-spin;
          animation-name: fa-spin;
  -webkit-animation-delay: var(--fa-animation-delay, 0);
          animation-delay: var(--fa-animation-delay, 0);
  -webkit-animation-direction: var(--fa-animation-direction, normal);
          animation-direction: var(--fa-animation-direction, normal);
  -webkit-animation-duration: var(--fa-animation-duration, 2s);
          animation-duration: var(--fa-animation-duration, 2s);
  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
          animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  -webkit-animation-timing-function: var(--fa-animation-timing, linear);
          animation-timing-function: var(--fa-animation-timing, linear);
}

.fa-spin-reverse {
  --fa-animation-direction: reverse;
}

.fa-pulse,
.fa-spin-pulse {
  -webkit-animation-name: fa-spin;
          animation-name: fa-spin;
  -webkit-animation-direction: var(--fa-animation-direction, normal);
          animation-direction: var(--fa-animation-direction, normal);
  -webkit-animation-duration: var(--fa-animation-duration, 1s);
          animation-duration: var(--fa-animation-duration, 1s);
  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
          animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
          animation-timing-function: var(--fa-animation-timing, steps(8));
}

@media (prefers-reduced-motion: reduce) {
  .fa-beat,
.fa-bounce,
.fa-fade,
.fa-beat-fade,
.fa-flip,
.fa-pulse,
.fa-shake,
.fa-spin,
.fa-spin-pulse {
    -webkit-animation-delay: -1ms;
            animation-delay: -1ms;
    -webkit-animation-duration: 1ms;
            animation-duration: 1ms;
    -webkit-animation-iteration-count: 1;
            animation-iteration-count: 1;
    transition-delay: 0s;
    transition-duration: 0s;
  }
}
@-webkit-keyframes fa-beat {
  0%, 90% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  45% {
    -webkit-transform: scale(var(--fa-beat-scale, 1.25));
            transform: scale(var(--fa-beat-scale, 1.25));
  }
}
@keyframes fa-beat {
  0%, 90% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  45% {
    -webkit-transform: scale(var(--fa-beat-scale, 1.25));
            transform: scale(var(--fa-beat-scale, 1.25));
  }
}
@-webkit-keyframes fa-bounce {
  0% {
    -webkit-transform: scale(1, 1) translateY(0);
            transform: scale(1, 1) translateY(0);
  }
  10% {
    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
  }
  30% {
    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
  }
  50% {
    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
  }
  57% {
    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
  }
  64% {
    -webkit-transform: scale(1, 1) translateY(0);
            transform: scale(1, 1) translateY(0);
  }
  100% {
    -webkit-transform: scale(1, 1) translateY(0);
            transform: scale(1, 1) translateY(0);
  }
}
@keyframes fa-bounce {
  0% {
    -webkit-transform: scale(1, 1) translateY(0);
            transform: scale(1, 1) translateY(0);
  }
  10% {
    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
  }
  30% {
    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
  }
  50% {
    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
  }
  57% {
    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
  }
  64% {
    -webkit-transform: scale(1, 1) translateY(0);
            transform: scale(1, 1) translateY(0);
  }
  100% {
    -webkit-transform: scale(1, 1) translateY(0);
            transform: scale(1, 1) translateY(0);
  }
}
@-webkit-keyframes fa-fade {
  50% {
    opacity: var(--fa-fade-opacity, 0.4);
  }
}
@keyframes fa-fade {
  50% {
    opacity: var(--fa-fade-opacity, 0.4);
  }
}
@-webkit-keyframes fa-beat-fade {
  0%, 100% {
    opacity: var(--fa-beat-fade-opacity, 0.4);
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    opacity: 1;
    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
            transform: scale(var(--fa-beat-fade-scale, 1.125));
  }
}
@keyframes fa-beat-fade {
  0%, 100% {
    opacity: var(--fa-beat-fade-opacity, 0.4);
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    opacity: 1;
    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
            transform: scale(var(--fa-beat-fade-scale, 1.125));
  }
}
@-webkit-keyframes fa-flip {
  50% {
    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
  }
}
@keyframes fa-flip {
  50% {
    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
  }
}
@-webkit-keyframes fa-shake {
  0% {
    -webkit-transform: rotate(-15deg);
            transform: rotate(-15deg);
  }
  4% {
    -webkit-transform: rotate(15deg);
            transform: rotate(15deg);
  }
  8%, 24% {
    -webkit-transform: rotate(-18deg);
            transform: rotate(-18deg);
  }
  12%, 28% {
    -webkit-transform: rotate(18deg);
            transform: rotate(18deg);
  }
  16% {
    -webkit-transform: rotate(-22deg);
            transform: rotate(-22deg);
  }
  20% {
    -webkit-transform: rotate(22deg);
            transform: rotate(22deg);
  }
  32% {
    -webkit-transform: rotate(-12deg);
            transform: rotate(-12deg);
  }
  36% {
    -webkit-transform: rotate(12deg);
            transform: rotate(12deg);
  }
  40%, 100% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
}
@keyframes fa-shake {
  0% {
    -webkit-transform: rotate(-15deg);
            transform: rotate(-15deg);
  }
  4% {
    -webkit-transform: rotate(15deg);
            transform: rotate(15deg);
  }
  8%, 24% {
    -webkit-transform: rotate(-18deg);
            transform: rotate(-18deg);
  }
  12%, 28% {
    -webkit-transform: rotate(18deg);
            transform: rotate(18deg);
  }
  16% {
    -webkit-transform: rotate(-22deg);
            transform: rotate(-22deg);
  }
  20% {
    -webkit-transform: rotate(22deg);
            transform: rotate(22deg);
  }
  32% {
    -webkit-transform: rotate(-12deg);
            transform: rotate(-12deg);
  }
  36% {
    -webkit-transform: rotate(12deg);
            transform: rotate(12deg);
  }
  40%, 100% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
}
@-webkit-keyframes fa-spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@keyframes fa-spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
.fa-rotate-90 {
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
}

.fa-rotate-180 {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

.fa-rotate-270 {
  -webkit-transform: rotate(270deg);
          transform: rotate(270deg);
}

.fa-flip-horizontal {
  -webkit-transform: scale(-1, 1);
          transform: scale(-1, 1);
}

.fa-flip-vertical {
  -webkit-transform: scale(1, -1);
          transform: scale(1, -1);
}

.fa-flip-both,
.fa-flip-horizontal.fa-flip-vertical {
  -webkit-transform: scale(-1, -1);
          transform: scale(-1, -1);
}

.fa-rotate-by {
  -webkit-transform: rotate(var(--fa-rotate-angle, none));
          transform: rotate(var(--fa-rotate-angle, none));
}

.fa-stack {
  display: inline-block;
  vertical-align: middle;
  height: 2em;
  position: relative;
  width: 2.5em;
}

.fa-stack-1x,
.fa-stack-2x {
  bottom: 0;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  z-index: var(--fa-stack-z-index, auto);
}

.svg-inline--fa.fa-stack-1x {
  height: 1em;
  width: 1.25em;
}
.svg-inline--fa.fa-stack-2x {
  height: 2em;
  width: 2.5em;
}

.fa-inverse {
  color: var(--fa-inverse, #fff);
}

.sr-only,
.fa-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only-focusable:not(:focus),
.fa-sr-only-focusable:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.svg-inline--fa .fa-primary {
  fill: var(--fa-primary-color, currentColor);
  opacity: var(--fa-primary-opacity, 1);
}

.svg-inline--fa .fa-secondary {
  fill: var(--fa-secondary-color, currentColor);
  opacity: var(--fa-secondary-opacity, 0.4);
}

.svg-inline--fa.fa-swap-opacity .fa-primary {
  opacity: var(--fa-secondary-opacity, 0.4);
}

.svg-inline--fa.fa-swap-opacity .fa-secondary {
  opacity: var(--fa-primary-opacity, 1);
}

.svg-inline--fa mask .fa-primary,
.svg-inline--fa mask .fa-secondary {
  fill: black;
}

.fad.fa-inverse,
.fa-duotone.fa-inverse {
  color: var(--fa-inverse, #fff);
}`;function Hp(){var n=Tp,r=Cp,o=ve.familyPrefix,i=ve.replacementClass,c=b2;if(o!==n||i!==r){var s=new RegExp("\\.".concat(n,"\\-"),"g"),d=new RegExp("\\--".concat(n,"\\-"),"g"),m=new RegExp("\\.".concat(r),"g");c=c.replace(s,".".concat(o,"-")).replace(d,"--".concat(o,"-")).replace(m,".".concat(i))}return c}var jh=!1;function Rs(){ve.autoAddCss&&!jh&&(m2(Hp()),jh=!0)}var y2={mixout:function(){return{dom:{css:Hp,insertCss:Rs}}},hooks:function(){return{beforeDOMElementCreation:function(){Rs()},beforeI2svg:function(){Rs()}}}},Hn=ga||{};Hn[Ln]||(Hn[Ln]={});Hn[Ln].styles||(Hn[Ln].styles={});Hn[Ln].hooks||(Hn[Ln].hooks={});Hn[Ln].shims||(Hn[Ln].shims=[]);var ln=Hn[Ln],$p=[],x2=function n(){Be.removeEventListener("DOMContentLoaded",n),Uo=1,$p.map(function(r){return r()})},Uo=!1;Yn&&(Uo=(Be.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Be.readyState),Uo||Be.addEventListener("DOMContentLoaded",x2));function S2(n){Yn&&(Uo?setTimeout(n,0):$p.push(n))}function si(n){var r=n.tag,o=n.attributes,i=o===void 0?{}:o,c=n.children,s=c===void 0?[]:c;return typeof n=="string"?Lp(n):"<".concat(r," ").concat(g2(i),">").concat(s.map(si).join(""),"</").concat(r,">")}function Nh(n,r,o){if(n&&n[r]&&n[r][o])return{prefix:r,iconName:o,icon:n[r][o]}}var Ds=function(r,o,i,c){var s=Object.keys(r),d=s.length,m=o,g,b,y;for(i===void 0?(g=1,y=r[s[0]]):(g=0,y=i);g<d;g++)b=s[g],y=m(y,r[b],b,r);return y};function O2(n){for(var r=[],o=0,i=n.length;o<i;){var c=n.charCodeAt(o++);if(c>=55296&&c<=56319&&o<i){var s=n.charCodeAt(o++);(s&64512)==56320?r.push(((c&1023)<<10)+(s&1023)+65536):(r.push(c),o--)}else r.push(c)}return r}function Fs(n){var r=O2(n);return r.length===1?r[0].toString(16):null}function _2(n,r){var o=n.length,i=n.charCodeAt(r),c;return i>=55296&&i<=56319&&o>r+1&&(c=n.charCodeAt(r+1),c>=56320&&c<=57343)?(i-55296)*1024+c-56320+65536:i}function Ah(n){return Object.keys(n).reduce(function(r,o){var i=n[o],c=!!i.icon;return c?r[i.iconName]=i.icon:r[o]=i,r},{})}function ef(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.skipHooks,c=i===void 0?!1:i,s=Ah(r);typeof ln.hooks.addPack=="function"&&!c?ln.hooks.addPack(n,Ah(r)):ln.styles[n]=se(se({},ln.styles[n]||{}),s),n==="fas"&&ef("fa",r)}var Zl=ln.styles,w2=ln.shims,E2=Object.values(Mp),Ff=null,Up={},Yp={},Bp={},Pp={},Xp={},j2=Object.keys(Zf);function N2(n){return~o2.indexOf(n)}function A2(n,r){var o=r.split("-"),i=o[0],c=o.slice(1).join("-");return i===n&&c!==""&&!N2(c)?c:null}var qp=function(){var r=function(s){return Ds(Zl,function(d,m,g){return d[g]=Ds(m,s,{}),d},{})};Up=r(function(c,s,d){if(s[3]&&(c[s[3]]=d),s[2]){var m=s[2].filter(function(g){return typeof g=="number"});m.forEach(function(g){c[g.toString(16)]=d})}return c}),Yp=r(function(c,s,d){if(c[d]=d,s[2]){var m=s[2].filter(function(g){return typeof g=="string"});m.forEach(function(g){c[g]=d})}return c}),Xp=r(function(c,s,d){var m=s[2];return c[d]=d,m.forEach(function(g){c[g]=d}),c});var o="far"in Zl||ve.autoFetchSvg,i=Ds(w2,function(c,s){var d=s[0],m=s[1],g=s[2];return m==="far"&&!o&&(m="fas"),typeof d=="string"&&(c.names[d]={prefix:m,iconName:g}),typeof d=="number"&&(c.unicodes[d.toString(16)]={prefix:m,iconName:g}),c},{names:{},unicodes:{}});Bp=i.names,Pp=i.unicodes,Ff=ru(ve.styleDefault)};d2(function(n){Ff=ru(n.styleDefault)});qp();function ed(n,r){return(Up[n]||{})[r]}function T2(n,r){return(Yp[n]||{})[r]}function Cr(n,r){return(Xp[n]||{})[r]}function Gp(n){return Bp[n]||{prefix:null,iconName:null}}function C2(n){var r=Pp[n],o=ed("fas",n);return r||(o?{prefix:"fas",iconName:o}:null)||{prefix:null,iconName:null}}function ha(){return Ff}var td=function(){return{prefix:null,iconName:null,rest:[]}};function ru(n){var r=Zf[n],o=$o[n]||$o[r],i=n in ln.styles?n:null;return o||i||null}function lu(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.skipLookups,i=o===void 0?!1:o,c=null,s=n.reduce(function(d,m){var g=A2(ve.familyPrefix,m);if(Zl[m]?(m=E2.includes(m)?t2[m]:m,c=m,d.prefix=m):j2.indexOf(m)>-1?(c=m,d.prefix=ru(m)):g?d.iconName=g:m!==ve.replacementClass&&d.rest.push(m),!i&&d.prefix&&d.iconName){var b=c==="fa"?Gp(d.iconName):{},y=Cr(d.prefix,d.iconName);b.prefix&&(c=null),d.iconName=b.iconName||y||d.iconName,d.prefix=b.prefix||d.prefix,d.prefix==="far"&&!Zl.far&&Zl.fas&&!ve.autoFetchSvg&&(d.prefix="fas")}return d},td());return(s.prefix==="fa"||c==="fa")&&(s.prefix=ha()||"fas"),s}var k2=function(){function n(){B1(this,n),this.definitions={}}return X1(n,[{key:"add",value:function(){for(var o=this,i=arguments.length,c=new Array(i),s=0;s<i;s++)c[s]=arguments[s];var d=c.reduce(this._pullDefinitions,{});Object.keys(d).forEach(function(m){o.definitions[m]=se(se({},o.definitions[m]||{}),d[m]),ef(m,d[m]);var g=Mp[m];g&&ef(g,d[m]),qp()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(o,i){var c=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(c).map(function(s){var d=c[s],m=d.prefix,g=d.iconName,b=d.icon,y=b[2];o[m]||(o[m]={}),y.length>0&&y.forEach(function(S){typeof S=="string"&&(o[m][S]=b)}),o[m][g]=b}),o}}]),n}(),Th=[],kr={},Dr={},M2=Object.keys(Dr);function R2(n,r){var o=r.mixoutsTo;return Th=n,kr={},Object.keys(Dr).forEach(function(i){M2.indexOf(i)===-1&&delete Dr[i]}),Th.forEach(function(i){var c=i.mixout?i.mixout():{};if(Object.keys(c).forEach(function(d){typeof c[d]=="function"&&(o[d]=c[d]),Ho(c[d])==="object"&&Object.keys(c[d]).forEach(function(m){o[d]||(o[d]={}),o[d][m]=c[d][m]})}),i.hooks){var s=i.hooks();Object.keys(s).forEach(function(d){kr[d]||(kr[d]=[]),kr[d].push(s[d])})}i.provides&&i.provides(Dr)}),o}function tf(n,r){for(var o=arguments.length,i=new Array(o>2?o-2:0),c=2;c<o;c++)i[c-2]=arguments[c];var s=kr[n]||[];return s.forEach(function(d){r=d.apply(null,[r].concat(i))}),r}function Ya(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var c=kr[n]||[];c.forEach(function(s){s.apply(null,o)})}function $n(){var n=arguments[0],r=Array.prototype.slice.call(arguments,1);return Dr[n]?Dr[n].apply(null,r):void 0}function nf(n){n.prefix==="fa"&&(n.prefix="fas");var r=n.iconName,o=n.prefix||ha();if(r)return r=Cr(o,r)||r,Nh(Kp.definitions,o,r)||Nh(ln.styles,o,r)}var Kp=new k2,D2=function(){ve.autoReplaceSvg=!1,ve.observeMutations=!1,Ya("noAuto")},z2={i2svg:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Yn?(Ya("beforeI2svg",r),$n("pseudoElements2svg",r),$n("i2svg",r)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=r.autoReplaceSvgRoot;ve.autoReplaceSvg===!1&&(ve.autoReplaceSvg=!0),ve.observeMutations=!0,S2(function(){H2({autoReplaceSvgRoot:o}),Ya("watch",r)})}},L2={icon:function(r){if(r===null)return null;if(Ho(r)==="object"&&r.prefix&&r.iconName)return{prefix:r.prefix,iconName:Cr(r.prefix,r.iconName)||r.iconName};if(Array.isArray(r)&&r.length===2){var o=r[1].indexOf("fa-")===0?r[1].slice(3):r[1],i=ru(r[0]);return{prefix:i,iconName:Cr(i,o)||o}}if(typeof r=="string"&&(r.indexOf("".concat(ve.familyPrefix,"-"))>-1||r.match(n2))){var c=lu(r.split(" "),{skipLookups:!0});return{prefix:c.prefix||ha(),iconName:Cr(c.prefix,c.iconName)||c.iconName}}if(typeof r=="string"){var s=ha();return{prefix:s,iconName:Cr(s,r)||r}}}},Yt={noAuto:D2,config:ve,dom:z2,parse:L2,library:Kp,findIconDefinition:nf,toHtml:si},H2=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=r.autoReplaceSvgRoot,i=o===void 0?Be:o;(Object.keys(ln.styles).length>0||ve.autoFetchSvg)&&Yn&&ve.autoReplaceSvg&&Yt.dom.i2svg({node:i})};function iu(n,r){return Object.defineProperty(n,"abstract",{get:r}),Object.defineProperty(n,"html",{get:function(){return n.abstract.map(function(i){return si(i)})}}),Object.defineProperty(n,"node",{get:function(){if(Yn){var i=Be.createElement("div");return i.innerHTML=n.html,i.children}}}),n}function $2(n){var r=n.children,o=n.main,i=n.mask,c=n.attributes,s=n.styles,d=n.transform;if(Jf(d)&&o.found&&!i.found){var m=o.width,g=o.height,b={x:m/g/2,y:.5};c.style=au(se(se({},s),{},{"transform-origin":"".concat(b.x+d.x/16,"em ").concat(b.y+d.y/16,"em")}))}return[{tag:"svg",attributes:c,children:r}]}function U2(n){var r=n.prefix,o=n.iconName,i=n.children,c=n.attributes,s=n.symbol,d=s===!0?"".concat(r,"-").concat(ve.familyPrefix,"-").concat(o):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:se(se({},c),{},{id:d}),children:i}]}]}function nd(n){var r=n.icons,o=r.main,i=r.mask,c=n.prefix,s=n.iconName,d=n.transform,m=n.symbol,g=n.title,b=n.maskId,y=n.titleId,S=n.extra,j=n.watchable,C=j===void 0?!1:j,$=i.found?i:o,B=$.width,R=$.height,P=c==="fak",w=[ve.replacementClass,s?"".concat(ve.familyPrefix,"-").concat(s):""].filter(function(Y){return S.classes.indexOf(Y)===-1}).filter(function(Y){return Y!==""||!!Y}).concat(S.classes).join(" "),_={children:[],attributes:se(se({},S.attributes),{},{"data-prefix":c,"data-icon":s,class:w,role:S.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(B," ").concat(R)})},M=P&&!~S.classes.indexOf("fa-fw")?{width:"".concat(B/R*16*.0625,"em")}:{};C&&(_.attributes[Ua]=""),g&&(_.children.push({tag:"title",attributes:{id:_.attributes["aria-labelledby"]||"title-".concat(y||Fl())},children:[g]}),delete _.attributes.title);var A=se(se({},_),{},{prefix:c,iconName:s,main:o,mask:i,maskId:b,transform:d,symbol:m,styles:se(se({},M),S.styles)}),N=i.found&&o.found?$n("generateAbstractMask",A)||{children:[],attributes:{}}:$n("generateAbstractIcon",A)||{children:[],attributes:{}},X=N.children,V=N.attributes;return A.children=X,A.attributes=V,m?U2(A):$2(A)}function Ch(n){var r=n.content,o=n.width,i=n.height,c=n.transform,s=n.title,d=n.extra,m=n.watchable,g=m===void 0?!1:m,b=se(se(se({},d.attributes),s?{title:s}:{}),{},{class:d.classes.join(" ")});g&&(b[Ua]="");var y=se({},d.styles);Jf(c)&&(y.transform=p2({transform:c,width:o,height:i}),y["-webkit-transform"]=y.transform);var S=au(y);S.length>0&&(b.style=S);var j=[];return j.push({tag:"span",attributes:b,children:[r]}),s&&j.push({tag:"span",attributes:{class:"sr-only"},children:[s]}),j}function Y2(n){var r=n.content,o=n.title,i=n.extra,c=se(se(se({},i.attributes),o?{title:o}:{}),{},{class:i.classes.join(" ")}),s=au(i.styles);s.length>0&&(c.style=s);var d=[];return d.push({tag:"span",attributes:c,children:[r]}),o&&d.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),d}var zs=ln.styles;function af(n){var r=n[0],o=n[1],i=n.slice(4),c=Kf(i,1),s=c[0],d=null;return Array.isArray(s)?d={tag:"g",attributes:{class:"".concat(ve.familyPrefix,"-").concat(Ha.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ve.familyPrefix,"-").concat(Ha.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(ve.familyPrefix,"-").concat(Ha.PRIMARY),fill:"currentColor",d:s[1]}}]}:d={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:r,height:o,icon:d}}var B2={found:!1,width:512,height:512};function P2(n,r){!kp&&!ve.showMissingIcons&&n&&console.error('Icon with name "'.concat(n,'" and prefix "').concat(r,'" is missing.'))}function rf(n,r){var o=r;return r==="fa"&&ve.styleDefault!==null&&(r=ha()),new Promise(function(i,c){if($n("missingIconAbstract"),o==="fa"){var s=Gp(n)||{};n=s.iconName||n,r=s.prefix||r}if(n&&r&&zs[r]&&zs[r][n]){var d=zs[r][n];return i(af(d))}P2(n,r),i(se(se({},B2),{},{icon:ve.showMissingIcons&&n?$n("missingIconAbstract")||{}:{}}))})}var kh=function(){},lf=ve.measurePerformance&&To&&To.mark&&To.measure?To:{mark:kh,measure:kh},Vl='FA "6.0.0"',X2=function(r){return lf.mark("".concat(Vl," ").concat(r," begins")),function(){return Vp(r)}},Vp=function(r){lf.mark("".concat(Vl," ").concat(r," ends")),lf.measure("".concat(Vl," ").concat(r),"".concat(Vl," ").concat(r," begins"),"".concat(Vl," ").concat(r," ends"))},ad={begin:X2,end:Vp},Do=function(){};function Mh(n){var r=n.getAttribute?n.getAttribute(Ua):null;return typeof r=="string"}function q2(n){var r=n.getAttribute?n.getAttribute(Qf):null,o=n.getAttribute?n.getAttribute(Wf):null;return r&&o}function G2(n){return n&&n.classList&&n.classList.contains&&n.classList.contains(ve.replacementClass)}function K2(){if(ve.autoReplaceSvg===!0)return zo.replace;var n=zo[ve.autoReplaceSvg];return n||zo.replace}function V2(n){return Be.createElementNS("http://www.w3.org/2000/svg",n)}function Q2(n){return Be.createElement(n)}function Qp(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.ceFn,i=o===void 0?n.tag==="svg"?V2:Q2:o;if(typeof n=="string")return Be.createTextNode(n);var c=i(n.tag);Object.keys(n.attributes||[]).forEach(function(d){c.setAttribute(d,n.attributes[d])});var s=n.children||[];return s.forEach(function(d){c.appendChild(Qp(d,{ceFn:i}))}),c}function W2(n){var r=" ".concat(n.outerHTML," ");return r="".concat(r,"Font Awesome fontawesome.com "),r}var zo={replace:function(r){var o=r[0];if(o.parentNode)if(r[1].forEach(function(c){o.parentNode.insertBefore(Qp(c),o)}),o.getAttribute(Ua)===null&&ve.keepOriginalSource){var i=Be.createComment(W2(o));o.parentNode.replaceChild(i,o)}else o.remove()},nest:function(r){var o=r[0],i=r[1];if(~If(o).indexOf(ve.replacementClass))return zo.replace(r);var c=new RegExp("".concat(ve.familyPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var s=i[0].attributes.class.split(" ").reduce(function(m,g){return g===ve.replacementClass||g.match(c)?m.toSvg.push(g):m.toNode.push(g),m},{toNode:[],toSvg:[]});i[0].attributes.class=s.toSvg.join(" "),s.toNode.length===0?o.removeAttribute("class"):o.setAttribute("class",s.toNode.join(" "))}var d=i.map(function(m){return si(m)}).join(`
`);o.setAttribute(Ua,""),o.innerHTML=d}};function Rh(n){n()}function Wp(n,r){var o=typeof r=="function"?r:Do;if(n.length===0)o();else{var i=Rh;ve.mutateApproach===F1&&(i=ga.requestAnimationFrame||Rh),i(function(){var c=K2(),s=ad.begin("mutate");n.map(c),s(),o()})}}var rd=!1;function Zp(){rd=!0}function of(){rd=!1}var Yo=null;function Dh(n){if(wh&&ve.observeMutations){var r=n.treeCallback,o=r===void 0?Do:r,i=n.nodeCallback,c=i===void 0?Do:i,s=n.pseudoElementsCallback,d=s===void 0?Do:s,m=n.observeMutationsRoot,g=m===void 0?Be:m;Yo=new wh(function(b){if(!rd){var y=ha();Pr(b).forEach(function(S){if(S.type==="childList"&&S.addedNodes.length>0&&!Mh(S.addedNodes[0])&&(ve.searchPseudoElements&&d(S.target),o(S.target)),S.type==="attributes"&&S.target.parentNode&&ve.searchPseudoElements&&d(S.target.parentNode),S.type==="attributes"&&Mh(S.target)&&~i2.indexOf(S.attributeName))if(S.attributeName==="class"&&q2(S.target)){var j=lu(If(S.target)),C=j.prefix,$=j.iconName;S.target.setAttribute(Qf,C||y),$&&S.target.setAttribute(Wf,$)}else G2(S.target)&&c(S.target)})}}),Yn&&Yo.observe(g,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Z2(){Yo&&Yo.disconnect()}function I2(n){var r=n.getAttribute("style"),o=[];return r&&(o=r.split(";").reduce(function(i,c){var s=c.split(":"),d=s[0],m=s.slice(1);return d&&m.length>0&&(i[d]=m.join(":").trim()),i},{})),o}function J2(n){var r=n.getAttribute("data-prefix"),o=n.getAttribute("data-icon"),i=n.innerText!==void 0?n.innerText.trim():"",c=lu(If(n));return c.prefix||(c.prefix=ha()),r&&o&&(c.prefix=r,c.iconName=o),c.iconName&&c.prefix||c.prefix&&i.length>0&&(c.iconName=T2(c.prefix,n.innerText)||ed(c.prefix,Fs(n.innerText))),c}function F2(n){var r=Pr(n.attributes).reduce(function(c,s){return c.name!=="class"&&c.name!=="style"&&(c[s.name]=s.value),c},{}),o=n.getAttribute("title"),i=n.getAttribute("data-fa-title-id");return ve.autoA11y&&(o?r["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(i||Fl()):(r["aria-hidden"]="true",r.focusable="false")),r}function ex(){return{iconName:null,title:null,titleId:null,prefix:null,transform:mn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function zh(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},o=J2(n),i=o.iconName,c=o.prefix,s=o.rest,d=F2(n),m=tf("parseNodeAttributes",{},n),g=r.styleParser?I2(n):[];return se({iconName:i,title:n.getAttribute("title"),titleId:n.getAttribute("data-fa-title-id"),prefix:c,transform:mn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:g,attributes:d}},m)}var tx=ln.styles;function Ip(n){var r=ve.autoReplaceSvg==="nest"?zh(n,{styleParser:!1}):zh(n);return~r.extra.classes.indexOf(Rp)?$n("generateLayersText",n,r):$n("generateSvgReplacementMutation",n,r)}function Lh(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Yn)return Promise.resolve();var o=Be.documentElement.classList,i=function(S){return o.add("".concat(Eh,"-").concat(S))},c=function(S){return o.remove("".concat(Eh,"-").concat(S))},s=ve.autoFetchSvg?Object.keys(Zf):Object.keys(tx),d=[".".concat(Rp,":not([").concat(Ua,"])")].concat(s.map(function(y){return".".concat(y,":not([").concat(Ua,"])")})).join(", ");if(d.length===0)return Promise.resolve();var m=[];try{m=Pr(n.querySelectorAll(d))}catch{}if(m.length>0)i("pending"),c("complete");else return Promise.resolve();var g=ad.begin("onTree"),b=m.reduce(function(y,S){try{var j=Ip(S);j&&y.push(j)}catch(C){kp||C.name==="MissingIcon"&&console.error(C)}return y},[]);return new Promise(function(y,S){Promise.all(b).then(function(j){Wp(j,function(){i("active"),i("complete"),c("pending"),typeof r=="function"&&r(),g(),y()})}).catch(function(j){g(),S(j)})})}function nx(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ip(n).then(function(o){o&&Wp([o],r)})}function ax(n){return function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(r||{}).icon?r:nf(r||{}),c=o.mask;return c&&(c=(c||{}).icon?c:nf(c||{})),n(i,se(se({},o),{},{mask:c}))}}var rx=function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=o.transform,c=i===void 0?mn:i,s=o.symbol,d=s===void 0?!1:s,m=o.mask,g=m===void 0?null:m,b=o.maskId,y=b===void 0?null:b,S=o.title,j=S===void 0?null:S,C=o.titleId,$=C===void 0?null:C,B=o.classes,R=B===void 0?[]:B,P=o.attributes,w=P===void 0?{}:P,_=o.styles,M=_===void 0?{}:_;if(r){var A=r.prefix,N=r.iconName,X=r.icon;return iu(se({type:"icon"},r),function(){return Ya("beforeDOMElementCreation",{iconDefinition:r,params:o}),ve.autoA11y&&(j?w["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat($||Fl()):(w["aria-hidden"]="true",w.focusable="false")),nd({icons:{main:af(X),mask:g?af(g.icon):{found:!1,width:null,height:null,icon:{}}},prefix:A,iconName:N,transform:se(se({},mn),c),symbol:d,title:j,maskId:y,titleId:$,extra:{attributes:w,styles:M,classes:R}})})}},lx={mixout:function(){return{icon:ax(rx)}},hooks:function(){return{mutationObserverCallbacks:function(o){return o.treeCallback=Lh,o.nodeCallback=nx,o}}},provides:function(r){r.i2svg=function(o){var i=o.node,c=i===void 0?Be:i,s=o.callback,d=s===void 0?function(){}:s;return Lh(c,d)},r.generateSvgReplacementMutation=function(o,i){var c=i.iconName,s=i.title,d=i.titleId,m=i.prefix,g=i.transform,b=i.symbol,y=i.mask,S=i.maskId,j=i.extra;return new Promise(function(C,$){Promise.all([rf(c,m),y.iconName?rf(y.iconName,y.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(B){var R=Kf(B,2),P=R[0],w=R[1];C([o,nd({icons:{main:P,mask:w},prefix:m,iconName:c,transform:g,symbol:b,maskId:S,title:s,titleId:d,extra:j,watchable:!0})])}).catch($)})},r.generateAbstractIcon=function(o){var i=o.children,c=o.attributes,s=o.main,d=o.transform,m=o.styles,g=au(m);g.length>0&&(c.style=g);var b;return Jf(d)&&(b=$n("generateAbstractTransformGrouping",{main:s,transform:d,containerWidth:s.width,iconWidth:s.width})),i.push(b||s.icon),{children:i,attributes:c}}}},ix={mixout:function(){return{layer:function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=i.classes,s=c===void 0?[]:c;return iu({type:"layer"},function(){Ya("beforeDOMElementCreation",{assembler:o,params:i});var d=[];return o(function(m){Array.isArray(m)?m.map(function(g){d=d.concat(g.abstract)}):d=d.concat(m.abstract)}),[{tag:"span",attributes:{class:["".concat(ve.familyPrefix,"-layers")].concat(nu(s)).join(" ")},children:d}]})}}}},ox={mixout:function(){return{counter:function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=i.title,s=c===void 0?null:c,d=i.classes,m=d===void 0?[]:d,g=i.attributes,b=g===void 0?{}:g,y=i.styles,S=y===void 0?{}:y;return iu({type:"counter",content:o},function(){return Ya("beforeDOMElementCreation",{content:o,params:i}),Y2({content:o.toString(),title:s,extra:{attributes:b,styles:S,classes:["".concat(ve.familyPrefix,"-layers-counter")].concat(nu(m))}})})}}}},ux={mixout:function(){return{text:function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=i.transform,s=c===void 0?mn:c,d=i.title,m=d===void 0?null:d,g=i.classes,b=g===void 0?[]:g,y=i.attributes,S=y===void 0?{}:y,j=i.styles,C=j===void 0?{}:j;return iu({type:"text",content:o},function(){return Ya("beforeDOMElementCreation",{content:o,params:i}),Ch({content:o,transform:se(se({},mn),s),title:m,extra:{attributes:S,styles:C,classes:["".concat(ve.familyPrefix,"-layers-text")].concat(nu(b))}})})}}},provides:function(r){r.generateLayersText=function(o,i){var c=i.title,s=i.transform,d=i.extra,m=null,g=null;if(Ap){var b=parseInt(getComputedStyle(o).fontSize,10),y=o.getBoundingClientRect();m=y.width/b,g=y.height/b}return ve.autoA11y&&!c&&(d.attributes["aria-hidden"]="true"),Promise.resolve([o,Ch({content:o.innerHTML,width:m,height:g,transform:s,title:c,extra:d,watchable:!0})])}}},cx=new RegExp('"',"ug"),Hh=[1105920,1112319];function sx(n){var r=n.replace(cx,""),o=_2(r,0),i=o>=Hh[0]&&o<=Hh[1],c=r.length===2?r[0]===r[1]:!1;return{value:Fs(c?r[0]:r),isSecondary:i||c}}function $h(n,r){var o="".concat(J1).concat(r.replace(":","-"));return new Promise(function(i,c){if(n.getAttribute(o)!==null)return i();var s=Pr(n.children),d=s.filter(function(N){return N.getAttribute(Js)===r})[0],m=ga.getComputedStyle(n,r),g=m.getPropertyValue("font-family").match(a2),b=m.getPropertyValue("font-weight"),y=m.getPropertyValue("content");if(d&&!g)return n.removeChild(d),i();if(g&&y!=="none"&&y!==""){var S=m.getPropertyValue("content"),j=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(g[2])?$o[g[2].toLowerCase()]:r2[b],C=sx(S),$=C.value,B=C.isSecondary,R=g[0].startsWith("FontAwesome"),P=ed(j,$),w=P;if(R){var _=C2($);_.iconName&&_.prefix&&(P=_.iconName,j=_.prefix)}if(P&&!B&&(!d||d.getAttribute(Qf)!==j||d.getAttribute(Wf)!==w)){n.setAttribute(o,w),d&&n.removeChild(d);var M=ex(),A=M.extra;A.attributes[Js]=r,rf(P,j).then(function(N){var X=nd(se(se({},M),{},{icons:{main:N,mask:td()},prefix:j,iconName:w,extra:A,watchable:!0})),V=Be.createElement("svg");r==="::before"?n.insertBefore(V,n.firstChild):n.appendChild(V),V.outerHTML=X.map(function(Y){return si(Y)}).join(`
`),n.removeAttribute(o),i()}).catch(c)}else i()}else i()})}function fx(n){return Promise.all([$h(n,"::before"),$h(n,"::after")])}function dx(n){return n.parentNode!==document.head&&!~e2.indexOf(n.tagName.toUpperCase())&&!n.getAttribute(Js)&&(!n.parentNode||n.parentNode.tagName!=="svg")}function Uh(n){if(Yn)return new Promise(function(r,o){var i=Pr(n.querySelectorAll("*")).filter(dx).map(fx),c=ad.begin("searchPseudoElements");Zp(),Promise.all(i).then(function(){c(),of(),r()}).catch(function(){c(),of(),o()})})}var mx={hooks:function(){return{mutationObserverCallbacks:function(o){return o.pseudoElementsCallback=Uh,o}}},provides:function(r){r.pseudoElements2svg=function(o){var i=o.node,c=i===void 0?Be:i;ve.searchPseudoElements&&Uh(c)}}},Yh=!1,vx={mixout:function(){return{dom:{unwatch:function(){Zp(),Yh=!0}}}},hooks:function(){return{bootstrap:function(){Dh(tf("mutationObserverCallbacks",{}))},noAuto:function(){Z2()},watch:function(o){var i=o.observeMutationsRoot;Yh?of():Dh(tf("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},Bh=function(r){var o={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return r.toLowerCase().split(" ").reduce(function(i,c){var s=c.toLowerCase().split("-"),d=s[0],m=s.slice(1).join("-");if(d&&m==="h")return i.flipX=!0,i;if(d&&m==="v")return i.flipY=!0,i;if(m=parseFloat(m),isNaN(m))return i;switch(d){case"grow":i.size=i.size+m;break;case"shrink":i.size=i.size-m;break;case"left":i.x=i.x-m;break;case"right":i.x=i.x+m;break;case"up":i.y=i.y-m;break;case"down":i.y=i.y+m;break;case"rotate":i.rotate=i.rotate+m;break}return i},o)},gx={mixout:function(){return{parse:{transform:function(o){return Bh(o)}}}},hooks:function(){return{parseNodeAttributes:function(o,i){var c=i.getAttribute("data-fa-transform");return c&&(o.transform=Bh(c)),o}}},provides:function(r){r.generateAbstractTransformGrouping=function(o){var i=o.main,c=o.transform,s=o.containerWidth,d=o.iconWidth,m={transform:"translate(".concat(s/2," 256)")},g="translate(".concat(c.x*32,", ").concat(c.y*32,") "),b="scale(".concat(c.size/16*(c.flipX?-1:1),", ").concat(c.size/16*(c.flipY?-1:1),") "),y="rotate(".concat(c.rotate," 0 0)"),S={transform:"".concat(g," ").concat(b," ").concat(y)},j={transform:"translate(".concat(d/2*-1," -256)")},C={outer:m,inner:S,path:j};return{tag:"g",attributes:se({},C.outer),children:[{tag:"g",attributes:se({},C.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:se(se({},i.icon.attributes),C.path)}]}]}}}},Ls={x:0,y:0,width:"100%",height:"100%"};function Ph(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.attributes&&(n.attributes.fill||r)&&(n.attributes.fill="black"),n}function hx(n){return n.tag==="g"?n.children:[n]}var px={hooks:function(){return{parseNodeAttributes:function(o,i){var c=i.getAttribute("data-fa-mask"),s=c?lu(c.split(" ").map(function(d){return d.trim()})):td();return s.prefix||(s.prefix=ha()),o.mask=s,o.maskId=i.getAttribute("data-fa-mask-id"),o}}},provides:function(r){r.generateAbstractMask=function(o){var i=o.children,c=o.attributes,s=o.main,d=o.mask,m=o.maskId,g=o.transform,b=s.width,y=s.icon,S=d.width,j=d.icon,C=h2({transform:g,containerWidth:S,iconWidth:b}),$={tag:"rect",attributes:se(se({},Ls),{},{fill:"white"})},B=y.children?{children:y.children.map(Ph)}:{},R={tag:"g",attributes:se({},C.inner),children:[Ph(se({tag:y.tag,attributes:se(se({},y.attributes),C.path)},B))]},P={tag:"g",attributes:se({},C.outer),children:[R]},w="mask-".concat(m||Fl()),_="clip-".concat(m||Fl()),M={tag:"mask",attributes:se(se({},Ls),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[$,P]},A={tag:"defs",children:[{tag:"clipPath",attributes:{id:_},children:hx(j)},M]};return i.push(A,{tag:"rect",attributes:se({fill:"currentColor","clip-path":"url(#".concat(_,")"),mask:"url(#".concat(w,")")},Ls)}),{children:i,attributes:c}}}},bx={provides:function(r){var o=!1;ga.matchMedia&&(o=ga.matchMedia("(prefers-reduced-motion: reduce)").matches),r.missingIconAbstract=function(){var i=[],c={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:se(se({},c),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var d=se(se({},s),{},{attributeName:"opacity"}),m={tag:"circle",attributes:se(se({},c),{},{cx:"256",cy:"364",r:"28"}),children:[]};return o||m.children.push({tag:"animate",attributes:se(se({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:se(se({},d),{},{values:"1;0;1;1;0;1;"})}),i.push(m),i.push({tag:"path",attributes:se(se({},c),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:o?[]:[{tag:"animate",attributes:se(se({},d),{},{values:"1;0;0;0;0;1;"})}]}),o||i.push({tag:"path",attributes:se(se({},c),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:se(se({},d),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},yx={hooks:function(){return{parseNodeAttributes:function(o,i){var c=i.getAttribute("data-fa-symbol"),s=c===null?!1:c===""?!0:c;return o.symbol=s,o}}}},xx=[y2,lx,ix,ox,ux,mx,vx,gx,px,bx,yx];R2(xx,{mixoutsTo:Yt});Yt.noAuto;Yt.config;Yt.library;Yt.dom;var uf=Yt.parse;Yt.findIconDefinition;Yt.toHtml;var Sx=Yt.icon;Yt.layer;Yt.text;Yt.counter;function Xh(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);r&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),o.push.apply(o,i)}return o}function da(n){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Xh(Object(o),!0).forEach(function(i){Mr(n,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):Xh(Object(o)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(o,i))})}return n}function Bo(n){"@babel/helpers - typeof";return Bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Bo(n)}function Mr(n,r,o){return r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function Ox(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}function Jp(n,r){if(n==null)return{};var o=Ox(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function cf(n){return _x(n)||wx(n)||Ex(n)||jx()}function _x(n){if(Array.isArray(n))return sf(n)}function wx(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Ex(n,r){if(n){if(typeof n=="string")return sf(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return sf(n,r)}}function sf(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,i=new Array(r);o<r;o++)i[o]=n[o];return i}function jx(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nx(n){var r,o=n.beat,i=n.fade,c=n.beatFade,s=n.bounce,d=n.shake,m=n.flash,g=n.spin,b=n.spinPulse,y=n.spinReverse,S=n.pulse,j=n.fixedWidth,C=n.inverse,$=n.border,B=n.listItem,R=n.flip,P=n.size,w=n.rotation,_=n.pull,M=(r={"fa-beat":o,"fa-fade":i,"fa-beat-fade":c,"fa-bounce":s,"fa-shake":d,"fa-flash":m,"fa-spin":g,"fa-spin-reverse":y,"fa-spin-pulse":b,"fa-pulse":S,"fa-fw":j,"fa-inverse":C,"fa-border":$,"fa-li":B,"fa-flip":R===!0,"fa-flip-horizontal":R==="horizontal"||R==="both","fa-flip-vertical":R==="vertical"||R==="both"},Mr(r,"fa-".concat(P),typeof P<"u"&&P!==null),Mr(r,"fa-rotate-".concat(w),typeof w<"u"&&w!==null&&w!==0),Mr(r,"fa-pull-".concat(_),typeof _<"u"&&_!==null),Mr(r,"fa-swap-opacity",n.swapOpacity),r);return Object.keys(M).map(function(A){return M[A]?A:null}).filter(function(A){return A})}function Ax(n){return n=n-0,n===n}function Fp(n){return Ax(n)?n:(n=n.replace(/[\-_\s]+(.)?/g,function(r,o){return o?o.toUpperCase():""}),n.substr(0,1).toLowerCase()+n.substr(1))}var Tx=["style"];function Cx(n){return n.charAt(0).toUpperCase()+n.slice(1)}function kx(n){return n.split(";").map(function(r){return r.trim()}).filter(function(r){return r}).reduce(function(r,o){var i=o.indexOf(":"),c=Fp(o.slice(0,i)),s=o.slice(i+1).trim();return c.startsWith("webkit")?r[Cx(c)]=s:r[c]=s,r},{})}function eb(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof r=="string")return r;var i=(r.children||[]).map(function(g){return eb(n,g)}),c=Object.keys(r.attributes||{}).reduce(function(g,b){var y=r.attributes[b];switch(b){case"class":g.attrs.className=y,delete r.attributes.class;break;case"style":g.attrs.style=kx(y);break;default:b.indexOf("aria-")===0||b.indexOf("data-")===0?g.attrs[b.toLowerCase()]=y:g.attrs[Fp(b)]=y}return g},{attrs:{}}),s=o.style,d=s===void 0?{}:s,m=Jp(o,Tx);return c.attrs.style=da(da({},c.attrs.style),d),n.apply(void 0,[r.tag,da(da({},c.attrs),m)].concat(cf(i)))}var tb=!1;try{tb=!0}catch{}function Mx(){if(!tb&&console&&typeof console.error=="function"){var n;(n=console).error.apply(n,arguments)}}function qh(n){if(n&&Bo(n)==="object"&&n.prefix&&n.iconName&&n.icon)return n;if(uf.icon)return uf.icon(n);if(n===null)return null;if(n&&Bo(n)==="object"&&n.prefix&&n.iconName)return n;if(Array.isArray(n)&&n.length===2)return{prefix:n[0],iconName:n[1]};if(typeof n=="string")return{prefix:"fas",iconName:n}}function Hs(n,r){return Array.isArray(r)&&r.length>0||!Array.isArray(r)&&r?Mr({},n,r):{}}var Rx=["forwardedRef"];function gn(n){var r=n.forwardedRef,o=Jp(n,Rx),i=o.icon,c=o.mask,s=o.symbol,d=o.className,m=o.title,g=o.titleId,b=o.maskId,y=qh(i),S=Hs("classes",[].concat(cf(Nx(o)),cf(d.split(" ")))),j=Hs("transform",typeof o.transform=="string"?uf.transform(o.transform):o.transform),C=Hs("mask",qh(c)),$=Sx(y,da(da(da(da({},S),j),C),{},{symbol:s,title:m,titleId:g,maskId:b}));if(!$)return Mx("Could not find icon",y),null;var B=$.abstract,R={ref:r};return Object.keys(o).forEach(function(P){gn.defaultProps.hasOwnProperty(P)||(R[P]=o[P])}),Dx(B[0],R)}gn.displayName="FontAwesomeIcon";gn.propTypes={beat:oe.bool,border:oe.bool,beatFade:oe.bool,bounce:oe.bool,className:oe.string,fade:oe.bool,flash:oe.bool,mask:oe.oneOfType([oe.object,oe.array,oe.string]),maskId:oe.string,fixedWidth:oe.bool,inverse:oe.bool,flip:oe.oneOf([!0,!1,"horizontal","vertical","both"]),icon:oe.oneOfType([oe.object,oe.array,oe.string]),listItem:oe.bool,pull:oe.oneOf(["right","left"]),pulse:oe.bool,rotation:oe.oneOf([0,90,180,270]),shake:oe.bool,size:oe.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:oe.bool,spinPulse:oe.bool,spinReverse:oe.bool,symbol:oe.oneOfType([oe.bool,oe.string]),title:oe.string,titleId:oe.string,transform:oe.oneOfType([oe.string,oe.object]),swapOpacity:oe.bool};gn.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var Dx=eb.bind(null,G.createElement),$s={},Gh;function zx(){return Gh||(Gh=1,function(n){Object.defineProperty(n,"__esModule",{value:!0});var r="fas",o="arrow-up",i=448,c=512,s=[],d="f062",m="M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z";n.definition={prefix:r,iconName:o,icon:[i,c,s,d,m]},n.faArrowUp=n.definition,n.prefix=r,n.iconName=o,n.width=i,n.height=c,n.ligatures=s,n.unicode=d,n.svgPathData=m}($s)),$s}var Lx=zx(),Us={},Kh;function Hx(){return Kh||(Kh=1,function(n){Object.defineProperty(n,"__esModule",{value:!0});var r="fas",o="arrow-right",i=448,c=512,s=[],d="f061",m="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z";n.definition={prefix:r,iconName:o,icon:[i,c,s,d,m]},n.faArrowRight=n.definition,n.prefix=r,n.iconName=o,n.width=i,n.height=c,n.ligatures=s,n.unicode=d,n.svgPathData=m}(Us)),Us}var $x=Hx(),Ys={},Vh;function Ux(){return Vh||(Vh=1,function(n){Object.defineProperty(n,"__esModule",{value:!0});var r="fas",o="arrow-down",i=448,c=512,s=[],d="f063",m="M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z";n.definition={prefix:r,iconName:o,icon:[i,c,s,d,m]},n.faArrowDown=n.definition,n.prefix=r,n.iconName=o,n.width=i,n.height=c,n.ligatures=s,n.unicode=d,n.svgPathData=m}(Ys)),Ys}var Yx=Ux(),Bs={},Qh;function Bx(){return Qh||(Qh=1,function(n){Object.defineProperty(n,"__esModule",{value:!0});var r="fas",o="arrow-left",i=448,c=512,s=[],d="f060",m="M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z";n.definition={prefix:r,iconName:o,icon:[i,c,s,d,m]},n.faArrowLeft=n.definition,n.prefix=r,n.iconName=o,n.width=i,n.height=c,n.ligatures=s,n.unicode=d,n.svgPathData=m}(Bs)),Bs}var Px=Bx(),Xx=["className","direction","children"];function ff(){return ff=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},ff.apply(this,arguments)}function qx(n,r){if(n==null)return{};var o=Gx(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function Gx(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var Kx=function(r){var o=r.className,i=o===void 0?"":o,c=r.direction,s=c===void 0?"right":c,d=r.children,m=qx(r,Xx),g="".concat(be,"-button--arrow"),b=function(){if(s==="up")return Lx.faArrowUp;if(s==="right")return $x.faArrowRight;if(s==="down")return Yx.faArrowDown;if(s==="left")return Px.faArrowLeft}();return G.createElement(Gf,ff({},m,{className:Ce(g,i),icon:G.createElement(gn,{icon:b})}),d)},Ps={},Wh;function Vx(){return Wh||(Wh=1,function(n){Object.defineProperty(n,"__esModule",{value:!0});var r="fas",o="ellipsis-v",i=192,c=512,s=[],d="f142",m="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z";n.definition={prefix:r,iconName:o,icon:[i,c,s,d,m]},n.faEllipsisV=n.definition,n.prefix=r,n.iconName=o,n.width=i,n.height=c,n.ligatures=s,n.unicode=d,n.svgPathData=m}(Ps)),Ps}var Qx=Vx(),Xs={},Zh;function Wx(){return Zh||(Zh=1,function(n){Object.defineProperty(n,"__esModule",{value:!0});var r="fas",o="paper-plane",i=512,c=512,s=[],d="f1d8",m="M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z";n.definition={prefix:r,iconName:o,icon:[i,c,s,d,m]},n.faPaperPlane=n.definition,n.prefix=r,n.iconName=o,n.width=i,n.height=c,n.ligatures=s,n.unicode=d,n.svgPathData=m}(Xs)),Xs}var Zx=Wx(),Ix=["className","children"];function df(){return df=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},df.apply(this,arguments)}function Jx(n,r){if(n==null)return{};var o=Fx(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function Fx(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var eS=function(r){var o=r.className,i=o===void 0?"":o,c=r.children,s=Jx(r,Ix),d="".concat(be,"-button--send");return G.createElement(Gf,df({},s,{className:Ce(d,i),icon:G.createElement(gn,{icon:Zx.faPaperPlane})}),c)},qs={},Ih;function tS(){return Ih||(Ih=1,function(n){Object.defineProperty(n,"__esModule",{value:!0});var r="fas",o="paperclip",i=448,c=512,s=[],d="f0c6",m="M43.246 466.142c-58.43-60.289-57.341-157.511 1.386-217.581L254.392 34c44.316-45.332 116.351-45.336 160.671 0 43.89 44.894 43.943 117.329 0 162.276L232.214 383.128c-29.855 30.537-78.633 30.111-107.982-.998-28.275-29.97-27.368-77.473 1.452-106.953l143.743-146.835c6.182-6.314 16.312-6.422 22.626-.241l22.861 22.379c6.315 6.182 6.422 16.312.241 22.626L171.427 319.927c-4.932 5.045-5.236 13.428-.648 18.292 4.372 4.634 11.245 4.711 15.688.165l182.849-186.851c19.613-20.062 19.613-52.725-.011-72.798-19.189-19.627-49.957-19.637-69.154 0L90.39 293.295c-34.763 35.56-35.299 93.12-1.191 128.313 34.01 35.093 88.985 35.137 123.058.286l172.06-175.999c6.177-6.319 16.307-6.433 22.626-.256l22.877 22.364c6.319 6.177 6.434 16.307.256 22.626l-172.06 175.998c-59.576 60.938-155.943 60.216-214.77-.485z";n.definition={prefix:r,iconName:o,icon:[i,c,s,d,m]},n.faPaperclip=n.definition,n.prefix=r,n.iconName=o,n.width=i,n.height=c,n.ligatures=s,n.unicode=d,n.svgPathData=m}(qs)),qs}var nS=tS(),aS=["className","children"];function mf(){return mf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},mf.apply(this,arguments)}function rS(n,r){if(n==null)return{};var o=lS(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function lS(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var iS=function(r){var o=r.className,i=o===void 0?"":o,c=r.children,s=rS(r,aS),d="".concat(be,"-button--attachment");return G.createElement(Gf,mf({},s,{className:Ce(d,i),icon:G.createElement(gn,{icon:nS.faPaperclip})}),c)},oS=["onClick","children","className"];function vf(){return vf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},vf.apply(this,arguments)}function uS(n,r){if(n==null)return{};var o=cS(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function cS(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var ld=function(r){var o=r.onClick,i=o===void 0?function(){}:o,c=r.children,s=c===void 0?void 0:c,d=r.className,m=uS(r,oS),g="".concat(be,"-conversation-header__back");return G.createElement("div",vf({},m,{className:Ce(g,d)}),typeof s<"u"?s:G.createElement(Kx,{direction:"left",onClick:i}))};ld.displayName="ConversationHeader.Back";var sS=["children","className"];function gf(){return gf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},gf.apply(this,arguments)}function fS(n,r){if(n==null)return{};var o=dS(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function dS(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var id=function(r){var o=r.children,i=o===void 0?void 0:o,c=r.className,s=fS(r,sS),d="".concat(be,"-conversation-header__actions");return G.createElement("section",gf({},s,{className:Ce(d,c)}),i)};id.displayName="ConversationHeader.Actions";var mS=["userName","info","children","className"];function hf(){return hf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},hf.apply(this,arguments)}function vS(n,r){if(n==null)return{};var o=gS(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function gS(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var od=function(r){var o=r.userName,i=o===void 0?"":o,c=r.info,s=c===void 0?"":c,d=r.children,m=d===void 0?void 0:d,g=r.className,b=vS(r,mS),y="".concat(be,"-conversation-header__content");return G.createElement("div",hf({},b,{className:Ce(y,g)}),typeof m<"u"?m:G.createElement(G.Fragment,null,G.createElement("div",{className:"".concat(be,"-conversation-header__user-name")},i),G.createElement("div",{className:"".concat(be,"-conversation-header__info")},s)))};od.displayName="ConversationHeader.Content";var hS=["children","className"];function pf(){return pf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},pf.apply(this,arguments)}function pS(n,r){return SS(n)||xS(n,r)||yS(n,r)||bS()}function bS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yS(n,r){if(n){if(typeof n=="string")return Jh(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Jh(n,r)}}function Jh(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,i=new Array(r);o<r;o++)i[o]=n[o];return i}function xS(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,c,s,d,m=[],g=!0,b=!1;try{if(s=(o=o.call(n)).next,r!==0)for(;!(g=(i=s.call(o)).done)&&(m.push(i.value),m.length!==r);g=!0);}catch(y){b=!0,c=y}finally{try{if(!g&&o.return!=null&&(d=o.return(),Object(d)!==d))return}finally{if(b)throw c}}return m}}function SS(n){if(Array.isArray(n))return n}function OS(n,r){if(n==null)return{};var o=_S(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function _S(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var fi=function(r){var o=r.children,i=o===void 0?void 0:o,c=r.className,s=OS(r,hS),d="".concat(be,"-conversation-header"),m=ci(i,[ld,ui,_p,od,id]),g=pS(m,5),b=g[0],y=g[1],S=g[2],j=g[3],C=g[4];return G.createElement("div",pf({},s,{className:Ce(d,c)}),b,y&&G.createElement("div",{className:"".concat(d,"__avatar")},y),!y&&S&&G.createElement("div",{className:"".concat(d,"__avatar")},S),j,C)};fi.displayName="ConversationHeader";fi.Back=ld;fi.Actions=id;fi.Content=od;/*!
 * perfect-scrollbar v1.5.0
 * Copyright 2020 Hyunje Jun, MDBootstrap and Contributors
 * Licensed under MIT
 */function vn(n){return getComputedStyle(n)}function Tt(n,r){for(var o in r){var i=r[o];typeof i=="number"&&(i=i+"px"),n.style[o]=i}return n}function Co(n){var r=document.createElement("div");return r.className=n,r}var Fh=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function ma(n,r){if(!Fh)throw new Error("No element matching method supported");return Fh.call(n,r)}function Rr(n){n.remove?n.remove():n.parentNode&&n.parentNode.removeChild(n)}function ep(n,r){return Array.prototype.filter.call(n.children,function(o){return ma(o,r)})}var rt={main:"ps",rtl:"ps__rtl",element:{thumb:function(r){return"ps__thumb-"+r},rail:function(r){return"ps__rail-"+r},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(r){return"ps--active-"+r},scrolling:function(r){return"ps--scrolling-"+r}}},nb={x:null,y:null};function ab(n,r){var o=n.element.classList,i=rt.state.scrolling(r);o.contains(i)?clearTimeout(nb[r]):o.add(i)}function rb(n,r){nb[r]=setTimeout(function(){return n.isAlive&&n.element.classList.remove(rt.state.scrolling(r))},n.settings.scrollingThreshold)}function wS(n,r){ab(n,r),rb(n,r)}var di=function(r){this.element=r,this.handlers={}},lb={isEmpty:{configurable:!0}};di.prototype.bind=function(r,o){typeof this.handlers[r]>"u"&&(this.handlers[r]=[]),this.handlers[r].push(o);var i=["touchstart","wheel","touchmove"];i.indexOf(r)!==-1?this.element.addEventListener(r,o,{passive:!1}):this.element.addEventListener(r,o,!1)};di.prototype.unbind=function(r,o){var i=this;this.handlers[r]=this.handlers[r].filter(function(c){return o&&c!==o?!0:(i.element.removeEventListener(r,c,!1),!1)})};di.prototype.unbindAll=function(){for(var r in this.handlers)this.unbind(r)};lb.isEmpty.get=function(){var n=this;return Object.keys(this.handlers).every(function(r){return n.handlers[r].length===0})};Object.defineProperties(di.prototype,lb);var Xr=function(){this.eventElements=[]};Xr.prototype.eventElement=function(r){var o=this.eventElements.filter(function(i){return i.element===r})[0];return o||(o=new di(r),this.eventElements.push(o)),o};Xr.prototype.bind=function(r,o,i){this.eventElement(r).bind(o,i)};Xr.prototype.unbind=function(r,o,i){var c=this.eventElement(r);c.unbind(o,i),c.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(c),1)};Xr.prototype.unbindAll=function(){this.eventElements.forEach(function(r){return r.unbindAll()}),this.eventElements=[]};Xr.prototype.once=function(r,o,i){var c=this.eventElement(r),s=function d(m){c.unbind(o,d),i(m)};c.bind(o,s)};function ko(n){if(typeof window.CustomEvent=="function")return new CustomEvent(n);var r=document.createEvent("CustomEvent");return r.initCustomEvent(n,!1,!1,void 0),r}function Po(n,r,o,i,c,s){i===void 0&&(i=!0),c===void 0&&(c=!1);var d;if(r==="top")d=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(r==="left")d=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");ES(n,o,d,i,c,s)}function ES(n,r,o,i,c,s){var d=o[0],m=o[1],g=o[2],b=o[3],y=o[4],S=o[5];i===void 0&&(i=!0),c===void 0&&(c=!1);var j=n.element;n.reach[b]=null;var C=s===!0?n[d]!==n[m]:!0;C&&j[g]<1&&(n.reach[b]="start"),C&&j[g]>n[d]-n[m]-1&&(n.reach[b]="end"),r&&(j.dispatchEvent(ko("ps-scroll-"+b)),r<0?j.dispatchEvent(ko("ps-scroll-"+y)):r>0&&j.dispatchEvent(ko("ps-scroll-"+S)),i&&wS(n,b)),n.reach[b]&&(r||c)&&j.dispatchEvent(ko("ps-"+b+"-reach-"+n.reach[b]))}function Ve(n){return parseInt(n,10)||0}function jS(n){return ma(n,"input,[contenteditable]")||ma(n,"select,[contenteditable]")||ma(n,"textarea,[contenteditable]")||ma(n,"button,[contenteditable]")}function NS(n){var r=vn(n);return Ve(r.width)+Ve(r.paddingLeft)+Ve(r.paddingRight)+Ve(r.borderLeftWidth)+Ve(r.borderRightWidth)}var Ql={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints};function Un(n){var r=n.element,o=Math.floor(r.scrollTop),i=r.getBoundingClientRect();n.containerWidth=Math.round(i.width),n.containerHeight=Math.round(i.height),n.contentWidth=r.scrollWidth,n.contentHeight=r.scrollHeight,r.contains(n.scrollbarXRail)||(ep(r,rt.element.rail("x")).forEach(function(c){return Rr(c)}),r.appendChild(n.scrollbarXRail)),r.contains(n.scrollbarYRail)||(ep(r,rt.element.rail("y")).forEach(function(c){return Rr(c)}),r.appendChild(n.scrollbarYRail)),!n.settings.suppressScrollX&&n.containerWidth+n.settings.scrollXMarginOffset<n.contentWidth?(n.scrollbarXActive=!0,n.railXWidth=n.containerWidth-n.railXMarginWidth,n.railXRatio=n.containerWidth/n.railXWidth,n.scrollbarXWidth=tp(n,Ve(n.railXWidth*n.containerWidth/n.contentWidth)),n.scrollbarXLeft=Ve((n.negativeScrollAdjustment+r.scrollLeft)*(n.railXWidth-n.scrollbarXWidth)/(n.contentWidth-n.containerWidth))):n.scrollbarXActive=!1,!n.settings.suppressScrollY&&n.containerHeight+n.settings.scrollYMarginOffset<n.contentHeight?(n.scrollbarYActive=!0,n.railYHeight=n.containerHeight-n.railYMarginHeight,n.railYRatio=n.containerHeight/n.railYHeight,n.scrollbarYHeight=tp(n,Ve(n.railYHeight*n.containerHeight/n.contentHeight)),n.scrollbarYTop=Ve(o*(n.railYHeight-n.scrollbarYHeight)/(n.contentHeight-n.containerHeight))):n.scrollbarYActive=!1,n.scrollbarXLeft>=n.railXWidth-n.scrollbarXWidth&&(n.scrollbarXLeft=n.railXWidth-n.scrollbarXWidth),n.scrollbarYTop>=n.railYHeight-n.scrollbarYHeight&&(n.scrollbarYTop=n.railYHeight-n.scrollbarYHeight),AS(r,n),n.scrollbarXActive?r.classList.add(rt.state.active("x")):(r.classList.remove(rt.state.active("x")),n.scrollbarXWidth=0,n.scrollbarXLeft=0,r.scrollLeft=n.isRtl===!0?n.contentWidth:0),n.scrollbarYActive?r.classList.add(rt.state.active("y")):(r.classList.remove(rt.state.active("y")),n.scrollbarYHeight=0,n.scrollbarYTop=0,r.scrollTop=0)}function tp(n,r){return n.settings.minScrollbarLength&&(r=Math.max(r,n.settings.minScrollbarLength)),n.settings.maxScrollbarLength&&(r=Math.min(r,n.settings.maxScrollbarLength)),r}function AS(n,r){var o={width:r.railXWidth},i=Math.floor(n.scrollTop);r.isRtl?o.left=r.negativeScrollAdjustment+n.scrollLeft+r.containerWidth-r.contentWidth:o.left=n.scrollLeft,r.isScrollbarXUsingBottom?o.bottom=r.scrollbarXBottom-i:o.top=r.scrollbarXTop+i,Tt(r.scrollbarXRail,o);var c={top:i,height:r.railYHeight};r.isScrollbarYUsingRight?r.isRtl?c.right=r.contentWidth-(r.negativeScrollAdjustment+n.scrollLeft)-r.scrollbarYRight-r.scrollbarYOuterWidth-9:c.right=r.scrollbarYRight-n.scrollLeft:r.isRtl?c.left=r.negativeScrollAdjustment+n.scrollLeft+r.containerWidth*2-r.contentWidth-r.scrollbarYLeft-r.scrollbarYOuterWidth:c.left=r.scrollbarYLeft+n.scrollLeft,Tt(r.scrollbarYRail,c),Tt(r.scrollbarX,{left:r.scrollbarXLeft,width:r.scrollbarXWidth-r.railBorderXWidth}),Tt(r.scrollbarY,{top:r.scrollbarYTop,height:r.scrollbarYHeight-r.railBorderYWidth})}function TS(n){n.element,n.event.bind(n.scrollbarY,"mousedown",function(r){return r.stopPropagation()}),n.event.bind(n.scrollbarYRail,"mousedown",function(r){var o=r.pageY-window.pageYOffset-n.scrollbarYRail.getBoundingClientRect().top,i=o>n.scrollbarYTop?1:-1;n.element.scrollTop+=i*n.containerHeight,Un(n),r.stopPropagation()}),n.event.bind(n.scrollbarX,"mousedown",function(r){return r.stopPropagation()}),n.event.bind(n.scrollbarXRail,"mousedown",function(r){var o=r.pageX-window.pageXOffset-n.scrollbarXRail.getBoundingClientRect().left,i=o>n.scrollbarXLeft?1:-1;n.element.scrollLeft+=i*n.containerWidth,Un(n),r.stopPropagation()})}function CS(n){np(n,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),np(n,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function np(n,r){var o=r[0],i=r[1],c=r[2],s=r[3],d=r[4],m=r[5],g=r[6],b=r[7],y=r[8],S=n.element,j=null,C=null,$=null;function B(w){w.touches&&w.touches[0]&&(w[c]=w.touches[0].pageY),S[g]=j+$*(w[c]-C),ab(n,b),Un(n),w.stopPropagation(),w.preventDefault()}function R(){rb(n,b),n[y].classList.remove(rt.state.clicking),n.event.unbind(n.ownerDocument,"mousemove",B)}function P(w,_){j=S[g],_&&w.touches&&(w[c]=w.touches[0].pageY),C=w[c],$=(n[i]-n[o])/(n[s]-n[m]),_?n.event.bind(n.ownerDocument,"touchmove",B):(n.event.bind(n.ownerDocument,"mousemove",B),n.event.once(n.ownerDocument,"mouseup",R),w.preventDefault()),n[y].classList.add(rt.state.clicking),w.stopPropagation()}n.event.bind(n[d],"mousedown",function(w){P(w)}),n.event.bind(n[d],"touchstart",function(w){P(w,!0)})}function kS(n){var r=n.element,o=function(){return ma(r,":hover")},i=function(){return ma(n.scrollbarX,":focus")||ma(n.scrollbarY,":focus")};function c(s,d){var m=Math.floor(r.scrollTop);if(s===0){if(!n.scrollbarYActive)return!1;if(m===0&&d>0||m>=n.contentHeight-n.containerHeight&&d<0)return!n.settings.wheelPropagation}var g=r.scrollLeft;if(d===0){if(!n.scrollbarXActive)return!1;if(g===0&&s<0||g>=n.contentWidth-n.containerWidth&&s>0)return!n.settings.wheelPropagation}return!0}n.event.bind(n.ownerDocument,"keydown",function(s){if(!(s.isDefaultPrevented&&s.isDefaultPrevented()||s.defaultPrevented)&&!(!o()&&!i())){var d=document.activeElement?document.activeElement:n.ownerDocument.activeElement;if(d){if(d.tagName==="IFRAME")d=d.contentDocument.activeElement;else for(;d.shadowRoot;)d=d.shadowRoot.activeElement;if(jS(d))return}var m=0,g=0;switch(s.which){case 37:s.metaKey?m=-n.contentWidth:s.altKey?m=-n.containerWidth:m=-30;break;case 38:s.metaKey?g=n.contentHeight:s.altKey?g=n.containerHeight:g=30;break;case 39:s.metaKey?m=n.contentWidth:s.altKey?m=n.containerWidth:m=30;break;case 40:s.metaKey?g=-n.contentHeight:s.altKey?g=-n.containerHeight:g=-30;break;case 32:s.shiftKey?g=n.containerHeight:g=-n.containerHeight;break;case 33:g=n.containerHeight;break;case 34:g=-n.containerHeight;break;case 36:g=n.contentHeight;break;case 35:g=-n.contentHeight;break;default:return}n.settings.suppressScrollX&&m!==0||n.settings.suppressScrollY&&g!==0||(r.scrollTop-=g,r.scrollLeft+=m,Un(n),c(m,g)&&s.preventDefault())}})}function MS(n){var r=n.element;function o(d,m){var g=Math.floor(r.scrollTop),b=r.scrollTop===0,y=g+r.offsetHeight===r.scrollHeight,S=r.scrollLeft===0,j=r.scrollLeft+r.offsetWidth===r.scrollWidth,C;return Math.abs(m)>Math.abs(d)?C=b||y:C=S||j,C?!n.settings.wheelPropagation:!0}function i(d){var m=d.deltaX,g=-1*d.deltaY;return(typeof m>"u"||typeof g>"u")&&(m=-1*d.wheelDeltaX/6,g=d.wheelDeltaY/6),d.deltaMode&&d.deltaMode===1&&(m*=10,g*=10),m!==m&&g!==g&&(m=0,g=d.wheelDelta),d.shiftKey?[-g,-m]:[m,g]}function c(d,m,g){if(!Ql.isWebKit&&r.querySelector("select:focus"))return!0;if(!r.contains(d))return!1;for(var b=d;b&&b!==r;){if(b.classList.contains(rt.element.consuming))return!0;var y=vn(b);if(g&&y.overflowY.match(/(scroll|auto)/)){var S=b.scrollHeight-b.clientHeight;if(S>0&&(b.scrollTop>0&&g<0||b.scrollTop<S&&g>0))return!0}if(m&&y.overflowX.match(/(scroll|auto)/)){var j=b.scrollWidth-b.clientWidth;if(j>0&&(b.scrollLeft>0&&m<0||b.scrollLeft<j&&m>0))return!0}b=b.parentNode}return!1}function s(d){var m=i(d),g=m[0],b=m[1];if(!c(d.target,g,b)){var y=!1;n.settings.useBothWheelAxes?n.scrollbarYActive&&!n.scrollbarXActive?(b?r.scrollTop-=b*n.settings.wheelSpeed:r.scrollTop+=g*n.settings.wheelSpeed,y=!0):n.scrollbarXActive&&!n.scrollbarYActive&&(g?r.scrollLeft+=g*n.settings.wheelSpeed:r.scrollLeft-=b*n.settings.wheelSpeed,y=!0):(r.scrollTop-=b*n.settings.wheelSpeed,r.scrollLeft+=g*n.settings.wheelSpeed),Un(n),y=y||o(g,b),y&&!d.ctrlKey&&(d.stopPropagation(),d.preventDefault())}}typeof window.onwheel<"u"?n.event.bind(r,"wheel",s):typeof window.onmousewheel<"u"&&n.event.bind(r,"mousewheel",s)}function RS(n){if(!Ql.supportsTouch&&!Ql.supportsIePointer)return;var r=n.element;function o($,B){var R=Math.floor(r.scrollTop),P=Math.ceil(r.scrollLeft),w=Math.abs($),_=Math.abs(B);if(!n.settings.wheelPropagation)return!0;if(_>w){if(n.settings.suppressScrollY)return!1;if(B>0)return R!==0;if(B<0)return R<n.contentHeight-n.containerHeight}else if(w>_){if(n.settings.suppressScrollX)return!1;if($>0)return P!==0;if(B<0)return P<n.contentWidth-n.containerWidth}return!0}function i($,B){r.scrollTop-=B,r.scrollLeft-=$,Un(n)}var c={},s=0,d={},m=null;function g($){return $.targetTouches?$.targetTouches[0]:$}function b($){return $.pointerType&&$.pointerType==="pen"&&$.buttons===0?!1:!!($.targetTouches&&$.targetTouches.length===1||$.pointerType&&$.pointerType!=="mouse"&&$.pointerType!==$.MSPOINTER_TYPE_MOUSE)}function y($){if(b($)){var B=g($);c.pageX=B.pageX,c.pageY=B.pageY,s=new Date().getTime(),m!==null&&clearInterval(m)}}function S($,B,R){if(!r.contains($))return!1;for(var P=$;P&&P!==r;){if(P.classList.contains(rt.element.consuming))return!0;var w=vn(P);if(R&&w.overflowY.match(/(scroll|auto)/)){var _=P.scrollHeight-P.clientHeight;if(_>0&&(P.scrollTop>0&&R<0||P.scrollTop<_&&R>0))return!0}if(B&&w.overflowX.match(/(scroll|auto)/)){var M=P.scrollWidth-P.clientWidth;if(M>0&&(P.scrollLeft>0&&B<0||P.scrollLeft<M&&B>0))return!0}P=P.parentNode}return!1}function j($){if(b($)){var B=g($),R={pageX:B.pageX,pageY:B.pageY},P=R.pageX-c.pageX,w=R.pageY-c.pageY;if(S($.target,P,w))return;i(P,w),c=R;var _=new Date().getTime(),M=_-s;M>0&&(d.x=P/M,d.y=w/M,s=_),$.cancelable&&o(P,w)&&$.preventDefault()}}function C(){n.settings.swipeEasing&&(clearInterval(m),m=setInterval(function(){if(n.isInitialized){clearInterval(m);return}if(!d.x&&!d.y){clearInterval(m);return}if(Math.abs(d.x)<.01&&Math.abs(d.y)<.01){clearInterval(m);return}i(d.x*30,d.y*30),d.x*=.8,d.y*=.8},10))}Ql.supportsTouch?(n.event.bind(r,"touchstart",y),n.event.bind(r,"touchmove",j),n.event.bind(r,"touchend",C)):Ql.supportsIePointer&&(window.PointerEvent?(n.event.bind(r,"pointerdown",y),n.event.bind(r,"pointermove",j),n.event.bind(r,"pointerup",C)):window.MSPointerEvent&&(n.event.bind(r,"MSPointerDown",y),n.event.bind(r,"MSPointerMove",j),n.event.bind(r,"MSPointerUp",C)))}var DS=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},zS={"click-rail":TS,"drag-thumb":CS,keyboard:kS,wheel:MS,touch:RS},mi=function(r,o){var i=this;if(o===void 0&&(o={}),typeof r=="string"&&(r=document.querySelector(r)),!r||!r.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=r,r.classList.add(rt.main),this.settings=DS();for(var c in o)this.settings[c]=o[c];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s=function(){return r.classList.add(rt.state.focus)},d=function(){return r.classList.remove(rt.state.focus)};this.isRtl=vn(r).direction==="rtl",this.isRtl===!0&&r.classList.add(rt.rtl),this.isNegativeScroll=function(){var b=r.scrollLeft,y=null;return r.scrollLeft=-1,y=r.scrollLeft<0,r.scrollLeft=b,y}(),this.negativeScrollAdjustment=this.isNegativeScroll?r.scrollWidth-r.clientWidth:0,this.event=new Xr,this.ownerDocument=r.ownerDocument||document,this.scrollbarXRail=Co(rt.element.rail("x")),r.appendChild(this.scrollbarXRail),this.scrollbarX=Co(rt.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",s),this.event.bind(this.scrollbarX,"blur",d),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var m=vn(this.scrollbarXRail);this.scrollbarXBottom=parseInt(m.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Ve(m.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Ve(m.borderLeftWidth)+Ve(m.borderRightWidth),Tt(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Ve(m.marginLeft)+Ve(m.marginRight),Tt(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=Co(rt.element.rail("y")),r.appendChild(this.scrollbarYRail),this.scrollbarY=Co(rt.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",s),this.event.bind(this.scrollbarY,"blur",d),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var g=vn(this.scrollbarYRail);this.scrollbarYRight=parseInt(g.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Ve(g.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?NS(this.scrollbarY):null,this.railBorderYWidth=Ve(g.borderTopWidth)+Ve(g.borderBottomWidth),Tt(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Ve(g.marginTop)+Ve(g.marginBottom),Tt(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:r.scrollLeft<=0?"start":r.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:r.scrollTop<=0?"start":r.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(b){return zS[b](i)}),this.lastScrollTop=Math.floor(r.scrollTop),this.lastScrollLeft=r.scrollLeft,this.event.bind(this.element,"scroll",function(b){return i.onScroll(b)}),Un(this)};mi.prototype.update=function(r){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Tt(this.scrollbarXRail,{display:"block"}),Tt(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Ve(vn(this.scrollbarXRail).marginLeft)+Ve(vn(this.scrollbarXRail).marginRight),this.railYMarginHeight=Ve(vn(this.scrollbarYRail).marginTop)+Ve(vn(this.scrollbarYRail).marginBottom),Tt(this.scrollbarXRail,{display:"none"}),Tt(this.scrollbarYRail,{display:"none"}),Un(this),Po(this,"top",0,!1,!0,r),Po(this,"left",0,!1,!0,r),Tt(this.scrollbarXRail,{display:""}),Tt(this.scrollbarYRail,{display:""}))};mi.prototype.onScroll=function(r){this.isAlive&&(Un(this),Po(this,"top",this.element.scrollTop-this.lastScrollTop),Po(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)};mi.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Rr(this.scrollbarX),Rr(this.scrollbarY),Rr(this.scrollbarXRail),Rr(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)};mi.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(r){return!r.match(/^ps([-_].+|)$/)}).join(" ")};function Lr(n){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Lr(n)}var LS=["className","style","option","options","containerRef","onScrollY","onScrollX","onScrollUp","onScrollDown","onScrollLeft","onScrollRight","onYReachStart","onYReachEnd","onXReachStart","onXReachEnd","component","onSync","children"];function bf(){return bf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},bf.apply(this,arguments)}function HS(n,r){if(n==null)return{};var o=$S(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function $S(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}function US(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function YS(n,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,PS(i.key),i)}}function BS(n,r,o){return r&&YS(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function PS(n){var r=XS(n,"string");return Lr(r)=="symbol"?r:String(r)}function XS(n,r){if(Lr(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r);if(Lr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function qS(n,r,o){return r=Xo(r),GS(n,ib()?Reflect.construct(r,o||[],Xo(n).constructor):r.apply(n,o))}function GS(n,r){if(r&&(Lr(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ob(n)}function ib(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ib=function(){return!!n})()}function Xo(n){return Xo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},Xo(n)}function ob(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function KS(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),r&&yf(n,r)}function yf(n,r){return yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},yf(n,r)}var Lo={"ps-scroll-y":"onScrollY","ps-scroll-x":"onScrollX","ps-scroll-up":"onScrollUp","ps-scroll-down":"onScrollDown","ps-scroll-left":"onScrollLeft","ps-scroll-right":"onScrollRight","ps-y-reach-start":"onYReachStart","ps-y-reach-end":"onYReachEnd","ps-x-reach-start":"onXReachStart","ps-x-reach-end":"onXReachEnd"};Object.freeze(Lo);var ub=function(n){KS(r,n);function r(o){var i;return US(this,r),i=qS(this,r,[o]),i.handleRef=i.handleRef.bind(ob(i)),i._handlerByEvent={},i}return BS(r,[{key:"componentDidMount",value:function(){this.props.option&&console.warn('react-perfect-scrollbar: the "option" prop has been deprecated in favor of "options"'),this._ps=new mi(this._container,this.props.options||this.props.option),this._updateEventHook(),this._updateClassName()}},{key:"componentDidUpdate",value:function(i){this._updateEventHook(i),this.updateScroll(),i.className!==this.props.className&&this._updateClassName()}},{key:"componentWillUnmount",value:function(){var i=this;Object.keys(this._handlerByEvent).forEach(function(c){var s=i._handlerByEvent[c];s&&i._container.removeEventListener(c,s,!1)}),this._handlerByEvent={},this._ps.destroy(),this._ps=null}},{key:"_updateEventHook",value:function(){var i=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object.keys(Lo).forEach(function(s){var d=i.props[Lo[s]],m=c[Lo[s]];if(d!==m){if(m){var g=i._handlerByEvent[s];i._container.removeEventListener(s,g,!1),i._handlerByEvent[s]=null}if(d){var b=function(){return d(i._container)};i._container.addEventListener(s,b,!1),i._handlerByEvent[s]=b}}})}},{key:"_updateClassName",value:function(){var i=this.props.className,c=this._container.className.split(" ").filter(function(s){return s.match(/^ps([-_].+|)$/)}).join(" ");this._container&&(this._container.className="scrollbar-container".concat(i?" ".concat(i):"").concat(c?" ".concat(c):""))}},{key:"updateScroll",value:function(){var i=this.props.onSync;typeof i=="function"?i(this._ps):this._ps.update()}},{key:"handleRef",value:function(i){var c,s;this._container=i,(c=(s=this.props).containerRef)===null||c===void 0||c.call(s,i)}},{key:"render",value:function(){var i=this.props;i.className;var c=i.style;i.option,i.options,i.containerRef,i.onScrollY,i.onScrollX,i.onScrollUp,i.onScrollDown,i.onScrollLeft,i.onScrollRight,i.onYReachStart,i.onYReachEnd,i.onXReachStart,i.onXReachEnd;var s=i.component;i.onSync;var d=i.children,m=HS(i,LS),g=typeof s>"u"?"div":s;return G.createElement(g,bf({style:c,ref:this.handleRef},m),d)}}]),r}(q.Component);function ei(n){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ei(n)}var VS=["className","variant","children"];function xf(){return xf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},xf.apply(this,arguments)}function QS(n,r,o){return r=WS(r),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function WS(n){var r=ZS(n,"string");return ei(r)=="symbol"?r:String(r)}function ZS(n,r){if(ei(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r);if(ei(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function IS(n,r){if(n==null)return{};var o=JS(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function JS(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var ap=function(r){var o=r.className,i=o===void 0?void 0:o,c=r.variant,s=c===void 0?"default":c,d=r.children,m=IS(r,VS),g="".concat(be,"-loader"),b=G.Children.count(d)>0?"".concat(g,"--content"):"";return G.createElement("div",xf({},m,{className:Ce(g,b,QS({},"".concat(g,"--variant-").concat(s),s!=="default"),i),role:"status"}),d)};function ti(n){"@babel/helpers - typeof";return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ti(n)}var FS=["className","children","blur","grayscale"];function Sf(){return Sf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},Sf.apply(this,arguments)}function rp(n,r,o){return r=eO(r),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function eO(n){var r=tO(n,"string");return ti(r)=="symbol"?r:String(r)}function tO(n,r){if(ti(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r);if(ti(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function nO(n,r){if(n==null)return{};var o=aO(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function aO(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var rO=function(r){var o=r.className,i=o===void 0?"":o,c=r.children,s=c===void 0?void 0:c,d=r.blur,m=d===void 0?!1:d,g=r.grayscale,b=g===void 0?!1:g,y=nO(r,FS),S="".concat(be,"-overlay"),j="".concat(S,"--blur"),C="".concat(S,"--grayscale");return G.createElement("div",Sf({},y,{className:Ce(S,rp({},j,m),rp({},C,b),i)}),G.createElement("div",{className:"".concat(S,"__content")},s))},lO=["sender","sentTime","children","className"];function Of(){return Of=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},Of.apply(this,arguments)}function iO(n,r){if(n==null)return{};var o=oO(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function oO(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var ud=function(r){var o=r.sender,i=o===void 0?"":o,c=r.sentTime,s=c===void 0?"":c,d=r.children,m=d===void 0?void 0:d,g=r.className,b=iO(r,lO),y="".concat(be,"-message__header");return G.createElement("div",Of({},b,{className:Ce(y,g)}),typeof m<"u"?m:G.createElement(G.Fragment,null,G.createElement("div",{className:"".concat(be,"-message__sender-name")},i),G.createElement("div",{className:"".concat(be,"-message__sent-time")},s)))};ud.displayName="Message.Header";var uO=["sender","sentTime","children","className"];function _f(){return _f=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},_f.apply(this,arguments)}function cO(n,r){if(n==null)return{};var o=sO(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function sO(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var cd=function(r){var o=r.sender,i=o===void 0?"":o,c=r.sentTime,s=c===void 0?"":c,d=r.children,m=d===void 0?void 0:d,g=r.className,b=cO(r,uO),y="".concat(be,"-message__footer");return G.createElement("div",_f({},b,{className:Ce(y,g)}),typeof m<"u"?m:G.createElement(G.Fragment,null,G.createElement("div",{className:"".concat(be,"-message__sender-name")},i),G.createElement("div",{className:"".concat(be,"-message__sent-time")},s)))};cd.displayName="Message.Footer";var sd=function(r){var o=r.children,i=r.className,c="".concat(be,"-message__custom-content");return G.createElement("div",{className:Ce(c,i)},o)};sd.displayName="Message.CustomContent";var qo=function(r){var o=r.src,i=r.width,c=r.height,s=r.alt,d=r.className,m="".concat(be,"-message__image-content"),g={width:typeof i=="number"?"".concat(i,"px"):typeof i=="string"?i:void 0,height:typeof c=="number"?"".concat(c,"px"):typeof c=="string"?c:void 0};return G.createElement("div",{className:Ce(m,d)},G.createElement("img",{src:o,style:g,alt:s}))};qo.displayName="Message.ImageContent";var Go=function(r){var o=r.html,i=r.className,c="".concat(be,"-message__html-content"),s=function(){return{__html:o}};return G.createElement("div",{className:Ce(c,i),dangerouslySetInnerHTML:s()})};Go.displayName="Message.HtmlContent";var Ko=function(r){var o=r.text,i=r.className,c=r.children,s="".concat(be,"-message__text-content"),d=c??o;return G.createElement("div",{className:Ce(s,i)},d)};Ko.displayName="Message.TextContent";var fO=["model","avatarSpacer","avatarPosition","type","payload","children","className"];function wf(){return wf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},wf.apply(this,arguments)}function lp(n,r,o){return r=dO(r),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function dO(n){var r=mO(n,"string");return Hr(r)=="symbol"?r:String(r)}function mO(n,r){if(Hr(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r);if(Hr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function Hr(n){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Hr(n)}function vO(n,r){return bO(n)||pO(n,r)||hO(n,r)||gO()}function gO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hO(n,r){if(n){if(typeof n=="string")return ip(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return ip(n,r)}}function ip(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,i=new Array(r);o<r;o++)i[o]=n[o];return i}function pO(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,c,s,d,m=[],g=!0,b=!1;try{if(s=(o=o.call(n)).next,r!==0)for(;!(g=(i=s.call(o)).done)&&(m.push(i.value),m.length!==r);g=!0);}catch(y){b=!0,c=y}finally{try{if(!g&&o.return!=null&&(d=o.return(),Object(d)!==d))return}finally{if(b)throw c}}return m}}function bO(n){if(Array.isArray(n))return n}function yO(n,r){if(n==null)return{};var o=xO(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function xO(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var bt=function(r){var o,i,c=r.model,s=c.message,d=s===void 0?"":s,m=c.sentTime,g=m===void 0?"":m,b=c.sender,y=b===void 0?"":b,S=c.direction,j=S===void 0?1:S,C=c.position,$=c.type,B=c.payload,R=r.avatarSpacer,P=R===void 0?!1:R,w=r.avatarPosition,_=w===void 0?void 0:w,M=r.type,A=M===void 0?"html":M,N=r.payload,X=r.children,V=r.className,Y=yO(r,fO),ne="".concat(be,"-message"),ee=ci(X,[ui,ud,cd,Go,Ko,qo,sd]),Q=vO(ee,7),ce=Q[0],pe=Q[1],le=Q[2],k=Q[3],I=Q[4],D=Q[5],ue=Q[6],x=function(){if(j===0||j==="incoming")return"".concat(ne,"--incoming");if(j===1||j==="outgoing")return"".concat(ne,"--outgoing")}(),K=function(F){var ye="".concat(ne,"--avatar-");if(F===0||F==="top-left"||F==="tl")return"".concat(ye,"tl");if(F===1||F==="top-right"||F==="tr")return"".concat(ye,"tr");if(F===2||F==="bottom-right"||F==="br")return"".concat(ye,"br");if(F===3||F==="bottom-left"||F==="bl")return"".concat(ye,"bl");if(F===4||F==="center-left"||F==="cl")return"".concat(ye,"cl");if(F===5||F==="center-right"||F==="cr")return"".concat(ye,"cr")}(_),te=function(F){var ye="".concat(be,"-message--");if(F==="single"||F===0)return"".concat(ye,"single");if(F==="first"||F===1)return"".concat(ye,"first");if(F==="normal"||F===2)return"";if(F==="last"||F===3)return"".concat(ye,"last")}(C),ae=function(){return(y==null?void 0:y.length)>0&&(g==null?void 0:g.length)>0?"".concat(y,": ").concat(g):(y==null?void 0:y.length)>0&&(typeof g>"u"||(g==null?void 0:g.length)===0)?y:null}(),re=(o=(i=k??I)!==null&&i!==void 0?i:D)!==null&&o!==void 0?o:ue,fe=re??function(){var F=$??A,ye=B??d,xe=ye??N,Pe=Hr(xe)==="object"?Sp(xe):"";if(F==="html"&&Pe!=="Message.CustomContent")return G.createElement(Go,{html:xe});if(F==="text")return G.createElement(Ko,{text:xe});if(F==="image")return G.createElement(qo,xe);if(F==="custom"||Pe==="Message.CustomContent")return xe}();return G.createElement("section",wf({},Y,{"aria-label":ae,className:Ce(ne,x,lp({},"".concat(ne,"--avatar-spacer"),P),te,K,V)},lp({},"data-".concat(be,"-message"),"")),typeof ce<"u"&&G.createElement("div",{className:"".concat(ne,"__avatar")},ce),G.createElement("div",{className:"".concat(ne,"__content-wrapper")},pe,G.createElement("div",{className:"".concat(ne,"__content")},fe),le))};bt.Header=ud;bt.HtmlContent=Go;bt.TextContent=Ko;bt.ImageContent=qo;bt.CustomContent=sd;bt.Footer=cd;var SO=["children","className"];function Ef(){return Ef=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},Ef.apply(this,arguments)}function OO(n,r){if(n==null)return{};var o=_O(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function _O(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var fd=function(r){var o=r.children,i=o===void 0?void 0:o,c=r.className,s=OO(r,SO),d="".concat(be,"-message-group__header");return G.createElement("div",Ef({},s,{className:Ce(d,c)}),i)};fd.displayName="MessageGroup.Header";var wO=["children","className"];function jf(){return jf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},jf.apply(this,arguments)}function EO(n,r){if(n==null)return{};var o=jO(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function jO(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var dd=function(r){var o=r.children,i=o===void 0?void 0:o,c=r.className,s=EO(r,wO),d="".concat(be,"-message-group__footer");return G.createElement("div",jf({},s,{className:Ce(d,c)}),i)};dd.displayName="MessageGroup.Footer";var NO=["children","className"];function Nf(){return Nf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},Nf.apply(this,arguments)}function AO(n,r){if(n==null)return{};var o=TO(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function TO(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var md=function(r){var o=r.children,i=o===void 0?void 0:o,c=r.className,s=AO(r,NO),d="".concat(be,"-message-group");return G.createElement("div",Nf({},s,{className:Ce("".concat(d,"__messages"),c)}),i)};md.displayName="MessageGroup.Messages";function ni(n){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ni(n)}var CO=["direction","avatarPosition","sender","sentTime","children","className"];function Af(){return Af=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},Af.apply(this,arguments)}function kO(n,r,o){return r=MO(r),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function MO(n){var r=RO(n,"string");return ni(r)=="symbol"?r:String(r)}function RO(n,r){if(ni(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r);if(ni(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function DO(n,r){return $O(n)||HO(n,r)||LO(n,r)||zO()}function zO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LO(n,r){if(n){if(typeof n=="string")return op(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return op(n,r)}}function op(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,i=new Array(r);o<r;o++)i[o]=n[o];return i}function HO(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,c,s,d,m=[],g=!0,b=!1;try{if(s=(o=o.call(n)).next,r!==0)for(;!(g=(i=s.call(o)).done)&&(m.push(i.value),m.length!==r);g=!0);}catch(y){b=!0,c=y}finally{try{if(!g&&o.return!=null&&(d=o.return(),Object(d)!==d))return}finally{if(b)throw c}}return m}}function $O(n){if(Array.isArray(n))return n}function UO(n,r){if(n==null)return{};var o=YO(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function YO(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var ou=function(r){var o=r.direction,i=o===void 0?"incoming":o,c=r.avatarPosition,s=c===void 0?void 0:c,d=r.sender,m=d===void 0?"":d,g=r.sentTime,b=g===void 0?"":g,y=r.children,S=r.className,j=UO(r,CO),C="".concat(be,"-message-group"),$=function(){if(i===0||i==="incoming")return"".concat(C,"--incoming");if(i===1||i==="outgoing")return"".concat(C,"--outgoing")}(),B=function(){var X="".concat(C,"--avatar-");if(typeof s=="string"&&(s==="tl"||s==="top-left"||s==="tr"||s==="top-right"||s==="bl"||s==="bottom-right"||s==="br"||s==="bottom-right"||s==="cl"||s==="center-left"||s==="cr"||s==="center-right"))return"".concat(X).concat(s)}(),R=ci(y,[ui,fd,dd,md]),P=DO(R,4),w=P[0],_=P[1],M=P[2],A=P[3],N=function(){return m.length>0&&b.length>0?"".concat(m,": ").concat(b):m.length>0&&b.length===0?m:null}();return G.createElement("section",Af({"aria-label":N},j,{className:Ce(C,$,B,S)},kO({},"data-".concat(be,"-message-group"),"")),typeof w<"u"&&G.createElement("div",{className:"".concat(C,"__avatar")},w),G.createElement("div",{className:"".concat(C,"__content")},_,A,M))};ou.Header=fd;ou.Footer=dd;ou.Messages=md;var BO=["content","as","children","className"];function Tf(){return Tf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},Tf.apply(this,arguments)}function PO(n,r){if(n==null)return{};var o=XO(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function XO(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var qO=function(r){var o=r.content,i=o===void 0?void 0:o,c=r.as,s=c===void 0?"div":c,d=r.children,m=d===void 0?void 0:d,g=r.className,b=PO(r,BO),y="".concat(be,"-message-separator"),S=function(){return typeof s=="string"&&s.length>0?s:"div"}();return G.createElement(S,Tf({},b,{className:Ce(y,g)}),D1(m)===!0?i:m)},GO=["className","children"];function Cf(){return Cf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},Cf.apply(this,arguments)}function KO(n,r){if(n==null)return{};var o=VO(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function VO(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var uu=function(r){var o=r.className,i=r.children,c=KO(r,GO);return G.createElement("div",Cf({},c,{className:o}),i)};uu.displayName="MessageList.Content";var QO=["children","typingIndicator","loading","loadingMore","loadingMorePosition","onYReachStart","onYReachEnd","className","disableOnYReachWhenNoScroll","scrollBehavior","autoScrollToBottom","autoScrollToBottomOnMount"];function $r(n){"@babel/helpers - typeof";return $r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$r(n)}function ai(){return ai=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},ai.apply(this,arguments)}function WO(n,r){return FO(n)||JO(n,r)||IO(n,r)||ZO()}function ZO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IO(n,r){if(n){if(typeof n=="string")return up(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return up(n,r)}}function up(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,i=new Array(r);o<r;o++)i[o]=n[o];return i}function JO(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,c,s,d,m=[],g=!0,b=!1;try{if(s=(o=o.call(n)).next,r!==0)for(;!(g=(i=s.call(o)).done)&&(m.push(i.value),m.length!==r);g=!0);}catch(y){b=!0,c=y}finally{try{if(!g&&o.return!=null&&(d=o.return(),Object(d)!==d))return}finally{if(b)throw c}}return m}}function FO(n){if(Array.isArray(n))return n}function e_(n,r){if(n==null)return{};var o=t_(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function t_(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}function n_(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function a_(n,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,sb(i.key),i)}}function r_(n,r,o){return r&&a_(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function l_(n,r,o){return r=Vo(r),i_(n,cb()?Reflect.construct(r,o||[],Vo(n).constructor):r.apply(n,o))}function i_(n,r){if(r&&($r(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tr(n)}function cb(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cb=function(){return!!n})()}function Vo(n){return Vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},Vo(n)}function Tr(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function o_(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),r&&kf(n,r)}function kf(n,r){return kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},kf(n,r)}function za(n,r,o){return r=sb(r),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function sb(n){var r=u_(n,"string");return $r(r)=="symbol"?r:String(r)}function u_(n,r){if($r(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r);if($r(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}var vd=function(n){o_(r,n);function r(o){var i;return n_(this,r),i=l_(this,r,[o]),za(Tr(i),"handleResize",function(){i.containerRef.current.clientHeight<i.lastClientHeight&&i.scrollToEnd(i.props.scrollBehavior),i.scrollRef.current.updateScroll()}),za(Tr(i),"handleContainerResize",function(){i.resizeTicking===!1&&(window.requestAnimationFrame(function(){var c=i.containerRef.current;if(c){var s=c.clientHeight,d=s-i.lastClientHeight;d>=1?i.preventScrollTop===!1&&(c.scrollTop=Math.round(c.scrollTop)-d):c.scrollTop=c.scrollTop-d,i.lastClientHeight=c.clientHeight,i.scrollRef.current.updateScroll()}i.resizeTicking=!1}),i.resizeTicking=!0)}),za(Tr(i),"isSticked",function(){var c=i.containerRef.current;return c.scrollHeight===Math.round(c.scrollTop+c.clientHeight)}),za(Tr(i),"handleScroll",function(){i.scrollTicking===!1&&(window.requestAnimationFrame(function(){i.noScroll===!1?i.preventScrollTop=i.isSticked():i.noScroll=!1,i.scrollTicking=!1}),i.scrollTicking=!0)}),za(Tr(i),"getLastMessageOrGroup",function(){var c=i.containerRef.current.querySelector("[data-".concat(be,"-message-list]>[data-").concat(be,"-message]:last-of-type,[data-").concat(be,"-message-list]>[data-").concat(be,"-message-group]:last-of-type")),s=c==null?void 0:c.querySelector("[data-".concat(be,"-message]:last-of-type"));return{lastElement:c,lastMessageInGroup:s}}),i.scrollPointRef=G.createRef(),i.containerRef=G.createRef(),i.scrollRef=G.createRef(),i.lastClientHeight=0,i.preventScrollTop=!1,i.resizeObserver=void 0,i.scrollTicking=!1,i.resizeTicking=!1,i.noScroll=void 0,i}return r_(r,[{key:"getSnapshotBeforeUpdate",value:function(){var i=this.containerRef.current,c=Math.round(i.scrollTop+i.clientHeight),s=i.scrollHeight===c||i.scrollHeight+1===c||i.scrollHeight-1===c;return{sticky:s,clientHeight:i.clientHeight,scrollHeight:i.scrollHeight,lastMessageOrGroup:this.getLastMessageOrGroup(),diff:i.scrollHeight-i.scrollTop}}},{key:"componentDidMount",value:function(){this.props.autoScrollToBottomOnMount===!0&&this.scrollToEnd(this.props.scrollBehavior),this.lastClientHeight=this.containerRef.current.clientHeight,window.addEventListener("resize",this.handleResize),typeof window.ResizeObserver=="function"&&(this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.resizeObserver.observe(this.containerRef.current)),this.containerRef.current.addEventListener("scroll",this.handleScroll)}},{key:"componentDidUpdate",value:function(i,c,s){var d=this.props.autoScrollToBottom;if(typeof s<"u"){var m=this.containerRef.current,g=this.getLastMessageOrGroup(),b=g.lastElement,y=g.lastMessageInGroup;if(b===s.lastMessageOrGroup.lastElement&&(typeof y>"u"||y===s.lastMessageOrGroup.lastMessageInGroup)&&(m.scrollTop=m.scrollHeight-s.diff+(this.lastClientHeight-m.clientHeight)),s.sticky===!0)d===!0&&this.scrollToEnd(this.props.scrollBehavior),this.preventScrollTop=!0;else if(s.clientHeight<this.lastClientHeight){var S=m.scrollTop+this.lastClientHeight;m.scrollHeight===S||m.scrollHeight+1===S||m.scrollHeight-1===S?d===!0&&(this.scrollToEnd(this.props.scrollBehavior),this.preventScrollTop=!0):this.preventScrollTop=!1}else this.preventScrollTop=!1,b===s.lastMessageOrGroup.lastElement&&(typeof y>"u"||y===s.lastMessageOrGroup.lastMessageInGroup)&&m.scrollTop===0&&m.scrollHeight>s.scrollHeight&&(m.scrollTop=m.scrollHeight-s.scrollHeight);this.lastClientHeight=s.clientHeight}}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize),typeof this.resizeObserver<"u"&&this.resizeObserver.disconnect(),this.containerRef.current.removeEventListener("scroll",this.handleScroll)}},{key:"scrollToEnd",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollBehavior,c=this.containerRef.current,s=this.scrollPointRef.current,d=c.getBoundingClientRect(),m=s.getBoundingClientRect(),g=m.top+c.scrollTop-d.top;c.scrollBy?c.scrollBy({top:g,behavior:i}):c.scrollTop=g,this.lastClientHeight=c.clientHeight,this.noScroll=!0}},{key:"render",value:function(){var i=this,c=this.props,s=c.children,d=c.typingIndicator,m=c.loading,g=c.loadingMore,b=c.loadingMorePosition,y=c.onYReachStart,S=c.onYReachEnd,j=c.className,C=c.disableOnYReachWhenNoScroll;c.scrollBehavior,c.autoScrollToBottom,c.autoScrollToBottomOnMount;var $=e_(c,QO),B="".concat(be,"-message-list"),R=ci(s,[uu]),P=WO(R,1),w=P[0];return G.createElement("div",ai({},$,{className:Ce(B,j)}),g&&G.createElement("div",{className:Ce("".concat(B,"__loading-more"),za({},"".concat(B,"__loading-more--bottom"),b==="bottom"))},G.createElement(ap,null)),m&&G.createElement(rO,null,G.createElement(ap,null)),G.createElement(ub,ai({onYReachStart:y,onYReachEnd:S,onSync:function(M){return M.update(C)},className:"".concat(B,"__scroll-wrapper"),ref:this.scrollRef,containerRef:function(M){return i.containerRef.current=M},options:{suppressScrollX:!0}},za({},"data-".concat(be,"-message-list"),""),{style:{overscrollBehaviorY:"none",overflowAnchor:"auto",touchAction:"none"}}),w||s,G.createElement("div",{className:"".concat(B,"__scroll-to"),ref:this.scrollPointRef})),typeof d<"u"&&G.createElement("div",{className:"".concat(B,"__typing-indicator-container")},d))}}]),r}(G.Component);vd.displayName="MessageList";function c_(n,r){var o=q.useRef(),i=function(s){return o.current.scrollToEnd(s)};return q.useImperativeHandle(r,function(){return{scrollToBottom:i}}),G.createElement(vd,ai({ref:o},n))}var qr=q.forwardRef(c_);qr.propTypes={children:Op([bt,ou,qO,uu]),typingIndicator:oe.node,loading:oe.bool,loadingMore:oe.bool,loadingMorePosition:oe.oneOf(["top","bottom"]),onYReachStart:oe.func,onYReachEnd:oe.func,disableOnYReachWhenNoScroll:oe.bool,autoScrollToBottom:oe.bool,autoScrollToBottomOnMount:oe.bool,scrollBehavior:oe.oneOf(["auto","smooth"]),className:oe.string};qr.defaultProps={typingIndicator:void 0,loading:!1,loadingMore:!1,loadingMorePosition:"top",disableOnYReachWhenNoScroll:!1,autoScrollToBottom:!0,autoScrollToBottomOnMount:!0,scrollBehavior:"auto"};vd.defaultProps=qr.defaultProps;qr.Content=uu;function Ur(n){"@babel/helpers - typeof";return Ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ur(n)}function s_(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function f_(n,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,db(i.key),i)}}function d_(n,r,o){return r&&f_(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function m_(n,r,o){return r=Qo(r),v_(n,fb()?Reflect.construct(r,o||[],Qo(n).constructor):r.apply(n,o))}function v_(n,r){if(r&&(Ur(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return La(n)}function fb(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fb=function(){return!!n})()}function Qo(n){return Qo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},Qo(n)}function La(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function g_(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),r&&Mf(n,r)}function Mf(n,r){return Mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},Mf(n,r)}function Gs(n,r,o){return r=db(r),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function db(n){var r=h_(n,"string");return Ur(r)=="symbol"?r:String(r)}function h_(n,r){if(Ur(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r);if(Ur(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}var p_=function(r,o){var i=document.activeElement===r,c=document.createTextNode("");if(r.appendChild(c),c!==null&&c.nodeValue!==null&&(i||o)){var s=window.getSelection();if(s!==null){var d=document.createRange();d.setStart(c,c.nodeValue.length),d.collapse(!0),s.removeAllRanges(),s.addRange(d)}}},b_=function(n){g_(r,n);function r(o){var i;return s_(this,r),i=m_(this,r,[o]),Gs(La(i),"innerHTML",function(){var c=La(i),s=c.props.value;return{__html:typeof s<"u"?s:""}}),Gs(La(i),"handleKeyPress",function(c){var s=La(i),d=s.props.onKeyPress;d==null||d(c)}),Gs(La(i),"handleInput",function(c){var s=La(i),d=s.props.onChange,m=c.target;d==null||d(m.innerHTML,m.textContent,m.innerText)}),i.msgRef=G.createRef(),i}return d_(r,[{key:"focus",value:function(){typeof this.msgRef.current<"u"&&this.msgRef.current.focus()}},{key:"componentDidMount",value:function(){this.props.autoFocus===!0&&this.msgRef.current.focus()}},{key:"shouldComponentUpdate",value:function(i){var c=this.msgRef,s=this.props,d=s.placeholder,m=s.disabled,g=s.activateAfterChange;return typeof c.current>"u"||i.value!==c.current.innerHTML?!0:d!==i.placeholder||m!==i.disabled||g!==i.activateAfterChange}},{key:"componentDidUpdate",value:function(){var i=this.msgRef,c=this.props,s=c.value,d=c.activateAfterChange;s!==i.current.innerHTML&&(i.current.innerHTML=typeof s=="string"?s:""),p_(i.current,d)}},{key:"render",value:function(){var i=this.msgRef,c=this.handleInput,s=this.handleKeyPress,d=this.innerHTML,m=this.props,g=m.placeholder,b=m.disabled,y=m.className,S=typeof g=="string"?g:"";return G.createElement("div",{ref:i,className:y,contentEditable:b===!1,disabled:b,"data-placeholder":S,onInput:c,onKeyPress:s,dangerouslySetInnerHTML:d()})}}]),r}(q.Component);function Yr(n){"@babel/helpers - typeof";return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Yr(n)}var y_=["fancyScroll","children","forwardedRef"],x_=["value","onSend","onChange","autoFocus","placeholder","fancyScroll","className","activateAfterChange","disabled","sendDisabled","sendOnReturnDisabled","attachDisabled","sendButton","attachButton","onAttachClick"];function S_(n,r,o){return r=vb(r),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function Rf(n,r){return E_(n)||w_(n,r)||__(n,r)||O_()}function O_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function __(n,r){if(n){if(typeof n=="string")return cp(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return cp(n,r)}}function cp(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,i=new Array(r);o<r;o++)i[o]=n[o];return i}function w_(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,c,s,d,m=[],g=!0,b=!1;try{if(s=(o=o.call(n)).next,r!==0)for(;!(g=(i=s.call(o)).done)&&(m.push(i.value),m.length!==r);g=!0);}catch(y){b=!0,c=y}finally{try{if(!g&&o.return!=null&&(d=o.return(),Object(d)!==d))return}finally{if(b)throw c}}return m}}function E_(n){if(Array.isArray(n))return n}function zr(){return zr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},zr.apply(this,arguments)}function mb(n,r){if(n==null)return{};var o=j_(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function j_(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}function N_(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function A_(n,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,vb(i.key),i)}}function T_(n,r,o){return r&&A_(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function vb(n){var r=C_(n,"string");return Yr(r)=="symbol"?r:String(r)}function C_(n,r){if(Yr(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r);if(Yr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function k_(n,r,o){return r=Wo(r),M_(n,gb()?Reflect.construct(r,o||[],Wo(n).constructor):r.apply(n,o))}function M_(n,r){if(r&&(Yr(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R_(n)}function R_(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function gb(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gb=function(){return!!n})()}function Wo(n){return Wo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},Wo(n)}function D_(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),r&&Df(n,r)}function Df(n,r){return Df=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},Df(n,r)}function z_(){var n=function(r){D_(o,r);function o(){return N_(this,o),k_(this,o,arguments)}return T_(o,[{key:"render",value:function(){var c=this.props,s=c.fancyScroll,d=c.children,m=c.forwardedRef,g=mb(c,y_);return G.createElement(G.Fragment,null,s===!0&&G.createElement(ub,zr({ref:function(y){return m.current=y}},g,{options:{suppressScrollX:!0}}),d),s===!1&&G.createElement("div",zr({ref:m},g),d))}}]),o}(q.Component);return G.forwardRef(function(r,o){return G.createElement(n,zr({forwardedRef:o},r))})}var L_=z_(),sp=function(r,o){var i=typeof r<"u"?r:o,c=q.useState(i),s=Rf(c,2),d=s[0],m=s[1],g=typeof r<"u"?r:d;return[g,function(b){m(b)}]};function H_(n,r){var o=n.value,i=o===void 0?void 0:o,c=n.onSend,s=c===void 0?Mo:c,d=n.onChange,m=d===void 0?Mo:d,g=n.autoFocus,b=g===void 0?!1:g,y=n.placeholder,S=y===void 0?"":y,j=n.fancyScroll,C=j===void 0?!0:j,$=n.className,B=n.activateAfterChange,R=B===void 0?!1:B,P=n.disabled,w=P===void 0?!1:P,_=n.sendDisabled,M=n.sendOnReturnDisabled,A=M===void 0?!1:M,N=n.attachDisabled,X=N===void 0?!1:N,V=n.sendButton,Y=V===void 0?!0:V,ne=n.attachButton,ee=ne===void 0?!0:ne,Q=n.onAttachClick,ce=Q===void 0?Mo:Q,pe=mb(n,x_),le=q.useRef(),k=q.useRef(),I=sp(i,""),D=Rf(I,2),ue=D[0],x=D[1],K=sp(_,!0),te=Rf(K,2),ae=te[0],re=te[1],fe=function(){typeof k.current<"u"&&k.current.focus()};q.useImperativeHandle(r,function(){return{focus:fe}}),q.useEffect(function(){b===!0&&fe()},[]),q.useEffect(function(){typeof le.current.updateScroll=="function"&&le.current.updateScroll()});var F=function(){var Xe=k.current.msgRef.current;return[Xe.textContent,Xe.innerText,Xe.cloneNode(!0).childNodes]},ye=function(){if(ue.length>0){i===void 0&&x(""),typeof _>"u"&&re(!0);var Xe=F();s(ue,Xe[0],Xe[1],Xe[2])}},xe=function(Xe){Xe.key==="Enter"&&Xe.shiftKey===!1&&A===!1&&(Xe.preventDefault(),ye())},Pe=function(Xe,hn,Gr){x(Xe),typeof _>"u"&&re(hn.length===0),typeof le.current.updateScroll=="function"&&le.current.updateScroll();var Ba=F();m(Xe,hn,Gr,Ba[2])},dt="".concat(be,"-message-input"),Ct=typeof S=="string"?S:"";return G.createElement("div",zr({},pe,{className:Ce(dt,S_({},"".concat(dt,"--disabled"),w),$)}),ee===!0&&G.createElement("div",{className:"".concat(dt,"__tools")},G.createElement(iS,{onClick:ce,disabled:w===!0||X===!0})),G.createElement("div",{className:"".concat(dt,"__content-editor-wrapper")},G.createElement(L_,{fancyScroll:C,ref:le,className:"".concat(dt,"__content-editor-container")},G.createElement(b_,{ref:k,className:"".concat(dt,"__content-editor"),disabled:w,placeholder:Ct,onKeyPress:xe,onChange:Pe,activateAfterChange:R,value:ue}))),Y===!0&&G.createElement("div",{className:"".concat(dt,"__tools")},G.createElement(eS,{onClick:ye,disabled:w===!0||ae===!0})))}var cu=q.forwardRef(H_);cu.displayName="MessageInput";cu.propTypes={value:oe.string,placeholder:oe.string,disabled:oe.bool,sendOnReturnDisabled:oe.bool,sendDisabled:oe.bool,fancyScroll:oe.bool,activateAfterChange:oe.bool,autoFocus:oe.bool,onChange:oe.func,onSend:oe.func,className:oe.string,sendButton:oe.bool,attachButton:oe.bool,attachDisabled:oe.bool,onAttachClick:oe.func};var $_=["className","children"];function zf(){return zf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},zf.apply(this,arguments)}function U_(n,r){if(n==null)return{};var o=Y_(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function Y_(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var hb=function(r){var o=r.className,i=r.children,c=U_(r,$_),s="".concat(be,"-input-toolbox");return G.createElement("div",zf({},c,{className:Ce(s,o)}),i)};hb.displayName="InputToolbox";var B_=["children","className"];function Lf(){return Lf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},Lf.apply(this,arguments)}function P_(n,r){return K_(n)||G_(n,r)||q_(n,r)||X_()}function X_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q_(n,r){if(n){if(typeof n=="string")return fp(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return fp(n,r)}}function fp(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,i=new Array(r);o<r;o++)i[o]=n[o];return i}function G_(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,c,s,d,m=[],g=!0,b=!1;try{if(s=(o=o.call(n)).next,r!==0)for(;!(g=(i=s.call(o)).done)&&(m.push(i.value),m.length!==r);g=!0);}catch(y){b=!0,c=y}finally{try{if(!g&&o.return!=null&&(d=o.return(),Object(d)!==d))return}finally{if(b)throw c}}return m}}function K_(n){if(Array.isArray(n))return n}function V_(n,r){if(n==null)return{};var o=Q_(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function Q_(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var W_=function(r){var o=r.children,i=o===void 0?void 0:o,c=r.className,s=V_(r,B_),d="".concat(be,"-chat-container"),m=ci(i,[fi,qr,cu,hb]),g=P_(m,4),b=g[0],y=g[1],S=g[2],j=g[3];return G.createElement("div",Lf({},s,{className:Ce(d,c)}),b,y,S,j)},$a="".concat(be,"-conversation");function ri(n){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ri(n)}var Z_=["children","className","visible"];function Hf(){return Hf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},Hf.apply(this,arguments)}function I_(n,r,o){return r=J_(r),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function J_(n){var r=F_(n,"string");return ri(r)=="symbol"?r:String(r)}function F_(n,r){if(ri(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r);if(ri(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function ew(n,r){if(n==null)return{};var o=tw(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function tw(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var nw=function(r){var o=r.children,i=r.className,c=r.visible,s=ew(r,Z_);return G.createElement("div",Hf({},s,{className:Ce("".concat($a,"__operations"),I_({},"".concat($a,"__operations--visible"),c),i)}),G.Children.count(o)>0?o:G.createElement(gn,{icon:Qx.faEllipsisV}))};nw.displayName="Conversation.Operations";var aw=["lastSenderName","info","name","children","className"];function $f(){return $f=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},$f.apply(this,arguments)}function Uf(n){"@babel/helpers - typeof";return Uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Uf(n)}function rw(n,r){if(n==null)return{};var o=lw(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function lw(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var iw=function(r){var o=r.name;return G.createElement(G.Fragment,null,G.createElement("div",{className:"".concat($a,"__last-sender")},o),":")},ow=function(r){var o=r.info;return G.createElement("div",{className:"".concat($a,"__info-content")},o)},uw=function(r){var o=r.lastSenderName,i=r.info,c=r.name,s=r.children,d=r.className,m=rw(r,aw),g=Uf(o);return G.createElement("div",$f({},m,{className:Ce("".concat($a,"__content"),d)}),G.Children.count(s)>0?s:G.createElement(G.Fragment,null,G.createElement("div",{className:"".concat($a,"__name")},c),G.createElement("div",{className:"".concat($a,"__info")},g!=="undefined"?G.createElement(G.Fragment,null,g==="string"?G.createElement(iw,{name:o}):o," "):null,typeof i<"u"&&G.createElement(ow,{info:i}))))};uw.displayName="Conversation.Content";function li(n){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},li(n)}var cw=["responsive","children","className"];function Yf(){return Yf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},Yf.apply(this,arguments)}function sw(n,r,o){return r=fw(r),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function fw(n){var r=dw(n,"string");return li(r)=="symbol"?r:String(r)}function dw(n,r){if(li(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r);if(li(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function mw(n,r){if(n==null)return{};var o=vw(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function vw(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var gw=function(r){var o=r.responsive,i=o===void 0?!1:o,c=r.children,s=c===void 0?void 0:c,d=r.className,m=mw(r,cw),g="".concat(be,"-main-container");return G.createElement("div",Yf({},m,{className:Ce(g,sw({},"".concat(g,"--responsive"),i),d)}),s)};/*!
 * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 */var hw={prefix:"fas",iconName:"search",icon:[512,512,[],"f002","M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]},pw={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]};function ii(n){"@babel/helpers - typeof";return ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ii(n)}var bw=["placeholder","value","onChange","onClearClick","className","disabled"];function Bf(){return Bf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},Bf.apply(this,arguments)}function dp(n,r,o){return r=yw(r),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function yw(n){var r=xw(n,"string");return ii(r)=="symbol"?r:String(r)}function xw(n,r){if(ii(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r);if(ii(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function mp(n,r){return ww(n)||_w(n,r)||Ow(n,r)||Sw()}function Sw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ow(n,r){if(n){if(typeof n=="string")return vp(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return vp(n,r)}}function vp(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,i=new Array(r);o<r;o++)i[o]=n[o];return i}function _w(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,c,s,d,m=[],g=!0,b=!1;try{if(s=(o=o.call(n)).next,r!==0)for(;!(g=(i=s.call(o)).done)&&(m.push(i.value),m.length!==r);g=!0);}catch(y){b=!0,c=y}finally{try{if(!g&&o.return!=null&&(d=o.return(),Object(d)!==d))return}finally{if(b)throw c}}return m}}function ww(n){if(Array.isArray(n))return n}function Ew(n,r){if(n==null)return{};var o=jw(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function jw(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}var Nw=function(r,o){return typeof o>"u"?q.useState(r):[o,function(){}]};function Aw(n,r){var o=n.placeholder,i=o===void 0?"":o,c=n.value,s=c===void 0?void 0:c,d=n.onChange,m=d===void 0?function(){}:d,g=n.onClearClick,b=g===void 0?function(){}:g,y=n.className,S=n.disabled,j=S===void 0?!1:S,C=Ew(n,bw),$="".concat(be,"-search"),B=q.useMemo(function(){return typeof s<"u"},[]),R=Nw("",s),P=mp(R,2),w=P[0],_=P[1],M=q.useState(B?w.length>0:!1),A=mp(M,2),N=A[0],X=A[1];if(B!==typeof s<"u")throw"Search: Changing from controlled to uncontrolled component and vice versa is not allowed";var V=q.useRef(void 0),Y=function(){typeof V.current<"u"&&V.current.focus()};q.useImperativeHandle(r,function(){return{focus:Y}});var ne=function(ce){var pe=ce.target.value;X(pe.length>0),B===!1&&_(pe),m(pe)},ee=function(){B===!1&&_(""),X(!1),b()};return G.createElement("div",Bf({},C,{className:Ce($,dp({},"".concat($,"--disabled"),j),y)}),G.createElement(gn,{icon:hw,className:"".concat($,"__search-icon")}),G.createElement("input",{ref:V,type:"text",className:"".concat($,"__input"),placeholder:i,onChange:ne,disabled:j,value:w}),G.createElement(gn,{icon:pw,className:Ce("".concat($,"__clear-icon"),dp({},"".concat($,"__clear-icon--active"),N)),onClick:ee}))}var pb=q.forwardRef(Aw);pb.displayName="Search";pb.propTypes={placeholder:oe.string,value:oe.string,onChange:oe.func,onClearClick:oe.func,className:oe.string,disabled:oe.bool};function oi(n){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},oi(n)}var Tw=["className","children","size","selected","onChange","itemsTabIndex"];function Pf(){return Pf=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},Pf.apply(this,arguments)}function Cw(n,r,o){return r=kw(r),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function kw(n){var r=Mw(n,"string");return oi(r)=="symbol"?r:String(r)}function Mw(n,r){if(oi(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r);if(oi(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function Rw(n,r){if(n==null)return{};var o=Dw(n,r),i,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(c=0;c<s.length;c++)i=s[c],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}function Dw(n,r){if(n==null)return{};var o={},i=Object.keys(n),c,s;for(s=0;s<i.length;s++)c=i[s],!(r.indexOf(c)>=0)&&(o[c]=n[c]);return o}function zw(n,r){var o=n.className,i=n.children,c=n.size,s=n.selected,d=n.onChange,m=d===void 0?Mo:d,g=n.itemsTabIndex,b=Rw(n,Tw),y="".concat(be,"-status-list"),S=q.useRef();q.useImperativeHandle(r,function(){return{focus:function($){var B=Array.from(S.current.querySelectorAll("li")),R=B.filter(function(P){return P.parentNode===S.current});typeof R[$]<"u"&&R[$].focus()}}});var j=g;return G.createElement("ul",Pf({ref:S},b,{className:Ce(y,o,Cw({},"".concat(y,"--").concat(c),c))}),G.Children.map(i,function(C){var $={};s&&($.selected=C.props.status===s),m&&($.onClick=function(P){m(C.props.status),C.onClick&&C.onClick(P)});var B=function(w){m&&w.key==="Enter"&&w.shiftKey===!1&&w.altKey===!1&&m(C.props.status)},R=function(){if(typeof j=="number")return j>0?j++:j}();return G.createElement("li",{tabIndex:R,onKeyPress:B},G.cloneElement(C,$))}))}var bb=q.forwardRef(zw);bb.displayName="StatusList";bb.propTypes={children:Op([xp]),selected:oe.oneOf(bp),size:oe.oneOf(yp),itemsTabIndex:oe.number,className:oe.string,onChange:oe.func};const Lw=({blocks:n})=>!n||n.length===0?h.jsx("span",{className:"text-xs text-dracula-comment italic",children:"Assistant is thinking..."}):h.jsx("div",{className:"streaming-message-content flex flex-col space-y-2",children:n.map((r,o)=>{const i=`${r.type}-${r.id||o}`;switch(r.type){case"text":return h.jsx("div",{className:"text-white whitespace-pre-wrap",children:h.jsxs("pre",{children:[h.jsx("strong",{children:"[Text]:"})," ",r.text]})},i);case"thinking_finalized":return h.jsx("div",{className:"p-2 my-1 bg-dracula-current-line bg-opacity-50 rounded-md text-dracula-comment italic",children:h.jsxs("pre",{children:[h.jsx("strong",{children:"[Thinking]:"})," ",r.text]})},i);case"tool_use":return h.jsxs("div",{className:"p-2 my-1 bg-dracula-purple bg-opacity-20 rounded-md",children:[h.jsxs("pre",{children:[h.jsx("strong",{children:"[Tool Call]:"})," ",r.name," (ID: ",r.id,")"]}),h.jsxs("pre",{className:"mt-1 text-xs",children:["Input: ",JSON.stringify(r.input,null,2)]})]},i);case"tool_result":return h.jsxs("div",{className:`p-2 my-1 rounded-md ${r.is_error?"bg-dracula-red bg-opacity-20":"bg-dracula-green bg-opacity-20"}`,children:[h.jsx("pre",{children:h.jsxs("strong",{children:["[Tool Result for ID: ",r.tool_use_id,"]:"]})}),h.jsx("pre",{className:"mt-1 text-xs",children:typeof r.content=="string"?r.content:JSON.stringify(r.content,null,2)})]},i);case"final_response_data":return h.jsxs("div",{className:"p-2 my-1 bg-dracula-selection rounded-md",children:[h.jsx("pre",{children:h.jsx("strong",{children:"[Final Response Data]:"})}),h.jsx("pre",{className:"mt-1 text-xs",children:r.text})," "]},i);case"processed_raw_text":return h.jsx("div",{className:"p-2 my-1 bg-yellow-500 text-black rounded-md",children:h.jsxs("pre",{children:[h.jsx("strong",{children:"[DIAGNOSTIC - PROCESSED RAW TEXT]:"})," ",r.text]})},i);default:return h.jsx("div",{className:"text-xs text-dracula-orange",children:h.jsxs("pre",{children:[h.jsxs("strong",{children:["[Unknown Block Type: ",r.type,"]"]})," ",JSON.stringify(r,null,2)]})},i)}})}),Hw=async(n,r,o=!1)=>{o||r(`Fetching configuration for agent: ${n}...`);const i=await fa("agents",n);if(o||r(`Agent configuration for ${n} fetched.`),i&&i.llm_config_id){o||r(`Fetching LLM configuration: ${i.llm_config_id}...`);const c=await fa("llms",i.llm_config_id);o||r(`LLM configuration ${i.llm_config_id} fetched. Registering...`),await gp(c),o||r(`LLM configuration ${i.llm_config_id} registered/updated.`)}else i&&!i.llm_config_id&&(o||r(`Agent ${n} does not have an LLM configuration specified. Skipping LLM registration.`));o||r(`Registering/updating agent: ${n}...`),await hp(i),o||r(`Agent ${n} registered/updated.`)},$w=({agentName:n,onClose:r})=>{const[o,i]=q.useState([]),[c,s]=q.useState(!1),d=q.useRef(null),[m,g]=q.useState(!1),[b,y]=q.useState(null),S=q.useRef({blockId:null,llmMessageIndex:null}),j=(R="block")=>`${R}-${Date.now()}-${Math.random().toString(36).substring(2,11)}`,C=(R,P,w=!1,_)=>{const M=R==="assistant"&&w?P:j(`msg-${R}`),A={id:M,role:R,timestamp:new Date,isStreaming:R==="assistant"?w:!1};return R==="assistant"&&w?A.contentBlocks=_||[]:A.content=P,i(N=>[...N,A]),M};q.useEffect(()=>{(async()=>{if(n){g(!0),i([]),y(null),d.current&&(d.current.close(),d.current=null);try{await Hw(n,P=>C("system",P),!0)}catch(P){const w=P instanceof Error?P.message:"Failed to initialize agent session.";C("error",`Initialization Error: ${w}`),y(w),console.error(`Error initializing agent ${n}:`,P)}finally{g(!1)}}})()},[n]),q.useEffect(()=>()=>{d.current&&d.current.close()},[]);const $=async R=>{if(console.log("%cAGENT CHAT VIEW: handleSend CALLED","color: lime; font-weight: bold; font-size: 1.2em;"),!R.trim()||m||c)return;C("user",R),s(!0),y(null);const P=j("assistant-msg");C("assistant",P,!0,[]),S.current={blockId:null,llmMessageIndex:null};const w=new URLSearchParams({user_message:R}),_=await fa("agents",n);_!=null&&_.system_prompt&&w.append("system_prompt",_.system_prompt);const{apiKey:M}=Jo.getState();M&&w.append("api_key",M);const A=`/api/agents/${n}/execute-stream?${w.toString()}`;d.current&&d.current.close();const N=new EventSource(A);d.current=N;const X=(V,Y)=>{i(ne=>ne.map(ee=>{if(ee.id===P){const Q=ee.contentBlocks||[];console.log(`%c[${V}] BEFORE update for ${P}`,"color: orange;",JSON.parse(JSON.stringify(Q)));const ce=Y(Q);return console.log(`%c[${V}] AFTER update for ${P}`,"color: lightgreen;",JSON.parse(JSON.stringify(ce))),{...ee,contentBlocks:ce}}return ee}))};N.onopen=()=>console.log("SSE connection opened."),N.onerror=V=>{var Y;console.error("SSE Error:",V),C("error","Streaming connection error."),y("Streaming connection error."),s(!1),(Y=d.current)==null||Y.close()},N.addEventListener("text_delta",V=>{console.log("%cTEXT_DELTA event received","color: cyan",V.data);try{const Y=JSON.parse(V.data),{index:ne,text_chunk:ee}=Y;if(typeof ne!="number"||typeof ee!="string"){console.error("[text_delta] Invalid eventData:",Y);return}console.log(`%c[text_delta] Processing: index=${ne}, chunk="${ee}"`,"color: cyan"),X("text_delta",Q=>{let ce=[...Q],pe=!1;if(console.log("%c[text_delta] currentStreamingTextInfoRef at START:","color: blue",JSON.parse(JSON.stringify(S.current))),S.current.blockId&&S.current.llmMessageIndex===ne){const le=ce.find(k=>k.id===S.current.blockId);le&&le.type==="text"&&!le._finalized?(console.log(`%c[text_delta] Updating block VIA REF: ${le.id}`,"color: green; font-weight: bold;"),le.text=(le.text||"")+ee,pe=!0):le?(console.warn(`%c[text_delta] Ref block ${le.id} is not a valid target (type: ${le.type}, finalized: ${le._finalized}). Clearing ref.`,"color: orange"),S.current={blockId:null,llmMessageIndex:null}):(console.log(`%c[text_delta] Ref block ${S.current.blockId} NOT FOUND in currentBlocks snapshot. Assuming it will appear. Skipping new block creation for this chunk.`,"color: purple"),pe=!0)}if(!pe){let le=ce.find(k=>k.type==="text"&&k._originalIndex===ne&&!k._finalized);if(le)console.log(`%c[text_delta] Found and updating OTHER existing block: ${le.id}. Setting ref.`,"color: green;"),le.text=(le.text||"")+ee,S.current={blockId:le.id,llmMessageIndex:ne};else{console.log(`%c[text_delta] No block found via ref or existing search. Creating NEW text block for index ${ne}`,"color: yellow; font-weight: bold;");const k=j(`text-idx${ne}`),I={type:"text",text:ee,id:k,_originalIndex:ne,_finalized:!1};ce.push(I),S.current={blockId:k,llmMessageIndex:ne}}}return console.log("%c[text_delta] currentStreamingTextInfoRef at END:","color: blue",JSON.parse(JSON.stringify(S.current))),console.log("%c[text_delta] END processing event","color: cyan"),ce.filter(le=>le.type!=="placeholder")})}catch(Y){console.error("Error in text_delta handler:",Y,V.data)}}),N.addEventListener("tool_use_start",V=>{console.log("%cTOOL_USE_START event received","color: magenta",V.data);try{const Y=JSON.parse(V.data),{index:ne,tool_name:ee,tool_id:Q}=Y;if(typeof ne!="number"||!ee||!Q){console.error("[tool_use_start] Invalid eventData:",Y);return}console.log(`%c[tool_use_start] Processing: index=${ne}, tool_name=${ee}, tool_id=${Q}`,"color: magenta"),S.current={blockId:null,llmMessageIndex:null},X("tool_use_start",ce=>[...ce.filter(pe=>pe.type!=="placeholder"),{type:"tool_use",id:Q,name:ee,input:{},_originalIndex:ne,_inputFinalized:!1}])}catch(Y){console.error("Error in tool_use_start handler:",Y,V.data)}}),N.addEventListener("content_block_stop",V=>{console.log("%cCONTENT_BLOCK_STOP event received","color: red; font-weight: bold;",V.data);try{const Y=JSON.parse(V.data),{index:ne,content_type:ee,tool_id:Q,full_tool_input:ce}=Y;if(typeof ne!="number"&&!Q){console.error("[content_block_stop] Invalid eventData - missing llmMessageIndex (and not a tool_use with tool_id):",Y);return}console.log(`%c[content_block_stop] Processing: content_type=${ee}, index=${ne}, event_tool_id=${Q}, has_full_tool_input=${!!ce}`,"color: red; font-weight: bold;"),X("content_block_stop",pe=>{let le=[...pe],k=!1;for(let I=0;I<le.length&&!k;I++){const D=le[I];if(ee==="tool_use"&&Q&&D.type==="tool_use"&&D.id===Q&&!D._inputFinalized){console.log(`%c[content_block_stop TOOL_USE (explicit)] Matched tool block by tool_id: ${Q}`,"color: red; font-weight: bold;");const ue=D;if(typeof ce=="string")try{ue.input=JSON.parse(ce),console.log(`%c[content_block_stop TOOL_USE (explicit)] Parsed full_tool_input for ${Q}:`,"color: red;",JSON.parse(JSON.stringify(ue.input)))}catch(x){console.error("Failed to parse full_tool_input JSON:",x,ce),ue.input={error:"Failed to parse full_tool_input JSON",raw:ce}}else console.warn(`%c[content_block_stop TOOL_USE (explicit)] full_tool_input is not a string for ${Q}. Setting input to empty.`,"color: orange",ce),ue.input={};ue._inputFinalized=!0,le[I]=ue,k=!0;break}else if(D.type==="text"&&D._originalIndex===ne&&!D._finalized&&ee!=="tool_use"){console.log(`%c[content_block_stop TEXT] Matched block: id=${D.id}, text="${D.text}"`,"color: red; font-weight: bold;"),S.current.blockId===D.id&&(console.log(`%c[content_block_stop TEXT] Clearing currentStreamingTextInfoRef for block ${D.id}`,"color: red;"),S.current={blockId:null,llmMessageIndex:null});const ue=[];if(D.text){const x=D.text;console.log(`%c[content_block_stop TEXT] Raw text to process: "${x}"`,"color: red;");const K=/<thinking>([\s\S]*?)<\/thinking>/gi;let te=0,ae;for(;(ae=K.exec(x))!==null;){const fe=x.substring(te,ae.index).trim();fe&&ue.push({type:"text",text:fe,id:j("txt-seg"),_finalized:!0,_originalIndex:D._originalIndex});const F=ae[1].trim();F&&ue.push({type:"thinking_finalized",text:F,id:j("thk-fin"),_finalized:!0,_originalIndex:D._originalIndex}),te=K.lastIndex}const re=x.substring(te).trim();if(re)try{const fe=JSON.parse(re);ue.push({type:"final_response_data",parsedJson:fe,text:re,id:j("json-fin"),_finalized:!0,_originalIndex:D._originalIndex})}catch{ue.push({type:"text",text:re,id:j("txt-fin"),_finalized:!0,_originalIndex:D._originalIndex})}console.log("%c[content_block_stop TEXT] Processed sub-blocks:","color: red;",JSON.parse(JSON.stringify(ue)))}ue.length>0?(console.log(`%c[content_block_stop TEXT] Splicing ${ue.length} sub-blocks for original block ${D.id}`,"color: red; font-weight: bold;"),le.splice(I,1,...ue),I+=ue.length-1):(console.log(`%c[content_block_stop TEXT] No sub-blocks after parsing block ${D.id}. Removing original.`,"color: red; font-weight: bold;"),le.splice(I,1),I--),k=!0;break}}return console.log(`%c[content_block_stop] END processing event. Processed flag: ${k}`,"color: red;"),le.filter(I=>I.type!=="placeholder")})}catch(Y){console.error("Error in content_block_stop handler:",Y,V.data)}}),N.addEventListener("tool_result",V=>{console.log("%cTOOL_RESULT event received","color: green",V.data);try{const Y=JSON.parse(V.data),{tool_use_id:ne,output:ee,is_error:Q,name:ce}=Y;if(!ne||ee===void 0){console.error("[tool_result] Invalid eventData:",Y);return}console.log(`%c[tool_result] Processing: tool_use_id=${ne}, is_error=${Q}`,"color: green"),S.current={blockId:null,llmMessageIndex:null},X("tool_result",pe=>{const le=[...pe],k=le.findIndex(D=>D.type==="tool_use"&&D.id===ne),I={type:"tool_result",id:j(`tool-res-${ne}`),tool_use_id:ne,content:ee,is_error:!!Q,name:ce,_finalized:!0};return k!==-1?le.splice(k+1,0,I):(console.warn(`[tool_result] Tool call with id ${ne} not found. Appending result.`),le.push(I)),console.log("%c[tool_result] END processing event","color: green"),le.filter(D=>D.type!=="placeholder")})}catch(Y){console.error("Error in tool_result handler:",Y,V.data)}}),N.addEventListener("tool_execution_error",V=>{console.log("%cTOOL_EXECUTION_ERROR event received","color: orange",V.data);try{const Y=JSON.parse(V.data),{tool_use_id:ne,error_message:ee,tool_name:Q}=Y;if(!ne||!ee){console.error("[tool_execution_error] Invalid eventData:",Y);return}console.log(`%c[tool_execution_error] Processing: tool_use_id=${ne}, tool_name=${Q}`,"color: orange"),S.current={blockId:null,llmMessageIndex:null},X("tool_execution_error",ce=>{const pe=[...ce],le=pe.findIndex(I=>I.type==="tool_use"&&I.id===ne),k={type:"tool_result",id:j(`tool-err-${ne}`),tool_use_id:ne,content:ee,is_error:!0,name:Q,_finalized:!0};return le!==-1?pe.splice(le+1,0,k):(console.warn(`[tool_execution_error] Tool call with id ${ne} not found. Appending error.`),pe.push(k)),console.log("%c[tool_execution_error] END processing event","color: orange"),pe.filter(I=>I.type!=="placeholder")})}catch(Y){console.error("Error in tool_execution_error handler:",Y,V.data)}}),N.addEventListener("stream_end",V=>{var Y;console.log("%cSSE STREAM_END event received","color: gray",V.data),S.current={blockId:null,llmMessageIndex:null},s(!1),i(ne=>ne.map(ee=>ee.id===P?{...ee,isStreaming:!1}:ee)),(Y=d.current)==null||Y.close()})},B=R=>R==="user"?"outgoing":"incoming";return h.jsxs("div",{className:"flex flex-col h-[calc(100vh-15rem)] bg-dracula-background p-0 rounded-lg shadow-md border border-dracula-current-line max-w-6xl mx-auto",children:[h.jsxs("div",{className:"flex justify-between items-center p-3 border-b border-dracula-comment bg-dracula-current-line rounded-t-lg",children:[h.jsxs("h3",{className:"text-xl font-semibold text-dracula-cyan",children:["Chat with: ",n]}),h.jsx("button",{onClick:r,className:"text-sm bg-dracula-purple hover:bg-opacity-80 text-dracula-background py-1 px-3 rounded-md focus:outline-none focus:ring-2 focus:ring-dracula-pink",children:"Back to List"})]}),h.jsx("div",{style:{position:"relative",flexGrow:1,overflow:"hidden"},className:"bg-dracula-background",children:h.jsx(gw,{responsive:!0,className:"h-full",children:h.jsxs(W_,{className:"h-full",children:[h.jsx(qr,{className:"bg-dracula-background",children:o.map(R=>{if(R.role==="error")return h.jsx(bt,{model:{sentTime:R.timestamp.toISOString(),sender:R.role,direction:"incoming",position:"single"},children:h.jsx(bt.CustomContent,{children:h.jsxs("div",{className:"p-2 rounded-md text-xs bg-dracula-red bg-opacity-70 text-white",children:[h.jsxs("strong",{children:[R.role.toUpperCase(),":"]})," ",typeof R.content=="string"?R.content:"Error content",h.jsx("div",{className:"text-xs opacity-80 mt-1",children:R.timestamp.toLocaleTimeString()})]})})},R.id);if(R.role==="user")return h.jsx(bt,{model:{message:R.content,sentTime:R.timestamp.toISOString(),sender:R.role,direction:B(R.role),position:"single"}},R.id);if(R.role==="assistant"){if(R.contentBlocks&&R.contentBlocks.length>0)return h.jsx(bt,{model:{sentTime:R.timestamp.toISOString(),sender:R.role,direction:"incoming",position:"single"},children:h.jsxs(bt.CustomContent,{children:[h.jsx(Lw,{blocks:R.contentBlocks}),R.isStreaming&&h.jsx("span",{className:"text-xs text-dracula-comment italic",children:" (streaming...)"})]})},R.id);if(R.content)return typeof R.content=="string"?h.jsx(bt,{model:{message:R.content,sentTime:R.timestamp.toISOString(),sender:R.role,direction:B(R.role),position:"single"}},R.id):h.jsx(bt,{model:{sentTime:R.timestamp.toISOString(),sender:R.role,direction:"incoming",position:"single"},children:h.jsx(bt.CustomContent,{children:R.content})},R.id);if(R.isStreaming)return h.jsx(bt,{model:{sentTime:R.timestamp.toISOString(),sender:R.role,direction:"incoming",position:"single"},children:h.jsx(bt.CustomContent,{children:h.jsx("span",{className:"text-xs text-dracula-comment italic",children:"Assistant is thinking..."})})},R.id)}return null})}),h.jsx(cu,{placeholder:"Type message here...",onSend:$,attachButton:!1,disabled:m||c,sendDisabled:m||c})]})})}),b&&!o.some(R=>R.role==="error")&&h.jsx("p",{className:"text-sm text-dracula-red p-2 text-center",children:b})]})},Uw=({workflowName:n,onClose:r})=>{const[o,i]=q.useState(""),[c,s]=q.useState(null),[d,m]=q.useState(!1),[g,b]=q.useState(null),y=async()=>{if(!o.trim()){b("Input cannot be empty.");return}m(!0),s(null),b(null);try{let S;try{S=JSON.parse(o)}catch{S=o}const j=await Z0(n,S);if(j.status==="completed"){let C=j.result;if(C&&typeof C=="object"&&typeof C.agent_result_text=="string")try{const $=JSON.parse(C.agent_result_text);C={...C,agent_result_text:$}}catch($){console.warn("agent_result_text could not be parsed as JSON:",C.agent_result_text,$)}s(typeof C=="string"?C:JSON.stringify(C,null,2))}else b(j.error||"Workflow execution failed.")}catch(S){console.error("Error executing custom workflow:",S),b(S.message||"An unexpected error occurred during execution.")}finally{m(!1)}};return h.jsxs("div",{className:"flex flex-col h-[calc(100vh-12rem)] bg-dracula-background p-4 rounded-lg shadow-md border border-dracula-current-line max-w-4xl mx-auto",children:[h.jsxs("div",{className:"flex justify-between items-center p-3 border-b border-dracula-comment bg-dracula-current-line rounded-t-lg mb-4",children:[h.jsxs("h3",{className:"text-xl font-semibold text-dracula-cyan",children:["Execute Custom Workflow: ",n]}),h.jsx("button",{onClick:r,className:"text-sm bg-dracula-purple hover:bg-opacity-80 text-dracula-background py-1 px-3 rounded-md focus:outline-none focus:ring-2 focus:ring-dracula-pink",children:"Back to List"})]}),h.jsxs("div",{className:"flex-grow flex flex-col space-y-4 overflow-y-auto",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx("label",{htmlFor:"workflowInput",className:"block text-sm font-medium text-dracula-foreground",children:"Input (JSON or Plain Text):"}),h.jsx("textarea",{id:"workflowInput",value:o,onChange:S=>i(S.target.value),placeholder:"Enter workflow input here...",rows:8,className:"w-full p-2 rounded-md bg-dracula-current-line text-dracula-foreground border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink",disabled:d}),h.jsx("button",{onClick:y,disabled:d||!o.trim(),className:"px-4 py-2 bg-dracula-green text-dracula-background font-semibold rounded-md hover:bg-opacity-90 focus:outline-none focus:ring-2 focus:ring-dracula-pink disabled:bg-dracula-comment disabled:cursor-not-allowed",children:d?"Running...":"Run Workflow"})]}),d&&h.jsx("p",{className:"text-dracula-comment text-center",children:"Running workflow..."}),g&&h.jsxs("div",{className:"p-3 rounded-md bg-dracula-red bg-opacity-30 text-dracula-red border border-dracula-red",children:[h.jsx("p",{className:"font-semibold",children:"Error:"}),h.jsx("pre",{className:"whitespace-pre-wrap text-sm",children:g})]}),c!==null&&h.jsxs("div",{className:"space-y-2",children:[h.jsx("label",{className:"block text-sm font-medium text-dracula-foreground",children:"Output:"}),h.jsx("pre",{className:"w-full p-3 rounded-md bg-dracula-current-line text-dracula-foreground border border-dracula-comment overflow-x-auto text-sm",children:c})]})]})]})},Yw=({workflowName:n,onClose:r})=>{const[o,i]=q.useState(""),[c,s]=q.useState(null),[d,m]=q.useState(!1),[g,b]=q.useState(null),y=async()=>{if(!o.trim()){b("Input message cannot be empty.");return}m(!0),s(null),b(null);try{const S=await J0(n,o);S.status==="completed"?s(S.final_message||"Workflow completed, but no final message was returned."):b(S.error||"Workflow execution failed.")}catch(S){console.error("Error executing simple workflow:",S),b(S.message||"An unexpected error occurred during execution.")}finally{m(!1)}};return h.jsxs("div",{className:"flex flex-col h-[calc(100vh-12rem)] bg-dracula-background p-4 rounded-lg shadow-md border border-dracula-current-line max-w-4xl mx-auto",children:[h.jsxs("div",{className:"flex justify-between items-center p-3 border-b border-dracula-comment bg-dracula-current-line rounded-t-lg mb-4",children:[h.jsxs("h3",{className:"text-xl font-semibold text-dracula-cyan",children:["Execute Simple Workflow: ",n]}),h.jsx("button",{onClick:r,className:"text-sm bg-dracula-purple hover:bg-opacity-80 text-dracula-background py-1 px-3 rounded-md focus:outline-none focus:ring-2 focus:ring-dracula-pink",children:"Back to List"})]}),h.jsxs("div",{className:"flex-grow flex flex-col space-y-4 overflow-y-auto",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx("label",{htmlFor:"workflowInput",className:"block text-sm font-medium text-dracula-foreground",children:"Initial User Message:"}),h.jsx("textarea",{id:"workflowInput",value:o,onChange:S=>i(S.target.value),placeholder:"Enter initial user message here...",rows:8,className:"w-full p-2 rounded-md bg-dracula-current-line text-dracula-foreground border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink",disabled:d}),h.jsx("button",{onClick:y,disabled:d||!o.trim(),className:"px-4 py-2 bg-dracula-green text-dracula-background font-semibold rounded-md hover:bg-opacity-90 focus:outline-none focus:ring-2 focus:ring-dracula-pink disabled:bg-dracula-comment disabled:cursor-not-allowed",children:d?"Running...":"Run Workflow"})]}),d&&h.jsx("p",{className:"text-dracula-comment text-center",children:"Running workflow..."}),g&&h.jsxs("div",{className:"p-3 rounded-md bg-dracula-red bg-opacity-30 text-dracula-red border border-dracula-red",children:[h.jsx("p",{className:"font-semibold",children:"Error:"}),h.jsx("pre",{className:"whitespace-pre-wrap text-sm",children:g})]}),c!==null&&h.jsxs("div",{className:"space-y-2",children:[h.jsx("label",{className:"block text-sm font-medium text-dracula-foreground",children:"Final Message:"}),h.jsx("pre",{className:"w-full p-3 rounded-md bg-dracula-current-line text-dracula-foreground border border-dracula-comment overflow-x-auto text-sm",children:c})]})]})]})},Bw=()=>{const{selectedComponent:n}=Br(),[r,o]=q.useState([]),[i,c]=q.useState([]),[s,d]=q.useState([]),[m,g]=q.useState(!1),[b,y]=q.useState(null),[S,j]=q.useState(null),[C,$]=q.useState(null),[B,R]=q.useState(null),P=q.useCallback(async()=>{g(!0),y(null),o([]),c([]),d([]);const ee=ce=>ce.replace(/\.json$/,""),Q=async(ce,pe,le)=>{const k=new Map;try{const I=await Fo(le);for(const D of I)try{const ue=await eu(le,D);if(Array.isArray(ue))ue.forEach(x=>{const K=x.name;K&&typeof K=="string"?k.set(K,{id:K,displayName:K,type:ce,source:"file"}):console.warn(`Component in file ${D} (type ${le}) is missing a 'name' or has invalid name.`)});else if(typeof ue=="object"&&ue!==null){const x=ue.name||ee(D);x&&typeof x=="string"?k.set(x,{id:x,displayName:x,type:ce,source:"file"}):console.warn(`Could not determine ID for single component in ${D} (type ${le}).`)}else console.warn(`Content of file ${D} (type ${le}) is not an array or a valid object. Skipping.`)}catch(ue){console.error(`Error fetching or parsing content of ${D} for ${le}:`,ue)}}catch(I){console.error(`Error listing config files for ${le}:`,I)}try{(await pe()).forEach(D=>{k.has(D)||k.set(D,{id:D,displayName:D,type:ce,source:"project"})})}catch(I){console.error(`Error listing registered ${ce}:`,I)}return Array.from(k.values()).sort((I,D)=>I.displayName.localeCompare(D.displayName))};try{const ce=[];(n===null||n==="agents")&&ce.push(Q("agents",K0,"agents").then(o)),(n===null||n==="simple_workflows")&&ce.push(Q("simple_workflows",V0,"simple_workflows").then(c)),(n===null||n==="custom_workflows")&&ce.push(Q("custom_workflows",Q0,"custom_workflows").then(d)),await Promise.all(ce)}catch(ce){console.error("Error fetching and merging executable components:",ce),y(ce instanceof Error?ce.message:"An unknown error occurred while fetching components.")}finally{g(!1)}},[n]);q.useEffect(()=>{j(null),$(null),R(null),P()},[n,P]);const w=async ee=>{g(!0),y(null);try{let Q;if(ee.source==="project"?Q=await Kl("agents",ee.id):Q=await fa("agents",ee.id),!Q)throw new Error(`Agent config for ${ee.displayName} not found.`);if(Q.client_ids&&Q.client_ids.length>0){const ce=await F0(),pe=new Set(ce);for(const le of Q.client_ids)if(pe.has(le))console.log(`Client ${le} for agent ${Q.name} is already active.`);else{console.log(`Client ${le} for agent ${Q.name} is not active. Attempting to register...`);try{let k=null;try{k=await Kl("clients",le)}catch{console.warn(`Client config ${le} not found in active project. Trying file-based config.`);try{k=await fa("clients",le)}catch{throw console.error(`Client config ${le} not found in project or as a file. Cannot register.`),new Error(`Required client config ${le} for agent ${Q.name} not found.`)}}if(k)await e1(k),console.log(`Client ${le} registered successfully.`);else throw new Error(`Client config for ${le} could not be loaded for agent ${Q.name}.`)}catch(k){throw console.error(`Error registering client ${le} for agent ${Q.name}:`,k),k}}}if(Q.llm_config_id){let ce=null;try{ce=await Kl("llms",Q.llm_config_id)}catch{console.warn(`LLM config ${Q.llm_config_id} not found in project, trying file-based.`);try{ce=await fa("llms",Q.llm_config_id)}catch{throw console.error(`LLM config ${Q.llm_config_id} not found in project or as file.`),new Error(`Required LLM config ${Q.llm_config_id} not found for agent ${Q.name}.`)}}if(ce)await gp(ce),console.log(`LLM Config ${Q.llm_config_id} registered successfully for agent ${Q.name}.`);else throw new Error(`LLM config ${Q.llm_config_id} could not be loaded for agent ${Q.name}.`)}return await hp(Q),console.log(`Agent ${Q.name} registered successfully.`),g(!1),!0}catch(Q){return console.error(`Error registering agent ${ee.displayName}:`,Q),y(Q.message||`Failed to register agent ${ee.displayName}.`),g(!1),!1}},_=async ee=>{g(!0),y(null);try{let Q;if(ee.source==="project"?Q=await Kl("custom_workflows",ee.id):Q=await fa("custom_workflows",ee.id),!Q)throw new Error(`Custom workflow config for ${ee.displayName} not found.`);return await W0(Q),g(!1),!0}catch(Q){return console.error(`Error registering custom workflow ${ee.displayName}:`,Q),y(Q.message||`Failed to register custom workflow ${ee.displayName}.`),g(!1),!1}},M=async ee=>{g(!0),y(null);try{let Q;if(ee.source==="project"?Q=await Kl("simple_workflows",ee.id):Q=await fa("simple_workflows",ee.id),!Q)throw new Error(`Simple workflow config for ${ee.displayName} not found.`);return await I0(Q),g(!1),!0}catch(Q){return console.error(`Error registering simple workflow ${ee.displayName}:`,Q),y(Q.message||`Failed to register simple workflow ${ee.displayName}.`),g(!1),!1}},A=async ee=>{ee.type==="agents"?await w(ee)&&(j(ee.id),$(null),R(null)):ee.type==="custom_workflows"?await _(ee)&&($(ee.id),j(null),R(null)):ee.type==="simple_workflows"?await M(ee)&&(R(ee.id),j(null),$(null)):(console.log(`Selected ${ee.type}: ${ee.displayName} - Execution UI TBD`),j(null),$(null),R(null))},N=()=>{j(null)},X=()=>{$(null)},V=()=>{R(null)};if(S)return h.jsx($w,{agentName:S,onClose:N});if(C)return h.jsx(Uw,{workflowName:C,onClose:X});if(B)return h.jsx(Yw,{workflowName:B,onClose:V});const Y=(ee,Q,ce)=>S||C||B||n!==null&&n!==ce?null:Q.length===0&&n===ce?h.jsxs("div",{className:"mb-6",children:[h.jsx("h4",{className:"text-xl font-semibold text-dracula-cyan mb-3",children:ee}),h.jsxs("p",{className:"text-dracula-comment",children:["No ",ee.toLowerCase()," available for execution."]})]}):Q.length===0?null:h.jsxs("div",{className:"mb-6",children:[h.jsx("h4",{className:"text-xl font-semibold text-dracula-cyan mb-3",children:ee}),h.jsx("ul",{className:"space-y-2",children:Q.map(pe=>h.jsxs("li",{children:[" ",h.jsxs("button",{onClick:()=>A(pe),className:`w-full text-left p-3 rounded-md text-sm transition-colors duration-150 ease-in-out
                  focus:outline-none focus:ring-2 focus:ring-dracula-cyan
                  bg-dracula-current-line hover:bg-opacity-80 text-dracula-foreground focus:bg-dracula-comment focus:bg-opacity-50
                `,children:[pe.displayName," "]})]},`${pe.type}-${pe.id}`))})]});if(m)return h.jsx("p",{className:"text-dracula-comment p-1",children:"Loading executable components..."});if(b)return h.jsxs("p",{className:"text-dracula-red p-1",children:["Error: ",b]});const ne=r.length===0&&i.length===0&&s.length===0;return h.jsxs("div",{className:"p-1",children:[!S&&!C&&!B&&h.jsx("h3",{className:"text-lg font-semibold text-dracula-purple mb-4",children:n?`Execute ${n.charAt(0).toUpperCase()+n.slice(1)}`:"Select Component to Execute"}),Y("Agents",r,"agents"),Y("Simple Workflows",i,"simple_workflows"),Y("Custom Workflows",s,"custom_workflows"),!S&&!C&&!B&&ne&&!m&&h.jsx("p",{className:"text-dracula-comment",children:n?`No ${n} available for execution.`:"No executable components found."})]})},yb=({isOpen:n,onClose:r,title:o,items:i,selectedIds:c,onConfirmSelection:s})=>{const[d,m]=q.useState(new Set);if(q.useEffect(()=>{n&&m(new Set(c))},[n,c]),!n)return null;const g=S=>{m(j=>{const C=new Set(j);return C.has(S)?C.delete(S):C.add(S),C})},b=()=>{s(Array.from(d)),r()},y=()=>{r()};return h.jsx("div",{className:"fixed inset-0 bg-dracula-background bg-opacity-75 flex items-center justify-center z-50 p-4",children:h.jsxs("div",{className:"bg-dracula-current-line rounded-lg shadow-xl p-6 w-full max-w-md max-h-[80vh] flex flex-col",children:[h.jsx("h2",{className:"text-xl font-semibold text-dracula-pink mb-4",children:o}),h.jsxs("div",{className:"overflow-y-auto mb-4 pr-2 space-y-2 flex-grow",children:[i.length===0&&h.jsx("p",{className:"text-dracula-comment",children:"No items available."}),i.map(S=>h.jsxs("div",{className:"flex items-center p-2 rounded-md hover:bg-dracula-selection transition-colors",children:[h.jsx("input",{type:"checkbox",id:`msm-item-${S.id}`,checked:d.has(S.id),onChange:()=>g(S.id),className:"h-4 w-4 text-dracula-pink bg-dracula-background border-dracula-comment rounded focus:ring-dracula-pink focus:ring-offset-0"}),h.jsx("label",{htmlFor:`msm-item-${S.id}`,className:"ml-3 block text-sm font-medium text-dracula-foreground select-none",children:S.displayName})]},S.id))]}),h.jsxs("div",{className:"flex justify-end space-x-3 pt-4 border-t border-dracula-comment",children:[h.jsx("button",{onClick:y,className:"px-4 py-2 text-sm font-medium text-dracula-foreground bg-dracula-selection hover:bg-opacity-70 rounded-md focus:outline-none focus:ring-2 focus:ring-dracula-pink",children:"Cancel"}),h.jsx("button",{onClick:b,className:"px-4 py-2 text-sm font-medium text-dracula-background bg-dracula-green hover:bg-opacity-90 rounded-md focus:outline-none focus:ring-2 focus:ring-dracula-pink",children:"Confirm Selections"})]})]})})},Pw=()=>{const[n,r]=q.useState(""),[o,i]=q.useState(""),[c,s]=q.useState([]),[d,m]=q.useState("existing"),[g,b]=q.useState(null),[y,S]=q.useState(""),[j,C]=q.useState("0.7"),[$,B]=q.useState("2048"),[R,P]=q.useState("10"),[w,_]=q.useState([]),[M,A]=q.useState([]),[N,X]=q.useState(!1),[V,Y]=q.useState(!1),[ne,ee]=q.useState(!1),[Q,ce]=q.useState(null),[pe,le]=q.useState(null),k=q.useCallback(async()=>{X(!0);const D=x=>x.replace(/\.json$/,""),ue=async(x,K,te)=>{const ae=new Map;try{const re=await Fo(te);for(const fe of re)try{const F=await eu(te,fe);if(Array.isArray(F))F.forEach(ye=>{const xe=x==="clients"?ye.client_id:ye.llm_id,Pe=xe||ye.name;xe&&typeof xe=="string"&&ae.set(xe,{id:xe,displayName:Pe||xe,type:x,source:"file"})});else if(typeof F=="object"&&F!==null){const ye=x==="clients"?F.client_id:F.llm_id,xe=ye||F.name||D(fe);if(ye&&typeof ye=="string")ae.set(ye,{id:ye,displayName:xe,type:x,source:"file"});else{const Pe=D(fe);ae.set(Pe,{id:Pe,displayName:Pe,type:x,source:"file"})}}}catch(F){console.error(`Error processing file ${fe} for ${x}:`,F)}}catch(re){console.error(`Error listing config files for ${te}:`,re)}if(K){let re=[];x==="clients"&&K.clients?re=Object.keys(K.clients):x==="llms"&&K.llm_configs&&(re=Object.keys(K.llm_configs)),re.forEach(fe=>{ae.has(fe)||ae.set(fe,{id:fe,displayName:fe,type:x,source:"project"})})}return Array.from(ae.values()).sort((re,fe)=>re.displayName.localeCompare(fe.displayName))};try{const x=await pp();_(await ue("clients",x,"clients")),A(await ue("llms",x,"llms"))}catch(x){console.error("Error fetching items for agent builder selectors:",x)}finally{X(!1)}},[]);q.useEffect(()=>{k()},[k]);const I=async()=>{if(!n.trim()){ce("Agent Name is required.");return}ee(!0),ce(null),le(null);const D={name:n.trim(),system_prompt:o.trim()||void 0,client_ids:c.length>0?c:void 0,max_iterations:R?parseInt(R):void 0};d==="existing"&&g?(D.llm_config_id=g,delete D.model,delete D.temperature,delete D.max_tokens):d==="inline"?(y.trim()&&(D.model=y.trim()),y.trim()&&j.trim()&&(D.temperature=parseFloat(j)),y.trim()&&$.trim()&&(D.max_tokens=parseInt($)),delete D.llm_config_id):(delete D.llm_config_id,delete D.model,delete D.temperature,delete D.max_tokens),Object.keys(D).forEach(x=>D[x]===void 0&&delete D[x]);const ue=n.trim().replace(/\s+/g,"_")+".json";try{await tu("agents",ue,D),le(`Agent "${n}" saved successfully as ${ue}.`)}catch(x){const K=x;console.error("Failed to save agent config:",x),ce(K.message||`Failed to save agent ${ue}.`)}finally{ee(!1)}};return h.jsxs("div",{className:"p-4 space-y-6 max-w-3xl mx-auto",children:[h.jsx("h2",{className:"text-2xl font-semibold text-dracula-pink",children:"Build New Agent"}),h.jsxs("div",{className:"p-6 bg-dracula-current-line rounded-lg shadow-md space-y-4",children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"agentName",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Agent Name"}),h.jsx("input",{type:"text",id:"agentName",value:n,onChange:D=>r(D.target.value),placeholder:"e.g., Customer Support Agent",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"systemPrompt",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"System Prompt"}),h.jsx("textarea",{id:"systemPrompt",value:o,onChange:D=>i(D.target.value),rows:4,placeholder:"e.g., You are a helpful assistant...",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]})]}),h.jsxs("div",{className:"p-6 bg-dracula-current-line rounded-lg shadow-md space-y-4",children:[h.jsx("h3",{className:"text-lg font-semibold text-dracula-cyan",children:"Client IDs"}),h.jsx("div",{className:"mb-2",children:c.length>0?h.jsx("div",{className:"flex flex-wrap gap-2",children:c.map(D=>h.jsx("span",{className:"px-2 py-1 bg-dracula-purple text-dracula-background text-xs rounded-full",children:D},D))}):h.jsx("p",{className:"text-dracula-comment text-xs",children:"None selected."})}),h.jsx("button",{onClick:()=>Y(!0),className:"px-4 py-2 text-sm font-medium text-dracula-background bg-dracula-cyan hover:bg-opacity-80 rounded-md focus:outline-none focus:ring-2 focus:ring-dracula-pink",disabled:N,children:N&&w.length===0?"Loading Clients...":"Select Clients"}),w.length===0&&!N&&h.jsx("p",{className:"text-xs text-dracula-comment mt-1",children:"No clients available to select."})]}),h.jsx(yb,{isOpen:V,onClose:()=>Y(!1),title:"Select Client IDs",items:w.map(D=>({id:D.id,displayName:D.displayName})),selectedIds:c,onConfirmSelection:D=>s(D)}),h.jsxs("div",{className:"p-6 bg-dracula-current-line rounded-lg shadow-md space-y-4",children:[h.jsx("h3",{className:"text-lg font-semibold text-dracula-cyan",children:"LLM Configuration"}),h.jsx("div",{className:"space-y-2",children:["existing","inline"].map(D=>h.jsxs("div",{className:"flex items-center",children:[h.jsx("input",{type:"radio",id:`llmSource-${D}`,name:"llmConfigSource",value:D,checked:d===D,onChange:ue=>{const x=ue.target.value;m(x),x==="existing"?(S(""),C("0.7"),B("2048")):b(null)},className:"h-4 w-4 text-dracula-pink border-dracula-comment focus:ring-dracula-pink"}),h.jsx("label",{htmlFor:`llmSource-${D}`,className:"ml-2 text-sm text-dracula-foreground",children:D==="existing"?"Use Existing LLM Config":"Define Inline LLM Parameters"})]},D))}),d==="existing"&&h.jsxs("div",{className:"mt-4 space-y-2",children:[h.jsx("label",{htmlFor:"selectedLlmConfigId",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Select LLM Config"}),h.jsxs("select",{id:"selectedLlmConfigId",value:g||"",onChange:D=>b(D.target.value||null),className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground",disabled:M.length===0,children:[h.jsx("option",{value:"",children:"-- Select LLM Config --"}),M.map(D=>h.jsx("option",{value:D.id,children:D.displayName},D.id))]}),M.length===0&&!N&&h.jsx("p",{className:"text-xs text-dracula-comment mt-1",children:"No LLM configs available to select."})]}),d==="inline"&&h.jsxs("div",{className:"mt-4 space-y-4",children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"inlineLlmModel",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Model Name"}),h.jsx("input",{type:"text",id:"inlineLlmModel",value:y,onChange:D=>S(D.target.value),placeholder:"e.g., gpt-4-turbo",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"inlineLlmTemperature",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Temperature"}),h.jsx("input",{type:"number",step:"0.1",id:"inlineLlmTemperature",value:j,onChange:D=>C(D.target.value),placeholder:"0.0 to 2.0",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"inlineLlmMaxTokens",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Max Tokens"}),h.jsx("input",{type:"number",id:"inlineLlmMaxTokens",value:$,onChange:D=>B(D.target.value),placeholder:"e.g., 2048",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]})]})]}),h.jsxs("div",{className:"p-6 bg-dracula-current-line rounded-lg shadow-md space-y-4",children:[h.jsx("h3",{className:"text-lg font-semibold text-dracula-cyan",children:"Other Parameters"}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"maxIterations",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Max Iterations"}),h.jsx("input",{type:"number",id:"maxIterations",value:R,onChange:D=>P(D.target.value),className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]})]}),h.jsxs("div",{className:"flex justify-end items-center space-x-3 mt-6",children:[Q&&h.jsx("p",{className:"text-sm text-dracula-red",children:Q}),pe&&h.jsx("p",{className:"text-sm text-dracula-green",children:pe}),h.jsx("button",{onClick:I,disabled:ne||!n.trim(),className:"px-6 py-2 bg-dracula-green text-dracula-background font-semibold rounded-md hover:bg-opacity-90 focus:outline-none focus:ring-2 focus:ring-dracula-pink disabled:bg-dracula-comment disabled:cursor-not-allowed",children:ne?"Saving...":"Save Agent Config"})]})]})},Xw=()=>{const[n,r]=q.useState(""),[o,i]=q.useState(""),[c,s]=q.useState([]),[d,m]=q.useState([]),[g,b]=q.useState(!1),[y,S]=q.useState(!1),[j,C]=q.useState(!1),[$,B]=q.useState(null),[R,P]=q.useState(null),w=q.useCallback(async()=>{b(!0);const N=new Map;try{const X=await Fo("agents");for(const V of X)try{const Y=await eu("agents",V);if(Array.isArray(Y))Y.forEach(ne=>{ne.name&&typeof ne.name=="string"&&N.set(ne.name,{id:ne.name,displayName:ne.name,source:"file"})});else if(typeof Y=="object"&&Y!==null&&Y.name){const ne=Y;ne.name&&typeof ne.name=="string"&&N.set(ne.name,{id:ne.name,displayName:ne.name,source:"file"})}}catch(Y){console.error(`Error processing agent file ${V}:`,Y)}}catch(X){console.error("Error listing agent config files:",X)}try{const X=await pp();X&&X.agent_configs&&Object.values(X.agent_configs).forEach(V=>{V.name&&!N.has(V.name)&&N.set(V.name,{id:V.name,displayName:V.name,source:"project"})})}catch(X){console.error("Error fetching agents from project config:",X)}m(Array.from(N.values()).sort((X,V)=>X.displayName.localeCompare(V.displayName))),b(!1)},[]);q.useEffect(()=>{w()},[w]);const _=N=>{s(X=>[...X,...N.filter(V=>!X.includes(V))])},M=N=>{s(X=>X.filter((V,Y)=>Y!==N))},A=async()=>{if(!n.trim()){B("Workflow Name is required.");return}if(c.length===0){B("Workflow must have at least one step.");return}C(!0),B(null),P(null);const N={name:n.trim(),steps:c,description:o.trim()||void 0};Object.keys(N).forEach(V=>N[V]===void 0&&delete N[V]);const X=n.trim().replace(/\s+/g,"_")+".json";try{await tu("simple-workflows",X,N),P(`Simple Workflow "${n}" saved successfully as ${X}.`)}catch(V){const Y=V;console.error("Failed to save simple workflow config:",V),B(Y.message||`Failed to save workflow ${X}.`)}finally{C(!1)}};return h.jsxs("div",{className:"p-4 space-y-6 max-w-3xl mx-auto",children:[h.jsx("h2",{className:"text-2xl font-semibold text-dracula-pink",children:"Build New Simple Workflow"}),h.jsxs("div",{className:"p-6 bg-dracula-current-line rounded-lg shadow-md space-y-4",children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"workflowName",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Workflow Name"}),h.jsx("input",{type:"text",id:"workflowName",value:n,onChange:N=>r(N.target.value),placeholder:"e.g., Daily Briefing Workflow",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"description",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Description (Optional)"}),h.jsx("textarea",{id:"description",value:o,onChange:N=>i(N.target.value),rows:3,placeholder:"A brief description of what this workflow does.",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]})]}),h.jsxs("div",{className:"p-6 bg-dracula-current-line rounded-lg shadow-md space-y-4",children:[h.jsx("h3",{className:"text-lg font-semibold text-dracula-cyan",children:"Workflow Steps (Agent Sequence)"}),c.length>0?h.jsx("ul",{className:"space-y-2",children:c.map((N,X)=>h.jsxs("li",{className:"flex items-center justify-between p-2 bg-dracula-selection rounded-md",children:[h.jsxs("span",{className:"text-dracula-foreground",children:[X+1,". ",N]}),h.jsx("button",{onClick:()=>M(X),className:"text-xs text-dracula-red hover:text-opacity-80",children:"Remove"})]},`${N}-${X}`))}):h.jsx("p",{className:"text-dracula-comment text-xs",children:"No steps added yet."}),h.jsx("button",{onClick:()=>S(!0),className:"mt-2 px-4 py-2 text-sm font-medium text-dracula-background bg-dracula-cyan hover:bg-opacity-80 rounded-md focus:outline-none focus:ring-2 focus:ring-dracula-pink",disabled:g,children:g&&d.length===0?"Loading Agents...":"Add Agent Step(s)"})]}),h.jsx(yb,{isOpen:y,onClose:()=>S(!1),title:"Select Agent(s) for Workflow Steps",items:d,selectedIds:c,onConfirmSelection:_}),h.jsxs("div",{className:"flex justify-end items-center space-x-3 mt-6",children:[$&&h.jsx("p",{className:"text-sm text-dracula-red",children:$}),R&&h.jsx("p",{className:"text-sm text-dracula-green",children:R}),h.jsx("button",{onClick:A,disabled:j||!n.trim()||c.length===0,className:"px-6 py-2 bg-dracula-green text-dracula-background font-semibold rounded-md hover:bg-opacity-90 focus:outline-none focus:ring-2 focus:ring-dracula-pink disabled:bg-dracula-comment disabled:cursor-not-allowed",children:j?"Saving...":"Save Simple Workflow"})]})]})},qw=()=>{const[n,r]=q.useState(""),[o,i]=q.useState(""),[c,s]=q.useState(""),[d,m]=q.useState(""),[g,b]=q.useState(""),[y,S]=q.useState(!1),[j,C]=q.useState(null),[$,B]=q.useState(null),R=async()=>{if(!n.trim()){C("Client ID is required.");return}if(!o.trim()){C("Server Path is required.");return}S(!0),C(null),B(null);const P=c.split(",").map(M=>M.trim()).filter(M=>M.length>0),w={client_id:n.trim(),server_path:o.trim(),roots:[]};if(P.length>0&&(w.capabilities=P),d.trim()){const M=parseFloat(d);isNaN(M)||(w.timeout=M)}if(g.trim()){const M=parseFloat(g);isNaN(M)||(w.routing_weight=M)}const _=n.trim().replace(/\s+/g,"_")+".json";try{await tu("clients",_,w),B(`Client "${n}" saved successfully as ${_}.`)}catch(M){const A=M;console.error("Failed to save client config:",M),C(A.message||`Failed to save client ${_}.`)}finally{S(!1)}};return h.jsxs("div",{className:"p-4 space-y-6 max-w-3xl mx-auto",children:[h.jsx("h2",{className:"text-2xl font-semibold text-dracula-pink",children:"Build New Client"}),h.jsxs("div",{className:"p-6 bg-dracula-current-line rounded-lg shadow-md space-y-4",children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"clientId",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Client ID"}),h.jsx("input",{type:"text",id:"clientId",value:n,onChange:P=>r(P.target.value),placeholder:"e.g., my_custom_client",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"serverPath",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Server Path"}),h.jsx("input",{type:"text",id:"serverPath",value:o,onChange:P=>i(P.target.value),placeholder:"e.g., src/packaged_servers/my_server.py",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"capabilitiesInput",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Capabilities (comma-separated)"}),h.jsx("input",{type:"text",id:"capabilitiesInput",value:c,onChange:P=>s(P.target.value),placeholder:"e.g., tools, prompts, resources",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"timeoutInput",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Timeout (seconds, optional)"}),h.jsx("input",{type:"number",id:"timeoutInput",value:d,onChange:P=>m(P.target.value),placeholder:"e.g., 15",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"routingWeightInput",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Routing Weight (optional)"}),h.jsx("input",{type:"number",step:"0.1",id:"routingWeightInput",value:g,onChange:P=>b(P.target.value),placeholder:"e.g., 1.0",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]})]}),h.jsxs("div",{className:"flex justify-end items-center space-x-3 mt-6",children:[j&&h.jsx("p",{className:"text-sm text-dracula-red",children:j}),$&&h.jsx("p",{className:"text-sm text-dracula-green",children:$}),h.jsx("button",{onClick:R,disabled:y||!n.trim()||!o.trim(),className:"px-6 py-2 bg-dracula-green text-dracula-background font-semibold rounded-md hover:bg-opacity-90 focus:outline-none focus:ring-2 focus:ring-dracula-pink disabled:bg-dracula-comment disabled:cursor-not-allowed",children:y?"Saving...":"Save Client Config"})]})]})},Gw=()=>{const[n,r]=q.useState(""),[o,i]=q.useState(""),[c,s]=q.useState(""),[d,m]=q.useState(""),[g,b]=q.useState(""),[y,S]=q.useState(""),[j,C]=q.useState(!1),[$,B]=q.useState(null),[R,P]=q.useState(null),w=async()=>{if(!n.trim()){B("LLM ID is required.");return}o.trim()||B("Provider is highly recommended."),c.trim()||B("Model Name is highly recommended."),C(!0),B(null),P(null);const _={llm_id:n.trim()};if(o.trim()&&(_.provider=o.trim()),c.trim()&&(_.model_name=c.trim()),d.trim()){const A=parseFloat(d);isNaN(A)||(_.temperature=A)}if(g.trim()){const A=parseInt(g,10);isNaN(A)||(_.max_tokens=A)}y.trim()&&(_.default_system_prompt=y.trim());const M=n.trim().replace(/\s+/g,"_")+".json";try{await tu("llms",M,_),P(`LLM Config "${n}" saved successfully as ${M}.`)}catch(A){const N=A;console.error("Failed to save LLM config:",A),B(N.message||`Failed to save LLM config ${M}.`)}finally{C(!1)}};return h.jsxs("div",{className:"p-4 space-y-6 max-w-3xl mx-auto",children:[h.jsx("h2",{className:"text-2xl font-semibold text-dracula-pink",children:"Build New LLM Configuration"}),h.jsxs("div",{className:"p-6 bg-dracula-current-line rounded-lg shadow-md space-y-4",children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"llmId",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"LLM ID"}),h.jsx("input",{type:"text",id:"llmId",value:n,onChange:_=>r(_.target.value),placeholder:"e.g., my_claude_opus_config",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"provider",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Provider (Optional)"}),h.jsx("input",{type:"text",id:"provider",value:o,onChange:_=>i(_.target.value),placeholder:"e.g., anthropic, openai, google",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"modelName",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Model Name (Optional)"}),h.jsx("input",{type:"text",id:"modelName",value:c,onChange:_=>s(_.target.value),placeholder:"e.g., claude-3-opus-20240229, gpt-4-turbo",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"temperatureInput",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Temperature (Optional)"}),h.jsx("input",{type:"number",step:"0.1",id:"temperatureInput",value:d,onChange:_=>m(_.target.value),placeholder:"e.g., 0.7 (0.0 to 2.0)",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"maxTokensInput",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Max Tokens (Optional)"}),h.jsx("input",{type:"number",id:"maxTokensInput",value:g,onChange:_=>b(_.target.value),placeholder:"e.g., 2048",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"defaultSystemPrompt",className:"block text-sm font-medium text-dracula-foreground mb-1",children:"Default System Prompt (Optional)"}),h.jsx("textarea",{id:"defaultSystemPrompt",value:y,onChange:_=>S(_.target.value),rows:3,placeholder:"Enter a default system prompt for this LLM configuration.",className:"w-full p-2 rounded-md bg-dracula-background border border-dracula-comment focus:ring-2 focus:ring-dracula-pink focus:border-dracula-pink text-dracula-foreground"})]})]}),h.jsxs("div",{className:"flex justify-end items-center space-x-3 mt-6",children:[$&&h.jsx("p",{className:"text-sm text-dracula-red",children:$}),R&&h.jsx("p",{className:"text-sm text-dracula-green",children:R}),h.jsx("button",{onClick:w,disabled:j||!n.trim(),className:"px-6 py-2 bg-dracula-green text-dracula-background font-semibold rounded-md hover:bg-opacity-90 focus:outline-none focus:ring-2 focus:ring-dracula-pink disabled:bg-dracula-comment disabled:cursor-not-allowed",children:j?"Saving...":"Save LLM Config"})]})]})},Kw=()=>{const{selectedComponent:n}=Br(),r=()=>{switch(n){case"agents":return h.jsx(Pw,{});case"llms":return h.jsx(Gw,{});case"clients":return h.jsx(qw,{});case"simple_workflows":return h.jsx(Xw,{});case"custom_workflows":return h.jsxs("div",{className:"p-4",children:[h.jsx("h3",{className:"text-lg font-semibold text-dracula-purple",children:"Custom Workflow Builder"}),h.jsx("p",{className:"text-dracula-comment",children:"Custom workflow builder UI will be here."})]});case"projects":return h.jsx("div",{className:"p-4",children:h.jsx("p",{className:"text-dracula-comment",children:"Project configuration is managed via the 'Configure' tab or by loading/creating project files directly."})});default:return h.jsx("div",{className:"p-4",children:h.jsx("p",{className:"text-dracula-comment",children:"Select a component type from the sidebar to start building."})})}};return h.jsxs("div",{className:"flex-grow p-1",children:[" ",r()]})},Vw=()=>{const{selectedAction:n,selectedComponent:r}=Br();return h.jsxs("div",{className:"min-h-screen flex flex-col bg-dracula-background text-dracula-foreground",children:[h.jsx(r1,{})," ",h.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[h.jsx(i1,{}),h.jsx("main",{className:"flex-1 p-6 overflow-y-auto bg-dracula-background",children:o()})]})]});function o(){return n==="configure"?h.jsx(d1,{}):n==="execute"?h.jsx(Bw,{}):n==="build"?h.jsx(Kw,{}):h.jsxs("div",{className:"bg-dracula-current-line p-4 rounded-lg shadow-lg border border-dracula-comment",children:[h.jsxs("h2",{className:"text-xl font-semibold mb-2 text-dracula-foreground",children:["Selected Action: ",h.jsx("span",{className:"text-dracula-pink",children:n})]}),h.jsxs("h2",{className:"text-xl font-semibold text-dracula-foreground",children:["Selected Component: ",h.jsx("span",{className:"text-dracula-green",children:r})]}),h.jsx("div",{className:"mt-4",children:h.jsx("p",{className:"text-dracula-comment",children:"Content for this selection will be implemented soon."})})]})}},Qw=()=>h.jsx(Vw,{});function Ww(){const{isAuthenticated:n,apiKey:r,validateApiKey:o}=Jo();return q.useEffect(()=>{r&&!n&&o(r)},[r,n,o]),n?h.jsx(Qw,{}):h.jsx(B0,{})}H0.createRoot(document.getElementById("root")).render(h.jsx(q.StrictMode,{children:h.jsx(Ww,{})}));
