leglas 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +125 -24
- package/dist/bin.js +1084 -242
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1084 -238
- package/dist/shell/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/dist/shell/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/dist/shell/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/dist/shell/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dist/shell/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/dist/shell/assets/index-BQHDjn0q.css +1 -0
- package/dist/shell/assets/index-T-uR7kT7.js +14 -0
- package/dist/shell/index.html +2 -2
- package/dist/watch.d.ts +2 -45
- package/package.json +3 -3
- package/dist/shell/assets/index-dMGYwlE1.css +0 -1
- package/dist/shell/assets/index-r7sGM7WL.js +0 -10
- package/dist/shell/assets/manrope-cyrillic-wght-normal-Dvxsihut.woff2 +0 -0
- package/dist/shell/assets/manrope-greek-wght-normal-DL7QRZyv.woff2 +0 -0
- package/dist/shell/assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2 +0 -0
- package/dist/shell/assets/manrope-latin-wght-normal-DHIcAJRg.woff2 +0 -0
- package/dist/shell/assets/manrope-vietnamese-wght-normal-usUDDRr7.woff2 +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))o(d);new MutationObserver(d=>{for(const p of d)if(p.type==="childList")for(const S of p.addedNodes)S.tagName==="LINK"&&S.rel==="modulepreload"&&o(S)}).observe(document,{childList:!0,subtree:!0});function g(d){const p={};return d.integrity&&(p.integrity=d.integrity),d.referrerPolicy&&(p.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?p.credentials="include":d.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function o(d){if(d.ep)return;d.ep=!0;const p=g(d);fetch(d.href,p)}})();var ef={exports:{}},Au={};var u1;function Qh(){if(u1)return Au;u1=1;var c=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function g(o,d,p){var S=null;if(p!==void 0&&(S=""+p),d.key!==void 0&&(S=""+d.key),"key"in d){p={};for(var z in d)z!=="key"&&(p[z]=d[z])}else p=d;return d=p.ref,{$$typeof:c,type:o,key:S,ref:d!==void 0?d:null,props:p}}return Au.Fragment=r,Au.jsx=g,Au.jsxs=g,Au}var i1;function Zh(){return i1||(i1=1,ef.exports=Qh()),ef.exports}var f=Zh(),lf={exports:{}},pt={};var c1;function kh(){if(c1)return pt;c1=1;var c=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),S=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),G=Symbol.iterator;function h(v){return v===null||typeof v!="object"?null:(v=G&&v[G]||v["@@iterator"],typeof v=="function"?v:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},at=Object.assign,rt={};function ht(v,O,Q){this.props=v,this.context=O,this.refs=rt,this.updater=Q||Z}ht.prototype.isReactComponent={},ht.prototype.setState=function(v,O){if(typeof v!="object"&&typeof v!="function"&&v!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,v,O,"setState")},ht.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function X(){}X.prototype=ht.prototype;function $(v,O,Q){this.props=v,this.context=O,this.refs=rt,this.updater=Q||Z}var tt=$.prototype=new X;tt.constructor=$,at(tt,ht.prototype),tt.isPureReactComponent=!0;var lt=Array.isArray;function W(){}var k={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function ut(v,O,Q){var V=Q.ref;return{$$typeof:c,type:v,key:O,ref:V!==void 0?V:null,props:Q}}function P(v,O){return ut(v.type,O,v.props)}function gt(v){return typeof v=="object"&&v!==null&&v.$$typeof===c}function yt(v){var O={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(Q){return O[Q]})}var Rt=/\/+/g;function At(v,O){return typeof v=="object"&&v!==null&&v.key!=null?yt(""+v.key):O.toString(36)}function Jt(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(W,W):(v.status="pending",v.then(function(O){v.status==="pending"&&(v.status="fulfilled",v.value=O)},function(O){v.status==="pending"&&(v.status="rejected",v.reason=O)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function T(v,O,Q,V,st){var ft=typeof v;(ft==="undefined"||ft==="boolean")&&(v=null);var zt=!1;if(v===null)zt=!0;else switch(ft){case"bigint":case"string":case"number":zt=!0;break;case"object":switch(v.$$typeof){case c:case r:zt=!0;break;case L:return zt=v._init,T(zt(v._payload),O,Q,V,st)}}if(zt)return st=st(v),zt=V===""?"."+At(v,0):V,lt(st)?(Q="",zt!=null&&(Q=zt.replace(Rt,"$&/")+"/"),T(st,O,Q,"",function(je){return je})):st!=null&&(gt(st)&&(st=P(st,Q+(st.key==null||v&&v.key===st.key?"":(""+st.key).replace(Rt,"$&/")+"/")+zt)),O.push(st)),1;zt=0;var Mt=V===""?".":V+":";if(lt(v))for(var Ct=0;Ct<v.length;Ct++)V=v[Ct],ft=Mt+At(V,Ct),zt+=T(V,O,Q,ft,st);else if(Ct=h(v),typeof Ct=="function")for(v=Ct.call(v),Ct=0;!(V=v.next()).done;)V=V.value,ft=Mt+At(V,Ct++),zt+=T(V,O,Q,ft,st);else if(ft==="object"){if(typeof v.then=="function")return T(Jt(v),O,Q,V,st);throw O=String(v),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return zt}function q(v,O,Q){if(v==null)return v;var V=[],st=0;return T(v,V,"","",function(ft){return O.call(Q,ft,st++)}),V}function K(v){if(v._status===-1){var O=v._result;O=O(),O.then(function(Q){(v._status===0||v._status===-1)&&(v._status=1,v._result=Q)},function(Q){(v._status===0||v._status===-1)&&(v._status=2,v._result=Q)}),v._status===-1&&(v._status=0,v._result=O)}if(v._status===1)return v._result.default;throw v._result}var vt=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(O))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},xt={map:q,forEach:function(v,O,Q){q(v,function(){O.apply(this,arguments)},Q)},count:function(v){var O=0;return q(v,function(){O++}),O},toArray:function(v){return q(v,function(O){return O})||[]},only:function(v){if(!gt(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};return pt.Activity=R,pt.Children=xt,pt.Component=ht,pt.Fragment=g,pt.Profiler=d,pt.PureComponent=$,pt.StrictMode=o,pt.Suspense=j,pt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,pt.__COMPILER_RUNTIME={__proto__:null,c:function(v){return k.H.useMemoCache(v)}},pt.cache=function(v){return function(){return v.apply(null,arguments)}},pt.cacheSignal=function(){return null},pt.cloneElement=function(v,O,Q){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var V=at({},v.props),st=v.key;if(O!=null)for(ft in O.key!==void 0&&(st=""+O.key),O)!F.call(O,ft)||ft==="key"||ft==="__self"||ft==="__source"||ft==="ref"&&O.ref===void 0||(V[ft]=O[ft]);var ft=arguments.length-2;if(ft===1)V.children=Q;else if(1<ft){for(var zt=Array(ft),Mt=0;Mt<ft;Mt++)zt[Mt]=arguments[Mt+2];V.children=zt}return ut(v.type,st,V)},pt.createContext=function(v){return v={$$typeof:S,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:p,_context:v},v},pt.createElement=function(v,O,Q){var V,st={},ft=null;if(O!=null)for(V in O.key!==void 0&&(ft=""+O.key),O)F.call(O,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(st[V]=O[V]);var zt=arguments.length-2;if(zt===1)st.children=Q;else if(1<zt){for(var Mt=Array(zt),Ct=0;Ct<zt;Ct++)Mt[Ct]=arguments[Ct+2];st.children=Mt}if(v&&v.defaultProps)for(V in zt=v.defaultProps,zt)st[V]===void 0&&(st[V]=zt[V]);return ut(v,ft,st)},pt.createRef=function(){return{current:null}},pt.forwardRef=function(v){return{$$typeof:z,render:v}},pt.isValidElement=gt,pt.lazy=function(v){return{$$typeof:L,_payload:{_status:-1,_result:v},_init:K}},pt.memo=function(v,O){return{$$typeof:E,type:v,compare:O===void 0?null:O}},pt.startTransition=function(v){var O=k.T,Q={};k.T=Q;try{var V=v(),st=k.S;st!==null&&st(Q,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(W,vt)}catch(ft){vt(ft)}finally{O!==null&&Q.types!==null&&(O.types=Q.types),k.T=O}},pt.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},pt.use=function(v){return k.H.use(v)},pt.useActionState=function(v,O,Q){return k.H.useActionState(v,O,Q)},pt.useCallback=function(v,O){return k.H.useCallback(v,O)},pt.useContext=function(v){return k.H.useContext(v)},pt.useDebugValue=function(){},pt.useDeferredValue=function(v,O){return k.H.useDeferredValue(v,O)},pt.useEffect=function(v,O){return k.H.useEffect(v,O)},pt.useEffectEvent=function(v){return k.H.useEffectEvent(v)},pt.useId=function(){return k.H.useId()},pt.useImperativeHandle=function(v,O,Q){return k.H.useImperativeHandle(v,O,Q)},pt.useInsertionEffect=function(v,O){return k.H.useInsertionEffect(v,O)},pt.useLayoutEffect=function(v,O){return k.H.useLayoutEffect(v,O)},pt.useMemo=function(v,O){return k.H.useMemo(v,O)},pt.useOptimistic=function(v,O){return k.H.useOptimistic(v,O)},pt.useReducer=function(v,O,Q){return k.H.useReducer(v,O,Q)},pt.useRef=function(v){return k.H.useRef(v)},pt.useState=function(v){return k.H.useState(v)},pt.useSyncExternalStore=function(v,O,Q){return k.H.useSyncExternalStore(v,O,Q)},pt.useTransition=function(){return k.H.useTransition()},pt.version="19.2.8",pt}var s1;function xf(){return s1||(s1=1,lf.exports=kh()),lf.exports}var H=xf(),nf={exports:{}},zu={},af={exports:{}},uf={};var f1;function Vh(){return f1||(f1=1,(function(c){function r(T,q){var K=T.length;T.push(q);t:for(;0<K;){var vt=K-1>>>1,xt=T[vt];if(0<d(xt,q))T[vt]=q,T[K]=xt,K=vt;else break t}}function g(T){return T.length===0?null:T[0]}function o(T){if(T.length===0)return null;var q=T[0],K=T.pop();if(K!==q){T[0]=K;t:for(var vt=0,xt=T.length,v=xt>>>1;vt<v;){var O=2*(vt+1)-1,Q=T[O],V=O+1,st=T[V];if(0>d(Q,K))V<xt&&0>d(st,Q)?(T[vt]=st,T[V]=K,vt=V):(T[vt]=Q,T[O]=K,vt=O);else if(V<xt&&0>d(st,K))T[vt]=st,T[V]=K,vt=V;else break t}}return q}function d(T,q){var K=T.sortIndex-q.sortIndex;return K!==0?K:T.id-q.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var p=performance;c.unstable_now=function(){return p.now()}}else{var S=Date,z=S.now();c.unstable_now=function(){return S.now()-z}}var j=[],E=[],L=1,R=null,G=3,h=!1,Z=!1,at=!1,rt=!1,ht=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function tt(T){for(var q=g(E);q!==null;){if(q.callback===null)o(E);else if(q.startTime<=T)o(E),q.sortIndex=q.expirationTime,r(j,q);else break;q=g(E)}}function lt(T){if(at=!1,tt(T),!Z)if(g(j)!==null)Z=!0,W||(W=!0,yt());else{var q=g(E);q!==null&&Jt(lt,q.startTime-T)}}var W=!1,k=-1,F=5,ut=-1;function P(){return rt?!0:!(c.unstable_now()-ut<F)}function gt(){if(rt=!1,W){var T=c.unstable_now();ut=T;var q=!0;try{t:{Z=!1,at&&(at=!1,X(k),k=-1),h=!0;var K=G;try{e:{for(tt(T),R=g(j);R!==null&&!(R.expirationTime>T&&P());){var vt=R.callback;if(typeof vt=="function"){R.callback=null,G=R.priorityLevel;var xt=vt(R.expirationTime<=T);if(T=c.unstable_now(),typeof xt=="function"){R.callback=xt,tt(T),q=!0;break e}R===g(j)&&o(j),tt(T)}else o(j);R=g(j)}if(R!==null)q=!0;else{var v=g(E);v!==null&&Jt(lt,v.startTime-T),q=!1}}break t}finally{R=null,G=K,h=!1}q=void 0}}finally{q?yt():W=!1}}}var yt;if(typeof $=="function")yt=function(){$(gt)};else if(typeof MessageChannel<"u"){var Rt=new MessageChannel,At=Rt.port2;Rt.port1.onmessage=gt,yt=function(){At.postMessage(null)}}else yt=function(){ht(gt,0)};function Jt(T,q){k=ht(function(){T(c.unstable_now())},q)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(T){T.callback=null},c.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<T?Math.floor(1e3/T):5},c.unstable_getCurrentPriorityLevel=function(){return G},c.unstable_next=function(T){switch(G){case 1:case 2:case 3:var q=3;break;default:q=G}var K=G;G=q;try{return T()}finally{G=K}},c.unstable_requestPaint=function(){rt=!0},c.unstable_runWithPriority=function(T,q){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var K=G;G=T;try{return q()}finally{G=K}},c.unstable_scheduleCallback=function(T,q,K){var vt=c.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?vt+K:vt):K=vt,T){case 1:var xt=-1;break;case 2:xt=250;break;case 5:xt=1073741823;break;case 4:xt=1e4;break;default:xt=5e3}return xt=K+xt,T={id:L++,callback:q,priorityLevel:T,startTime:K,expirationTime:xt,sortIndex:-1},K>vt?(T.sortIndex=K,r(E,T),g(j)===null&&T===g(E)&&(at?(X(k),k=-1):at=!0,Jt(lt,K-vt))):(T.sortIndex=xt,r(j,T),Z||h||(Z=!0,W||(W=!0,yt()))),T},c.unstable_shouldYield=P,c.unstable_wrapCallback=function(T){var q=G;return function(){var K=G;G=q;try{return T.apply(this,arguments)}finally{G=K}}}})(uf)),uf}var o1;function Kh(){return o1||(o1=1,af.exports=Vh()),af.exports}var cf={exports:{}},De={};var r1;function Jh(){if(r1)return De;r1=1;var c=xf();function r(j){var E="https://react.dev/errors/"+j;if(1<arguments.length){E+="?args[]="+encodeURIComponent(arguments[1]);for(var L=2;L<arguments.length;L++)E+="&args[]="+encodeURIComponent(arguments[L])}return"Minified React error #"+j+"; visit "+E+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function g(){}var o={d:{f:g,r:function(){throw Error(r(522))},D:g,C:g,L:g,m:g,X:g,S:g,M:g},p:0,findDOMNode:null},d=Symbol.for("react.portal");function p(j,E,L){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:R==null?null:""+R,children:j,containerInfo:E,implementation:L}}var S=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function z(j,E){if(j==="font")return"";if(typeof E=="string")return E==="use-credentials"?E:""}return De.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,De.createPortal=function(j,E){var L=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!E||E.nodeType!==1&&E.nodeType!==9&&E.nodeType!==11)throw Error(r(299));return p(j,E,null,L)},De.flushSync=function(j){var E=S.T,L=o.p;try{if(S.T=null,o.p=2,j)return j()}finally{S.T=E,o.p=L,o.d.f()}},De.preconnect=function(j,E){typeof j=="string"&&(E?(E=E.crossOrigin,E=typeof E=="string"?E==="use-credentials"?E:"":void 0):E=null,o.d.C(j,E))},De.prefetchDNS=function(j){typeof j=="string"&&o.d.D(j)},De.preinit=function(j,E){if(typeof j=="string"&&E&&typeof E.as=="string"){var L=E.as,R=z(L,E.crossOrigin),G=typeof E.integrity=="string"?E.integrity:void 0,h=typeof E.fetchPriority=="string"?E.fetchPriority:void 0;L==="style"?o.d.S(j,typeof E.precedence=="string"?E.precedence:void 0,{crossOrigin:R,integrity:G,fetchPriority:h}):L==="script"&&o.d.X(j,{crossOrigin:R,integrity:G,fetchPriority:h,nonce:typeof E.nonce=="string"?E.nonce:void 0})}},De.preinitModule=function(j,E){if(typeof j=="string")if(typeof E=="object"&&E!==null){if(E.as==null||E.as==="script"){var L=z(E.as,E.crossOrigin);o.d.M(j,{crossOrigin:L,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0})}}else E==null&&o.d.M(j)},De.preload=function(j,E){if(typeof j=="string"&&typeof E=="object"&&E!==null&&typeof E.as=="string"){var L=E.as,R=z(L,E.crossOrigin);o.d.L(j,L,{crossOrigin:R,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0,type:typeof E.type=="string"?E.type:void 0,fetchPriority:typeof E.fetchPriority=="string"?E.fetchPriority:void 0,referrerPolicy:typeof E.referrerPolicy=="string"?E.referrerPolicy:void 0,imageSrcSet:typeof E.imageSrcSet=="string"?E.imageSrcSet:void 0,imageSizes:typeof E.imageSizes=="string"?E.imageSizes:void 0,media:typeof E.media=="string"?E.media:void 0})}},De.preloadModule=function(j,E){if(typeof j=="string")if(E){var L=z(E.as,E.crossOrigin);o.d.m(j,{as:typeof E.as=="string"&&E.as!=="script"?E.as:void 0,crossOrigin:L,integrity:typeof E.integrity=="string"?E.integrity:void 0})}else o.d.m(j)},De.requestFormReset=function(j){o.d.r(j)},De.unstable_batchedUpdates=function(j,E){return j(E)},De.useFormState=function(j,E,L){return S.H.useFormState(j,E,L)},De.useFormStatus=function(){return S.H.useHostTransitionStatus()},De.version="19.2.8",De}var d1;function $h(){if(d1)return cf.exports;d1=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(r){console.error(r)}}return c(),cf.exports=Jh(),cf.exports}var h1;function Wh(){if(h1)return zu;h1=1;var c=Kh(),r=xf(),g=$h();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function p(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function S(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function z(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function j(t){if(p(t)!==t)throw Error(o(188))}function E(t){var e=t.alternate;if(!e){if(e=p(t),e===null)throw Error(o(188));return e!==t?null:t}for(var l=t,n=e;;){var a=l.return;if(a===null)break;var u=a.alternate;if(u===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===l)return j(a),t;if(u===n)return j(a),e;u=u.sibling}throw Error(o(188))}if(l.return!==n.return)l=a,n=u;else{for(var i=!1,s=a.child;s;){if(s===l){i=!0,l=a,n=u;break}if(s===n){i=!0,n=a,l=u;break}s=s.sibling}if(!i){for(s=u.child;s;){if(s===l){i=!0,l=u,n=a;break}if(s===n){i=!0,n=u,l=a;break}s=s.sibling}if(!i)throw Error(o(189))}}if(l.alternate!==n)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?t:e}function L(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=L(t),e!==null)return e;t=t.sibling}return null}var R=Object.assign,G=Symbol.for("react.element"),h=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),at=Symbol.for("react.fragment"),rt=Symbol.for("react.strict_mode"),ht=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),$=Symbol.for("react.context"),tt=Symbol.for("react.forward_ref"),lt=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),ut=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),gt=Symbol.iterator;function yt(t){return t===null||typeof t!="object"?null:(t=gt&&t[gt]||t["@@iterator"],typeof t=="function"?t:null)}var Rt=Symbol.for("react.client.reference");function At(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Rt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case at:return"Fragment";case ht:return"Profiler";case rt:return"StrictMode";case lt:return"Suspense";case W:return"SuspenseList";case ut:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Z:return"Portal";case $:return t.displayName||"Context";case X:return(t._context.displayName||"Context")+".Consumer";case tt:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case k:return e=t.displayName||null,e!==null?e:At(t.type)||"Memo";case F:e=t._payload,t=t._init;try{return At(t(e))}catch{}}return null}var Jt=Array.isArray,T=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=g.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},vt=[],xt=-1;function v(t){return{current:t}}function O(t){0>xt||(t.current=vt[xt],vt[xt]=null,xt--)}function Q(t,e){xt++,vt[xt]=t.current,t.current=e}var V=v(null),st=v(null),ft=v(null),zt=v(null);function Mt(t,e){switch(Q(ft,e),Q(st,t),Q(V,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?D0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=D0(e),t=j0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}O(V),Q(V,t)}function Ct(){O(V),O(st),O(ft)}function je(t){t.memoizedState!==null&&Q(zt,t);var e=V.current,l=j0(e,t.type);e!==l&&(Q(st,t),Q(V,l))}function Ie(t){st.current===t&&(O(V),O(st)),zt.current===t&&(O(zt),Su._currentValue=K)}var pe,yl;function Ne(t){if(pe===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);pe=e&&e[1]||"",yl=-1<l.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+pe+t+yl}var Kl=!1;function Oe(t,e){if(!t||Kl)return"";Kl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(D){var A=D}Reflect.construct(t,[],U)}else{try{U.call()}catch(D){A=D}t.call(U.prototype)}}else{try{throw Error()}catch(D){A=D}(U=t())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(D){if(D&&A&&typeof D.stack=="string")return[D.stack,A.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=n.DetermineComponentFrameRoot(),i=u[0],s=u[1];if(i&&s){var y=i.split(`
|
|
4
|
+
`),C=s.split(`
|
|
5
|
+
`);for(a=n=0;n<y.length&&!y[n].includes("DetermineComponentFrameRoot");)n++;for(;a<C.length&&!C[a].includes("DetermineComponentFrameRoot");)a++;if(n===y.length||a===C.length)for(n=y.length-1,a=C.length-1;1<=n&&0<=a&&y[n]!==C[a];)a--;for(;1<=n&&0<=a;n--,a--)if(y[n]!==C[a]){if(n!==1||a!==1)do if(n--,a--,0>a||y[n]!==C[a]){var N=`
|
|
6
|
+
`+y[n].replace(" at new "," at ");return t.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",t.displayName)),N}while(1<=n&&0<=a);break}}}finally{Kl=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Ne(l):""}function An(t,e){switch(t.tag){case 26:case 27:case 5:return Ne(t.type);case 16:return Ne("Lazy");case 13:return t.child!==e&&e!==null?Ne("Suspense Fallback"):Ne("Suspense");case 19:return Ne("SuspenseList");case 0:case 15:return Oe(t.type,!1);case 11:return Oe(t.type.render,!1);case 1:return Oe(t.type,!0);case 31:return Ne("Activity");default:return""}}function Al(t){try{var e="",l=null;do e+=An(t,l),l=t,t=t.return;while(t);return e}catch(n){return`
|
|
7
|
+
Error generating stack: `+n.message+`
|
|
8
|
+
`+n.stack}}var Re=Object.prototype.hasOwnProperty,Jl=c.unstable_scheduleCallback,zl=c.unstable_cancelCallback,zn=c.unstable_shouldYield,Tn=c.unstable_requestPaint,ve=c.unstable_now,In=c.unstable_getCurrentPriorityLevel,$l=c.unstable_ImmediatePriority,Ae=c.unstable_UserBlockingPriority,Qe=c.unstable_NormalPriority,be=c.unstable_LowPriority,Dn=c.unstable_IdlePriority,jn=c.log,Pn=c.unstable_setDisableYieldValue,pl=null,me=null;function Pe(t){if(typeof jn=="function"&&Pn(t),me&&typeof me.setStrictMode=="function")try{me.setStrictMode(pl,t)}catch{}}var xe=Math.clz32?Math.clz32:J,Ra=Math.log,w=Math.LN2;function J(t){return t>>>=0,t===0?32:31-(Ra(t)/w|0)|0}var bt=256,ot=262144,Gt=4194304;function se(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Tt(t,e,l){var n=t.pendingLanes;if(n===0)return 0;var a=0,u=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var s=n&134217727;return s!==0?(n=s&~u,n!==0?a=se(n):(i&=s,i!==0?a=se(i):l||(l=s&~t,l!==0&&(a=se(l))))):(s=n&~u,s!==0?a=se(s):i!==0?a=se(i):l||(l=n&~t,l!==0&&(a=se(l)))),a===0?0:e!==0&&e!==a&&(e&u)===0&&(u=a&-a,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:a}function It(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function ze(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 ju(){var t=Gt;return Gt<<=1,(Gt&62914560)===0&&(Gt=4194304),t}function Wl(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Nn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function vl(t,e,l,n,a,u){var i=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var s=t.entanglements,y=t.expirationTimes,C=t.hiddenUpdates;for(l=i&~l;0<l;){var N=31-xe(l),U=1<<N;s[N]=0,y[N]=-1;var A=C[N];if(A!==null)for(C[N]=null,N=0;N<A.length;N++){var D=A[N];D!==null&&(D.lane&=-536870913)}l&=~U}n!==0&&Nu(t,n,0),u!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=u&~(i&~e))}function Nu(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-xe(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|l&261930}function Ou(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var n=31-xe(l),a=1<<n;a&e|t[n]&e&&(t[n]|=e),l&=~a}}function Ua(t,e){var l=e&-e;return l=(l&42)!==0?1:Ha(l),(l&(t.suspendedLanes|e))!==0?0:l}function Ha(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Fl(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function $t(){var t=q.p;return t!==0?t:(t=window.event,t===void 0?32:I0(t.type))}function wu(t,e){var l=q.p;try{return q.p=t,e()}finally{q.p=l}}var Nt=Math.random().toString(36).slice(2),ee="__reactFiber$"+Nt,Te="__reactProps$"+Nt,Tl="__reactContainer$"+Nt,On="__reactEvents$"+Nt,Ki="__reactListeners$"+Nt,Ji="__reactHandles$"+Nt,Ba="__reactResources$"+Nt,wn="__reactMarker$"+Nt;function ta(t){delete t[ee],delete t[Te],delete t[On],delete t[Ki],delete t[Ji]}function bl(t){var e=t[ee];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Tl]||l[ee]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=H0(t);t!==null;){if(l=t[ee])return l;t=H0(t)}return e}t=l,l=t.parentNode}return null}function xl(t){if(t=t[ee]||t[Tl]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function rl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Ze(t){var e=t[Ba];return e||(e=t[Ba]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ue(t){t[wn]=!0}var _u=new Set,dl={};function Dl(t,e){Il(t,e),Il(t+"Capture",e)}function Il(t,e){for(dl[t]=e,t=0;t<e.length;t++)_u.add(e[t])}var $i=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]*$"),Ru={},Uu={};function Wi(t){return Re.call(Uu,t)?!0:Re.call(Ru,t)?!1:$i.test(t)?Uu[t]=!0:(Ru[t]=!0,!1)}function ea(t,e,l){if(Wi(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function m(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function B(t,e,l,n){if(n===null)t.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+n)}}function Y(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function et(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ct(t,e,l){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,u=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(i){l=""+i,u.call(this,i)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function mt(t){if(!t._valueTracker){var e=et(t)?"checked":"value";t._valueTracker=ct(t,e,""+t[e])}}function Ut(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),n="";return t&&(n=et(t)?t.checked?"true":"false":t.value),t=n,t!==l?(e.setValue(t),!0):!1}function qt(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var te=/[\n"\\]/g;function Lt(t){return t.replace(te,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function ge(t,e,l,n,a,u,i,s){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),e!=null?i==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Y(e)):t.value!==""+Y(e)&&(t.value=""+Y(e)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),e!=null?le(t,i,Y(e)):l!=null?le(t,i,Y(l)):n!=null&&t.removeAttribute("value"),a==null&&u!=null&&(t.defaultChecked=!!u),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.name=""+Y(s):t.removeAttribute("name")}function we(t,e,l,n,a,u,i,s){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){mt(t);return}l=l!=null?""+Y(l):"",e=e!=null?""+Y(e):l,s||e===t.value||(t.value=e),t.defaultValue=e}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=s?t.checked:!!n,t.defaultChecked=!!n,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i),mt(t)}function le(t,e,l){e==="number"&&qt(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Pl(t,e,l,n){if(t=t.options,e){e={};for(var a=0;a<l.length;a++)e["$"+l[a]]=!0;for(l=0;l<t.length;l++)a=e.hasOwnProperty("$"+t[l].value),t[l].selected!==a&&(t[l].selected=a),a&&n&&(t[l].defaultSelected=!0)}else{for(l=""+Y(l),e=null,a=0;a<t.length;a++){if(t[a].value===l){t[a].selected=!0,n&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function Ef(t,e,l){if(e!=null&&(e=""+Y(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Y(l):""}function Mf(t,e,l,n){if(e==null){if(n!=null){if(l!=null)throw Error(o(92));if(Jt(n)){if(1<n.length)throw Error(o(93));n=n[0]}l=n}l==null&&(l=""),e=l}l=Y(e),t.defaultValue=l,n=t.textContent,n===l&&n!==""&&n!==null&&(t.value=n),mt(t)}function la(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var q1=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 Cf(t,e,l){var n=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,l):typeof l!="number"||l===0||q1.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Af(t,e,l){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var a in e)n=e[a],e.hasOwnProperty(a)&&l[a]!==n&&Cf(t,a,n)}else for(var u in e)e.hasOwnProperty(u)&&Cf(t,u,e[u])}function Fi(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var L1=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"]]),Y1=/^[\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 Hu(t){return Y1.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function jl(){}var Ii=null;function Pi(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var na=null,aa=null;function zf(t){var e=xl(t);if(e&&(t=e.stateNode)){var l=t[Te]||null;t:switch(t=e.stateNode,e.type){case"input":if(ge(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Lt(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var n=l[e];if(n!==t&&n.form===t.form){var a=n[Te]||null;if(!a)throw Error(o(90));ge(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<l.length;e++)n=l[e],n.form===t.form&&Ut(n)}break t;case"textarea":Ef(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&Pl(t,!!l.multiple,e,!1)}}}var tc=!1;function Tf(t,e,l){if(tc)return t(e,l);tc=!0;try{var n=t(e);return n}finally{if(tc=!1,(na!==null||aa!==null)&&(Mi(),na&&(e=na,t=aa,aa=na=null,zf(e),t)))for(e=0;e<t.length;e++)zf(t[e])}}function qa(t,e){var l=t.stateNode;if(l===null)return null;var n=l[Te]||null;if(n===null)return null;l=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(o(231,e,typeof l));return l}var Nl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ec=!1;if(Nl)try{var La={};Object.defineProperty(La,"passive",{get:function(){ec=!0}}),window.addEventListener("test",La,La),window.removeEventListener("test",La,La)}catch{ec=!1}var tn=null,lc=null,Bu=null;function Df(){if(Bu)return Bu;var t,e=lc,l=e.length,n,a="value"in tn?tn.value:tn.textContent,u=a.length;for(t=0;t<l&&e[t]===a[t];t++);var i=l-t;for(n=1;n<=i&&e[l-n]===a[u-n];n++);return Bu=a.slice(t,1<n?1-n:void 0)}function qu(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Lu(){return!0}function jf(){return!1}function Ue(t){function e(l,n,a,u,i){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(l=t[s],this[s]=l?l(u):u[s]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Lu:jf,this.isPropagationStopped=jf,this}return R(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Lu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Lu)},persist:function(){},isPersistent:Lu}),e}var _n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yu=Ue(_n),Ya=R({},_n,{view:0,detail:0}),G1=Ue(Ya),nc,ac,Ga,Gu=R({},Ya,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ic,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ga&&(Ga&&t.type==="mousemove"?(nc=t.screenX-Ga.screenX,ac=t.screenY-Ga.screenY):ac=nc=0,Ga=t),nc)},movementY:function(t){return"movementY"in t?t.movementY:ac}}),Nf=Ue(Gu),X1=R({},Gu,{dataTransfer:0}),Q1=Ue(X1),Z1=R({},Ya,{relatedTarget:0}),uc=Ue(Z1),k1=R({},_n,{animationName:0,elapsedTime:0,pseudoElement:0}),V1=Ue(k1),K1=R({},_n,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),J1=Ue(K1),$1=R({},_n,{data:0}),Of=Ue($1),W1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},F1={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"},I1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function P1(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=I1[t])?!!e[t]:!1}function ic(){return P1}var td=R({},Ya,{key:function(t){if(t.key){var e=W1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=qu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?F1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ic,charCode:function(t){return t.type==="keypress"?qu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?qu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),ed=Ue(td),ld=R({},Gu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wf=Ue(ld),nd=R({},Ya,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ic}),ad=Ue(nd),ud=R({},_n,{propertyName:0,elapsedTime:0,pseudoElement:0}),id=Ue(ud),cd=R({},Gu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),sd=Ue(cd),fd=R({},_n,{newState:0,oldState:0}),od=Ue(fd),rd=[9,13,27,32],cc=Nl&&"CompositionEvent"in window,Xa=null;Nl&&"documentMode"in document&&(Xa=document.documentMode);var dd=Nl&&"TextEvent"in window&&!Xa,_f=Nl&&(!cc||Xa&&8<Xa&&11>=Xa),Rf=" ",Uf=!1;function Hf(t,e){switch(t){case"keyup":return rd.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ua=!1;function hd(t,e){switch(t){case"compositionend":return Bf(e);case"keypress":return e.which!==32?null:(Uf=!0,Rf);case"textInput":return t=e.data,t===Rf&&Uf?null:t;default:return null}}function md(t,e){if(ua)return t==="compositionend"||!cc&&Hf(t,e)?(t=Df(),Bu=lc=tn=null,ua=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return _f&&e.locale!=="ko"?null:e.data;default:return null}}var gd={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 qf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!gd[t.type]:e==="textarea"}function Lf(t,e,l,n){na?aa?aa.push(n):aa=[n]:na=n,e=Ni(e,"onChange"),0<e.length&&(l=new Yu("onChange","change",null,l,n),t.push({event:l,listeners:e}))}var Qa=null,Za=null;function yd(t){E0(t,0)}function Xu(t){var e=rl(t);if(Ut(e))return t}function Yf(t,e){if(t==="change")return e}var Gf=!1;if(Nl){var sc;if(Nl){var fc="oninput"in document;if(!fc){var Xf=document.createElement("div");Xf.setAttribute("oninput","return;"),fc=typeof Xf.oninput=="function"}sc=fc}else sc=!1;Gf=sc&&(!document.documentMode||9<document.documentMode)}function Qf(){Qa&&(Qa.detachEvent("onpropertychange",Zf),Za=Qa=null)}function Zf(t){if(t.propertyName==="value"&&Xu(Za)){var e=[];Lf(e,Za,t,Pi(t)),Tf(yd,e)}}function pd(t,e,l){t==="focusin"?(Qf(),Qa=e,Za=l,Qa.attachEvent("onpropertychange",Zf)):t==="focusout"&&Qf()}function vd(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Xu(Za)}function bd(t,e){if(t==="click")return Xu(e)}function xd(t,e){if(t==="input"||t==="change")return Xu(e)}function Sd(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ke=typeof Object.is=="function"?Object.is:Sd;function ka(t,e){if(ke(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),n=Object.keys(e);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!Re.call(e,a)||!ke(t[a],e[a]))return!1}return!0}function kf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Vf(t,e){var l=kf(t);t=0;for(var n;l;){if(l.nodeType===3){if(n=t+l.textContent.length,t<=e&&n>=e)return{node:l,offset:e-t};t=n}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=kf(l)}}function Kf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Kf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Jf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=qt(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=qt(t.document)}return e}function oc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Ed=Nl&&"documentMode"in document&&11>=document.documentMode,ia=null,rc=null,Va=null,dc=!1;function $f(t,e,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;dc||ia==null||ia!==qt(n)||(n=ia,"selectionStart"in n&&oc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Va&&ka(Va,n)||(Va=n,n=Ni(rc,"onSelect"),0<n.length&&(e=new Yu("onSelect","select",null,e,l),t.push({event:e,listeners:n}),e.target=ia)))}function Rn(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var ca={animationend:Rn("Animation","AnimationEnd"),animationiteration:Rn("Animation","AnimationIteration"),animationstart:Rn("Animation","AnimationStart"),transitionrun:Rn("Transition","TransitionRun"),transitionstart:Rn("Transition","TransitionStart"),transitioncancel:Rn("Transition","TransitionCancel"),transitionend:Rn("Transition","TransitionEnd")},hc={},Wf={};Nl&&(Wf=document.createElement("div").style,"AnimationEvent"in window||(delete ca.animationend.animation,delete ca.animationiteration.animation,delete ca.animationstart.animation),"TransitionEvent"in window||delete ca.transitionend.transition);function Un(t){if(hc[t])return hc[t];if(!ca[t])return t;var e=ca[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Wf)return hc[t]=e[l];return t}var Ff=Un("animationend"),If=Un("animationiteration"),Pf=Un("animationstart"),Md=Un("transitionrun"),Cd=Un("transitionstart"),Ad=Un("transitioncancel"),to=Un("transitionend"),eo=new Map,mc="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(" ");mc.push("scrollEnd");function hl(t,e){eo.set(t,e),Dl(e,[t])}var Qu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},tl=[],sa=0,gc=0;function Zu(){for(var t=sa,e=gc=sa=0;e<t;){var l=tl[e];tl[e++]=null;var n=tl[e];tl[e++]=null;var a=tl[e];tl[e++]=null;var u=tl[e];if(tl[e++]=null,n!==null&&a!==null){var i=n.pending;i===null?a.next=a:(a.next=i.next,i.next=a),n.pending=a}u!==0&&lo(l,a,u)}}function ku(t,e,l,n){tl[sa++]=t,tl[sa++]=e,tl[sa++]=l,tl[sa++]=n,gc|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function yc(t,e,l,n){return ku(t,e,l,n),Vu(t)}function Hn(t,e){return ku(t,null,null,e),Vu(t)}function lo(t,e,l){t.lanes|=l;var n=t.alternate;n!==null&&(n.lanes|=l);for(var a=!1,u=t.return;u!==null;)u.childLanes|=l,n=u.alternate,n!==null&&(n.childLanes|=l),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(a=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,a&&e!==null&&(a=31-xe(l),t=u.hiddenUpdates,n=t[a],n===null?t[a]=[e]:n.push(e),e.lane=l|536870912),u):null}function Vu(t){if(50<mu)throw mu=0,As=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var fa={};function zd(t,e,l,n){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ve(t,e,l,n){return new zd(t,e,l,n)}function pc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ol(t,e){var l=t.alternate;return l===null?(l=Ve(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function no(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Ku(t,e,l,n,a,u){var i=0;if(n=t,typeof t=="function")pc(t)&&(i=1);else if(typeof t=="string")i=Oh(t,l,V.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case ut:return t=Ve(31,l,e,a),t.elementType=ut,t.lanes=u,t;case at:return Bn(l.children,a,u,e);case rt:i=8,a|=24;break;case ht:return t=Ve(12,l,e,a|2),t.elementType=ht,t.lanes=u,t;case lt:return t=Ve(13,l,e,a),t.elementType=lt,t.lanes=u,t;case W:return t=Ve(19,l,e,a),t.elementType=W,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case $:i=10;break t;case X:i=9;break t;case tt:i=11;break t;case k:i=14;break t;case F:i=16,n=null;break t}i=29,l=Error(o(130,t===null?"null":typeof t,"")),n=null}return e=Ve(i,l,e,a),e.elementType=t,e.type=n,e.lanes=u,e}function Bn(t,e,l,n){return t=Ve(7,t,n,e),t.lanes=l,t}function vc(t,e,l){return t=Ve(6,t,null,e),t.lanes=l,t}function ao(t){var e=Ve(18,null,null,0);return e.stateNode=t,e}function bc(t,e,l){return e=Ve(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var uo=new WeakMap;function el(t,e){if(typeof t=="object"&&t!==null){var l=uo.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Al(e)},uo.set(t,e),e)}return{value:t,source:e,stack:Al(e)}}var oa=[],ra=0,Ju=null,Ka=0,ll=[],nl=0,en=null,Sl=1,El="";function wl(t,e){oa[ra++]=Ka,oa[ra++]=Ju,Ju=t,Ka=e}function io(t,e,l){ll[nl++]=Sl,ll[nl++]=El,ll[nl++]=en,en=t;var n=Sl;t=El;var a=32-xe(n)-1;n&=~(1<<a),l+=1;var u=32-xe(e)+a;if(30<u){var i=a-a%5;u=(n&(1<<i)-1).toString(32),n>>=i,a-=i,Sl=1<<32-xe(e)+a|l<<a|n,El=u+t}else Sl=1<<u|l<<a|n,El=t}function xc(t){t.return!==null&&(wl(t,1),io(t,1,0))}function Sc(t){for(;t===Ju;)Ju=oa[--ra],oa[ra]=null,Ka=oa[--ra],oa[ra]=null;for(;t===en;)en=ll[--nl],ll[nl]=null,El=ll[--nl],ll[nl]=null,Sl=ll[--nl],ll[nl]=null}function co(t,e){ll[nl++]=Sl,ll[nl++]=El,ll[nl++]=en,Sl=e.id,El=e.overflow,en=t}var Se=null,Wt=null,_t=!1,ln=null,al=!1,Ec=Error(o(519));function nn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ja(el(e,t)),Ec}function so(t){var e=t.stateNode,l=t.type,n=t.memoizedProps;switch(e[ee]=t,e[Te]=n,l){case"dialog":jt("cancel",e),jt("close",e);break;case"iframe":case"object":case"embed":jt("load",e);break;case"video":case"audio":for(l=0;l<yu.length;l++)jt(yu[l],e);break;case"source":jt("error",e);break;case"img":case"image":case"link":jt("error",e),jt("load",e);break;case"details":jt("toggle",e);break;case"input":jt("invalid",e),we(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":jt("invalid",e);break;case"textarea":jt("invalid",e),Mf(e,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||n.suppressHydrationWarning===!0||z0(e.textContent,l)?(n.popover!=null&&(jt("beforetoggle",e),jt("toggle",e)),n.onScroll!=null&&jt("scroll",e),n.onScrollEnd!=null&&jt("scrollend",e),n.onClick!=null&&(e.onclick=jl),e=!0):e=!1,e||nn(t,!0)}function fo(t){for(Se=t.return;Se;)switch(Se.tag){case 5:case 31:case 13:al=!1;return;case 27:case 3:al=!0;return;default:Se=Se.return}}function da(t){if(t!==Se)return!1;if(!_t)return fo(t),_t=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Ys(t.type,t.memoizedProps)),l=!l),l&&Wt&&nn(t),fo(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Wt=U0(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Wt=U0(t)}else e===27?(e=Wt,vn(t.type)?(t=ks,ks=null,Wt=t):Wt=e):Wt=Se?il(t.stateNode.nextSibling):null;return!0}function qn(){Wt=Se=null,_t=!1}function Mc(){var t=ln;return t!==null&&(Le===null?Le=t:Le.push.apply(Le,t),ln=null),t}function Ja(t){ln===null?ln=[t]:ln.push(t)}var Cc=v(null),Ln=null,_l=null;function an(t,e,l){Q(Cc,e._currentValue),e._currentValue=l}function Rl(t){t._currentValue=Cc.current,O(Cc)}function Ac(t,e,l){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===l)break;t=t.return}}function zc(t,e,l,n){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){var i=a.child;u=u.firstContext;t:for(;u!==null;){var s=u;u=a;for(var y=0;y<e.length;y++)if(s.context===e[y]){u.lanes|=l,s=u.alternate,s!==null&&(s.lanes|=l),Ac(u.return,l,t),n||(i=null);break t}u=s.next}}else if(a.tag===18){if(i=a.return,i===null)throw Error(o(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),Ac(i,l,t),i=null}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}}function ha(t,e,l,n){t=null;for(var a=e,u=!1;a!==null;){if(!u){if((a.flags&524288)!==0)u=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var i=a.alternate;if(i===null)throw Error(o(387));if(i=i.memoizedProps,i!==null){var s=a.type;ke(a.pendingProps.value,i.value)||(t!==null?t.push(s):t=[s])}}else if(a===zt.current){if(i=a.alternate,i===null)throw Error(o(387));i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Su):t=[Su])}a=a.return}t!==null&&zc(e,t,l,n),e.flags|=262144}function $u(t){for(t=t.firstContext;t!==null;){if(!ke(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Yn(t){Ln=t,_l=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ee(t){return oo(Ln,t)}function Wu(t,e){return Ln===null&&Yn(t),oo(t,e)}function oo(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},_l===null){if(t===null)throw Error(o(308));_l=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else _l=_l.next=e;return l}var Td=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},Dd=c.unstable_scheduleCallback,jd=c.unstable_NormalPriority,fe={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Tc(){return{controller:new Td,data:new Map,refCount:0}}function $a(t){t.refCount--,t.refCount===0&&Dd(jd,function(){t.controller.abort()})}var Wa=null,Dc=0,ma=0,ga=null;function Nd(t,e){if(Wa===null){var l=Wa=[];Dc=0,ma=Os(),ga={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Dc++,e.then(ro,ro),e}function ro(){if(--Dc===0&&Wa!==null){ga!==null&&(ga.status="fulfilled");var t=Wa;Wa=null,ma=0,ga=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Od(t,e){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var a=0;a<l.length;a++)(0,l[a])(e)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var ho=T.S;T.S=function(t,e){Wr=ve(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Nd(t,e),ho!==null&&ho(t,e)};var Gn=v(null);function jc(){var t=Gn.current;return t!==null?t:Kt.pooledCache}function Fu(t,e){e===null?Q(Gn,Gn.current):Q(Gn,e.pool)}function mo(){var t=jc();return t===null?null:{parent:fe._currentValue,pool:t}}var ya=Error(o(460)),Nc=Error(o(474)),Iu=Error(o(542)),Pu={then:function(){}};function go(t){return t=t.status,t==="fulfilled"||t==="rejected"}function yo(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(jl,jl),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,vo(t),t;default:if(typeof e.status=="string")e.then(jl,jl);else{if(t=Kt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=n}},function(n){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,vo(t),t}throw Qn=e,ya}}function Xn(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Qn=l,ya):l}}var Qn=null;function po(){if(Qn===null)throw Error(o(459));var t=Qn;return Qn=null,t}function vo(t){if(t===ya||t===Iu)throw Error(o(483))}var pa=null,Fa=0;function ti(t){var e=Fa;return Fa+=1,pa===null&&(pa=[]),yo(pa,t,e)}function Ia(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ei(t,e){throw e.$$typeof===G?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function bo(t){function e(x,b){if(t){var M=x.deletions;M===null?(x.deletions=[b],x.flags|=16):M.push(b)}}function l(x,b){if(!t)return null;for(;b!==null;)e(x,b),b=b.sibling;return null}function n(x){for(var b=new Map;x!==null;)x.key!==null?b.set(x.key,x):b.set(x.index,x),x=x.sibling;return b}function a(x,b){return x=Ol(x,b),x.index=0,x.sibling=null,x}function u(x,b,M){return x.index=M,t?(M=x.alternate,M!==null?(M=M.index,M<b?(x.flags|=67108866,b):M):(x.flags|=67108866,b)):(x.flags|=1048576,b)}function i(x){return t&&x.alternate===null&&(x.flags|=67108866),x}function s(x,b,M,_){return b===null||b.tag!==6?(b=vc(M,x.mode,_),b.return=x,b):(b=a(b,M),b.return=x,b)}function y(x,b,M,_){var it=M.type;return it===at?N(x,b,M.props.children,_,M.key):b!==null&&(b.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===F&&Xn(it)===b.type)?(b=a(b,M.props),Ia(b,M),b.return=x,b):(b=Ku(M.type,M.key,M.props,null,x.mode,_),Ia(b,M),b.return=x,b)}function C(x,b,M,_){return b===null||b.tag!==4||b.stateNode.containerInfo!==M.containerInfo||b.stateNode.implementation!==M.implementation?(b=bc(M,x.mode,_),b.return=x,b):(b=a(b,M.children||[]),b.return=x,b)}function N(x,b,M,_,it){return b===null||b.tag!==7?(b=Bn(M,x.mode,_,it),b.return=x,b):(b=a(b,M),b.return=x,b)}function U(x,b,M){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=vc(""+b,x.mode,M),b.return=x,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case h:return M=Ku(b.type,b.key,b.props,null,x.mode,M),Ia(M,b),M.return=x,M;case Z:return b=bc(b,x.mode,M),b.return=x,b;case F:return b=Xn(b),U(x,b,M)}if(Jt(b)||yt(b))return b=Bn(b,x.mode,M,null),b.return=x,b;if(typeof b.then=="function")return U(x,ti(b),M);if(b.$$typeof===$)return U(x,Wu(x,b),M);ei(x,b)}return null}function A(x,b,M,_){var it=b!==null?b.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return it!==null?null:s(x,b,""+M,_);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case h:return M.key===it?y(x,b,M,_):null;case Z:return M.key===it?C(x,b,M,_):null;case F:return M=Xn(M),A(x,b,M,_)}if(Jt(M)||yt(M))return it!==null?null:N(x,b,M,_,null);if(typeof M.then=="function")return A(x,b,ti(M),_);if(M.$$typeof===$)return A(x,b,Wu(x,M),_);ei(x,M)}return null}function D(x,b,M,_,it){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return x=x.get(M)||null,s(b,x,""+_,it);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case h:return x=x.get(_.key===null?M:_.key)||null,y(b,x,_,it);case Z:return x=x.get(_.key===null?M:_.key)||null,C(b,x,_,it);case F:return _=Xn(_),D(x,b,M,_,it)}if(Jt(_)||yt(_))return x=x.get(M)||null,N(b,x,_,it,null);if(typeof _.then=="function")return D(x,b,M,ti(_),it);if(_.$$typeof===$)return D(x,b,M,Wu(b,_),it);ei(b,_)}return null}function I(x,b,M,_){for(var it=null,Ht=null,nt=b,Et=b=0,wt=null;nt!==null&&Et<M.length;Et++){nt.index>Et?(wt=nt,nt=null):wt=nt.sibling;var Bt=A(x,nt,M[Et],_);if(Bt===null){nt===null&&(nt=wt);break}t&&nt&&Bt.alternate===null&&e(x,nt),b=u(Bt,b,Et),Ht===null?it=Bt:Ht.sibling=Bt,Ht=Bt,nt=wt}if(Et===M.length)return l(x,nt),_t&&wl(x,Et),it;if(nt===null){for(;Et<M.length;Et++)nt=U(x,M[Et],_),nt!==null&&(b=u(nt,b,Et),Ht===null?it=nt:Ht.sibling=nt,Ht=nt);return _t&&wl(x,Et),it}for(nt=n(nt);Et<M.length;Et++)wt=D(nt,x,Et,M[Et],_),wt!==null&&(t&&wt.alternate!==null&&nt.delete(wt.key===null?Et:wt.key),b=u(wt,b,Et),Ht===null?it=wt:Ht.sibling=wt,Ht=wt);return t&&nt.forEach(function(Mn){return e(x,Mn)}),_t&&wl(x,Et),it}function dt(x,b,M,_){if(M==null)throw Error(o(151));for(var it=null,Ht=null,nt=b,Et=b=0,wt=null,Bt=M.next();nt!==null&&!Bt.done;Et++,Bt=M.next()){nt.index>Et?(wt=nt,nt=null):wt=nt.sibling;var Mn=A(x,nt,Bt.value,_);if(Mn===null){nt===null&&(nt=wt);break}t&&nt&&Mn.alternate===null&&e(x,nt),b=u(Mn,b,Et),Ht===null?it=Mn:Ht.sibling=Mn,Ht=Mn,nt=wt}if(Bt.done)return l(x,nt),_t&&wl(x,Et),it;if(nt===null){for(;!Bt.done;Et++,Bt=M.next())Bt=U(x,Bt.value,_),Bt!==null&&(b=u(Bt,b,Et),Ht===null?it=Bt:Ht.sibling=Bt,Ht=Bt);return _t&&wl(x,Et),it}for(nt=n(nt);!Bt.done;Et++,Bt=M.next())Bt=D(nt,x,Et,Bt.value,_),Bt!==null&&(t&&Bt.alternate!==null&&nt.delete(Bt.key===null?Et:Bt.key),b=u(Bt,b,Et),Ht===null?it=Bt:Ht.sibling=Bt,Ht=Bt);return t&&nt.forEach(function(Xh){return e(x,Xh)}),_t&&wl(x,Et),it}function Vt(x,b,M,_){if(typeof M=="object"&&M!==null&&M.type===at&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case h:t:{for(var it=M.key;b!==null;){if(b.key===it){if(it=M.type,it===at){if(b.tag===7){l(x,b.sibling),_=a(b,M.props.children),_.return=x,x=_;break t}}else if(b.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===F&&Xn(it)===b.type){l(x,b.sibling),_=a(b,M.props),Ia(_,M),_.return=x,x=_;break t}l(x,b);break}else e(x,b);b=b.sibling}M.type===at?(_=Bn(M.props.children,x.mode,_,M.key),_.return=x,x=_):(_=Ku(M.type,M.key,M.props,null,x.mode,_),Ia(_,M),_.return=x,x=_)}return i(x);case Z:t:{for(it=M.key;b!==null;){if(b.key===it)if(b.tag===4&&b.stateNode.containerInfo===M.containerInfo&&b.stateNode.implementation===M.implementation){l(x,b.sibling),_=a(b,M.children||[]),_.return=x,x=_;break t}else{l(x,b);break}else e(x,b);b=b.sibling}_=bc(M,x.mode,_),_.return=x,x=_}return i(x);case F:return M=Xn(M),Vt(x,b,M,_)}if(Jt(M))return I(x,b,M,_);if(yt(M)){if(it=yt(M),typeof it!="function")throw Error(o(150));return M=it.call(M),dt(x,b,M,_)}if(typeof M.then=="function")return Vt(x,b,ti(M),_);if(M.$$typeof===$)return Vt(x,b,Wu(x,M),_);ei(x,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,b!==null&&b.tag===6?(l(x,b.sibling),_=a(b,M),_.return=x,x=_):(l(x,b),_=vc(M,x.mode,_),_.return=x,x=_),i(x)):l(x,b)}return function(x,b,M,_){try{Fa=0;var it=Vt(x,b,M,_);return pa=null,it}catch(nt){if(nt===ya||nt===Iu)throw nt;var Ht=Ve(29,nt,null,x.mode);return Ht.lanes=_,Ht.return=x,Ht}}}var Zn=bo(!0),xo=bo(!1),un=!1;function Oc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function cn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function sn(t,e,l){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(Yt&2)!==0){var a=n.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),n.pending=e,e=Vu(t),lo(t,null,l),e}return ku(t,n,e,l),Vu(t)}function Pa(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Ou(t,l)}}function _c(t,e){var l=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?a=u=i:u=u.next=i,l=l.next}while(l!==null);u===null?a=u=e:u=u.next=e}else a=u=e;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var Rc=!1;function tu(){if(Rc){var t=ga;if(t!==null)throw t}}function eu(t,e,l,n){Rc=!1;var a=t.updateQueue;un=!1;var u=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var y=s,C=y.next;y.next=null,i===null?u=C:i.next=C,i=y;var N=t.alternate;N!==null&&(N=N.updateQueue,s=N.lastBaseUpdate,s!==i&&(s===null?N.firstBaseUpdate=C:s.next=C,N.lastBaseUpdate=y))}if(u!==null){var U=a.baseState;i=0,N=C=y=null,s=u;do{var A=s.lane&-536870913,D=A!==s.lane;if(D?(Ot&A)===A:(n&A)===A){A!==0&&A===ma&&(Rc=!0),N!==null&&(N=N.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});t:{var I=t,dt=s;A=e;var Vt=l;switch(dt.tag){case 1:if(I=dt.payload,typeof I=="function"){U=I.call(Vt,U,A);break t}U=I;break t;case 3:I.flags=I.flags&-65537|128;case 0:if(I=dt.payload,A=typeof I=="function"?I.call(Vt,U,A):I,A==null)break t;U=R({},U,A);break t;case 2:un=!0}}A=s.callback,A!==null&&(t.flags|=64,D&&(t.flags|=8192),D=a.callbacks,D===null?a.callbacks=[A]:D.push(A))}else D={lane:A,tag:s.tag,payload:s.payload,callback:s.callback,next:null},N===null?(C=N=D,y=U):N=N.next=D,i|=A;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;D=s,s=D.next,D.next=null,a.lastBaseUpdate=D,a.shared.pending=null}}while(!0);N===null&&(y=U),a.baseState=y,a.firstBaseUpdate=C,a.lastBaseUpdate=N,u===null&&(a.shared.lanes=0),hn|=i,t.lanes=i,t.memoizedState=U}}function So(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Eo(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)So(l[t],e)}var va=v(null),li=v(0);function Mo(t,e){t=Ql,Q(li,t),Q(va,e),Ql=t|e.baseLanes}function Uc(){Q(li,Ql),Q(va,va.current)}function Hc(){Ql=li.current,O(va),O(li)}var Ke=v(null),ul=null;function fn(t){var e=t.alternate;Q(ie,ie.current&1),Q(Ke,t),ul===null&&(e===null||va.current!==null||e.memoizedState!==null)&&(ul=t)}function Bc(t){Q(ie,ie.current),Q(Ke,t),ul===null&&(ul=t)}function Co(t){t.tag===22?(Q(ie,ie.current),Q(Ke,t),ul===null&&(ul=t)):on()}function on(){Q(ie,ie.current),Q(Ke,Ke.current)}function Je(t){O(Ke),ul===t&&(ul=null),O(ie)}var ie=v(0);function ni(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Qs(l)||Zs(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ul=0,St=null,Zt=null,oe=null,ai=!1,ba=!1,kn=!1,ui=0,lu=0,xa=null,wd=0;function ne(){throw Error(o(321))}function qc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!ke(t[l],e[l]))return!1;return!0}function Lc(t,e,l,n,a,u){return Ul=u,St=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,T.H=t===null||t.memoizedState===null?cr:ts,kn=!1,u=l(n,a),kn=!1,ba&&(u=zo(e,l,n,a)),Ao(t),u}function Ao(t){T.H=uu;var e=Zt!==null&&Zt.next!==null;if(Ul=0,oe=Zt=St=null,ai=!1,lu=0,xa=null,e)throw Error(o(300));t===null||re||(t=t.dependencies,t!==null&&$u(t)&&(re=!0))}function zo(t,e,l,n){St=t;var a=0;do{if(ba&&(xa=null),lu=0,ba=!1,25<=a)throw Error(o(301));if(a+=1,oe=Zt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}T.H=sr,u=e(l,n)}while(ba);return u}function _d(){var t=T.H,e=t.useState()[0];return e=typeof e.then=="function"?nu(e):e,t=t.useState()[0],(Zt!==null?Zt.memoizedState:null)!==t&&(St.flags|=1024),e}function Yc(){var t=ui!==0;return ui=0,t}function Gc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Xc(t){if(ai){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ai=!1}Ul=0,oe=Zt=St=null,ba=!1,lu=ui=0,xa=null}function _e(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oe===null?St.memoizedState=oe=t:oe=oe.next=t,oe}function ce(){if(Zt===null){var t=St.alternate;t=t!==null?t.memoizedState:null}else t=Zt.next;var e=oe===null?St.memoizedState:oe.next;if(e!==null)oe=e,Zt=t;else{if(t===null)throw St.alternate===null?Error(o(467)):Error(o(310));Zt=t,t={memoizedState:Zt.memoizedState,baseState:Zt.baseState,baseQueue:Zt.baseQueue,queue:Zt.queue,next:null},oe===null?St.memoizedState=oe=t:oe=oe.next=t}return oe}function ii(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nu(t){var e=lu;return lu+=1,xa===null&&(xa=[]),t=yo(xa,t,e),e=St,(oe===null?e.memoizedState:oe.next)===null&&(e=e.alternate,T.H=e===null||e.memoizedState===null?cr:ts),t}function ci(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return nu(t);if(t.$$typeof===$)return Ee(t)}throw Error(o(438,String(t)))}function Qc(t){var e=null,l=St.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var n=St.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=ii(),St.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),n=0;n<t;n++)l[n]=P;return e.index++,l}function Hl(t,e){return typeof e=="function"?e(t):e}function si(t){var e=ce();return Zc(e,Zt,t)}function Zc(t,e,l){var n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=l;var a=t.baseQueue,u=n.pending;if(u!==null){if(a!==null){var i=a.next;a.next=u.next,u.next=i}e.baseQueue=a=u,n.pending=null}if(u=t.baseState,a===null)t.memoizedState=u;else{e=a.next;var s=i=null,y=null,C=e,N=!1;do{var U=C.lane&-536870913;if(U!==C.lane?(Ot&U)===U:(Ul&U)===U){var A=C.revertLane;if(A===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),U===ma&&(N=!0);else if((Ul&A)===A){C=C.next,A===ma&&(N=!0);continue}else U={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},y===null?(s=y=U,i=u):y=y.next=U,St.lanes|=A,hn|=A;U=C.action,kn&&l(u,U),u=C.hasEagerState?C.eagerState:l(u,U)}else A={lane:U,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},y===null?(s=y=A,i=u):y=y.next=A,St.lanes|=U,hn|=U;C=C.next}while(C!==null&&C!==e);if(y===null?i=u:y.next=s,!ke(u,t.memoizedState)&&(re=!0,N&&(l=ga,l!==null)))throw l;t.memoizedState=u,t.baseState=i,t.baseQueue=y,n.lastRenderedState=u}return a===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function kc(t){var e=ce(),l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=t;var n=l.dispatch,a=l.pending,u=e.memoizedState;if(a!==null){l.pending=null;var i=a=a.next;do u=t(u,i.action),i=i.next;while(i!==a);ke(u,e.memoizedState)||(re=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,n]}function To(t,e,l){var n=St,a=ce(),u=_t;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=e();var i=!ke((Zt||a).memoizedState,l);if(i&&(a.memoizedState=l,re=!0),a=a.queue,Jc(No.bind(null,n,a,t),[t]),a.getSnapshot!==e||i||oe!==null&&oe.memoizedState.tag&1){if(n.flags|=2048,Sa(9,{destroy:void 0},jo.bind(null,n,a,l,e),null),Kt===null)throw Error(o(349));u||(Ul&127)!==0||Do(n,e,l)}return l}function Do(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=St.updateQueue,e===null?(e=ii(),St.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function jo(t,e,l,n){e.value=l,e.getSnapshot=n,Oo(e)&&wo(t)}function No(t,e,l){return l(function(){Oo(e)&&wo(t)})}function Oo(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!ke(t,l)}catch{return!0}}function wo(t){var e=Hn(t,2);e!==null&&Ye(e,t,2)}function Vc(t){var e=_e();if(typeof t=="function"){var l=t;if(t=l(),kn){Pe(!0);try{l()}finally{Pe(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hl,lastRenderedState:t},e}function _o(t,e,l,n){return t.baseState=l,Zc(t,Zt,typeof n=="function"?n:Hl)}function Rd(t,e,l,n,a){if(ri(t))throw Error(o(485));if(t=e.action,t!==null){var u={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};T.T!==null?l(!0):u.isTransition=!1,n(u),l=e.pending,l===null?(u.next=e.pending=u,Ro(e,u)):(u.next=l.next,e.pending=l.next=u)}}function Ro(t,e){var l=e.action,n=e.payload,a=t.state;if(e.isTransition){var u=T.T,i={};T.T=i;try{var s=l(a,n),y=T.S;y!==null&&y(i,s),Uo(t,e,s)}catch(C){Kc(t,e,C)}finally{u!==null&&i.types!==null&&(u.types=i.types),T.T=u}}else try{u=l(a,n),Uo(t,e,u)}catch(C){Kc(t,e,C)}}function Uo(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){Ho(t,e,n)},function(n){return Kc(t,e,n)}):Ho(t,e,l)}function Ho(t,e,l){e.status="fulfilled",e.value=l,Bo(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Ro(t,l)))}function Kc(t,e,l){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=l,Bo(e),e=e.next;while(e!==n)}t.action=null}function Bo(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function qo(t,e){return e}function Lo(t,e){if(_t){var l=Kt.formState;if(l!==null){t:{var n=St;if(_t){if(Wt){e:{for(var a=Wt,u=al;a.nodeType!==8;){if(!u){a=null;break e}if(a=il(a.nextSibling),a===null){a=null;break e}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){Wt=il(a.nextSibling),n=a.data==="F!";break t}}nn(n)}n=!1}n&&(e=l[0])}}return l=_e(),l.memoizedState=l.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:e},l.queue=n,l=ar.bind(null,St,n),n.dispatch=l,n=Vc(!1),u=Pc.bind(null,St,!1,n.queue),n=_e(),a={state:e,dispatch:null,action:t,pending:null},n.queue=a,l=Rd.bind(null,St,a,u,l),a.dispatch=l,n.memoizedState=t,[e,l,!1]}function Yo(t){var e=ce();return Go(e,Zt,t)}function Go(t,e,l){if(e=Zc(t,e,qo)[0],t=si(Hl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=nu(e)}catch(i){throw i===ya?Iu:i}else n=e;e=ce();var a=e.queue,u=a.dispatch;return l!==e.memoizedState&&(St.flags|=2048,Sa(9,{destroy:void 0},Ud.bind(null,a,l),null)),[n,u,t]}function Ud(t,e){t.action=e}function Xo(t){var e=ce(),l=Zt;if(l!==null)return Go(e,l,t);ce(),e=e.memoizedState,l=ce();var n=l.queue.dispatch;return l.memoizedState=t,[e,n,!1]}function Sa(t,e,l,n){return t={tag:t,create:l,deps:n,inst:e,next:null},e=St.updateQueue,e===null&&(e=ii(),St.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(n=l.next,l.next=t,t.next=n,e.lastEffect=t),t}function Qo(){return ce().memoizedState}function fi(t,e,l,n){var a=_e();St.flags|=t,a.memoizedState=Sa(1|e,{destroy:void 0},l,n===void 0?null:n)}function oi(t,e,l,n){var a=ce();n=n===void 0?null:n;var u=a.memoizedState.inst;Zt!==null&&n!==null&&qc(n,Zt.memoizedState.deps)?a.memoizedState=Sa(e,u,l,n):(St.flags|=t,a.memoizedState=Sa(1|e,u,l,n))}function Zo(t,e){fi(8390656,8,t,e)}function Jc(t,e){oi(2048,8,t,e)}function Hd(t){St.flags|=4;var e=St.updateQueue;if(e===null)e=ii(),St.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function ko(t){var e=ce().memoizedState;return Hd({ref:e,nextImpl:t}),function(){if((Yt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Vo(t,e){return oi(4,2,t,e)}function Ko(t,e){return oi(4,4,t,e)}function Jo(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function $o(t,e,l){l=l!=null?l.concat([t]):null,oi(4,4,Jo.bind(null,e,t),l)}function $c(){}function Wo(t,e){var l=ce();e=e===void 0?null:e;var n=l.memoizedState;return e!==null&&qc(e,n[1])?n[0]:(l.memoizedState=[t,e],t)}function Fo(t,e){var l=ce();e=e===void 0?null:e;var n=l.memoizedState;if(e!==null&&qc(e,n[1]))return n[0];if(n=t(),kn){Pe(!0);try{t()}finally{Pe(!1)}}return l.memoizedState=[n,e],n}function Wc(t,e,l){return l===void 0||(Ul&1073741824)!==0&&(Ot&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Ir(),St.lanes|=t,hn|=t,l)}function Io(t,e,l,n){return ke(l,e)?l:va.current!==null?(t=Wc(t,l,n),ke(t,e)||(re=!0),t):(Ul&42)===0||(Ul&1073741824)!==0&&(Ot&261930)===0?(re=!0,t.memoizedState=l):(t=Ir(),St.lanes|=t,hn|=t,e)}function Po(t,e,l,n,a){var u=q.p;q.p=u!==0&&8>u?u:8;var i=T.T,s={};T.T=s,Pc(t,!1,e,l);try{var y=a(),C=T.S;if(C!==null&&C(s,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var N=Od(y,n);au(t,e,N,Fe(t))}else au(t,e,n,Fe(t))}catch(U){au(t,e,{then:function(){},status:"rejected",reason:U},Fe())}finally{q.p=u,i!==null&&s.types!==null&&(i.types=s.types),T.T=i}}function Bd(){}function Fc(t,e,l,n){if(t.tag!==5)throw Error(o(476));var a=tr(t).queue;Po(t,a,e,K,l===null?Bd:function(){return er(t),l(n)})}function tr(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hl,lastRenderedState:K},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function er(t){var e=tr(t);e.next===null&&(e=t.alternate.memoizedState),au(t,e.next.queue,{},Fe())}function Ic(){return Ee(Su)}function lr(){return ce().memoizedState}function nr(){return ce().memoizedState}function qd(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=Fe();t=cn(l);var n=sn(e,t,l);n!==null&&(Ye(n,e,l),Pa(n,e,l)),e={cache:Tc()},t.payload=e;return}e=e.return}}function Ld(t,e,l){var n=Fe();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ri(t)?ur(e,l):(l=yc(t,e,l,n),l!==null&&(Ye(l,t,n),ir(l,e,n)))}function ar(t,e,l){var n=Fe();au(t,e,l,n)}function au(t,e,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ri(t))ur(e,a);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var i=e.lastRenderedState,s=u(i,l);if(a.hasEagerState=!0,a.eagerState=s,ke(s,i))return ku(t,e,a,0),Kt===null&&Zu(),!1}catch{}if(l=yc(t,e,a,n),l!==null)return Ye(l,t,n),ir(l,e,n),!0}return!1}function Pc(t,e,l,n){if(n={lane:2,revertLane:Os(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ri(t)){if(e)throw Error(o(479))}else e=yc(t,l,n,2),e!==null&&Ye(e,t,2)}function ri(t){var e=t.alternate;return t===St||e!==null&&e===St}function ur(t,e){ba=ai=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function ir(t,e,l){if((l&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Ou(t,l)}}var uu={readContext:Ee,use:ci,useCallback:ne,useContext:ne,useEffect:ne,useImperativeHandle:ne,useLayoutEffect:ne,useInsertionEffect:ne,useMemo:ne,useReducer:ne,useRef:ne,useState:ne,useDebugValue:ne,useDeferredValue:ne,useTransition:ne,useSyncExternalStore:ne,useId:ne,useHostTransitionStatus:ne,useFormState:ne,useActionState:ne,useOptimistic:ne,useMemoCache:ne,useCacheRefresh:ne};uu.useEffectEvent=ne;var cr={readContext:Ee,use:ci,useCallback:function(t,e){return _e().memoizedState=[t,e===void 0?null:e],t},useContext:Ee,useEffect:Zo,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,fi(4194308,4,Jo.bind(null,e,t),l)},useLayoutEffect:function(t,e){return fi(4194308,4,t,e)},useInsertionEffect:function(t,e){fi(4,2,t,e)},useMemo:function(t,e){var l=_e();e=e===void 0?null:e;var n=t();if(kn){Pe(!0);try{t()}finally{Pe(!1)}}return l.memoizedState=[n,e],n},useReducer:function(t,e,l){var n=_e();if(l!==void 0){var a=l(e);if(kn){Pe(!0);try{l(e)}finally{Pe(!1)}}}else a=e;return n.memoizedState=n.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},n.queue=t,t=t.dispatch=Ld.bind(null,St,t),[n.memoizedState,t]},useRef:function(t){var e=_e();return t={current:t},e.memoizedState=t},useState:function(t){t=Vc(t);var e=t.queue,l=ar.bind(null,St,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:$c,useDeferredValue:function(t,e){var l=_e();return Wc(l,t,e)},useTransition:function(){var t=Vc(!1);return t=Po.bind(null,St,t.queue,!0,!1),_e().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var n=St,a=_e();if(_t){if(l===void 0)throw Error(o(407));l=l()}else{if(l=e(),Kt===null)throw Error(o(349));(Ot&127)!==0||Do(n,e,l)}a.memoizedState=l;var u={value:l,getSnapshot:e};return a.queue=u,Zo(No.bind(null,n,u,t),[t]),n.flags|=2048,Sa(9,{destroy:void 0},jo.bind(null,n,u,l,e),null),l},useId:function(){var t=_e(),e=Kt.identifierPrefix;if(_t){var l=El,n=Sl;l=(n&~(1<<32-xe(n)-1)).toString(32)+l,e="_"+e+"R_"+l,l=ui++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=wd++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Ic,useFormState:Lo,useActionState:Lo,useOptimistic:function(t){var e=_e();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Pc.bind(null,St,!0,l),l.dispatch=e,[t,e]},useMemoCache:Qc,useCacheRefresh:function(){return _e().memoizedState=qd.bind(null,St)},useEffectEvent:function(t){var e=_e(),l={impl:t};return e.memoizedState=l,function(){if((Yt&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},ts={readContext:Ee,use:ci,useCallback:Wo,useContext:Ee,useEffect:Jc,useImperativeHandle:$o,useInsertionEffect:Vo,useLayoutEffect:Ko,useMemo:Fo,useReducer:si,useRef:Qo,useState:function(){return si(Hl)},useDebugValue:$c,useDeferredValue:function(t,e){var l=ce();return Io(l,Zt.memoizedState,t,e)},useTransition:function(){var t=si(Hl)[0],e=ce().memoizedState;return[typeof t=="boolean"?t:nu(t),e]},useSyncExternalStore:To,useId:lr,useHostTransitionStatus:Ic,useFormState:Yo,useActionState:Yo,useOptimistic:function(t,e){var l=ce();return _o(l,Zt,t,e)},useMemoCache:Qc,useCacheRefresh:nr};ts.useEffectEvent=ko;var sr={readContext:Ee,use:ci,useCallback:Wo,useContext:Ee,useEffect:Jc,useImperativeHandle:$o,useInsertionEffect:Vo,useLayoutEffect:Ko,useMemo:Fo,useReducer:kc,useRef:Qo,useState:function(){return kc(Hl)},useDebugValue:$c,useDeferredValue:function(t,e){var l=ce();return Zt===null?Wc(l,t,e):Io(l,Zt.memoizedState,t,e)},useTransition:function(){var t=kc(Hl)[0],e=ce().memoizedState;return[typeof t=="boolean"?t:nu(t),e]},useSyncExternalStore:To,useId:lr,useHostTransitionStatus:Ic,useFormState:Xo,useActionState:Xo,useOptimistic:function(t,e){var l=ce();return Zt!==null?_o(l,Zt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Qc,useCacheRefresh:nr};sr.useEffectEvent=ko;function es(t,e,l,n){e=t.memoizedState,l=l(n,e),l=l==null?e:R({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var ls={enqueueSetState:function(t,e,l){t=t._reactInternals;var n=Fe(),a=cn(n);a.payload=e,l!=null&&(a.callback=l),e=sn(t,a,n),e!==null&&(Ye(e,t,n),Pa(e,t,n))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var n=Fe(),a=cn(n);a.tag=1,a.payload=e,l!=null&&(a.callback=l),e=sn(t,a,n),e!==null&&(Ye(e,t,n),Pa(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Fe(),n=cn(l);n.tag=2,e!=null&&(n.callback=e),e=sn(t,n,l),e!==null&&(Ye(e,t,l),Pa(e,t,l))}};function fr(t,e,l,n,a,u,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,u,i):e.prototype&&e.prototype.isPureReactComponent?!ka(l,n)||!ka(a,u):!0}function or(t,e,l,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,n),e.state!==t&&ls.enqueueReplaceState(e,e.state,null)}function Vn(t,e){var l=e;if("ref"in e){l={};for(var n in e)n!=="ref"&&(l[n]=e[n])}if(t=t.defaultProps){l===e&&(l=R({},l));for(var a in t)l[a]===void 0&&(l[a]=t[a])}return l}function rr(t){Qu(t)}function dr(t){console.error(t)}function hr(t){Qu(t)}function di(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function mr(t,e,l){try{var n=t.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function ns(t,e,l){return l=cn(l),l.tag=3,l.payload={element:null},l.callback=function(){di(t,e)},l}function gr(t){return t=cn(t),t.tag=3,t}function yr(t,e,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var u=n.value;t.payload=function(){return a(u)},t.callback=function(){mr(e,l,n)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){mr(e,l,n),typeof a!="function"&&(mn===null?mn=new Set([this]):mn.add(this));var s=n.stack;this.componentDidCatch(n.value,{componentStack:s!==null?s:""})})}function Yd(t,e,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=l.alternate,e!==null&&ha(e,l,a,!0),l=Ke.current,l!==null){switch(l.tag){case 31:case 13:return ul===null?Ci():l.alternate===null&&ae===0&&(ae=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===Pu?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([n]):e.add(n),Ds(t,n,a)),!1;case 22:return l.flags|=65536,n===Pu?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([n]):l.add(n)),Ds(t,n,a)),!1}throw Error(o(435,l.tag))}return Ds(t,n,a),Ci(),!1}if(_t)return e=Ke.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,n!==Ec&&(t=Error(o(422),{cause:n}),Ja(el(t,l)))):(n!==Ec&&(e=Error(o(423),{cause:n}),Ja(el(e,l))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,n=el(n,l),a=ns(t.stateNode,n,a),_c(t,a),ae!==4&&(ae=2)),!1;var u=Error(o(520),{cause:n});if(u=el(u,l),hu===null?hu=[u]:hu.push(u),ae!==4&&(ae=2),e===null)return!0;n=el(n,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=a&-a,l.lanes|=t,t=ns(l.stateNode,n,t),_c(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(mn===null||!mn.has(u))))return l.flags|=65536,a&=-a,l.lanes|=a,a=gr(a),yr(a,t,l,n),_c(l,a),!1}l=l.return}while(l!==null);return!1}var as=Error(o(461)),re=!1;function Me(t,e,l,n){e.child=t===null?xo(e,null,l,n):Zn(e,t.child,l,n)}function pr(t,e,l,n,a){l=l.render;var u=e.ref;if("ref"in n){var i={};for(var s in n)s!=="ref"&&(i[s]=n[s])}else i=n;return Yn(e),n=Lc(t,e,l,i,u,a),s=Yc(),t!==null&&!re?(Gc(t,e,a),Bl(t,e,a)):(_t&&s&&xc(e),e.flags|=1,Me(t,e,n,a),e.child)}function vr(t,e,l,n,a){if(t===null){var u=l.type;return typeof u=="function"&&!pc(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,br(t,e,u,n,a)):(t=Ku(l.type,null,n,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!ds(t,a)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:ka,l(i,n)&&t.ref===e.ref)return Bl(t,e,a)}return e.flags|=1,t=Ol(u,n),t.ref=e.ref,t.return=e,e.child=t}function br(t,e,l,n,a){if(t!==null){var u=t.memoizedProps;if(ka(u,n)&&t.ref===e.ref)if(re=!1,e.pendingProps=n=u,ds(t,a))(t.flags&131072)!==0&&(re=!0);else return e.lanes=t.lanes,Bl(t,e,a)}return us(t,e,l,n,a)}function xr(t,e,l,n){var a=n.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,t!==null){for(n=e.child=t.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~u}else n=0,e.child=null;return Sr(t,e,u,l,n)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Fu(e,u!==null?u.cachePool:null),u!==null?Mo(e,u):Uc(),Co(e);else return n=e.lanes=536870912,Sr(t,e,u!==null?u.baseLanes|l:l,l,n)}else u!==null?(Fu(e,u.cachePool),Mo(e,u),on(),e.memoizedState=null):(t!==null&&Fu(e,null),Uc(),on());return Me(t,e,a,l),e.child}function iu(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Sr(t,e,l,n,a){var u=jc();return u=u===null?null:{parent:fe._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&Fu(e,null),Uc(),Co(e),t!==null&&ha(t,e,n,!0),e.childLanes=a,null}function hi(t,e){return e=gi({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Er(t,e,l){return Zn(e,t.child,null,l),t=hi(e,e.pendingProps),t.flags|=2,Je(e),e.memoizedState=null,t}function Gd(t,e,l){var n=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(_t){if(n.mode==="hidden")return t=hi(e,n),e.lanes=536870912,iu(null,t);if(Bc(e),(t=Wt)?(t=R0(t,al),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:en!==null?{id:Sl,overflow:El}:null,retryLane:536870912,hydrationErrors:null},l=ao(t),l.return=e,e.child=l,Se=e,Wt=null)):t=null,t===null)throw nn(e);return e.lanes=536870912,null}return hi(e,n)}var u=t.memoizedState;if(u!==null){var i=u.dehydrated;if(Bc(e),a)if(e.flags&256)e.flags&=-257,e=Er(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(re||ha(t,e,l,!1),a=(l&t.childLanes)!==0,re||a){if(n=Kt,n!==null&&(i=Ua(n,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,Hn(t,i),Ye(n,t,i),as;Ci(),e=Er(t,e,l)}else t=u.treeContext,Wt=il(i.nextSibling),Se=e,_t=!0,ln=null,al=!1,t!==null&&co(e,t),e=hi(e,n),e.flags|=4096;return e}return t=Ol(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function mi(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function us(t,e,l,n,a){return Yn(e),l=Lc(t,e,l,n,void 0,a),n=Yc(),t!==null&&!re?(Gc(t,e,a),Bl(t,e,a)):(_t&&n&&xc(e),e.flags|=1,Me(t,e,l,a),e.child)}function Mr(t,e,l,n,a,u){return Yn(e),e.updateQueue=null,l=zo(e,n,l,a),Ao(t),n=Yc(),t!==null&&!re?(Gc(t,e,u),Bl(t,e,u)):(_t&&n&&xc(e),e.flags|=1,Me(t,e,l,u),e.child)}function Cr(t,e,l,n,a){if(Yn(e),e.stateNode===null){var u=fa,i=l.contextType;typeof i=="object"&&i!==null&&(u=Ee(i)),u=new l(n,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=ls,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=n,u.state=e.memoizedState,u.refs={},Oc(e),i=l.contextType,u.context=typeof i=="object"&&i!==null?Ee(i):fa,u.state=e.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(es(e,l,i,n),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&ls.enqueueReplaceState(u,u.state,null),eu(e,n,u,a),tu(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){u=e.stateNode;var s=e.memoizedProps,y=Vn(l,s);u.props=y;var C=u.context,N=l.contextType;i=fa,typeof N=="object"&&N!==null&&(i=Ee(N));var U=l.getDerivedStateFromProps;N=typeof U=="function"||typeof u.getSnapshotBeforeUpdate=="function",s=e.pendingProps!==s,N||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s||C!==i)&&or(e,u,n,i),un=!1;var A=e.memoizedState;u.state=A,eu(e,n,u,a),tu(),C=e.memoizedState,s||A!==C||un?(typeof U=="function"&&(es(e,l,U,n),C=e.memoizedState),(y=un||fr(e,l,y,n,A,C,i))?(N||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=C),u.props=n,u.state=C,u.context=i,n=y):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{u=e.stateNode,wc(t,e),i=e.memoizedProps,N=Vn(l,i),u.props=N,U=e.pendingProps,A=u.context,C=l.contextType,y=fa,typeof C=="object"&&C!==null&&(y=Ee(C)),s=l.getDerivedStateFromProps,(C=typeof s=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==U||A!==y)&&or(e,u,n,y),un=!1,A=e.memoizedState,u.state=A,eu(e,n,u,a),tu();var D=e.memoizedState;i!==U||A!==D||un||t!==null&&t.dependencies!==null&&$u(t.dependencies)?(typeof s=="function"&&(es(e,l,s,n),D=e.memoizedState),(N=un||fr(e,l,N,n,A,D,y)||t!==null&&t.dependencies!==null&&$u(t.dependencies))?(C||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,D,y),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,D,y)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=D),u.props=n,u.state=D,u.context=y,n=N):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),n=!1)}return u=n,mi(t,e),n=(e.flags&128)!==0,u||n?(u=e.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&n?(e.child=Zn(e,t.child,null,a),e.child=Zn(e,null,l,a)):Me(t,e,l,a),e.memoizedState=u.state,t=e.child):t=Bl(t,e,a),t}function Ar(t,e,l,n){return qn(),e.flags|=256,Me(t,e,l,n),e.child}var is={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cs(t){return{baseLanes:t,cachePool:mo()}}function ss(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=We),t}function zr(t,e,l){var n=e.pendingProps,a=!1,u=(e.flags&128)!==0,i;if((i=u)||(i=t!==null&&t.memoizedState===null?!1:(ie.current&2)!==0),i&&(a=!0,e.flags&=-129),i=(e.flags&32)!==0,e.flags&=-33,t===null){if(_t){if(a?fn(e):on(),(t=Wt)?(t=R0(t,al),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:en!==null?{id:Sl,overflow:El}:null,retryLane:536870912,hydrationErrors:null},l=ao(t),l.return=e,e.child=l,Se=e,Wt=null)):t=null,t===null)throw nn(e);return Zs(t)?e.lanes=32:e.lanes=536870912,null}var s=n.children;return n=n.fallback,a?(on(),a=e.mode,s=gi({mode:"hidden",children:s},a),n=Bn(n,a,l,null),s.return=e,n.return=e,s.sibling=n,e.child=s,n=e.child,n.memoizedState=cs(l),n.childLanes=ss(t,i,l),e.memoizedState=is,iu(null,n)):(fn(e),fs(e,s))}var y=t.memoizedState;if(y!==null&&(s=y.dehydrated,s!==null)){if(u)e.flags&256?(fn(e),e.flags&=-257,e=os(t,e,l)):e.memoizedState!==null?(on(),e.child=t.child,e.flags|=128,e=null):(on(),s=n.fallback,a=e.mode,n=gi({mode:"visible",children:n.children},a),s=Bn(s,a,l,null),s.flags|=2,n.return=e,s.return=e,n.sibling=s,e.child=n,Zn(e,t.child,null,l),n=e.child,n.memoizedState=cs(l),n.childLanes=ss(t,i,l),e.memoizedState=is,e=iu(null,n));else if(fn(e),Zs(s)){if(i=s.nextSibling&&s.nextSibling.dataset,i)var C=i.dgst;i=C,n=Error(o(419)),n.stack="",n.digest=i,Ja({value:n,source:null,stack:null}),e=os(t,e,l)}else if(re||ha(t,e,l,!1),i=(l&t.childLanes)!==0,re||i){if(i=Kt,i!==null&&(n=Ua(i,l),n!==0&&n!==y.retryLane))throw y.retryLane=n,Hn(t,n),Ye(i,t,n),as;Qs(s)||Ci(),e=os(t,e,l)}else Qs(s)?(e.flags|=192,e.child=t.child,e=null):(t=y.treeContext,Wt=il(s.nextSibling),Se=e,_t=!0,ln=null,al=!1,t!==null&&co(e,t),e=fs(e,n.children),e.flags|=4096);return e}return a?(on(),s=n.fallback,a=e.mode,y=t.child,C=y.sibling,n=Ol(y,{mode:"hidden",children:n.children}),n.subtreeFlags=y.subtreeFlags&65011712,C!==null?s=Ol(C,s):(s=Bn(s,a,l,null),s.flags|=2),s.return=e,n.return=e,n.sibling=s,e.child=n,iu(null,n),n=e.child,s=t.child.memoizedState,s===null?s=cs(l):(a=s.cachePool,a!==null?(y=fe._currentValue,a=a.parent!==y?{parent:y,pool:y}:a):a=mo(),s={baseLanes:s.baseLanes|l,cachePool:a}),n.memoizedState=s,n.childLanes=ss(t,i,l),e.memoizedState=is,iu(t.child,n)):(fn(e),l=t.child,t=l.sibling,l=Ol(l,{mode:"visible",children:n.children}),l.return=e,l.sibling=null,t!==null&&(i=e.deletions,i===null?(e.deletions=[t],e.flags|=16):i.push(t)),e.child=l,e.memoizedState=null,l)}function fs(t,e){return e=gi({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function gi(t,e){return t=Ve(22,t,null,e),t.lanes=0,t}function os(t,e,l){return Zn(e,t.child,null,l),t=fs(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Tr(t,e,l){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Ac(t.return,e,l)}function rs(t,e,l,n,a,u){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:u}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=l,i.tailMode=a,i.treeForkCount=u)}function Dr(t,e,l){var n=e.pendingProps,a=n.revealOrder,u=n.tail;n=n.children;var i=ie.current,s=(i&2)!==0;if(s?(i=i&1|2,e.flags|=128):i&=1,Q(ie,i),Me(t,e,n,l),n=_t?Ka:0,!s&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Tr(t,l,e);else if(t.tag===19)Tr(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(a){case"forwards":for(l=e.child,a=null;l!==null;)t=l.alternate,t!==null&&ni(t)===null&&(a=l),l=l.sibling;l=a,l===null?(a=e.child,e.child=null):(a=l.sibling,l.sibling=null),rs(e,!1,a,l,u,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&ni(t)===null){e.child=a;break}t=a.sibling,a.sibling=l,l=a,a=t}rs(e,!0,l,null,u,n);break;case"together":rs(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function Bl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),hn|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(ha(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,l=Ol(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Ol(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function ds(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&$u(t)))}function Xd(t,e,l){switch(e.tag){case 3:Mt(e,e.stateNode.containerInfo),an(e,fe,t.memoizedState.cache),qn();break;case 27:case 5:je(e);break;case 4:Mt(e,e.stateNode.containerInfo);break;case 10:an(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Bc(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(fn(e),e.flags|=128,null):(l&e.child.childLanes)!==0?zr(t,e,l):(fn(e),t=Bl(t,e,l),t!==null?t.sibling:null);fn(e);break;case 19:var a=(t.flags&128)!==0;if(n=(l&e.childLanes)!==0,n||(ha(t,e,l,!1),n=(l&e.childLanes)!==0),a){if(n)return Dr(t,e,l);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Q(ie,ie.current),n)break;return null;case 22:return e.lanes=0,xr(t,e,l,e.pendingProps);case 24:an(e,fe,t.memoizedState.cache)}return Bl(t,e,l)}function jr(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)re=!0;else{if(!ds(t,l)&&(e.flags&128)===0)return re=!1,Xd(t,e,l);re=(t.flags&131072)!==0}else re=!1,_t&&(e.flags&1048576)!==0&&io(e,Ka,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=Xn(e.elementType),e.type=t,typeof t=="function")pc(t)?(n=Vn(t,n),e.tag=1,e=Cr(null,e,t,n,l)):(e.tag=0,e=us(null,e,t,n,l));else{if(t!=null){var a=t.$$typeof;if(a===tt){e.tag=11,e=pr(null,e,t,n,l);break t}else if(a===k){e.tag=14,e=vr(null,e,t,n,l);break t}}throw e=At(t)||t,Error(o(306,e,""))}}return e;case 0:return us(t,e,e.type,e.pendingProps,l);case 1:return n=e.type,a=Vn(n,e.pendingProps),Cr(t,e,n,a,l);case 3:t:{if(Mt(e,e.stateNode.containerInfo),t===null)throw Error(o(387));n=e.pendingProps;var u=e.memoizedState;a=u.element,wc(t,e),eu(e,n,null,l);var i=e.memoizedState;if(n=i.cache,an(e,fe,n),n!==u.cache&&zc(e,[fe],l,!0),tu(),n=i.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:i.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Ar(t,e,n,l);break t}else if(n!==a){a=el(Error(o(424)),e),Ja(a),e=Ar(t,e,n,l);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Wt=il(t.firstChild),Se=e,_t=!0,ln=null,al=!0,l=xo(e,null,n,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(qn(),n===a){e=Bl(t,e,l);break t}Me(t,e,n,l)}e=e.child}return e;case 26:return mi(t,e),t===null?(l=Y0(e.type,null,e.pendingProps,null))?e.memoizedState=l:_t||(l=e.type,t=e.pendingProps,n=Oi(ft.current).createElement(l),n[ee]=e,n[Te]=t,Ce(n,l,t),ue(n),e.stateNode=n):e.memoizedState=Y0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return je(e),t===null&&_t&&(n=e.stateNode=B0(e.type,e.pendingProps,ft.current),Se=e,al=!0,a=Wt,vn(e.type)?(ks=a,Wt=il(n.firstChild)):Wt=a),Me(t,e,e.pendingProps.children,l),mi(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&_t&&((a=n=Wt)&&(n=vh(n,e.type,e.pendingProps,al),n!==null?(e.stateNode=n,Se=e,Wt=il(n.firstChild),al=!1,a=!0):a=!1),a||nn(e)),je(e),a=e.type,u=e.pendingProps,i=t!==null?t.memoizedProps:null,n=u.children,Ys(a,u)?n=null:i!==null&&Ys(a,i)&&(e.flags|=32),e.memoizedState!==null&&(a=Lc(t,e,_d,null,null,l),Su._currentValue=a),mi(t,e),Me(t,e,n,l),e.child;case 6:return t===null&&_t&&((t=l=Wt)&&(l=bh(l,e.pendingProps,al),l!==null?(e.stateNode=l,Se=e,Wt=null,t=!0):t=!1),t||nn(e)),null;case 13:return zr(t,e,l);case 4:return Mt(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Zn(e,null,n,l):Me(t,e,n,l),e.child;case 11:return pr(t,e,e.type,e.pendingProps,l);case 7:return Me(t,e,e.pendingProps,l),e.child;case 8:return Me(t,e,e.pendingProps.children,l),e.child;case 12:return Me(t,e,e.pendingProps.children,l),e.child;case 10:return n=e.pendingProps,an(e,e.type,n.value),Me(t,e,n.children,l),e.child;case 9:return a=e.type._context,n=e.pendingProps.children,Yn(e),a=Ee(a),n=n(a),e.flags|=1,Me(t,e,n,l),e.child;case 14:return vr(t,e,e.type,e.pendingProps,l);case 15:return br(t,e,e.type,e.pendingProps,l);case 19:return Dr(t,e,l);case 31:return Gd(t,e,l);case 22:return xr(t,e,l,e.pendingProps);case 24:return Yn(e),n=Ee(fe),t===null?(a=jc(),a===null&&(a=Kt,u=Tc(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=l),a=u),e.memoizedState={parent:n,cache:a},Oc(e),an(e,fe,a)):((t.lanes&l)!==0&&(wc(t,e),eu(e,null,null,l),tu()),a=t.memoizedState,u=e.memoizedState,a.parent!==n?(a={parent:n,cache:n},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),an(e,fe,n)):(n=u.cache,an(e,fe,n),n!==a.cache&&zc(e,[fe],l,!0))),Me(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function ql(t){t.flags|=4}function hs(t,e,l,n,a){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(l0())t.flags|=8192;else throw Qn=Pu,Nc}else t.flags&=-16777217}function Nr(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!k0(e))if(l0())t.flags|=8192;else throw Qn=Pu,Nc}function yi(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?ju():536870912,t.lanes|=e,Aa|=e)}function cu(t,e){if(!_t)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Ft(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,n=0;if(e)for(var a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=n,t.childLanes=l,e}function Qd(t,e,l){var n=e.pendingProps;switch(Sc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ft(e),null;case 1:return Ft(e),null;case 3:return l=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Rl(fe),Ct(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(da(e)?ql(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Mc())),Ft(e),null;case 26:var a=e.type,u=e.memoizedState;return t===null?(ql(e),u!==null?(Ft(e),Nr(e,u)):(Ft(e),hs(e,a,null,n,l))):u?u!==t.memoizedState?(ql(e),Ft(e),Nr(e,u)):(Ft(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&ql(e),Ft(e),hs(e,a,t,n,l)),null;case 27:if(Ie(e),l=ft.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&ql(e);else{if(!n){if(e.stateNode===null)throw Error(o(166));return Ft(e),null}t=V.current,da(e)?so(e):(t=B0(a,n,l),e.stateNode=t,ql(e))}return Ft(e),null;case 5:if(Ie(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&ql(e);else{if(!n){if(e.stateNode===null)throw Error(o(166));return Ft(e),null}if(u=V.current,da(e))so(e);else{var i=Oi(ft.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof n.is=="string"?i.createElement("select",{is:n.is}):i.createElement("select"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is=="string"?i.createElement(a,{is:n.is}):i.createElement(a)}}u[ee]=e,u[Te]=n;t:for(i=e.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break t;for(;i.sibling===null;){if(i.return===null||i.return===e)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}e.stateNode=u;t:switch(Ce(u,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&ql(e)}}return Ft(e),hs(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&ql(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(o(166));if(t=ft.current,da(e)){if(t=e.stateNode,l=e.memoizedProps,n=null,a=Se,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}t[ee]=e,t=!!(t.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||z0(t.nodeValue,l)),t||nn(e,!0)}else t=Oi(t).createTextNode(n),t[ee]=e,e.stateNode=t}return Ft(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(n=da(e),l!==null){if(t===null){if(!n)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[ee]=e}else qn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ft(e),t=!1}else l=Mc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(Je(e),e):(Je(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Ft(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=da(e),n!==null&&n.dehydrated!==null){if(t===null){if(!a)throw Error(o(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(o(317));a[ee]=e}else qn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ft(e),a=!1}else a=Mc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(Je(e),e):(Je(e),null)}return Je(e),(e.flags&128)!==0?(e.lanes=l,e):(l=n!==null,t=t!==null&&t.memoizedState!==null,l&&(n=e.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),yi(e,e.updateQueue),Ft(e),null);case 4:return Ct(),t===null&&Us(e.stateNode.containerInfo),Ft(e),null;case 10:return Rl(e.type),Ft(e),null;case 19:if(O(ie),n=e.memoizedState,n===null)return Ft(e),null;if(a=(e.flags&128)!==0,u=n.rendering,u===null)if(a)cu(n,!1);else{if(ae!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=ni(t),u!==null){for(e.flags|=128,cu(n,!1),t=u.updateQueue,e.updateQueue=t,yi(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)no(l,t),l=l.sibling;return Q(ie,ie.current&1|2),_t&&wl(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&ve()>Si&&(e.flags|=128,a=!0,cu(n,!1),e.lanes=4194304)}else{if(!a)if(t=ni(u),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,yi(e,t),cu(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!_t)return Ft(e),null}else 2*ve()-n.renderingStartTime>Si&&l!==536870912&&(e.flags|=128,a=!0,cu(n,!1),e.lanes=4194304);n.isBackwards?(u.sibling=e.child,e.child=u):(t=n.last,t!==null?t.sibling=u:e.child=u,n.last=u)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=ve(),t.sibling=null,l=ie.current,Q(ie,a?l&1|2:l&1),_t&&wl(e,n.treeForkCount),t):(Ft(e),null);case 22:case 23:return Je(e),Hc(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(l&536870912)!==0&&(e.flags&128)===0&&(Ft(e),e.subtreeFlags&6&&(e.flags|=8192)):Ft(e),l=e.updateQueue,l!==null&&yi(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==l&&(e.flags|=2048),t!==null&&O(Gn),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Rl(fe),Ft(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function Zd(t,e){switch(Sc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Rl(fe),Ct(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Ie(e),null;case 31:if(e.memoizedState!==null){if(Je(e),e.alternate===null)throw Error(o(340));qn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Je(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));qn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return O(ie),null;case 4:return Ct(),null;case 10:return Rl(e.type),null;case 22:case 23:return Je(e),Hc(),t!==null&&O(Gn),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Rl(fe),null;case 25:return null;default:return null}}function Or(t,e){switch(Sc(e),e.tag){case 3:Rl(fe),Ct();break;case 26:case 27:case 5:Ie(e);break;case 4:Ct();break;case 31:e.memoizedState!==null&&Je(e);break;case 13:Je(e);break;case 19:O(ie);break;case 10:Rl(e.type);break;case 22:case 23:Je(e),Hc(),t!==null&&O(Gn);break;case 24:Rl(fe)}}function su(t,e){try{var l=e.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&t)===t){n=void 0;var u=l.create,i=l.inst;n=u(),i.destroy=n}l=l.next}while(l!==a)}}catch(s){Qt(e,e.return,s)}}function rn(t,e,l){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&t)===t){var i=n.inst,s=i.destroy;if(s!==void 0){i.destroy=void 0,a=e;var y=l,C=s;try{C()}catch(N){Qt(a,y,N)}}}n=n.next}while(n!==u)}}catch(N){Qt(e,e.return,N)}}function wr(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Eo(e,l)}catch(n){Qt(t,t.return,n)}}}function _r(t,e,l){l.props=Vn(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(n){Qt(t,e,n)}}function fu(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof l=="function"?t.refCleanup=l(n):l.current=n}}catch(a){Qt(t,e,a)}}function Ml(t,e){var l=t.ref,n=t.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){Qt(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){Qt(t,e,a)}else l.current=null}function Rr(t){var e=t.type,l=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break t;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){Qt(t,t.return,a)}}function ms(t,e,l){try{var n=t.stateNode;dh(n,t.type,l,e),n[Te]=e}catch(a){Qt(t,t.return,a)}}function Ur(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&vn(t.type)||t.tag===4}function gs(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ur(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&vn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ys(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=jl));else if(n!==4&&(n===27&&vn(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(ys(t,e,l),t=t.sibling;t!==null;)ys(t,e,l),t=t.sibling}function pi(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(n!==4&&(n===27&&vn(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(pi(t,e,l),t=t.sibling;t!==null;)pi(t,e,l),t=t.sibling}function Hr(t){var e=t.stateNode,l=t.memoizedProps;try{for(var n=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);Ce(e,n,l),e[ee]=t,e[Te]=l}catch(u){Qt(t,t.return,u)}}var Ll=!1,de=!1,ps=!1,Br=typeof WeakSet=="function"?WeakSet:Set,ye=null;function kd(t,e){if(t=t.containerInfo,qs=qi,t=Jf(t),oc(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,u=n.focusNode;n=n.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var i=0,s=-1,y=-1,C=0,N=0,U=t,A=null;e:for(;;){for(var D;U!==l||a!==0&&U.nodeType!==3||(s=i+a),U!==u||n!==0&&U.nodeType!==3||(y=i+n),U.nodeType===3&&(i+=U.nodeValue.length),(D=U.firstChild)!==null;)A=U,U=D;for(;;){if(U===t)break e;if(A===l&&++C===a&&(s=i),A===u&&++N===n&&(y=i),(D=U.nextSibling)!==null)break;U=A,A=U.parentNode}U=D}l=s===-1||y===-1?null:{start:s,end:y}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ls={focusedElem:t,selectionRange:l},qi=!1,ye=e;ye!==null;)if(e=ye,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ye=t;else for(;ye!==null;){switch(e=ye,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)a=t[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,l=e,a=u.memoizedProps,u=u.memoizedState,n=l.stateNode;try{var I=Vn(l.type,a);t=n.getSnapshotBeforeUpdate(I,u),n.__reactInternalSnapshotBeforeUpdate=t}catch(dt){Qt(l,l.return,dt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Xs(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Xs(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,ye=t;break}ye=e.return}}function qr(t,e,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:Gl(t,l),n&4&&su(5,l);break;case 1:if(Gl(t,l),n&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(i){Qt(l,l.return,i)}else{var a=Vn(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(i){Qt(l,l.return,i)}}n&64&&wr(l),n&512&&fu(l,l.return);break;case 3:if(Gl(t,l),n&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Eo(t,e)}catch(i){Qt(l,l.return,i)}}break;case 27:e===null&&n&4&&Hr(l);case 26:case 5:Gl(t,l),e===null&&n&4&&Rr(l),n&512&&fu(l,l.return);break;case 12:Gl(t,l);break;case 31:Gl(t,l),n&4&&Gr(t,l);break;case 13:Gl(t,l),n&4&&Xr(t,l),n&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=th.bind(null,l),xh(t,l))));break;case 22:if(n=l.memoizedState!==null||Ll,!n){e=e!==null&&e.memoizedState!==null||de,a=Ll;var u=de;Ll=n,(de=e)&&!u?Xl(t,l,(l.subtreeFlags&8772)!==0):Gl(t,l),Ll=a,de=u}break;case 30:break;default:Gl(t,l)}}function Lr(t){var e=t.alternate;e!==null&&(t.alternate=null,Lr(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ta(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Pt=null,He=!1;function Yl(t,e,l){for(l=l.child;l!==null;)Yr(t,e,l),l=l.sibling}function Yr(t,e,l){if(me&&typeof me.onCommitFiberUnmount=="function")try{me.onCommitFiberUnmount(pl,l)}catch{}switch(l.tag){case 26:de||Ml(l,e),Yl(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:de||Ml(l,e);var n=Pt,a=He;vn(l.type)&&(Pt=l.stateNode,He=!1),Yl(t,e,l),vu(l.stateNode),Pt=n,He=a;break;case 5:de||Ml(l,e);case 6:if(n=Pt,a=He,Pt=null,Yl(t,e,l),Pt=n,He=a,Pt!==null)if(He)try{(Pt.nodeType===9?Pt.body:Pt.nodeName==="HTML"?Pt.ownerDocument.body:Pt).removeChild(l.stateNode)}catch(u){Qt(l,e,u)}else try{Pt.removeChild(l.stateNode)}catch(u){Qt(l,e,u)}break;case 18:Pt!==null&&(He?(t=Pt,w0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),_a(t)):w0(Pt,l.stateNode));break;case 4:n=Pt,a=He,Pt=l.stateNode.containerInfo,He=!0,Yl(t,e,l),Pt=n,He=a;break;case 0:case 11:case 14:case 15:rn(2,l,e),de||rn(4,l,e),Yl(t,e,l);break;case 1:de||(Ml(l,e),n=l.stateNode,typeof n.componentWillUnmount=="function"&&_r(l,e,n)),Yl(t,e,l);break;case 21:Yl(t,e,l);break;case 22:de=(n=de)||l.memoizedState!==null,Yl(t,e,l),de=n;break;default:Yl(t,e,l)}}function Gr(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{_a(t)}catch(l){Qt(e,e.return,l)}}}function Xr(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{_a(t)}catch(l){Qt(e,e.return,l)}}function Vd(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Br),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Br),e;default:throw Error(o(435,t.tag))}}function vi(t,e){var l=Vd(t);e.forEach(function(n){if(!l.has(n)){l.add(n);var a=eh.bind(null,t,n);n.then(a,a)}})}function Be(t,e){var l=e.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],u=t,i=e,s=i;t:for(;s!==null;){switch(s.tag){case 27:if(vn(s.type)){Pt=s.stateNode,He=!1;break t}break;case 5:Pt=s.stateNode,He=!1;break t;case 3:case 4:Pt=s.stateNode.containerInfo,He=!0;break t}s=s.return}if(Pt===null)throw Error(o(160));Yr(u,i,a),Pt=null,He=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Qr(e,t),e=e.sibling}var ml=null;function Qr(t,e){var l=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Be(e,t),qe(t),n&4&&(rn(3,t,t.return),su(3,t),rn(5,t,t.return));break;case 1:Be(e,t),qe(t),n&512&&(de||l===null||Ml(l,l.return)),n&64&&Ll&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=ml;if(Be(e,t),qe(t),n&512&&(de||l===null||Ml(l,l.return)),n&4){var u=l!==null?l.memoizedState:null;if(n=t.memoizedState,l===null)if(n===null)if(t.stateNode===null){t:{n=t.type,l=t.memoizedProps,a=a.ownerDocument||a;e:switch(n){case"title":u=a.getElementsByTagName("title")[0],(!u||u[wn]||u[ee]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=a.createElement(n),a.head.insertBefore(u,a.querySelector("head > title"))),Ce(u,n,l),u[ee]=t,ue(u),n=u;break t;case"link":var i=Q0("link","href",a).get(n+(l.href||""));if(i){for(var s=0;s<i.length;s++)if(u=i[s],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){i.splice(s,1);break e}}u=a.createElement(n),Ce(u,n,l),a.head.appendChild(u);break;case"meta":if(i=Q0("meta","content",a).get(n+(l.content||""))){for(s=0;s<i.length;s++)if(u=i[s],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){i.splice(s,1);break e}}u=a.createElement(n),Ce(u,n,l),a.head.appendChild(u);break;default:throw Error(o(468,n))}u[ee]=t,ue(u),n=u}t.stateNode=n}else Z0(a,t.type,t.stateNode);else t.stateNode=X0(a,n,t.memoizedProps);else u!==n?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,n===null?Z0(a,t.type,t.stateNode):X0(a,n,t.memoizedProps)):n===null&&t.stateNode!==null&&ms(t,t.memoizedProps,l.memoizedProps)}break;case 27:Be(e,t),qe(t),n&512&&(de||l===null||Ml(l,l.return)),l!==null&&n&4&&ms(t,t.memoizedProps,l.memoizedProps);break;case 5:if(Be(e,t),qe(t),n&512&&(de||l===null||Ml(l,l.return)),t.flags&32){a=t.stateNode;try{la(a,"")}catch(I){Qt(t,t.return,I)}}n&4&&t.stateNode!=null&&(a=t.memoizedProps,ms(t,a,l!==null?l.memoizedProps:a)),n&1024&&(ps=!0);break;case 6:if(Be(e,t),qe(t),n&4){if(t.stateNode===null)throw Error(o(162));n=t.memoizedProps,l=t.stateNode;try{l.nodeValue=n}catch(I){Qt(t,t.return,I)}}break;case 3:if(Ri=null,a=ml,ml=wi(e.containerInfo),Be(e,t),ml=a,qe(t),n&4&&l!==null&&l.memoizedState.isDehydrated)try{_a(e.containerInfo)}catch(I){Qt(t,t.return,I)}ps&&(ps=!1,Zr(t));break;case 4:n=ml,ml=wi(t.stateNode.containerInfo),Be(e,t),qe(t),ml=n;break;case 12:Be(e,t),qe(t);break;case 31:Be(e,t),qe(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,vi(t,n)));break;case 13:Be(e,t),qe(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(xi=ve()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,vi(t,n)));break;case 22:a=t.memoizedState!==null;var y=l!==null&&l.memoizedState!==null,C=Ll,N=de;if(Ll=C||a,de=N||y,Be(e,t),de=N,Ll=C,qe(t),n&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(l===null||y||Ll||de||Kn(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){y=l=e;try{if(u=y.stateNode,a)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{s=y.stateNode;var U=y.memoizedProps.style,A=U!=null&&U.hasOwnProperty("display")?U.display:null;s.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(I){Qt(y,y.return,I)}}}else if(e.tag===6){if(l===null){y=e;try{y.stateNode.nodeValue=a?"":y.memoizedProps}catch(I){Qt(y,y.return,I)}}}else if(e.tag===18){if(l===null){y=e;try{var D=y.stateNode;a?_0(D,!0):_0(y.stateNode,!1)}catch(I){Qt(y,y.return,I)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,vi(t,l))));break;case 19:Be(e,t),qe(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,vi(t,n)));break;case 30:break;case 21:break;default:Be(e,t),qe(t)}}function qe(t){var e=t.flags;if(e&2){try{for(var l,n=t.return;n!==null;){if(Ur(n)){l=n;break}n=n.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var a=l.stateNode,u=gs(t);pi(t,u,a);break;case 5:var i=l.stateNode;l.flags&32&&(la(i,""),l.flags&=-33);var s=gs(t);pi(t,s,i);break;case 3:case 4:var y=l.stateNode.containerInfo,C=gs(t);ys(t,C,y);break;default:throw Error(o(161))}}catch(N){Qt(t,t.return,N)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Zr(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Zr(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Gl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)qr(t,e.alternate,e),e=e.sibling}function Kn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:rn(4,e,e.return),Kn(e);break;case 1:Ml(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&_r(e,e.return,l),Kn(e);break;case 27:vu(e.stateNode);case 26:case 5:Ml(e,e.return),Kn(e);break;case 22:e.memoizedState===null&&Kn(e);break;case 30:Kn(e);break;default:Kn(e)}t=t.sibling}}function Xl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,a=t,u=e,i=u.flags;switch(u.tag){case 0:case 11:case 15:Xl(a,u,l),su(4,u);break;case 1:if(Xl(a,u,l),n=u,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(C){Qt(n,n.return,C)}if(n=u,a=n.updateQueue,a!==null){var s=n.stateNode;try{var y=a.shared.hiddenCallbacks;if(y!==null)for(a.shared.hiddenCallbacks=null,a=0;a<y.length;a++)So(y[a],s)}catch(C){Qt(n,n.return,C)}}l&&i&64&&wr(u),fu(u,u.return);break;case 27:Hr(u);case 26:case 5:Xl(a,u,l),l&&n===null&&i&4&&Rr(u),fu(u,u.return);break;case 12:Xl(a,u,l);break;case 31:Xl(a,u,l),l&&i&4&&Gr(a,u);break;case 13:Xl(a,u,l),l&&i&4&&Xr(a,u);break;case 22:u.memoizedState===null&&Xl(a,u,l),fu(u,u.return);break;case 30:break;default:Xl(a,u,l)}e=e.sibling}}function vs(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&$a(l))}function bs(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&$a(t))}function gl(t,e,l,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kr(t,e,l,n),e=e.sibling}function kr(t,e,l,n){var a=e.flags;switch(e.tag){case 0:case 11:case 15:gl(t,e,l,n),a&2048&&su(9,e);break;case 1:gl(t,e,l,n);break;case 3:gl(t,e,l,n),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&$a(t)));break;case 12:if(a&2048){gl(t,e,l,n),t=e.stateNode;try{var u=e.memoizedProps,i=u.id,s=u.onPostCommit;typeof s=="function"&&s(i,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(y){Qt(e,e.return,y)}}else gl(t,e,l,n);break;case 31:gl(t,e,l,n);break;case 13:gl(t,e,l,n);break;case 23:break;case 22:u=e.stateNode,i=e.alternate,e.memoizedState!==null?u._visibility&2?gl(t,e,l,n):ou(t,e):u._visibility&2?gl(t,e,l,n):(u._visibility|=2,Ea(t,e,l,n,(e.subtreeFlags&10256)!==0||!1)),a&2048&&vs(i,e);break;case 24:gl(t,e,l,n),a&2048&&bs(e.alternate,e);break;default:gl(t,e,l,n)}}function Ea(t,e,l,n,a){for(a=a&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,i=e,s=l,y=n,C=i.flags;switch(i.tag){case 0:case 11:case 15:Ea(u,i,s,y,a),su(8,i);break;case 23:break;case 22:var N=i.stateNode;i.memoizedState!==null?N._visibility&2?Ea(u,i,s,y,a):ou(u,i):(N._visibility|=2,Ea(u,i,s,y,a)),a&&C&2048&&vs(i.alternate,i);break;case 24:Ea(u,i,s,y,a),a&&C&2048&&bs(i.alternate,i);break;default:Ea(u,i,s,y,a)}e=e.sibling}}function ou(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,n=e,a=n.flags;switch(n.tag){case 22:ou(l,n),a&2048&&vs(n.alternate,n);break;case 24:ou(l,n),a&2048&&bs(n.alternate,n);break;default:ou(l,n)}e=e.sibling}}var ru=8192;function Ma(t,e,l){if(t.subtreeFlags&ru)for(t=t.child;t!==null;)Vr(t,e,l),t=t.sibling}function Vr(t,e,l){switch(t.tag){case 26:Ma(t,e,l),t.flags&ru&&t.memoizedState!==null&&wh(l,ml,t.memoizedState,t.memoizedProps);break;case 5:Ma(t,e,l);break;case 3:case 4:var n=ml;ml=wi(t.stateNode.containerInfo),Ma(t,e,l),ml=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=ru,ru=16777216,Ma(t,e,l),ru=n):Ma(t,e,l));break;default:Ma(t,e,l)}}function Kr(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function du(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];ye=n,$r(n,t)}Kr(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Jr(t),t=t.sibling}function Jr(t){switch(t.tag){case 0:case 11:case 15:du(t),t.flags&2048&&rn(9,t,t.return);break;case 3:du(t);break;case 12:du(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,bi(t)):du(t);break;default:du(t)}}function bi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];ye=n,$r(n,t)}Kr(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:rn(8,e,e.return),bi(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,bi(e));break;default:bi(e)}t=t.sibling}}function $r(t,e){for(;ye!==null;){var l=ye;switch(l.tag){case 0:case 11:case 15:rn(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:$a(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,ye=n;else t:for(l=t;ye!==null;){n=ye;var a=n.sibling,u=n.return;if(Lr(n),n===l){ye=null;break t}if(a!==null){a.return=u,ye=a;break t}ye=u}}}var Kd={getCacheForType:function(t){var e=Ee(fe),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Ee(fe).controller.signal}},Jd=typeof WeakMap=="function"?WeakMap:Map,Yt=0,Kt=null,Dt=null,Ot=0,Xt=0,$e=null,dn=!1,Ca=!1,xs=!1,Ql=0,ae=0,hn=0,Jn=0,Ss=0,We=0,Aa=0,hu=null,Le=null,Es=!1,xi=0,Wr=0,Si=1/0,Ei=null,mn=null,he=0,gn=null,za=null,Zl=0,Ms=0,Cs=null,Fr=null,mu=0,As=null;function Fe(){return(Yt&2)!==0&&Ot!==0?Ot&-Ot:T.T!==null?Os():$t()}function Ir(){if(We===0)if((Ot&536870912)===0||_t){var t=ot;ot<<=1,(ot&3932160)===0&&(ot=262144),We=t}else We=536870912;return t=Ke.current,t!==null&&(t.flags|=32),We}function Ye(t,e,l){(t===Kt&&(Xt===2||Xt===9)||t.cancelPendingCommit!==null)&&(Ta(t,0),yn(t,Ot,We,!1)),Nn(t,l),((Yt&2)===0||t!==Kt)&&(t===Kt&&((Yt&2)===0&&(Jn|=l),ae===4&&yn(t,Ot,We,!1)),Cl(t))}function Pr(t,e,l){if((Yt&6)!==0)throw Error(o(327));var n=!l&&(e&127)===0&&(e&t.expiredLanes)===0||It(t,e),a=n?Fd(t,e):Ts(t,e,!0),u=n;do{if(a===0){Ca&&!n&&yn(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!$d(l)){a=Ts(t,e,!1),u=!1;continue}if(a===2){if(u=e,t.errorRecoveryDisabledLanes&u)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){e=i;t:{var s=t;a=hu;var y=s.current.memoizedState.isDehydrated;if(y&&(Ta(s,i).flags|=256),i=Ts(s,i,!1),i!==2){if(xs&&!y){s.errorRecoveryDisabledLanes|=u,Jn|=u,a=4;break t}u=Le,Le=a,u!==null&&(Le===null?Le=u:Le.push.apply(Le,u))}a=i}if(u=!1,a!==2)continue}}if(a===1){Ta(t,0),yn(t,e,0,!0);break}t:{switch(n=t,u=a,u){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:yn(n,e,We,!dn);break t;case 2:Le=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(a=xi+300-ve(),10<a)){if(yn(n,e,We,!dn),Tt(n,0,!0)!==0)break t;Zl=e,n.timeoutHandle=N0(t0.bind(null,n,l,Le,Ei,Es,e,We,Jn,Aa,dn,u,"Throttled",-0,0),a);break t}t0(n,l,Le,Ei,Es,e,We,Jn,Aa,dn,u,null,-0,0)}}break}while(!0);Cl(t)}function t0(t,e,l,n,a,u,i,s,y,C,N,U,A,D){if(t.timeoutHandle=-1,U=e.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:jl},Vr(e,u,U);var I=(u&62914560)===u?xi-ve():(u&4194048)===u?Wr-ve():0;if(I=_h(U,I),I!==null){Zl=u,t.cancelPendingCommit=I(s0.bind(null,t,e,u,l,n,a,i,s,y,N,U,null,A,D)),yn(t,u,i,!C);return}}s0(t,e,u,l,n,a,i,s,y)}function $d(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],u=a.getSnapshot;a=a.value;try{if(!ke(u(),a))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function yn(t,e,l,n){e&=~Ss,e&=~Jn,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var a=e;0<a;){var u=31-xe(a),i=1<<u;n[u]=-1,a&=~i}l!==0&&Nu(t,l,e)}function Mi(){return(Yt&6)===0?(gu(0),!1):!0}function zs(){if(Dt!==null){if(Xt===0)var t=Dt.return;else t=Dt,_l=Ln=null,Xc(t),pa=null,Fa=0,t=Dt;for(;t!==null;)Or(t.alternate,t),t=t.return;Dt=null}}function Ta(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,gh(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Zl=0,zs(),Kt=t,Dt=l=Ol(t.current,null),Ot=e,Xt=0,$e=null,dn=!1,Ca=It(t,e),xs=!1,Aa=We=Ss=Jn=hn=ae=0,Le=hu=null,Es=!1,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var a=31-xe(n),u=1<<a;e|=t[a],n&=~u}return Ql=e,Zu(),l}function e0(t,e){St=null,T.H=uu,e===ya||e===Iu?(e=po(),Xt=3):e===Nc?(e=po(),Xt=4):Xt=e===as?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,$e=e,Dt===null&&(ae=1,di(t,el(e,t.current)))}function l0(){var t=Ke.current;return t===null?!0:(Ot&4194048)===Ot?ul===null:(Ot&62914560)===Ot||(Ot&536870912)!==0?t===ul:!1}function n0(){var t=T.H;return T.H=uu,t===null?uu:t}function a0(){var t=T.A;return T.A=Kd,t}function Ci(){ae=4,dn||(Ot&4194048)!==Ot&&Ke.current!==null||(Ca=!0),(hn&134217727)===0&&(Jn&134217727)===0||Kt===null||yn(Kt,Ot,We,!1)}function Ts(t,e,l){var n=Yt;Yt|=2;var a=n0(),u=a0();(Kt!==t||Ot!==e)&&(Ei=null,Ta(t,e)),e=!1;var i=ae;t:do try{if(Xt!==0&&Dt!==null){var s=Dt,y=$e;switch(Xt){case 8:zs(),i=6;break t;case 3:case 2:case 9:case 6:Ke.current===null&&(e=!0);var C=Xt;if(Xt=0,$e=null,Da(t,s,y,C),l&&Ca){i=0;break t}break;default:C=Xt,Xt=0,$e=null,Da(t,s,y,C)}}Wd(),i=ae;break}catch(N){e0(t,N)}while(!0);return e&&t.shellSuspendCounter++,_l=Ln=null,Yt=n,T.H=a,T.A=u,Dt===null&&(Kt=null,Ot=0,Zu()),i}function Wd(){for(;Dt!==null;)u0(Dt)}function Fd(t,e){var l=Yt;Yt|=2;var n=n0(),a=a0();Kt!==t||Ot!==e?(Ei=null,Si=ve()+500,Ta(t,e)):Ca=It(t,e);t:do try{if(Xt!==0&&Dt!==null){e=Dt;var u=$e;e:switch(Xt){case 1:Xt=0,$e=null,Da(t,e,u,1);break;case 2:case 9:if(go(u)){Xt=0,$e=null,i0(e);break}e=function(){Xt!==2&&Xt!==9||Kt!==t||(Xt=7),Cl(t)},u.then(e,e);break t;case 3:Xt=7;break t;case 4:Xt=5;break t;case 7:go(u)?(Xt=0,$e=null,i0(e)):(Xt=0,$e=null,Da(t,e,u,7));break;case 5:var i=null;switch(Dt.tag){case 26:i=Dt.memoizedState;case 5:case 27:var s=Dt;if(i?k0(i):s.stateNode.complete){Xt=0,$e=null;var y=s.sibling;if(y!==null)Dt=y;else{var C=s.return;C!==null?(Dt=C,Ai(C)):Dt=null}break e}}Xt=0,$e=null,Da(t,e,u,5);break;case 6:Xt=0,$e=null,Da(t,e,u,6);break;case 8:zs(),ae=6;break t;default:throw Error(o(462))}}Id();break}catch(N){e0(t,N)}while(!0);return _l=Ln=null,T.H=n,T.A=a,Yt=l,Dt!==null?0:(Kt=null,Ot=0,Zu(),ae)}function Id(){for(;Dt!==null&&!zn();)u0(Dt)}function u0(t){var e=jr(t.alternate,t,Ql);t.memoizedProps=t.pendingProps,e===null?Ai(t):Dt=e}function i0(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=Mr(l,e,e.pendingProps,e.type,void 0,Ot);break;case 11:e=Mr(l,e,e.pendingProps,e.type.render,e.ref,Ot);break;case 5:Xc(e);default:Or(l,e),e=Dt=no(e,Ql),e=jr(l,e,Ql)}t.memoizedProps=t.pendingProps,e===null?Ai(t):Dt=e}function Da(t,e,l,n){_l=Ln=null,Xc(e),pa=null,Fa=0;var a=e.return;try{if(Yd(t,a,e,l,Ot)){ae=1,di(t,el(l,t.current)),Dt=null;return}}catch(u){if(a!==null)throw Dt=a,u;ae=1,di(t,el(l,t.current)),Dt=null;return}e.flags&32768?(_t||n===1?t=!0:Ca||(Ot&536870912)!==0?t=!1:(dn=t=!0,(n===2||n===9||n===3||n===6)&&(n=Ke.current,n!==null&&n.tag===13&&(n.flags|=16384))),c0(e,t)):Ai(e)}function Ai(t){var e=t;do{if((e.flags&32768)!==0){c0(e,dn);return}t=e.return;var l=Qd(e.alternate,e,Ql);if(l!==null){Dt=l;return}if(e=e.sibling,e!==null){Dt=e;return}Dt=e=t}while(e!==null);ae===0&&(ae=5)}function c0(t,e){do{var l=Zd(t.alternate,t);if(l!==null){l.flags&=32767,Dt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){Dt=t;return}Dt=t=l}while(t!==null);ae=6,Dt=null}function s0(t,e,l,n,a,u,i,s,y){t.cancelPendingCommit=null;do zi();while(he!==0);if((Yt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(u=e.lanes|e.childLanes,u|=gc,vl(t,l,u,i,s,y),t===Kt&&(Dt=Kt=null,Ot=0),za=e,gn=t,Zl=l,Ms=u,Cs=a,Fr=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,lh(Qe,function(){return h0(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=T.T,T.T=null,a=q.p,q.p=2,i=Yt,Yt|=4;try{kd(t,e,l)}finally{Yt=i,q.p=a,T.T=n}}he=1,f0(),o0(),r0()}}function f0(){if(he===1){he=0;var t=gn,e=za,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=T.T,T.T=null;var n=q.p;q.p=2;var a=Yt;Yt|=4;try{Qr(e,t);var u=Ls,i=Jf(t.containerInfo),s=u.focusedElem,y=u.selectionRange;if(i!==s&&s&&s.ownerDocument&&Kf(s.ownerDocument.documentElement,s)){if(y!==null&&oc(s)){var C=y.start,N=y.end;if(N===void 0&&(N=C),"selectionStart"in s)s.selectionStart=C,s.selectionEnd=Math.min(N,s.value.length);else{var U=s.ownerDocument||document,A=U&&U.defaultView||window;if(A.getSelection){var D=A.getSelection(),I=s.textContent.length,dt=Math.min(y.start,I),Vt=y.end===void 0?dt:Math.min(y.end,I);!D.extend&&dt>Vt&&(i=Vt,Vt=dt,dt=i);var x=Vf(s,dt),b=Vf(s,Vt);if(x&&b&&(D.rangeCount!==1||D.anchorNode!==x.node||D.anchorOffset!==x.offset||D.focusNode!==b.node||D.focusOffset!==b.offset)){var M=U.createRange();M.setStart(x.node,x.offset),D.removeAllRanges(),dt>Vt?(D.addRange(M),D.extend(b.node,b.offset)):(M.setEnd(b.node,b.offset),D.addRange(M))}}}}for(U=[],D=s;D=D.parentNode;)D.nodeType===1&&U.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<U.length;s++){var _=U[s];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}qi=!!qs,Ls=qs=null}finally{Yt=a,q.p=n,T.T=l}}t.current=e,he=2}}function o0(){if(he===2){he=0;var t=gn,e=za,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=T.T,T.T=null;var n=q.p;q.p=2;var a=Yt;Yt|=4;try{qr(t,e.alternate,e)}finally{Yt=a,q.p=n,T.T=l}}he=3}}function r0(){if(he===4||he===3){he=0,Tn();var t=gn,e=za,l=Zl,n=Fr;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?he=5:(he=0,za=gn=null,d0(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(mn=null),Fl(l),e=e.stateNode,me&&typeof me.onCommitFiberRoot=="function")try{me.onCommitFiberRoot(pl,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=T.T,a=q.p,q.p=2,T.T=null;try{for(var u=t.onRecoverableError,i=0;i<n.length;i++){var s=n[i];u(s.value,{componentStack:s.stack})}}finally{T.T=e,q.p=a}}(Zl&3)!==0&&zi(),Cl(t),a=t.pendingLanes,(l&261930)!==0&&(a&42)!==0?t===As?mu++:(mu=0,As=t):mu=0,gu(0)}}function d0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,$a(e)))}function zi(){return f0(),o0(),r0(),h0()}function h0(){if(he!==5)return!1;var t=gn,e=Ms;Ms=0;var l=Fl(Zl),n=T.T,a=q.p;try{q.p=32>l?32:l,T.T=null,l=Cs,Cs=null;var u=gn,i=Zl;if(he=0,za=gn=null,Zl=0,(Yt&6)!==0)throw Error(o(331));var s=Yt;if(Yt|=4,Jr(u.current),kr(u,u.current,i,l),Yt=s,gu(0,!1),me&&typeof me.onPostCommitFiberRoot=="function")try{me.onPostCommitFiberRoot(pl,u)}catch{}return!0}finally{q.p=a,T.T=n,d0(t,e)}}function m0(t,e,l){e=el(l,e),e=ns(t.stateNode,e,2),t=sn(t,e,2),t!==null&&(Nn(t,2),Cl(t))}function Qt(t,e,l){if(t.tag===3)m0(t,t,l);else for(;e!==null;){if(e.tag===3){m0(e,t,l);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(mn===null||!mn.has(n))){t=el(l,t),l=gr(2),n=sn(e,l,2),n!==null&&(yr(l,n,e,t),Nn(n,2),Cl(n));break}}e=e.return}}function Ds(t,e,l){var n=t.pingCache;if(n===null){n=t.pingCache=new Jd;var a=new Set;n.set(e,a)}else a=n.get(e),a===void 0&&(a=new Set,n.set(e,a));a.has(l)||(xs=!0,a.add(l),t=Pd.bind(null,t,e,l),e.then(t,t))}function Pd(t,e,l){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Kt===t&&(Ot&l)===l&&(ae===4||ae===3&&(Ot&62914560)===Ot&&300>ve()-xi?(Yt&2)===0&&Ta(t,0):Ss|=l,Aa===Ot&&(Aa=0)),Cl(t)}function g0(t,e){e===0&&(e=ju()),t=Hn(t,e),t!==null&&(Nn(t,e),Cl(t))}function th(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),g0(t,l)}function eh(t,e){var l=0;switch(t.tag){case 31:case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(o(314))}n!==null&&n.delete(e),g0(t,l)}function lh(t,e){return Jl(t,e)}var Ti=null,ja=null,js=!1,Di=!1,Ns=!1,pn=0;function Cl(t){t!==ja&&t.next===null&&(ja===null?Ti=ja=t:ja=ja.next=t),Di=!0,js||(js=!0,ah())}function gu(t,e){if(!Ns&&Di){Ns=!0;do for(var l=!1,n=Ti;n!==null;){if(t!==0){var a=n.pendingLanes;if(a===0)var u=0;else{var i=n.suspendedLanes,s=n.pingedLanes;u=(1<<31-xe(42|t)+1)-1,u&=a&~(i&~s),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,b0(n,u))}else u=Ot,u=Tt(n,n===Kt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||It(n,u)||(l=!0,b0(n,u));n=n.next}while(l);Ns=!1}}function nh(){y0()}function y0(){Di=js=!1;var t=0;pn!==0&&mh()&&(t=pn);for(var e=ve(),l=null,n=Ti;n!==null;){var a=n.next,u=p0(n,e);u===0?(n.next=null,l===null?Ti=a:l.next=a,a===null&&(ja=l)):(l=n,(t!==0||(u&3)!==0)&&(Di=!0)),n=a}he!==0&&he!==5||gu(t),pn!==0&&(pn=0)}function p0(t,e){for(var l=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var i=31-xe(u),s=1<<i,y=a[i];y===-1?((s&l)===0||(s&n)!==0)&&(a[i]=ze(s,e)):y<=e&&(t.expiredLanes|=s),u&=~s}if(e=Kt,l=Ot,l=Tt(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,l===0||t===e&&(Xt===2||Xt===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&zl(n),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||It(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(n!==null&&zl(n),Fl(l)){case 2:case 8:l=Ae;break;case 32:l=Qe;break;case 268435456:l=Dn;break;default:l=Qe}return n=v0.bind(null,t),l=Jl(l,n),t.callbackPriority=e,t.callbackNode=l,e}return n!==null&&n!==null&&zl(n),t.callbackPriority=2,t.callbackNode=null,2}function v0(t,e){if(he!==0&&he!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(zi()&&t.callbackNode!==l)return null;var n=Ot;return n=Tt(t,t===Kt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(Pr(t,n,e),p0(t,ve()),t.callbackNode!=null&&t.callbackNode===l?v0.bind(null,t):null)}function b0(t,e){if(zi())return null;Pr(t,e,!0)}function ah(){yh(function(){(Yt&6)!==0?Jl($l,nh):y0()})}function Os(){if(pn===0){var t=ma;t===0&&(t=bt,bt<<=1,(bt&261888)===0&&(bt=256)),pn=t}return pn}function x0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Hu(""+t)}function S0(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function uh(t,e,l,n,a){if(e==="submit"&&l&&l.stateNode===a){var u=x0((a[Te]||null).action),i=n.submitter;i&&(e=(e=i[Te]||null)?x0(e.formAction):i.getAttribute("formAction"),e!==null&&(u=e,i=null));var s=new Yu("action","action",null,n,a);t.push({event:s,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(pn!==0){var y=i?S0(a,i):new FormData(a);Fc(l,{pending:!0,data:y,method:a.method,action:u},null,y)}}else typeof u=="function"&&(s.preventDefault(),y=i?S0(a,i):new FormData(a),Fc(l,{pending:!0,data:y,method:a.method,action:u},u,y))},currentTarget:a}]})}}for(var ws=0;ws<mc.length;ws++){var _s=mc[ws],ih=_s.toLowerCase(),ch=_s[0].toUpperCase()+_s.slice(1);hl(ih,"on"+ch)}hl(Ff,"onAnimationEnd"),hl(If,"onAnimationIteration"),hl(Pf,"onAnimationStart"),hl("dblclick","onDoubleClick"),hl("focusin","onFocus"),hl("focusout","onBlur"),hl(Md,"onTransitionRun"),hl(Cd,"onTransitionStart"),hl(Ad,"onTransitionCancel"),hl(to,"onTransitionEnd"),Il("onMouseEnter",["mouseout","mouseover"]),Il("onMouseLeave",["mouseout","mouseover"]),Il("onPointerEnter",["pointerout","pointerover"]),Il("onPointerLeave",["pointerout","pointerover"]),Dl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Dl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Dl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Dl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Dl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Dl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yu="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(" "),sh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yu));function E0(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var n=t[l],a=n.event;n=n.listeners;t:{var u=void 0;if(e)for(var i=n.length-1;0<=i;i--){var s=n[i],y=s.instance,C=s.currentTarget;if(s=s.listener,y!==u&&a.isPropagationStopped())break t;u=s,a.currentTarget=C;try{u(a)}catch(N){Qu(N)}a.currentTarget=null,u=y}else for(i=0;i<n.length;i++){if(s=n[i],y=s.instance,C=s.currentTarget,s=s.listener,y!==u&&a.isPropagationStopped())break t;u=s,a.currentTarget=C;try{u(a)}catch(N){Qu(N)}a.currentTarget=null,u=y}}}}function jt(t,e){var l=e[On];l===void 0&&(l=e[On]=new Set);var n=t+"__bubble";l.has(n)||(M0(e,t,2,!1),l.add(n))}function Rs(t,e,l){var n=0;e&&(n|=4),M0(l,t,n,e)}var ji="_reactListening"+Math.random().toString(36).slice(2);function Us(t){if(!t[ji]){t[ji]=!0,_u.forEach(function(l){l!=="selectionchange"&&(sh.has(l)||Rs(l,!1,t),Rs(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ji]||(e[ji]=!0,Rs("selectionchange",!1,e))}}function M0(t,e,l,n){switch(I0(e)){case 2:var a=Hh;break;case 8:a=Bh;break;default:a=Ws}l=a.bind(null,e,l,t),a=void 0,!ec||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),n?a!==void 0?t.addEventListener(e,l,{capture:!0,passive:a}):t.addEventListener(e,l,!0):a!==void 0?t.addEventListener(e,l,{passive:a}):t.addEventListener(e,l,!1)}function Hs(t,e,l,n,a){var u=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var s=n.stateNode.containerInfo;if(s===a)break;if(i===4)for(i=n.return;i!==null;){var y=i.tag;if((y===3||y===4)&&i.stateNode.containerInfo===a)return;i=i.return}for(;s!==null;){if(i=bl(s),i===null)return;if(y=i.tag,y===5||y===6||y===26||y===27){n=u=i;continue t}s=s.parentNode}}n=n.return}Tf(function(){var C=u,N=Pi(l),U=[];t:{var A=eo.get(t);if(A!==void 0){var D=Yu,I=t;switch(t){case"keypress":if(qu(l)===0)break t;case"keydown":case"keyup":D=ed;break;case"focusin":I="focus",D=uc;break;case"focusout":I="blur",D=uc;break;case"beforeblur":case"afterblur":D=uc;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=Nf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=Q1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=ad;break;case Ff:case If:case Pf:D=V1;break;case to:D=id;break;case"scroll":case"scrollend":D=G1;break;case"wheel":D=sd;break;case"copy":case"cut":case"paste":D=J1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=wf;break;case"toggle":case"beforetoggle":D=od}var dt=(e&4)!==0,Vt=!dt&&(t==="scroll"||t==="scrollend"),x=dt?A!==null?A+"Capture":null:A;dt=[];for(var b=C,M;b!==null;){var _=b;if(M=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||M===null||x===null||(_=qa(b,x),_!=null&&dt.push(pu(b,_,M))),Vt)break;b=b.return}0<dt.length&&(A=new D(A,I,null,l,N),U.push({event:A,listeners:dt}))}}if((e&7)===0){t:{if(A=t==="mouseover"||t==="pointerover",D=t==="mouseout"||t==="pointerout",A&&l!==Ii&&(I=l.relatedTarget||l.fromElement)&&(bl(I)||I[Tl]))break t;if((D||A)&&(A=N.window===N?N:(A=N.ownerDocument)?A.defaultView||A.parentWindow:window,D?(I=l.relatedTarget||l.toElement,D=C,I=I?bl(I):null,I!==null&&(Vt=p(I),dt=I.tag,I!==Vt||dt!==5&&dt!==27&&dt!==6)&&(I=null)):(D=null,I=C),D!==I)){if(dt=Nf,_="onMouseLeave",x="onMouseEnter",b="mouse",(t==="pointerout"||t==="pointerover")&&(dt=wf,_="onPointerLeave",x="onPointerEnter",b="pointer"),Vt=D==null?A:rl(D),M=I==null?A:rl(I),A=new dt(_,b+"leave",D,l,N),A.target=Vt,A.relatedTarget=M,_=null,bl(N)===C&&(dt=new dt(x,b+"enter",I,l,N),dt.target=M,dt.relatedTarget=Vt,_=dt),Vt=_,D&&I)e:{for(dt=fh,x=D,b=I,M=0,_=x;_;_=dt(_))M++;_=0;for(var it=b;it;it=dt(it))_++;for(;0<M-_;)x=dt(x),M--;for(;0<_-M;)b=dt(b),_--;for(;M--;){if(x===b||b!==null&&x===b.alternate){dt=x;break e}x=dt(x),b=dt(b)}dt=null}else dt=null;D!==null&&C0(U,A,D,dt,!1),I!==null&&Vt!==null&&C0(U,Vt,I,dt,!0)}}t:{if(A=C?rl(C):window,D=A.nodeName&&A.nodeName.toLowerCase(),D==="select"||D==="input"&&A.type==="file")var Ht=Yf;else if(qf(A))if(Gf)Ht=xd;else{Ht=vd;var nt=pd}else D=A.nodeName,!D||D.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?C&&Fi(C.elementType)&&(Ht=Yf):Ht=bd;if(Ht&&(Ht=Ht(t,C))){Lf(U,Ht,l,N);break t}nt&&nt(t,A,C),t==="focusout"&&C&&A.type==="number"&&C.memoizedProps.value!=null&&le(A,"number",A.value)}switch(nt=C?rl(C):window,t){case"focusin":(qf(nt)||nt.contentEditable==="true")&&(ia=nt,rc=C,Va=null);break;case"focusout":Va=rc=ia=null;break;case"mousedown":dc=!0;break;case"contextmenu":case"mouseup":case"dragend":dc=!1,$f(U,l,N);break;case"selectionchange":if(Ed)break;case"keydown":case"keyup":$f(U,l,N)}var Et;if(cc)t:{switch(t){case"compositionstart":var wt="onCompositionStart";break t;case"compositionend":wt="onCompositionEnd";break t;case"compositionupdate":wt="onCompositionUpdate";break t}wt=void 0}else ua?Hf(t,l)&&(wt="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(wt="onCompositionStart");wt&&(_f&&l.locale!=="ko"&&(ua||wt!=="onCompositionStart"?wt==="onCompositionEnd"&&ua&&(Et=Df()):(tn=N,lc="value"in tn?tn.value:tn.textContent,ua=!0)),nt=Ni(C,wt),0<nt.length&&(wt=new Of(wt,t,null,l,N),U.push({event:wt,listeners:nt}),Et?wt.data=Et:(Et=Bf(l),Et!==null&&(wt.data=Et)))),(Et=dd?hd(t,l):md(t,l))&&(wt=Ni(C,"onBeforeInput"),0<wt.length&&(nt=new Of("onBeforeInput","beforeinput",null,l,N),U.push({event:nt,listeners:wt}),nt.data=Et)),uh(U,t,C,l,N)}E0(U,e)})}function pu(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Ni(t,e){for(var l=e+"Capture",n=[];t!==null;){var a=t,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=qa(t,l),a!=null&&n.unshift(pu(t,a,u)),a=qa(t,e),a!=null&&n.push(pu(t,a,u))),t.tag===3)return n;t=t.return}return[]}function fh(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function C0(t,e,l,n,a){for(var u=e._reactName,i=[];l!==null&&l!==n;){var s=l,y=s.alternate,C=s.stateNode;if(s=s.tag,y!==null&&y===n)break;s!==5&&s!==26&&s!==27||C===null||(y=C,a?(C=qa(l,u),C!=null&&i.unshift(pu(l,C,y))):a||(C=qa(l,u),C!=null&&i.push(pu(l,C,y)))),l=l.return}i.length!==0&&t.push({event:e,listeners:i})}var oh=/\r\n?/g,rh=/\u0000|\uFFFD/g;function A0(t){return(typeof t=="string"?t:""+t).replace(oh,`
|
|
9
|
+
`).replace(rh,"")}function z0(t,e){return e=A0(e),A0(t)===e}function kt(t,e,l,n,a,u){switch(l){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||la(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&la(t,""+n);break;case"className":m(t,"class",n);break;case"tabIndex":m(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":m(t,l,n);break;case"style":Af(t,n,u);break;case"data":if(e!=="object"){m(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=Hu(""+n),t.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(e!=="input"&&kt(t,e,"name",a.name,a,null),kt(t,e,"formEncType",a.formEncType,a,null),kt(t,e,"formMethod",a.formMethod,a,null),kt(t,e,"formTarget",a.formTarget,a,null)):(kt(t,e,"encType",a.encType,a,null),kt(t,e,"method",a.method,a,null),kt(t,e,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=Hu(""+n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=jl);break;case"onScroll":n!=null&&jt("scroll",t);break;case"onScrollEnd":n!=null&&jt("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(o(60));t.innerHTML=l}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}l=Hu(""+n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""+n):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":n===!0?t.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(l,n):t.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(l):t.setAttribute(l,n);break;case"popover":jt("beforetoggle",t),jt("toggle",t),ea(t,"popover",n);break;case"xlinkActuate":B(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":B(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":B(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":B(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":B(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":B(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":B(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":B(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":B(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":ea(t,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=L1.get(l)||l,ea(t,l,n))}}function Bs(t,e,l,n,a,u){switch(l){case"style":Af(t,n,u);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(o(60));t.innerHTML=l}}break;case"children":typeof n=="string"?la(t,n):(typeof n=="number"||typeof n=="bigint")&&la(t,""+n);break;case"onScroll":n!=null&&jt("scroll",t);break;case"onScrollEnd":n!=null&&jt("scrollend",t);break;case"onClick":n!=null&&(t.onclick=jl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!dl.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),e=l.slice(2,a?l.length-7:void 0),u=t[Te]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,a),typeof n=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,n,a);break t}l in t?t[l]=n:n===!0?t.setAttribute(l,""):ea(t,l,n)}}}function Ce(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":jt("error",t),jt("load",t);var n=!1,a=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:kt(t,e,u,i,l,null)}}a&&kt(t,e,"srcSet",l.srcSet,l,null),n&&kt(t,e,"src",l.src,l,null);return;case"input":jt("invalid",t);var s=u=i=a=null,y=null,C=null;for(n in l)if(l.hasOwnProperty(n)){var N=l[n];if(N!=null)switch(n){case"name":a=N;break;case"type":i=N;break;case"checked":y=N;break;case"defaultChecked":C=N;break;case"value":u=N;break;case"defaultValue":s=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(o(137,e));break;default:kt(t,e,n,N,l,null)}}we(t,u,s,y,C,i,a,!1);return;case"select":jt("invalid",t),n=i=u=null;for(a in l)if(l.hasOwnProperty(a)&&(s=l[a],s!=null))switch(a){case"value":u=s;break;case"defaultValue":i=s;break;case"multiple":n=s;default:kt(t,e,a,s,l,null)}e=u,l=i,t.multiple=!!n,e!=null?Pl(t,!!n,e,!1):l!=null&&Pl(t,!!n,l,!0);return;case"textarea":jt("invalid",t),u=a=n=null;for(i in l)if(l.hasOwnProperty(i)&&(s=l[i],s!=null))switch(i){case"value":n=s;break;case"defaultValue":a=s;break;case"children":u=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:kt(t,e,i,s,l,null)}Mf(t,n,a,u);return;case"option":for(y in l)l.hasOwnProperty(y)&&(n=l[y],n!=null)&&(y==="selected"?t.selected=n&&typeof n!="function"&&typeof n!="symbol":kt(t,e,y,n,l,null));return;case"dialog":jt("beforetoggle",t),jt("toggle",t),jt("cancel",t),jt("close",t);break;case"iframe":case"object":jt("load",t);break;case"video":case"audio":for(n=0;n<yu.length;n++)jt(yu[n],t);break;case"image":jt("error",t),jt("load",t);break;case"details":jt("toggle",t);break;case"embed":case"source":case"link":jt("error",t),jt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in l)if(l.hasOwnProperty(C)&&(n=l[C],n!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:kt(t,e,C,n,l,null)}return;default:if(Fi(e)){for(N in l)l.hasOwnProperty(N)&&(n=l[N],n!==void 0&&Bs(t,e,N,n,l,void 0));return}}for(s in l)l.hasOwnProperty(s)&&(n=l[s],n!=null&&kt(t,e,s,n,l,null))}function dh(t,e,l,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,u=null,i=null,s=null,y=null,C=null,N=null;for(D in l){var U=l[D];if(l.hasOwnProperty(D)&&U!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":y=U;default:n.hasOwnProperty(D)||kt(t,e,D,null,n,U)}}for(var A in n){var D=n[A];if(U=l[A],n.hasOwnProperty(A)&&(D!=null||U!=null))switch(A){case"type":u=D;break;case"name":a=D;break;case"checked":C=D;break;case"defaultChecked":N=D;break;case"value":i=D;break;case"defaultValue":s=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,e));break;default:D!==U&&kt(t,e,A,D,n,U)}}ge(t,i,s,y,C,N,u,a);return;case"select":D=i=s=A=null;for(u in l)if(y=l[u],l.hasOwnProperty(u)&&y!=null)switch(u){case"value":break;case"multiple":D=y;default:n.hasOwnProperty(u)||kt(t,e,u,null,n,y)}for(a in n)if(u=n[a],y=l[a],n.hasOwnProperty(a)&&(u!=null||y!=null))switch(a){case"value":A=u;break;case"defaultValue":s=u;break;case"multiple":i=u;default:u!==y&&kt(t,e,a,u,n,y)}e=s,l=i,n=D,A!=null?Pl(t,!!l,A,!1):!!n!=!!l&&(e!=null?Pl(t,!!l,e,!0):Pl(t,!!l,l?[]:"",!1));return;case"textarea":D=A=null;for(s in l)if(a=l[s],l.hasOwnProperty(s)&&a!=null&&!n.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:kt(t,e,s,null,n,a)}for(i in n)if(a=n[i],u=l[i],n.hasOwnProperty(i)&&(a!=null||u!=null))switch(i){case"value":A=a;break;case"defaultValue":D=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(o(91));break;default:a!==u&&kt(t,e,i,a,n,u)}Ef(t,A,D);return;case"option":for(var I in l)A=l[I],l.hasOwnProperty(I)&&A!=null&&!n.hasOwnProperty(I)&&(I==="selected"?t.selected=!1:kt(t,e,I,null,n,A));for(y in n)A=n[y],D=l[y],n.hasOwnProperty(y)&&A!==D&&(A!=null||D!=null)&&(y==="selected"?t.selected=A&&typeof A!="function"&&typeof A!="symbol":kt(t,e,y,A,n,D));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 dt in l)A=l[dt],l.hasOwnProperty(dt)&&A!=null&&!n.hasOwnProperty(dt)&&kt(t,e,dt,null,n,A);for(C in n)if(A=n[C],D=l[C],n.hasOwnProperty(C)&&A!==D&&(A!=null||D!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,e));break;default:kt(t,e,C,A,n,D)}return;default:if(Fi(e)){for(var Vt in l)A=l[Vt],l.hasOwnProperty(Vt)&&A!==void 0&&!n.hasOwnProperty(Vt)&&Bs(t,e,Vt,void 0,n,A);for(N in n)A=n[N],D=l[N],!n.hasOwnProperty(N)||A===D||A===void 0&&D===void 0||Bs(t,e,N,A,n,D);return}}for(var x in l)A=l[x],l.hasOwnProperty(x)&&A!=null&&!n.hasOwnProperty(x)&&kt(t,e,x,null,n,A);for(U in n)A=n[U],D=l[U],!n.hasOwnProperty(U)||A===D||A==null&&D==null||kt(t,e,U,A,n,D)}function T0(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hh(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],u=a.transferSize,i=a.initiatorType,s=a.duration;if(u&&s&&T0(i)){for(i=0,s=a.responseEnd,n+=1;n<l.length;n++){var y=l[n],C=y.startTime;if(C>s)break;var N=y.transferSize,U=y.initiatorType;N&&T0(U)&&(y=y.responseEnd,i+=N*(y<s?1:(s-C)/(y-C)))}if(--n,e+=8*(u+i)/(a.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var qs=null,Ls=null;function Oi(t){return t.nodeType===9?t:t.ownerDocument}function D0(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function j0(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Ys(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Gs=null;function mh(){var t=window.event;return t&&t.type==="popstate"?t===Gs?!1:(Gs=t,!0):(Gs=null,!1)}var N0=typeof setTimeout=="function"?setTimeout:void 0,gh=typeof clearTimeout=="function"?clearTimeout:void 0,O0=typeof Promise=="function"?Promise:void 0,yh=typeof queueMicrotask=="function"?queueMicrotask:typeof O0<"u"?function(t){return O0.resolve(null).then(t).catch(ph)}:N0;function ph(t){setTimeout(function(){throw t})}function vn(t){return t==="head"}function w0(t,e){var l=e,n=0;do{var a=l.nextSibling;if(t.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){t.removeChild(a),_a(e);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")vu(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,vu(l);for(var u=l.firstChild;u;){var i=u.nextSibling,s=u.nodeName;u[wn]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&vu(t.ownerDocument.body);l=a}while(l);_a(e)}function _0(t,e){var l=t;t=0;do{var n=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=n}while(l)}function Xs(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Xs(l),ta(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function vh(t,e,l,n){for(;t.nodeType===1;){var a=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[wn])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=il(t.nextSibling),t===null)break}return null}function bh(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=il(t.nextSibling),t===null))return null;return t}function R0(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=il(t.nextSibling),t===null))return null;return t}function Qs(t){return t.data==="$?"||t.data==="$~"}function Zs(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function xh(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var n=function(){e(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function il(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var ks=null;function U0(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return il(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function H0(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function B0(t,e,l){switch(e=Oi(l),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function vu(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ta(t)}var cl=new Map,q0=new Set;function wi(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var kl=q.d;q.d={f:Sh,r:Eh,D:Mh,C:Ch,L:Ah,m:zh,X:Dh,S:Th,M:jh};function Sh(){var t=kl.f(),e=Mi();return t||e}function Eh(t){var e=xl(t);e!==null&&e.tag===5&&e.type==="form"?er(e):kl.r(t)}var Na=typeof document>"u"?null:document;function L0(t,e,l){var n=Na;if(n&&typeof e=="string"&&e){var a=Lt(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),q0.has(a)||(q0.add(a),t={rel:t,crossOrigin:l,href:e},n.querySelector(a)===null&&(e=n.createElement("link"),Ce(e,"link",t),ue(e),n.head.appendChild(e)))}}function Mh(t){kl.D(t),L0("dns-prefetch",t,null)}function Ch(t,e){kl.C(t,e),L0("preconnect",t,e)}function Ah(t,e,l){kl.L(t,e,l);var n=Na;if(n&&t&&e){var a='link[rel="preload"][as="'+Lt(e)+'"]';e==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+Lt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+Lt(l.imageSizes)+'"]')):a+='[href="'+Lt(t)+'"]';var u=a;switch(e){case"style":u=Oa(t);break;case"script":u=wa(t)}cl.has(u)||(t=R({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),cl.set(u,t),n.querySelector(a)!==null||e==="style"&&n.querySelector(bu(u))||e==="script"&&n.querySelector(xu(u))||(e=n.createElement("link"),Ce(e,"link",t),ue(e),n.head.appendChild(e)))}}function zh(t,e){kl.m(t,e);var l=Na;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+Lt(n)+'"][href="'+Lt(t)+'"]',u=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=wa(t)}if(!cl.has(u)&&(t=R({rel:"modulepreload",href:t},e),cl.set(u,t),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(xu(u)))return}n=l.createElement("link"),Ce(n,"link",t),ue(n),l.head.appendChild(n)}}}function Th(t,e,l){kl.S(t,e,l);var n=Na;if(n&&t){var a=Ze(n).hoistableStyles,u=Oa(t);e=e||"default";var i=a.get(u);if(!i){var s={loading:0,preload:null};if(i=n.querySelector(bu(u)))s.loading=5;else{t=R({rel:"stylesheet",href:t,"data-precedence":e},l),(l=cl.get(u))&&Vs(t,l);var y=i=n.createElement("link");ue(y),Ce(y,"link",t),y._p=new Promise(function(C,N){y.onload=C,y.onerror=N}),y.addEventListener("load",function(){s.loading|=1}),y.addEventListener("error",function(){s.loading|=2}),s.loading|=4,_i(i,e,n)}i={type:"stylesheet",instance:i,count:1,state:s},a.set(u,i)}}}function Dh(t,e){kl.X(t,e);var l=Na;if(l&&t){var n=Ze(l).hoistableScripts,a=wa(t),u=n.get(a);u||(u=l.querySelector(xu(a)),u||(t=R({src:t,async:!0},e),(e=cl.get(a))&&Ks(t,e),u=l.createElement("script"),ue(u),Ce(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function jh(t,e){kl.M(t,e);var l=Na;if(l&&t){var n=Ze(l).hoistableScripts,a=wa(t),u=n.get(a);u||(u=l.querySelector(xu(a)),u||(t=R({src:t,async:!0,type:"module"},e),(e=cl.get(a))&&Ks(t,e),u=l.createElement("script"),ue(u),Ce(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function Y0(t,e,l,n){var a=(a=ft.current)?wi(a):null;if(!a)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Oa(l.href),l=Ze(a).hoistableStyles,n=l.get(e),n||(n={type:"style",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Oa(l.href);var u=Ze(a).hoistableStyles,i=u.get(t);if(i||(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,i),(u=a.querySelector(bu(t)))&&!u._p&&(i.instance=u,i.state.loading=5),cl.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},cl.set(t,l),u||Nh(a,t,l,i.state))),e&&n===null)throw Error(o(528,""));return i}if(e&&n!==null)throw Error(o(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=wa(l),l=Ze(a).hoistableScripts,n=l.get(e),n||(n={type:"script",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Oa(t){return'href="'+Lt(t)+'"'}function bu(t){return'link[rel="stylesheet"]['+t+"]"}function G0(t){return R({},t,{"data-precedence":t.precedence,precedence:null})}function Nh(t,e,l,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),Ce(e,"link",l),ue(e),t.head.appendChild(e))}function wa(t){return'[src="'+Lt(t)+'"]'}function xu(t){return"script[async]"+t}function X0(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+Lt(l.href)+'"]');if(n)return e.instance=n,ue(n),n;var a=R({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),ue(n),Ce(n,"style",a),_i(n,l.precedence,t),e.instance=n;case"stylesheet":a=Oa(l.href);var u=t.querySelector(bu(a));if(u)return e.state.loading|=4,e.instance=u,ue(u),u;n=G0(l),(a=cl.get(a))&&Vs(n,a),u=(t.ownerDocument||t).createElement("link"),ue(u);var i=u;return i._p=new Promise(function(s,y){i.onload=s,i.onerror=y}),Ce(u,"link",n),e.state.loading|=4,_i(u,l.precedence,t),e.instance=u;case"script":return u=wa(l.src),(a=t.querySelector(xu(u)))?(e.instance=a,ue(a),a):(n=l,(a=cl.get(u))&&(n=R({},l),Ks(n,a)),t=t.ownerDocument||t,a=t.createElement("script"),ue(a),Ce(a,"link",n),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,_i(n,l.precedence,t));return e.instance}function _i(t,e,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,u=a,i=0;i<n.length;i++){var s=n[i];if(s.dataset.precedence===e)u=s;else if(u!==a)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function Vs(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ks(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Ri=null;function Q0(t,e,l){if(Ri===null){var n=new Map,a=Ri=new Map;a.set(l,n)}else a=Ri,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(t))return n;for(n.set(t,null),l=l.getElementsByTagName(t),a=0;a<l.length;a++){var u=l[a];if(!(u[wn]||u[ee]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(e)||"";i=t+i;var s=n.get(i);s?s.push(u):n.set(i,[u])}}return n}function Z0(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Oh(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function k0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function wh(t,e,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=Oa(n.href),u=e.querySelector(bu(a));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ui.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,ue(u);return}u=e.ownerDocument||e,n=G0(n),(a=cl.get(a))&&Vs(n,a),u=u.createElement("link"),ue(u);var i=u;i._p=new Promise(function(s,y){i.onload=s,i.onerror=y}),Ce(u,"link",n),l.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Ui.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Js=0;function _h(t,e){return t.stylesheets&&t.count===0&&Bi(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var n=setTimeout(function(){if(t.stylesheets&&Bi(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Js===0&&(Js=62500*hh());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Bi(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Js?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Ui(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bi(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Hi=null;function Bi(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Hi=new Map,e.forEach(Rh,t),Hi=null,Ui.call(t))}function Rh(t,e){if(!(e.state.loading&4)){var l=Hi.get(t);if(l)var n=l.get(null);else{l=new Map,Hi.set(t,l);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var i=a[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),n=i)}n&&l.set(null,n)}a=e.instance,i=a.getAttribute("data-precedence"),u=l.get(i)||n,u===n&&l.set(null,a),l.set(i,a),this.count++,n=Ui.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),u?u.parentNode.insertBefore(a,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var Su={$$typeof:$,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Uh(t,e,l,n,a,u,i,s,y){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Wl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wl(0),this.hiddenUpdates=Wl(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function V0(t,e,l,n,a,u,i,s,y,C,N,U){return t=new Uh(t,e,l,i,y,C,N,U,s),e=1,u===!0&&(e|=24),u=Ve(3,null,null,e),t.current=u,u.stateNode=t,e=Tc(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:n,isDehydrated:l,cache:e},Oc(u),t}function K0(t){return t?(t=fa,t):fa}function J0(t,e,l,n,a,u){a=K0(a),n.context===null?n.context=a:n.pendingContext=a,n=cn(e),n.payload={element:l},u=u===void 0?null:u,u!==null&&(n.callback=u),l=sn(t,n,e),l!==null&&(Ye(l,t,e),Pa(l,t,e))}function $0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function $s(t,e){$0(t,e),(t=t.alternate)&&$0(t,e)}function W0(t){if(t.tag===13||t.tag===31){var e=Hn(t,67108864);e!==null&&Ye(e,t,67108864),$s(t,67108864)}}function F0(t){if(t.tag===13||t.tag===31){var e=Fe();e=Ha(e);var l=Hn(t,e);l!==null&&Ye(l,t,e),$s(t,e)}}var qi=!0;function Hh(t,e,l,n){var a=T.T;T.T=null;var u=q.p;try{q.p=2,Ws(t,e,l,n)}finally{q.p=u,T.T=a}}function Bh(t,e,l,n){var a=T.T;T.T=null;var u=q.p;try{q.p=8,Ws(t,e,l,n)}finally{q.p=u,T.T=a}}function Ws(t,e,l,n){if(qi){var a=Fs(n);if(a===null)Hs(t,e,n,Li,l),P0(t,n);else if(Lh(a,t,e,l,n))n.stopPropagation();else if(P0(t,n),e&4&&-1<qh.indexOf(t)){for(;a!==null;){var u=xl(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=se(u.pendingLanes);if(i!==0){var s=u;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var y=1<<31-xe(i);s.entanglements[1]|=y,i&=~y}Cl(u),(Yt&6)===0&&(Si=ve()+500,gu(0))}}break;case 31:case 13:s=Hn(u,2),s!==null&&Ye(s,u,2),Mi(),$s(u,2)}if(u=Fs(n),u===null&&Hs(t,e,n,Li,l),u===a)break;a=u}a!==null&&n.stopPropagation()}else Hs(t,e,n,null,l)}}function Fs(t){return t=Pi(t),Is(t)}var Li=null;function Is(t){if(Li=null,t=bl(t),t!==null){var e=p(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=S(e),t!==null)return t;t=null}else if(l===31){if(t=z(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Li=t,null}function I0(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(In()){case $l:return 2;case Ae:return 8;case Qe:case be:return 32;case Dn:return 268435456;default:return 32}default:return 32}}var Ps=!1,bn=null,xn=null,Sn=null,Eu=new Map,Mu=new Map,En=[],qh="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 P0(t,e){switch(t){case"focusin":case"focusout":bn=null;break;case"dragenter":case"dragleave":xn=null;break;case"mouseover":case"mouseout":Sn=null;break;case"pointerover":case"pointerout":Eu.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mu.delete(e.pointerId)}}function Cu(t,e,l,n,a,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:n,nativeEvent:u,targetContainers:[a]},e!==null&&(e=xl(e),e!==null&&W0(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function Lh(t,e,l,n,a){switch(e){case"focusin":return bn=Cu(bn,t,e,l,n,a),!0;case"dragenter":return xn=Cu(xn,t,e,l,n,a),!0;case"mouseover":return Sn=Cu(Sn,t,e,l,n,a),!0;case"pointerover":var u=a.pointerId;return Eu.set(u,Cu(Eu.get(u)||null,t,e,l,n,a)),!0;case"gotpointercapture":return u=a.pointerId,Mu.set(u,Cu(Mu.get(u)||null,t,e,l,n,a)),!0}return!1}function t1(t){var e=bl(t.target);if(e!==null){var l=p(e);if(l!==null){if(e=l.tag,e===13){if(e=S(l),e!==null){t.blockedOn=e,wu(t.priority,function(){F0(l)});return}}else if(e===31){if(e=z(l),e!==null){t.blockedOn=e,wu(t.priority,function(){F0(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Yi(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Fs(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);Ii=n,l.target.dispatchEvent(n),Ii=null}else return e=xl(l),e!==null&&W0(e),t.blockedOn=l,!1;e.shift()}return!0}function e1(t,e,l){Yi(t)&&l.delete(e)}function Yh(){Ps=!1,bn!==null&&Yi(bn)&&(bn=null),xn!==null&&Yi(xn)&&(xn=null),Sn!==null&&Yi(Sn)&&(Sn=null),Eu.forEach(e1),Mu.forEach(e1)}function Gi(t,e){t.blockedOn===e&&(t.blockedOn=null,Ps||(Ps=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,Yh)))}var Xi=null;function l1(t){Xi!==t&&(Xi=t,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){Xi===t&&(Xi=null);for(var e=0;e<t.length;e+=3){var l=t[e],n=t[e+1],a=t[e+2];if(typeof n!="function"){if(Is(n||l)===null)continue;break}var u=xl(l);u!==null&&(t.splice(e,3),e-=3,Fc(u,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function _a(t){function e(y){return Gi(y,t)}bn!==null&&Gi(bn,t),xn!==null&&Gi(xn,t),Sn!==null&&Gi(Sn,t),Eu.forEach(e),Mu.forEach(e);for(var l=0;l<En.length;l++){var n=En[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<En.length&&(l=En[0],l.blockedOn===null);)t1(l),l.blockedOn===null&&En.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],u=l[n+1],i=a[Te]||null;if(typeof u=="function")i||l1(l);else if(i){var s=null;if(u&&u.hasAttribute("formAction")){if(a=u,i=u[Te]||null)s=i.formAction;else if(Is(a)!==null)continue}else s=i.action;typeof s=="function"?l[n+1]=s:(l.splice(n,3),n-=3),l1(l)}}}function n1(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return a=i})},focusReset:"manual",scroll:"manual"})}function e(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null)}}}function tf(t){this._internalRoot=t}Qi.prototype.render=tf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var l=e.current,n=Fe();J0(l,n,t,e,null,null)},Qi.prototype.unmount=tf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;J0(t.current,2,null,t,null,null),Mi(),e[Tl]=null}};function Qi(t){this._internalRoot=t}Qi.prototype.unstable_scheduleHydration=function(t){if(t){var e=$t();t={blockedOn:null,target:t,priority:e};for(var l=0;l<En.length&&e!==0&&e<En[l].priority;l++);En.splice(l,0,t),l===0&&t1(t)}};var a1=r.version;if(a1!=="19.2.8")throw Error(o(527,a1,"19.2.8"));q.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=E(e),t=t!==null?L(t):null,t=t===null?null:t.stateNode,t};var Gh={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zi.isDisabled&&Zi.supportsFiber)try{pl=Zi.inject(Gh),me=Zi}catch{}}return zu.createRoot=function(t,e){if(!d(t))throw Error(o(299));var l=!1,n="",a=rr,u=dr,i=hr;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=V0(t,1,!1,null,null,l,n,null,a,u,i,n1),t[Tl]=e.current,Us(t),new tf(e)},zu.hydrateRoot=function(t,e,l){if(!d(t))throw Error(o(299));var n=!1,a="",u=rr,i=dr,s=hr,y=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(s=l.onRecoverableError),l.formState!==void 0&&(y=l.formState)),e=V0(t,1,!0,e,l??null,n,a,y,u,i,s,n1),e.context=K0(null),l=e.current,n=Fe(),n=Ha(n),a=cn(n),a.callback=null,sn(l,a,n),l=n,e.current.lanes=l,Nn(e,l),Cl(e),t[Tl]=e.current,Us(t),new Qi(e)},zu.version="19.2.8",zu}var m1;function Fh(){if(m1)return nf.exports;m1=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(r){console.error(r)}}return c(),nf.exports=Wh(),nf.exports}var Ih=Fh();function sf(c,r,g){return c+(r-c)*g}function C1(c){return c-Math.floor(c)}function ff(c,r){const g=Math.floor(c),o=Math.floor(r);let d=c-g,p=r-o;d=d*d*(3-2*d),p=p*p*(3-2*p);const S=ol(g,o),z=ol(g+1,o),j=ol(g,o+1),E=ol(g+1,o+1);return S+(z-S)*d+(j-S)*p+(S-z-j+E)*d*p}function ol(c,r){const g=Math.sin(c*12.9898+r*78.233)*43758.5453;return g-Math.floor(g)}function Sf(c,r){const g=Math.PI*(3-Math.sqrt(5)),o=1-2*(c+.5)/r,d=Math.sqrt(1-o*o),p=c*g;return[d*Math.cos(p),o,d*Math.sin(p)]}function Ph(c,r){return Math.atan2(Math.sin(c-r),Math.cos(c-r))}function Wn(c,r,g,o,d){const p=Math.sin(r),S=Math.cos(r),z=Math.sin(c),j=Math.cos(c);return(E,L,R)=>{const G=E*j+R*z,h=-E*z+R*j,Z=L*S-h*p,at=L*p+h*S;return[g+G*d,o-Z*d,at]}}function Cn(c,r,g,o=.3){r.sort((d,p)=>d.z-p.z);for(const d of r){const p=d.a??1;if(p<.02)continue;const S=Math.min(1,Math.max(0,d.white)),z=Math.round((g?1-S:S)*255);c.fillStyle=`rgba(${z},${z},${z},${p})`,c.beginPath(),c.arc(d.x,d.y,Math.max(o,d.r),0,Math.PI*2),c.fill()}}function t2(c,r,g){for(const o of r){const d=o.a??1;if(d<.02)continue;const p=Math.min(1,Math.max(0,o.white)),S=Math.round((g?1-p:p)*255);c.strokeStyle=`rgba(${S},${S},${S},${d})`,c.lineWidth=o.w,c.beginPath(),c.moveTo(o.x1,o.y1),c.lineTo(o.x2,o.y2),c.stroke()}}function Fn(c,r){return(c/300)**r}const e2=(c,r,g,o,d)=>{const p=r/2,S=r/2,z=r/2*.76,j=Wn(g*.4,.3,p,S,1),E=Fn(r,d.rsPow??.6),L=[],R=d.ghostN??150;for(let Z=0;Z<R;Z++){const at=Sf(Z,R),[rt,ht,X]=j(at[0]*z,at[1]*z,at[2]*z),$=(X/z+1)/2;L.push({x:rt,y:ht,z:X,r:.8*E,white:.78,a:.1+.22*$})}const G=d.strandN??52,h=d.turns??3;for(let Z=0;Z<3;Z++){const at=Z/3*2*Math.PI;for(let rt=0;rt<G;rt++){const ht=(C1(rt/G+g*.045)*2-1)*.96,X=Math.sqrt(Math.max(0,1-ht*ht)),$=Math.min(1,(1-Math.abs(ht))/.1),tt=ht*Math.PI*h+at,lt=1+.075*Math.sin(ht*Math.PI*h*2+at*2+g*.8),W=X*z*lt,[k,F,ut]=j(Math.cos(tt)*W,ht*z*lt,Math.sin(tt)*W),P=(ut/z+1)/2;L.push({x:k,y:F,z:ut,r:((d.rBase??1.2)+(d.rDepth??1.8)*P)*E,white:.55-.45*P,a:$*(.45+.55*P)})}}Cn(c,L,o,d.rMin)};function l2(c,r,g,o){const d=2*r*g+o,p=c%d,S=new Array(r).fill(0);let z=-1;if(p<2*r*g){const j=Math.floor(p/g),E=(p-j*g)/g,L=1-(1-Math.min(1,E/.7))**3;if(j<r){for(let R=0;R<j;R++)S[R]=1;S[j]=L,z=j}else{const R=2*r-1-j;for(let G=0;G<R;G++)S[G]=1;S[R]=1-L,z=R}}return{amount:S,active:z}}function n2(c,r,g){let[o,d,p]=c,S=!1;for(let z=0;z<r.length;z++){if(g.amount[z]<=0)continue;const j=r[z],E=j.axis===0?o:j.axis===1?d:p;if(E<j.lo||E>=j.hi)continue;z===g.active&&(S=!0);const L=j.ang*g.amount[z],R=Math.cos(L),G=Math.sin(L);if(j.axis===0){const h=d*R-p*G;p=d*G+p*R,d=h}else if(j.axis===1){const h=o*R+p*G;p=-o*G+p*R,o=h}else{const h=o*R-d*G;d=o*G+d*R,o=h}}return[o,d,p,S]}function a2(c){const r=[];for(let g=0;g<c;g++){const o=Math.min(2,Math.floor(ol(g,2.3)*3)),d=-1+.5*Math.min(3,Math.floor(ol(g,5.9)*4)),p=ol(g,7.7)<.5?1:-1;r.push({axis:o,lo:d,hi:d+.5,ang:p*Math.PI/2})}return r}const u2=(c,r,g,o,d)=>{const p=r/2,S=r/2,z=r/2*.82,j=.4+.06*Math.sin(g*.35),E=Wn(g*.5,j,p,S,z),L=g*(.5+(1.7-.5)*(d.scanMul??1)),R=Fn(r,d.rsPow??.6),G=d.dimBase??1,h=[],Z=d.latRings??17,at=d.lonDensity??44;for(let rt=0;rt<=Z;rt++){const ht=-Math.PI/2+rt/Z*Math.PI,X=Math.cos(ht),$=Math.sin(ht),tt=Math.max(1,Math.round(Math.abs(X)*at));for(let lt=0;lt<tt;lt++){const W=lt/tt*2*Math.PI,[k,F,ut]=E(X*Math.cos(W),$,X*Math.sin(W)),P=(ut+1)/2,gt=Ph(W+g*.5,L),yt=Math.exp(-(gt*gt)/.18)*Math.max(0,ut);h.push({x:k,y:F,z:ut,r:((d.rBase??.6)+(d.rDepth??1.7)*P+(d.rBoost??1)*yt)*R,white:(d.inkFar??.62)-(d.inkSpan??.54)*P,a:G+(1-G)*Math.min(1,yt)})}}Cn(c,h,o,d.rMin)},i2=(c,r,g,o,d)=>{const p=r/2,S=r/2,z=r/2*.82,j=Wn(g*.55,.35+.1*Math.sin(g*.9),p,S,z),E=Fn(r,d.rsPow??.6),L=d.moveCount??14,R=a2(L),G=l2(g,L,.42,1.2),h=[],Z=d.latRings??15,at=d.lonDensity??40;for(let rt=0;rt<=Z;rt++){const ht=-Math.PI/2+rt/Z*Math.PI,X=Math.cos(ht),$=Math.sin(ht),tt=Math.max(1,Math.round(Math.abs(X)*at));for(let lt=0;lt<tt;lt++){const W=lt/tt*2*Math.PI,[k,F,ut,P]=n2([X*Math.cos(W),$,X*Math.sin(W)],R,G),[gt,yt,Rt]=j(k,F,ut),At=(Rt+1)/2;h.push({x:gt,y:yt,z:Rt,r:((d.rBase??.6)+(d.rDepth??1.7)*At+(P?d.rActive??.3:0))*E,white:(d.inkFar??.62)-(d.inkSpan??.54)*At-(P?.14:0)})}}Cn(c,h,o,d.rMin)},c2=(c,r,g,o,d)=>{const p=r/2,S=r/2,z=r/2*.874,j=Wn(g*.18,.38,p,S,1),E=Fn(r,d.rsPow??.6),L=[],R=d.rings??15,G=d.lonDensity??40;for(let h=0;h<=R;h++){const Z=-Math.PI/2+h/R*Math.PI,at=Math.cos(Z),rt=Math.sin(Z),ht=.62*Math.sin(g*2.1-h*.52)+.38*Math.sin(g*1.27+h*.83),X=z*(.88+.105*ht),$=Math.max(1,Math.round(Math.abs(at)*G));for(let tt=0;tt<$;tt++){const lt=tt/$*2*Math.PI,[W,k,F]=j(at*Math.cos(lt)*X,rt*X,at*Math.sin(lt)*X),ut=(F/z+1)/2,P=Math.max(0,ht);L.push({x:W,y:k,z:F,r:((d.rBase??.6)+(d.rDepth??1.7)*ut)*(1+.4*P)*E,white:.66-.56*ut-.1*P})}}Cn(c,L,o,d.rMin)};function s2(c){return c*c*(3-2*c)}function A1(c){const r=c.length,g=[];let o=0;for(let d=0;d<r;d++){const p=c[d],S=c[(d+1)%r],z=Math.hypot(S[0]-p[0],S[1]-p[1]);g.push(z),o+=z}return d=>{let p=d*o,S=0;for(;p>g[S]&&S<r-1;)p-=g[S],S++;const z=c[S],j=c[(S+1)%r],E=g[S]?Math.min(1,p/g[S]):0;return[z[0]+(j[0]-z[0])*E,z[1]+(j[1]-z[1])*E]}}const f2=c=>{const r=-Math.PI/2+c*2*Math.PI;return[Math.cos(r)*.24,Math.sin(r)*.24]},o2=A1([[0,-.26],[.24,.16],[-.24,.16]]),r2=A1([[0,-.2],[.2,-.2],[.2,.2],[-.2,.2],[-.2,-.2]]),of=[f2,o2,r2];function d2(c){return Math.max(6,Math.round(34*c))}const vf=1.4,z1=.9,rf=vf+z1,h2=(c,r,g,o,d)=>{const p=of.length,S=g%(rf*p),z=Math.floor(S/rf),j=S-z*rf,E=j>vf?s2((j-vf)/z1):0,L=d.spread??1,R=of[z],G=of[(z+1)%p],h=160,Z=[];for(let F=0;F<h;F++){const ut=F/h,P=R(ut),gt=G(ut);Z.push([(P[0]+(gt[0]-P[0])*E)*L,(P[1]+(gt[1]-P[1])*E)*L])}const at=[];let rt=0;for(let F=0;F<h;F++){const ut=Z[F],P=Z[(F+1)%h],gt=Math.hypot(P[0]-ut[0],P[1]-ut[1]);at.push(gt),rt+=gt}const ht=d2(d.iconD??1),X=(d.rDot??.021)*1.35*L,$=1+.02*Math.sin(j*3.1),tt=[],lt=r/2;let W=0,k=0;for(let F=0;F<ht;F++){const ut=F/ht*rt;for(;k+at[W]<ut&&W<h-1;)k+=at[W],W++;const P=Z[W],gt=Z[(W+1)%h],yt=at[W]?Math.min(1,(ut-k)/at[W]):0,Rt=(P[0]+(gt[0]-P[0])*yt)*$,At=(P[1]+(gt[1]-P[1])*yt)*$;tt.push({x:lt+Rt*r,y:lt+At*r,z:0,r:Math.max(.35,X*r),white:.1})}Cn(c,tt,o,d.rMin)},m2=(c,r,g,o,d)=>{const p=r/2,S=r/2,z=r/2*.82,j=Wn(g*.12,.3,p,S,1),E=Fn(r,d.rsPow??.6),L=[],R=d.orbitN??12,G=d.ghostN??40,h=d.particles??3;for(let Z=0;Z<R;Z++){const at=ol(Z,1.7),rt=ol(Z,5.2),ht=ol(Z,8.9),X=z*(.45+.52*at),$=at*2*Math.PI,tt=Math.acos(2*rt-1),lt=Math.sin(tt)*Math.cos($),W=Math.cos(tt),k=Math.sin(tt)*Math.sin($);let F=-W,ut=lt;const P=0,gt=Math.max(1e-6,Math.sqrt(F*F+ut*ut));F/=gt,ut/=gt;const yt=W*P-k*ut,Rt=k*F-lt*P,At=lt*ut-W*F,Jt=(.25+.55*ht)*(ht>.5?1:-1);for(let T=0;T<G;T++){const q=T/G*2*Math.PI,[K,vt,xt]=j((F*Math.cos(q)+yt*Math.sin(q))*X,(ut*Math.cos(q)+Rt*Math.sin(q))*X,(P*Math.cos(q)+At*Math.sin(q))*X),v=(xt/X+1)/2;L.push({x:K,y:vt,z:xt,r:(d.ghostR??.9)*E,white:.72,a:(d.ghostA??.5)*(.4+.6*v)})}for(let T=0;T<h;T++){const q=g*Jt+T/h*2*Math.PI+rt*6,[K,vt,xt]=j((F*Math.cos(q)+yt*Math.sin(q))*X,(ut*Math.cos(q)+Rt*Math.sin(q))*X,(P*Math.cos(q)+At*Math.sin(q))*X),v=(xt/X+1)/2;L.push({x:K,y:vt,z:xt,r:((d.partR??1.2)+(d.partRDepth??1.6)*v)*E,white:.3-.22*v})}}Cn(c,L,o,d.rMin)},g1=(c,r,g,o,d)=>{const p=r/2,S=r/2,z=r/2*.78,j=d.spin??1,E=.3,L=Wn(g*.1*j,E,p,S,1),R=Fn(r,d.rsPow??.6),G=[],h=d.ghostN??150;for(let At=0;At<h;At++){const Jt=Sf(At,h),[T,q,K]=L(Jt[0]*z,Jt[1]*z,Jt[2]*z),vt=(K/z+1)/2;G.push({x:T,y:q,z:K,r:.8*R,white:.78,a:.1+.22*vt})}const Z=g*.24*j,at=d.faceOn?-E:.55+.3*Math.sin(g*.18)*j,rt=Math.cos(Z),ht=0,X=Math.sin(Z),$=-X*Math.sin(at),tt=Math.cos(at),lt=rt*Math.sin(at),W=ht*lt-X*tt,k=X*$-rt*lt,F=rt*tt-ht*$,ut=.23*(d.wobMul??1),P=d.faceOn?z/(1+.85*ut):z,gt=d.lanes??5,yt=d.segs??88,Rt=Math.max(1,Math.round(gt*(d.bandMul??1)));for(let At=0;At<Rt;At++){const Jt=(At-(Rt-1)/2)*.075,T=Math.abs(At-(Rt-1)/2)/Math.max(1,(Rt-1)/2);for(let q=0;q<yt;q++){const K=q/yt*2*Math.PI,vt=(.16*Math.sin(K*3-g*1.7+At*.22)+.07*Math.sin(K*5+g*1.1))*(d.wobMul??1),xt=d.faceOn?1+vt:1,v=d.faceOn?Jt:Jt+vt,O=rt*Math.cos(K)+$*Math.sin(K)+W*v,Q=ht*Math.cos(K)+tt*Math.sin(K)+k*v,V=X*Math.cos(K)+lt*Math.sin(K)+F*v,st=Math.sqrt(O*O+Q*Q+V*V),ft=P*xt,[zt,Mt,Ct]=L(O/st*ft,Q/st*ft,V/st*ft),je=(Ct/z+1)/2;G.push({x:zt,y:Mt,z:Ct,r:((d.rBase??1.1)+(d.rDepth??1.7)*je)*(1-.25*T)*R,white:.52-.44*je+.18*T,a:.4+.6*je})}}Cn(c,G,o,d.rMin)},g2=(c,r,g,o,d)=>{const p=r/2,S=r/2,z=r/2*.8*(d.spread??1),j=Wn(g*.12,.32,p,S,z),E=Fn(r,d.rsPow??.6),L=d.nodeN??30,R=d.thr??.72,G=d.nodeR??1.4,h=d.nodeRDepth??1.8,Z=[];for(let X=0;X<L;X++){const $=Sf(X,L),tt=$[0]+.3*(ff(X*.31+9,g*.24)-.5)*2,lt=$[1]+.3*(ff(X*.53+27,g*.21)-.5)*2,W=$[2]+.3*(ff(X*.77+55,g*.27)-.5)*2,k=Math.sqrt(tt*tt+lt*lt+W*W);Z.push([tt/k,lt/k,W/k])}const at=[],rt=[];for(let X=0;X<L;X++)for(let $=X+1;$<L;$++){const tt=Z[X][0]-Z[$][0],lt=Z[X][1]-Z[$][1],W=Z[X][2]-Z[$][2],k=Math.sqrt(tt*tt+lt*lt+W*W);if(k>=R)continue;const[F,ut,P]=j(Z[X][0],Z[X][1],Z[X][2]),[gt,yt,Rt]=j(Z[$][0],Z[$][1],Z[$][2]),At=((P+Rt)/2+1)/2;at.push({x1:F,y1:ut,x2:gt,y2:yt,white:.42,a:(1-k/R)*(.3+.55*At),w:Math.max(.6,(d.lineW??.8)*E)})}for(let X=0;X<L;X++){const[$,tt,lt]=j(Z[X][0],Z[X][1],Z[X][2]),W=(lt+1)/2,k=1+.25*Math.sin(g*1.4+X*2.7);rt.push({x:$,y:tt,z:lt,r:(G+h*W)*k*E,white:.55-.45*W})}const ht=d.signals??5;for(let X=0;X<ht;X++){const $=Math.floor(g*.55+X*7.31),tt=Math.floor(ol($,X*3.1+1.7)*L),lt=Math.floor(ol($,X*5.7+4.2)*L);if(tt===lt)continue;const W=C1(g*.55+X*7.31),k=sf(Z[tt][0],Z[lt][0],W),F=sf(Z[tt][1],Z[lt][1],W),ut=sf(Z[tt][2],Z[lt][2],W),P=Math.max(1e-6,Math.sqrt(k*k+F*F+ut*ut)),[gt,yt,Rt]=j(k/P,F/P,ut/P),At=(Rt+1)/2;rt.push({x:gt,y:yt,z:Rt,r:(G*1.5+h*At)*E,white:.05,a:.5+.5*At})}t2(c,at,o),Cn(c,rt,o,d.rMin)},y2={orbits:m2,globe:u2,rubik:i2,wave:c2,web:g2,braid:e2,ribbon:g1,ring:g1,morph:h2},p2=[["latRings","lonDensity"],["rings","lonDensity"],["lanes","segs"]],v2=["orbitN","ghostN","nodeN","strandN","signals"],b2=["iconD"],x2=["rBase","rDepth","rActive","rDot","ghostR","partR","partRDepth","nodeR","nodeRDepth"];function S2(c,r){const g={...c},o=new Set,d=Math.sqrt(r);for(const[p,S]of p2){const z=g[p],j=g[S];z!=null&&j!=null&&!o.has(p)&&!o.has(S)&&(g[p]=Math.max(2,Math.round(z*d)),g[S]=Math.max(2,Math.round(j*d)),o.add(p),o.add(S))}for(const p of v2){const S=g[p];S!=null&&S!==0&&!o.has(p)&&(g[p]=Math.max(1,Math.round(S*r)))}for(const p of b2){const S=g[p];S!=null&&(g[p]=Math.max(.02,S*r))}return g}function E2(c,r){const g={...c};for(const o of x2){const d=g[o];d!=null&&(g[o]=d*r)}return g.rSizeMul=(g.rSizeMul??1)*r,g}const M2={globe:{latRings:17,lonDensity:44,rBase:.6,rDepth:1.7,rBoost:1,inkFar:.62,inkSpan:.54,rsPow:.6,rMin:.3},orbits:{orbitN:12,ghostN:40,ghostR:.9,ghostA:.5,particles:3,partR:1.2,partRDepth:1.6,rsPow:.6,rMin:.3},rubik:{latRings:15,lonDensity:40,moveCount:14,rBase:.6,rDepth:1.7,rActive:.3,inkFar:.62,inkSpan:.54,rsPow:.6,rMin:.3},wave:{rings:15,lonDensity:40,rBase:.6,rDepth:1.7,rsPow:.6,rMin:.3},web:{nodeN:30,thr:.72,signals:5,nodeR:1.4,nodeRDepth:1.8,lineW:.8,rsPow:.6,rMin:.3},braid:{strandN:52,turns:3,ghostN:150,rBase:1.2,rDepth:1.8,rsPow:.6,rMin:.3},ribbon:{lanes:5,segs:88,ghostN:150,rBase:1.1,rDepth:1.7,rsPow:.6,rMin:.3},ring:{lanes:5,segs:88,ghostN:0,faceOn:1,rBase:1.1,rDepth:1.7,rsPow:.6,rMin:.3},morph:{rDot:.021,iconD:1,rMin:.25}},C2={working:"orbits",searching:"globe",solving:"rubik",listening:"wave",connecting:"web",weaving:"braid",composing:"ribbon",breathing:"ring",shaping:"morph"},A2={orbits:{64:{speed:1.885,count:1,size:1},20:{speed:3.9,count:.238,size:2.4}},globe:{64:{speed:2.015,count:.42,size:1.15,extra:{scanMul:4.08,dimBase:.45}},20:{speed:2.665,count:.105,size:1.75,extra:{scanMul:4.335,dimBase:.45}}},rubik:{64:{speed:1.82,count:.35,size:1.05},20:{speed:1.95,count:.088,size:1.9}},wave:{64:{speed:4.388,count:.341,size:1},20:{speed:3.998,count:.105,size:1.6}},web:{64:{speed:3.315,count:1.35,size:.95},20:{speed:6.63,count:.25,size:1.52}},braid:{64:{speed:1.625,count:.5,size:1},20:{speed:2.75,count:.1125,size:1.36}},ribbon:{64:{speed:2.34,count:.25,size:.85,extra:{spin:0,bandMul:3.9,wobMul:1}},20:{speed:3.12,count:.051,size:1.073,extra:{spin:0,bandMul:4.94,wobMul:1}}},ring:{64:{speed:3.24,count:.25,size:.956,extra:{spin:0,bandMul:3.627,wobMul:.368}},20:{speed:3.78,count:.028,size:1.622,extra:{spin:0,bandMul:3.968,wobMul:.565}}},morph:{64:{speed:2.405,count:.702,size:.395,extra:{spread:1.45}},20:{speed:2.08,count:.53,size:1.011,extra:{spread:1.45}}}},y1=new Map;function z2(c,r){const g=`${c}-${r}`,o=y1.get(g);if(o)return o;const d=C2[c],p=A2[d][r];let S={...M2[d]};p.count!==1&&(S=S2(S,p.count)),p.size!==1&&(S=E2(S,p.size)),p.extra&&(S={...S,...p.extra});const z={mode:d,speed:p.speed,opts:S};return y1.set(g,z),z}function T2(c){let r=c;for(;r;){const g=r.getAttribute("data-theme");if(g==="dark")return!0;if(g==="light")return!1;if(r.classList.contains("dark"))return!0;if(r.classList.contains("light"))return!1;r=r.parentElement}return null}function D2(){return typeof matchMedia>"u"||matchMedia("(prefers-color-scheme: dark)").matches}function j2(c,r){const[g,o]=H.useState(!0);return H.useEffect(()=>{if(c==="dark"){o(!0);return}if(c==="light"){o(!1);return}const d=()=>{const j=T2(r.current);o(j??D2())};d();const p=typeof matchMedia<"u"?matchMedia("(prefers-color-scheme: dark)"):null,S=()=>d();p?.addEventListener("change",S);let z=null;return typeof MutationObserver<"u"&&r.current&&(z=new MutationObserver(d),z.observe(document.documentElement,{attributes:!0,attributeFilter:["class","data-theme"],subtree:!0})),()=>{p?.removeEventListener("change",S),z?.disconnect()}},[c,r]),g}function N2(){const[c,r]=H.useState(!1);return H.useEffect(()=>{if(typeof matchMedia>"u")return;const g=matchMedia("(prefers-reduced-motion: reduce)");r(g.matches);const o=d=>r(d.matches);return g.addEventListener("change",o),()=>g.removeEventListener("change",o)},[]),c}const O2={working:"Working…",searching:"Searching…",solving:"Solving…",listening:"Listening…",connecting:"Connecting…",weaving:"Weaving…",composing:"Composing…",breathing:"Thinking…",shaping:"Shaping…"};function T1({state:c="working",size:r=64,theme:g="auto",speed:o=1,paused:d=!1,style:p,"aria-label":S,...z}){const j=H.useRef(null),E=j2(g,j),L=N2();return H.useEffect(()=>{const R=j.current;if(!R)return;const G=Math.min(2,typeof devicePixelRatio<"u"&&devicePixelRatio||1);R.width=Math.round(r*G),R.height=Math.round(r*G);const h=R.getContext("2d");if(!h)return;const{mode:Z,speed:at,opts:rt}=z2(c,r),ht=y2[Z],X=at*o,$=yt=>{h.setTransform(G,0,0,G,0,0),h.clearRect(0,0,r,r),ht(h,r,yt,E,rt)};if(L){$(.6);return}let tt=0,lt=!1;const W=()=>{$(performance.now()/1e3*X),lt&&(tt=requestAnimationFrame(W))},k=()=>{lt||d||(lt=!0,tt=requestAnimationFrame(W))},F=()=>{lt=!1,cancelAnimationFrame(tt)};$(performance.now()/1e3*X);let ut=!0;const P=typeof IntersectionObserver<"u"?new IntersectionObserver(([yt])=>{ut=yt.isIntersecting,ut&&document.visibilityState!=="hidden"?k():F()}):null;P?.observe(R);const gt=()=>{document.visibilityState==="hidden"?F():ut&&k()};return document.addEventListener("visibilitychange",gt),P||k(),()=>{F(),P?.disconnect(),document.removeEventListener("visibilitychange",gt)}},[c,r,E,o,d,L]),f.jsx("canvas",{ref:j,role:"img","aria-label":S??O2[c],style:{width:r,height:r,display:"block",...p},...z})}const df=["searching","solving","composing","breathing","shaping"];function w2(c){const r=Math.floor(c*df.length);return df[Math.min(df.length-1,Math.max(0,r))]}const D1=w2(Math.random()),$n="ease-[cubic-bezier(0.32,0.72,0,1)]",j1=274,N1=395,O1=368,w1=[{label:"Full",width:null},{label:"1440",width:1440},{label:"834",width:834},{label:"390",width:390}],Vl={agentPickerDismissed:!1,collapsed:!1,collapsedFamilies:[],corner:"bottom-right",font:"satoshi",hidden:[],order:[],renames:{},scaleSplit:!0,showDevOverlays:!0,showWidget:!0,viewport:null,width:O1};function _2(c){return`leglas:${c}`}function R2(c,r){const g=r.map(o=>o.title);try{if(!c)return{...Vl,order:g};const o=JSON.parse(c),d={...Vl,...o},p=(Array.isArray(d.order)?d.order:[]).filter(z=>g.includes(z)),S=["bottom-left","bottom-right","top-left","top-right"];return{agentPickerDismissed:typeof o.agentPickerDismissed=="boolean"?o.agentPickerDismissed:Vl.agentPickerDismissed,collapsed:!!d.collapsed,collapsedFamilies:(Array.isArray(d.collapsedFamilies)?d.collapsedFamilies:[]).filter(z=>g.includes(z)),corner:S.includes(d.corner)?d.corner:Vl.corner,font:typeof d.font=="string"?d.font:Vl.font,hidden:(Array.isArray(d.hidden)?d.hidden:[]).filter(z=>g.includes(z)),order:[...p,...g.filter(z=>!p.includes(z))],renames:Object.fromEntries(Object.entries(d.renames??{}).filter(([z])=>g.includes(z))),scaleSplit:typeof o.scaleSplit=="boolean"?o.scaleSplit:Vl.scaleSplit,showDevOverlays:typeof o.showDevOverlays=="boolean"?o.showDevOverlays:Vl.showDevOverlays,showWidget:typeof o.showWidget=="boolean"?o.showWidget:Vl.showWidget,viewport:w1.some(z=>z.width===d.viewport)?d.viewport:null,width:Number.isFinite(d.width)?Math.round(Math.min(N1,Math.max(j1,d.width))):O1}}catch{return{...Vl,order:g}}}function U2(c,r){if(c.length===0)return[...r];const g=new Set(r),o=c.filter(p=>g.has(p)),d=new Set(o);return[...o,...r.filter(p=>!d.has(p))]}function H2(c,r,g,o){const d=r.map(E=>E.title),p=(c.order.length?c.order:d).filter(E=>E!==g),z=p.filter(E=>!c.hidden.includes(E))[o],j=z===void 0?p.length:p.indexOf(z);return p.splice(j,0,g),p}const _1=8,B2=8;function q2(c,r,g=_1){return c.left<g?g-c.left:c.right>r-g?Math.max(g-c.left,r-g-c.right):0}function L2(c,r,g,o=_1){if(c.top>=o)return!1;const d=c.bottom-c.top;return r.bottom+o+d<=g-o}function Y2(c,r,g,o){const d=c.at==="right"?c.x:c.x-r.width/2,p=c.at==="top"?c.y-r.height:c.at==="bottom"?c.y:c.y-r.height/2,S={bottom:p+r.height,left:d,right:d+r.width,top:p};if(c.at==="top"&&L2(S,g,o.height))return{at:"bottom",shift:c.shift,y:g.bottom+B2};const z=q2(S,o.width);return z===c.shift?null:{at:c.at,shift:z,y:c.y}}function ki({size:c=18}){return f.jsxs("svg",{"aria-hidden":!0,height:c,strokeLinejoin:"round",strokeWidth:22,viewBox:"160 370 1050 1320",width:Math.round(c*(1050/1320)),children:[f.jsxs("defs",{children:[f.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"lm-up",x1:"791.957",x2:"210",y1:"723.095",y2:"1010",children:[f.jsx("stop",{offset:"0",stopColor:"#7C38E8"}),f.jsx("stop",{offset:"0.68",stopColor:"#CDB6F1"}),f.jsx("stop",{offset:"1",stopColor:"#E9E0FA"})]}),f.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"lm-down",x1:"789.954",x2:"210",y1:"1330.46",y2:"1035",children:[f.jsx("stop",{offset:"0",stopColor:"#3EC2A8"}),f.jsx("stop",{offset:"0.68",stopColor:"#9EDAE8"}),f.jsx("stop",{offset:"1",stopColor:"#E1F2F6"})]}),f.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"lm-shaft",x1:"884.016",x2:"182",y1:"1023.26",y2:"1023.26",children:[f.jsx("stop",{offset:"0",stopColor:"#7E97DD"}),f.jsx("stop",{offset:"0.48",stopColor:"#5F7FD8"}),f.jsx("stop",{offset:"0.71",stopColor:"#9AABE2"}),f.jsx("stop",{offset:"1",stopColor:"#E2E8F6"})]}),f.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"lm-head",x1:"1192",x2:"874.81",y1:"1021.57",y2:"1024.91",children:[f.jsx("stop",{offset:"0",stopColor:"#E8ECF7"}),f.jsx("stop",{offset:"1",stopColor:"#92A7E0"})]})]}),f.jsx("path",{d:"M 671.122 381.199 C 708.12 378.001 733.579 414.981 702.643 437.984 C 705.64 430.245 708.163 423.315 705.553 415.028 C 700.981 400.516 684.107 396.94 671.252 401.81 C 662.713 405.098 655.849 411.671 652.193 420.059 C 645.933 434.059 649.404 447.111 654.599 460.446 C 665.665 467.718 660.114 472.463 666.664 480.695 C 694.852 516.12 737.817 543.026 774.246 568.848 C 841.225 616.324 905.267 670.31 939.022 747.101 C 953.651 782.815 964.144 815.411 953.49 854.107 C 944.702 886.028 889.413 910.644 901.624 945.63 C 905.247 956.01 926.305 965.294 936.684 957.439 C 947.74 949.072 949.919 942.473 953.06 929.336 C 967.974 962.891 939.504 987.655 907.14 982.376 C 893.109 980.134 880.552 972.384 872.258 960.847 C 839.018 914.253 888.968 876.15 898.307 834.712 C 902.782 814.853 894.952 783.534 888.142 764.672 C 860.48 688.068 798.139 632.327 735.838 583.312 C 700.284 555.045 669.551 529.466 642.632 492.392 C 627.896 510.927 608.893 531.804 593.068 550.006 L 506.523 649.582 L 278.039 912.109 C 245.455 949.199 213.059 986.454 180.851 1023.87 C 231.765 1079.46 283.65 1142.04 333.374 1199.45 L 642.829 1555.74 C 666.446 1520.75 700.163 1494.07 732.424 1467.5 C 795.117 1417.7 858.256 1363.37 887.261 1286.25 C 898.113 1256.93 906.911 1217.89 889.705 1189.06 C 873.478 1161.87 852.143 1132.56 865.539 1099.12 C 871.003 1085.24 881.904 1074.2 895.712 1068.56 C 930.406 1054.52 970.704 1079.86 953.232 1118.88 C 950.548 1106.58 948.459 1099.64 937.837 1091.37 C 926.133 1082.27 907.942 1089.57 901.99 1101.66 C 890.169 1127.27 924.549 1151.85 939.219 1169.81 C 966.471 1203.18 959.658 1245.71 945.71 1284.44 C 914.285 1371.69 840.069 1433.7 765.809 1484.61 C 733.647 1506.66 698.091 1531.58 672.306 1561.08 C 665.933 1568.59 659.014 1581.87 653.634 1590.29 C 648.506 1598.32 647.787 1615.38 650.833 1624.56 C 653.881 1633.77 660.579 1641.32 669.359 1645.45 C 681.85 1651.27 699.281 1649.12 705.041 1634.65 C 708.705 1625.45 705.419 1617.29 701.581 1608.8 L 702.848 1609.85 C 737.88 1638.68 697.51 1681.47 657.106 1662.8 C 643.389 1656.45 632.826 1644.83 627.824 1630.56 C 619.064 1605.85 626.824 1585.32 637.489 1563.26 C 610.659 1534.07 581.755 1498.91 555.456 1468.66 L 383.745 1271.03 L 242.504 1108.25 C 219.223 1081.36 191.596 1051.06 169.707 1023.52 C 181.894 1007.58 201.352 986.522 215.082 970.737 L 301.342 871.646 L 539.659 597.67 C 572.041 560.265 605.914 522.417 637.6 484.482 C 616.356 444.192 617.849 392.637 671.122 381.199 z",fill:"#E8ECF7",stroke:"#E8ECF7"}),f.jsx("path",{d:"M 791.002 712.436 C 791.99 712.378 791.355 712.338 792.831 712.983 C 791.837 718.407 719.488 841.546 710.03 858.509 C 707.23 840.677 702.304 817.013 698.274 799.446 C 555 895 360 995 182 1023 C 355 963 525 870 674.863 761.103 C 659.702 748.905 644.649 736.575 629.704 724.113 C 681.16 722.084 738.984 715.793 791.002 712.436 z",fill:"url(#lm-up)",stroke:"url(#lm-up)"}),f.jsx("path",{d:"M 182 1023 C 360 1051 555 1151 698.326 1248.65 C 702.16 1232.41 707.425 1206.32 709.871 1189.79 C 737.246 1238.39 766.184 1286.55 793.713 1335.16 C 739.167 1331.05 684.598 1327.24 630.009 1323.75 C 644.462 1311.53 659.652 1298.21 674.331 1286.42 C 525 1176 355 1083 182 1023 z",fill:"url(#lm-down)",stroke:"url(#lm-down)"}),f.jsx("path",{d:"M 182 1023.5 L 884.044 1002.33 L 881.311 1004.34 C 882.15 1018.85 886.981 1021.89 881.356 1038.74 C 878.766 1040.79 876.225 1042.9 873.734 1045.08 z",fill:"url(#lm-shaft)",stroke:"url(#lm-shaft)"}),f.jsx("path",{d:"M 1005.63 925.199 L 1121.78 984.34 C 1142.45 994.767 1179.5 1012.52 1198.4 1023.72 L 1070.98 1089.03 C 1051.67 1098.95 1023.69 1114.54 1004.93 1122.53 C 1013.61 1097.65 1022.5 1072.85 1031.59 1048.12 L 873.734 1045.08 C 876.225 1042.9 878.766 1040.79 881.356 1038.74 C 886.981 1021.89 882.15 1018.85 881.311 1004.34 L 884.044 1002.33 L 1030.81 999.036 C 1023.04 976.689 1012.03 947.529 1005.63 925.199 z",fill:"url(#lm-head)",stroke:"url(#lm-head)"})]})}function G2({height:c=16}){return f.jsxs("svg",{"aria-label":"Leglas",fill:"#E8ECF7",height:c,role:"img",viewBox:"1256 928 642 222",width:Math.round(c*(642/222)),children:[f.jsx("path",{d:"M 1532.93 979.19 C 1552.43 978.051 1561.54 979.865 1574.88 995.12 L 1575.07 981.036 L 1598.92 981.151 L 1598.96 1052.38 C 1598.98 1086.98 1603.87 1127.82 1557.89 1134.37 C 1533.59 1137.83 1517.6 1134.59 1498.35 1119.87 L 1504.96 1108.54 L 1508.69 1102.35 C 1525.04 1114.93 1548.42 1124.68 1566.62 1107.48 C 1575.66 1098.94 1575.05 1084.76 1574.99 1073.16 C 1568.8 1080.06 1562.18 1085.4 1553.24 1088.34 C 1542.19 1091.88 1530.17 1090.79 1519.94 1085.31 C 1486.94 1067.75 1484.12 1009.92 1513.66 987.847 C 1520.32 982.873 1525.18 981.186 1532.93 979.19 z M 1541.52 1000.13 C 1555.85 998.918 1566.45 1003.26 1574.9 1015.05 C 1575.09 1027.93 1574.91 1041.22 1574.89 1054.14 C 1567.52 1063.25 1562.65 1066.25 1551.25 1068.92 C 1511.01 1069.99 1505.34 1012.62 1541.52 1000.13 z",fillRule:"evenodd"}),f.jsx("path",{d:"M 1416.95 979.231 C 1461.09 974.139 1477.7 1004.91 1478.08 1043.29 L 1395.13 1043.56 C 1404.31 1072.49 1429.03 1082.58 1454.48 1064.74 C 1457.34 1062.33 1456.68 1062.04 1459.58 1062.05 C 1464.01 1065.22 1467.95 1071.97 1471.41 1076.59 C 1414.1 1122.22 1344.57 1064.4 1381 1001.64 C 1388.32 989.03 1403.12 982.109 1416.95 979.231 z M 1419.64 998.169 C 1442.21 996.072 1449.85 1006.61 1455.14 1026.51 C 1448.55 1026.96 1438.16 1026.58 1431.31 1026.54 C 1419.15 1026.65 1406.99 1026.63 1394.83 1026.48 C 1398.74 1009.86 1403.7 1003.36 1419.64 998.169 z",fillRule:"evenodd"}),f.jsx("path",{d:"M 1713.27 979.252 C 1728.04 977.573 1745.26 979.123 1756.3 989.97 C 1768.26 1001.72 1767.44 1017.49 1767.31 1032.81 C 1767.15 1051.82 1767.12 1070.77 1767.06 1089.74 L 1757.36 1089.93 C 1733.55 1090.35 1748.04 1086.51 1742.3 1080.97 C 1727.07 1089.66 1714.5 1096.6 1695.79 1090.38 C 1685.07 1086.81 1679.16 1079.18 1674.51 1069.31 C 1663.26 1025.76 1710.42 1008.22 1743.06 1033.45 C 1743.17 1029.64 1743.75 1021.08 1742.89 1017.76 C 1734.81 986.781 1704.35 998.377 1687.37 1012 C 1684.28 1006.47 1681.22 1000.93 1678.2 995.358 C 1689.81 985.727 1698.69 981.852 1713.27 979.252 z M 1714.53 1038.21 C 1726.37 1037.77 1733.38 1039.57 1742.94 1046.21 C 1743.21 1052.09 1743.05 1058.97 1743.05 1064.94 C 1736.15 1071.44 1733.92 1072.52 1724.6 1074.96 C 1709.1 1075.75 1690.77 1070.07 1698.16 1048.49 C 1700.08 1042.9 1708.94 1039.56 1714.53 1038.21 z",fillRule:"evenodd"}),f.jsx("path",{d:"M 1823.29 979.174 C 1843.68 977.649 1857.91 980.343 1873.82 993.561 L 1864.19 1010.31 C 1854.9 1002.37 1842.52 996.264 1830.29 997.499 C 1810.54 999.496 1804.87 1016.41 1827.99 1021.78 C 1853.42 1027.68 1886.98 1035.62 1875.05 1070.07 C 1869.31 1086.64 1852.8 1091.05 1837.21 1092.35 C 1816.02 1092.18 1803.14 1089.58 1786.76 1075.52 L 1797.03 1058.98 C 1810.81 1068.5 1823.36 1075.69 1840.97 1072.95 C 1848.65 1071.76 1856.31 1065.31 1853.69 1057.02 C 1850.58 1049.89 1837.32 1046.22 1830.02 1044.91 C 1802.77 1040.01 1777.57 1024.93 1796.42 994.719 C 1802.7 984.652 1812.04 981.686 1823.29 979.174 z"}),f.jsx("path",{d:"M 1266.98 939.821 L 1293.02 939.95 L 1293.03 1066.58 L 1358.72 1066.65 L 1358.8 1089.73 L 1266.88 1089.69 L 1266.98 939.821 z"}),f.jsx("path",{d:"M 1627.11 939.241 L 1650.97 939.358 L 1650.98 1089.81 L 1627.17 1089.88 C 1626.5 1040.3 1626.89 988.911 1627.11 939.241 z"})]})}const sl={copy:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z",pencil:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z",link:"M87.5,151.52l64-64a12,12,0,0,1,17,17l-64,64a12,12,0,0,1-17-17Zm131-114a60.08,60.08,0,0,0-84.87,0L103.51,67.61a12,12,0,0,0,17,17l30.07-30.06a36,36,0,0,1,50.93,50.92L171.4,135.52a12,12,0,1,0,17,17l30.08-30.06A60.09,60.09,0,0,0,218.45,37.55ZM135.52,171.4l-30.07,30.08a36,36,0,0,1-50.92-50.93l30.06-30.07a12,12,0,0,0-17-17L37.55,133.58a60,60,0,0,0,84.88,84.87l30.06-30.07a12,12,0,0,0-17-17Z",search:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z",split:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36ZM44,60h72V196H44ZM212,196H140V60h72Z",sidebar:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36ZM44,60H76V196H44ZM212,196H100V60H212Z",trash:"M216,48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM188,204H68V72H188ZM76,20A12,12,0,0,1,88,8h80a12,12,0,0,1,0,24H88A12,12,0,0,1,76,20Z"},Tu="flex h-6 w-6 items-center justify-center rounded text-[#D1D5DB] hover:bg-[#2E2E2E] hover:text-white";function hf({on:c}){return f.jsx("span",{"aria-hidden":"true",className:`relative h-3.5 w-6 shrink-0 rounded-full transition-colors duration-150 motion-reduce:transition-none ${c?"bg-[#E6E8EC]":"bg-[#17181B]"}`,children:f.jsx("span",{className:`absolute left-0.5 top-0.5 size-2.5 rounded-full transition-transform duration-150 motion-reduce:transition-none ${c?"translate-x-2.5 bg-[#17181B]":"bg-[#84848C]"}`})})}function fl({d:c,size:r=13}){return f.jsx("svg",{"aria-hidden":!0,fill:"currentColor",height:r,viewBox:"0 0 256 256",width:r,children:f.jsx("path",{d:c})})}let p1=0;function Ge({children:c,label:r,side:g="top"}){const o=H.useRef(null),d=H.useRef(null),p=H.useRef(null),S=H.useRef(null),[z,j]=H.useState(null);H.useLayoutEffect(()=>{const G=d.current,h=o.current?.firstElementChild;if(!z||z.out||!G||!h)return;const Z=Y2(z,{height:G.offsetHeight,width:G.offsetWidth},h.getBoundingClientRect(),{height:window.innerHeight,width:window.innerWidth});Z&&j(at=>at&&{...at,...Z})},[r,z?.at,z?.out,z?.shift,z?.x,z?.y]),H.useEffect(()=>()=>{p.current&&clearTimeout(p.current),S.current&&clearTimeout(S.current)},[]);const E=()=>{const G=o.current?.firstElementChild;if(!G)return;const h=G.getBoundingClientRect();S.current&&clearTimeout(S.current),j(g==="top"?{at:"top",out:!1,shift:0,x:h.left+h.width/2,y:h.top-8}:{at:"right",out:!1,shift:0,x:h.right+8,y:h.top+h.height/2})},L=()=>{p.current&&clearTimeout(p.current),p.current=setTimeout(E,Date.now()<p1?0:300)},R=()=>{p.current&&clearTimeout(p.current),p1=Date.now()+300,j(G=>G&&!G.out?{...G,out:!0}:G),S.current&&clearTimeout(S.current),S.current=setTimeout(()=>j(null),120)};return f.jsxs("span",{className:"contents",onBlur:R,onFocus:G=>{G.target.matches(":focus-visible")&&E()},onPointerDown:R,onPointerEnter:L,onPointerLeave:R,ref:o,children:[c,z&&f.jsx("span",{"aria-hidden":!0,className:"pointer-events-none fixed z-[60]",style:{left:z.x+z.shift,top:z.y},children:f.jsx("span",{className:`block ${{bottom:"-translate-x-1/2",right:"-translate-y-1/2",top:"-translate-x-1/2 -translate-y-full"}[z.at]}`,children:f.jsx("span",{className:`leglas-tip block whitespace-nowrap rounded-lg border border-white/10 bg-[#171717] px-2 py-1 text-xs font-medium text-white shadow-lg ${z.out?`leglas-tip-out-${z.at}`:`leglas-tip-in-${z.at}`}`,ref:d,children:r})})})]})}function X2({error:c,initial:r,label:g,onCancel:o,onCommit:d}){const p=H.useRef(!1);return H.useEffect(()=>{c&&(p.current=!1)}),f.jsx("form",{className:"leglas-rename min-w-0 flex-1",onSubmit:S=>{S.preventDefault();const z=new FormData(S.currentTarget).get("name");p.current=!0,d(typeof z=="string"?z.trim():"","submit")},children:f.jsx("input",{"aria-describedby":c?"leglas-rename-error":void 0,"aria-invalid":c?!0:void 0,"aria-label":g,autoFocus:!0,className:`-mx-1 block w-[calc(100%+0.5rem)] rounded-[4px] bg-transparent px-1 py-0 text-sm font-medium leading-5 text-white outline-none ring-1 ${c?"ring-amber-400/60":"ring-[#D1D5DB]/45 focus:ring-[#D1D5DB]/70"}`,defaultValue:r,name:"name",onBlur:S=>{p.current||d(S.currentTarget.value.trim(),"blur")},onKeyDown:S=>{S.key==="Escape"&&(p.current=!0,o())},type:"text"})})}const Q2={danger:"bg-amber-300",info:"bg-[#9CA3AF]",success:"bg-emerald-300"},Z2=140;function k2({onDismiss:c,toast:r}){const[g,o]=H.useState(!1),[d,p]=H.useState(!1),[S,z]=H.useState(!1),j=H.useRef(r.ttl),E=H.useRef(null),L=()=>{E.current||(o(!0),E.current=setTimeout(c,Z2))},R=d||S;return H.useEffect(()=>{if(g||R||j.current===null)return;const G=Date.now(),h=setTimeout(L,j.current);return()=>{clearTimeout(h),j.current!==null&&(j.current=Math.max(0,j.current-(Date.now()-G)))}},[g,R]),H.useEffect(()=>()=>{E.current&&clearTimeout(E.current)},[]),f.jsxs("li",{className:`pointer-events-auto flex items-start gap-2.5 rounded-lg border border-white/10 bg-[#2E2E2E] px-3 py-2.5 shadow-xl shadow-black/40 ${g?"leglas-toast-out":"leglas-toast-in"}`,onBlur:()=>z(!1),onFocus:()=>z(!0),onPointerEnter:()=>p(!0),onPointerLeave:()=>p(!1),children:[f.jsx("span",{"aria-hidden":!0,className:`mt-[5px] size-1.5 shrink-0 rounded-full ${Q2[r.tone]}`}),f.jsxs("span",{className:"min-w-0 flex-1",children:[f.jsx("span",{className:"block text-xs leading-snug text-[#E8E8EA]",children:r.message}),r.detail?f.jsx("span",{className:"mt-1 block cursor-text select-text break-all text-[10px] leading-snug text-[#9CA3AF]","data-selectable":"",style:{fontFamily:"var(--font-mono)"},children:r.detail}):null]}),r.action?f.jsx("button",{className:"shrink-0 rounded px-1 py-0.5 text-[11px] font-medium text-white underline decoration-white/30 underline-offset-2 transition-colors hover:decoration-white focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[#D1D5DB]/60",onClick:()=>{r.action?.run(),L()},type:"button",children:r.action.label}):null,f.jsx("button",{"aria-label":"Dismiss",className:"-mr-1 flex size-5 shrink-0 items-center justify-center rounded text-[#84848C] transition-colors hover:bg-white/[0.06] hover:text-white focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[#D1D5DB]/60",onClick:L,type:"button",children:f.jsx("svg",{className:"size-2.5",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 10 10",children:f.jsx("path",{d:"M2.5 2.5 7.5 7.5M7.5 2.5 2.5 7.5",strokeLinecap:"round"})})})]})}function V2({bottom:c,left:r,onDismiss:g,toasts:o,width:d}){return f.jsx("ol",{"aria-live":"polite",className:`pointer-events-none fixed z-40 flex flex-col gap-2 transition-[bottom,left,width] duration-200 ${$n} motion-reduce:transition-none`,style:{bottom:c,left:r,width:d},children:o.map(p=>f.jsx(k2,{onDismiss:()=>g(p.id),toast:p},p.id))})}function K2({loaded:c}){return f.jsxs("div",{"aria-hidden":!0,className:`absolute inset-0 overflow-hidden bg-white transition-opacity duration-700 ${$n} ${c?"pointer-events-none opacity-0":"opacity-100"}`,children:[f.jsxs("div",{children:[f.jsx("div",{className:"mx-auto mt-6 h-12 w-[400px] max-w-[80%] rounded-full bg-neutral-200/80"}),f.jsxs("div",{className:"mx-auto mt-24 grid w-full max-w-5xl grid-cols-[1.05fr_0.95fr] items-start gap-16 px-12 max-[900px]:grid-cols-1",children:[f.jsxs("div",{children:[f.jsx("div",{className:"h-14 w-4/5 rounded-lg bg-neutral-200"}),f.jsx("div",{className:"mt-3 h-14 w-3/5 rounded-lg bg-neutral-200"}),f.jsx("div",{className:"mt-8 h-4 w-full max-w-[420px] rounded bg-neutral-200/80"}),f.jsx("div",{className:"mt-2 h-4 w-4/5 max-w-[360px] rounded bg-neutral-200/80"}),f.jsx("div",{className:"mt-10 h-12 w-44 rounded-full bg-neutral-200"})]}),f.jsx("div",{className:"h-[420px] w-60 justify-self-center rounded-[2.5rem] bg-neutral-200 max-[900px]:hidden"})]})]}),f.jsx("div",{className:"pointer-events-none absolute inset-0 overflow-hidden motion-reduce:hidden",children:f.jsx("div",{className:"absolute inset-0 -translate-x-full animate-[leglas-skeleton-sweep_1.6s_ease-in-out_infinite]",style:{background:"linear-gradient(100deg, transparent 32%, rgba(255,255,255,0.55) 50%, transparent 68%)"}})}),f.jsxs("span",{className:"absolute bottom-4 right-5 flex items-center gap-2",children:[f.jsx(T1,{"aria-label":"",size:20,state:D1,theme:"light"}),f.jsx("span",{className:"leglas-shimmer-text text-xs font-medium",children:"Loading preview…"})]})]})}function J2({onReload:c,reason:r}){return f.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-3 bg-white p-6 text-center",role:"alert",children:[f.jsxs("div",{className:"max-w-xs",children:[f.jsx("p",{className:"text-sm font-medium text-neutral-800",children:"Preview didn’t load"}),f.jsx("p",{className:"mt-1 text-xs leading-snug text-neutral-500",children:r})]}),f.jsx("button",{className:"rounded-md bg-neutral-900 px-3 py-1.5 text-xs font-medium text-white transition-colors hover:bg-neutral-700",onClick:c,type:"button",children:"Reload"})]})}function mf({id:c,size:r=14}){const g=H.useId();return c==="claude"?f.jsx("svg",{"aria-hidden":"true",fill:"#D97757",height:r,viewBox:"0 0 24 24",width:r,children:f.jsx("path",{d:"m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z"})}):c==="cursor"?f.jsx("svg",{"aria-hidden":"true",fill:"currentColor",height:r,viewBox:"0 0 24 24",width:r,children:f.jsx("path",{d:"M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"})}):c==="codex"?f.jsxs("svg",{"aria-hidden":"true",height:r,viewBox:"0 0 24 24",width:r,children:[f.jsx("defs",{children:f.jsxs("linearGradient",{id:g,x1:"0",x2:"0",y1:"0",y2:"1",children:[f.jsx("stop",{offset:"0",stopColor:"#9B96F2"}),f.jsx("stop",{offset:"0.55",stopColor:"#5E6CF6"}),f.jsx("stop",{offset:"1",stopColor:"#3B32EF"})]})}),f.jsx("path",{d:"M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457z",fill:`url(#${g})`}),f.jsx("path",{d:"M7.282 8.307a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zM12.728 14.547a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z",fill:"#F4F4FE"})]}):c==="custom"?f.jsx("svg",{"aria-hidden":"true",fill:"none",height:r,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:r,children:f.jsx("path",{d:"m5 6 6 6-6 6M13 18h6"})}):null}function $2(c){const r=document.createElement("textarea");r.value=c,r.setAttribute("readonly",""),r.style.cssText="position:fixed;top:-1000px;opacity:0",document.body.append(r),r.select();try{return document.execCommand("copy")}finally{r.remove()}}function W2(){return{clipboard:typeof navigator>"u"?void 0:navigator.clipboard,legacy:typeof document>"u"?void 0:$2}}async function bf(c,r=W2()){if(r.clipboard)try{return await r.clipboard.writeText(c),"copied"}catch{}try{if(r.legacy?.(c))return"copied"}catch{}return"blocked"}const F2=9;function I2(c){if((c.metaKey||c.ctrlKey)&&!c.altKey&&!c.shiftKey&&c.key.toLowerCase()==="k")return{kind:"search"};if(c.typing||c.metaKey||c.ctrlKey||c.altKey)return null;const{key:r}=c;if(r==="?")return{kind:"help"};if(r==="ArrowDown")return{kind:"move",delta:1};if(r==="ArrowUp")return{kind:"move",delta:-1};const g=r.length===1?r.toLowerCase():"";return g==="c"?{kind:"split"}:g==="b"?{kind:"rail"}:g==="r"?{kind:"request"}:g==="t"?{kind:"tools"}:r.length===1&&r>="1"&&r<=String(F2)?{kind:"jump",index:Number(r)-1}:null}function R1(c){return c?"⌘Cmd+K":"Ctrl+K"}function P2(c){return[{keys:["↑","↓"],label:"Move between directions"},{keys:["1","9"],join:"to",label:"Jump straight to a direction"},{keys:["C"],label:"Compare against the direction you were last on"},{keys:["R"],label:"Ask for a change to this direction"},{keys:[R1(c)],label:"Search"},{keys:["B"],label:"Collapse or open the rail"},{keys:["T"],label:"Open or close the Leglas dev tool menu"},{keys:["?"],label:"This list"},{keys:["Esc"],label:"Clear the search, or close what is open"}]}function v1(c){return c.file===void 0&&c.branch===void 0&&c.url.startsWith("/")}const tm={reachable:!0,wasDown:!1};function em(c,r){return r?{reachable:!0,wasDown:c.wasDown}:{reachable:!1,wasDown:!0}}function lm(c){const r=c.rows,g=o=>o!=null&&o!==c.active&&(r===void 0||r.includes(o));return g(c.pinned)?c.pinned:g(c.parent)?c.parent:g(c.previous)?c.previous:r?.find(o=>o!==c.active)??null}function nm(c){return!c.split||c.compare===null||c.compare===c.active?[c.active]:[c.active,c.compare]}const am=.999,um=.05;function im(c){const{gutter:r,panes:g,scaleSplit:o,stageHeight:d,stageWidth:p,viewport:S}=c,z=g>1?(p-(g-1))/g:p,j=S??p,E=z-(S!==null?r:0),L=d-(S!==null?r:0),G=o&&g>1&&p>0&&j>0?Math.max(um,Math.min(1,E/j)):1,h=G<am;return{boxHeight:L*G,boxWidth:j*G,designWidth:j,frameHeight:L,scale:G,scaling:h}}const cm="#__next-build-watcher,#nuxt-devtools-anchor,astro-dev-toolbar{display:none!important}",sm="#devtools-indicator{display:none!important}",fm=12;function om(c,r,g=[]){const o=c.replace(/\s+/g," ").trim().toLowerCase();return o.length<fm?null:`${r.join(">")} ${o} ${g.join("|")}`.trimEnd()}const rm=new Set(["LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE"]);function dm(c,r){if(!c)return[];const g=[];let o=c;for(let d=0;d<4;d+=1){const p=r(o);g.push(`${p.backgroundColor};${p.backgroundImage};${p.color}`);const S=Array.from(o.children).filter(j=>!rm.has(j.tagName??"")),z=S.length===1?S[0]:void 0;if(z===void 0)break;o=z}return g}function hm(c){const r=new Map;for(const[o,d]of Object.entries(c)){if(d===null)continue;const p=r.get(d);p?p.push(o):r.set(d,[o])}const g={};for(const o of r.values())if(!(o.length<2))for(const d of o)g[d]=o.filter(p=>p!==d);return g}function mm(c,r,g){const o=new Set(g);return c.filter(d=>!(!d.url.startsWith("/")||d.title in r||o.has(d.title))).map(d=>d.title)}const b1=24,gm=10,x1=44;function ym(c,r){const g=(o,d)=>{const p=Math.min(b1,d/2),S=Math.max(p,d-b1);return Math.max(p,Math.min(S,o))};return{x:g(c.x,r.width),y:g(c.y,r.height)}}function pm(c){return{x:c.x-x1/2,y:c.y-x1/2}}function vm(c,r,g=gm){return Math.abs(r.x-c.x)>g||Math.abs(r.y-c.y)>g}function bm(c,r){const g=c.x<r.width/2,o=c.y<r.height/2;return o&&g?{corner:"top-left"}:o?{corner:"top-right"}:g?{corner:"bottom-left"}:{corner:"bottom-right"}}const xm=3,Xe={action:6e3,plain:2600};function Sm(c,r,g=xm){return[...c.filter(d=>d.kind!==r.kind),r].slice(-g)}function Em(c,r){return c.filter(g=>g.id!==r)}const Mm=10;function U1(c,r){let g=c;for(let o=0;o<Mm;o+=1){const d=r.get(g);if(d===void 0||d===c)return g;g=d}return g}function Cm(c,r){const g=new Set(c),o=new Map,d=[];for(const p of c){const S=U1(p,r);if(S===p||!g.has(S))d.push(p);else{const z=o.get(S);z?z.push(p):o.set(S,[p])}}return d.flatMap(p=>[{title:p,depth:0},...(o.get(p)??[]).map(S=>({title:S,depth:1}))])}function Am(c,r){if(r.size===0)return[...c];let g=null;return c.filter(o=>o.depth===0?(g=o.title,!0):g===null||!r.has(g))}const S1=c=>c.trim().replace(/\s+/g," ").toLowerCase();function zm(c,r,g){const o=c.trim().replace(/\s+/g," "),d=g.get(r)??r;if(o===""||o===r)return d===r?{kind:"same"}:{kind:"reset",value:r};if(o===d)return{kind:"same"};for(const[p,S]of g)if(p!==r&&S1(S)===S1(o))return{kind:"taken",by:S};return{kind:"set",value:o}}function Tm(c,r){try{return new URL(c,r).toString()}catch{return c}}function Dm({displayName:c,preview:r,previewUrl:g,title:o}){const d=c===o?"":` (shown as ${JSON.stringify(c)})`,p=r?.note?` — ${r.note}`:"",S=r?.tags.length?` [${r.tags.join(", ")}]`:"",z=[`Leglas direction ${JSON.stringify(o)}${d}${p}${S}`];return r?.file?z.push(`Source: ${r.file}`):r?.branch?z.push(`Branch: ${r.branch}`):r&&z.push(`Route: ${r.url}`),z.push(`Preview: ${g}`),r?.basedOn&&z.push(`A variant of: ${r.basedOn}`),z.push("","Inspect this direction in full:",` npx leglas show ${JSON.stringify(o)} --json`),z.join(`
|
|
10
|
+
`)}function jm({previews:c,project:r,searchRef:g,onToggleSplit:o,onToggleHelp:d,onToggleTools:p,suspended:S=!1}){const z=_2(r),j=()=>R2(typeof window>"u"?null:window.localStorage.getItem(z),c),[E,L]=H.useState(j),R=new Map(c.map(w=>[w.title,w])),G=()=>{const w=j(),J=w.order.length?w.order:c.map(bt=>bt.title);return J.find(bt=>!w.hidden.includes(bt))??J[0]??""},[h,Z]=H.useState(G),at=typeof window<"u"&&window.self!==window.top,[rt,ht]=H.useState(()=>[G()]),[X,$]=H.useState(""),[tt,lt]=H.useState([]),W=w=>{lt(J=>J.length?[]:J),$(w)},[k,F]=H.useState(!1),[ut,P]=H.useState(null),[gt,yt]=H.useState(null),[Rt,At]=H.useState(null),[Jt,T]=H.useState(!1),[q,K]=H.useState({}),[vt,xt]=H.useState([]),[v,O]=H.useState(null),Q=H.useRef(1),V=H.useRef(null),st=H.useRef(0),ft=w=>{st.current+=1,xt(J=>Sm(J,{...w,id:st.current}))},zt=w=>xt(J=>Em(J,w)),Mt=w=>{Z(w),ht(J=>J.includes(w)?J:[...J,w])};H.useEffect(()=>{window.localStorage.setItem(z,JSON.stringify(E))},[E,z]),H.useEffect(()=>()=>{V.current&&clearTimeout(V.current)},[]);const Ct=w=>E.renames[w]??w,je=w=>R.get(w)?.url??"/",Ie=w=>{if(!X.trim())return!0;const J=X.toLowerCase(),bt=R.get(w);return Ct(w).toLowerCase().includes(J)||w.toLowerCase().includes(J)||(bt?.note??"").toLowerCase().includes(J)||(bt?.tags??[]).some(ot=>ot.toLowerCase().includes(J))},pe=c.map(w=>w.title),yl=U2(E.order,pe),Ne=X.trim()!=="",Kl=Ne?tt:E.collapsedFamilies,Oe=new Map(c.flatMap(w=>w.basedOn===void 0?[]:[[w.title,w.basedOn]])),An=Cm(yl.filter(w=>!E.hidden.includes(w)&&Ie(w)),Oe),Al=Am(An,new Set(Kl)),Re=Al.map(w=>w.title),Jl=new Map(Al.map(w=>{const J=w.depth===0?An.filter(bt=>bt.depth===1&&U1(bt.title,Oe)===w.title).length:0;return[w.title,{depth:w.depth,variants:J,folded:Kl.includes(w.title)}]})),zl=(w,J)=>w.includes(J)?w.filter(bt=>bt!==J):[...w,J],zn=w=>Ne?lt(J=>zl(J,w)):L(J=>({...J,collapsedFamilies:zl(J.collapsedFamilies,w)})),Tn=w=>R.get(w)?.basedOn??null,ve=yl.filter(w=>!E.hidden.includes(w)).length,In=(w,J)=>L(bt=>({...bt,order:H2(bt,c,w,J)})),$l=(w,J=!1)=>{L(bt=>({...bt,hidden:bt.hidden.filter(ot=>ot!==w)})),J&&Mt(w)},Ae=w=>{const J=Ct(w),bt=h===w;if(L(ot=>({...ot,hidden:[...ot.hidden,w]})),bt){const ot=yl.find(Gt=>Gt!==w&&!E.hidden.includes(Gt));ot&&Mt(ot)}ft({action:{label:"Undo",run:()=>$l(w,bt)},kind:`remove:${w}`,message:`${J} removed from the list`,tone:"info",ttl:Xe.action})},Qe=(w,J)=>L(bt=>{const ot={...bt.renames};return J===void 0?delete ot[w]:ot[w]=J,fetch("/leglas/api/renames",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({renames:ot})}).catch(()=>{}),{...bt,renames:ot}}),be=w=>{P(w),yt(null)},Dn=(w,J,bt="submit")=>{const ot=new Map(pe.map(Tt=>[Tt,Ct(Tt)])),Gt=zm(J,w,ot);if(Gt.kind==="taken"){if(bt==="submit"){yt(`${Gt.by} already goes by that name.`);return}be(null),ft({kind:`rename:${w}`,message:`Still called ${Ct(w)}. ${Gt.by} already goes by that name.`,tone:"info",ttl:Xe.plain});return}if(be(null),Gt.kind==="same")return;const se=E.renames[w];Qe(w,Gt.kind==="reset"?void 0:Gt.value),ft({action:{label:"Undo",run:()=>Qe(w,se)},kind:`rename:${w}`,message:Gt.kind==="reset"?`Name reset to ${Gt.value}`:`Renamed to ${Gt.value}`,tone:"success",ttl:Xe.action})};H.useEffect(()=>{const w=Re,J=ot=>{const Gt=ot.target,se=Gt?.tagName?.toLowerCase(),Tt=I2({key:ot.key,altKey:ot.altKey,ctrlKey:ot.ctrlKey,metaKey:ot.metaKey,shiftKey:ot.shiftKey,typing:se==="input"||se==="textarea"||se==="select"||(Gt?.isContentEditable??!1)});if(Tt&&!(S&&Tt.kind!=="help")){if(Tt.kind==="search"||Tt.kind==="request")ot.preventDefault(),L(It=>It.collapsed?{...It,collapsed:!1}:It),O({target:Tt.kind,nonce:Q.current++});else if(Tt.kind==="split")ot.preventDefault(),o?.();else if(Tt.kind==="help")ot.preventDefault(),d?.();else if(Tt.kind==="tools")ot.preventDefault(),p?.();else if(Tt.kind==="rail")L(It=>({...It,collapsed:!It.collapsed}));else if(Tt.kind==="jump"){const It=w[Tt.index];It&&(ot.preventDefault(),Mt(It))}else if(Tt.kind==="move"){ot.preventDefault();const It=w.indexOf(h),ze=Tt.delta===1?w[Math.min(w.length-1,It+1)]:w[Math.max(0,It-1)];ze&&Mt(ze)}}},bt=[window];for(const ot of Array.from(document.querySelectorAll("iframe")))try{const Gt=ot.contentDocument;Gt&&bt.push(Gt)}catch{}for(const ot of bt)ot.addEventListener("keydown",J);return()=>{for(const ot of bt)ot.removeEventListener("keydown",J)}},[h,Re.join("|"),o,d,p,S,rt.join("|"),Object.entries(q).filter(([,w])=>w).map(([w])=>w).join("|")]);const jn=(w,J)=>{const bt=Tm(je(w),window.location.origin),ot=J==="link"?bt:Dm({displayName:Ct(w),preview:R.get(w),previewUrl:bt,title:w});bf(ot).then(Gt=>{if(Gt==="blocked"){At(null),ft({detail:bt,kind:"copy",message:"Your browser blocked the clipboard. The direction is at:",tone:"danger",ttl:null});return}At({kind:J,title:w}),V.current&&clearTimeout(V.current),V.current=setTimeout(()=>At(null),1200),ft({kind:"copy",message:J==="link"?`Link to ${Ct(w)} copied`:`Reference to ${Ct(w)} copied`,tone:"success",ttl:Xe.plain})})},Pn=w=>jn(w,"link"),pl=w=>jn(w,"reference"),me=w=>{w.preventDefault();const J=w.currentTarget;J.setPointerCapture(w.pointerId);const bt=w.clientX,ot=E.width;T(!0);const Gt=Tt=>{const It=Math.min(N1,Math.max(j1,ot+Tt.clientX-bt));L(ze=>ze.width===It?ze:{...ze,width:It})},se=Tt=>{J.releasePointerCapture(Tt.pointerId),J.removeEventListener("pointermove",Gt),J.removeEventListener("pointerup",se),J.removeEventListener("pointercancel",se),T(!1)};J.addEventListener("pointermove",Gt),J.addEventListener("pointerup",se),J.addEventListener("pointercancel",se)},Pe=w=>K(J=>J[w]?J:{...J,[w]:!0}),xe=w=>K(J=>J[w]?{...J,[w]:!1}:J),Ra=at?[h]:pe.filter(w=>rt.includes(w));return{active:h,copied:Rt,copyLink:Pn,copyReference:pl,displayName:Ct,dismissToast:zt,focusing:v,hiddenCount:E.hidden.length,hide:Ae,loaded:q,markLoaded:Pe,matches:Ie,moveOption:In,nested:at,notify:ft,onHandlePointerDown:me,panes:Ra,prefs:E,previewFor:w=>R.get(w),query:X,rename:Dn,renameError:gt,renaming:ut,parentOf:Tn,resetLoaded:xe,resizing:Jt,restore:$l,rowMeta:Jl,rows:Re,toggleFamily:zn,setActive:Mt,setPrefs:L,setQuery:W,setShowHidden:F,showHidden:k,startRename:be,toasts:vt,urlFor:je,visibleCount:ve,viewports:w1}}function Nm(c,r,g,o=null){if(c==="custom"){const p=o?.trim().split(/\s+/)[0]??"";return{kind:"chosen",id:"custom",name:p===""?"Custom":p.split("/").pop()??"Custom"}}const d=c===null?void 0:r.find(p=>p.id===c);return d?.available?{kind:"chosen",id:d.id,name:d.name}:r.some(p=>p.available)?g?{kind:"manual"}:{kind:"choose"}:{kind:"none"}}function Om(c){const r=Math.max(0,Math.floor(c/1e3));return r<60?`${r}s`:`${Math.floor(r/60)}m ${String(r%60).padStart(2,"0")}s`}function wm(c,r,g){const o=c.find(S=>S.status==="running");if(r.running||o!==void 0)return{kind:"running",id:o?.id??null,name:r.name??"Your agent",activity:r.activity,startedAt:r.startedAt,title:o?.title??null};const d=c.filter(S=>S.status==="queued").length;if(d>0)return{kind:"queued",count:d,attended:g};if(c.some(S=>S.status==="picked-up"))return{kind:"picked-up"};const p=c.findLast(S=>S.status==="failed");return p!==void 0?{kind:"failed",id:p.id,title:p.title}:null}const Du=(c,r)=>fetch(c,r);async function _m(c=Du){const r=await c("/leglas/api/agents");if(!r.ok)throw new Error("Leglas refused the agent request.");return r.json()}async function Vi(c,r,g){const o=await g(c,{method:"POST",...r===null?{}:{headers:{"content-type":"application/json"},body:JSON.stringify(r)}});if(!o.ok)throw new Error("Leglas refused the agent request.");if((await o.json()).ok!==!0)throw new Error("Leglas refused the agent request.")}function Rm(c,r,g=Du){return Vi("/leglas/api/agent",r===void 0?{agent:c}:{agent:c,run:r},g)}function Um(c,r=Du){return Vi("/leglas/api/requests/cancel",c==null?null:{id:c},r)}function Hm(c,r=Du){return Vi("/leglas/api/requests/retry",{id:c},r)}function Bm(c,r=Du){return Vi("/leglas/api/requests/dismiss",{id:c},r)}const gf=[{key:"satoshi",label:"Satoshi",stack:"var(--font-satoshi)"},{key:"outfit",label:"Outfit",stack:"var(--font-outfit)"},{key:"geist",label:"Geist",stack:"var(--font-geist)"}],yf=["#34D399","#38BDF8","#818CF8","#C084FC","#FB7185","#FB923C"];function qm(c){let r=0;for(const o of c)r=r*31+o.charCodeAt(0)|0;const g=yf[Math.abs(r)%yf.length]??yf[0];return{backgroundColor:`${g}22`,color:g}}const E1=15e3,Lm=96,Ym="claude mcp add leglas -- npx leglas-mcp",Gm=`{
|
|
11
|
+
"mcpServers": {
|
|
12
|
+
"leglas": { "command": "npx", "args": ["leglas-mcp"] }
|
|
13
|
+
}
|
|
14
|
+
}`,M1={attached:!1,running:!1,name:null,activity:null,startedAt:null},Xm={agents:[],choice:null,customRun:null},H1=typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.userAgent),Qm=R1(H1);function Zm({mac:c,onClose:r}){const g=H.useRef(null),o=P2(c);return H.useEffect(()=>{const d=document.activeElement;g.current?.focus();const p=S=>{S.key==="Escape"&&(S.preventDefault(),r())};return window.addEventListener("keydown",p),()=>{window.removeEventListener("keydown",p),d?.focus?.()}},[r]),f.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-6 backdrop-blur-sm",onPointerDown:d=>{d.target===d.currentTarget&&r()},children:f.jsxs("div",{"aria-label":"Keyboard shortcuts","aria-modal":"true",className:"w-full max-w-sm rounded-lg border border-[#232328] bg-[#1E1E22] p-4 shadow-2xl focus:outline-none",ref:g,role:"dialog",tabIndex:-1,children:[f.jsx("span",{className:"block pb-3 text-[10px] uppercase tracking-[0.08em] text-[#84848C]",children:"Keyboard"}),f.jsx("dl",{className:"flex flex-col gap-2.5",children:o.map(d=>f.jsxs("div",{className:"flex items-baseline justify-between gap-4",children:[f.jsx("dt",{className:"flex shrink-0 items-baseline gap-1",children:d.keys.map((p,S)=>f.jsxs("span",{className:"flex items-baseline gap-1",children:[S>0&&d.join?f.jsx("span",{className:"text-[10px] text-[#84848C]",children:d.join}):null,f.jsx("kbd",{className:"rounded border border-[#232328] bg-[#2E2E2E]/60 px-1.5 py-0.5 font-sans text-[11px] text-[#E8E8EA]",children:p})]},p))}),f.jsx("dd",{className:"text-right text-xs leading-snug text-[#9CA3AF]",children:d.label})]},d.label))})]})})}function km({previews:c,project:r}){const g=H.useRef(null),o=H.useRef(null),d=H.useRef(null),[p,S]=H.useState(!1),z=H.useCallback(()=>d.current?.(),[]),j=H.useCallback(()=>S(m=>!m),[]),E=H.useCallback(()=>S(!1),[]),[L,R]=H.useState(!1),G=H.useCallback(()=>R(m=>!m),[]),h=jm({previews:c,project:r,searchRef:g,onToggleSplit:z,onToggleHelp:j,onToggleTools:G,suspended:p}),[Z,at]=H.useState(!1),[rt,ht]=H.useState(null),X=rt!==null,$=H.useRef(!1),[tt,lt]=H.useState("");H.useEffect(()=>{const m=o.current;m!==null&&(m.style.height="0px",m.style.height=`${Math.min(m.scrollHeight,96)}px`)},[tt,h.prefs.width]);const[W,k]=H.useState(!1),[F,ut]=H.useState(null),[P,gt]=H.useState(!1),[yt,Rt]=H.useState(null),[At,Jt]=H.useState(!1),[T,q]=H.useState(null),K=H.useRef(null),vt=H.useRef(null),xt=H.useRef(null),v=H.useRef(null),O=H.useRef(null),[Q,V]=H.useState(Lm);H.useEffect(()=>{const m=O.current;if(m===null||typeof ResizeObserver>"u")return;const B=()=>V(m.offsetHeight);B();const Y=new ResizeObserver(B);return Y.observe(m),()=>Y.disconnect()},[]);const st=H.useRef(null),[ft,zt]=H.useState({height:0,on:!1,top:0});H.useEffect(()=>{zt(m=>m.on?{...m,on:!1}:m)},[h.rows.join("|")]);const[Mt,Ct]=H.useState(null),je=H.useRef(null),Ie=H.useRef(null);H.useEffect(()=>{je.current=Mt},[Mt]),H.useEffect(()=>{if(!h.focusing)return;const m=h.focusing.target==="search"?g.current:o.current;m?.focus(),m?.select()},[h.focusing]),H.useEffect(()=>{if(!Mt)return;const m=Ie.current;if(!m)return;const B=et=>{const ct=et.clientY-m.startY;Ct(mt=>{if(!mt||mt.settling)return mt;if(!mt.started&&Math.abs(ct)<=4)return{...mt,dy:ct};mt.started||window.getSelection()?.removeAllRanges();const Ut=m.rows[mt.from];if(!Ut)return mt;const qt=Math.max(m.minDy,Math.min(m.maxDy,ct)),te=Ut.mid+ct;let Lt=0;return m.rows.forEach((ge,we)=>{we!==mt.from&&te>ge.mid&&(Lt+=1)}),{...mt,dy:qt,started:!0,to:Lt}})},Y=()=>{const et=je.current;if(!et?.started){Ct(null);return}m.suppressed=!0;let ct=0;if(et.to>et.from)for(let mt=et.from+1;mt<=et.to;mt+=1)ct+=(m.rows[mt]?.height??0)+et.gap;else for(let mt=et.to;mt<et.from;mt+=1)ct-=(m.rows[mt]?.height??0)+et.gap;Ct({...et,dy:ct,settling:!0}),window.setTimeout(()=>{h.moveOption(et.title,et.to),Ct(null),window.setTimeout(()=>{m.suppressed=!1},0)},190)};return window.addEventListener("pointermove",B),window.addEventListener("pointerup",Y),window.addEventListener("pointercancel",Y),()=>{window.removeEventListener("pointermove",B),window.removeEventListener("pointerup",Y),window.removeEventListener("pointercancel",Y)}},[Mt!==null]),H.useEffect(()=>{if(!L)return;vt.current?.focus();const m=et=>{et.key==="Escape"&&(R(!1),K.current?.focus())},B=et=>{const ct=et.target;!vt.current?.contains(ct)&&!K.current?.contains(ct)&&R(!1)},Y=()=>R(!1);return window.addEventListener("keydown",m),window.addEventListener("pointerdown",B),window.addEventListener("blur",Y),()=>{window.removeEventListener("keydown",m),window.removeEventListener("pointerdown",B),window.removeEventListener("blur",Y)}},[L]);const pe="flex h-7 w-full items-center justify-between gap-2 whitespace-nowrap rounded px-2 text-xs hover:bg-[#2E2E2E] hover:text-white disabled:cursor-not-allowed disabled:opacity-40",yl=gf.find(m=>m.key===h.prefs.font)??gf[0],Ne=h.prefs.viewport!==null,Kl=48,Oe=Mt?.started??!1,An=h.resizing||Oe||X,[Al,Re]=H.useState({}),[Jl,zl]=H.useState({}),[zn,Tn]=H.useState(!1),[ve,In]=H.useState(null),$l=H.useRef(null);H.useEffect(()=>()=>{$l.current=h.active},[h.active]),d.current=()=>{!zn&&Ae!==null&&In(Ae),(Ae!==null||zn)&&Tn(m=>!m)};const Ae=lm({active:h.active,previous:$l.current,pinned:ve,parent:h.parentOf(h.active),rows:h.rows}),Qe=nm({active:h.active,compare:Ae,split:zn}),be=Qe.length>1,Dn=[...new Set([...h.panes,...Qe])],jn=H.useRef(null),Pn=H.useRef(null),[pl,me]=H.useState({height:0,width:0}),Pe=H.useCallback(m=>{if(jn.current=m,Pn.current?.disconnect(),m===null)return;const B=m.getBoundingClientRect();me({height:B.height,width:B.width});const Y=new ResizeObserver(([et])=>{const ct=et?.contentRect;ct&&me({height:ct.height,width:ct.width})});Y.observe(m),Pn.current=Y},[]),{boxHeight:xe,boxWidth:Ra,designWidth:w,frameHeight:J,scale:bt,scaling:ot}=im({gutter:Kl,panes:Qe.length,scaleSplit:h.prefs.scaleSplit,stageHeight:pl.height,stageWidth:pl.width,viewport:h.prefs.viewport}),Gt=rt?(()=>{const{x:m,y:B}=pm(rt);return{bottom:"auto",left:m,right:"auto",top:B}})():void 0,se=m=>{if(m.button!==0)return;const B=jn.current?.getBoundingClientRect();if(!B)return;const Y=m.currentTarget;Y.setPointerCapture(m.pointerId),$.current=!1;const et={x:m.clientX,y:m.clientY};let ct=!1;const mt=qt=>{!ct&&!vm(et,{x:qt.clientX,y:qt.clientY})||(ct=!0,ht(ym({x:qt.clientX-B.left,y:qt.clientY-B.top},{width:B.width,height:B.height})))},Ut=qt=>{if(Y.hasPointerCapture(qt.pointerId)&&Y.releasePointerCapture(qt.pointerId),Y.removeEventListener("pointermove",mt),Y.removeEventListener("pointerup",Ut),Y.removeEventListener("pointercancel",Ut),ht(null),!ct)return;$.current=!0;const{corner:te}=bm({x:qt.clientX-B.left,y:qt.clientY-B.top},{width:B.width,height:B.height});h.setPrefs(Lt=>({...Lt,corner:te})),R(!1)};Y.addEventListener("pointermove",mt),Y.addEventListener("pointerup",Ut),Y.addEventListener("pointercancel",Ut)},[Tt,It]=H.useState(tm),ze=new Set(c.filter(v1).map(m=>m.title)),ju=ze.size>0,[Wl,Nn]=H.useState({requests:[],agent:M1}),[vl,Nu]=H.useState(Xm),[Ou,Ua]=H.useReducer(m=>m+1,0);H.useEffect(()=>{let m=!1;return _m().then(B=>{m||Nu(Y=>JSON.stringify(Y)===JSON.stringify(B)?Y:B)}).catch(()=>{}),()=>{m=!0}},[Ou]);const[Ha,Fl]=H.useReducer(m=>m+1,0);H.useEffect(()=>{let m=!1;const B=()=>fetch("/leglas/api/requests").then(et=>et.json()).then(et=>{if(m)return;const ct={requests:et.requests,agent:et.agent??M1};Nn(mt=>JSON.stringify(mt)===JSON.stringify(ct)?mt:ct)}).catch(()=>{}),Y=window.setInterval(()=>{B()},2e3);return B(),()=>{m=!0,window.clearInterval(Y)}},[Ha]);const $t=Nm(vl.choice,vl.agents,h.prefs.agentPickerDismissed,vl.customRun),wu=$t.kind==="chosen"&&vl.agents.some(m=>m.id===$t.id&&m.auth==="signed-out"),Nt=wm(Wl.requests,Wl.agent,$t.kind==="chosen"||Wl.agent.attached),ee=Nt?.kind==="running"?Nt.startedAt:null,[Te,Tl]=H.useState(()=>Date.now());H.useEffect(()=>{if(ee===null)return;Tl(Date.now());const m=window.setInterval(()=>Tl(Date.now()),1e3);return()=>window.clearInterval(m)},[ee]),H.useEffect(()=>{$t.kind==="none"&>(!1)},[$t.kind]),H.useEffect(()=>{P||(Rt(null),Jt(!1))},[P]),H.useEffect(()=>{if(!P)return;xt.current?.focus();const m=et=>{et.key==="Escape"&&(gt(!1),v.current?.focus())},B=et=>{const ct=et.target;!xt.current?.contains(ct)&&!v.current?.contains(ct)&>(!1)},Y=()=>gt(!1);return window.addEventListener("keydown",m),window.addEventListener("pointerdown",B),window.addEventListener("blur",Y),()=>{window.removeEventListener("keydown",m),window.removeEventListener("pointerdown",B),window.removeEventListener("blur",Y)}},[P]);const On=(m,B)=>{F===null&&(ut(m),Rm(m,B).then(()=>{Ua(),gt(!1)}).catch(()=>{h.notify({kind:"agent-choice",message:m==="custom"?"That command could not be saved. Nothing changed.":"That agent could not be selected. No run started.",tone:"danger",ttl:Xe.action})}).finally(()=>ut(null)))},Ki=m=>{T===null&&(q("cancel"),Um(m).then(()=>Fl()).catch(()=>{h.notify({kind:"agent-cancel",message:"Leglas could not stop that run.",tone:"danger",ttl:Xe.action})}).finally(()=>q(null)))},Ji=m=>{T===null&&(q("retry"),Hm(m).then(()=>Fl()).catch(()=>{h.notify({kind:"agent-retry",message:"That change could not be retried.",tone:"danger",ttl:Xe.action})}).finally(()=>q(null)))},Ba=(m,B)=>{bf(B).then(Y=>{h.notify({kind:"agent-connect",message:Y==="copied"?`${m} copied.`:"Your browser blocked the clipboard. The README carries the same snippet.",tone:Y==="copied"?"success":"danger",ttl:Xe.plain})})},wn=m=>{T===null&&(q("dismiss"),Bm(m).then(()=>Fl()).catch(()=>{h.notify({kind:"agent-dismiss",message:"That change could not be dismissed.",tone:"danger",ttl:Xe.action})}).finally(()=>q(null)))},ta=H.useRef(h.loaded);ta.current=h.loaded,H.useEffect(()=>{let m=!1;const B=()=>fetch("/leglas/api/health").then(et=>et.json()).then(({reachable:et})=>{m||It(ct=>em(ct,et))}).catch(()=>{}),Y=window.setInterval(B,3e3);return B(),()=>{m=!0,window.clearInterval(Y)}},[]),H.useEffect(()=>{!Tt.reachable||!Tt.wasDown||(Re(m=>{const B={...m};for(const Y of Object.keys(B))ze.has(Y)&&(B[Y]=!1);return B}),zl(m=>{const B={...m};for(const Y of Object.keys(ta.current))ze.has(Y)&&(B[Y]=(B[Y]??0)+1);return B}),It(m=>({...m,wasDown:!1})))},[Tt.reachable,Tt.wasDown]);const[bl,xl]=H.useState({}),rl=hm(bl),Ze=(m,B)=>{let Y=null;try{Y=m.contentDocument}catch{return}if(!Y?.head)return;const et="leglas-hide-dev-overlays",ct=(mt,Ut,qt)=>{const te=mt.getElementById(et);if(!B){te?.remove();return}if(te)return;const Lt=Y.createElement("style");Lt.id=et,Lt.textContent=qt,Ut.appendChild(Lt)};ct(Y,Y.head,cm);for(const mt of Y.querySelectorAll("nextjs-portal")){const Ut=mt.shadowRoot;Ut&&ct(Ut,Ut,sm)}};H.useEffect(()=>{for(const m of document.querySelectorAll("iframe"))Ze(m,!h.prefs.showDevOverlays)});const ue=(m,B)=>{let Y=null;try{Y=B.contentDocument}catch{return}if(!Y?.body)return;const et=[...Y.body.querySelectorAll("*")].slice(0,400).map(qt=>qt.tagName),ct=Y.defaultView,mt=ct?dm(Y.body,qt=>{const te=ct.getComputedStyle(qt);return{backgroundColor:te.backgroundColor,backgroundImage:te.backgroundImage,color:te.color}}):[],Ut=om(Y.body.innerText??"",et,mt);xl(qt=>qt[m]===Ut?qt:{...qt,[m]:Ut})},_u=Tt.reachable?c:c.filter(m=>!v1(m)),dl=mm(_u,bl,Dn)[0]??null,Dl=m=>(Tt.reachable||!ze.has(m))&&!(m in bl)&&h.urlFor(m).startsWith("/");H.useEffect(()=>{if(dl===null)return;const m=window.setTimeout(()=>{xl(B=>dl in B?B:{...B,[dl]:null})},E1);return()=>clearTimeout(m)},[dl]);const Il=(m,B)=>{Ze(B,!h.prefs.showDevOverlays),window.setTimeout(()=>{Ze(B,!h.prefs.showDevOverlays);let Y=!1;try{Y=B.contentDocument!=null}catch{Y=!1}Y?ue(m,B):xl(et=>({...et,[m]:null}))},600)};H.useEffect(()=>{if(h.loaded[h.active]||Al[h.active])return;const m=Tt.reachable||!ze.has(h.active)?E1:0,B=setTimeout(()=>Re(Y=>({...Y,[h.active]:!0})),m);return()=>clearTimeout(B)},[h.active,h.loaded,Al,Jl,Tt.reachable]);const $i=m=>{Re(B=>({...B,[m]:!1})),h.resetLoaded(m),zl(B=>({...B,[m]:(B[m]??0)+1}))},Ru=(m,B)=>Y=>{if(Y.button!==0||h.renaming||h.query.trim()||h.rows.length<2||Y.target.closest("button, [data-selectable]"))return;const et=st.current,ct=et?.parentElement;if(!et||!ct)return;const mt=[...et.querySelectorAll("li[data-title]")],Ut=mt.map(we=>({height:we.offsetHeight,mid:we.offsetTop+we.offsetHeight/2,title:we.dataset.title??"",top:we.offsetTop})),qt=ct.getBoundingClientRect(),te=mt[B]?.getBoundingClientRect();Ie.current={maxDy:te?qt.bottom-te.bottom:0,minDy:te?qt.top-te.top:0,rows:Ut,startY:Y.clientY,suppressed:!1};const Lt=Ut[0],ge=Ut[1];Ct({dy:0,from:B,gap:Lt&&ge?ge.top-Lt.top-Lt.height:0,height:Ut[B]?.height??0,title:m,settling:!1,started:!1,to:B})},Uu=m=>{if(!Mt?.started)return 0;const B=Mt.height+Mt.gap;return m<Mt.from&&m>=Mt.to?B:m>Mt.from&&m<=Mt.to?-B:0},Wi=m=>{window.open(h.urlFor(m),"_blank","noopener,noreferrer")},ea=(m,B)=>{const Y=m===h.active,et=h.previewFor(m),ct=Oe&&Mt?.title===m,mt=Oe&&!ct?Uu(B):0,Ut=h.rowMeta.get(m),qt=Ut?.depth===1,te=Ut?.variants??0,Lt=Ut?.folded??!1,ge=h.renaming===m,we=Oe||ge?"":"group-hover:hidden group-has-[button:focus-visible]:hidden";return f.jsxs("li",{className:`group relative ${ct?`z-30 rounded-md bg-white/[0.06] shadow-2xl ${Mt?.settling?`transition-transform duration-200 ${$n} motion-reduce:transition-none`:""}`:"z-10"} ${Oe&&!ct?`transition-transform duration-200 ${$n} motion-reduce:transition-none`:""}`,"data-title":m,onPointerEnter:le=>zt({height:le.currentTarget.offsetHeight,on:!0,top:le.currentTarget.offsetTop}),style:ct?{transform:`translateY(${Mt?.dy??0}px)`}:mt?{transform:`translateY(${mt}px)`}:void 0,children:[f.jsx("div",{"aria-pressed":Y,className:`relative flex w-full cursor-grab items-start gap-2 rounded-md py-2 pr-3 text-left transition-colors active:cursor-grabbing ${qt?"pl-11":"pl-3"} ${Y?"bg-[#2E2E2E] ring-1 ring-inset ring-[#D1D5DB]/40":""}`,onClick:()=>{if(!ge){if(Ie.current?.suppressed){Ie.current.suppressed=!1;return}h.setActive(m)}},onDoubleClick:le=>{ge||le.target.closest("button")||(window.getSelection()?.removeAllRanges(),Wi(m))},onKeyDown:le=>{(le.key==="Enter"||le.key===" ")&&(le.preventDefault(),h.setActive(m))},onPointerDown:Ru(m,B),role:"button",tabIndex:0,children:f.jsxs("span",{className:"min-w-0 flex-1",children:[f.jsxs("span",{className:`flex items-center gap-2 ${Oe||ge?"":Y?"group-hover:pr-[72px] group-has-[button:focus-visible]:pr-[72px]":"group-hover:pr-[98px] group-has-[button:focus-visible]:pr-[98px]"}`,children:[te>0&&f.jsx(Ge,{label:Lt?`Show ${te} variant${te===1?"":"s"}`:"Fold the variants away",children:f.jsxs("button",{"aria-expanded":!Lt,"aria-label":`${Lt?"Show":"Hide"} the variants of ${h.displayName(m)}`,className:"-ml-1 flex shrink-0 items-center gap-1 rounded px-0.5 py-1 text-[#84848C] transition-colors hover:text-[#E8EAED]",onClick:le=>{le.stopPropagation(),h.toggleFamily(m)},onPointerDown:le=>le.stopPropagation(),type:"button",children:[f.jsx("svg",{className:`size-2.5 transition-transform duration-150 motion-reduce:transition-none ${Lt?"-rotate-90":""}`,fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 10 10",children:f.jsx("path",{d:"M2 3.5 5 6.5 8 3.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Lt?f.jsx("span",{className:"text-[10px] leading-none tabular-nums",children:te}):null]})}),ge?f.jsx(X2,{error:h.renameError,initial:h.displayName(m),label:`Rename the ${h.displayName(m)} direction`,onCancel:()=>h.startRename(null),onCommit:(le,Pl)=>h.rename(m,le,Pl)}):f.jsx("span",{className:`min-w-0 flex-1 text-sm font-medium leading-5 transition-colors duration-150 ${Y?"text-white":"text-[#D1D5DB] group-hover:text-[#E8EAED]"}`,children:f.jsx("span",{className:`block w-fit min-w-[70%] max-w-full cursor-text select-text truncate -my-1 py-1 pr-2 ${te>0?"":"-ml-3 pl-3"}`,onDoubleClick:le=>{le.stopPropagation(),window.getSelection()?.removeAllRanges(),h.startRename(m)},children:h.displayName(m)})}),be&&m===Ae?f.jsx("span",{className:`shrink-0 rounded bg-white/[0.08] px-1.5 py-0.5 text-[10px] font-medium leading-normal text-[#E8E8EA] ${we}`,children:"Comparing"}):rl[m]?f.jsx(Ge,{label:`Renders the same page as ${rl[m]?.join(", ")}. Check the URL.`,children:f.jsxs("span",{className:`shrink-0 rounded bg-amber-400/10 px-1.5 py-0.5 text-[10px] font-medium leading-normal text-amber-300/90 ${we}`,children:["Same as ",rl[m]?.length===1?rl[m]?.[0]:`${rl[m]?.length} others`]})}):Dl(m)?f.jsxs("span",{className:`flex h-5 shrink-0 items-center gap-1 rounded bg-white/[0.04] pl-0.5 pr-1.5 text-[10px] font-medium leading-none text-[#84848C]/80 ${we}`,children:[f.jsx(T1,{"aria-label":"Checking for duplicates",size:20,state:D1,theme:"dark"}),"Cooking"]}):et?.tags[0]&&f.jsx("span",{className:`shrink-0 rounded px-1.5 py-0.5 text-[10px] font-medium leading-normal ${we}`,style:qm(et.tags[0]),children:et.tags[0]})]}),f.jsx("span",{className:`mt-0.5 line-clamp-2 block cursor-text select-text text-xs leading-snug transition-colors ${ge&&h.renameError?"text-amber-300/90":Y?"text-[#D1D5DB]":"text-[#84848C]"}`,"data-selectable":"",id:ge&&h.renameError?"leglas-rename-error":void 0,children:ge&&h.renameError?h.renameError:et?.note??et?.url})]})}),f.jsxs("div",{className:`pointer-events-none absolute right-2 top-1.5 flex items-center gap-0.5 opacity-0 transition-opacity duration-150 ${ge?"invisible":""} ${Oe?"":"group-hover:pointer-events-auto group-hover:opacity-100 group-has-[button:focus-visible]:pointer-events-auto group-has-[button:focus-visible]:opacity-100"}`,children:[m!==h.active&&f.jsx(Ge,{label:be&&m===Ae?"Stop comparing":`Compare with ${h.displayName(h.active)}`,children:f.jsx("button",{"aria-label":be&&m===Ae?`Stop comparing ${h.displayName(m)}`:`Compare ${h.displayName(m)} with ${h.displayName(h.active)}`,"aria-pressed":be&&m===Ae,className:`${Tu} ${be&&m===Ae?"text-white":""}`,onClick:le=>{if(le.stopPropagation(),be&&m===Ae){Tn(!1);return}In(m),Tn(!0)},type:"button",children:f.jsx(fl,{d:sl.split})})}),f.jsx(Ge,{label:h.copied?.kind==="link"&&h.copied.title===m?"Copied":"Copy preview link",children:f.jsx("button",{"aria-label":`Copy the preview link to the ${h.displayName(m)} direction`,className:Tu,onClick:()=>h.copyLink(m),type:"button",children:h.copied?.kind==="link"&&h.copied.title===m?f.jsx("span",{className:"text-[10px] text-emerald-300",children:"✓"}):f.jsx(fl,{d:sl.link})})}),f.jsx(Ge,{label:h.copied?.kind==="reference"&&h.copied.title===m?"Copied":f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"block",children:"Copy a detailed reference."}),f.jsx("span",{className:"block",children:"For a teammate or an agent."})]}),children:f.jsx("button",{"aria-label":`Copy a detailed reference to the ${h.displayName(m)} direction`,className:Tu,onClick:()=>h.copyReference(m),type:"button",children:h.copied?.kind==="reference"&&h.copied.title===m?f.jsx("span",{className:"text-[10px] text-emerald-300",children:"✓"}):f.jsx(fl,{d:sl.copy,size:12})})}),f.jsx(Ge,{label:"Rename",children:f.jsx("button",{"aria-label":`Rename the ${h.displayName(m)} direction`,className:Tu,onClick:()=>h.startRename(m),type:"button",children:f.jsx(fl,{d:sl.pencil,size:12})})}),f.jsx(Ge,{label:"Remove from list",children:f.jsx("button",{"aria-label":`Remove the ${h.displayName(m)} direction from the list`,className:Tu,onClick:()=>h.hide(m),type:"button",children:f.jsx(fl,{d:sl.trash,size:12})})})]})]},m)};return f.jsxs("main",{className:`flex h-dvh bg-[#1C1C20] text-white antialiased selection:bg-[#E6E8EC] selection:text-[#17181B] ${h.resizing?"cursor-col-resize":""} ${An?"select-none":""}`,"data-leglas-shell":"",style:{fontFamily:yl.stack},children:[f.jsxs("aside",{className:`relative shrink-0 overflow-hidden border-r border-[#232328] ${h.prefs.collapsed?"":"shadow-2xl"} ${h.resizing?"":`transition-[width] duration-200 ${$n} motion-reduce:transition-none`}`,style:{width:h.prefs.collapsed?48:h.prefs.width},children:[f.jsxs("div",{className:`flex h-full flex-col transition-opacity duration-150 ${h.prefs.collapsed?"pointer-events-none opacity-0":"opacity-100"}`,inert:h.prefs.collapsed,style:{width:h.prefs.width},children:[f.jsxs("div",{className:"z-10 flex shrink-0 items-center justify-between gap-2 border-b border-[#232328] bg-[#1E1E22] px-2.5 py-2.5",children:[f.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[f.jsx(ki,{size:28}),f.jsx(G2,{height:18})]}),f.jsx(Ge,{label:f.jsxs(f.Fragment,{children:["Collapse panel ",f.jsx("kbd",{className:"ml-1 text-[#9CA3AF]",children:"["})]}),side:"right",children:f.jsx("button",{"aria-label":"Collapse the directions panel",className:"flex h-6 w-6 shrink-0 items-center justify-center rounded p-1 text-[#9CA3AF] transition-colors hover:bg-[#2E2E2E] hover:text-white",onClick:()=>h.setPrefs(m=>({...m,collapsed:!0})),type:"button",children:f.jsx(fl,{d:sl.sidebar,size:16})})})]}),f.jsx("div",{className:"px-3 pb-1 pt-2",children:f.jsxs("div",{className:"relative",children:[f.jsx("span",{className:"pointer-events-none absolute left-2 top-1/2 -translate-y-1/2 text-[#D1D5DB]",children:f.jsx(fl,{d:sl.search})}),f.jsx("kbd",{className:`pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 rounded border border-[#232328] bg-[#2E2E2E]/60 px-1.5 py-0.5 font-sans text-[10px] leading-none tracking-wide text-[#84848C] transition-opacity duration-150 motion-reduce:transition-none ${h.query||Z?"opacity-0":"opacity-100"}`,children:Qm}),f.jsx("input",{"aria-label":"Search directions",className:"w-full rounded-md border border-[#232328] bg-[#2E2E2E]/40 py-1.5 pl-7 pr-16 text-xs text-white placeholder:text-[#E8EAED] focus:outline-none focus:ring-1 focus:ring-[#D1D5DB]/60",onBlur:()=>at(!1),onFocus:()=>at(!0),onChange:m=>h.setQuery(m.target.value),onKeyDown:m=>{m.key==="Escape"&&(h.query?h.setQuery(""):m.currentTarget.blur())},placeholder:"Search directions…",ref:g,type:"text",value:h.query})]})}),ju&&!Tt.reachable&&f.jsxs("div",{className:"mx-3 mb-1 mt-1 rounded-md border border-amber-400/20 bg-amber-400/[0.07] px-2.5 py-2",children:[f.jsx("p",{className:"text-xs font-medium text-amber-300/90",children:"Dev server not responding"}),f.jsx("p",{className:"mt-0.5 text-[11px] leading-snug text-[#9CA3AF]",children:"Anything on screen is from before it stopped. Previews return on their own once it is back."})]}),f.jsxs("div",{className:"flex-1 overflow-y-auto px-3 py-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[f.jsxs("ul",{className:"relative flex flex-col gap-1",onPointerLeave:()=>zt(m=>({...m,on:!1})),ref:st,children:[f.jsx("div",{"aria-hidden":!0,className:`pointer-events-none absolute left-0 right-0 z-0 rounded-md bg-white/[0.06] transition-[transform,height,opacity] duration-150 ${$n} motion-reduce:transition-none`,style:{height:ft.height,opacity:ft.on&&!Oe?1:0,transform:`translateY(${ft.top}px)`}}),h.rows.map((m,B)=>ea(m,B))]}),h.rows.length===0&&f.jsx("div",{className:"px-3 py-2",children:h.query.trim()?f.jsxs(f.Fragment,{children:[f.jsxs("p",{className:"text-xs text-[#9CA3AF]",children:["Nothing matches “",h.query,"”."]}),f.jsx("button",{className:"mt-1 rounded text-xs text-[#84848C] underline underline-offset-2 transition-colors hover:text-[#D1D5DB]",onClick:()=>h.setQuery(""),type:"button",children:"Clear search"})]}):f.jsx("p",{className:"text-xs leading-snug text-[#9CA3AF]",children:h.visibleCount===0&&h.hiddenCount>0?"Every direction is removed. Restore one below.":"No directions yet. Add them to leglas.config.ts."})}),h.hiddenCount>0&&f.jsxs("button",{className:"mt-1 rounded px-3 py-1.5 text-left text-[11px] text-[#84848C] transition-colors hover:text-[#D1D5DB]",onClick:()=>h.setShowHidden(m=>!m),type:"button",children:[h.showHidden?"Hide":"Show"," removed (",h.hiddenCount,")"]}),h.showHidden&&f.jsx("ul",{className:"relative",children:h.prefs.hidden.filter(h.matches).map(m=>f.jsx("li",{className:"group relative",children:f.jsxs("div",{className:"flex items-center justify-between rounded-md px-3 py-2 transition-colors group-hover:bg-white/[0.04]",children:[f.jsx("span",{className:"truncate text-sm font-medium text-[#9CA3AF]",children:h.displayName(m)}),f.jsx("button",{className:"rounded text-[11px] text-[#9CA3AF] transition-colors hover:text-white",onClick:()=>{h.restore(m),h.notify({kind:`remove:${m}`,message:`${h.displayName(m)} is back in the list`,tone:"success",ttl:Xe.plain})},type:"button",children:"Restore"})]})},m))})]}),f.jsxs("div",{ref:O,children:[Nt!==null&&f.jsx("div",{className:"mx-3 mt-2 rounded-lg border border-[#232328] bg-[#1E1E22] px-2.5 py-2 shadow-lg",role:"status",children:f.jsxs("div",{className:"flex items-center gap-2",children:[Nt.kind==="failed"?f.jsxs("svg",{"aria-hidden":"true",className:"shrink-0 text-amber-400/90",fill:"none",height:"14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 16 16",width:"14",children:[f.jsx("path",{d:"M8 2.6 14.6 13.4H1.4Z"}),f.jsx("path",{d:"M8 6.8v2.7"}),f.jsx("path",{d:"M8 11.6h.01"})]}):Nt.kind==="queued"?f.jsx("span",{"aria-hidden":"true",className:"flex size-3.5 shrink-0 items-center justify-center",children:f.jsx("span",{className:"size-1.5 animate-pulse rounded-full bg-[#84848C] motion-reduce:animate-none"})}):f.jsx("span",{"aria-hidden":"true",className:"size-3.5 shrink-0 animate-spin rounded-full border-[1.5px] border-white/15 border-t-white/70 motion-reduce:animate-none"}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"truncate text-[11px] font-medium leading-tight text-[#D1D5DB]",children:Nt.kind==="running"?`${Nt.name} is on it`:Nt.kind==="queued"?Nt.count===1?"Change queued":`${Nt.count} changes queued`:Nt.kind==="picked-up"?"Your agent is on it":"That change failed"}),Nt.kind==="running"&&(Nt.activity??Nt.title)!==null&&f.jsx("p",{className:"mt-0.5 truncate text-[10px] leading-tight text-[#84848C]",children:Nt.activity??Nt.title})||Nt.kind==="queued"&&f.jsx("p",{className:"mt-0.5 truncate text-[10px] leading-tight text-[#84848C]",children:Nt.attended?"your agent picks it up next":$t.kind==="manual"?"waiting for your own agent":"pick who runs your changes"})||Nt.kind==="failed"&&f.jsx("p",{className:"mt-0.5 truncate text-[10px] leading-tight text-[#84848C]",children:Nt.title})]}),Nt.kind==="running"&&ee!==null&&f.jsx("span",{className:"shrink-0 text-[10px] tabular-nums text-[#84848C]",children:Om(Te-ee)}),Nt.kind==="running"&&f.jsx(Ge,{label:"Stop this run",children:f.jsx("button",{"aria-label":"Stop this run",className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-[#84848C] transition-[background-color,color,transform] duration-150 hover:bg-white/[0.06] hover:text-white active:scale-[0.96] disabled:cursor-wait disabled:opacity-40 motion-reduce:transition-none",disabled:T!==null,onClick:()=>Ki(Nt.id),type:"button",children:T==="cancel"?f.jsx("span",{className:"size-3 animate-spin rounded-full border-[1.5px] border-current border-t-transparent motion-reduce:animate-none"}):f.jsx("span",{className:"block size-2 rounded-[2px] bg-current"})})}),Nt.kind==="failed"&&f.jsxs("span",{className:"flex shrink-0 items-center",children:[f.jsx(Ge,{label:"Try it again",children:f.jsx("button",{"aria-label":"Retry this change",className:"flex h-6 w-6 items-center justify-center rounded-md text-[#84848C] transition-[background-color,color,transform] duration-150 hover:bg-white/[0.06] hover:text-white active:scale-[0.96] disabled:cursor-wait disabled:opacity-40 motion-reduce:transition-none",disabled:T!==null,onClick:()=>Ji(Nt.id),type:"button",children:T==="retry"?f.jsx("span",{className:"size-3 animate-spin rounded-full border-[1.5px] border-current border-t-transparent motion-reduce:animate-none"}):f.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.75",viewBox:"0 0 16 16",width:"13",children:[f.jsx("path",{d:"M13.5 8a5.5 5.5 0 1 1-1.6-3.9"}),f.jsx("path",{d:"M13.7 1.8v2.7H11"})]})})}),f.jsx(Ge,{label:"Let it go",children:f.jsx("button",{"aria-label":"Dismiss this failed change",className:"flex h-6 w-6 items-center justify-center rounded-md text-[#84848C] transition-[background-color,color,transform] duration-150 hover:bg-white/[0.06] hover:text-white active:scale-[0.96] disabled:cursor-wait disabled:opacity-40 motion-reduce:transition-none",disabled:T!==null,onClick:()=>wn(Nt.id),type:"button",children:T==="dismiss"?f.jsx("span",{className:"size-3 animate-spin rounded-full border-[1.5px] border-current border-t-transparent motion-reduce:animate-none"}):f.jsx("svg",{"aria-hidden":"true",fill:"none",height:"13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.75",viewBox:"0 0 16 16",width:"13",children:f.jsx("path",{d:"m4 4 8 8M12 4l-8 8"})})})})]})]})}),f.jsx("form",{className:"relative px-3 pb-2.5 pt-2",onSubmit:m=>{m.preventDefault();const B=tt.trim(),Y=h.active;if(!B||!Y||W)return;const et=h.displayName(Y);k(!0),fetch("/leglas/api/request",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({title:Y,intent:B})}).then(ct=>ct.json()).then(ct=>{if(!ct.ok||!ct.prompt)throw new Error("refused");lt(""),k(!1),Fl(),h.notify({kind:"request",message:`Asked for a change to ${et}.`,tone:"success",ttl:Xe.plain}),bf(ct.prompt).then(mt=>{h.notify({kind:"request",message:mt==="copied"?`Asked for a change to ${et}. Prompt copied.`:`Asked for a change to ${et}. Your browser blocked the clipboard, so read it with npx leglas requests.`,tone:"success",ttl:Xe.plain})})}).catch(()=>{k(!1),h.notify({kind:"request",message:`That request never reached Leglas. ${et} is unchanged.`,tone:"danger",ttl:Xe.action})})},children:f.jsxs("div",{className:"rounded-md border border-[#232328] bg-[#2E2E2E]/40 transition-colors focus-within:border-[#D1D5DB]/40 focus-within:ring-1 focus-within:ring-[#D1D5DB]/40",children:[f.jsx("textarea",{"aria-label":h.active?`Ask your agent to change the ${h.displayName(h.active)} direction`:"Ask your agent to change a direction",className:"block w-full resize-none overflow-y-auto bg-transparent px-2.5 pb-1 pt-2 text-xs leading-4 text-white placeholder:text-[#84848C] focus:outline-none disabled:cursor-not-allowed disabled:opacity-60",disabled:W||!h.active,onChange:m=>lt(m.target.value),onKeyDown:m=>{m.key==="Enter"&&!m.shiftKey&&(m.preventDefault(),m.currentTarget.form?.requestSubmit())},placeholder:h.active?`Change ${h.displayName(h.active)}…`:"No direction to change yet",ref:o,rows:1,value:tt}),f.jsxs("div",{className:"flex items-center justify-end gap-1.5 p-1",children:[$t.kind==="none"?f.jsxs("span",{className:"mr-auto min-w-0 truncate px-1.5 text-[10px] leading-snug text-[#84848C]",children:["Enter queues it for ",f.jsx("span",{className:"font-medium",children:"npx leglas requests"})]}):f.jsxs("div",{className:"relative flex min-w-0 items-center",children:[f.jsx("div",{"aria-hidden":!P,"aria-label":"Who runs your changes",className:`absolute bottom-full right-0 z-10 mb-1.5 w-max min-w-36 origin-bottom-right rounded-lg border border-[#232328] bg-[#1E1E22] p-1 text-[#D1D5DB] shadow-2xl transition-[opacity,transform] duration-150 ease-[cubic-bezier(0.165,0.84,0.44,1)] focus:outline-none motion-reduce:transition-none ${P?"translate-y-0 scale-100 opacity-100":"pointer-events-none translate-y-1 scale-95 opacity-0"}`,inert:!P,ref:xt,role:"dialog",tabIndex:-1,children:yt!==null?f.jsxs("div",{className:"w-60 p-1",children:[f.jsx("label",{className:"block px-1 pb-1 text-[10px] leading-snug text-[#84848C]",htmlFor:"leglas-custom-run",children:"The command that runs your agent."}),f.jsx("input",{className:"w-full rounded border border-[#232328] bg-[#2E2E2E]/40 px-2 py-1 font-mono text-[11px] text-white transition-colors placeholder:text-[#84848C] focus:border-[#D1D5DB]/40 focus:outline-none",id:"leglas-custom-run",onChange:m=>Rt(m.target.value),onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),yt.trim()!==""&&F===null&&On("custom",yt.trim()))},placeholder:"npx my-agent",value:yt}),f.jsxs("p",{className:"px-1 pt-1 text-[9px] leading-snug text-[#84848C]/80",children:["Your request is added at the end. Put"," ",f.jsx("span",{className:"font-mono",children:"{prompt}"})," where it should go instead, if needed."]}),f.jsxs("div",{className:"flex items-center justify-between pt-1.5",children:[f.jsx("button",{className:"rounded px-1 text-[11px] text-[#84848C] transition-colors hover:text-[#D1D5DB]",onClick:()=>Rt(null),type:"button",children:"Back"}),f.jsx("button",{className:"rounded px-1.5 py-0.5 text-[11px] text-[#D1D5DB] transition-colors hover:bg-white/[0.06] hover:text-white disabled:cursor-not-allowed disabled:opacity-40",disabled:yt.trim()===""||F!==null,onClick:()=>On("custom",yt.trim()),type:"button",children:F==="custom"?"Saving…":"Save"})]})]}):At?f.jsxs("div",{className:"w-64 p-1",children:[f.jsx("p",{className:"px-1 pb-1 text-[10px] leading-snug text-[#84848C]",children:"Give your agent the Leglas tools. Copy the one your agent understands:"}),f.jsxs("button",{className:pe,onClick:()=>Ba("The Claude Code command",Ym),type:"button",children:[f.jsx("span",{className:"truncate",children:"Claude Code command"}),f.jsx(fl,{d:sl.copy,size:12})]}),f.jsxs("button",{className:pe,onClick:()=>Ba("The mcp.json entry",Gm),type:"button",children:[f.jsx("span",{className:"truncate",children:"mcp.json for everything else"}),f.jsx(fl,{d:sl.copy,size:12})]}),f.jsx("p",{className:"px-1 pt-1 text-[9px] leading-snug text-[#84848C]/80",children:"Then ask it to handle your Leglas change requests. While it works, the built-in runner stays out of its way."}),f.jsx("div",{className:"flex items-center justify-between pt-1.5",children:f.jsx("button",{className:"rounded px-1 text-[11px] text-[#84848C] transition-colors hover:text-[#D1D5DB]",onClick:()=>Jt(!1),type:"button",children:"Back"})})]}):f.jsxs(f.Fragment,{children:[vl.agents.filter(m=>m.available).map(m=>{const B=$t.kind==="chosen"&&m.id===$t.id;return f.jsxs("button",{className:pe,disabled:F!==null,onClick:()=>B?gt(!1):On(m.id),type:"button",children:[f.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[f.jsx(mf,{id:m.id}),f.jsx("span",{className:"truncate",children:m.name})]}),F===m.id?f.jsx("span",{"aria-label":"selecting",className:"size-3 animate-spin rounded-full border-[1.5px] border-current border-t-transparent motion-reduce:animate-none"}):m.auth==="signed-out"?f.jsx("span",{className:"text-[10px] text-amber-400/80",children:"signed out"}):B&&f.jsx("span",{"aria-label":"current choice",children:"✓"})]},m.id)}),f.jsxs("button",{className:`${pe} ${$t.kind==="chosen"&&$t.id==="custom"?"":"text-[#84848C]"}`,disabled:F!==null,onClick:()=>Rt(vl.customRun??""),type:"button",children:[f.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[f.jsx(mf,{id:"custom"}),f.jsx("span",{className:"truncate",children:$t.kind==="chosen"&&$t.id==="custom"?$t.name:"Add your own…"})]}),$t.kind==="chosen"&&$t.id==="custom"&&f.jsx("span",{"aria-label":"current choice",children:"✓"})]}),f.jsx("button",{className:`${pe} text-[#84848C]`,onClick:()=>Jt(!0),type:"button",children:f.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[f.jsx(fl,{d:sl.link,size:14}),f.jsx("span",{className:"truncate",children:"Connect another agent…"})]})}),vl.choice===null&&f.jsxs("button",{className:`${pe} text-[#84848C]`,onClick:()=>{h.setPrefs(m=>({...m,agentPickerDismissed:!0})),gt(!1)},type:"button",children:[f.jsx("span",{children:"I'll run my own"}),$t.kind==="manual"&&f.jsx("span",{"aria-label":"current choice",children:"✓"})]}),vl.choice===null&&f.jsx("p",{className:"mt-1 max-w-48 border-t border-[#232328] px-1 pb-0.5 pt-1.5 text-[10px] leading-snug text-[#84848C]",children:"Runs in this project with write access, like in your terminal."})]})}),f.jsxs("button",{"aria-expanded":P,"aria-haspopup":"dialog",className:"flex min-w-0 items-center gap-1.5 rounded px-1.5 py-1 text-[11px] leading-none text-[#84848C] transition-colors hover:bg-white/[0.04] hover:text-[#D1D5DB]",onClick:()=>{P||Ua(),gt(m=>!m)},ref:v,type:"button",children:[$t.kind==="chosen"&&f.jsx(mf,{id:$t.id,size:12}),f.jsx("span",{className:"truncate",children:$t.kind==="chosen"?$t.name:$t.kind==="manual"?"I'll run my own":"Choose an agent"}),wu&&f.jsx("span",{className:"size-1.5 shrink-0 rounded-full bg-amber-400",title:"This CLI is signed out. Sign in in your terminal.",children:f.jsx("span",{className:"sr-only",children:"signed out"})}),f.jsx("svg",{"aria-hidden":"true",className:`shrink-0 transition-transform duration-150 motion-reduce:transition-none ${P?"rotate-180":""}`,fill:"none",height:"12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.75",viewBox:"0 0 16 16",width:"12",children:f.jsx("path",{d:"M4 6.5 8 10.5l4-4"})})]})]}),f.jsx("button",{"aria-label":h.active?`Send the change to ${h.displayName(h.active)}`:"Send the change",className:`flex h-6 w-6 shrink-0 items-center justify-center rounded-md transition-[background-color,color,transform] duration-150 active:scale-[0.96] motion-reduce:transition-none ${tt.trim()!==""&&h.active&&!W?"bg-[#E8E8EA] text-[#1C1C20] hover:bg-white":"pointer-events-none text-[#84848C]/60"}`,disabled:tt.trim()===""||!h.active||W,type:"submit",children:W?f.jsx("span",{className:"size-3 animate-spin rounded-full border-[1.5px] border-current border-t-transparent motion-reduce:animate-none"}):f.jsx("svg",{"aria-hidden":"true",fill:"none",height:"13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.75",viewBox:"0 0 16 16",width:"13",children:f.jsx("path",{d:"M8 13V3M3.5 7.5 8 3l4.5 4.5"})})})]})]})}),h.prefs.showWidget?Wl.agent.attached&&Nt===null?f.jsx("div",{className:"px-3 pb-2",children:f.jsx("p",{className:"min-w-0 truncate text-[10px] leading-snug text-[#84848C]",children:"Your agent is listening"})}):null:f.jsx("div",{className:"px-3 pb-2",children:f.jsxs("button",{className:"min-w-0 max-w-full truncate rounded text-left text-[10px] leading-snug text-[#84848C] transition-colors hover:text-[#D1D5DB]",onClick:()=>R(!0),type:"button",children:["Bring the tools back ",f.jsx("kbd",{className:"font-sans text-[#9CA3AF]",children:"T"})]})})]})]}),f.jsxs("div",{className:`absolute inset-y-0 left-0 z-30 flex w-12 flex-col items-center bg-[#1C1C20] py-3 transition-opacity duration-150 ${h.prefs.collapsed?"opacity-100":"pointer-events-none opacity-0"}`,inert:!h.prefs.collapsed,children:[f.jsx(ki,{size:24}),f.jsx(Ge,{label:f.jsxs(f.Fragment,{children:["Open directions ",f.jsx("kbd",{className:"ml-1 text-[#9CA3AF]",children:"["})]}),side:"right",children:f.jsx("button",{"aria-label":"Open the directions panel",className:"mt-3 flex h-6 w-6 items-center justify-center rounded p-1 text-[#9CA3AF] transition-colors hover:bg-[#2E2E2E] hover:text-white",onClick:()=>h.setPrefs(m=>({...m,collapsed:!1})),type:"button",children:f.jsx(fl,{d:sl.sidebar,size:16})})})]}),!h.prefs.collapsed&&f.jsx("div",{"aria-hidden":!0,className:"group/resize absolute inset-y-0 right-0 z-20 flex w-3 cursor-col-resize touch-none justify-end",onPointerDown:h.onHandlePointerDown,children:f.jsx("span",{className:`h-full transition-all duration-150 ${h.resizing?"w-0.5 bg-[#9CA3AF]":"w-px bg-[#232328] group-hover/resize:w-0.5 group-hover/resize:bg-[#9CA3AF]"}`})})]}),f.jsx("span",{"aria-live":"polite",className:"sr-only",role:"status",children:h.copied===null?"":h.copied.kind==="link"?"Link copied":"Reference copied"}),f.jsxs("div",{className:`relative min-w-0 flex-1 ${be?"flex":"overflow-auto"}`,ref:Pe,children:[Dn.map(m=>f.jsxs("div",{className:Qe.includes(m)?be?`relative min-w-0 flex-1 overflow-auto ${m===Ae?"border-l border-[#232328]":""} ${ot?"flex flex-col items-center justify-center gap-2.5":Ne?"flex min-h-full justify-center p-6":""}`:Ne?"flex min-h-full justify-center p-6":"absolute inset-0":"hidden",style:be?{order:Qe.indexOf(m)}:void 0,children:[be&&f.jsx("div",{className:ot?"pointer-events-none z-10 flex justify-center":"pointer-events-none absolute inset-x-0 top-0 z-10 flex justify-center p-3",children:f.jsxs("span",{className:"rounded-full bg-[#1C1C20]/85 px-2.5 py-1 text-[11px] font-medium text-[#E8E8EA] shadow-lg backdrop-blur",children:[h.displayName(m),ot&&f.jsxs("span",{className:"ml-1.5 font-normal text-[#8E8E96]",children:[Math.round(w),"px · ",Math.round(bt*100),"%"]})]})}),f.jsxs("div",{className:ot?"relative shrink-0 overflow-hidden rounded-[10px] shadow-[0_0_0_1px_rgba(255,255,255,0.12)]":Ne?`relative h-[calc(100dvh-48px)] shrink-0 overflow-hidden rounded-[10px] shadow-[0_0_0_1px_rgba(255,255,255,0.10)] transition-[width] duration-200 ${$n} motion-reduce:transition-none`:"relative size-full",style:ot?{height:xe,width:Ra}:Ne?{width:h.prefs.viewport??void 0}:void 0,children:[f.jsx("div",{className:ot?"origin-top-left":"size-full",style:ot?{height:J,transform:`scale(${bt})`,width:w}:void 0,children:f.jsx("iframe",{className:`size-full border-0 bg-white ${An?"pointer-events-none":""}`,onError:()=>Re(B=>({...B,[m]:!0})),onLoad:B=>{const et=h.urlFor(m).startsWith("/");let ct=!0;if(et)try{ct=B.currentTarget.contentDocument!=null}catch{ct=!1}if(ct){h.markLoaded(m),Re(Ut=>Ut[m]?{...Ut,[m]:!1}:Ut);const mt=B.currentTarget;Ze(mt,!h.prefs.showDevOverlays),window.setTimeout(()=>{Ze(mt,!h.prefs.showDevOverlays),ue(m,mt)},600)}else Re(mt=>({...mt,[m]:!0}))},src:h.urlFor(m),title:`Preview: ${h.displayName(m)}`},Jl[m]??0)}),Al[m]?f.jsx(J2,{onReload:()=>$i(m),reason:Tt.reachable||!ze.has(m)?`${h.urlFor(m)} didn’t respond.`:"Your dev server stopped. This returns on its own once it is back."}):f.jsx(K2,{loaded:!!h.loaded[m]}),!Tt.reachable&&h.loaded[m]&&ze.has(m)&&f.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 flex justify-center p-3",children:f.jsx("span",{className:"rounded-full bg-[#1C1C20]/90 px-2.5 py-1 text-[11px] font-medium text-amber-300/90 shadow-lg",children:"Stale — dev server stopped"})})]})]},m)),f.jsxs("div",{className:`absolute z-50 flex gap-2 ${rt?"flex-col items-start":{"bottom-right":"bottom-4 right-4 flex-col items-end","bottom-left":"bottom-4 left-4 flex-col items-start","top-right":"right-4 top-4 flex-col-reverse items-end","top-left":"left-4 top-4 flex-col-reverse items-start"}[h.prefs.corner]}`,style:Gt,children:[f.jsxs("div",{"aria-hidden":!L,"aria-label":"Leglas tools",className:`w-56 rounded-lg border border-[#232328] bg-[#1E1E22] p-1.5 shadow-2xl transition-[opacity,transform] duration-150 ease-[cubic-bezier(0.165,0.84,0.44,1)] focus:outline-none motion-reduce:transition-none ${rt?"hidden ":""}${L?"translate-y-0 scale-100 opacity-100":"pointer-events-none translate-y-1 scale-95 opacity-0"}`,inert:!L,ref:vt,role:"dialog",tabIndex:-1,children:[f.jsx("span",{className:"block px-1 pb-1 pt-0.5 text-[10px] uppercase tracking-[0.08em] text-[#84848C]",children:"Typeface"}),f.jsx("div",{"aria-label":"Interface typeface",className:"flex items-center gap-0.5 rounded-md bg-[#2E2E2E]/40 p-0.5",role:"group",children:gf.map(m=>f.jsx("button",{"aria-pressed":yl.key===m.key,className:`flex-1 rounded px-2 py-1 text-xs transition-colors ${yl.key===m.key?"bg-[#2E2E2E] font-medium text-white":"text-[#9CA3AF] hover:text-[#D1D5DB]"}`,onClick:()=>h.setPrefs(B=>({...B,font:m.key})),style:{fontFamily:m.stack},type:"button",children:m.label},m.key))}),f.jsx("span",{className:"block px-1 pb-1 pt-2 text-[10px] uppercase tracking-[0.08em] text-[#84848C]",children:"Viewport"}),f.jsx("div",{"aria-label":"Viewport width",className:"flex items-center gap-0.5 rounded-md bg-[#2E2E2E]/40 p-0.5",role:"group",children:h.viewports.map(({label:m,width:B})=>f.jsx("button",{className:`flex-1 rounded px-2 py-1 text-xs transition-colors ${h.prefs.viewport===B?"bg-[#2E2E2E] font-medium text-white":"text-[#9CA3AF] hover:text-[#D1D5DB]"}`,onClick:()=>h.setPrefs(Y=>({...Y,viewport:B})),type:"button",children:m},m))}),be&&f.jsxs("button",{"aria-checked":h.prefs.scaleSplit,className:`${pe} mt-1 ${h.prefs.scaleSplit?"text-white":"text-[#9CA3AF]"}`,onClick:()=>h.setPrefs(m=>({...m,scaleSplit:!m.scaleSplit})),role:"switch",type:"button",children:[f.jsx("span",{children:"Scale each side to fit"}),f.jsx(hf,{on:h.prefs.scaleSplit})]}),f.jsx("span",{className:"block px-1 pb-1 pt-2 text-[10px] uppercase tracking-[0.08em] text-[#84848C]",children:"Dev overlays"}),f.jsxs("button",{"aria-checked":h.prefs.showDevOverlays,className:`${pe} ${h.prefs.showDevOverlays?"text-white":"text-[#9CA3AF]"}`,onClick:()=>{const m=!h.prefs.showDevOverlays;h.setPrefs(B=>({...B,showDevOverlays:m}));for(const B of document.querySelectorAll("iframe"))Ze(B,!m)},role:"switch",type:"button",children:[f.jsx("span",{children:"Show dev tool overlay"}),f.jsx(hf,{on:h.prefs.showDevOverlays})]}),f.jsxs("button",{"aria-checked":h.prefs.showWidget,className:`${pe} ${h.prefs.showWidget?"text-white":"text-[#9CA3AF]"}`,onClick:()=>{const m=!h.prefs.showWidget;h.setPrefs(B=>({...B,showWidget:m})),m||h.notify({kind:"widget",message:"Press T to reopen the tools",tone:"info",ttl:Xe.plain+3e3})},role:"switch",type:"button",children:[f.jsx("span",{children:"Show Leglas overlay"}),f.jsx(hf,{on:h.prefs.showWidget})]}),f.jsxs("button",{className:"mt-1 flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-xs text-[#D1D5DB] transition-colors hover:bg-[#2E2E2E]/60 hover:text-white",onClick:()=>h.copyReference(h.active),type:"button",children:[f.jsx(fl,{d:sl.copy,size:12}),h.copied?.kind==="reference"&&h.copied.title===h.active?"Copied":"Copy reference"]}),f.jsx(Ge,{label:"Or double-click any direction in the rail",children:f.jsxs("a",{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-xs text-[#D1D5DB] transition-colors hover:bg-[#2E2E2E]/60 hover:text-white",href:h.urlFor(h.active),rel:"noreferrer",target:"_blank",children:[f.jsx("span",{className:"inline-block size-3 rounded-sm border border-current"}),"Open in new tab"]})}),f.jsxs("button",{className:"flex w-full items-center justify-between gap-2 rounded-md px-2 py-1.5 text-left text-xs text-[#D1D5DB] transition-colors hover:bg-[#2E2E2E]/60 hover:text-white",onClick:()=>{R(!1),S(!0)},type:"button",children:[f.jsx("span",{children:"Keyboard shortcuts"}),f.jsx("kbd",{className:"rounded border border-[#232328] bg-[#2E2E2E]/60 px-1 py-0.5 font-sans text-[10px] text-[#84848C]",children:"?"})]})]}),(h.prefs.showWidget||L)&&f.jsx(Ge,{label:"Leglas tools",children:f.jsxs("button",{"aria-expanded":L,"aria-haspopup":"dialog","aria-label":"Leglas tools",className:"relative flex h-11 w-11 items-center justify-center rounded-full border border-white/10 bg-[#1C1C20] shadow-lg transition-[border-color,transform] duration-150 hover:scale-[1.04] hover:border-white/20 active:scale-[0.95] motion-reduce:transform-none motion-reduce:hover:scale-100 motion-reduce:active:scale-100",onClick:()=>{if($.current){$.current=!1;return}R(m=>!m)},onPointerDown:se,ref:K,type:"button",children:[f.jsx(ki,{size:30}),!h.loaded[h.active]&&f.jsx("span",{className:"absolute -right-0.5 -top-0.5 size-2 animate-pulse rounded-full bg-amber-400 motion-reduce:animate-none"})]})})]})]}),f.jsx(V2,{bottom:h.prefs.collapsed?12:Q+8,left:h.prefs.collapsed?60:12,onDismiss:h.dismissToast,toasts:h.toasts,width:(h.prefs.collapsed?320:h.prefs.width)-24}),dl!==null&&f.jsx("iframe",{"aria-hidden":!0,className:"pointer-events-none fixed border-0",onLoad:m=>Il(dl,m.currentTarget),src:h.urlFor(dl),style:{height:800,left:-2400,top:0,width:1280},tabIndex:-1,title:"Off-stage duplicate scan"},dl),p?f.jsx(Zm,{mac:H1,onClose:E}):null]})}function pf({children:c,title:r}){return f.jsxs("div",{className:"flex h-dvh flex-col items-center justify-center gap-3 bg-[#1C1C20] px-6 text-center antialiased",style:{fontFamily:"var(--font-satoshi)"},children:[f.jsx(ki,{size:22}),f.jsx("p",{className:"text-sm font-medium text-white",children:r}),f.jsx("div",{className:"max-w-md text-xs leading-relaxed text-[#84848C]",children:c})]})}function Vm(){const[c,r]=H.useState({status:"loading"});return H.useEffect(()=>{let g=!1;const o=()=>fetch("/leglas/api/config").then(p=>{if(!p.ok)throw new Error(`the server answered ${p.status}`);return p.json()});o().then(p=>{g||r({status:"ready",config:p})}).catch(p=>{g||r({status:"failed",message:p instanceof Error?p.message:String(p)})});const d=setInterval(()=>{o().then(p=>{g||r(S=>S.status!=="ready"||JSON.stringify(S.config)===JSON.stringify(p)?S:{status:"ready",config:p})}).catch(()=>{})},3e3);return()=>{g=!0,clearInterval(d)}},[]),c.status==="loading"?f.jsx(pf,{title:"Starting Leglas…",children:null}):c.status==="failed"?f.jsxs(pf,{title:"Couldn’t reach the Leglas server",children:[c.message,". The interface is served by the same process that proxies your app, so this usually means it stopped."]}):c.config.errors.length>0?f.jsxs(pf,{title:"Your config needs fixing",children:[f.jsx("ul",{className:"space-y-1 text-left",children:c.config.errors.map(g=>f.jsx("li",{children:g},g))}),f.jsx("p",{className:"mt-3",children:"Fix it and restart Leglas."})]}):f.jsx(km,{previews:c.config.previews,project:c.config.project})}const B1=document.getElementById("root");if(!B1)throw new Error("Leglas: #root is missing from the document.");Ih.createRoot(B1).render(f.jsx(H.StrictMode,{children:f.jsx(Vm,{})}));
|